Rockwell Automation 1770-KF2 Data Highway or Highway Plus Interface Module User Manual User Manual

Page 120

Advertising
background image

Message Packet Formats

Chapter 5

5-41

Physical Write with Mask

This command sets or resets bits in a memory word of the selected
controller. The ADDRESS field contains the physical PLC-4 address of
the memory word to be modified. Refer to Chapter 6 for a description of
physical addresses.

The BIT MASK field specifies which bits in the PLC-4 word are to be
modified, and the DATA field specifies whether those bits are to be set or
reset. For each bit that is 1 in the BIT MASK, the corresponding bit in the
addressed PLC-4 word is set to the same value (1 or 0) as the
corresponding bit in the DATA field. For each bit that is 0 in the BIT
MASK, the corresponding bit of the addressed PLC-4 word is left
unchanged.

Note that you can modify up to 40 PLC-4 words in this way by specifying
a series of ADDRESS, DATA, and BIT MASK fields.

Reply Format:

(EXT STS Byte Optional)

B.

Format When Reporting an Error

TNS

STS

CMD

4E

SRC

DST

TNS

STS

CMD

4E

SRC

DST

EXT

STS

A.

Format When Successful Execution

Command Format:

TNS

STS

CMD

0E

SRC

DST

FNC

0F

PLC-4

SEL

ADDRESS

(Repeated up to 40 Times)

DATA

BIT MASK

Advertising