Conversion instructions
678
Part III FP Instructions
For Relay T/C Register Constant
s1_Control WX WY WR WL SV EV DT LD - -
s2_AsciiData WX WY WR WL SV EV DT LD - -
n_Conversion
Method
- WY WR WL SV EV DT LD - dec or hex
d_BinaryData - WY WR WL SV EV DT LD - -
No. IEC address Set If
R9007 %MX0.900.7 permanently
R9008 %MX0.900.8 for an instant
there is an error in the control string
specified by s1_Control.
normal direction (+) is specified in
s1_Control when the format is decimal.
the number of ASCII characters per
converted unit specified by
n_ConversionMethod exceeds 4 for
16-bit data or 8 for 32-bit data when
hexadecimal format is specifed by
s1_Control.
0 is specified for the no. of 16- or 32-bit
(1- or 2-word) units to be converted in
n_ConversionMethod.
the number of 16- or 32-bit decimal
numbers to be converted specified by
n_ConversionMethod exceeds the area
for storing ASCII data.
the converted result exceeds the area.
Explanation of the conversion method, e.g. n_ConversionMethod = 16#0413 for
ASCII data '0123456789012'
16 # 0 4 1 3
3231303938373635
'21098765
34333231
4321'
Number of 16-bit (1-word) or 32-bit (2-word) units to be converted
Number of ASCII characters per
converted unit
Offset in ASCII character units (8-bit) for
storing the result
For comma-delimited data, specify the maximum
number for numeric data. For decimal ASCII data,
spaces, symbols and a decimal point are
included. The data range is restricted by the
control character string s1_Control.
Register content (hex.)
Character string
16#0 to 16#FF (0 to 255)
16#0 to 16#F (0 to 15)
Operands
Error flags