NORD Drivesystems BU0550 User Manual

Page 45

Advertising
background image

3 AWL (Instruction List, IL)

BU 0550 GB-0813

45

3.5.1.3

CTUD upward and downward counter

With a rising flank on CU the counter of the counter CV is increased by 1, as long as CV is less than 32767.
With a rising flank on CD the counter CV is reduced by 1, as long as CV is greater than -32768. Via R the
counter CV can be reset to 0. Via LD the value saved in PV is copied to CV.

LD and R have priority over CU and CV. PV can be changed at any time; QU always refers to the value
which is currently set.

CU

R

CD

LD

CV

QU

QD

PV

Table 61 CTUD upward and downward counter

3.5.1.4

SR Flip Flop

Bi-stable function: the output Q1 is set via S1 and deleted via R. S1 is dominant if TRUE is set on R and S1
simultaneously.

Table 62 SR Flip Flop

VAR_INPUT

VAR_OUTPUT

Input

Explanation

Type

Output

Explanation

Type

CU

Counting upwards

BOOL

QU

TRUE, if CV >= PV

BOOL

CD

Counting downwards

BOOL

QD

TRUE, if CV <= 0

BOOL

R

Reset: counter reading

BOOL

CV

Actual counter reading

INT

LD

Load starting value

BOOL

PV

Starting value

INT

VAR_INPUT

VAR_OUTPUT

Input

Explanation

Type

Output

Explanation

Type

S1

Set

BOOL

Q1

Output

BOOL

R

Reset

BOOL

Advertising