Chapter 6 Applied Instructions Symbol S : Data source Explanation 1. This instruction adjusts the built-in real-time clock in the CPU module by writing the correct current time in S into the built-in real-time clock. 2. The operand S occupies seven consecutive devices. (Use 24 hour time format) 6_ 3. The instruction instantly writes the new setting time into the real-time clock in the PLC. 4. Make sure that when the instruction executes, the new setting time in S is consistent with the actual time. 5. It is suggested to use it as a pulse instruction. If the contact is normally open, the instruction is executed to write the time constantly. But the PLC only writes the time at the first scan.
If the built-in real-time clock needs to be updated, you can close the contact for a scan time and then execute this instruction again to update the clock. Example When M0 is ON, the instruction writes the correct current time into the built-in real-time clock in the PLC. 6-479 API Instruction code Operand Function 1601 TWR P S Writing the time Device X Y M S T C HC D FR SM SR E K 16# “$” F S BOOL WORD DWORD LWORD UINT INT DINT LINT REAL LREAL TMR CNT STRING Data type S Pulse instruction 16-bit instruction 32-bit instruction ES3 ES3 -