beautypg.com

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

Page 18

background image

Logic Functions - Book 2

EXPRESSION BLOCK

8-10

00

Block Version (VERSION)................................................................................................. – – R
The expression block is at version 3. The functional changes are:

1

Initial Release

2

Added operators for **, ABS, EXP, NLOG, LOG, INT, and the
conditional operators IF, THEN, and ELSE.

3

Added Inputs 21 through 46.

02

State (STATE) .................................................................................................................... CWR
All block state changes are reported as events. 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 (BADINP)......................................................................................................... CWR
See Section 2.3.2, Data Quality for additional information.

Rejected

0

Block checks data quality on its inputs and will only run its algorithm if
its input is good (no action will be taken on the value). The result will
be held at the previous value and the result quality will be set bad.

Accepted

1

Block runs its algorithm without a check on input quality and output
quality is set to good.

04

Diagnostic Group (SUPPGRP)......................................................................................... CWR
The diagnostic error reported by this block can be grouped for System Event block control of
its reporting. The selections are:

NONE

No group assigned.

1 to 7

Defines the diagnostic group number for the diagnostic suppression group

controlled by the System Event block.

05

Calculation Error (CERRS) ............................................................................................... CWR
When a calculation error (calculation overflow, divide by zero, square root of negative number
etc.) is detected, the block completes the calculation using some reasonable value (+ or -
maximum value for overflows, zero for square root of negative number, etc.), reports the
diagnostic error as “CALCULATION ERROR”, and sets the output quality bad if “Set quality
bad on calculation error?
” is YES. The diagnostic error will clear and the quality will be set
back to good when a subsequent execution of the block performs a successful calculation. A
calculation error is also reported when improper syntax is found in the expression or when a
stack overflow occurs due to too many nested operations.

ENABLED

0

Calculation error is enabled.

SUPPRESSED 1

Calculation error is suppressed.

06

Calc. Error Unacked (CERRU)..........................................................................................– WR
If the calculation error diagnostic is enabled, the unacknowledged status indicates if the
diagnostic is or is not acknowledged. Only writeable in DEBUG.

NO

0

Diagnostic error is acknowledged.

YES

1

Diagnostic error is unacknowledged.