6.1
Data Communication
When the predefined protocol support function is used, data can be exchanged with the external device using the following
procedure.
1.
Select, create or edit the protocol with the predefined protocol support function, and write the protocol setting data.
(Page 46 Creating the protocol setting data)
2.
Set the module parameter. (Page 51 Module parameter setting procedure)
3.
Write the parameters to the CPU module.
4.
Perform the open processing to establish a connection between the CPU module and external device.
5.
Execute the protocol with the dedicated instruction (SP.ECPRTCL instruction).
6.
Close the connection when communication is finished.
The communication data code is binary code communication regardless of the selected settings.
Creating the protocol setting data
Use the predefined protocol support function to create the protocol setting data.
[Tool] [Predefined Protocol Support Function]
Select the module for which to create the protocol setting data.
6 PREDEFINED PROTOCOL SUPPORT FUNCTION
46
6.1 Data Communication