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

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

PosCalc

REAL

0

2: Calculated Sun position

PosAct

REAL

0

3: Actual solar tracker position

TrackError

REAL

0

4: Value of track error allowed

FollowOffset

REAL

0

5: Indicates that tracking has an offset concerning to real calculated position of the sun

Inout

GoToPosRef

BOOL

6: Boolean expression that enables position control block

PosRef

REAL

7: Desired position to locate the tracker.

Output

ErrorID

ERROR_ID

NO_ERROR

3: Error code

Methods:

D_AbortAction

A_StartAction

B_CyclicAction

C_CleaningAction

E_ResetAction

Structure: