Download I55E-EN-03 CJ1W-MCH72 Motion Control Unit

Transcript
All BASIC commands
Section 4-2
Bit
Function (Encoder Interface)
6
Set this bit to use secondary registration event
7
Secondary registration event occurs on signal:
• 0: rising edge
• 1: falling edge
9, 8
Windowing function choice:
• 00: No windowing
• 01: Inclusive windowing
• 10: Inclusive windowing
• 11: Exclusive windowing
10
Set this bit to use filtering function
Z MARK
SERVO MOTOR
/i
Example
A disc used in a laser printing process requires registration to the Z
marker before it can start to print. The example code locates to the Z
marker, and then sets it as the zero position.
REGIST(1) 'set registration point on Z mark
FORWARD 'start movement
WAIT UNTIL MARK
CANCEL 'stops movement after Z mark
WAIT IDLE
MOVEABS (REG_POS) 'relocate to Z mark
WAIT IDLE
DEFPOS(0) 'set zero position
229