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

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. A falling edge (Enable = FALSE) aborts the operation. During Aborting the Busy is still TRUE. Afterward all outputs are reset.

AbbLConA

Output

Done

BOOL

FALSE

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

Busy

BOOL

FALSE

Operation is running (while outputs Done and Error are FALSE)

AbbLConA

Error

BOOL

FALSE

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

TypeMode

BYTE

1

2: configuration of the position sensors. Allowed values ( 1,2,3 and 4)

PosCalc

REAL

0

3: calculated sun position

ZPulse

BOOL

0

4: encoder Z position

LimitSwitch

BOOL

0

5: limit switch

StartCalib

BOOL

0

6: ready set_start

Inout

GoToPosRef

BOOL

7: enables movement control block.

PosRef

REAL

8: desired position to locate the traker

JogFwd

BOOL

9: drive is running forward

JogBwd

BOOL

10: drive is running backward

Output

ErrorID

ERROR_ID

NO_ERROR

4: error code

CalibStarted

BOOL

FALSE

5: calibrating process is starting when output CalibStarted = TRUE

PosStartValue

REAL

0

6: position value transferred to counter

RdyForCalib

BOOL

FALSE

7: enabling calibrating process

Methods:

A_StartAction

B_CyclicAction

C_CleaningAction

D_AbortAction

E_ResetAction

Structure: