![FE MONITOUCH V8 SERIES Скачать руководство пользователя страница 382](http://html1.mh-extra.com/html/fe/monitouch-v8-series/monitouch-v8-series_reference-additional-functions_3756179382.webp)
23 Macro
23-13
23
Conversion
CLND_TO_GRE F0 F1 F2
Function: Conversion from calendar data to GMT-based UNIX time
This macro is used to convert the calendar data [F1] in format [F2] to the UNIX time based on GMT,
and to store the converted result in [F0].
Available memory
: Setting enabled (indirect designation disabled)
: Setting enabled (indirect designation enabled)
Range
:
←
V series (Return data)
Example
The calendar data in $u200 - $u205 in DEC format, 17 (hour):25 (minutes):10 (seconds) on June 10 in
2010, is converted to the GMT-based UNIX time, and the converted result is stored in $u100 and
$u101.
$u200 = 2010 (W)
$u201 = 6 (W)
$u202 = 10 (W)
$u203 = 17 (W)
$u204 = 25 (W)
$u205 = 10 (W)
$u300 = 0 (W)
CLND_TO_GRE $u100 $u200 $u300
The GMT-based UNIX time “1276190710 seconds” is obtained.
Time data 0
→
$u100 = 8182 DEC
Time data 1
→
$u101 = 19473 DEC
Internal Memory
PLC1 - PLC8
Memory
Memory Card
Constant
F0
F1
F2
Value
Remarks
F0
Time data 0
DEC only
F0 + 1
Time data 1
F1
4 or 2 digits: Year
F1 + 1
1 to 12: Month
F1 + 2
1 to 31: Day
F1 + 3
0 to 23: Hour
F1 + 4
0 to 59: Minutes
F1 + 5
0 to 59: Seconds
F2
0: DEC
1: BCD
Data format
for [F1]
Calendar data
GMT-based UNIX time
CLND_TO_GRE
F1
F0
Time data 1
Time data 0
UNIX time since January 1, 1970 GMT
Содержание 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...