Message format, Error codes, Sample api – Rockwell Automation 1785-Vx0B, D17856.5.9 PLC-5 VME VMEbus Programmable Controllers User Manual User Manual
Page 97
![background image](/manuals/579929/97/background.png)
Chapter 6
PLC-5/VME Processor
Communications Commands
6-28
Message Format
a
DST
00
PSN
00
SRC
00
PSN
00
CMD
0F
STS
00
TNS
FNC
18H
Command Packet
Reply Packet
b
DST
00
PSN
00
SRC
00
PSN
00
CMD
4FH
STS
00
TNS
EXT
STS
a – The physical address is a four-byte field (order of bytes is lowest to highest)
where the current packet starts to write. For example, 00 0A 00 00.
b – You can write up to 119 data words (two bytes per word) per command packet (enter low byte first).
LNH
Hi
LNH
Lo
Error Codes
The STS byte contains 00H if no error. When detected, the PLC-5/VME
processor reports errors in its reply packet as follows:
STS
EXT STS
Description
00H
–
No error
10H
–
Incorrect command format
40H
–
Internal error such as a parity error
60H
–
Write operation disallowed
F0H
03H
Incorrect address
07H
Segment exceeds the end of user memory
12H
Invalid packet format
0BH
Access denied
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:
P40VWBP.H
B-43
P40VWBP.C
B-44