SolarModeTracking (FB)
FUNCTION_BLOCK SolarModeTracking EXTENDS AbbLConC3
This function block represents an operation mode that allows to track the sun based on a calculated po-sition of the sun.
This position is given by SolarNoaa algorithm depending on date, latitude and longi-tude.
This function block calculates the absolute difference between the calculated position of the sun and the actual tracker position. If the result is greater than the value of track error, the system moves to the calculated position. Otherwise, the system will be stopped
Note
For more detailed explanation of the Tracking mode with example and different types, refer to Automation Builder help of Solar Library.
- 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
PosCalcREAL0
2: Calculated Sun position
PosActREAL0
3: Actual solar tracker position
TrackErrorREAL0
4: Value of track error allowed
FollowOffsetREAL0
5: Indicates that tracking has an offset concerning to real calculated position of the sun
Inout
GoToPosRefBOOL6: Boolean expression that enables position control block
PosRefREAL7: Desired position to locate the tracker.
Output
ErrorIDNO_ERROR
3: Error code
Methods:
D_AbortAction
A_StartAction
B_CyclicAction
C_CleaningAction
E_ResetAction
Structure: