App. - 71 App. - 71
APPENDIXES
(2) Program example
The following shows the program example of receiving data using the
nonprocedural protocol.
[I/O signals of the C24]
Device Purpose Device Purpose
X1003
CH1 Reception data read
request
Y1001
CH1 Reception data read
completion
X1004
CH1 Reception error
detection
— —
[Link special relay (SB), link special register (SW)]
Device Purpose Device Purpose
SB0049
Data link status of host
station
SW00B0.0
Data link status of each
station (Station number 1)
The data received in the C24 is transferred to the master station CPU module
and stored in the following devices.
(In the program example above, the receive data count is stored in D0, and the
receive data corresponding to the receive data count are transferred from W1001
to D1.)
Device Description
W1000
Receive data count
W1001 to W11FF Receive data
In the example above, data are not read out when a reception error is detected.
For the bidirectional protocol, programs for the reception error detection are not
required.
Summary of Contents for MELSEC LJ71C24
Page 1: ......
Page 2: ......
Page 18: ...A 16 A 16 INDEX REVISIONS WARRANTY...
Page 22: ...A 20 A 20 2 LJ71C24 R2 LJ71C24 R2 Before Using the Product...
Page 23: ...A 21 A 21 MEMO...
Page 38: ...4 2 4 2 4 PROCEDURES PRIOR TO OPERATION MEMO 4...
Page 105: ...7 30 7 30 7 SETTINGS FOR THE C24 MEMO...
Page 425: ......
Page 426: ......
Page 427: ......