beautypg.com

Micromod MOD: 1800P - MOD 30ML Identity Module (Version 2) Algorithms, Tables and Sequential Logic Functions User Manual

Page 65

background image

Logic Functions - Book 2

TIMER BLOCK

8-57

Table 8-6. Timer Block Attributes, Valid Values, Mnemonics, and Data Types

Attribute

Mnemonic

Valid Values

CWR

Data Type

Attr

Version

VERSION

1

– – R Long State

00

Block Length

BLKLEN

– – R Count

01

State

STATE

RUN (0), HOLD (1), OFF (2),
DEBUG (3)

CWR Short State

02

Bad Inputs Accepted

BADINP

NO (0), YES (1)

CWR Discrete

03

Auto Wrap

WRAP

NO (0), YES (1)

CWR Discrete

04

Timer Limits, High

HILIM

Msec_time value

CWR Msec time

05

Timer Limits, Low

LOLIM

Msec_time value

CWR Msec time

06

Timer Value

TIME

Msec_time value

CWR Msec time

07

Timer Value Quality

TIMEQ

GOOD (0), BAD (1)

– WR Discrete

08

High Limit Status

HLSTAT

FALSE (0), TRUE (1)

CWR Discrete

09

High Limit Status Quality

HLSTATQ

GOOD (0), BAD (1)

– WR Discrete

10

Low Limit Status

LLSTAT

FALSE (0), TRUE (1)

CWR Discrete

11

Low Limit Status Quality

LLSTATQ

GOOD (0), BAD (1)

– WR Discrete

12

Reset Command

RESCMD

FALSE (0), TRUE (1)

– WR Discrete

13

Reset Value Input

RSVAINP

Msec_time value or LSP

CWR Msec time

14

Reset Input

RESINP

NONE or LSP

C – R Discrete

15

Disable Input

DISINP

FALSE(0), TRUE(1) or LSP

CWR Discrete

16

Direction Input

DIRINP

DOWN (0), UP (1) or LSP

CWR Discrete

17

02

State (STATE).....................................................................................................................CWR
See Section 2.4.1, State Changes for additional information.

RUN

0

Normal Operation. Block is executed.

HOLD

1

Block is not executed. Qualities retain previous values.

OFF

2

Block is not executed. Qualities will be BAD.

DEBUG

3

Block is not executed. No fields are updated. All attributes are
writeable.

03

Bad Inputs Accepted (BADINP) ........................................................................................CWR
See Section 2.3.2, Data Quality for additional information.

NO

0

The direction, disable and reset inputs are examined on every
execution of the timer. If any of these inputs are bad, then the timer
does not update its outputs and the output qualities are set bad. The
reset value input is only used if the timer is being reset, and therefore
does not effect the timer function until a reset occurs. When a reset
does occur (command or input) and the reset value input quality is
bad, the outputs are not updated and the qualities are set bad. The
reset input and reset value input effect the outputs and qualities on
the cycle they are detected. Since the direction and disable inputs
are effectively delayed, their qualities do not effect the outputs until
the next scan.

YES

1

Block runs its algorithm without a check on input quality.