The text of a manual · part 27 of 32
SYSMAC C200H-NC211 Position Control Unit Operation Manual: SECTION 9 Programming Examples, pages 221 to 229
Pages 221 to 229 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 221
Example 7
Section 9-7
Feeding Pattern
Y axis
10000
No. 1 5000 No. 0 0
10000
20000
X axis
Speed #1, single
X/Y axis 1000 #0, single
(20000, 10000)
(10000, 5000)
Y axis
30000 25000 No. 5 20000 No. 4 15000
No. 3 No. 2
0
30000 40000 50000 60000
X axis
Speed X/Y axis
#3, pause T=0.5 s
#4, pause T=1.0 s
#5, single T=1.0 s
#2, pause (30000, 15000)
216
(40000, 20000)
(50000, 25000)
(60000, 30000)
Page 222
Example 7
Section 9-7
Y axis 30000
21000 20000
No. 11
15000 No. 9 10000
No. 10
No. 8
5000
No. 7 No. 6
0
10000
60000
20000 30000 40000 42000
X axis
Speed X/Y axis #10 continuous #6, continuous
2000
#7 continuous
(10000, 5000)
#8 continuous
(20000, 10000)
#9 continuous
(30000, 15000)
#11, single
(40000, 20000) (42000, 21000)
(60000, 30000)
Y axis 1500 No. 12 –6000 3000 No. 13
X axis
No. 14 –3000
Speed X/Y axis #14 (last action)
#12, pause
T = 0.5 s
(3000, 1500)
(–6000, –3000) (0,0)
#13, pause
217
Page 223
Example 8
9-8
Section 9-8
Example 8
Setting Speed Multiplying the Speed Unit By 10
This example uses Unit no. 0 and the X axis. DM 1003
X X 0 X
Multiplies speed unit by 10
DM 1082
2 0 0 0 x10 Speed No. 1 = 20000 pps
DM 1083
1 0 0 0 x1
DM 1084
1 0 0 0 x10 Speed No. 3 = 10000 pps
DM 1097
0 0 0 A
Speed No. 2 = 1000 pps
Speed unit
1 0 1 0 where, speed No. 1 x 10 speed No. 2 x 1 speed No. 3 x 10
Multiplying the Speed Unit By 100 DM 1003
X X 1 X
Multiplies speed unit by 100
DM 1082
2 0 0 0 x100
Speed No. 1 = 200000 pps
DM 1083
1 0 0 0 x1
Speed No. 2 = 1000 pps
DM 1084
1 0 0 0 x100
Speed No. 3 = 100000 pps
DM 1097
0 0 0 A
1 0 1 0
218
Speed unit where, speed No. 1 x 100 speed No. 2 x 1 speed No. 3 x 100
Page 224
Example 9
9-9
Section 9-9
Example 9
Changing the Target Speed Coefficient Turning ON switches 1 through 3 during operation before a positioning action is started changes the target speed coefficient, and thus the speed of operation. This example use Unit no. 0 and the X axis for the purpose of illustration. CW (pps)
Target speed coefficient 1.5
7500
Target speed coefficient 1.0
5000
Target speed coefficient 0.5
2500 X axis Switch 1 ON
START input
Switch 2 ON
100000
Switch 3 ON
CCW
DM Area Settings ORIGIN Initial RETURN speed speed 1 to F 0 to F DM 1000
1 0 0 0
DM 1001
1 2 1 2
Initial position no. 0 to 52
HIGH- LOW- ORIGIN Origin SPEED SPEED SEARCH prox. JOG JOG speed 1 to F 1 to F
1 to F
1 to F
Positioning action no. 0 Speed Output Dwell Completion code No. time code 1 to F 0 to F 0 to F 0 to 5
DM 1022
1 0 0 0
DM 1023
0 0 0 0
DM 1024
0 1 0 0
DM 1082
5 0 0 0 Speed #1
DM 1083
0 5 0 0 Speed #2
DM 1097
0 0 0 0 Speed units
DM 1098
0 0 0 8 Acceleration
DM 1099
0 0 0 8 Deceleration
Target position
219
Page 225
Example 9
Section 9-9
Program
Start switch DIFU (13) 03000
03000 10000
X axis START command
Switch 1 DIFU (13) 03001
03001 MOV (21) #0005
Target speed coefficient 0.5
102 Switch 2 DIFU (13) 03003 03002 MOV (21) #0010
Target speed coefficient 1.0
102 Switch 3 DIFU (13) 03002
03003 MOV (21) #0015
Target speed coefficient 1.5
102 03001 10107
CHANGE SPEED command
03002
03003 END (01)
Note The START and CHANGE SPEED commands cannot be executed during the same scan.
220
Page 226
Example 10
Section 9-10
9-10 Example 10 Changing Positioning Actions and Using TRANSFER DATA with START DM Area Settings for the X Axis Initial ORIGIN RETURN speed speed 0 to F 1 to F DM 1000
1 0 2 0
DM 1001
1 2 1 2
Initial position no. 0 to 52
HIGH- LOW- ORIGIN Origin SPEED SPEED SEARCH prox. JOG JOG speed 1 to F 1 to F
1 to F
DM 1082
2 0 0 0 Speed #1
DM 1083
0 5 0 0 Speed #2
DM 1084
1 0 0 0 Speed #3
DM 1085
2 5 0 0 Speed #4
DM 1098
0 0 0 6 Acceleration
DM 1099
0 0 0 6 Deceleration
1 to F
DM Area Settings for the Y Axis ORIGIN Initial RETURN speed speed 1 to F 0 to F DM 1100
1 0 2 0
DM 1101
1 2 1 2
Initial position no. 0 to 52
HIGH- LOW- ORIGIN Origin SPEED SPEED SEARCH prox. JOG JOG speed 1 to F 1 to F
1 to F
DM 1182
1 0 0 0 Speed #1
DM 1183
0 5 0 0 Speed #2
DM 1184
1 0 0 0 Speed #3
DM 1198
0 0 0 6 Acceleration
DM 1199
0 0 0 6 Deceleration
1 to F
221
Page 227
Example 10
Section 9-10 Note Although the speeds, acceleration, and deceleration for the Y axis are ignored during interpolation, this data must be input to prevent generation of an alarm.
X Axis Positioning Data DM 0100 Positioning action no. 20
1 0 0 1 0 0 0 0
DM 0112 Positioning action no. 24
6 0 0 1 DM 0103 Positioning action no. 21
1 0 0 1 0 0 0 0
Positioning action no. 22
2 0 0 1 0 0 0 0
DM 0115 Positioning action no. 25
Positioning action no. 23
2 0 0 1 0 0 0 0 7 0 0 0
Positioning action no. 28
3 0 0 1 0 0 0 0
DM 0118 Positioning action no. 26
3 0 0 1 0 0 0 0 6 0 0 1
DM 0127 Positioning action no. 29
1 0 0 3 0 0 0 0 7 0 0 1
6 0 0 0
7 0 0 1 DM 0109
0 0 0 0
DM 0124
6 0 0 1
6 0 0 0 DM 0106
3 0 0 1
4 0 0 1 0 0 0 0 7 0 0 1
DM 0121 Positioning action no. 27
4 0 0 1 0 0 0 0 7 0 0 0
Back Panel Switch Settings ON 1 2 3 4 5 6 7
Expanded DM
8 no. 0-7
9 10
Set to 1 DM 0100-0299
Note Within the C200H DM area (DM 0000-1999), DM 0000 to DM 0999 are read/ write addresses. DM 1000-1999 is read-only memory. The MOV command can rewrite the contents of DM 0000-0999, but not contents of DM 1000-1999.
222
Page 228
Example 10
Section 9-10
Y Axis Positioning Data DM 0200 Positioning action no. 20
1 0 0 1 0 0 0 0
DM 0212 Positioning action no. 24
2 0 0 0 DM 0203 Positioning action no. 21
1 0 0 1 3 0 0 0
Positioning action no. 22
2 0 0 1 0 0 0 0
DM 0215 Positioning action no. 25
Positioning action no. 23
2 0 0 1 3 0 0 0
DM 0218 Positioning action no. 26
3 0 0 1 3 0 0 0
3 0 0 1 0 0 0 0 2 0 0 0
DM 0227 Positioning action no. 29
3 0 0 3 2 0 0 0 3 0 0 1
1 0 0 1 0 0 0 0 2 0 0 0
DM 0221 Positioning action no. 27
2 0 0 0
Operation
Positioning action no. 28
2 0 0 0
2 0 0 0 DM 0209
0 0 0 0
DM 0224
2 0 0 0
2 0 0 0 DM 0206
3 0 0 1
1 0 0 1 3 0 0 0 2 0 0 0
During XY interpolation, the user program changes the X axis data, which is then sent to the NC buffer. After START is executed the data transferred to the buffer is reinitialized. C200H Buffer
RAM
Program changes positioning data. TRANSFER DATA
Buffer Transfer
TRANSFER DATA can be executed whether the data flag is ON or OFF. Buffer transfer can be done only when the busy flag is OFF.
223
Page 229
Example 10
Section 9-10
Program
Start switch DIFU (13) 03000
03000 busy 11012 busy 11512 03002 03002
03002
Positioning completed At-origin 11002 11000
10008
X axis present position reset
10508
Y axis present position reset
At-origin 11502 11012 11512 DIFU (13) 03100
03100 10000
Interpolation START
03200 03100 MOV (21) #6002 DM 0102 MOV (21) #7002 DM 0108 MOV (21) #6002 DM 0114 MOV (21) #7002 DM 0120 MOV (21) #6002 DM 0126 MOV (21) #7002 DM 0129 (continues on next page)
224
Changes the X axis positioning data in the PC