Delta DVP — 5.1 Recipe Setting by CJ Instruction

5. Loop Instruction Design Examples M1000 P2 P3 M1000 P4 X4 Program Description: z When X1 = ON, X2 = OFF, X3 = OFF, the program will jump from [CJ P1] to P1 and store the constant K10000 in D0, which means the first stroke distance is selected. At the same time, the program will jump to address P4 and get ready to output pulses. z When X2 = ON, X1 = OFF, X3 = OFF, the program will jump from [CJ P2] to P2 and store the constant K20000 in D0, which means the second stroke distance is selected. At the same time, the program will jump to address P4 and get ready to output pulses.

z When X3 = ON, X1 = OFF, X2 = OFF, the program will jump from [CJ P3] to P3 and store the constant K30000 in D0, which means the third stroke distance is selected. At the same time, the program will jump to address P4 and get ready to output pulses. z When X1 = OFF, X2 = OFF, X3 = OFF, [CJ p4] instruction will be executed. The program will jump to pointer P4 directly and get ready to output pulses. z When X4 = ON, [DDRVI D0 K10000 Y10 Y0] instruction will be executed; that is, Y10 will output a certain number of pulses with frequency of 100 KHz (the content in D0 is the number of the pulses), and Y0 will control the pulse direction.

Since the operating distance of the servo motor is proportiona l to the number of the pulses, the object of controlling servo operating distance can be achieved by setting PLC output pulses. DVP-PLC Application Examples 5-2 MOV K20000 D0 CJ P4 000 MOV K30000 D0 CJ P4 DDRVI D0 K100000 Y10 Y0 CJ P4