The base time entered at input BT is converted to the local time using the data stored in aDB and applied to output LT. The DB contains the number of 30-minute units by whichthe base time and local time differ and the difference between daylight-saving time andstandard time also in units of 30 minutes. (Rule DB) If the calculation results in a dateoverflow, 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 yourproject with the numbers shown here. FC1 (AD_DT_TM), FC7 (DT_DAY), FC35(SB_DT_TM)Output Values / ErrorsRET_VAL LT Description0 Local time Block executed error-free1 Local time No error, but date jump8082 DT#90-01-01-0:0:0 Invalid data in the rule datablock15.6.3 FC 62 - LT_BT - Convert local time to base timeThe FC 62 calculates the base time for the local time specified at the input.ParametersParameter Deklaration Datentyp BeschreibungLT INPUT DATE_AND_TIME Local timeWS_DAT INPUT BLOCK_DB Information on the time zone for standard/daylightsaving switchover (Rule DB)RET_VAL OUTPUT INT Error codeLT OUTPUT DATE_AND_TIME Base timeThe local time entered at input LT is converted to the base time using the data stored in aDB and applied to output BT. The DB contains the number of 30-minute units by whichthe base time and local time differ and the difference between daylight-saving time andstandard time also in units of 30 minutes. (Rule DB) If the calculation results in a dateoverflow, this is indicated by a special return value.During the switchover from standard to daylight-saving time the local time is put forwardone hour. This, however, means that the hour in between is not run through. If there is anLT (local time) within this hour, FC62 LT_BT "thinks" in daylight-saving time. This isreported with return value 4 or 5.How It WorksCalling OBsCall EnvironmentDescriptionHow It Works"Forbidden Hour"VIPA SPEED7StandardTime Functions > FC 62 - LT_BT - Convert local time to base timeHB00 | OPL_SP7 | Operation list | en | 18-30880