Rockwell Automation 1775-S5_SR5,D17756.5.5 User Manual PLC-3 FAMILY I/0 User Manual

Page 160

Advertising
background image

Binary Command Language

Appendix A

A-32

The data bytes store the data word:

first size byte (08 hex)
second size byte (28 hex)
third size byte (00 hex)
fourth size byte (00 hex)
first byte of next level’s word (19 hex)
second byte of next level’s word (00 hex)

If any other response code is returned, no data follows.

Create Command

Hex: 17

Parameters: Address of the last word, structure, file or section.

Description: The following example command block creates 10 words in
integer file 5 (if integer file 6 does not already exist):

STX

02

ISC

0C

SIZ

06

CMD

17

3C

05

DAT

05

00

0A

ETX

03

CHK

7E

The data bytes store:

address mask (3C hex)
first address byte (section) (05 hex)
second address byte (file) (05 hex)
third address byte (structure) (00 hex)
fourth address byte (word) (0A hex)

If the words have already been created, the processor sends an available
response code (02 hex). The command also tells the processor to create the
pointers for integer files 0 thru 4 if they did not already exist, although no
words are allocated to these files.

Advertising