7. Elementary Arithmetic Operations Design Examples and then be multiplied with 100 as the pulse number. The pulse number will be stored in D2 then transferred to D4 as the target value of DDRVA instruction (absolute position), and M1 will be ON to execute DDRVA instruction. z According to the execution result of DDRVA, Y0 will output 100 pulses with frequency 50kHz and the system will JOG to the target position (D4 = D2 = K100) from the initial position (D4 = K0), which means the system will JOG left for 1 mm . z If X0 is pressed again, D2 will be K200 which is different to the present value in D4 (K100).
The value in D2 (K200) will be sent to D4 as the target value of the absolute position. M1 will be ON to execute DDRVA instruction. The system will JOG to the target position (D4 = D2 = K200) from the last position (D4 = K100), which means the system will JOG left for another 1 mm . z Likewise, the process of JOG right is similar to that of JOG left. The system will JOG right for 1 mm every time the JOG right switch is pressed, 7-4 DVP-PLC Application Examples