EasyManua.ls Logo

YASKAWA VIPA SPEED7 - FC 62 - LT_BT - Convert Local Time to Base Time

YASKAWA VIPA SPEED7
1007 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
The base time entered at input BT is converted to the local time using the data stored in a
DB and applied to output LT. The DB contains the number of 30-minute units by which
the base time and local time differ and the difference between daylight-saving time and
standard time also in units of 30 minutes. (Rule DB) If the calculation results in a date
overflow, this is indicated by a special return value.
FC 61 BT_LT can be called in any priority class.
Internally, FC 61 uses the following functions. These functions must be loaded in your
project with the numbers shown here. FC1 (AD_DT_TM), FC7 (DT_DAY), FC35
(SB_DT_TM)
Output Values / Errors
RET_VAL LT Description
0 Local time Block executed error-free
1 Local time No error, but date jump
8082 DT#90-01-01-0:0:0 Invalid data in the rule data
block
15.6.3 FC 62 - LT_BT - Convert local time to base time
The FC 62 calculates the base time for the local time specified at the input.
Parameters
Parameter Deklaration Datentyp Beschreibung
LT INPUT DATE_AND_TIME Local time
WS_DAT INPUT BLOCK_DB Information on the time zone for standard/daylight
saving switchover (Rule DB)
RET_VAL OUTPUT INT Error code
LT OUTPUT DATE_AND_TIME Base time
The local time entered at input LT is converted to the base time using the data stored in a
DB and applied to output BT. The DB contains the number of 30-minute units by which
the base time and local time differ and the difference between daylight-saving time and
standard time also in units of 30 minutes. (Rule DB) If the calculation results in a date
overflow, this is indicated by a special return value.
During the switchover from standard to daylight-saving time the local time is put forward
one hour. This, however, means that the hour in between is not run through. If there is an
LT (local time) within this hour, FC62 LT_BT "thinks" in daylight-saving time. This is
reported with return value 4 or 5.
How It Works
Calling OBs
Call Environment
Description
How It Works
"Forbidden Hour"
VIPA SPEED7
Standard
Time Functions > FC 62 - LT_BT - Convert local time to base time
HB00 | OPL_SP7 | Operation list | en | 18-30 880

Table of Contents

Related product manuals