Get edit resource, Message format, Error codes – Rockwell Automation 1785-Vx0B, D17856.5.9 PLC-5 VME VMEbus Programmable Controllers User Manual User Manual

Page 98: Sample api

Advertising
background image

Chapter 6

PLC-5/VME Processor
Communications Commands

6-29

Use this command to secure the edit resource for the programming device.
Once you have obtained the edit resource, no one else can write to or
modify the device.

Message Format

DST

00

PSN

00

SRC

00

PSN

00

CMD

0F

STS

00

TNS

FNC

11H

Command Packet

DST

00

PSN

00

SRC

00

PSN

00

CMD

4FH

STS

EXT

STS

Reply Packet

TNS

LNH

Hi

LNH

Lo

Error Codes

The PLC-5/VME processor reports errors, if detected, in its reply packet
as follows:

STS

EXT STS

Description

00H

No error

F0H

0BH

Access denied

0CH

Another module already has edit resource

0DH

Module already has edit resource

Refer to page D-3 for additional information on PCCC status codes.

Sample API

For a sample
interface
header file:

Refer to page:

For a sample
implementation
source file:

Refer to page:

P40VGER.H

B-61

P40VGER.C

B-62

Get Edit Resource

Advertising