Counter, up/down (ctud), C.2.6 counter, up/down (ctud) – Nematron Pointe Controller User Manual

Page 358

Advertising
background image

Appendix C: Ladder Diagram Block Reference

Pointe Controller User Guide

356

Configuration Reference

The parameters of this block are described in the following table:

Param

Name

Config

Var Type

Description

EN

Enable

no

-

The state of the rung (off/on)
received from the left.

ENO

Enable
Out

no

-

The state of the rung (off/on)
passed to the right.

CD

Count
Down

req

%IX

%QX

%MX

T_DONE

The enable bit which must be set in
order for the counter to
decrement.

L

Preset

req

%IX

%QX

%MX

T_DONE

The preset bit; if this bit is set, then
the counter is set to the preset
value.

PV

Preset
Value

req

%IUD

%QUD

%MUD

Numeric

The preset value of the counter.

QD

Output
Down

req

%QX

%MX

The “done” bit which is set when
the counter reaches 0.

CV

Counter
Value

req

%QUD

%MUD

The current value of the counter.

C.2.6 Counter, Up/Down (CTUD)

When used in a Ladder Diagram, the CTUD block either increments or decrements
a counter by 1, depending on which enable bit is set. It also sets “done bit when
the counter reaches either a preset value or 0.

Select the

tool (from the

Timers and Counters Blocks

toolbar) and click on a

ladder rung to insert the following block:

Advertising