Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
OMRON
g
n
i
n
i
a
r
t
n
o
s
d
n
a
h
c
l
p
Advanced Industrial Automation
OMRON
OMRON
Building up an Project
PLC-Advanced Hands-on Training
OMRON
Functionality
CS1
C200HE/HG/HX
CQM1H
CJ1
SRM1
CPM2C
CPM2A
CPM1A
ZEN
34
100 120
140
256
512
1184
2560
5000
I/O
OMRON
CPM2C
Advanced Industrial Automation
CPM1A
The Micro PLC, standard
for most of the basic
applications
CPM
High functionality Micro
PLC fully compatible with
CPM1A
CPM2A
OMRON
CPM1A Family
OMRON
CPM2A Family
OMRON
CPM1A-10
CPM1A-20
No-expansion
CPM1A-30
CPM1A-40
CPM2A-20
CPM2A-30
CPM2A-40
CPM2A-60
Max. 3 modules extra
I/O Inputs:
I/O Outputs:
Advanced Industrial Automation
0.00 9.15
10.00 19.15
OMRON
CPM2A 40 I/O
24 digital inputs
16 digital outputs
12 digital inputs
8 digital outputs
0.00 0.11
1.00 1.11
2.00 2.07
3.00 3.03
10.00 10.07
11.00 11.07
12.00 12.07
CPUs
OMRON
Modules
Inner boards
Communications
Advanced Industrial Automation
OMRON
CQM1H modules
Variety of Digital and
Analogue I/O
Temperature control
Linear sensor module
Remote I/O master, fieldbus
masters
OMRON
CQM1H expansion
OMRON
CQM1H expansion
OMRON
OMRON
000.00 015.15
Output bits
100.00 115.15
Work bits
016.00 089.15
116.00 189.15
216.00 219.15
224.00 229.15
Special bits
244.00 255.07
Temporary bits
TR0 TR7
Holding bits
HR00.00 HR99.15
Auxiliary bits
AR00.00 AR27.15
Link bits
LR00.00 LR63.15
Timers / counters
Data memory
Interrupts
000.00 000.03
CPU settings
Holds on power failure
/!\ Mixed
4 interrupts sequence
OMRON
CQM1H networking
Controller link
CompoBus/D (Slave)
CompoBus/S (Master)
OMRON
OMRON
CS1D
OMRON
OMRON
PS
PS
CPU
Duplex unit
CPU
CLK
Expansion
I/O Rack
PS
PS
Expansion
I/O Rack
PS
PS
CLK
Duplexing functions:
Double power supply (main and expansion rack)
Double CPU
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)
I/O
CS1D Hot-standby
OMRON
OMRON
OMRON
OMRON
OMRON
OMRON
2/3 the
Panel Depth
1/3 Total
Panel
Volume
Advanced Industrial Automation
OMRON
OMRON
Ethernet
Controller Link
DeviceNet
CompoBus/S
Single Port Multiple Access
Protocol Macro
OMRON
OMRON
SCADA
Protocol Macro:
Non-Omron Serial Devices
MESSAGE BOARD
Ethernet
CLK
PCI Board
Flash
Memory
Ethernet
Host Link
Controller Link
DeviceNet or CompoBus/S
Omron
Touch Screen
Programming/Diagnostic
Software
OMRON
CPU Rack
Expansion 1
Expansion 2
Expansion 3
CJ1M - series
OMRON
OMRON
OMRON
CJ1M - features
.CJ1M-CPU11 (5Ksteps)
Peripheral port
RS232C
Memory card interface
Just 31mm wide
CJ1M-CPU12 (10Ksteps)
CJ1M-CPU13 (20Ksteps)
31
CJ1M-CPU11 (5Ksteps)
CJ1M-CPU22 (10Ksteps)
CJ1M-CPU23 (20Ksteps)
OMRON
20 K
120 K steps
15 K
CQM1H
32 K
12 K
256 K words
OMRON
2560
640
CJ1M
512
CQM1H
40
20
CJ1M
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
OMRON
20 ns
CJ1M
100 ns
375 ns
CQM1H
Execution Time (Special Instructions)
0.04 s
CJ1G/H
CJ1M
0.3 s
17.7 s
CQM1H
OMRON
CJ1-CPU
CJ1-I/O
Control Unit
Max 12 m
Memory Card
CJ1-Power
Supply
Basic I/O
Special I/O
CPU-Bus I/O(*)
Interrupt units(*)
Max 10 Units
CJ1-I/O
Interface Unit
Basic I/O
Special I/O
CPU-Bus I/O
End-Cover
Max 10 Units
WARNING
End-Cover
OMRON
D20000 to D29599
(Setup area : 100 words/unit)
D30000 to D31599
(Setup area : 100 words/unit)
OMRON
I/O word
000
IN
16
001 002
006
003 004 005 007
OUT IN OUT
16 16 16
IN
16
IN
16
IN
32
008
009
010
011
OUT
64
OMRON
IN
16
Reserved
000
Reserved
I/O word
006
001 002 003 004 005 007
008
009
010
011
OUT IN OUT
16 16 16
IN
16
IN
16
IN
32
OUT
64
OMRON
CIO word
IN
16
003
IN
16
007
OUT
16
001 002
OUT
16
IN
16
OUT
16
IN
16
OUT
16
IN
16
OUT
16
IN
16
OMRON
CPU
BUS
Special
I/O
Special
I/O
000
002
001
003
004
005
006
007
008
009
010
00
00
01
IN
16
1500
1524
2000
2009
OUT
16
OUT OUT
16
64
2010
2019
IN
64
CX-programmer V3.0
OMRON
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
OMRON
g
n
i
n
i
a
r
t
n
o
s
d
n
a
h
c
i
s
ba
Advanced Industrial Automation
OMRON
OMRON
OMRON
OMRON
Statement List
000.00
000.01
000.01
100.00
000.02
LD
AND
OR
AND
OUT
000.00
000.02
000.01
000.03
100.00
000.00
000.01
000.02
000.03
100.00
OMRON
Statement List
000.00
000.02
000.01
100.00
LD
AND
OR
AND
OUT
000.03
000.00
000.00
000.01
000.02
000.03
100.00
000.01
000.03
000.02
000.00
000.02
000.01
000.03
100.00
LD
AND
LD
AND
OR LD
OUT
000.00
000.01
000.02
000.03
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
OR
LD
OR
AND LD
OUT
000.04
000.06
000.05
000.07
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
AND
OUT TR
AND
AND
OUT
LD TR
AND
AND
OUT
Advanced Industrial Automation
000.00
000.01
0
000.02
000.03
100.02
0
000.04
000.05
100.03
OMRON
TRY...
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
FTransp
CilOut
CilIn
FOutput
PusIn
PusOut
100.00
100.01
100.02
100.03
100.04
Minput
MTransport
ACyl
MOutput
APus
099.15
099.14
099.13
099.12
PUW
PUWR
MP
MPR
OMRON
Global symbols
and
Local symbols
OMRON
Online Edit
OMRON
OMRON
OMRON
TRY...
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
Time
Contact
= 1 - 9999
= 0.1 - 999.9 sec
= 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
Time
Contact
= 1 - 9999
= 0.01 - 99.99 sec
= TIM0
INPUT
SV
SV
TIMER OUTPUT
OMRON
Counter
Ladder symbol
Operand Data-area
Pulse
CNT
N: Counter number
Reset
# (000 511)
SV
= 1 - 9999
= CNT511
SV
Contact
PULSE
RESET
COUNTER OUTPUT
OMRON
Reversible Counter
Ladder symbol
Operand Data-area
II+
CNTR(12)
N: Counter number
DI-
# (000 511)
Reset
SV
SV
Contact
= 1 - 9999
= CNT511
II+
DI-
0
RESET
COUNTER OUTPUT
Example Program
OMRON
OMRON
Try
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
Set en Reset
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)
000.00
ON
OFF
000.01
ON
OFF
010.00
ON
OFF
Example Program
OMRON
OMRON
Try
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
Questions?
Thank you
for you
attention
OMRON
g
n
i
n
i
a
r
t
n
o
s
d
n
a
h
a
t
da
Advanced Industrial Automation
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
LADDER SYMBOOL
OPERAND DATAGEBIEDEN
JMP(04)
N: Sprongnummer
# (00 to 99)
N
N: Sprongnummer
# (00 to 99)
JME(05)
N
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
OMRON
Try
Data monitoring
OMRON
OMRON
OMRON
Shift Register
SHIFTREGISTER
SFT(10)
DATA
SFT(10)
C.P.
Start word
IR, AR, DM, HR, LR
99
End word
IR, AR, DM, HR, LR
RESET
99
99.12
VERLOREN
0 0 0DATA
0
1
Condition:
100.00
St
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
Example Program
OMRON
OMRON
Try
OMRON
Shift Register
SHIFTREGISTER
SFTR(84)
C: Control word
IR, AR, DM, HR, LR
V.W.
SFTR(84)
C
St
E: End word
IR, AR, DM, HR, LR
E
000.00
10.12
Example
C= IR10
L/R
000.01
10.13
DATA
000.02
10.14
CLOCK PULSE
000.03
10.15
RESET
OMRON
Shift Register
SHIFTREGISTER
ASL(25)
V.W.
ASL(25)
Wd
Wd: Word
IR, AR, DM, HR, LR
ER, EQ
BIT
15
BIT
0
0 0 0 1 1 0 1 0 1 1 1 1 0 0 0 0
Cy
OMRON
Shift Register
SHIFTREGISTER
ASR(26)
V.W.
ASR(26)
Wd
Wd: Word
IR, AR, DM, HR, LR
ER, EQ
BIT
15
BIT
0
0 0 0 1 1 0 1 0 1 1 1 1 0 0 0 0
Cy
OMRON
Shift Register
SHIFTREGISTER
ROL(27)
V.W.
ROL(27)
Wd
Wd: Word
IR, AR, DM, HR, LR
ER, EQ
BIT
15
BIT
0
0 0 0 1 1 0 1 0 1 1 1 1 0 0 0 0
Cy
OMRON
Shift Register
SHIFTREGISTER
ROR(28)
V.W.
ROR(28)
Wd
Wd: Word
IR, AR, DM, HR, LR
ER, EQ
BIT
15
BIT
0
0 0 0 1 1 0 1 0 1 1 1 1 0 0 0 0
Cy
OMRON
Shift Register
SHIFTREGISTER
SLD(74)
V.W.
SLD(74)
St
E: End word
IR, AR, DM, HR, LR
ER
1
2
2
3
St
3
4
4
5
5
6
6
7
7
8
8
0
VERLOREN DATA
0
Condition:
OMRON
Shift Register
SHIFTREGISTER
SRD(75)
V.W.
E: End word
IR, AR, DM, HR, LR
SRD(75)
E
St
ER
St
1
0
2
1
3
2
4
3
5
4
6
5
7
6
8
7
VERLOREN DATA
0
Condition:
OMRON
Shift Register
SHIFTREGISTER
WSFT(16)
V.W.
WSFT(16)
St
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:
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
1294
BCD
20
D
23
20 23
H
20 23
T
20
E
OMRON
Notations
NOTATIONS
DEC
HEX
BIN
BCD
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
00000
00001
00010
00011
00100
00101
00110
00111
01000
01001
01010
01011
01100
01101
01110
01111
10000
10001
10010
10011
10100
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
S: Source word
IR, AR, DM, HR, LR, TC, #
D: Destination word
IR, AR, DM, HR, LR
D
ER, EQ
SOURCE WORD
DESTINATION WORD
1101101110011011
1101101110011011
Example Program
OMRON
OMRON
Try
OMRON
Differentiated Instructions
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
OMRON
Indirect Addressing
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
OMRON
Indirect Addressing
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
OMRON
Br
D: Destination word
IR, AR, DM, HR, LR
D
ER, EQ
SOURCE WORD
DESTINATION WORD
1101101110011011
0010010001100100
OMRON
N: Number of words
IR, AR, DM, HR, LR, TC, #
Br: First source word
IR, AR, DM, HR, LR, TC
N
Br
ER
Br
3331
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
OMRON
BSET(71)
Br
St
E: End word
IR, AR, DM, HR, LR, TC
ER
Br
Condition:
3331
St
3331
St+1
3331
St+2
3331
St+3
3331
3331
OMRON
XCHG(73)
V1
V2
ER
V1
3331
1234
V2
1234
3331
OMRON
MOVB(82)
Br
Bi
D: Destination word
IR, AR, DM, HR, LR
ER
SOURCE WORD
DESTINATION WORD
1
Bit status source word
will not be changed
OMRON
MOVD(83)
Br
Di
D: Destination word
IR, AR, DM, HR, LR, TC
ER
SOURCE WORD
1
Di = #0210
DESTINATION
DOELWOORD
WORD
9
7
9
1
OMRON
OMRON
ER
255.05 >
100.00
255.06 =
100.01
255.07 <
100.02
Example Program
OMRON
OMRON
PROGRAM
DOWNLOAD
OMRON
ER
255.05 >
100.00
255.06 =
100.01
255.07 <
100.02
OMRON
BCMP(68)
VD
CB
R
R: Result word
IR, AR, DM, HR, LR
ER
VD
Lower limit
1234
Upper limit
RES
CB
1000
CB+1
2000
CB+2
1280
CB+3
1420
CB+4
1234
CB+5
1234
CB+6
2000
CB+7
2400
CB+30
1100
CB+31
1500
Bit 0
Bit 15
OMRON
TCMP(65)
VD
CB
R
R: Result word
IR, AR, DM, HR, LR
ER
VD
1234
DATA
RES
CB
1000
CB+1
1280
CB+2
1234
CB+3
2000
CB+15
1100
Bit 0
Bit 15
MCMP(19)
CPS(--)
CPSL(--)
ZCP(--)
ZCPL(--)
OMRON
OMRON
BIN(23)
BINL(58)
BCD(24)
BCDL(59)
ASC(86)
HEX(--)
BCD ->Binary
Double BCD -> Double Binary
Binary -> BCD
Double Binary -> Double BCD
HEX -> ASCII
ASCII -> HEX
OMRON
OMRON
LADDER SYMBOOL
STC(40)
@STC(40)
LADDER SYMBOOL
CLC(41)
Bit 255.04
@CLC(41)
OMRON
R: Result word
IR, AR, DM, HR, LR
ER, EQ, CY
Example Program
EXAMPLE PROGRAM
OMRON
OMRON
PROGRAM
DOWNLOAD
OMRON
R: Result word
IR, AR, DM, HR, LR
ER, EQ, CY
OMRON
ER, EQ
Vt * Vv = R (R+1)
OMRON
ER, EQ
Dd : Dr = R
rest R+1
INC(38)
DEC(39)
ADDL(54)
SUBL(55)
MULL(56)
DIVL(57)
OMRON
OMRON
ADB(50)
SBB(51)
MLB(52)
DVB(53)
ADBL(--)
SBBL(--)
MBS(--)
MBSL(--)
DBS(--)
DBSL(--)
ADD binary
SUBTRACT binary
MULTIPLY binary
DIVIDE binary
Double word ADD
Double word SUBTRACT
Signed MULTIPLY
Double word signed MULTIPLY
Signed DIVIDE
Double word signed DIVIDE
NEG(--)
NEGL(--)
CPS(--)
CPSL(--)
2s complement conversion
2s complement conversion (double)
2s complement compare
2s complement compare (double)
COM(29)
ANDW(34)
ORW(35)
XORW(36)
XNRW(37)
OMRON
1s Complement
Logical AND between two words
Logical OR between two words
Logical XOR between two words
Logical XNOR between two words
OMRON
Subroutine Instructions
SBS(91) / SBN(92) / RET(93)
V.W.
SBS(91)
N: Subroutine number
#(00 - 255)
ER
SBN(92)
N
- Program -
RET(93)
APPLICATION
Actions which are executed
more than once in the program
Example Program
OMRON
OMRON
PROGRAM
DOWNLOAD
OMRON
Step Instruction
STEP(08) / SNXT(09)
B: Control bit
IR, AR, HR, LR
STEP(08)
B
OMRON
Step Instruction
Example
0
TR1
TR5
5
TR2
TR6
6
TR7
TR3
7
TR4
Ref 0
TR8
Ref 1
OMRON
Step Instruction
STEP(08) / SNXT(09)
099.00
000.01
099.01
000.02
099.02
000.03
099.00
CNT500
099.00
Example Program
EXAMPLE PROGRAM
OMRON
OMRON
Try
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
OMRON
Cycle Time
Overseeing
Processing
- 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