58
1 FUNCTIONS
1.3 Communications Using the Predefined Protocol
D0 to D8 stores the following as a protocol setting data.
In this program example, a receiving side program is not required.
(0) When 'bStart' (M0) is turned on, the protocol is executed by the GP.ECPRTCL instruction and D100 to D109 of the receiving side CPU module is read
and stored in D14 to D23 of the sending side CPU module.
'bComp_OK' (M10) is turned on when the protocol completed successfully.
Device
number
Element name Setting
value
Description
D0 Serial No. The number increases one by one each time the 'bStart' (M0) is turned on.
D1 Network No. 0H Because the access destination is the connected station (own station), 0H is stored as the request
destination network number.
D2 Station No. FFH Because the access destination is the connected station (own station), FFH is stored as the
request destination station number.
D3 Requested module I/O
No.
3FFH Because the access destination is the receiving side CPU module (control CPU of the receiving
side RJ71EN71), 3FFH is stored.
D4 Monitoring timer 10H The monitoring timer is set to 4 seconds. (Unit: 250ms)
D5 to D6 Head device No. 100 To read D100 to D109, start device number is set to 100.
D7 Device code A8H To read D100 to D109, device code is set to A8H.
D8 Number of device points 10 To read 10 points from D100 to D109, number of device points is set to 10.