446
Basic Program Examples
Section 11-2
Sample Ladder Program (Emergency Stop)
Note
Deceleration and emergency stops are possible only when the Servo is
locked. If the Servo is unlocked, these stop commands will be ignored. In the
above programming example, the Servo ON Flag is inserted as an output
condition so that DECELERATION STOP, EMERGENCY STOP, and work bits
do not remain ON even if a deceleration stop or emergency stop is executed
when the Servo is not locked.
11-2-10 Jogging
Overview
This sample program performs jogging with the Servo Drive connected via
MECHATROLINK communications. MECHATROLINK communications start
(i.e., a connection is established), and after executing SERVO LOCK, jogging
is executed while the Servomotor is in a servo locked state.
In this programming example, jogging is executed for the Servo Drive regis-
tered at axis 1 when the Jog Bit turns ON in the Axis Operating Output Mem-
ory Area. The Axis Operating Output/Input Memory Areas are based on the
settings of the Common Parameter Area, as shown below. The application
example in
11-3-1 Initial PCU Settings
shows a sample program that can be
used to make the following settings.
Beginning word of Axis Operating Output Memory Area: CIO 0000
(Axis 1 Operating Output Memory Area: CIO 0000 to CIO 0024)
Beginning word of Axis Operating Input Memory Area: CIO 1000
(Axis 1 Operating Input Memory Area: CIO 1000 to CIO 1024)
This sample program uses the following parts of the CPU Unit's I/O memory.
Work Area (WR Area)
W206.00 to W206.01
These Work Area bits are used to create the operation timing for function exe-
cution.
Program name: Emergency Stop
Section name: Emergency Stop
000000
(000000)
1000.12
Axis 1 Error
DIFU
(013)
W205.00
000001
(000003)
1.15
1000.13
Axis 1 Busy
1000.15
1000.12
Axis 1 Error
W205.01
W205.01
000002
(000009)
W205.00
1.01
1522.00
1000.15
1000.12
Axis 1 Error
1.15
1.15
Emergency
Stop execution
condition
Execute Axis 1
Emergency Stop
Axis 1 EMER-
GENCY STOP
Executing Axis 1
Emergency Stop
Axis 1 Stop
Execution
Executing Axis 1
Emergency Stop
Execute Axis 1
Emergency
Stop
Axis 1 EMERGENCY
STOP
Axis 1 SERVO
UNLOCK
Axis 1
Communicating
Axis 1 Stop
Execution
Axis 1
EMERGENCY
STOP
1001.03
Axis 1 Servo
ON Flag
Summary of Contents for CJ1W-NC271 - 12-2009
Page 2: ......
Page 4: ...iv ...
Page 6: ...vi ...
Page 22: ...xxii ...
Page 58: ...30 Starting Operation Section 2 2 ...
Page 244: ...216 Axis Operating Input Memory Areas Section 4 8 ...
Page 264: ...236 Transferring Servo Parameters Section 5 3 ...
Page 396: ...368 Linear Interpolation Section 9 7 ...
Page 648: ...620 List of Error Codes Appendix D ...
Page 674: ...646 Additional Functions for the CJ1W NCF71 MA Appendix F ...
Page 684: ...656 Index ...
Page 686: ...658 Revision History ...