Вы находитесь на странице: 1из 6

7.

USEFUL CIRCUITRY

1 – Cycle Differentiation Circuit


Description Circuit Example 1

0000
Differentiation up circuit operates for only one cycle time DIFU (13) Differentiation up
when an input signal turns on (i.e., at the leading edge of 0200 output
the input signal). (DIFU)
0200
Signal 1000 Output
(input signal)

Differentiation 0000
Differentiation up
DIFU (13)
output 0200 output
T
(DIFU)
T: 1 cycle execution time 0200
JMP (04)
Differentiation down circuit operates for only one cycle
time when an input signal turns off (i.e., at the falling Program A
edge of the input signal).
JMP (05)
Signal
(input signal)
0000
Differentiation DIFD (14) Differentiation
output 0200 Down output
T (DIFD)
0200
1001 Output
Application example
Using the 1-cycle differentiation up circuit when an This circuit causes program A to be executed only once at
arithmetic operation is to be executed only once at the the leading edge of input signal 0000.
leading edge of an input signal (i.e., when the input signal
turns on), when a given program (A, in the example
below) is to be executed only once at the leading edge of Write the JMP and JMEinstructions before and
the input signal, etc. To execute the arithmetic operation, after program A, respectively.
the given program, etc., only once at the trailing edge of
an input signal (i.e., when the input signal turns off), use
the 1-cycle differentiation down circuit. Circuit Example 2

This circuit is an application example of the


differentiation circuit using an auxiliary relay.
I/O Assignment
Signal (input signal) 0000
Signal (input signal) 0000 Differentiation output 1000
Differentiation output 0200 Auxiliary relay 1001
Output relay 1000
Output relay 1001

0000 0000
Differentiation up DIFU (13) Differentiation up
1000 output
output 0200
0000
1001

7-1
7. USEFUL CIRCUITRY

(DIFU)
0200
JMP (04)

0000 0201 Program A


Differentiation down
1000
output
JMP (05)
0000
1001

This circuit causes program A to be executed only once at


the leading edge of input signal 0000.

Write the JMP and JME instructions before and


after program A, respectively.

Flicker Circuit 0000

Description (2) 1-sec clock pulse (Auxiliary relay 25502) is used


Signal 3200
(input signal)
This circuit repeat outputs at specified ON/OFF intervals 0000 25502
T2 T1 T2 T1 T2 T1 T2 T1
when aoutput
Flicker signal (input signal) is applied. 1000
Flicker
output
T1: 0.5 sec
T1 T2
T2: This time changes depending on the
7-2
T1, T2: Specified ON and OFF times
7. USEFUL CIRCUITRY

Application examples
Use this circuit for the count input of a long-timer (using
a CNT instruction), the flickering failure indication of an
annunciator, the timing generation of a relay circuit, etc.

(3) 1-cycle execution time is used


I/O Assignment
0000 1000
Signal (Input signal) 0000 Flicker
Flicker output relay 1000 1000
output
1-sec clock pulse Auxiliary relay 25502

Circuit Examples 0000

The circuit examples below are applicable to many PLCs.


1000

(1) Timers are used.


T1 T2 T2 T2 T2 T2 T2
0000 TIM002
TIM T1: This time changes depending on the
ON time
001 program position.
1 sec
TIM001
T2: 1-cycle execution time
TIM Off time
002 2 sec
0000 TIM001
Flicker
1000
output

0000

3200

T1 T2 T1 T2 T1 T2 T1

T1: 1 sec
T2: 2sec

Single-shot Circuit
Description Circuit Example

7-3
7. USEFUL CIRCUITRY

This circuit is used to keep the ON time of a single (input This circuit is applicable to many PLCs.
signal) constant.
0000
1000
Signal
(input signal) 1000 TIM001

Differentiation
output 1000
T T TIM Single-shot
001 time 3 sec
T: Single-shot time (constant)
1000 TIM001
Single-shot
1001
output
I/O Assignment
Signal (Input signal) 0000
Single-shot output relay 1001
Output relay 1000

Long-Time Timer Circuit

Description (2) A combination of a timer and a counter

7-4
7. USEFUL CIRCUITRY
The timers can be set to a maximum of 999.9 sec. Use
0000
this circuit if the time setting exceeding this maximum is TIM001
TIM
required. 001 5 sec

TIM001

Timer ON condition 2,000


counts
0000

Timer output
Time setting
(999.9 sec min) CNT002
1002 Timer output

I/O Assignment

Timer ON condition 0000 With this combination, a 10,000-sec (5sec x 2,000


Timer output: Output relay 1002 counts) timer circuit is configured.

Timer TIM001 is used to generate 5-sec pulses which are


Circuit Example
then counted by counter CNT002 to 2,000 counts.
The circuit examples below are applicable to many
PLCs. When the CNT instruction is used, the present value of
the timer is retained during a power failure.
(1) A combination of two timers
(3) A combination of a 1-sec clock (25502) and a
0000 counter (memory retentive type timer)
TIM
001 500 sec
TIM1 0000 25502
TIM
002 800 sec
CNT001
TIM2 0000 #5000

1002 Timer output

CNT001
1002 Timer output

Without two timers, a 1,300-sec (500 + 800sec) timer


circuit is configured.
With this combination, a 5,000-sec timer circuit is
A timer circuit of 1999.8 sec (999.9 + 999.9sec) configured.
maximum can be configured.
Special auxiliary relay 25502 generates a 1-sec clock.

When the CNT instruction is used, the present value of


the timer is retained during a power failure.

ON/OFF-Delay Circuit
I/O Assignment
Description

This circuit is used to delay the ON/OFF time of a signal


Signal (input signal) 0000
(input signal) for a given time.
ON/OFF-delay output : Output relay 1003

7-5
7. USEFUL CIRCUITRY

Circuit Example
Signal (input signal)

The circuit examples below are applicable to CPM1


ON/OFF delay output
0000
TIM 0.1sec ON-delay
T1 T2 001 time
T1 : ON-delay time
T2 : OFF-delay time TIM001
TIM002
ON/OFF-delay
1003
output

1003
Application example
When a data input (BCD) and a data read input are
received simultaneously from external devices, it is
1003 0000
necessary to turn on the data read input after data has TIM 0.1sec
been accepted. With consideration given to the non- 002 OFF-delay time
uniformity of response time among the input cards, use an
ON-delay circuit for the data read input.

7-6

Вам также может понравиться