Chapter 7 P2P Service
7-14
4) Variable sized variable
a) Available in the Body area of the frame
b) Send Frame
Used to change the length of frame.
Check “Assign memory” to configure the send frame with the data read from PLC memory.
c) Receive Frame
(a) Used to process the Variable sized data among the received frames.
(b) Registration available only in the last segment in the Body area.
Check “Assign memory” to save the data for the applicable segment among the received
frames. (Swap and conversion are available)
[Fig. 7.3.11] Variable sized variable to select and register
(4) Data Conversion Processing
In order to convert data from Hexadecimal to ASCII code when frames are sent and received,
or execute Byte swap, the applicable setting shall be specified on the frame edit window.
1) Conversion
- Hex To ASCII
Send: converts read data from PLC memory to ASCII code so to configure send frame.
Receive: converts received data to ASCII so to save.
- ASCII To Hex
Send: converts read data from PLC memory to Hexadecimal code so to configure send frame.
Receive: converts received ASCII code data to Hexadecimal code so to save.
[Fig. 7.3.13] Data processing method to select
If 2 Words of PLC memory, MW100/101, are used for Send frame configuration, and the ASCII
code 0x34353637 is saved on MW100/101, the applicable segment of the send frame will be
filled with hexadecimal number ‘4567’, when ‘Hex To ASCII’ is selected.
And when some of the received frames are saved as converted to Hex, 0x3435 3637 will be
saved on PLC memory, if the value of applicable area is “4567”.
2) SWAP
2 Bytes : 2 Bytes swap of applicable part among Send/Receive frames
4 Bytes : 4 Bytes swap of applicable part among Send/Receive frames
8 Bytes : 8 Bytes swap of applicable part among Send/Receive frames