12 Sample programs
-
113
-
12.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 sequence program
[1] CJMP 1, 1, 4
Jumps to line 4 if bit 1 is on
[2] CJMP 2, 1, 10
Jumps to line 10 if bit 2 is on
[3] JMP 1
Jumps to line 1
[4] VS1 1000
Sets the starting speed to 1000 Hz
[5] V1 3000
Sets the operating speed to 3000 Hz
[6] H1 +
Sets the rotational direction to CW
[7] T1 10
Sets the acceleration/deceleration rate to
10 ms/kHz
[8] MHOME1
Executes mechanical home seeking
[9] END
End of sequence program
[10] VS 1000
Sets the starting speed to 1000 Hz
[11] V1 3000
Sets the operating speed to 3000 Hz
[12] H1 +
Sets the rotational direction to CW
[13] T1 10
Sets the acceleration/deceleration rate to
10 ms/kHz
[14] D1 3000
Sets the amount of movement to 3000
[15] INC1
Executes incremental positioning
operation
[16] END
End of sequence program
IN1 ON
IN2 ON
MHOME
INC
Summary of Contents for EMP400 Series
Page 115: ......