
413
Basic Program Examples
Section 11-2
Sample Ladder Program
Note
With the above programming example, if the Servo is unlocked by any means
other than the SERVO UNLOCK command bit (e.g., if a Driver main circuit
OFF error occurs), the status of the work bit will be held. When using this pro-
gramming example as reference for actual programming, add interlocks suit-
able for the operating conditions of the equipment.
11-2-5 Origin Search
Overview
This sample program executes an origin search on a Servo Drive connected
through MECHATROLINK communications.
Execute this sample program only after starting MECHATROLINK communi-
cations (establishing a connection), executing the Servo Lock function, and
verifying that the Servo Lock is engaged.
Program name: Servo Lock
Section name: Servo Lock
000000
(000000)
W305.04
1000.12
Axis 1 Error
1000.13
Axis 1 Busy
1001.03
Axis 1 Servo ON
W305.00
Execute Axis 1 Servo Lock
W305.04
W305.01
Execute Axis 1 Servo Unlock
000001
(000010)
W305.00
1522.00
1000.13
Axis 1 Busy
W305.05
Axis 1 Servo Lock Execution Timeout
1.00
Axis 1 SERVO LOCK
1.00
Axis 1 SERVO LOCK
000002
(000016)
W305.01
1522.00
W305.03
Axis 1 Servo Unlock End
1.01
Axis 1 SERVO UNLOCK
W305.05
1.01
Axis 1 SERVO UNLOCK
000003
(000022)
1.01
1000.13
Axis 1 Busy
DIFD
(014)
W305.03
Axis 1 Servo Unlock End
000004
(000025)
1.00
1.01
W305.05
W305.04
W305.04
TIM
0001
#50
[OP1]
Servo Lock Execution Watchdog Timer
[OP2]
000005
(000031)
T0001
1001.03
Axis 1 Servo ON
W305.05
Servo Lock
Switch
execution
condition
Axis 1
Servo Lock
Command
Axis 1 Servo
Lock Command
Execute Axis 1
Servo Lock
Axis 1
Communicating
Execute Axis 1
Servo Unlock
Axis 1 Servo
Lock Execution
Timeout
Axis 1
Communicating
Axis 1 SERVO
UNLOCK
Axis 1 SERVO
LOCK
Axis 1 Servo
Lock Command
Axis 1 SERVO
UNLOCK
Axis 1 Servo
Lock
Execution
Timeout
Servo Lock
Execution
Watchdog
Timer
Axis 1 Servo Lock
Execution Timeout
Axis 1 Servo Lock
Command
Summary of Contents for CJ1W-MA - REV 10-2008
Page 3: ...iv ...
Page 5: ...vi ...
Page 21: ...xxii ...
Page 57: ...30 Starting Operation Section 2 2 ...
Page 97: ...70 Wiring Section 3 4 ...
Page 247: ...220 Transferring Servo Parameters Section 5 3 ...
Page 281: ...254 Standard Settings for Servo Drives Using MECHATROLINK Section 6 4 ...
Page 343: ...316 Absolute Encoder Origin Section 8 6 ...
Page 375: ...348 Linear Interpolation Section 9 7 ...
Page 423: ...396 DEVIATION COUNTER RESET Section 10 10 ...
Page 631: ...604 Additional Functions for the CJ1W NCF71 MA Appendix F ...
Page 641: ...614 Index ...
Page 643: ...616 Revision History ...