C40K-CDR-A Omron, C40K-CDR-A Datasheet - Page 95

no-image

C40K-CDR-A

Manufacturer Part Number
C40K-CDR-A
Description
PROGRAMMABLE CONTROLLER CPU
Manufacturer
Omron
Datasheet

Specifications of C40K-CDR-A

Leaded Process Compatible
No
Peak Reflow Compatible (260 C)
No
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Timer and Counter Instructions
84
Examples
Example 1:
Basic Application
Example 2:
Extended Timers
Example 3:
ON/OFF Delays
0000
TIM 01
TIM 02
TIM 00
0001
0000
TIM 01
All of the following examples use OUT in diagrams that would generally be
used to control output bits in the IR area. There is no reason, however, why
these diagrams cannot be modified to control execution of other instructions.
The following example shows two timers, one set with a constant and one set
via input word 01. Here, 0200 will be turned ON 15 seconds after 0000 goes
ON and stays ON for at least 15 seconds. When 0000 goes OFF, the timer
will be reset and 0200 will be turned OFF. When 0001 goes ON, TIM 01 is
started from the SV provided through IR word 01. Bit 0201 is also turned ON
when 0001 goes ON. When the SV in 01 has expired, 0201 is turned OFF.
This bit will also be turned OFF when TIM 01 is reset, regardless of whether
or not SV has expired.
Timers operating longer than 999.9 seconds can be formed in two ways. One
is by programming consecutive timers, with the completion flag of each timer
used to activate the next timer. A simple example with two 900.0-second
(15-minute) timers combined to functionally form a 30-minute timer.
In this example, 0200 will be turned ON 30 minutes after 0000 goes ON.
TIM can also be combined with CNT or CNT can be used to count SR area
clock pulse bits to produce longer timers. An example is provided in 5-11-4
COUNTER – CNT .
TIM can be combined with KEEP(11) to delay turning a bit ON and OFF in
reference to a desired execution condition. KEEP(11) is described in 5-6-3
KEEP – KEEP(1 1) .
To create delays, the completion flags for two timers are used to determine
the execution conditions for setting and resetting the bit designated for
KEEP(11). The bit whose manipulation is to be delayed is used in KEEP(11).
Turning ON and OFF the bit designated for KEEP(11) is thus delayed by the
SV for the two timers. The two SV could naturally be the same if desired.
TIM 01
TIM 02
TIM 00
TIM 01
#9000
#9000
0200
#0150
0200
0201
01
900.0 s
900.0 s
Address Instruction
Address Instruction
0000
0001
0002
0003
0004
0005
0006
0007
0000
0001
0002
0003
0004
0005
LD
TIM
LD
OUT
LD
TIM
AND NOT
OUT
LD
TIM
LD
TIM
LD
OUT
Section 5-11
#
TIM
TIM
#
TIM
#
TIM
Operands
Operands
0000
0150
0200
0001
0201
0000
9000
9000
0200
00
00
01
01
01
01
01
02
02

Related parts for C40K-CDR-A