1 I write in PLC's DB9 date and time using INPUT FIELD (TP170a) and variable of type DT, that's OK
2 i try to use that 8 bytes in DB9 from DBB28 to set plc's time with SFC0 like this:
Code: Select all
L W#16#1002
T LW 0
L 8 // 8 bytes
T LW 2
L 9 // db9
T LW 4
L 28 //from dbb28
SLD 3
OD DW#16#84000000
T LD 6
CALL "SET_CLK"
PDT :=#DaT // DaT - TEMP - type: Date and time; Address - 0
RET_VAL:=#ret // ret TEMP - INT, address - 2.0
Maybe someone know what the problem here, thanks