![Omron CJ1W-MA - REV 10-2008 Скачать руководство пользователя страница 442](http://html1.mh-extra.com/html/omron/cj1w-ma-rev-10-2008/cj1w-ma-rev-10-2008_operation-manual_742343442.webp)
415
Basic Program Examples
Section 11-2
Sample Ladder Program
11-2-6 Positioning (Absolute Movement or Relative Movement)
Overview
This sample program sends a positioning command to a Servo Drive con-
nected 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.
In addition, when executing ABSOLUTE MOVEMENT, establish the origin by
performing an origin search before sending the position command.
In this example, positioning is performed on the Servo Drive registered as axis
1 using the ABSOLUTE MOVEMENT Bit or RELATIVE MOVEMENT Bit in the
Axis Operating Output Memory 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 Areas: CIO 0000
(Axis 1 Operating Output Memory Area: CIO 0000 to CIO 0024)
Beginning word of Axis Operating Input Memory Areas: 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
in addition to the CIO Area words listed above.
Work Area (WR Area)
W201.00 to W201.03
Program name: Origin Search
Section name: Origin Search
000000
(000000)
1000.06
1000.13
Axis 1 Busy
1000.12
Axis 1 Error
W350.00
000001
(000005)
W350.01
1001.08
1000.06
Axis 1 No Origin
TIM
0002
#100
[OP1]
Origin Search Watchdog Timer
[OP2]
000002
(000009)
T0002
1000.06
Axis 1 No Origin
W350.02
000003
(000012)
0.06
1000.06
1000.13
Axis 1 Busy
1000.15
1000.12
Axis 1 Error
W350.02
Axis 1 Origin Search Timeout
W350.01
W350.01
000004
(000020)
W350.00
1.01
1.15
0.15
1522.00
1000.13
Axis 1 Busy
1000.12
Axis 1 Error
0.06
Axis 1 ORIGIN SEARCH
0.06
Axis 1 ORIGIN SEARCH
Origin Search
execution
condition
Axis 1 No
Origin
Searching for
Axis 1 Origin
Axis 1
Distribution
Completed
Execute Axis 1 Origin
Search
Origin Search
Watchdog
Timer
Axis 1 Origin Search
Timeout
Axis 1 ORIGIN
SEARCH
Axis 1 No
Origin
Searching for
Axis 1 Origin
Axis 1 STOP
EXECUTION
Execute Axis
1 Origin
Search
Axis 1 SERVO
UNLOCK
Axis 1
EMERGENCY
STOP
Axis 1 DE-
CELERATION
STOP
Axis 1
Communicating
Searching for Axis 1
Origin
Содержание CJ1W-MA - REV 10-2008
Страница 3: ...iv ...
Страница 5: ...vi ...
Страница 21: ...xxii ...
Страница 57: ...30 Starting Operation Section 2 2 ...
Страница 97: ...70 Wiring Section 3 4 ...
Страница 247: ...220 Transferring Servo Parameters Section 5 3 ...
Страница 281: ...254 Standard Settings for Servo Drives Using MECHATROLINK Section 6 4 ...
Страница 343: ...316 Absolute Encoder Origin Section 8 6 ...
Страница 375: ...348 Linear Interpolation Section 9 7 ...
Страница 423: ...396 DEVIATION COUNTER RESET Section 10 10 ...
Страница 631: ...604 Additional Functions for the CJ1W NCF71 MA Appendix F ...
Страница 641: ...614 Index ...
Страница 643: ...616 Revision History ...