Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual page 327

Programmable controllers
Hide thumbs Also See for SYSMAC CJ - REFERENCE MANUAL 08-2008:
Table of Contents

Advertisement

Timer and Counter Instructions
Example 4:
One-shot Bit
CIO 000000
CIO 000204
Example 4:
Flicker Bit
CIO 000000
CIO 000500
5.0 s
A TIM timer can be combined with OUT or OUT NOT to control how long a
particular bit is ON or OFF. In this example, CIO 000204 will be ON for 1.5
seconds (the SV of T0001) after CIO 000000 goes ON.
1.5 s
1.5 s
The following program examples show two ways to create flicker bits. The
second example just mimics a clock pulse.
Two TIM Instructions
Two TIM timers can be combined to make a bit turn ON and OFF at regular
intervals while the execution condition is ON. In this example, CIO 000205 will
be OFF for 1.0 second and then ON for 1.5 seconds as long as CIO 000000 is
ON.
Address
000000
000001
000002
000003
000004
000005
000006
000007
3.0 s
Address
Instruction Operands
000000
LD
000000
000001
LD
001000
000002
AND NOT
010000
000003
OR
000000
000004
OUT
001000
000005
LD
001000
000006
TIM
0001
#0015
000007
LD
T0001
000008
OUT
010000
000009
LD
001000
000010
AND NOT
010000
000011
OUT
000204
Section 3-6
Instruction Operands
LD
000000
TIM
0001
#0050
LD
000500
AND NOT
000000
TIM
0002
#0030
LD
T0001
LD
T0002
KEEP(011)
000500
287

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents