12 Sample programs
-
110
-
12.4 Repeating positioning operations
12.4.1.
When movement amount is set in pulses
Motor to be used:
AS46AA
Movement amount per pulse: 0.36 degrees
START
Positioning
operation
Stops 1 second.
Moves 9°× 5 times.
Stops 1 second.
Moves 18°× 5 times.
Moves 90°
9°× 5 times
= 45°
90°
Starting point
18°× 5 times
= 90°
[1] PULSE1 2
Sets the pulse output mode to 2-pulse mode
[2] UNIT 1, 1
Sets the unit of movement amount to pulses
[3] T1 50
Sets the acceleration/deceleration rate to 50 ms/kHz
[4] VS1 500
Sets the starting speed to 500 Hz
[5] V1 1200
Sets the operating speed to 1200 Hz
[6] H1 +
Sets the rotational direction to CW
[7] MHOME1
Executes mechanical home seeking
[8] LOOP 5
Repeats steps 8 through 12 five times
[9] D1 25
Sets the amount of movement to 25 pulses (rotates 9 degrees)
[10] INC1
Executes incremental positioning operation
[11] DELAY 1
Sets the delay to 1 second
[12] ENDL
End of loop
[13] D1 250
Sets the amount of movement to 250 pulses (rotates 90 degrees)
[14] INC1
Executes incremental positioning operation
[15] LOOP 5
Repeats steps 15 through 19 five times
[16] D1 50
Sets the amount of movement to 50 pulses (rotates 18 degrees)
[17] DELAY 1
Sets the delay to 1 second
[18] INC1
Executes incremental positioning operation
[19] ENDL
End of loop
Содержание EMP400 Series
Страница 115: ......