SgxOverSampling16Bit (FB)

FUNCTION_BLOCK SgxOverSampling16Bit EXTENDS AbbLConC3

SgxOverSampling16Bit function block implements a 10-sample burst result output of measurements in 16-bit format

This function block retrieves measurement result at a sampling rate exceeding the io-bus cycle time

When Enable = TRUE, the returned index indicates a new measurement result

“Lock” feature prevents current measurement from being overwritten by new conversion

The “EventOutputEnable = false” serves to mask the event output functionality of digital output(DO), treating as “non-operational”

“Unit” and “Object” parameters configure “Net” or “Gross” weight in preferred units

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

ChannelInputBase

POINTER TO ARRAY [0..11] OF WORD

Base address of strain gauge channel, mapped address of state

ChannelOutputBase

POINTER TO ARRAY [0..3] OF WORD

Base address of strain gauge channel, mapped address of command

Lock

BOOL

FALSE

FALSE => continue measurement; 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

Unit

Sgx_UNIT

0

0 => relative; 1 => kilogram; 2 => pound force; 3 => ton

Object

Sgx_WEIGHT_OBJECT

Sgx_WEIGHT_OBJECT.Net

0 => Net; 1 => Gross

Output

Active

BOOL

FALSE

0 => IndexReturn and DataReturn are in progress; 1 => IndexReturn and DataReturn 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 returned, [0] => digital output state;[1] => ACTIVE; [2] => LOCK; [3] => EVENT_OUTPUT_ENABLE; [4:7] => Object; [8:9] => unit; [10:11] => Diagnosis; [12:15] => fixed function code = 1

IndexReturn

WORD

0

Index returned

DataReturn

ARRAY [0..9] OF INT

[10(0)]

Data block of burst weight returned