![FE MONITOUCH V8 SERIES Скачать руководство пользователя страница 386](http://html1.mh-extra.com/html/fe/monitouch-v8-series/monitouch-v8-series_reference-additional-functions_3756179386.webp)
23 Macro
23-17
23
FORMAT_DATA F0 F1 F2
Function: Conversion from a string to numerical data
This macro is used to convert the string [F1] according to the attributes [F2], and to store the converted
result in [F0].
Available memory
: Setting enabled (indirect designation disabled)
: Setting enabled (indirect designation enabled)
Range
Internal Memory
PLC1 - PLC8
Memory
Memory Card
Constant
F0
F1
F2
String (JIS/ASCII)
Numerical data
FORMAT_DATA
F1
F0
Value
Remarks
F0
Target memory: BIN
The number of words depends on [F2 + 1] (data length).
F1
Source memory: String (ASCII)
The number of bytes depends on [F2 + 3] (character count).
32 bytes maximum (16 words)
Character processing LSB
→
MSB fixed
F2
0: DEC without sign (decimal)
1: DEC with a negative sign
(decimal)
2: DEC with a positive/negative
sign (decimal)
3: HEX (hexadecimal)
4: OCT (octal)
5: BIN (binary)
6: FLOAT (real number)
Format for [F1]
If “DEC with a negative sign” or “FLOAT” is selected for [F2] for
the conversion of a positive value, add a space code (20H) to
the leftmost position of the positive value. Otherwise, an error
will result.
A space code is not included in the number of digits.
Example:
For a string “123” to be converted, add a space to make it as
“ 123”.
F2 + 1
0: 1 word
1: 2 words
Data length for [F0]
If “FLOAT” is selected for [F2], specify “0”.
F2 + 2
0: DEC
1: BCD
Data format for [F0]
If “HEX,” “OCT,” “BIN,” or “FLOAT” is selected for [F2], specify
“0”.
F2 + 3
1 - 32: [F2] = 0, 1, 2, 5, or 6
1 - 8: [F2] = 3
1 - 11: [F2] = 4
Number of digits for [F1]
A positive/negative sign and a decimal point are not included in
the number of digits.
Example:
For a string “-12.3” to be converted, the number of digits is three.
F2 + 4
0 - 10: [F2] = 0, 1, or 2
0 - 31: [F2] = 6
Decimal place for [F1]
Example:
For a string “12.34” to be converted, specify two decimal places.
F2 + 5
0: With zero suppress
1: Without zero suppress
Format for [F1]
Содержание MONITOUCH V8 SERIES
Страница 1: ...Reference Additional Functions V8series...
Страница 57: ...2 Global Overlap 2 12 Please use this page freely...
Страница 101: ...7 2 Panel Meter Extended 7 18 Please use this page freely...
Страница 123: ...9 2 Acknowledge Function 9 18 Please use this page freely...
Страница 127: ...10 RGB Display touch switch emulation 10 4 Please use this page freely...
Страница 187: ...14 3 Addition of Titles to a CSV File Sampling Data 14 20 Please use this page freely...
Страница 199: ...15 Item Show Hide Function 15 12 Please use this page freely...
Страница 211: ...16 FTP Server 16 12 With Explorer or Internet Explorer To log out close Explorer Click the close button to log out...
Страница 213: ...16 FTP Server 16 14 ls command This command is used to display the names of files and folders...
Страница 221: ...16 FTP Server 16 22 Please use this page freely...
Страница 233: ...17 2 Two Ethernet Ports 17 12 Please use this page freely...
Страница 241: ...18 Network Camera 18 8 5 The Live view window is displayed...
Страница 261: ...18 Network Camera 18 28 Please use this page freely...
Страница 327: ...20 MES Interface Function 20 38 6 The table is created...
Страница 369: ...22 Security Function 22 12 Please use this page freely...
Страница 429: ...24 Tag 24 24 Please use this page freely...
Страница 491: ...26 6 USB FDD Floppy Disk Drive 26 14 Please use this page freely...
Страница 503: ...27 Ladder Transfer via USB or Ethernet 27 12 Please use this page freely...