Ands - On T Raini NG: Welcome

Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 168

Welcome OMRON

ni n g
t ra i
s - o n
h and
pl c

Advanced Industrial Automation


OMRON component subdivision OMRON
Industrial Components Automation & Drives Sensing & Safety
Electromechanical relays Program. Logic Controller Photoelectric sensors
Timers and counters Network systems Displacement sensors
Programmable relays HMI terminals Vision systems
Level controllers Inverters Safety sensors
Limit switches Servo systems Safety switches
Push buttons Software Safety relays
Low voltage switch gear Proximity sensors
Temperature and process Rotary encoders
controllers Pressure sensors
Solid-state relays
Panel indicators
Power supplies

Advanced Industrial Automation


Contents of the training OMRON
Automation & Drives
Contents of the training:

Introduction: PLC
Overview OMRON PLC range
CJ1M

Software
CX-programmer V3.0

PLC-Basic Hands-On Training


Building up an Project

PLC-Advanced Hands-on Training


Advanced Industrial Automation


Overview PLC range OMRON
Functionality

CS1
C200HE/HG/HX

CQM1H

CJ1
SRM1

CPM2C

CPM2A

CPM1A

ZEN

34 100 120 140 256 512 1184 2560 5000 I/O

Advanced Industrial Automation


CPM PLC family OMRON

Relay or transistor outputs CPM1A


Various peripheral devices The Micro PLC, standard
for most of the basic
4 types of interrupts applications
High-speed counter integrated
Networking:
Compobus-S (remote I/O)
Compobus-D (DeviceNet)
Profibus (slave)
CPM
Super compact, high High functionality Micro
functionallity Micro PLC fully compatible with
PLC CPM1A

CPM2C CPM2A

Advanced Industrial Automation


CPM1A Family OMRON

CPUs with 10, 20, 30 and 40 I/O


Expandable to 100 I/O
2 KW program memory
1KW data memory
150 instructions
1 port (peripheral)
1 counter for counting to up to 5 KHz
2 pulse generators, up to 2 KHz
frequency

Advanced Industrial Automation


CPM2A Family OMRON

CPUs with 30, 40 or 60 I/O


Expandable up to 120 I/O
4 KW Program memory
2KW Data memory
185 instructions
2 ports
(Peripheral and RS232)
1 counter, 20 KHz range
4 counters for up to 2 KHz
2 pulse outputs, 10 Khz

Advanced Industrial Automation


CPM1A/2A adding I/O OMRON

CPM1A-10 No-expansion
CPM1A-20

CPM1A-30
CPM1A-40
CPM2A-20
CPM2A-30
CPM2A-40
CPM2A-60
Max. 3 modules extra

I/O Inputs: 0.00 9.15


I/O Outputs: 10.00 19.15

Advanced Industrial Automation


CPM I/O example OMRON

CPM2A 40 I/O CPM expansion 20 I/O


24 digital inputs 12 digital inputs
16 digital outputs 8 digital outputs

0.00 0.11 2.00 2.07


1.00 1.11 3.00 3.03

10.00 10.07 12.00 12.07


11.00 11.07

Advanced Industrial Automation


CQM PLC family OMRON
CPUs Modules

Inner boards

Communications

Advanced Industrial Automation


CQM PLC family OMRON

Modular system configuration


No need for racks
256/512 I/O points maximum
15 Kw Program memory max.
Up to 12.000 data memory
registers
Built in all CPUs :
16 built-in digital inputs
4 counting/interrupt inputs
1 counter, 5 Khz
1 or 2 comunication ports

Advanced Industrial Automation


CQM PLC family OMRON

CQM1H modules
Variety of Digital and
Analogue I/O
Temperature control
Linear sensor module
Remote I/O master, fieldbus
masters

CQM1H inner boards


Counters, Encoders, Pulse drivers, Analogue,
Communications...

Advanced Industrial Automation


CQM1H expansion OMRON

Advanced Industrial Automation


CQM1H expansion OMRON

Advanced Industrial Automation


CQM1H - bits and memory OMRON
Input bits 000.00 015.15
Max 256 I/O CPU11/21
Output bits 100.00 115.15 Max 512 I/O CPU51/61
Work bits 016.00 089.15
116.00 189.15
216.00 219.15
224.00 229.15
Special bits 244.00 255.07 CPU settings
Temporary bits TR0 TR7

Holding bits HR00.00 HR99.15 Holds on power failure


Auxiliary bits AR00.00 AR27.15

Link bits LR00.00 LR63.15

Timers / counters TIM/CNT 000 - 511 /!\ Mixed


Data memory DM0000 DM3071 (CPU 11/21) / DM6143 (CPU 51/61)
DM6144 DM6655 (read only)
EM0000 EM6655 (CPU 61)
Interrupts 000.00 000.03 4 interrupts sequence
Advanced Industrial Automation
CQM1H networking OMRON

Controller link

CompoBus/D (Slave) NT Link, Host Link,Modem..

AS-I Bus (Master) CompoBus/S (Master)

Protocol Macro, Modbus (Master)

Advanced Industrial Automation


CS1 PLC family - Hardware OMRON
Modular system configuration
Standard Nine types of CPU
Back-planes for CPU & expansion
2, 3, 5, 8 and 10 slots
(max. 7 pcs. 12 meter
special up-to 50meter)
C200H power supply
units
C200H expansion
back-planes usable
(max. 3 pcs.)
Number of Special I/O
units
Communication
Inner boards

Advanced Industrial Automation


CS1 Family Data storage OMRON

Comments stored in the PLC


Easy backup of the program
Flash-memory card: 8, 16, 32, 48, 64MB
Process values recording from the ladder
Data file management
program files
I/O memory files
system parameters files

Advanced Industrial Automation


CS1D OMRON

Advanced Industrial Automation


CS1D Risk Management OMRON
Risk Management is essential in systems
requiring a high level reliability.
Every system is subjected to malfunction

Duplex unit
When is this a significant problem?

CPU

CPU
CLK

CLK
I/O

PS
PS
24 hour system that can not be stopped
Extremely high starting-up costs
Unexpected stops can lead to disasters
e.g. toxic spills, explosions

Duplexing functions:
Double power supply (main and expansion rack)
Expansion

PS
PS
Double CPU I/O Rack
Double Network cards
Hot swapping of all units
without powering down the system
(CPU, power supply and normal I/O units
But ALSO network and special I/O units) Expansion

PS
PS
I/O Rack

Advanced Industrial Automation


CS1D Hot-standby OMRON

Advanced Industrial Automation


CS1D redundant network OMRON

Advanced Industrial Automation


CS1 Allocating I/O Units OMRON

Advanced Industrial Automation


CJ1 PLC family OMRON

Fast, Compact, Seamless

Advanced Industrial Automation


Introducing the new CJ1 OMRON

A SMALL PLC in size, but it is not a MICRO


PLC size and capability no longer go hand-in-hand!

The CJ1 features:


High speed CPUs (40 and 20ns): 20ns is 3 to 5 times faster than typical
mid-sized CPU. (e.g. C200H series)
Control up to 2560 Local I/O: Typical of the mid-sized PLC category.
Industry leading networking: Omrons FINS protocol routes data across
networks.
Compact size: Free up panel space without sacrificing performance!

Advanced Industrial Automation


The CJ1 is a mid-sized PLC in a micro-sized package. OMRON
In fact the Omron CJ1 is a CS1 in a smaller package.
Released in 1999, the CS1 is and will remain Omrons mid-sized
PLC and leading technology platform.

2/3 of the
Footprint

2/3 the
Panel Depth

1/3 Total
Panel
Volume

Advanced Industrial Automation


How is the CJ1 possible? OMRON

Advances in printed circuit board design More efficient layout.


New component technology Lower energy requirements.
Surface mounted PCB technology Better heat dissipation.
New processors Faster and more energy efficient.

Advanced Industrial Automation


CJ1 Features - Flash Memory Cards OMRON

16 to 64 MB flash cards available.


Store PLC programs and transfer to/from PLC memory.
Log data into the card for manual or network retrieval.
Access the flash card from CX-Programmer it appears as another PC drive.
Use FTP to store non-PLC related files on the flash card.

Advanced Industrial Automation


CJ1 Features - C ommunications OMRON

Ethernet
Controller Link
DeviceNet
CompoBus/S
Single Port Multiple Access
Protocol Macro

Advanced Industrial Automation


CJ1 Features - C ommunications OMRON
Programming &
SCADA Debug Tool
Protocol Macro:
Non-Omron Serial Devices

MESSAGE BOARD
Ethernet
Flash
Memory Ethernet
CLK
PCI Board

Host Link
Controller Link
Omron
DeviceNet or CompoBus/S Touch Screen
Programming/Diagnostic
Software

Single Port Multiple Access


Advanced Industrial Automation
CJ1G/H Features Layout Flexibility OMRON
CPU Rack
Rack mounted PLCs come with
fixed number of slots available.
CJ1 is more flexible.
Eliminating the rack eliminates
Expansion 1
module width restrictions.
Smaller modules up to 10 can
be joined by the CJ1 through
plane Expansion 2

Expand up to 4 racks of I/O


and communications 40 total
modules (2560 local I/O) Expansion 3

TOTAL EXPANSION BUS LENGTH = 12 meters


0.3, 0.7, 2.0, 3.0, 5.0, 10.0, 12.0 meter cables available

Advanced Industrial Automation


CJ1M - series OMRON

Advanced Industrial Automation


CJ1M new CPUs OMRON

Fast! Small! Seamless!

Expands the CJ1 family to the small scale control area


(CQM1H)
CJ1M memory map, instructions and I/O with CJ1G/H
compatible

6 NEW CPUs:
.CJ1M-CPU11 (5Ksteps)
CJ1M-CPU12 (10Ksteps)
CJ1M-CPU13 (20Ksteps)

CJ1M-CPU21 (5Ksteps)
CJ1M-CPU22 (10Ksteps)
CJ1M-CPU23 (20Ksteps)

Advanced Industrial Automation


CJ1M - features OMRON

. CJ1M-CPU11 (5Ksteps)
CJ1M-CPU12 (10Ksteps) Peripheral port
CJ1M-CPU13 (20Ksteps) RS232C
Memory card interface
Just 31mm wide

31

CJ1M-CPU11 (5Ksteps) 16 I/O on the CPU


CJ1M-CPU22 - 10 inputs
(10Ksteps) - 6 outputs
CJ1M-CPU23 Interrupt functions 4 points
(20Ksteps) Build-in positioning functions
- pulse output 100kHz, 2 axes
- counter function
Phase differ. 50kHz, 2 axis
Single phase 100kHz, 2 axis

