Mitsubishi — Chapter 7 Application Instructions API 50-88

7 Application Instructions API 50-99 Program Example 2: 1. Use TMR instruction to write in 10 groups of set time. 2. Write the set values into D100 ~ D109 in advance. 3. The timing unit for timer T0 ~ T9 is 0.1 sec. The timing unit for the teaching timer is 1 sec. 4. Connect the 1-bit DIP switch to X0 ~ X3 and use BIN instruction to convert the set value of the switch into a bin value and store it in E. 5. Store the “On” time (sec.) of X10 in D200. 6. M0 refers to the pulses generated from one scan period after the button switch of the teaching timer X10 is released. 7.

Use the set number of the DIP switch as the indirectly designated pointer and send the content in D200 to D100E (D100 ~ D109). M10 M11 M19 M1000 X10 X10 M0 Remarks: 1. For SA series MPU, TTMR instruction can be used 8 times in the program. But in a subroutine or interruption subroutine, the instruction can only be used once. 2. For EH series MPU, there is no limitation on the times using this instruction in the program and 8 instructions can be executed at the same time. DVP-PLC APPLICATION MANUAL 7-56 n D0 D1 (unit: 100ms) K1 (unit: 100 ms) 10 × T D1 = D0 K2 (unit: 10 ms) 100 × T D1 = D0/10 TMR T0 D100 TMR T1 D101 TMR T9 D109 BIN K1X0 E TTMR D200 K0 PLF M0 MOV D200 D100E