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

Page 144

Advertising
background image

Binary Command Language

Appendix A

A-16

For example, two ways to send the address E3.1.2.0.0.0 are:

send the mask 3F

16

(00111111) followed by the bytes 03

16

, 01

16

, 02

16

,

00

16

, 00

16

, 00

16

send the mask 24

16

(00100100) followed by the bytes 02

16

, 00

16

You can extend address bytes into address words just as you extend mask
bytes into mask words. For example, the mask 24

16

followed by the bytes

02

16

, FF

16

, 00

16

, 08

16

corresponds to the address E3.1.2.0.0.2048.

The scanner supports commands for the following functions:

reading, writing, and verifying data
reading the size of memory sections
adding, expanding, deleting, or reducing sections
setting processor operating mode
accessing the LIST function
setting the default context for communication

The sections that follow describe each of these functions.

Reading Data

You can read data from the processor either in individual words using the
read word command, or in blocks using the read block command. You can
also read from the data table I/O section using the read I/O word
command. This command obtains an I/O word and the associated force
information from the processor. The byte increment/decrement command
adds or subtracts one to a specified byte. We describe these four read-type
commands in the following subsections.

Commands

Advertising