AH500 Programming Manual 2.2.16 Additional Remarks on Special Auxiliary Relays and Special Data Registers 1. The scan timeout timer SM8/SR8 When a scan timeout occurs during the execution of the program, the error LED indicator on the PLC is ON all the time, and SM8 is ON. The content of SR8 is the step address at which the watchdog timer is ON. 2. Clearing the warning light SM22 If SM22 is ON, the error log and the warning light will be cleared. 3. The real-time clock SM220, SR220~SR226, and SR391~SR397 SM220: Calibrating the real-time clock within ±30 seconds When SM220 is switched from OFF to ON, the real-time clock is calibrated.
If the value of the second in the real-time clock is within the range between 0 and 29, the value of the minute is fixed, and the value of the second is cleared to zero. If the value of the second in the real-time clock is within the range between 30 and 59, the value of the minute increases by one, and the value of the second is cleared to zero. The corresponding functions and values of SR220~SR226 and SR391~SR397 are as follows. SR391~SR397 correspond to SR220~ SR226. The difference between SR220~ SR226 and SR391~SR397 lies in the fact that the former adopts the binary-coded decimal while the latter adopts the decimal system.
For example, December is represented as 12 in SR392 while it is represented as 12 in the binary-coded decimal. Please refer to section 6.17 for more information related to the real-time clock. 4. The functions related to communication SM96~SM107, SM209~SM212, SR201~SR202, and SR209~SR216 SR215 and SR216 are used to record the interface code of the communication port on the PLC. The functions represented by the interface codes are as follows. When the interface of the communication port on the PLC is RS485, RS232, or RS422, SR209 records the communication format of COM1 on the PLC, and SR212 records the communication format of COM2 on the PLC.
The setting values of the communication protocols are shown in the following table. Please refer to section 6.19 for more information related to the communication instructions. 2-84 Device Binary-coded Decimal Function Value decimal system system SR220 SR391 Year 00~99 (A.D.) SR221 SR392 Month 1~12 SR222 SR393 Day 1~31 SR223 SR394 Hour 0~23 SR224 SR395 Minute 0~59 SR225 SR396 Second 0~59 SR226 SR397 Week 1~7 Code 0 1 2 Function RS232 RS485 RS422 b0 Data length 7 (value=0) 8 (value=1) Parity bits 00 : None b1 01 : Odd parity bits b2 10 : Even parity bits b3 Stop bit 1 bit (value=0) 2 bits (value=1)