Conversion Variable - Mitsubishi MELSEC iQ-F FX5 User Manual

Hide thumbs Also See for MELSEC iQ-F FX5:
Table of Contents

Advertisement

Conversion Variable

This element converts the numerical data in the value of device to an ASCII string and sends it, or converts the received data
(ASCII string) to numerical data and stores it to the device. When a variable element that is dependent on the system exists
during packet formatting, use this function.
For data examples of conversion variable, refer to Page 244 Data examples of Conversion Variable.
Window
Item
Description
Element Name
Set the name of the element.
Conversion
When
sending
When
receiving
Fixed Number of Data/
Fixed Number of Data
Variable Number of Data
Variable Number of 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
specified to the data quantity storage area.)
The range is 1 to 256.
Number of Send Digits
1 to 10
of Data
Variable Number of Digits
HEX→ ASCII
Converts numeric value stored in the data storage area to ASCII decimal.
Decimal
HEX→ ASCII
Converts numeric value stored in the data storage area to ASCII hexadecimal.
Hexadecimal
ASCII Decimal →
Treats received data as ASCII decimal, converts it to numeric value, and stores it to the data
HEX
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.
7 PREDEFINED PROTOCOL SUPPORT FUNCTION
207
7.7 Packet Setting
7

Advertisement

Table of Contents
loading

Table of Contents