6.7
Packet Setting
The send packet to the counterpart device and the receive packet from the counterpart device of when process is executed
are registered in a protocol. The packet which are set with the predefined protocol support function is created with some
elements. Elements are the data portion of the packet to be sent or received. Up to 32 elements can be set in a packet.
Example of a packet configuration
Ex.
Example of format of packet from counterpart device
Header
02H
Packet elements setting with the predefined protocol function for the format shown above
Header
Configure the packet in the order of header, data area
placed after the terminator.
*1 Element: Length / static data/ non-conversion variable / conversion variable / check code / non-verified reception
Set the packet in the packet setting screen displayed by the following operation of GX Works3.
Protocol setting screen Desired packet setting
Window
The setting item of above screen is follows.
Item
Description
Protocol No.
Displays the protocol number of the selected protocol.
Protocol Name
The protocol name of the selected protocol.
Protocol Type
The protocol type of the selected protocol. (Send packet
or receive packet)
Packet Name
The packet name of the selected packet.
6 PREDEFINED PROTOCOL SUPPORT FUNCTION
176
6.7 Packet Setting
Station No.
Command
"00" to "99"
"WT"
conversion
Non-
Static data
variable
Read data
"0000" to "9999"
Data area
Conversion variable
*1
, and terminator. Check code and static data can be
Setting requirement
Predefined
User
Protocol
Protocol
Library
Library
*1
Terminator
Check code
03H
Check Code
Terminator
Setting range
Add New
Arbitrarily (32 characters)