12 Sample programs
-
108
-
12 Sample programs
This section covers examples of basic sequence programs for the
EMP400
.
12.1 Operation by the host controller
IN1 input of CN1: Accepts signals from the host controller
END output of CN1: Sends signals to the host controller
Sample sequence program
[1] PULSE1 2
Sets the pulse output mode to 2-pulse mode
[2] ETIME 50
Sets the END output time to 50 ms
[3] T1 30.0
Sets the acceleration/deceleration rate to
30 ms/kHz
[4] VS1 500
Sets the starting speed to 500 Hz
[5] V1 10000
Sets the operating speed to 10000 Hz
[6] IN 1, 1
Waits until IN1 input is on
[7] D1 2000
Set the movement amount to 2000
[8] H1 +
Sets the rotational direction to CW
[9] INC1
Executes an incremental positioning operation
IN1 input
Motor operation
END output
12.2 Speed change operation by the host controller
IN1 input of CN1: Accepts signals from the host controller
Sample sequence program
[1] PULSE1 2
Sets the pulse output mode to 2-pulse mode
[2] T1 30.0
Sets the acceleration/deceleration rate to
30 ms/kHz
[3] VS1 500
Sets the starting speed to 500 Hz
[4] V1 10000
Sets the operating speed to 10000 Hz
[5] H1 +
Sets the rotational direction to CW
[6] SCAN1
Execute continuous operation
[7] IN 1, 1
Waits until IN1 input is on
[8] V1 2000
Sets the operating speed to 2000 Hz
IN1 input
10000 Hz
2000 Hz
500 Hz
To stop a continuous operation, enter an S command or turn the S-STOP input on.
Содержание EMP400 Series
Страница 115: ......