The text of a manual · part 13 of 32
SYSMAC C200H-NC211 Position Control Unit Operation Manual: SECTION 4 Commands, pages 94 to 103
Pages 94 to 103 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 94
Section 4-1
Setting Up Data Memories When the X-axis Positioning Action Number is 0 m+22 Target speed
Output code m+24 Dwell time m+23
Comple- Direction tion code
Set between 4 and 7 Set to 0 Single, 1 Pause, 2 Continuous, or 3 Bank. Cannot be set to 4 Extended or 5 Extended with positioning. These settings become interpolation data.
When the Y-axis Positioning Action Number is 0
When the Y axis positioning action number is 0, use the same data settings as for the X axis.
m+122 Target speed
Output code m+124
Dwell time m+123
Comple- Direction tion code
Set between 0 and 3, or between 4 and 7 When the X-axis completion code is 2, this setting is ignored.
These settings are ignored.
The target speed set for the X axis becomes the interpolation speed for both the X and Y axes. The velocity component for each axis is illustrated below. Y axis
Interpolation end point
ν
ν : Interpolation speed νx : X-axis speed νy : Y-axis speed
νy θ Origin
νx = ν cos θ νy = ν sin θ
νx X axis
Also refer to the programming examples in Section 9.
87
Page 95
Section 4-1
Setting Up Data Memories Cautions for Using Completion Code 2: Continuous 1. Stepping Motor
Avoid using continuous completion, code 2, with the stepping motor. During interpolation, pulses are output in accordance with the speed changes set for the interpolation and the programmed trajectory. When interpolation is executed continuously, changes in speed for the X and Y axes cause pulses to be output rapidly, and to be stopped suddenly. If the stepping motor does not follow these changes in speed, misadjustment occurs. Consequently, it is prudent to use completion code 2 (Continuous) as little as possible with the stepping motor. Instead, use completion code 1 (Pause).
Interpolation operation Y axis (pulse)
Interpolation speed (PPS)
A
Positioning action #
B a b #2 #2 Continuous Continuous Speed change point A
45° Time point B
0
X axis speed change X-axis speed (PPS) b
1 2a 1 2b
Time
Y axis speed change Y-axis speed (PPS) 1 2a 1 2 b
Time
88
Position
X axis (pulse)
Page 96
Section 4-1
Setting Up Data Memories 2. Programs
During continuous operation, direction cannot be reversed until completion of the positioning action. The following examples illustrate operations that cannot be carried out, because the X axis positioning actions No. 1 and No. 3, and the Y axis positioning actions No. 0 and No. 2, are in the opposite directions. Instead of continuous completion, use completion code 1 (Pause) for positioning action No. 1, or for all the positioning actions.
CW CW Y axis
X axis
Positioning action #0 #1
#2
2: Contin- 2: Con. 2: Con. uous
#3 3: Bank end Time
Origin CCW CW CCW 0
CW X axis
Y axis Time
CCW
89
Page 97
Section 4-1
Setting Up Data Memories 3. Pulse Displacement
Pulse displacement can occur at continuous transition points. C B
νn A’
νc
0-A interpolation speed = A-B interpolation speed =
νc νn
A Pulse displacement
θc 0
The amount depends on the settings of the program, but pulse displacement invariably occurs when continuous completion is used with interpolation. The maximum pulse displacement vector is
Vn , 250 so displacement in the X direction is between 0 and
Vn cos θ , c 250 and displacement in the Y direction is between 0 and
Vn sin θc. 250
Displacement occurs because acceleration/deceleration patterns for interpolation receive priority. During continuous positioning there is no displacement at the final point (C in the diagram above), so positioning can be executed accurately at that point. For accurate positioning at intermediate points, use completion code 1 (Pause).
90
Page 98
Section 4-1
Setting Up Data Memories Speeds
Slight differences exist between speeds set in the DM area and actual speeds. These differences do not affect positioning accuracy. m+82 m+182
15 to 00
Speed #1
0000 to 9999 (BCD)
m+83 m+183
15 to 00
Speed #2
0000 to 9999 (BCD)
m+84 m+184
15 to 00
Speed #3
0000 to 9999 (BCD)
m+85 m+185
15 to 00
Speed #4
0000 to 9999 (BCD)
m+86 m+186
15 to 00
Speed #5
0000 to 9999 (BCD)
m+87 m+187
15 to 00
Speed #6
0000 to 9999 (BCD)
m+88 m+188
15 to 00
Speed #7
0000 to 9999 (BCD)
m+89 m+189
15 to 00
Speed #8
0000 to 9999 (BCD)
m+90 m+190
15 to 00
Speed #9
0000 to 9999 (BCD)
m+91 m+191
15 to 00
Speed #10
0000 to 9999 (BCD)
m+92 m+192
15 to 00
Speed #11
0000 to 9999 (BCD)
m+93 m+193
15 to 00
Speed #12
0000 to 9999 (BCD)
m+94 m+194
15 to 00
Speed #13
0000 to 9999 (BCD)
m+95 m+195
15 to 00
Speed #14
0000 to 9999 (BCD)
m+96 m+196
15 to 00
Speed #15
0000 to 9999 (BCD)
Settings between 92 and 250,000 pps Actual speed (pps) =
6,000,000 INT(6,000,000/set value)
where, INT:
Nearest integer
INT(6,000,000/set value): Divider ratio pps:
pulses per second
Pulse output (actual speed)
6 MHz
Counter LSI Divider
The slight difference occurs because a 6-MHz source clock is divided by the integral divider ratio.
91
Page 99
Section 4-1
Setting Up Data Memories Example Values:
Set Value (pps)
Actual Speed (pps)
250,000
250,000.00
180,000
181818.18
140,000
142,857.14
95,000
95,238.10
3,500
3,500.58
92
92.00
Settings between 1 and 91 pps 23,437.5
Actual speed (pps) =
INT(23,437.5/set value)
Pulse output (actual speed) 23,437.5 Hz Divider
A 23,437.5 Hz source clock is divided by the integral divider ratio. Example Values:
92
Set Value (pps)
Actual Speed (pps)
91
91.20
60
60.10
Page 100
Section 4-1
Setting Up Data Memories Speed Unit Multiplier
Word X-axis m+97
15-12
11-08
Bit
Y-axis m+197
07-04
00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15
03-01
M+97 0
Function Not used Unit for speed #1 Unit for speed #2 Unit for speed #3 Unit for speed #4 Unit for speed #5 Unit for speed #6 Unit for speed #7 Unit for speed #8 Unit for speed #9 Unit for speed #10 Unit for speed #11 Unit for speed #12 Unit for speed #13 Unit for speed #14 Unit for speed #15
DM word m+3(X)/m+103(Y) bit 04:0 0 x 1 pps
1 x 10 pps
DM word m+3(X)/m+103(Y) bit 04:1 0 x 1 pps
1 x 100 pps
Each bit sets the corresponding speed as follows. Bit 00 is not used. • Bit 00 is not used • Bit 01 is assigned to speed no.1 • Bit 02 is assigned to speed no.2 • Bit 03 is assigned to speed no.3 • Bit 15 is assigned to speed no.15
93
Page 101
Section 4-1
Setting Up Data Memories Acceleration/Deceleration
Acceleration: X: M word m+98 Y: DM word m+198 Deceleration: X: DM word m+99 Y: DM word m+199
15
00 m+98 x103 x102 x101 x100
Acceleration: 2-2000 (BCD)
m+99 x103 x102 x101 x100
Deceleration: 2-2000 (BCD)
Indicates the speed change per millisecond (pps: pulse/second).
Trapezoidal Acceleration/Deceleration
An internal calculation process is used to create a trapezoidal figure from speed, acceleration, and deceleration settings. Speed
Time
When accelerating or decelerating between two speeds, the speed is varied every unit time in a stepwise fashion. To achieve this, acceleration and deceleration tables are created internally when the Unit is first operated or when TRANSFER DATA is used to alter data.
94
Page 102
Unit Table Creation
4-2
Section 4-2
Unit Table Creation The internal processing of the Position Control Unit is as follows during table creation. 1, 2, 3...
1. The speed difference, ∆V, is obtained to express the range of speed settings. ∆V = MAX – MIN where, MAX: Twice the maximum set value (not to exceed 250,000). MIN: Speed indicated by initial speed number. 2. The number of division steps, L, is determined such that the unit time for each step is 4 ms. The maximum number of steps is 250. L = (∆V/R) 4 where, R: Acceleration or deceleration data, whichever greater. ∆V/R: Acceleration (or deceleration) time between MAX and MIN 3. Next, the speed difference (∆υ) for each step is obtained. ∆υ = (∆V/L) 4. The divider ratios for all steps are calculated and set in a table. Target (step) speed
Division ratio
Step 1
Min
2
MIN + ∆υ
3
MIN + 2 x ∆υ
L
MAX
The dividing ratio is an integer value explained on the preceding page.
95
Page 103
Unit Table Creation
Section 4-2 5. Example: Start speed Maximum value of speed data Nos. 1 to 15 Acceleration Deceleration ∆V = 20000 x 2 = 40000 L = (∆V/R) = (40000/100) = 100 4
0 (pps) 20,000 (pps) 100 (pps/1ms) 100 (pps/1ms)
4
∆υ = 40000/100 = 400 υ (Speed) pps
4 ms
40000 39600 39200 38800
400
R = 400= 100 4
20400 20000 19600 19200 1600 1200 800 400 t (Time) 4
96
8
192 200 12 196 204
392 400 ms 388 396