5-68
5.3 Serial Communication
5.3.1 ONDEMAND instruction
G_ONDEMAND
Program Example
The following program sends data of devices from D10 to D11 using the on-demand function.
(For the Q series C24 whose I/O signals are X/Y00 to X/Y1F)
[Structured ladder/FBD]
On-demand transmission
instruction pulse
Sets transmission
channel to 1
Sets send data
to D10 to D11
Turns normal completion
flag OFF
Turns error completion
flag OFF
Turns execution flag ON
Performs on-demand
function transmission
Turns error completion
flag ON
Turns normal completion
flag ON
Turns execution flag OFF
Sets number of send data
to 2 words