2 DATA COMMUNICATION USING PREDEFINED PROTOCOL
2.3 Packet
41
2
Conversion Variable
This element converts the numerical data in the device memory of a CPU module or buffer memory to an ASCII string and
sends it, or converts the received data (ASCII string) to the numerical data and stores it to the device memory of a CPU
module or buffer memory.
Item Description
Element Name Set a name of the element
Conversion When
sending
HEX ASCII Decimal Converts numeric value stored in the data storage area to ASCII decimal.
HEX ASCII
Hexadecimal
Converts numeric value stored in the data storage area to ASCII hexadecimal.
When
receiving
ASCII Decimal HEX Treats received data as ASCII decimal, converts it to numeric value, and stores it to the data
storage area.
ASCII Hexadecimal
HEX
Treats received data as ASCII hexadecimal, converts it to numeric value, and stores it to the
data storage area.
Fixed Number of Data/
Variable Number of
Data
Fixed Number of Data Fixes the number of data to be sent and received.
Variable Number of Data • When sending: Specifies the number of data to be sent at the time of the protocol
execution and sends the data.
• When receiving: Receives data of which the number is variable.
For Variable number of digits, delimiters are required.
Number of Send Data/
Maximum Number of
Data
Set the number of data to be transmitted and received. (For "Variable Number of Data", set the maximum number of data that can be
specified to the data quantity storage area.)
The range is 1 to 256.
Number of Send Digits
of Data
1 to 10 Set the number of digits per one transmitted and received data.
When the number of send digits of data is less than the specified number of digits of data,
upper digits are filled with blank-padded characters.
Variable Number of Digits • When sending: Sends only the data portion converted to an ASCII string in variable length.
• When receiving: Receives only an ASCII string of the data portion in variable length. When
the number of send data/maximum data length is set to 2 or greater, blank-padded
characters are required.
Blank-padded
Character at Send
0/Space Select a character used to fill upper digits when the number of digits of data is not "Variable
Number of Digits" and the number of digits of transmitted/received data is less than the
specified number of send digits of data.
Conversion Unit Select how many words are manipulated as one data in the data storage area.
For 'Word', converts data manipulating one word as one data.
For 'Double word', converts data manipulating two words as one data.
Sign Unsigned/Signed Select whether to add signs to date in the data storage area.
This item can be set when "Conversion" is "HEX ASCII Decimal" or "ASCII Decimal
HEX".
Sign Character None/+/0/Space Select the sign character for positive value on line.
This item can be set when "Conversion" is "HEX ASCII Decimal" or "ASCII Decimal
HEX", and "Sign" is "Signed".
The sign character for negative value is fixed to "-".
Number of Decimals No Decimal Point/Variable Point/1 to
9
Select the decimal point position of data on line.
This item can be set when "Conversion" is "HEX ASCII Decimal" or "ASCII Decimal
HEX".