AH500 Programming Manual Symbol: S 1 : Timer number Word S 2 : Setting value of the timer Word Explanation: 1. The timer used in the instruction TMR takes 100 milliseconds as the timing unit, and the timer used in the instruction TMRH takes 1 millisecond as the timing unit. 2. The timers for the subroutine’s exclusive use are T1920~T2047. 3. The values of the timers used in TMR and TMRH should be within the range between 0 and 32767. 4. If the same timer is used repeatedly in the program, including in the different instructions TMR and TMRH, the setting value is the one that the value of the timer matches first. 5.
As long as users add the letter S in front of the device T, the timer used in the instruction TMR becomes the accumulative timer. When the conditional contact is OFF, the accumulative timer value is not reset. When the conditional contact is ON, the timer counts from the current value. 6. If the same timer is used repeatedly in the program, it is OFF when one of the conditional contacts is OFF. 7. If the same timer is used repeatedly as the timer for the subroutine’s exclusive use and the accumulative timer in the program, it is OFF when one of the conditional contacts is OFF. 8. When the timer is switched from ON to OFF and the conditional contact is ON, the timer is reset and counts again.
9. When the instruction TMR is executed, the specified timer coil is ON and the timer begins to count. As the value of the timer matches the setting value, the state of the contact is as follows. Example 1: When X0.0 is ON, the setting value 50 is loaded to the timer T0. When the value of T0 matches 50, the contact of T0 is ON. 6-230 API Instruction code Operand Function 1002 TMRH S , S 1 2 16-bit timer Device X Y M S T C HC D L SM SR E PR K 16# “$” DF S 1 ○ S 2 Pulse instruction 16-bit instruction (5 steps) 32-bit instruction - AH500 - Normally open (NO) contact ON Normally closed (NC) contact OFF