Omron SYSMAC C500-NC222-E Operation Manual page 135

Two-axis position control unit (nc221 mode)
Table of Contents

Advertisement

Application Program Examples
Ladder Diagram
n+3(00)
START
j+12(01)
j+12(03)
j+21(02)
25506
(=)
j+12(03)
j+12(05)
j+12(04)
25506
(=)
j+12(05)
j+12(07)
j+12(08)
j+12(08)
j+12(09)
j+12(10)
l(15)
j+12(11)
Command
Ready
j+12(14)
25506
j+12(15)
(=)
DIFU(13)
j+12(01)
WRIT(87)
#0070
Transfers data.
DM t
n
j+12
(02)
j+12
(03)
WRIT(87)
#0070
Transfers data.
DM t+70
n
j+12
(04)
j+12
(05)
j+12
(08)
@MOV(21)
#(t+151)
Sets commands.
DM (t+150)
DIFU(13)
j+12(09)
WRIT(87)
#0002
Transfers
*DM (t+150)
commands.
W
j+12
(10)
j+12
(11)
l+3(08)
Positioning completed.
l+4(07)
Origin
l+10(08)
j+12(12)
Positioning completed.
l+11(07)
Origin
l+3(08)
Positioning completed.
25506
(=)
TIM001
j+12(08)
START
TIM02
j+12(08)
START
j+12(12)
j+12(13)
25313
Normally ON
Section 8-4
DIFU(13)
j+12(12)
TIM01
Timer 0.5 s
#0005
@MOV(21)
l+7
Outputs M codes.
n+2
DIFU(13)
j+12(13)
TIM002
Timer 0.5 s
#0005
@MOV(21)
l+14
Outputs M codes.
n+2
CMP(20)
Checks last M code.
l+7
#0026
j+12(08)
j+12
(07)
DIFU(13)
Starts after 0.5 s.
j+12(14)
DIFU(13)
Starts after 0.5 s.
j+12(15)
@ADD(30)
DM (t+150)
Increments address.
#0002
DM (t+150)
READ(88)
#0017
n+1
l
127

Advertisement

Table of Contents
loading

Table of Contents