Professional Documents
Culture Documents
OMRON
g
n
i
n
i
a
r
t
n
o
s
d
n
a
h
c
l
p
Advanced Industrial Automation
OMRON
Photoelectric sensors
Displacement sensors
Vision systems
Safety sensors
Safety switches
Safety relays
Proximity sensors
Rotary encoders
Pressure sensors
OMRON
Building up an Project
PLC-Advanced Hands-on Training
CX-programmer V3.0
OMRON
OMRON
OMRON
OMRON
OMRON
Statement List
000.00
000.01
000.01
100.00
000.02
LD 000.00
AND
000.01
OR 000.02
AND
000.03
OUT
100.00
000.00
000.02
000.01
000.03
100.00
OMRON
Statement List
000.00
000.02
000.01
100.00
LD 000.00
AND
000.01
OR 000.02
AND
000.03
OUT
100.00
000.03
000.00
000.01
000.03
000.02
000.00
000.02
000.01
000.03
100.00
LD 000.00
AND
000.01
LD 000.02
AND
000.03
OR LD
OUT
100.00
100.00
OMRON
Statement List
000.04
000.05
000.06
000.07
000.04
000.05
000.06
000.05
000.07
000.07
100.01
100.01
LD 000.04
OR 000.06
LD 000.05
OR 000.07
AND LD
OUT
100.01
OMRON
Statement List
000.00
000.01
000.02
000.03
100.02
000.04
000.05
100.03
OMRON
Statement List
000.00
000.01
000.02
000.03
100.02
000.04
000.05
100.03
TEMPORAIRY RELAY
LD 000.00
AND
000.01
OUT TR 0
AND
000.02
AND
000.03
OUT
100.02
LD TR 0
AND
000.04
AND
000.05
OUT
100.03
Advanced Industrial Automation
OMRON
1.
2.
Problem Splitting
3.
Working out
4.
Design
5.
Writing
6.
Testing
7.
Finishing
OMRON
1.
Products on the inputbelt are transported to PES 0.00. This belt stops if there is another product
under work. Otherwise the product is transported to the next belt and stops if PES 0.01 detects
the product. The drill is in the upper position and will be started by output 100.02.
The drill goes down to limitswitch 0.02. The output 100.02 is set to off and the drill is returning
to the upper position. If upperlimitswitch 0.03 detects the drill, the inputbelt, the transportbelt and
the outputbelt is started. PES 0.04 detects the product and stops the outputbelt on the backside
of the product . After five products the pusher is activated and pushes the products from the belt
by output 100.04. If the pusher is in the out position (limitswitch 0.05) the output goes off and
the pusher returns. During this period no belt is running except the inputbelt.
2.
In-take transport
Drilling station
OMRON
OMRON
2.
In-take transport
Transport
Drilling station
Transport
Drilling
Transport
Ejection of the
products
OMRON
000.00
000.01
000.02
000.03
000.04
000.05
000.06
FInput
Sensor on input belt
FTransp
Sensor on transport belt
CilOut
Cylinder out
CilIn
Cylinder in
FOutput
Sensor on output belt
PusIn
Pusher in
PusOut
Pusher out
100.00
100.01
100.02
100.03
100.04
Minput
Motor input belt
MTransport Motor transport belt
ACyl
Cylinder
MOutput
Motor output belt
APus
Pusher
099.15
099.14
099.13
099.12
PUW
PUWR
MP
MPR
OMRON
Global symbols
and
Local symbols
OMRON
Online Edit
OMRON
OMRON
OMRON
Functions
Ladder symbol
Operand Data-area
Condition 1
XYZ(99)
S: Source word
Condition 2
Condition 3
P1
OMRON
Timer
Ladder symbol
Condition 1
Operand Data-area
TIM
N: TC number
# (000-511)
SV
P1 = 1 - 9999
Time
= 0.1 - 999.9 sec
Contact = TIM0
INPUT
SV
SV
TIMER OUTPUT
OMRON
Normal Timer
000.00
100.00
SV
SV
OMRON
000.01
SV1
100.01
SV1
OMRON
On/Off Delay
000.02
SV3
100.02
SV2
SV3
SV2
OMRON
One Shot
000.03
SV3
100.03
SV3
OMRON
Ladder symbol
Condition 1
Operand Data-area
TIMH(15)
N: TC number
# (000-511)
SV
SV = 1 - 9999
Time
= 0.01 - 99.99 sec
Contact = TIM0
INPUT
SV
SV
TIMER OUTPUT
OMRON
Counter
Ladder symbol
Operand Data-area
Pulse
CNT
N: Counter number
Reset
# (000 511)
SV
SV = 1 - 9999
Contact = CNT511
PULSE
RESET
COUNTER OUTPUT
OMRON
Reversible Counter
Ladder symbol
Operand Data-area
II+
CNTR(12)
N: Counter number
DI-
# (000 511)
Reset
SV
SV = 1 - 9999
Contact = CNT511
II+
DI-
0
RESET
COUNTER OUTPUT
Example Program
OMRON
OMRON
Keep
Ladder symbol
Operand Data-area
KEEP(11)
B: Bit
000.01
100.00
000.00
KEEP(11)
000.01
100.00
BIT
SET
RESET
100.00
OMRON
Ladder symbol
S
Operand Data-area
SET
B: Bit
RSET
B: Bit
OMRON
Signal Flanks
Ladder symbol
Signal
Signal
Operand Data-area
DIFU(13)
B: Bit
DIFD(14)
B: Bit
CYCLUS
OMRON
Interlock
Ladder symbol
Signal
IL(02)
Signal
ILC(03)
Interlock
PROGRAM
WITHOUT
INTERLOCK
OMRON
Interlock
PROGRAM
WITH
INTERLOCK
OMRON
OMRON
000.00
IL(02)
000.01
DIFU(13)
10.00
ILC(03)
Example Program
OMRON
OMRON
Output inhibit
Battery alarm
Always on
Always off - 253.14
First scan
1 min pulse
0.02 sec pulse
0.1 sec pulse
0.2 sec pulse
1.0 sec pulse
OMRON
System Flags
ADRESS
255.03
255.04
255.05
255.06
255.07
FUNCTION
ER
CY
GR
EQ
LE
NAME
ERROR
CARRY
GREATER
EQUAL
LESS
error bit
carry bit
> bit
= bit
< bit
OMRON
Instruction groups
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
Advanced Industrial Automation
Logical instructions
Timer instructions
Counter instructions
Basic instructions
Bit control instructions
Data shifting instructions
Data movement instructions
Data compare instructions
Data conversion instructions
Binary calculation
BCD calculation
Logical calculation
Subroutine instructions
Step instructions
Network instructions
Special instructions
OMRON
Logical instructions
Ladderdiagram:
Statement list:
NO contact
NC contact
Output
Inverted output
Horizontal and vertical line
LD
LD NOT
AND
AND NOT
OR
OR NOT
OUT
OUT NOT
OR LD
AND LD
OMRON
Basic Instructions
NOP(00)
No function
END(01)
End of program
IL(02)
Interlock
ILC(03)
Interlock close
OMRON
Jump Instructions
000.00
JMP(O4)
000.01
100.00
OUTPUTS FREEZE
TIM
0
#9999
JME(O5)
TIMERS STOP
OMRON
Jump Instructions
V.W.1
JMP(O4)
0
LABEL 0
Can be used more than
one time in the program.
JME(O5)
0
V.W.2
JMP(O4)
0
JME(O5)
0
USED
More programs into 1 PLC
Shorten programs.
OMRON
Jump Instructions
V.W.1
JMP(O4)
0
V.W.2
JMP(O4)
0
JME(O5)
0
LABEL 0
JMP-JMP-JME combination
OMRON
Jump Instructions
V.W.1
JMP(O4)
1
V.W.2
JMP(O4)
2
JME(O5)
2
JME(O5)
1
LABEL 1- 99
Can be used only
once in the program.
OMRON
Jump Instructions
JME(O5)
1
V.W.1
JMP(O4)
LABEL 1- 99
Jump back in
the program
USED
Recursive action
Conversion more than one variable
MODBUS CRC Check
Example Program
OMRON
Data monitoring
OMRON
OMRON
OMRON
Notations
NOTATIONS
Decimal
0,1,2,3,4,5,6,7,8,9
1234
4 * 10 0
3 * 10 1
2 * 10 2
1 * 10 3
OMRON
Notations
NOTATIONS
Binary
0,1
1011
11
1*20 = 1
1*21 = 2
0*22 = 0
1*2
= 8
11
:2
rest 1
:2
rest 1
:2
rest 0
:2
rest 1
5
2
1
0
1011
OMRON
Notations
NOTATIONS
Hexadecimal
0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F
1 2A4
4772
4 * 16 0 =
10 * 16 1 =
160
2 * 16 2 =
512
1 * 16
= 4096
4772
: 16
rest 4
: 16
rest 10=A
: 16
rest 2
: 16
rest 1
298
18
1
0
12A4
OMRON
Notations
NOTATIONS
Hexadecimal <-> Binary
Hexadecimal
Binary
1 2A4
20
OMRON
Notations
NOTATIONS
Decimal <-> BCD
Decimal
BCD
1294
20
D
23
20 23
H
20 23
T
20
E
OMRON
Notations
NOTATIONS
DEC
HEX
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
0
1
2
3
4
5
6
7
8
9
A
B
C
D
E
F
10
11
12
13
14
BIN
00000
00001
00010
00011
00100
00101
00110
00111
01000
01001
01010
01011
01100
01101
01110
01111
10000
10001
10010
10011
10100
BCD
0000 0000
0000 0001
0000 0010
0000 0011
0000 0100
0000 0101
0000 0110
0000 0111
0000 1000
0000 1001
0001 0000
0001 0001
0001 0010
0001 0011
0001 0100
0001 0101
0001 0110
0001 0111
0001 1000
0001 1001
0010 0000
OMRON
OMRON
OMRON
ER
255.05 >
100.00
255.06 =
100.01
255.07 <
100.02
Example Program
OMRON
OMRON
Task programming
Task
One Ladder
End
OMRON
Cyclic Tasks
Task 00
End
Task 01
Task 02
I/O refresh
Advanced Industrial Automation
OMRON
Interrupt tasks
Task 00
End
Task 01
Task 02
End
Task programming
OMRON
Cycle Time
Overseeing
Processing
OMRON
- Check Battery
- Read DIP-switches
- Check I/O Bus
- Check User Program Memory
- Check for Memory Card
Program
Execution
I/O
Refreshing
Peripheral
Servicing
OMRON
Overseeing
Processing
Program
Execution
I/O
Refreshing
Cycle Time
for program execution
Overseeing
Processing
Peripheral
Servicing
OMRON
Execute
Stop
Stop
Execute
Tasks : summary
OMRON
Task is a program
Equivalent to a function of your process
Easier programming, debugging and maintenance
Integrate tasks into a project
Up to 32 tasks !
Up to 256 linked to an event !
Project will call the tasks needed
Your cycle is optimal
Re-use-able !
OMRON
Questions?
Thank you
for you
attention