The text of a manual · part 12 of 32
SYSMAC C200H-NC211 Position Control Unit Operation Manual: SECTION 4 Commands, pages 84 to 93
Pages 84 to 93 of 259, from SYSMAC C200H-NC211 Position Control Unit Operation Manual
The original document is the PDF (1.1 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Omron C200H-NC211
Page 84
Section 4-1
Setting Up Data Memories Zone Settings 15
00
Zone 0 CW x102 x101 x100
Direcm+10 tion x106 x105 x104 m+9 x103
15 m+10 Direcx106 tion
0
CW
1
CCW x105 m+9 x104 x103 x102 x101 x100
00
Zone 0 CCW x102 x101 x100
Direcm+12 tion x106 x105 x104 m+11 x103 m+12 Direcx106 tion
0
CW
1
CCW x105 m+11 x104 x103 x102 x101 x100
Zones 1 and 2, CW/CCW are set similarly. m+13 m+14 m+15 m+16 m+17 m+18 m+19 m+20
Zone 1 CW Zone 1 CCW Zone 2 CW Zone 2 CCW
The CW and CCW sides of Zones 0, 1 and 2 form two sets of data. When the values of all four word are 0, it is assumed that there is no zone setting and no decision is executed. When the origin is confirmed and the current position is acquired, this decision is executed.
77
Page 85
Section 4-1
Setting Up Data Memories X: DM word m+21 Y: DM word m+121
Origin Signal and Proximity Signal Position Command Data 15-12
11-08
07-04
03-01
M+22
Completion Code Position Dwell Time Output Code Target Speed Number Positioning Data 15
00
M+23 x103 x102 x101 x100
M+24
Direcx106 tion x105 x104
04 m+21
00
(m=1000 + 100 x unit number) 0
0
00 0 bit
Designation
1
0
00
ORIGIN SEARCH direction
CCW
CW
01
Origin proximity signal presence present absent
02
Origin proximity type
N.O.
N.C.
03
Origin signal type
N.O.
N.C.
04
ORIGIN SEARCH method present absent
N.O: Normally-open contacts N.C: Normally-closed contacts
78
Page 86
Section 4-1
Setting Up Data Memories Positioning Actions
X: DM words m+22 through m+81/DM words l through l+98 Y: DM words m+122 through m+181/DM words l+100 through l+198 Positioning actions (or sequences) consist of a completion code, dwell time, output code, speed number, and target position. These actions are generally referred to by number and completion code. For example, “#6, continuous” indicates positioning action #6 with a completion code of 2 (continuous). The settings for positioning action #0, DM words m+22 through m+24, are explained below. The same procedure is followed for any other positioning action. Refer to Section 3-3 DM Area Allocations for detailed word and bit allocations. If you are using an expanded DM area, set positioning action #s 20-52 in the same way.
Completion Code
X: Bits 03-00 of DM word m+22 Y: Bits 03-00 of DM word m+122 Set from 0 to 5 to specify the one of the six types of completions (described below). Also refer to Section 5-4 Execution Examples. 03 to 00 m+22 Completion code: 0 to 5
Only codes 0 through 3 can be used with interpolation; codes 4 and 5 cannot be used.
0
Single
1
Pause
2
Continuous
3
Bank
4
Extended
5
Extended with positioning
79
Page 87
Section 4-1
Setting Up Data Memories 0: Single
The target position and target speed are reached and feeding stops. After completion of this action, START is required to execute the next positioning action. Target speed Deceleration
Acceleration Initial speed
Stop from initial speed Time START
1: Pause
Target position
The target position and target speed are reached, and the next positioning action is automatically started following the dwell time. Target speed
Time Dwell time START
Pause Start of next positioning action
2: Continuous
As soon as the target position for the first positioning action is reached, the next positioning action is started. The first target position is reached at the target speed set for the next positioning action, so that the next positioning action can be executed immediately. Target speed for first positioning action Target speed for next positioning action
Time START
80
Target position for first positioning action
Page 88
Section 4-1
Setting Up Data Memories 3: Bank end
The term “bank” refers to a combination of several positioning actions or sequences. The target position and target speed are reached and feeding stops. The next positioning action to be executed will be the initial positioning action number in bits 07-00 of DM word m. START is required to resume execution of positioning actions. Target speed
Time START
4: Extended
Stop
The Unit continually outputs pulses at the speed set for the positioning action. The Unit will not calculate the present position, and the no-origin flag (bit 11 of word n+10) will go ON during operation. The direction of pulse output is determined by the direction digit set in the positioning data. Extended positioning actions are terminated with STOP. START is required to resume execution of positioning actions. Target speed
Time START
Stop STOP executed
81
Page 89
Section 4-1
Setting Up Data Memories 5: Extended With Positioning
The Unit continually outputs pulses at the speed set for the positioning action. The Unit will not calculate the present position, and the no-origin flag (bit 11 of word n+5) will go ON during operation. The direction of pulse output is determined by the direction bit set for the positioning action. When STOP is executed, the present position is reset and positioning is executed according to the data set for the positioning action. START is required in order to resume execution of positioning actions.
Target speed
(B) Present position reset;. No-origin flag OFF
Time (C) Stop
START
(A) STOP executed CHANGE SPEED valid
CHANGE SPEED cannot be executed. The extended action can be terminated by executing STOP again.
STOP can be executed by either an external input signal or by setting bit 15 of IR word n. For details, refer to Section 5-6 STOP.
82
Page 90
Section 4-1
Setting Up Data Memories Delay Time
From position A to position B in the above diagram, there is a delay time of approximately 2 ms. From position B to position C, there may be a maximum additional delay time of 2 ms. The delay time between points A and B does not affect the present position set in words n+13 and n+14. During the delay time between B and C, the present position in those words is reset to zero and then updated. The delay time is also output to those words. Positioning Action No. 0 for Unit No.0 Speed #1: 10K pps DM 1022
1
0
0
5
DM 1023
0
0
0
0
DM 1024
0
0
0
1
Completion code: 5 Target position: 10000
Direction: CW
After STOP, the present position is as follows: Word 113
0
0
0
3
Word 114
0
0
0
1
In this example, the present position after operation has stopped is 10003. Since the target position was 10000, the actual position has exceeded the target position by 3 pulses. Since the speed was set to 10K pps, 3/10,000 = 0.003 s = 0.3 ms. Thus the delay time is 0.3 ms. If the target position is near the position at which STOP is executed, pulse output will cease before deceleration is completed. However, no error code will be output. Also remember that the next START cannot be executed while the STOP command bit is set to one.
83
Page 91
Section 4-1
Setting Up Data Memories Dwell Time
X: Bits 07-04 of DM word m+22 Y: Bits 07-04 of DM word m+122 07-04 m+22
0
ORIGIN SEARCH dwell time Set to an integer between 0 and F (hex) in units of 0.1 seconds. After pulse output stops and the dwell time has elapsed, the busy flag turns OFF and the next action is enabled. The next action can be executed when the busy flag turns OFF after the dwell time has expired. In other words, the positioning completed flag remains OFF and the busy flag remains ON until the dwell time has expired. (Refer to Section 5-4 Execution Examples.) Output Code
X: Bits 11-08 of DM word m+22 Y: Bits 11-08 of DM word m+122 Set to an integer between 0-F (hex). These codes can be set as desired by the user. Upon completion of the positioning action, they are output to bits 11-08 of word n+12 in the OUT refresh area.
15 to12 11 to 08 m+22
Output code: 0 to F (hexadecimal) Positioning action number
(Output to word n+12, bits 11 to 08.)
Target speed number: 1 to F (hexadecimal) n+12
11 to 08 07
84 x100 x101 to
00
Page 92
Section 4-1
Setting Up Data Memories Target Speed Number
X: Bits 15-12 of DM word m+22 Y: Bits 15-12 of DM word m+122 Set to a value between 1 and F (hex). The speed numbers set here refer to the speeds set in DM words m+82 through m+97/bit 04 of DM word m+3. The speed unit is set in DM word m+97 and bit 04 of word m+3. A speed coefficient is set in bits 05 of word m+2; its setting is explained in Section 6-1 IR Area Settings.
Target Position
X: DM words m+23 and m+24 Y: DM words m+123 and m+124 The target position is set by the lowest seven digits, i.e., all four digits of word 23 and the lowest three digits of word 24. The remaining digit of word 24 is used as the direction digit. (Refer to Section 3-3 DM Area Allocations.) Maximum values are as follows: CW: 8388606 pulses CCW: 8388607 pulses Absolute values are measured from the origin. Increment values are measured from the present position. Positions resulting from increments must be between –8,388,607 and +8,388,606.
15
00 x101 x100 m+23 x103 x102 m+24
Sign x106 x105 x104
0
CW
1
CCW
2
CW
3
CCW
4
CW
5
CCW
6
CW
7
CCW m+24 Direc- x106 tion x105 m+23 x104 x103 x101 x101 x100
Target position: Set with 7-digit BCD absolute value Single axis end point incremental value absolute value
A Y axis direction setting for interpolation can be chosen from 0-3 or from 4-7. Interpolation end point incremental value
85
Page 93
Section 4-1
Setting Up Data Memories CW CCW direction increment value
Absolute 8388606 value Single axis end point Present position
CCW direction increment value
Interpolation end
–8388607 CCW
(Origin) Absolute value
Target position 8388606 CW
0 CCW direction increment value
CCW
CW direction increment value
Absolute value
–8388607 Absolute value
Absolute value expresses a displacement from the origin. Increment value expresses a displacement from the present position. When set for single-axis completion, the X and Y axes operate separately. When interpolated completion is set, linear positioning between the present position and target position is carried out. The result of adding an increment value to the present position must be positive for CW movement and negative for CCW movement. Note that the TEACH command can be used to write target positions into the DM area. Refer to Section 7 TEACH for details. Interpolation Settings
86
When setting an interpolation end point, choose a direction setting from four and seven for the target position, and set the same positioning action number for the X and Y axes. Interpolation begins when the X axis START command bit (bit 00 of word n) turns ON. The positioning action number executed for X axis will also be executed for the Y axis. If Y axis START command bit (bit 00 of word n+5) is ON, nothing will be executed except independent Y axis operation. Execution is carried out with the initial positioning action number, initial speed number, acceleration, deceleration, target speed number, output code, and dwell time set for the X axis. During interpolation, completion code 2 (Continuous) cannot be used with single-axis operation and completion code 3 (Bank end) cannot be used for the X axis only. When X-axis completion is set to code 2 or 3, the Y-axis completion code will also become code 2 or 3, with the completion code setting for the Y axis being ignored. Interpolation with completion codes 4 (Extended) and 5 (Extended with positioning) is also not carried out.