![FE MONITOUCH V8 SERIES Reference: Additional Functions Download Page 387](http://html1.mh-extra.com/html/fe/monitouch-v8-series/monitouch-v8-series_reference-additional-functions_3756179387.webp)
23 Macro
23-18
Example
The string in $u100 is converted to the numerical data, and the converted result is stored in $u300.
• String “1234”: DEC without sign
$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 = ' 12.34' (STRING)
;(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.
F2 + 6
Valid only when F2 + 5 = 0
0: Leading spaces removed
1: Trailing spaces removed
Format for [F1]
When a value in [F1] includes leading spaces, specify “0”. When
a value in [F1] includes trailing spaces, specify “1”.
Example:
F2 + 7
0 fixed
Value
Remarks
0: 12
→
12
1: 12
→
12
Display
$u100
3
2
3
1
HEX
“12”
$u101
3
4
3
3
HEX
“34”
$u300
1234
“1234”
↓
FORMAT_DATA
Summary of Contents for MONITOUCH V8 SERIES
Page 1: ...Reference Additional Functions V8series...
Page 57: ...2 Global Overlap 2 12 Please use this page freely...
Page 101: ...7 2 Panel Meter Extended 7 18 Please use this page freely...
Page 123: ...9 2 Acknowledge Function 9 18 Please use this page freely...
Page 127: ...10 RGB Display touch switch emulation 10 4 Please use this page freely...
Page 187: ...14 3 Addition of Titles to a CSV File Sampling Data 14 20 Please use this page freely...
Page 199: ...15 Item Show Hide Function 15 12 Please use this page freely...
Page 213: ...16 FTP Server 16 14 ls command This command is used to display the names of files and folders...
Page 221: ...16 FTP Server 16 22 Please use this page freely...
Page 233: ...17 2 Two Ethernet Ports 17 12 Please use this page freely...
Page 241: ...18 Network Camera 18 8 5 The Live view window is displayed...
Page 261: ...18 Network Camera 18 28 Please use this page freely...
Page 327: ...20 MES Interface Function 20 38 6 The table is created...
Page 369: ...22 Security Function 22 12 Please use this page freely...
Page 429: ...24 Tag 24 24 Please use this page freely...
Page 491: ...26 6 USB FDD Floppy Disk Drive 26 14 Please use this page freely...
Page 503: ...27 Ladder Transfer via USB or Ethernet 27 12 Please use this page freely...