Delta Electronics AH — 3.19 Real-time Clock Instructions

AH Motion Controller – Standard Instructions Manual Graphic expression: _3 S : Data source Explanation: 1. S : The device into which the setting value is written 2. The operand S occupies seven consecutive devices. 3. When users want to adjust the built-in real-time clock in the CPU module, they can use the instruction to write the correct current time into the built-in real-time clock. 4. When the instruction is executed, the new setting time is instantly written into the real-time clock in the PLC. Therefore, when the instruction is executed, users have to make sure that the new setting time is consistent with the time when the new setting time is written into the real-time clock. Example:

When M0 is ON, the correct current time is written into the built-in real-time clock in the PLC.

New setting time Real time clock 3-424 FB/FC Instruction Operand Description FC TWR P S Writing the time BOOL WORD DWORD LWORD UINT UDINT INT DINT LINT REAL LREAL TMR CNT STRING Data type S   Device X Y M S T C HC/AC D L SM SR E PR K 16# “$” D F S          Pulse instruction 16-bit instruction 32-bit instruction AH Motion CPU AH Motion CPU - General data Item Special data Value Item register register D20 Year (A.D.) 00~99 SR391 Year (A.D.) D21 Month 1~12 SR392 Month D22 Day 1~31 SR393 Day D23 Hour 0~23 SR394 Hour D24 Minute 0~59 SR395 Minute D25 Second 0~59 SR396 Second D26 Week 1~7 SR397 Week