7-4
Section
Sample Program
104
First Cycle Flag
Clears (writes #0000 to) DM 0000 to DM 2999.
Writes #0001 to IR 000 to indicate the progress of
processing.
Writes #3FFE to DM 0000. (Sets destination node
number to 3F Hex and destination unit address to
FE Hex)
Writes #8207 to DM 1000 and #D000 to DM 1001.
(Sets leading address for response to DM 2000.
The leading address is set using the variable area’s
specification method.)
Writes #0064 to DM 1002. (Sets response monitor-
ing time to 10 s.)
Writes #0009 to DM 1003. (Sets number of com-
mand data bytes to 9 bytes.)
Writes #2801 to DM 1004. (Sets command code to
28 01 Hex.)
Writes #0133 to DM 1005. (Sets Slave node num-
ber to 01 Hex and service code to 33 Hex.)
Writes #008A to DM 1006. (Sets class ID to 8A
Hex.)
Writes #0001 to DM 1007. (Sets instance ID to 01
Hex.)
Writes #6400 to DM 1008. (Sets leading address of
read data to PT memory address 0100.)
Writes #0A00 to DM 1009. (Sets number of read
bytes to 10 bytes.)
Continued
on next page
BSET (71)
#0000
DM0000
DM2999
MOV (21)
#0001
000
25315
MOV (21)
#3FFE
DM0000
MOV (21)
#8207
DM1000
MOV (21)
#0000
DM1001
MOV (21)
#0064
DM1002
MOV (21)
#0009
DM1003
MOV (21)
#2801
DM1004
MOV (21)
#0133
DM1005
MOV (21)
#008A
DM1006
MOV (21)
#0001
DM1007
MOV (21)
#6400
DM1008
MOV (21)
#0A00
DM1009