User manual

Chapter 6
PLC-5/VME Processor
Communications Commands
6-6
Use this command to:
diagnostic command when debugging your host CPU’s driver program
confirm communication with the specified PLC-5/VME processor
identify its operating mode
report other useful information before initiating an upload or download
Message Format
DST
00
PSN
00
SRC
00
PSN
00
CMD
06
STS
00
TNS FNC
03
Command Packet
LNH
Hi
LNH
Lo
DST
00
PSN
00
SRC
00
PSN
00
CMD
46H
STS
Reply Packet
TNS
STATUS (36 bytes)
See the “Header Bit/Byte Descriptions” section on page 6-4 for
descriptions of all bytes except the table on the next page.
The STATUS field returned in the reply packet indicates the following:
Byte Description
1
Operating status of the PLC-5/VME processor
Bits 2-0 000 = program load 010 = run mode
100 = remote program load 101 = remote test
110 = remote run 001, 011, 111 = not used
Bit 3 0 = no fault 1 = major fault
Bit 4 0 = not downloading 1 = download mode
Bit 5 0 = not uploading 1 = upload mode
Bit 6 0 = not testing edits 1 = testing edits
Bit 7 0 = no edits in PLC-5/VME processor 1 = edits in processor
2 EBH PLC-5/VME processor
3 38H Processor expansion type
4-7 Processor Memory Size (96K bytes) (low word, low byte first)
8 Series and revision of PLC-5/VME processor
Bits 4-0 00000 = Revision A 00001 = Revision B, etc.
Bits 7-5 000 = Series A 001 = Series B, etc.
9 Processor station number
Bits 5-0 Station number 0-63
10 FDH Future development
11 00H Future development
Identify Host and Status