Mitsubishi Melsec-L Series User Manual page 221

Communication module
Hide thumbs Also See for Melsec-L Series:
Table of Contents

Advertisement

Program example
12 - 6
A program that sends data stored in D10 to D11 using an on-demand transmission
When input/output signals of the C24 are from X/Y00 to X/Y1F
1) On-demand transmission command is converted into pulse.
2) Set the transmission channel to CH1.
3) Set the send data count to 2 words.
4) Set the transmission data to D10 to D11.
5) Reset the normal completion flag.
6) Reset the abnormal completion flag.
7) Set the transmission ready flag.
8) On-demand transmission is executed.
9) Normal completion
10) Abnormal completion
11) Reset the transmission ready flag.
POINT
(1) The status of communication via dedicated instructions can be read by the
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.
12 DEDICATED INSTRUCTIONS
1)
2)
3)
4)
5)
6)
7)
8)
9)
10)
11)
12 - 6

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lj71c24Lj71c24-r2

Table of Contents