Conditional Jump Procedure - Vexta EMP400 Series Operating Manual

Controller for servo and stepping motors
Table of Contents

Advertisement

11 11 11 11 11
Sample programs
11.5

Conditional jump procedure

If IN1 input of CN1 turns on, mechanical home seeking is executed.
If IN2 input of CN1 turns on, an incremental system positioning operation is executed.
Sample program
[1] CJMP 1,1,4
[2] CJMP 2,1,10
[3] JMP 1
[4] VS1 1000
[5] V1 3000
[6] H1 +
[7] T1 10
[8] MHOME1
[9] END
[10] VS 1000
[11] V1 3000
[12] H1 +
[13] T1 10
[14] D1 3000
[15] INC1
[16] END
11-8
Jumps to line 4 if bit 1 is on
Jumps to line 10 if bit 2 is on
Jumps to line 1
Sets the starting speed to 1,000Hz
Sets the operating speed to 3,000
Hz
Sets the rotational direction to CW
Sets the acceleration/deceleration
rate to 10ms/kHz
Executes mechanical home seeking
End of sequence program
Sets the starting speed to 1,000Hz
Sets the operating speed to 3,000
Hz
Sets the rotational direction to CW
Sets the acceleration/deceleration
rate to 10ms/kHz
Sets the amount of movement to
3,000
Executes incremental positioning
operation
End of program
IN1 ON
IN2 ON
MHOME
INC

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents