The text of a manual ยท part 25 of 32
SYSMAC C200H-NC211 Position Control Unit Operation Manual: SECTION 9 Programming Examples, pages 203 to 211
Pages 203 to 211 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 203
Example 2
Section 9-2
Program X-axis start switch DIFU(13) 3000 Y-axis start switch DIFU(13) 3100 Busy flag 03000 11012 10002 X axis ORIGIN SEARCH Busy flag 03100 11512 10502 Y axis ORIGIN SEARCH No origin 10011 No origin 11511
At origin Busy 11002 11012 10000
X axis START
10500
Y axis START
At origin Busy 11502 11512
X-axis positioning completed flag 11000 DIFU(13) 3001 Y-axis positioning completed flag 11500
DIFU(13) 3101
03001 11002 03002 03002 03101 11502
03102
03102 03002 11012 10008
X axis present position reset
10508
Y axis present position reset
10015
X axis STOP
10515
Y axis STOP
03102 11512
X-axis operation stop switch
Y-axis operation stop switch
END(01)
198
Page 204
Example 3
9-3
Section 9-3
Example 3
Using the Origin and Origin Proximity Signals Configuration (mode 0) Position Control Unit #0
C200H PC
22/34 Power supply
18
CW limit
17
CCW limit
24 VDC X axis
10 11
Origin
7
Proximity
19
Emergency stop
32 33
Origin
29
Proximity
21
CW limit
20
CCW limit
Y axis
DM Area Settings DM 1021
0
0
0
6
4 3 21 0
0 0 11 0 Direction (CW) Proximity signal present Origin proximity N.O. contact Origin N.O. contact No proximity reverse
199
Page 205
Example 3
Section 9-3
Operation SW 10002
X axis ORIGIN SEARCH
10502
Y axis ORIGIN SEARCH
SW
The possible search patterns for ORIGIN SEARCH using both an origin signal and an origin proximity signal are shown below. Origin proximity signal
1 0
Pulse output CCW
CCW
CW
START
Origin (Stop)
START
CCW
Origin (Stop)
START Origin (Stop)
200
CW
CW CW limit
Page 206
Example 4
9-4
Section 9-4
Example 4
Positioning After ORIGIN SEARCH Operation
Operation alternates between an initial positioning action and ORIGIN RETURN, using a point on the X axis as a reference (point A in the diagram below). After STOP switch input, operation returns to the origin and stops. Speed No. 1 Positioning action No. 0 (START)
ORIGIN SEARCH 0 Origin proximity signal Origin (or Z encoder signal)
10000 point A
DM Area Settings ORIGIN Initial RETURN speed speed 1 to F 0 to F DM 1000
1 1 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 time No. code 1 to F 0 to F 0 to F 0 to 5
DM 1022
1 0 0 3
DM 1023
0 0 0 0
DM 1024
0 0 0 1
DM 1082
5 0 0 0 Speed No. 1
DM 1083
0 5 0 0 Speed No. 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
DM 1021
0
0
0
E
4 3 21 0
0 1 11 0 Direction (CW) Proximity signal present Origin proximity N.O. contact Origin N.O. contact No proximity reverse
201
Page 207
Example 4
Section 9-4
Program Start switch DIFU(13) 3000 03000
Busy flag 11012
No origin Stop switch 11011
At origin 11002
10002
ORIGIN SEARCH
10000
START
Busy flag 11012
Start completed DIFU(13) 3001 11000 03001
11012 10003
END (01)
202
ORIGIN RETURN
Page 208
Example 5
9-5
Section 9-5
Example 5
Point to Point Operation on Both the X and Y Axes This example shows how to use ORIGIN SEARCH, present position reset, or START after present position reset to operate simultaneously on both the X and Y axes. (Unit No. 0 is used for the purpose of this example.) 1. Independent Operation CW B (0, 5000)
A (10000, 5000)
Y axis pulse
CW Origin
X axis pulse
In the diagram above, single axis positioning is executed from the origin (0, 0) to point B (0, 5000) on the Y axis, followed by point A (10000, 5000) on the X axis. X axis START use the Y axis positioning completed flag (bit 00 of word n+15). When simultaneous operation on both axes is executed with the same DM area settings, X axis START receives priority. It takes 10-50 ms to process X axis START, and Y axis START must wait for that processing to finish. DM Area Settings
X axis
Y axis
DM 1000
1 0 0 0
DM 1100
1 0 0 0
DM 1001
1 2 1 2
DM 1101
1 2 1 2
Initial ORIGIN RETURN speed speed 1 to F 0 to F
Initial position No. 0 to 52
HIGH- LOW- ORIGIN Origin SPEED SPEED SEARCH prox. JOG JOG speed speed 1 to F 1 to F
1 to F
1 to F
Positioning action no. 0 Speed Output Dwell Completion code time No. code 1 to F 0 to F 0 to F 0 to 5
DM 1022
1 0 0 3
DM 1122
1 0 0 3
DM 1023
0 0 0 0
DM 1123
5 0 0 0
DM 1024
0 0 0 1
DM 1124
0 0 0 0
DM 1082
1 0 0 0
DM 1182
1 0 0 0
Speed No. 1
DM 1083
0 1 0 0
DM 1183
0 1 0 0
Speed No. 2
DM 1098
0 0 0 5
DM 1198
0 0 0 5
Acceleration
DM 1099
0 0 0 5
DM 1199
0 0 0 5
Deceleration
Target position
203
Page 209
Example 5
Section 9-5
Program
The following diagram shows a program for executing START independently on each axis. Start switch Y axis positioning Y axis Busy flag completed flag 11512 11500
X axis Busy flag 11012
DIFU(13) 10500
Y axis START
DIFU(13) 10000
X axis START
The next diagram shows the program for simultaneous START on both axes. Start switch DIFU(13) 10000
DIFU(13) 10500
Note When operations are started on both axes simultaneously, the X axis receives priority. It takes 10-50 ms to process X axis START, and Y axis START must wait for that processing to finish.
204
Page 210
Example 5
Section 9-5
2. Interpolation Operation with Independent Axis START No. 1
CW B (0, 5000)
A (10000, 5000)
X axis
No. 0 CW
Y axis pulse
(B)
Interpolation START
B
(A)
A
No. 0 No. 1
Y axis
CW
CW
X axis pulse
Origin
The same operation as in Example 1 is possible with interpolation; there are more DM area settings to make, but the program itself is simpler. The completion code in DM word 1022 changes from #1 (Single) to #2 (Continuous), allowing continuous operation (shown by the dotted lines in the diagram). For interpolation START, use X axis START. DM Area Settings X axis
Y axis
DM 1000
1 0 0 0
DM 1100
* * * 1 0 0 0
DM 1001
1 2 1 2
DM 1101
1 2 1 2
Initial ORIGIN RETURN speed speed 0 to F 1 to F
Initial position no. 0 to 52
HIGH- LOW- ORIGIN Origin SPEED SPEED SEARCH prox. JOG JOG speed speed 1 to F 1 to F
1 to F
DM 1022
1 0 0 1
DM 1122
* * * 1 0 0 1
DM 1023
0 0 0 0
DM 1123
5 0 0 0
DM 1024
4 0 0 0
DM 1124
DM 1025
1 1 0 3
DM 1125
0 0 0 0 1* 1* 0* 3
DM 1026
0 0 0 0
DM 1126
0 0 0 0
DM 1027
4 0 0 1
DM 1127
0 0 0 0
1 to F
Positioning action no. 0 Speed Output Dwell Completime No. tion code code 1 to F 0 to F 0 to F 0 to 5 Target position
Direction Positioning action no. 1
DM 1082
1 0 0 0
DM 1182
1 0 0 0
* Speed No. 1
DM 1083
0 1 0 0
DM 1183
0 1 0 0
* Speed No. 2
DM 1098
0 0 0 5
DM 1198
0 0 0 5
* Acceleration
DM 1099
0 0 0 5
DM 1199
0 0 0 5
* Deceleration
205
Page 211
Example 5
Section 9-5
Program Start switch DIFU(13) 10000
X axis START (Interpolation)
When the direction of the X axis positioning action is set from 4 to 7, it becomes interpolation data. The speed, acceleration, deceleration, output code, and dwell time settings for interpolation become X axis values. Y axis settings (marked with an asterisk *) are ignored, but data must be input to prevent an alarm form being generated.
206