23 Macro
23-22
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
$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 “
1234” is stored in $u300 - $u302.
F2 + 5
0: With zero suppress
1: Without zero suppress
Format for [F0]
Select whether to execute zero suppress.
Example:
For a string “00012” as the converted result, specify “1”.
F2 + 6
Valid only when F2 + 5 = 0
0: Leading spaces removed
1: Trailing spaces removed
Format for [F0]
If a value in [F0] includes leading spaces, specify “0”. If a
value in [F0] includes trailing spaces, specify “1”.
Example:
F2 + 7
0 fixed
Value
Remarks
0: 12
→
12
1: 12
→
12
Display
$u100
1234
“1234”
$u300
3
2
3
1
HEX
“12”
$u301
3
4
3
3
HEX
“34”
↓
FORMAT_STR
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...