Mitsubishi — Chapter 8 Application Instructions API 100-149

9 Application Instructions API 150-199 Operands: S 1 : Number of output pulses of X axis S 2 : Number of output pulses of Y axis S : Parameter setting D : Pulse output device Explanations: 1. Flags: M1029, M1030, M1334, M1335. See remarks of API 191 DPPMR for more details. 2. This instruction only supports EH2/SV/EH3/SV2 series MPU, not EH series. In terms of pulse output methods, this instructin only supports “pulse + direction” mode. 3. S 1 and S 2 are the designated (absolute designation) number of output pulses in X axis (Y0 or Y4) and Y axis (Y2 or Y6). The range of the number is -2,147,483,648 ~ +2,147,483,647.

When S 1 and S 2 are larger than pulse present value registers CH0 (D1337 high word, D1336 low word), CH1 (D1339 high word, D1338 low word), CH2 (D1376 high word, D1375 low word), and CH3 (D1378 high word, D1377 low word), the output direction will be positive and direction signals Y1, Y3, Y5, Y7 will be On. When S 1 and S 2 are less than pulse present value registers, the output direction will be negative and direction signals Y1, Y3, Y5, Y7 will be Off. 4. The lower 16 bits of S (settings of direction and resolution): K0 refers to clockwise 10-segment (average resolution) output; K2 refers to clockwise 20-segment (higher resolution) output and a 90 ° arc can be drawn (see figure 1 and 2).

K1 refers to counterclockwise 10-segment (average resolution) output; K3 refers to counterclockwise 20-segment (higher resolution) output and a 90 ° arc can be drawn (see figure 3 and 4). 5. The higher 16 bits of S (settings of motion time): K0 refers to 0.1 second. The setting range for average resolution is K1 ~ K100 (0.1 sec. ~ 10 secs.), for higher resolution is K2 ~ K200 (0.2 sec. ~ 20 secs.) This instruction is restricted by the maximum pulse output frequency; therefore when the set time goes faster than the actual output time, the set time will be automatically modified.

Y Y X X Figure 2 Figure 1 DVP-PLC Application Manual 9-123 API Mnemonic Operands Function 194 D CIMA 2-Axis Absolute Position Arc Interpolation Type OP Bit Devices Word Devices Program Steps X Y M S K H KnX KnY KnM KnS T C D E F DCIMA: 17 steps S 1 * * * S 2 * * * S * D * PULSE 16-bit 32-bit SA SX SC EH S EH3 V SV2 ES EX SS SA SX SC EH SV EH3 SV2 ES EX SS SA SX SC EH3 ES EX SS EH SV SV2 (S ,S ) 1 2 01 stnemges (0,0) 10 segments (S ,S ) 1 2 segments 20 (0,0) 20 segments