Modes
64
MA 258
i
Leuze electronic
Collective mode sequence diagram
Send long online commands to the DEV, read RS 232 answer from DEV
Figure 11.1: Data transmission scheme with long online commands
Activate Collective
mode
Select
function mode in
PLC via EDS file?
Save toggle bits
as process image
Reception of data
Data is transferred
and must be saved
Is there still data
in the receive buffer?
DEX = 1 set
(status bit 0.3)
Transmit the next
data with toggle bit
R-ACK = ! R-ACK
(control bit 1.0)
Confirm data retrieval with
toggle bit
R-ACK = ! R-ACK
(control bit 1.0)
No
No
Yes
Yes
Sending of data
Number < 254
Enter user data that are to
be sent into output data
words starting at Out 2
DLC = number of
binary-coded data
bytes
Send data in the transmit
buffer with the
CTB = ! CTB toggle bit
(control bit 1.3)
All desired data in the buf-
fer?
*)
Command ok?
W-ACK = ! W-ACK
(status bit 0.0)
(Display!)
*)
Command ok?
W-ACK = ! W-ACK
(status bit 0.0)
(Display!)
Send data with the
SFB = ! SFB toggle bit
(control bit 1.2)
No
No
No
Yes
Yes