7 - 27
7 Serial Communications
NX-series Communications Interface Units User’s Manual (W540)
7-5 User Programming to Send Data
7
7-5-1 Creating and Outputting Output Notification Data
7-5 User Programming to Send Data
If the system configuration does not allow you to use serial communications instructions for CIF Units,
you must program processing for the serial communications protocol in the user program.
This section describes the processing that is performed to send data in the user program.
Precautions for Correct Use
Refer to 1-4-2 Conditions for Using Serial Communications Instructions for CIF Units on page
1-8 for detailed conditions on using the serial communications ins
tructions for CIF Units.
The output notification data is created using the send data as the output data and the output notification
data is output to the CIF Unit. If the send data size is larger than the divided data size, the send data
must be divided into pieces and multiple output notification data must be created.
User programming must check the contents of the input notification data that is input from the CIF Unit
to confirm that the output notification data was correctly received by the CIF Unit.
Depending on the communications protocol of the ser
ial communications device that is the destination
of the send data, it may be necessary to perform the following processing on the send data.
• Adding the start code
• Adding the end code
• Adding a CRC
For a programming sample to send data, refer to A-4-3 Programming Sample 2: Sending Data on page
A-35.
7-5-1 Creating and Outputting Output Notification Data
7-5-2 Checking Input Notification Data
7-5-3 Processing Send Data