7-18
Chapter 7. CPL Communication Function
7 - 8 Precautions for Creating Communication Programs for
the Master Station
Keep the following points in mind when creating a communication program.
• This device takes a maximum of two seconds before it sends a response. Therefore, specify the response
monitoring time to two seconds.
• Resend the message if there is no response within two seconds. Set a communications error to occur if there is
no response even after two retries.
• Be sure to resend as described above, because sometimes a message is not transmitted correctly for some
reason such as electrical noise during communication.
Note
• If “X” and “x” device ID codes are alternated when a message is resent by the
master station, it will be easy to identify whether the received message is a
response to the previous instruction or to the current one.
Communication program example
A sample program is installed in the folder in which Smart Loader Package
SLP-C1F has been installed.
In the default setting, the directory is C:\Program Files(x86)\SLP\SLPC1\cpl.cpp.
This program is written in C++.
The sample program is for your reference only, and there is no guarantee that all
functions will work properly.
Handling Precautions:
• Azbil Corporation will not be liable for any loss or damage caused by applying
this sample program.
z
Before executing the sample program
Check the settings for communication type, station address, transmission speed and
data format of the instrument.