Mitsubishi Electric MELSEC iQ-R Series User Manual page 43

Serial communication module
Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

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
When
receiving
Fixed Number of Data/
Fixed Number of Data
Variable Number of
Variable Number of Data
Data
Number of Send 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
Maximum Number of
specified to the data quantity storage area.)
Data
The range is 1 to 256.
Number of Send Digits
1 to 10
of Data
Variable Number of Digits
Blank-padded
0/Space
Character at Send
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
Sign Character
None/+/0/Space
Number of Decimals
No Decimal Point/Variable Point/1 to
9
HEX  ASCII Decimal
Converts numeric value stored in the data storage area to ASCII decimal.
HEX  ASCII
Converts numeric value stored in the data storage area to ASCII hexadecimal.
Hexadecimal
ASCII Decimal HEX
Treats received data as ASCII decimal, converts it to numeric value, and stores it to the data
storage area.
ASCII Hexadecimal
Treats received data as ASCII hexadecimal, converts it to numeric value, and stores it to the
HEX
data storage area.
Fixes the number of data to be sent and received.
• 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.
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.
• 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.
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.
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".
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 "-".
Select the decimal point position of data on line.
This item can be set when "Conversion" is "HEX  ASCII Decimal" or "ASCII Decimal 
HEX".
2 DATA COMMUNICATION USING PREDEFINED PROTOCOL
2
41
2.3 Packet

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents