Message Packet Formats
Chapter 5
5-31
7. WORD OFFSET — Contains the word offset between the desired
word and the beginning of the addressed file. The offset is zero for
the first word of a file. In word-range read and write commands, this
field can be combined with a symbolic file address to specify a word
address.
Bit Writes
This is a bit write command to modify the bits at the address specified by
either a word symbol, a file symbol plus a word offset, or a logical
address. This address must point to a word within a file. The function
code is 2. Unlike the current unprotected and protected bit writes in the
basic command set, this command can change the bits in a single word
only.
Command Packet:
TNSDST SRC CMD 00FNC
0F 02
00 ASCII SYMBOL
(8 CHARS. MAX.)
SET
MASK
W/F
00
TNSSTSCMD
4F
SRCDST
TNSSTSCMD
4F
SRCDST EXT
STS
Reply
Format:
(EXT STS Byte Is Optional)
B.
Format When Reporting an Error
A.
Format When Successful Execution
B.
File Symbol Address Plus W
ord Of
fset
A. W
ord Symbol Address
STS
C.
Logical Address
RESET
MASK
TNSDST SRC CMD 00FNC
0F 02
00 ASCII SYMBOL
(8 CHARS. MAX.)
WORD
OFFSET
W/F
01
STS SET
MASK
RESET
MASK
TNSDST SRC CMD FNC
0F 02
PLC-3 LOGICAL
ADDRESS
(2 -51 Bytes)
STS SET
MASK
RESET
MASK
NOTE:
This is the same as the reply packet
format for all current unprotected,
protected, and privileged bit writes.
Commentaires sur ces manuels