FE MONITOUCH V8 SERIES Reference: Additional Functions page 391

Table of Contents

Advertisement

23
Macro
0: With zero suppress
1: Without zero suppress
F2 + 5
Valid only when F2 + 5 = 0
0: Leading spaces removed
1: Trailing spaces removed
F2 + 6
F2 + 7
0 fixed
Example
The numerical data in $u100 is converted to a string according to the specified attributes, and the
converted result is stored in $u300.
• Numerical data "1234": DEC without sign
$u100
$u300
$u301
$u00100 = 1234 (W)
$u00200 = 0 (W) [DEC without sign]
$u00201 = 0 (W) [1 word]
$u00202 = 0 (W) [DEC]
$u00203 = 4 (W) [4 digits]
$u00204 = 0 (W) [Without decimal point]
$u00205 = 0 (W) [With zero suppress]
$u00206 = 0 (W) [Leading spaces added]
$u00207 = 0 (W) [0 fixed]
FORMAT_STR $u00300 $u00100 $u00200
The result "1234" is stored in $u300 and $u301.
• Numerical data "1234": In DEC without sign format, and with zero suppress and leading spaces
$u00100 = 1234 (W)
$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 = 0 (W) [Leading spaces added]
$u00207 = 0 (W) [0 fixed]
FORMAT_STR $u00300 $u00100 $u00200
The result "
23-22
Value
Format for [F0]
Select whether to execute zero suppress.
Example:
For a string "00012" as the converted result, specify "1".
Format for [F0]
If a value in [F0] includes leading spaces, specify "0". If a
value in [F0] includes trailing spaces, specify "1".
Example:
1234
↓ FORMAT_STR
3
2
3
3
4
3
1234" is stored in $u300 - $u302.
12 → 12
0:
→ 12
1: 12
Display
"1234"
1
HEX
"12"
3
HEX
"34"
Remarks

Advertisement

Table of Contents
loading

Table of Contents