Omron SYSMAC C20K Operation Manual page 96

K-type programmable controllers
Hide thumbs Also See for SYSMAC C20K:
Table of Contents

Advertisement

Timer and Counter Instructions
0000
0500
0000
TIM 01
TIM 02
0000
0500
5.0 s
Example 4:
One-shot Bits
1000
TIM 01
0000
1000
1000 TIM 01
0000
0204
1.5 s
In the following example, 0500 would be turned ON 5.0 seconds after 0000
goes ON and then turned OFF 3.0 seconds after 0000 goes OFF. It is neces-
sary to use both 0500 and 0000 to determine the execution condition for TIM
02; 0000 in an normally closed condition is necessary to reset TIM 02 when
0000 goes ON and 0500 is necessary to activate TIM 02 when 0000 goes
OFF, setting 0500 by resetting TIM 01.
S
R
3.0 s
The length of time that a bit is kept ON or OFF can be controlled by combin-
ing TIM with OUT or OUT NOT. The following diagram demonstrates how
this is possible. In this example, 0204 would remain ON for 1.5 seconds after
0000 goes ON regardless of the time 0000 stays ON. This is achieved by
using 1000, activated by 0000, to turn ON 0204. When TIM 01 comes ON
(i.e., when the SV of TIM 01 has expired), 0204 will be turned OFF through
TIM 01 (i.e., TIM 01 will turn ON for an normally closed condition, creating an
OFF execution condition for OUT 0204). TIM 01 will also turn OFF 1000 the
next cycle, resetting the one-shot.
TIM 01
1.5 s
Address Instruction
TIM 01
0000
LD
#0050
5.0 s
0001
TIM
TIM 02
0002
LD
#0030
3.0 s
0003
AND NOT
0004
TIM
KEEP(11)
0005
LD
0500
0006
LD
0007
KEEP(11)
Address Instruction
1000
0000
LD
0001
AND NOT
0002
OR
0003
OUT
0004
LD
0005
TIM
#0015
1.5 s
0006
LD
0204
0007
AND NOT
0008
OUT
Section 5-11
Operands
0000
01
#
0050
0500
0000
02
#
0030
TIM
01
TIM
02
0500
Operands
1000
TIM
01
0000
1000
1000
01
#
0015
1000
TIM
01
0204
85

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac c40kSysmac c60kSysmac c28k

Table of Contents