![background image](http://html1.mh-extra.com/html/omron/sysmac-c500-nc222-e/sysmac-c500-nc222-e_operation-manual_742438116.webp)
108
8-3
Basic Program Examples
8-3-1 Positioning to a Single Point (X Axis)
The following program positions to point A [10,000, 0 (pulses)] from the origin
[0,0 (pulses)] at 2 kpps. At point A, bit J(15) turns ON to indicate completed
positioning.
Y axis (pulse)
0 (origin)
X axis (pulse)
A (10,000,0)
Time (s)
2 kpps
Speed (pps)
DIFU(13) j(01)
WRIT(87)
#0002
DM m
n
READ(88)
#0017
n+1
l
l+7
CMP(20)
#0010
( = )
( = )
j (00)
l+4 (07)
Start input
Origin
j (01)
j (03)
l(15)
Command
Ready
j (02)
25506
25506
j
(15)
j
(02)
j
(03)
Normally ON
Positioning
Completed
Position of point A
Reads flags
l+3 (08)
25313
Start command to point A
Ladder Diagram
8-3-2 Positioning to a Single Point (Y Axis)
The following program positions to the origin [0, 0 (pulses)] from point C
[10,000, 10,000 (pulses)] at 1 kpps. At the origin bit, j+2 (15) turns ON to indi-
cate completed positioning. The speed registered in the X-axis speed field is
used.
Y axis (pulse)
0 (origin)
X axis (pulse
)
Time (s)
Speed (pps)
C (10,000, 10,000)
B (10,000,
5,000)
3 kpps
A
B
C
1 kpps
(10,000, 0)
Basic Program Examples
Section 8-3