Download Machine Controller MP2200 USER'S MANUAL

Transcript
3.2 Sample Program 1: Manual Operation
(2) H01 Drawing
The H01 child drawing turns ON the Servo, resets alarms, and sets common parameters.
Main Program
Processing of Common Axis Setting
########## Processing of common axis settings ##########
########## Motion command detection ##########
Axis 1 motion command 0 detection
Axis 1 motion command 0
Axis 2 motion command 0 detection
Axis 2 motion command 0
########## Servo ON ##########
Axis 1 Servo ON
Servo ON PB
Axis 1 SVC_RDY
Axis 1 SV_ON
Axis 2 SVC_RDY
Axis 2 SV_ON
3
Axis 2 Servo ON
Servo ON PB
########## Alarm reset ##########
Axis 1 alarm reset
Alarm reset PB
Axis 1 ALM_RST
Axis 2 alarm reset
Alarm reset PB
Axis 2 ALM_RST
########## Speed unit and acceleration speed unit selection ##########
Bits 0 to 3: Speed unit selection (0: Reference unit/s2 ; 1: Reference unit/min2 ; 2: %
Bits 4 to 7: Acceleration speed unit selection (0: Reference unit/s2 ; 1: ms)
Axis 1 function setting 1 (units)
Axis 1, function setting 1 workpiece
Axis 1, function setting 1
Axis 2 function setting 1 (units)
Axis 2, function setting 1 workpiece
Axis 2, function setting 1
3-41