Technical data

Linkage with PLC
CP 486 00/14 VIPA GmbH 137
6.3.3.19 Get Date
Parameterization of FB5: F-Nr 42 ($2A hex)
Parameterization of FB6: ZT/N no. of DB for the date to be read
ZANF target position in DB
ZLAE number of data words to be read (3)
Content of DB: DW1 A-NR F-Nr
DW2 number of words being read
DW3 year
DW4 month day
DW4 week-day -----
Parameter:
Year 1980 ... 2099
Month 1 ... 12
Day 1 ... 31
Week-day 0 ... 6, (0=Sunday, 1= Monday, ...)
6.3.3.20 Get Time
Parameterization of FB5: F-Nr 44 ($2C hex)
Parameterization of FB6: ZT/N no. of DB for the time to be read
ZANF target position in DB
ZLAE number of data words to be read (2)
Content of DB: DW1 A-NR F-Nr
DW2 number of words being read
DW3 hour minutes
DW4 seconds hundredth seconds
Parameter:
Hour 0 ... 23
Minute 0 ... 59
Second 0 ... 59
Hundredth second 0 ... 99
The function returns after an error-free termination two words as number of data.
All values are to be interpreted as bytes.