5-5
Section
Sample Program for Host
70
5-5
Sample Program for Host
5-5-1 Sample Program
In the following sample ladder program, two bytes of data are read in the trigger
mode beginning with address 10. (It is assumed that a C200H-DRM21-V1 Com-
poBus/D Master is used with a V600-HAM42-DRT at node number 0.)
Self-holding
Self-holding
Completion Bit
TRG
READ/
WRITE
MOV
#0010
CH0051
25315
Start
Retry
TRG
HS
@MOV
CH0350
DM0000
NORMAL
Retry
ERR
It takes some time for a CompoBus/D system to start up. Using the I/O Data
Communicating Flag and the Error Flag in the Master’s status area, create a pro-
gram so that Slave I/O processing will not begin until the Master starts up and
remote I/O communications are started. For details, refer to the
CompoBus/D
(DeviceNet) Operation Manual (W267).