Vous êtes sur la page 1sur 9

PLC TIMERS, COUNTERS, AND

FUNCTION BLOCKS
Unitronics V350-RA22
Timers

The V350 OPLC has a total of 384 timers; resolution =


10 milliseconds

Three types of timers are available: TD (delay,) TA


(accumulating,) and TE (extended)

The most commonly-used is the TD variety, corresponding
to the classical ON-delay timer behavior

Addressing format: Txxx

2/9
Slides prepared by Alberto de Villa. February 9, 2017
Timers
Description goes here.

The address is
placed here. T
represents timers..

Select timer type here. TD is the most common. Enter the preset time value
here. As before, the plug
Select format view here. TIME corresponds
determines whether the timer
to HH:MM:SS.ss, while SEC counts the raw
is initialized at power-up.
number of seconds.
Always check the plug when
dealing with TD-type timers.
3/9
Slides prepared by Alberto de Villa. February 9, 2017
Counters

The V350 OPLC from Unitronics has 32 counters



Range is a signed 32-bit integer

Addressing format: Cxxx

Unlike classic PLC counters, V350 counters have a


provision to initialize the value of a counter at each
power-up

4/9
Slides prepared by Alberto de Villa. February 9, 2017
Counters
Description goes here.

The address is
placed here. C
represents timers..

Select format view here. Integers can be


input and displayed either in decimal form,
or hexadecimal.
Enter the preset counter value here. As
before, the plug determines whether
the counter is initialized at power-up.
Classic counter behavior requires that
the plug be unchecked.
5/9
Slides prepared by Alberto de Villa. February 9, 2017
PLC numerical values

Integer (16-bit) MIxxxx / SIxxxx

Long (signed 32-bit) MLxxx / SLxxx

Double word (unsigned 32-bit) DWxxx

6/9
Slides prepared by Alberto de Villa. February 9, 2017
Some useful function blocks

Comparison (<, >, !=, ==, <=, >=)

Math (add, sub, mul, div, mod, inc, dec)

Bit numeric

Bitwise operations (AND, OR, XOR)

Data transfer (store, load)

Vector operations (bits or integers are supported)

7/9
Slides prepared by Alberto de Villa. February 9, 2017
VisiLogic Sample (Counters & FBs)
Every time this block is
active, the integer is
incremented. (Use DEC
to decrement.)

ENO is active only


when both EN and the
condition are true.

If active, the counter is


held in reset (to zero.)

When used as a bit, counters


indicate whether the preset
value has been reached.
8/9
Slides prepared by Alberto de Villa. February 9, 2017
END

Vous aimerez peut-être aussi