Advanced Industrial Automation


CJ1M Capacity compared to OMRON
User Memory Capacity
CJ1G/H
CJ1M 120 K steps
20 K
CQM1H 15 K

Data Memory Capacity


CJ1G/H
CJ1M 256 K words
32 K
CQM1H 12 K

50% volume reduction

Advanced Industrial Automation


CJ1M Expansion compared to OMRON
Maximum Number of I/O bits
CJ1G/H
CJ1M 640 2560

CQM1H 512

Maximum Number of Connectable Units


CJ1G/H 40
CJ1M 20
CQM1H 11

Up to 10 I/O units can be placed on a


CJ1M-CPU.
A expansion rack can be added to
the CJ1M-CPU13 & CJ1M-CPU23

Advanced Industrial Automation


CJ1M Speed compared to OMRON
Execution Time (Basic Instruction)
CJ1G/H 20 ns
CJ1M 100 ns 375 ns
CQM1H

Execution Time (Special Instructions)


CJ1G/H 0.04 s
CJ1M 0.3 s
17.7 s
CQM1H

CJ1M is 59 times faster!!!

Advanced Industrial Automation


CJ1 PLC System set-up OMRON
Basic I/O
Special I/O
CJ1-Power CPU-Bus I/O(*) End-Cover
Supply CJ1-I/O
CJ1-CPU Interrupt units(*)
Control Unit

Memory Card Max 12 m Max 10 Units


Basic I/O
CJ1-Power I/O Connecting Cable Special I/O
Supply CPU-Bus I/O
End-Cover

CJ1-I/O
Interface Unit Max 10 Units
(*) Place CPU-Bus Units and I/O-Interrupt units
WARNING next to CPU (5 left slots)
Advanced Industrial Automation
CJ1 PLC - Hardware OMRON
3 groups of CJ1-Units
Basic I/O Units Special I/O Units CPU Bus Units

CIO 0000 to CIO 0079 CIO 2000 to CIO 2959 CIO 1500 to CIO 1899
(8 , 16 , 32 or 64 points) (Refresh area :10 words/unit) (Refresh area : 25 words/unit)

D20000 to D29599 D30000 to D31599


(Setup area : 100 words/unit) (Setup area : 100 words/unit)

Special I/O unit number CPU Bus unit number


(40 Units maximum) (16 Units maximum)
Advanced Industrial Automation
CJ1 - I/O channel assignment OMRON

008
009
006 010
I/O word 000 001 002 003 004 005 007 011

IN OUT IN OUT IN IN IN OUT


16 16 16 16 16 16 32 64

Advanced Industrial Automation


CJ1 - I/O channel assignment OMRON

008
009
006 010
I/O word 000 001 002 003 004 005 007 011

Reserved

Reserved
IN OUT IN OUT IN IN IN OUT
16 16 16 16 16 16 32 64

Advanced Industrial Automation


CJ1 - I/O channel assignment OMRON
CIO word 000 001 002

IN OUT IN
16 16 16

003 004 005 006

IN OUT IN OUT
16 16 16 16

007 008 009 010

OUT IN OUT IN
16 16 16 16

Advanced Industrial Automation


CJ1 - I/O channel assignment OMRON

003 007
CPU Special Special 008
004
BUS I/O I/O 005 009
000 001 002 006 010

00
00 01

IN OUT OUT OUT IN


16 16 16 64 64

1500 2000 2010


1524 2009 2019

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


Improvements on 87 points OMRON
Small selection:

RS01 Key-function allocation


RS03 Open CX-P with default environment
RS05 On-line default state: Monitoring
RS06 Auto on-line function
RS10 Improvement to address formatting:
A-AR, H-HR, L-LR, T-TIM, C-CNT, D-DM, E-EM
RS11 Enable pasting of Symbol data created using MS-Excel and CX-P
V1.2.
RS16 Automatically generate an END instruction in a new section
RS19 Fast connection across empty cells: [Ctrl] + arrow keys
RS24 Connection and division of rungs
RS35 Jump to corresponding contact / coil
RS56 Rung Wrap
RS86 Block / Network Manager

Advanced Industrial Automation


PLC - Basic Hands-on training OMRON

ni ng
t rai
s- o n
ha nd
s i c
ba

Advanced Industrial Automation


Starting a new project in CX-Programmer OMRON

Advanced Industrial Automation


Opening a new Program OMRON

Advanced Industrial Automation


Up- and downloading of PLC programs OMRON

Advanced Industrial Automation


Statement List OMRON

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.01 000.03 100.00

000.02

Advanced Industrial Automation


Statement List OMRON

000.00 000.01 100.00

LD 000.00
AND 000.01
000.02 000.03 OR 000.02
AND 000.03
OUT 100.00

000.00 000.01 000.03 100.00

000.02

000.00 000.01 100.00

LD 000.00
AND 000.01
000.02 000.03 LD 000.02
AND 000.03
OR LD
OUT 100.00

Advanced Industrial Automation


Statement List OMRON

000.04 000.05 100.01

000.06 000.07

000.04 000.05 100.01

LD 000.04
000.06 000.07 OR 000.06
LD 000.05
OR 000.07
000.05 AND LD
OUT 100.01

000.07

Advanced Industrial Automation


Statement List OMRON

000.00 000.01 000.02 000.03 100.02

000.04 000.05 100.03

Advanced Industrial Automation


Statement List OMRON

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

TRY...

Advanced Industrial Automation


Program Writing Seven steps OMRON

1. Define the purpose

2. Problem Splitting

3. Working out

4. Design

5. Writing

6. Testing

7. Finishing

Advanced Industrial Automation


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 OMRON

2.

In-take transport

Drilling station

Transport and ejecting


the products

Advanced Industrial Automation


Program Writing More Splitting OMRON

2.
In-take transport Transport

Drilling station Transport

Drilling

Transport & ejection Transport

Ejection of the
products

Advanced Industrial Automation


Program Writing Defining I/O list OMRON
3. Working out (I/O list)
000.00 FInput Sensor on input belt
000.01 FTransp Sensor on transport belt
000.02 CilOut Cylinder out
000.03 CilIn Cylinder in
000.04 FOutput Sensor on output belt
000.05 PusIn Pusher in
000.06 PusOut Pusher out

100.00 Minput Motor input belt


100.01 MTransport Motor transport belt
100.02 ACyl Cylinder
100.03 MOutput Motor output belt
100.04 APus Pusher

099.15 PUW Product under work


099.14 PUWR Product under work ready
099.13 MP Move products
099.12 MPR Move products ready

Advanced Industrial Automation


Adding comments to the PLC program OMRON

Advanced Industrial Automation


Adding comments to contacts: Symbols OMRON

Global symbols
and
Local symbols

Advanced Industrial Automation


Online Edit OMRON

Advanced Industrial Automation


An easy way to connect OMRON

Advanced Industrial Automation


OMRON

TRY...

Advanced Industrial Automation


Functions OMRON

Ladder symbol Operand Data-area

Condition 1 XYZ(99) S: Source word


Condition 2 S IR, SR, AR, HR, LR, T/C, DM, #
Condition 3 P1 P1: Parameter word
R IR, AR, HR, LR

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

Advanced Industrial Automation


Timer OMRON
Ladder symbol Operand Data-area

Condition 1 TIM N: TC number


N # (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


Normal Timer OMRON

000.00

SV SV
100.00

Advanced Industrial Automation


Delay After Off OMRON

000.01

SV1 SV1

100.01

Advanced Industrial Automation


On/Off Delay OMRON

000.02

SV3 SV3

100.02 SV2 SV2

Advanced Industrial Automation


One Shot OMRON

000.03

SV3 SV3

100.03

Advanced Industrial Automation


High Speed Timer OMRON

Ladder symbol Operand Data-area

Condition 1 TIMH(15) N: TC number


N # (000-511)
SV SV: Set value (BCD)

SV = 1 - 9999 IR, AR, DM, HR, LR, #


Time = 0.01 - 99.99 sec
Contact = TIM0

INPUT

SV SV

TIMER OUTPUT

Advanced Industrial Automation


Counter OMRON
Ladder symbol Operand Data-area

Pulse CNT N: Counter number


Reset N # (000 511)
SV SV: Set value (BCD)
SV = 1 - 9999 IR, AR, DM, HR, LR, #
Contact = CNT511

PULSE

5 4 3 2 1 0 0 5 4 3 5 5 4

RESET

COUNTER OUTPUT

Advanced Industrial Automation


Reversible Counter OMRON
Ladder symbol Operand Data-area

II+ CNTR(12) N: Counter number


DI- N # (000 511)
Reset SV SV: Set value (BCD)
IR, AR, DM, HR, LR, #
SV = 1 - 9999
Contact = CNT511

II+

DI-

0 1 2 3 0 1 2 1 0 3 2 3 0 3 0 1

RESET

COUNTER OUTPUT

Advanced Industrial Automation


Example Program OMRON

Advanced Industrial Automation


OMRON
Try

Manipulation of numbers and bits

ON-LINE edit
Advanced Industrial Automation
Keep OMRON
Ladder symbol Operand Data-area

S KEEP(11) B: Bit
R B IR, AR, HR, LR
000.00 000.01 100.00

100.00

000.00

KEEP(11)
000.01
100.00

BIT

SET

RESET

Advanced Industrial Automation


Set en Reset OMRON

Ladder symbol Operand Data-area

S SET B: Bit
B IR, AR, HR, LR

R RSET B: Bit
B IR, AR, HR, LR

Advanced Industrial Automation


Signal Flanks OMRON
Ladder symbol Operand Data-area

Signal DIFU(13) B: Bit


B IR, AR, HR, LR

Signal DIFD(14) B: Bit


B IR, AR, HR, LR

CYCLUS

Advanced Industrial Automation


Interlock OMRON

Ladder symbol

Signal IL(02)

Signal ILC(03)

Advanced Industrial Automation


Interlock OMRON

PROGRAM
WITHOUT
INTERLOCK

Advanced Industrial Automation


Interlock OMRON

PROGRAM
WITH
INTERLOCK

Advanced Industrial Automation


DIFU and DIFD in Interlocks OMRON
000.00

IL(02)
000.01
DIFU(13)

10.00

ILC(03)

ON
000.00
OFF

ON
000.01
OFF

ON
010.00
OFF

Advanced Industrial Automation


Example Program OMRON

Advanced Industrial Automation


OMRON

Try

Advanced Industrial Automation


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


Questions? OMRON

Thank you
for you
attention

if you have any question

Advanced Industrial Automation


?
PLC - DATA Hands-on training OMRON

ni ng
t rai
s - o n
ha nd
dat a

Advanced Industrial Automation


System Flags OMRON

ADRESS FUNCTION NAME

255.03 ER ERROR error bit


255.04 CY CARRY carry bit
255.05 GR GREATER > bit
255.06 EQ EQUAL = bit
255.07 LE LESS < bit

Advanced Industrial Automation


Instruction groups OMRON
* 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

Advanced Industrial Automation


Logical instructions OMRON

Ladderdiagram: NO contact
NC contact
Output
Inverted output
Horizontal and vertical line

Statement list: LD
LD NOT
AND
AND NOT
OR
OR NOT
OUT
OUT NOT
OR LD
AND LD

Advanced Industrial Automation


Basic Instructions OMRON

NOP(00) No function

END(01) End of program

IL(02) Interlock

ILC(03) Interlock close

Advanced Industrial Automation


Jump Instructions OMRON
LADDER SYMBOOL OPERAND DATAGEBIEDEN

JMP(04) N: Sprongnummer
# (00 to 99)
N

JME(05) N: Sprongnummer
# (00 to 99)
N

000.00

JMP(O4)

000.01 100.00
OUTPUTS FREEZE

TIM

TIMERS STOP
0

#9999

JME(O5)

Advanced Industrial Automation


Jump Instructions OMRON
V.W.1

JMP(O4)

LABEL 0
Can be used more than
JME(O5)
one time in the program.
0

V.W.2

JMP(O4)

JME(O5) USED
More programs into 1 PLC
0
Shorten programs.

Advanced Industrial Automation


Jump Instructions OMRON
V.W.1

JMP(O4)

V.W.2 LABEL 0
JMP-JMP-JME combination
JMP(O4)

JME(O5)

Advanced Industrial Automation


Jump Instructions OMRON
V.W.1

JMP(O4)

V.W.2

JMP(O4) LABEL 1- 99
Can be used only
2 once in the program.

JME(O5)

JME(O5)

Advanced Industrial Automation


Jump Instructions OMRON

JME(O5)

LABEL 1- 99
V.W.1 Jump back in
JMP(O4) the program

USED
Recursive action
Conversion more than one variable
MODBUS CRC Check

Advanced Industrial Automation


Example Program OMRON

Advanced Industrial Automation


OMRON

Try

Advanced Industrial Automation


Data monitoring OMRON

Advanced Industrial Automation


Data Shifting Instructions OMRON

Data Shifting Instructions

Advanced Industrial Automation


Shift Register OMRON
SHIFTREGISTER
SFT(10)
DATA

SFT(10)
Start word
C.P. IR, AR, DM, HR, LR
99
End word
RESET IR, AR, DM, HR, LR
99

99.12 100.00

E St+1, St+2, ... St

0 0 0DATA
VERLOREN 0
1 0 0
1 1 1
0 0
1 1
0 1
0 1
0 1
0 0
1 0
1 EXECUTIE
1 0
0 1
CONDITIE

Condition: End word >= Start word


Same data area

Advanced Industrial Automation


Example Program OMRON

Advanced Industrial Automation


OMRON

Try

Advanced Industrial Automation


Shift Register OMRON
SHIFTREGISTER
SFTR(84)
C: Control word
V.W.
IR, AR, DM, HR, LR
SFTR(84)
St: Start word
C
IR, AR, DM, HR, LR
St
E: End word
E
IR, AR, DM, HR, LR

000.00 10.12
Example L/R
C= IR10
000.01 10.13

DATA
000.02 10.14

CLOCK PULSE

000.03 10.15

RESET

Advanced Industrial Automation


Shift Register OMRON
SHIFTREGISTER
ASL(25)
V.W.

ASL(25) Wd: Word


IR, AR, DM, HR, LR
Wd

ER, EQ

BIT BIT
15 0

0 0 0 1 1 0 1 0 1 1 1 1 0 0 0 0

0
Cy

Advanced Industrial Automation


Shift Register OMRON
SHIFTREGISTER
ASR(26)
V.W.

ASR(26) Wd: Word


IR, AR, DM, HR, LR
Wd

ER, EQ

BIT BIT
15 0

0 0 0 1 1 0 1 0 1 1 1 1 0 0 0 0

0
Cy

Advanced Industrial Automation


Shift Register OMRON
SHIFTREGISTER
ROL(27)
V.W.

ROL(27) Wd: Word


IR, AR, DM, HR, LR
Wd

ER, EQ

BIT BIT
15 0

0 0 0 1 1 0 1 0 1 1 1 1 0 0 0 0

Cy

Advanced Industrial Automation


Shift Register OMRON
SHIFTREGISTER
ROR(28)
V.W.

ROR(28) Wd: Word


IR, AR, DM, HR, LR
Wd

ER, EQ

BIT BIT
15 0

0 0 0 1 1 0 1 0 1 1 1 1 0 0 0 0

Cy

Advanced Industrial Automation


Shift Register OMRON
SHIFTREGISTER
SLD(74)
V.W.

SLD(74) St: Start word


IR, AR, DM, HR, LR
St

E E: End word
IR, AR, DM, HR, LR

ER

E St

1
2 2
3 3
4 4
5 5
6 6
7 7
8 8
0

VERLOREN DATA
0
Condition: End word >= Start word
Same data area

Advanced Industrial Automation


Shift Register OMRON
SHIFTREGISTER
SRD(75)
V.W.

SRD(75) E: End word


IR, AR, DM, HR, LR
E

St St: Start word


IR, AR, DM, HR, LR

ER

St E

1
0 2
1 3
2 4
3 5
4 6
5 7
6 8
7

VERLOREN DATA
0
Condition: End word >= Start word
Same data area

Advanced Industrial Automation


Shift Register OMRON
SHIFTREGISTER
WSFT(16)
V.W.

WSFT(16) St: Start word


IR, AR, DM, HR, LR
St

E E: End word
IR, AR, DM, HR, LR

ER

DM100

0000 0000
1234
1234
1111
2233
1111
1FFF
2233
1FFF
0000
9999
0000
4545
9999 VERLOREN DATA
DM106

Condition: End word >= Start word


Same data area

Advanced Industrial Automation


Notations OMRON
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


Notations OMRON
NOTATIONS
Binary
0,1

1011 11
:2 rest 1

1*20 = 1 5
:2 rest 1
1*21 = 2
2
0*22 = 0 :2 rest 0
3
1*2 = 8 1
:2 rest 1
11
0 1011

Advanced Industrial Automation


Notations OMRON
NOTATIONS
Hexadecimal
0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F

12A4 4772
: 16 rest 4

4 * 16 0 = 4 298
: 16 rest 10=A
10 * 16 1 = 160
18
2 * 16 2 = 512 : 16 rest 2
3
1 * 16 = 4096 1
: 16 rest 1
4772
0 12A4

Advanced Industrial Automation


Notations OMRON
NOTATIONS
Hexadecimal <-> Binary

Hexadecimal 12A4

Binary 0001 0010 1010 0100


2 15 20

Advanced Industrial Automation


Notations OMRON
NOTATIONS
Decimal <-> BCD

Decimal 1294

BCD 0001 0010 1001 0100


23 20 23 20 23 20 23 20
D H T E

Advanced Industrial Automation


Notations OMRON
NOTATIONS
DEC HEX BIN BCD
0 0 00000 0000 0000
1 1 00001 0000 0001
2 2 00010 0000 0010
3 3 00011 0000 0011
4 4 00100 0000 0100
5 5 00101 0000 0101
6 6 00110 0000 0110
7 7 00111 0000 0111
8 8 01000 0000 1000
9 9 01001 0000 1001
10 A 01010 0001 0000
11 B 01011 0001 0001
12 C 01100 0001 0010
13 D 01101 0001 0011
14 E 01110 0001 0100
15 F 01111 0001 0101
16 10 10000 0001 0110
17 11 10001 0001 0111
18 12 10010 0001 1000
19 13 10011 0001 1001
20 14 10100 0010 0000

Advanced Industrial Automation


Data Movement Instructions OMRON

Data Movement Instructions

Advanced Industrial Automation


Data Movement Instructions OMRON
Data Movement Instructions
MOV(21)
V.W.

MOV(21)
S: Source word
IR, AR, DM, HR, LR, TC, #
S
D: Destination word
IR, AR, DM, HR, LR
D

ER, EQ

SOURCE WORD DESTINATION WORD

1101101110011011 1101101110011011

Status source word


will not be changed

Advanced Industrial Automation


Example Program OMRON

Advanced Industrial Automation


OMRON

Try

Advanced Industrial Automation


Differentiated Instructions OMRON
Differentiated Instructions
000.01 000.02 000.03
DIFU(13)

010.00

010.00
MOV(21)

#0001

DM0000

000.01 000.02 000.03


@MOV(21)

#0001

DM0000

Advanced Industrial Automation


Indirect Addressing OMRON
Indirect Addressing
000.01
MOV(21)

#0010

DM0012

BEFORE AFTER

DM0010 0013 DM0010 0013

DM0011 3331 DM0011 3331

DM0012 1234 DM0012 0010

DM0013 A000 DM0013 A000

DM0014 0000 DM0014 0000

DM0015 FFFF DM0015 FFFF

Advanced Industrial Automation


Indirect Addressing OMRON
Indirect Addressing
000.01
MOV(21)

#0010

*DM0012

BEFORE AFTER

DM0010 0013 DM0010 0013

DM0011 3331 DM0011 3331

DM0012 1234 DM0012 1234

DM0013 A000 DM0013 A000

DM0014 0000 DM0014 0000

DM1233 A120 DM1233 A120

DM1234 AD01 DM1234 0010

DM1235 FFFF DM1235 FFFF

Advanced Industrial Automation


Data Movement Instructions OMRON
MVN(22)
V.W.

MVN(22)
Br: Source word
IR, AR, DM, HR, LR, TC, #
Br
D: Destination word
IR, AR, DM, HR, LR
D

ER, EQ

SOURCE WORD DESTINATION WORD

1101101110011011 0010010001100100

Status source word


will not be changed

Advanced Industrial Automation


Data Movement Instructions OMRON
XFER(70)
V.W.
N: Number of words
XFER(70) IR, AR, DM, HR, LR, TC, #

N Br: First source word


IR, AR, DM, HR, LR, TC
Br
D: First destination word
D
IR, AR, DM, HR, LR
ER

Br 3331 D 3331

Br+1 1234 D+1 1234

Br+2 A000 D+2 A000

Br+3 0000 D+3 0000

Br+N-1 A120 D+N-1 A120

Status source word


will not be changed

Advanced Industrial Automation


Data Movement Instructions OMRON
BSET(71)
V.W.
Br: Source word
BSET(71) IR, AR, DM, HR, LR, TC, #

Br St: Start word


IR, AR, DM, HR, LR, TC
St
E: End word
E
IR, AR, DM, HR, LR, TC
ER

Br 3331 St 3331

St+1 3331

St+2 3331

St+3 3331

E 3331

Condition: End word >= Start word


Same data area

Advanced Industrial Automation


Data Movement Instructions OMRON
XCHG(73)
V.W.

XCHG(73) V1: To change word 1


IR, AR, DM, HR, LR, TC
V1
V2: To change word 2
V2 IR, AR, DM, HR, LR, TC

ER

V1 3331
1234 V2 1234
3331

Advanced Industrial Automation


Data Movement Instructions OMRON
MOVB(82)
V.W.
Br: Source word
MOVB(82) IR, AR, DM, HR, LR, #

Br Bi: Bit designation (BCD)


IR, AR, DM, HR, LR, TC, #
Bi
D: Destination word
D
IR, AR, DM, HR, LR
ER

SOURCE WORD

DESTINATION WORD

Bit status source word


will not be changed

Advanced Industrial Automation


Data Movement Instructions OMRON
MOVD(83)
V.W.
Br: Source word
MOVD(83) IR, AR, DM, HR, LR, TC, #

Br Di: Digit designation (BCD)


IR, AR, DM, HR, LR, TC, #
Di
D: Destination word
D
IR, AR, DM, HR, LR, TC
ER

SOURCE WORD

4 2 7 1

Di = #0210

DESTINATION
DOELWOORDWORD

9
7 9
1 3 3

Digit source word


will not be changed

Advanced Industrial Automation


Data Compare Instructions OMRON

Data Compare Instructions

Advanced Industrial Automation


Data Compare Instructions OMRON
CMP(20)
V.W.

CMP(20) Cp1: First compare word


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

255.05 > 100.00

255.06 = 100.01

255.07 < 100.02

ER

Advanced Industrial Automation


Example Program OMRON

Advanced Industrial Automation


OMRON

PROGRAM
DOWNLOAD

Advanced Industrial Automation


Data Compare Instructions OMRON
CMPL(60)
V.W.

CMPL(60) Cp1: First compare word


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

255.05 > 100.00

255.06 = 100.01

255.07 < 100.02

ER

Advanced Industrial Automation


Data Compare Instructions OMRON
BCMP(68)
V.W.
VD: Compare data
BCMP(68)
IR, DM, HR, LR, TC, #
VD
CB: Startaddress table
CB IR, DM, HR, LR, TC
R
R: Result word
IR, AR, DM, HR, LR
ER
VD 1234

Lower limit Upper limit RES


Bit 0
CB 1000 CB+1 2000 1

CB+2 1280 CB+3 1420 0

CB+4 1234 CB+5 1234 1

CB+6 2000 CB+7 2400 0

CB+30 1100 CB+31 1500 1 Bit 15

Advanced Industrial Automation


Data Compare Instructions OMRON
TCMP(65)
V.W.
VD: Compare data
TCMP(65)
IR, DM, HR, LR, TC, #
VD
CB: Startaddress table
CB IR, DM, HR, LR, TC
R
R: Result word
IR, AR, DM, HR, LR
ER
VD 1234

DATA RES
Bit 0
CB 1000 0

CB+1 1280 0

CB+2 1234 1

CB+3 2000 0

CB+15 1100 0 Bit 15

Advanced Industrial Automation


Data Compare Instructions OMRON

MCMP(19) Multiple words compare


CPS(--) Binary compare with sign
CPSL(--) Double binary compare met sign
ZCP(--) Zone compare with sign
ZCPL(--) Double zone compare with sign

Advanced Industrial Automation


Data Conversion Instructions OMRON

BIN(23) BCD ->Binary


BINL(58) Double BCD -> Double Binary
BCD(24) Binary -> BCD
BCDL(59) Double Binary -> Double BCD
ASC(86) HEX -> ASCII
HEX(--) ASCII -> HEX

Advanced Industrial Automation


BCD Calculation Instructions OMRON

BCD Calculation Instructions

Advanced Industrial Automation


Data Calculation Instructions OMRON

LADDER SYMBOOL

STC(40) @STC(40)

LADDER SYMBOOL

CLC(41) @CLC(41)

Bit 255.04

Advanced Industrial Automation


Data Calculation Instructions OMRON
ADD(30)
V.W.
Br1: Source word 1 (BCD)
ADD(30)
IR, AR, DM, HR, LR, TC, #
Br1
Br2: Source word 2 (BCD)
Br2 IR, AR, DM, HR, LR, TC, #
R
R: Result word
IR, AR, DM, HR, LR
ER, EQ, CY

Br1 + Br2 + Cy = R -> Cy

CY before exec. - Br1 (Source) - Br2 (Add) - R (Result) - CY after exec.


0 1234 2345 3579 0
1 1234 2345 3580 0
0 4567 7667 2234 1
1 4567 7667 2235 1
0 9999 0001 0000 1
1 9999 0000 0000 1
0 0000 0000 0000 0

