FE MONITOUCH V8 SERIES Reference: Additional Functions page 389

Table of Contents

Advertisement

23
Macro
• String "1234
$u00100 = '1234
$u00200 = 0 (W) [DEC without sign]
$u00201 = 0 (W) [1 word]
$u00202 = 0 (W) [DEC]
$u00203 = 6 (W) [6 digits]
$u00204 = 0 (W) [Without decimal point]
$u00205 = 0 (W) [With zero suppress]
$u00206 = 1 (W) [Trailing spaces removed]
$u00207 = 0 (W) [0 fixed]
FORMAT_DATA $u00300 $u00100 $u00200
The result "1234" is stored in $u300.
Supplementary information
• If "HEX" is specified as an attribute for conversion, characters "A" - "F" of the source data is not
case-sensitive.
• If this macro, with "FLOAT" specified as an attribute, results in underflow, "0" is obtained as the
converted result.
• Conversion with this macro is in the order of LSB → MSB.
• The following PLCs provided with PLC-specific data format are capable of handling negative
values in BCD with a sign format. When you run this macro using such a value with any of these
PLCs, the internal memory is not valid for [F0]. Therefore, be sure to assign the PLC memory
(specific to the PLC model) to [F0].
1) Fuji Electric: All of the MICREX-F series
2) Yaskawa:
3) OMRON:
• The result of macro execution is stored in $s1057.
When the execution of the macro is normally complete, the value at the address is not updated.
Therefore, before macro execution, resetting the value at the address to zero is recommended.
Code (DEC)
23-20
": In DEC without sign format and with two trailing spaces
' (STRING)
Memobus (transfer mode 1)
All (transfer mode 2)
−1
Description
Execution error

Advertisement

Table of Contents
loading

Table of Contents