FE MONITOUCH V8 SERIES Reference: Additional Functions page 387

Table of Contents

Advertisement

23
Macro
Valid only when F2 + 5 = 0
0: Leading spaces removed
1: Trailing spaces removed
F2 + 6
F2 + 7
0 fixed
Example
The string in $u100 is converted to the numerical data, and the converted result is stored in $u300.
• String "1234": DEC without sign
$u100
$u101
$u300
$u00100 = '1234' (STRING)
$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 removed]
$u00207 = 0 (W) [0 fixed]
FORMAT_DATA $u00300 $u00100 $u00200
The result "1234" is stored in $u300.
• String "12.34": A positive value in DEC with a negative sign format and with two decimal places
$u00100 = '
;(For a positive value, add a space code 20H in the leftmost position.)
$u00200 = 1 (W) [DEC with a negative sign]
$u00201 = 0 (W) [1 word]
$u00202 = 0 (W) [DEC]
$u00203 = 4 (W) [4 digits]
$u00204 = 2 (W) [Two decimal places]
$u00205 = 0 (W) [With zero suppress]
$u00206 = 0 (W) [Leading spaces removed]
$u00207 = 0 (W) [0 fixed]
FORMAT_DATA $u00300 $u00100 $u00200
The result "1234" is stored in $u300.
23-18
Value
Format for [F1]
When a value in [F1] includes leading spaces, specify "0". When
a value in [F1] includes trailing spaces, specify "1".
Example:
3
2
3
3
4
3
↓ FORMAT_DATA
1234
12.34' (STRING)
12 → 12
0:
→ 12
1: 12
Display
1
HEX
3
HEX
"1234"
Remarks
"12"
"34"

Advertisement

Table of Contents
loading

Table of Contents