SgxWindowMonitoring (FB)

FUNCTION_BLOCK SgxWindowMonitoring EXTENDS AbbLConC3

The ‌“SgxWindowMonitoring” function block detects an returns the maximum and minimum force during measurement

Captures the maximum and minimum value in 16-bit data format within the monitoring cycle

Digital output (DO) indicates the event of “UpperLimit” or “UpperLimit” is reached when it is configured as “Event - application FB”

“Application” determines whether the “UpperLimit” and “LowerLimit” are sourced from channel parameters(Application = FALSE) or functionblock itself (Application = TRUE)

When the digital output is configured as “Event-application FB”, it signals the exceedance OF either “UpperLimit” OR ”LowerLimt”

Monitoring triggers on the Enable = TRUE

InOut:

Scope

Name

Type

Initial

Comment

Inherited from

Input

Enable

BOOL

FALSE

A rising edge (Enable = TRUE) starts the operation, the output Busy goes to TRUE. All other inputs are read and considered continuously. Execution will continue forever until a falling edge (Enable = FALSE) aborts the operation. During Aborting the Busy is still TRUE. Afterward all outputs are reset.

AbbLConC3

Output

Busy

BOOL

FALSE

Operation is running (while output Error is FALSE)

AbbLConC3

Error

BOOL

FALSE

Operation is stopped with error (while output Busy is FALSE). This output is TRUE for at least one cycle or until Enable is set to FALSE. The output ErrorID gives more details about the error.

AbbLConC3

Input

Pause

BOOL

FALSE

0 => Normal operation; 1 => pause the current operation

Lock

BOOL

FALSE

FALSE => continue monitoring; TRUE => lock the current result not to be overlapped

EventOutputEnable

BOOL

FALSE

FALSE => mask the digital output not to be activated by event; TRUE => enable the event trigger of digital output

DigitalOutput

BOOL

FALSE

Imaged digital output field when “general digital output” is configured

Object

Sgx_WEIGHT_OBJECT

Sgx_WEIGHT_OBJECT.Net

0 => Net; 1 => Gross

Channel

POINTER TO SgxChannelIo

Instance of strain gauge channel to be connected

Output

Active

BOOL

FALSE

0 => IndexReturn, MaxValueReturn and MinValueReturn are in progress; 1 => IndexReturn, MaxValueReturn and MinValueReturn are refreshed

ErrorID

ERROR_ID

ERROR_ID.NO_ERROR

Error code returned

OverRun

BOOL

FALSE

0 => Data read in time; 1 => Data missing (IndexReturn > Previous IndexReturn + 1)

StateReturn

WORD

0

State of monitoring cycle returned, [0] => digital output state;[1] => ACTIVE; [2] => STATE OF LOCK, [3] = STATE OF EVENT_OUTPUT_ENABLE;[4:7] => Object, 0 = Net, 1 = Gross; [8:9] => fixed unit = 0; [10:11] => diagnosis class; [12:15] => fixed function code = 5

IndexReturn

WORD

0

Index of monitoring cycle returned

MaxValueReturn

INT

0

Maximum value of monitoring cycle returned

MinValueReturn

INT

0

Minimum value of monitoring cycle returned