Omron CS1W-RPT01 Network Card User Manual


 
197
Using the Message Service Section 6-3
Note When using the sample program, make sure that the bits and words used in
the sample program are not the same as those in the user program or by Spe-
cial I/O Units.
@XFER(70)
#0016
LR 10
DM 0030
R
S
KEEP(11)
31002
00001 25204
31000
31003
@MOV(21)
#0010
DM 0003
31002
@MOV(21)
#9500
DM 0004
@MOV(21)
#0004
DM 0005
@RECV(98)
HR 10
LR 10
DM 0003
31002 31003
25203
Transmitted data (16 words from LR 10) moved into
words beginning at DM 0030 for storage.
0201
31002 25203
Turns ON to indicate reception error.
DIFU(13) 31003
31002 25204
Network Instruction Error Flag
Creates reset input.
* No destination network address specified
** Response required, 5 retries, direct designa-
tion, monitoring time: default
Control Data Preparation
IR 31002 remains ON while the RECV instruction is
being executed, and it turns OFF when instruction
execution has been completed.
Beginning word for
sending (by destina-
tion node) = DM5000
(05: DM designation)
Beginning Word for Indirect Sending by
Destination Node
DM 0003 0 0 1 0 16 receive words*
DM 0004 9 5 0 0 Operating level 1**
DM 0005 0 0 0 4 Node 4, Unit 0 (a PLC)
HR 10 0 5 0 0
HR 11 5 0 0 0
Data for 16 words from DM 5000 (HR10, HR11) of
the node address 4 is received in LR 10 and after.
Execution
condition
@MOV(21)
#0500
HR 10
@MOV(21)
#5000
HR 11
(Continued from the previous page)
The reception program will run when IR 000001
turns ON, provided that the Network Instruction En-
abled Flag is ON and the SEND instruction has not
been executed.