Input Description

../_images/2d7df4c065c2740c0a33139001689805

Function Block LOG_GENERIC_INPUT

Note

The inputs marked with a triangle ac7b29e5cbec08eb0a33139000ec7fbe_78f228175b765b440a33139001315693 are of the class VAR_IN_OUT (input and output variable). These inputs must be connected to a variable.

THRESHOLD (threshold via ADR-Operator)

Data type: POINTER TO DWORD

When exceeding or falling below a threshold, a writing operation of a dataset into the FIFOin is started. After this operation, either only the single threshold difference (between input and threshold) is deleted (TH_REFRESH=FALSE) or all differences (TH_REFRESH=TRUE). As the input is a POINTER TO, it has to be connected to an preceding ADR-Operator, to which any available input-type can be provided: BOOL, BYTE, INT, WORD, DINT, DWORD, REAL or an ARRAY of these data types. Make sure that THRESHOLD is always of the same type as in IN. E.g. if IN is an ARRAY[0..n] OF BYTE, THRESHOLD has to be an ARRAY[0..n] OF BYTE, too.

The input is only relevant for IN_TYPE’s 2=BYTE, 3=INT, 4=WORD, 5=DINT, 6=DWORD, 7=REAL, not for bool/digital. For the IN_TYPE 1=BOOL, TRESHOLD has no effect, as the inputs are of the type BOOL and therefore cannot have a threshold.

DATA (input via ADR-Operator)

Data type: POINTER TO DWORD

Input value as single value or as ARRAY for the possible 0 to 31 values. As the input is a POINTER TO, it has to be connected to a preceding ADR-Operator, to which any available input-type can be provided: BOOL, BYTE, INT, WORD, DINT, DWORD, REAL or an ARRAY of these data types.

EN (enable)

Data type: BOOL

The Function Block is activated by a TRUE at the input EN. A FALSE keeps the Function Block deactivated. Is the Function Block activated, the values being present at the inputs are processed and the output values are delivered.

SEND (send)

Data type: BOOL

At a rising edge, this input writes a data set into the FIFOin

CYCLE (cycle)

Data type: BOOL

This input writes all SCANDOWN cycles of a data set into FIFOin. At SCANDOWN=0 a dataset is written in each cycle.

AUTO (auto)

Data type: BOOL

With each change of an input value or exceeding/falling down of THRESHOLD, this input writes a dataset into FIFOin.

SCANDOWN (scandown)

Data type: UINT

This input will be valid if input CYCLE = TRUE. Then cyclical writing is only executed within each scandown cycle.

Example

SCANDOWN=100: In one out of 100 cycles a dataset is written to FIFOin.

SCANDOWN=0: In every cycle a data set is written.

THRESHOLD_REFRESH (threshold refresh)

Data type: BOOL

FALSE: Deletion of the threshold value difference of each input value after its overwriting of the threshold level. All other differences will be ignored if they have not yet been rising above their threshold. A higher trigger rate can be expected.

TRUE: Deletion of all threshold value differences after exceeding one of the thresholds. All other differences will also be cleared even if they have not yet been exceeded the threshold. A lower trigger rate can be expected. As always all data of the Funciton Block are sent, the data values are anyway always up to date.

The input is only relevant for IN_TYPE’s 2=BYTE, 3=INT, 4=WORD, 5=DINT, 6=DWORD, 7=REAL, not for bool/digital.

For the IN_TYPE 1=BOOL the input TRESHOLD has no effect, as the inputs are of the type BOOL and therefore cannot have a threshold.

ID (identity)

Data type: STRING

Free selectable name/text for identification of this dataset. Maximum 8 characters.

DATATYPE (Datatype)

Data type: BYTE

1=BOOL, 2=BYTE, 3=INT, 4=WORD, 5=DINT, 6=DWORD, 7=REAL

LENGTH (length of valid values)

Data type: INT

Number of valid values (maximum 88 values, depending of type).