SgxCalibration (FB)
FUNCTION_BLOCK SgxCalibration EXTENDS AbbLConC3
SgxCalibration function block is utilized to calibrate “ZERO”, “TARE” and “TWO_POINTS_CALIBRATION” to increase the precision of weighting
CalibrationType = “ZERO”, the rising edge of “Execute” signal will set the current weight as “ZERO”, an offset subtraction before export
CalibrationType = “TARE”, the rising edge of “Execute” signal will store the current weight(eg. packaging) to convert between “Gross” and “Net” weights
CalibrationType = “TWO_POINTS_CALIBRATION”, below three steps implements two-point calibration of the weight factor to boost measurement accuracy
Step 1: Use standard or calibrated object 1, then set “ReferenceWeight” as the first reference weight and “Index” = 0, with rising edge of “Execute” to get and return the actual measurement of reference point 1
Step 2: Replace with standard or calibrated object 2, then set “ReferenceWeight” as the second reference weight and “Index” = 1, with rising edge of “Execute” to get and return the actual measurement of reference point 2
Step 3: Finally, set “Index” = 2, with rising edge of “Execute”, the calibration data “scale” and “offset” will be calculated and stored internally
“Eeprom” is selectable between temporary storage and non-volatile data retention
A new calibration cycle is initiated by the rising edge of “Execute” signal
- InOut:
Scope
Name
Type
Initial
Comment
Inherited from
Input
EnableBOOLFALSE
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
BusyBOOLFALSE
Operation is running (while output Error is FALSE)
AbbLConC3
ErrorBOOLFALSE
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
SetBOOLFALSE
A rising edge starts a single operation of “ZERO”, “TARE” or a step of “TWO_POINTS_CALIBRATION”
EepromBOOLFALSE
Calibration data to be stored in data flash memory
CalibrationTypeSgx_CALIBRATION_TYPE.NONE
Option of “ZERO”, “TARE” or “TWO_POINTS_CALIBRATION” calibration
DigitalOutputBOOLFALSE
Imaged digital output field when “general digital output” is configured
IndexSgx_CALIBRATION_INDEX.REFERENCE_WEIGHT_1
Parameter ID or index of parameter of calibration data
ReferenceWeightDINT0
Input reference weight
ChannelPOINTER TO SgxChannelIo
Instance of strain gauge channel to be connected
Output
CarryOutBOOLFALSE
Calibration state, 0 => calibration in progress; 1 => calibration is carried out
ErrorIDERROR_ID.NO_ERROR
Error code returned
StateReturnWORD0
State returned, [0] => digital output state;[1] => Done; [8:10] => calibration type, 1 = ZERO, 2 = TARE, 4 = TWO_POINTS_CALIBRATION; [11] => Eeprom; [12:15] = 2
IndexReturnWORD0
Index returned, valid as CalibrationType = “TWO_POINTS_CALIBRATION”
DataCalibrationCalibrationData returned