SolarModeCalibration (FB)
FUNCTION_BLOCK SolarModeCalibration EXTENDS AbbLConA
This function block represents an operation mode that allows to calibrate the system
- 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. A falling edge (Enable = FALSE) aborts the operation. During Aborting the Busy is still TRUE. Afterward all outputs are reset.
AbbLConA
Output
DoneBOOLFALSE
Operation is completed without error (while outputs Busy and Error are FALSE). This output is TRUE for at least one cycle or until Enable is set to FALSE.
AbbLConA
BusyBOOLFALSE
Operation is running (while outputs Done and Error are FALSE)
AbbLConA
ErrorBOOLFALSE
Operation is stopped with error (while outputs Busy and Done are 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.
AbbLConA
Input
TypeModeBYTE1
2: configuration of the position sensors. Allowed values ( 1,2,3 and 4)
PosCalcREAL0
3: calculated sun position
ZPulseBOOL0
4: encoder Z position
LimitSwitchBOOL0
5: limit switch
StartCalibBOOL0
6: ready set_start
Inout
GoToPosRefBOOL7: enables movement control block.
PosRefREAL8: desired position to locate the traker
JogFwdBOOL9: drive is running forward
JogBwdBOOL10: drive is running backward
Output
ErrorIDNO_ERROR
4: error code
CalibStartedBOOLFALSE
5: calibrating process is starting when output CalibStarted = TRUE
PosStartValueREAL0
6: position value transferred to counter
RdyForCalibBOOLFALSE
7: enabling calibrating process
Methods:
A_StartAction
B_CyclicAction
C_CleaningAction
D_AbortAction
E_ResetAction
Structure:
SolarModeCalibration.A_StartAction(METH)SolarModeCalibration.B_CyclicAction(METH)SolarModeCalibration.C_CleaningAction(METH)SolarModeCalibration.D_AbortAction(METH)SolarModeCalibration.E_ResetAction(METH)SolarModeCalibration.zACTION_TYPE_1(ACT)SolarModeCalibration.zACTION_TYPE_2(ACT)SolarModeCalibration.zACTION_TYPE_3(ACT)SolarModeCalibration.zACTION_TYPE_4(ACT)