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]
5.2 Serial Communication and Modem Interface Instruction
5-62
5.2.1 ONDEMAND instruction
On-demand transmission
instruction pulse
Sets transmission
channel to 1
Sets number of send data
to 2 words
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 normal completion
flag ON
Turns error completion
flag ON
Turns execution flag OFF