Mitsubishi — Chapter 8 Application Instructions API 100-149

9 Application Instructions API 150-199 more than 200kHz, the output will be operated at 200kHz. 7. When the 2-axis synchronous motion instruction is enabled, the start frequency and acceleration/deceleration time in Y axis will be same as the settings in X axis. 8. The number of output pulses for the 2-axis motion shall not be less than 59; otherwise the line drawn will not be straight enough. 9. There is no limitation on the number of times using the instruction. However, assume CH1 or CH2 output is in use, the 1 st group X/Y axis will not be able to output. If CH3 or CH4 output is in use, the 2 nd group X/Y axis will not be able to output. Program Example: 1.

Draw a rhombus as the figure below. Y X (-27000,-27000) (27000,-27000) (0,-55000) 2. Steps: a) Set the four coordinates (0, 0), (-27000, -27000), (0, -55000), (27000, -27000) (as the figure above). Calculate the relative coordinates of the four points and obtain (-27000, -27000), (27000, -28000), (27000, 27000), and (-27000, 27000). Place them in the 32-bit (D200, D202), (D204, D206), (D208, D210), (D212, D214). b) Write program codes as follows. c) PLC RUN. Set M0 as On and start the 2-axis line drawing. 3. Motion explanation: When PLC RUN and M0 = On, PLC will start the first point-to-point motion by 100kHz.

D0 will plus 1 whenever a point-to-point motion is completed and the second point-to-point motion will start to execute automatically. The DVP-PLC Application Manual 9-113 (0,0) = D0 K1 DPPMR D200 D202 K100000 Y0 = D0 K2 DPPMR D204 D206 K100000 Y0 = D0 K3 DPPMR D208 D210 K100000 Y0 = D0 K4 DPPMR D212 D214 K100000 Y0 M0 RST M1029 MOV K1 D0 M0 M1029 INCP D0 END DPPMR D200 D202 K100000 Y0 DPPMR D204 D206 K100000 Y0 DPPMR D208 D210 K100000 Y0 DPPMR D212 D214 K100000 Y0 RST M1029 MOV K1 D0 INCP D0