User Manual PLC-3 FAMILY I/0 Instruction Manual
Binary Command Language
Appendix A
A-22
The processor responds to a write word command with one of the
following response codes:
Response Codes
Hex Description
00 Success
04 Address unknown
06 Access not allowed
08 Address not complete
0F No privilege
If any code other than success is returned, no data is written into memory.
The following response block shows a successful write word command:
STX
02
OSC
01
SIZ
01
RSP
00
ETX
03
CHK
07
Write Block Command
Hex: 20
Parameters: Starting address, number of words, and the new data
Description: The following example command block writes new data into
the first 3 words of integer file 0:
STX
02
ISC
01
SIZ
0E
CMD
20 3C 05 00
ETX
03
CHK
9D
00 00 03
DAT
00
10 02 08 00 7D 8E
The data bytes store:
address mask (3C hex)
first to fourth address bytes (05, 00, 00, 00 hex)
lower and upper bytes of:
- size word (03, 00 hex)
- first data word (10, 02 hex)
- second data word (08, 00 hex)
- third data word (7D, 8E hex)