Advanced Industrial Automation


Example Program EXAMPLE PROGRAM OMRON

Advanced Industrial Automation


OMRON

PROGRAM
DOWNLOAD

Advanced Industrial Automation


Data Calculation Instructions OMRON
SUB(31)
V.W.
Br1: Source word 1 (BCD)
SUB(31)
IR, AR, DM, HR, LR, TC, #
Br1
Br2: Source word 2 (BCD)
Br2 IR, AR, DM, HR, LR, TC, #
R
R: Result word
IR, AR, DM, HR, LR
ER, EQ, CY

Br1 - Br2 - Cy = R -> Cy

CY before exec. - Br1 (Source) - Br2 (Add) - R (Result) - CY after exec.


0 1234 2345 8889 1
1 1234 2345 8888 1
0 8567 7667 0900 0
1 8567 7667 0899 0
0 0000 0001 9999 1
1 0001 0000 0000 0
0 0000 0000 0000 0

Advanced Industrial Automation


Data Calculation Instructions OMRON
MUL(32)
V.W.
Vt: Multiply word (BCD)
MUL(32)
IR, AR, DM, HR, LR, TC, #
Vt
Vv: Multiplier(BCD)
Vv IR, AR, DM, HR, LR, TC, #
R
R: First result word
IR, AR, DM, HR, LR
ER, EQ

Vt * Vv = R (R+1)

Attention: the result gives always two words (eight digits)

Advanced Industrial Automation


Data Calculation Instructions OMRON
DIV(33)
V.W.
Dd: Divider word (BCD)
DIV(33)
IR, AR, DM, HR, LR, TC, #
Dd
Dr: Divider (BCD)
Dr IR, AR, DM, HR, LR, TC, #
R
R: First result word
IR, AR, DM, HR, LR
ER, EQ

Dd : Dr = R rest R+1

Attention: the result gives always two words

Advanced Industrial Automation


Data Calculation Instructions OMRON

INC(38) Increases BCD number with 1


DEC(39) Decreases BCD number with 1
ADDL(54) Double word ADD
SUBL(55) Double word SUBTRACT
MULL(56) Double word MULTIPLY
DIVL(57) Double word DIVIDE

Advanced Industrial Automation


Binary Calculation Instructions OMRON

ADB(50) ADD binary


SBB(51) SUBTRACT binary
MLB(52) MULTIPLY binary
DVB(53) DIVIDE binary
ADBL(--) Double word ADD
SBBL(--) Double word SUBTRACT
MBS(--) Signed MULTIPLY
MBSL(--) Double word signed MULTIPLY
DBS(--) Signed DIVIDE
DBSL(--) Double word signed DIVIDE

NEG(--) 2s complement conversion


NEGL(--) 2s complement conversion (double)
CPS(--) 2s complement compare
CPSL(--) 2s complement compare (double)

Advanced Industrial Automation


Logistic Calculation Instructions OMRON

COM(29) 1s Complement
ANDW(34) Logical AND between two words
ORW(35) Logical OR between two words
XORW(36) Logical XOR between two words
XNRW(37) Logical XNOR between two words

Advanced Industrial Automation


Subroutine Instructions OMRON
SBS(91) / SBN(92) / RET(93)
V.W.
N: Subroutine number
SBS(91)
#(00 - 255)
N

ER

SBN(92)

N
APPLICATION
Actions which are executed
- Program -
more than once in the program

RET(93)

Advanced Industrial Automation


Example Program OMRON

Advanced Industrial Automation


OMRON

PROGRAM
DOWNLOAD

Advanced Industrial Automation


Step Instruction OMRON
STEP(08) / SNXT(09)
B: Control bit
STEP(08) IR, AR, HR, LR
B

254.07 Step start flag


- Program -

V.W.
SNXT(09)

Advanced Industrial Automation


Step Instruction OMRON
Example

0
TR1 TR5

1 5
TR2 TR6

2 3 6
TR7
TR3

4 7
TR4 TR8

Ref 0 Ref 1

Advanced Industrial Automation


Step Instruction OMRON
STEP(08) / SNXT(09)

099.00

000.01

099.01

000.02 000.03

099.02 099.00

CNT500

099.00

Advanced Industrial Automation


Example Program EXAMPLE PROGRAM OMRON

Advanced Industrial Automation


OMRON

Try

Advanced Industrial Automation


Task programming OMRON

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


Cyclic Tasks OMRON

List of active tasks is


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

I/O refresh

Advanced Industrial Automation


Interrupt tasks OMRON

Interrupt of cycle task execution can be


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

End
Task 02

Advanced Industrial Automation


Task programming OMRON

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


Cycle time Standard situation OMRON
- Check Battery
Overseeing - Read DIP-switches
Processing - Check I/O Bus
- Check User Program Memory
- Check for Memory Card

Program
Execution
Cycle Time

Refresh data for :


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

Advanced Industrial Automation


Cycle time Parallel Processing Mode OMRON

Peripheral Servicing
Overseeing Overseeing

Cycle Time for


Processing Processing
for program execution
Cycle Time

Peripheral
Program Servicing
Execution

- Faster servicing of events


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

Advanced Industrial Automation


Optimisation of the cycle time OMRON

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


Questions? OMRON

Thank you
for you
attention

if you have any question

Advanced Industrial Automation


?

You might also like