10 DEDICATED INSTRUCTIONS
Program example
10 - 6
A program that sends data stored in D10 to D11 using an on-demand transmission
When input/output signals of the Q series C24 are from X/Y00 to X/Y1F
POINT
(1) The status of communication via dedicated instructions can be read by an
SPBUSY instruction.
(2) Designate the storage capacity of transmission data (stored in D10 to D11 in
the program example above) and data length (stored in D2 in the program
example above) within the range of the buffer memory the user has assigned
for an on-demand function.
MELSEC-Q
On-demand transmission command pulse
Set the transmission channel to CH1.
Set the send data count to 2 words.
Set the transmission data to D10 to D11.
Reset the normal completion flag.
Reset the abnormal completion flag.
Set the transmission ready flag.
On-demand transmission execution
Normal completion
Abnormal completion
Reset the transmission ready flag.
10 - 6