Вы находитесь на странице: 1из 71

Welcome

OMRON

g
n
i
n
i
a
r
t
n
o
s
d
n
a
h
c
l
p
Advanced Industrial Automation

OMRON

OMRON component subdivision


Industrial Components
Electromechanical relays
Timers and counters
Programmable relays
Level controllers
Limit switches
Push buttons
Low voltage switch gear
Temperature and process
controllers
Solid-state relays
Panel indicators
Power supplies

Advanced Industrial Automation

Automation & Drives

Program. Logic Controller


Network systems
HMI terminals
Inverters
Servo systems
Software

Sensing & Safety

Photoelectric sensors
Displacement sensors
Vision systems
Safety sensors
Safety switches
Safety relays
Proximity sensors
Rotary encoders
Pressure sensors

OMRON

Contents of the training


Automation & Drives
Contents of the training:
Software
CX-programmer V3.0
PLC-Basic Hands-On Training

Building up an Project
PLC-Advanced Hands-on Training

Advanced Industrial Automation

CX-programmer V3.0

OMRON

CX-Programmer V3.0 made in Japan


Improvements on 87 points
Designed to operate with MS Windows XP as well as MS Windows 95, 98,
ME, NT and 2000.
Recommended: MS Windows NT, 2000 or XP
New PLC ranges supported:
- CJ1M
- CS1H
- CS1D (needs CX-P V3.1
for duplex functions)
New Networks supported:
- CS1 Bus I/F Board (ITBC-CST01)
- 62 node Controller Link

Advanced Industrial Automation

Starting a new project in CX-Programmer

Advanced Industrial Automation

OMRON

Opening a new Program

Advanced Industrial Automation

OMRON

Up- and downloading of PLC programs

Advanced Industrial Automation

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

Advanced Industrial Automation

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

Advanced Industrial Automation

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

Advanced Industrial Automation

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

Advanced Industrial Automation

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

Program Writing Seven steps

Advanced Industrial Automation

1.

Define the purpose

2.

Problem Splitting

3.

Working out

4.

Design

5.

Writing

6.

Testing

7.

Finishing

Program Writing Define the Purpose

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.

Advanced Industrial Automation

Program Writing Problem Splitting

2.
In-take transport

Drilling station

Transport and ejecting


the products

Advanced Industrial Automation

OMRON

OMRON

Program Writing More Splitting

2.
In-take transport

Transport

Drilling station

Transport

Drilling

Transport & ejection

Transport

Ejection of the
products

Advanced Industrial Automation

OMRON

Program Writing Defining I/O list


3.

Working out (I/O list)

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

Advanced Industrial Automation

Product under work


Product under work ready
Move products
Move products ready

Adding comments to the PLC program

Advanced Industrial Automation

OMRON

Adding comments to contacts: Symbols

Global symbols
and
Local symbols

Advanced Industrial Automation

OMRON

Online Edit

Advanced Industrial Automation

OMRON

An easy way to connect

Advanced Industrial Automation

OMRON

OMRON

Functions

Ladder symbol

Operand Data-area

Condition 1

XYZ(99)

S: Source word

Condition 2

IR, SR, AR, HR, LR, T/C, DM, #

Condition 3

P1

P1: Parameter word

IR, AR, HR, LR


R: Result word
IR, AR, HR, LR, T/C, DM

Advanced Industrial Automation

OMRON

Timer
Ladder symbol
Condition 1

Operand Data-area

TIM

N: TC number

# (000-511)

SV

SV: Set value (BCD)


IR, AR, DM, HR, LR, #

P1 = 1 - 9999
Time
= 0.1 - 999.9 sec
Contact = TIM0

INPUT

SV

SV
TIMER OUTPUT

Advanced Industrial Automation

OMRON

Normal Timer

000.00

100.00

Advanced Industrial Automation

SV

SV

OMRON

Delay After Off

000.01

SV1
100.01

Advanced Industrial Automation

SV1

OMRON

On/Off Delay

000.02

SV3
100.02

Advanced Industrial Automation

SV2

SV3
SV2

OMRON

One Shot

000.03

SV3
100.03

Advanced Industrial Automation

SV3

OMRON

High Speed Timer

Ladder symbol
Condition 1

Operand Data-area

TIMH(15)

N: TC number

# (000-511)

SV

SV: Set value (BCD)


IR, AR, DM, HR, LR, #

SV = 1 - 9999
Time
= 0.01 - 99.99 sec
Contact = TIM0

INPUT

SV

SV
TIMER OUTPUT

Advanced Industrial Automation

OMRON

Counter
Ladder symbol

Operand Data-area

Pulse

CNT

N: Counter number

Reset

# (000 511)

SV

SV: Set value (BCD)


IR, AR, DM, HR, LR, #

SV = 1 - 9999
Contact = CNT511

PULSE

RESET

COUNTER OUTPUT

Advanced Industrial Automation

OMRON

Reversible Counter
Ladder symbol

Operand Data-area

II+

CNTR(12)

N: Counter number

DI-

# (000 511)

Reset

SV

SV: Set value (BCD)


IR, AR, DM, HR, LR, #

SV = 1 - 9999
Contact = CNT511
II+
DI-

0
RESET
COUNTER OUTPUT

Advanced Industrial Automation

Example Program

Advanced Industrial Automation

OMRON

OMRON

Keep
Ladder symbol

Operand Data-area

KEEP(11)

B: Bit

IR, AR, HR, LR


000.00

000.01

100.00

000.00
KEEP(11)
000.01
100.00

BIT
SET
RESET

Advanced Industrial Automation

100.00

OMRON

Set and Reset

Ladder symbol
S

Advanced Industrial Automation

Operand Data-area

SET

B: Bit

IR, AR, HR, LR

RSET

B: Bit

IR, AR, HR, LR

OMRON

Signal Flanks
Ladder symbol
Signal

Signal

Operand Data-area

DIFU(13)

B: Bit

IR, AR, HR, LR

DIFD(14)

B: Bit

IR, AR, HR, LR

CYCLUS

Advanced Industrial Automation

OMRON

Interlock

Ladder symbol

Advanced Industrial Automation

Signal

IL(02)

Signal

ILC(03)

Interlock

PROGRAM
WITHOUT
INTERLOCK

Advanced Industrial Automation

OMRON

Interlock

PROGRAM
WITH
INTERLOCK

Advanced Industrial Automation

OMRON

OMRON

DIFU and DIFD in Interlocks

000.00
IL(02)
000.01
DIFU(13)
10.00

ILC(03)

Advanced Industrial Automation

Example Program

Advanced Industrial Automation

OMRON

Special Internal Relays

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

Advanced Industrial Automation

OMRON

System Flags

ADRESS
255.03
255.04
255.05
255.06
255.07

Advanced Industrial Automation

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:

Advanced Industrial Automation

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

Advanced Industrial Automation

OMRON

Jump Instructions

000.00
JMP(O4)
000.01

100.00

OUTPUTS FREEZE
TIM
0
#9999

JME(O5)

Advanced Industrial Automation

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

Advanced Industrial Automation

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

Advanced Industrial Automation

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

Advanced Industrial Automation

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

Advanced Industrial Automation

Example Program

Advanced Industrial Automation

OMRON

Data monitoring

Advanced Industrial Automation

OMRON

OMRON

Data Shifting Instructions

Data Shifting Instructions

Advanced Industrial Automation

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

Advanced Industrial Automation

OMRON

Notations

NOTATIONS
Binary
0,1

1011

11
1*20 = 1
1*21 = 2
0*22 = 0
1*2

= 8
11

Advanced Industrial Automation

: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

Advanced Industrial Automation

: 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

0001 0010 1010 0100


2 15

Advanced Industrial Automation

1 2A4

20

OMRON

Notations

NOTATIONS
Decimal <-> BCD
Decimal

BCD

1294

0001 0010 1001 0100


23

20
D

Advanced Industrial Automation

23

20 23
H

20 23
T

20
E

OMRON

Notations

NOTATIONS

Advanced Industrial Automation

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

Data Movement Instructions

OMRON

Data Movement Instructions

Advanced Industrial Automation

Data Compare Instructions

Data Compare Instructions

Advanced Industrial Automation

OMRON

OMRON

Data Compare Instructions


CMP(20)
V.W.
CMP(20)
Cp1
Cp2

ER

Advanced Industrial Automation

255.05 >

100.00

255.06 =

100.01

255.07 <

100.02

Cp1: First compare word


IR, AR, DM, HR, LR, TC, #
Cp2: Second compare word
IR, AR, DM, HR, LR, TC, #

Example Program

Advanced Industrial Automation

OMRON

OMRON

Task programming

Task
One Ladder

End

Continuous Ladder program can be split into the


functional parts
These parts are called Tasks or Programs
Task programming results in faster and more
flexible program development

Advanced Industrial Automation

OMRON

Cyclic Tasks

Task 00

End

Task 01

Task 02

I/O refresh
Advanced Industrial Automation

List of active tasks is


refreshed during I/O refresh
Active cyclic tasks are
executed from the lowest
task number
Tasks can be activated or
deactivated by other tasks
Operation Start assignment
can be switched On/Off

OMRON

Interrupt tasks

Task 00

End
Task 01

Task 02

Advanced Industrial Automation

Interrupt of cycle task execution can be


triggered by
Power fail
Internal timer
External interrupt input
Message received on serial board
Interrupt Task

End

Task programming

When to use Tasks?


Local symbols results in flexible programming
Parallel program development
Reuse of standard blocks of code
Upgrade of the machine by activating the task
Optimisation of the cycle time

Advanced Industrial Automation

OMRON

Cycle time Standard situation

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

Advanced Industrial Automation

Refresh data for :


- Basic I/O Units
- SYSMAC BUS Remote I/O
- Special I/O Units
- CPU Bus Units
Events Servicing :
- Special I/O unit events
- CPU Bus Unit events
- Peripheral port and RS-232C port events
- File access
- Communications port events

OMRON

Overseeing
Processing

Program
Execution

I/O
Refreshing

Advanced Industrial Automation

Cycle Time for


Peripheral Servicing

Cycle Time
for program execution

Cycle time Parallel Processing Mode

Overseeing
Processing
Peripheral
Servicing

- Faster servicing of events


- Time slice for program execution and peripheral
servicing can be tuned by the customer
- Synchronous or asynchronous I/O-memory access
can be set by the user
- Data concurrence via special instructions

OMRON

Optimisation of the cycle time

Execute
Stop
Stop
Execute

Advanced Industrial Automation

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 !

Advanced Industrial Automation

OMRON

Questions?

Thank you
for you
attention

if you have any question

Advanced Industrial Automation

Вам также может понравиться