15.07.2013 Views

Automatic control function programming manual ladder language

Automatic control function programming manual ladder language

Automatic control function programming manual ladder language

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Example<br />

5.2.2.5 Up/Downcounters<br />

Two types of up/downcounter <strong>function</strong> blocks are available:<br />

- upcounters CTU_n<br />

- downcounters CTD_n.<br />

There are 128 available up/downcounters.<br />

Variables %C0.L to %C7F.L contain the current up/down counter value. Only size .L is allowed for read and write by<br />

UNITE.<br />

Variables %CQ0.7 to %CQ7F.7 are the image of the up/down counter (Q). Only bit .7 is allowed for read and write<br />

by UNITE.<br />

REMARK The up/down counters are reset only by a reset of the saved variables.<br />

Timeout type Description<br />

CTU_n() Upcounter (n = 00 to 7F)<br />

E<br />

C<br />

Q<br />

Setting of E sets output Q as soon as the threshold is reached.<br />

Reset of E resets output Q. C defines the elements to be upcounted.<br />

The threshold argument is a numerical expression.<br />

CTU_n() Downcounter (n = 00 to 7F)<br />

E Q<br />

Setting of E sets output Q as soon as the threshold is reached.<br />

Reset of E resets output Q. C defines the elements to be<br />

C<br />

downcounted. The threshold argument is a numerical expression.<br />

5 - 12 en-938846/7

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!