SolarModeHoming (FB)

FUNCTION_BLOCK SolarModeHoming EXTENDS AbbLCon3

This function block represents an operation mode that allows to search the reference point initialization. Systems move until reference points are reached. This mode assumes that the system has a high accuracy mechanical limit switch to indicate that home position has been reached

Note

For more detailed explanation of the Homing 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 a single operation, the output Busy goes to TRUE. All other inputs are read and considered continuously. A falling edge (Enable = FALSE) aborts the operation, if BUSY=TRUE (Note: During Aborting the Busy is still TRUE). Afterwards all outputs will be reset. For executing another operation the Enable input needs to be retriggered by another rising edge!

AbbLCon3

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.

AbbLCon3

Busy

BOOL

FALSE

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

AbbLCon3

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.

AbbLCon3

Input

TypeMode

BYTE

1

2: This input indicates which kind of configuration sensors are going to be used to determinate home positions.
  • 1: ZSensor is only one pulse signal. First movement: backward.

  • 2: ZSensor is only one pulse signal. First movement: forward.

  • 3: ZSensor uses cam switch. First movement: forward.

  • 4: ZSensor uses cam switch. First movement: backward.

ZPulse

BOOL

0

3: Boolean expression that indicates the positioning device has reached its Z position.
  • TYPE 1 & 2 : ZPulse = RdyForCalib, output variable of encoders function.

  • TYPE 3 & 4 : ZPulse = variable that indicates the state of input Z.

LimitSwitch

BOOL

0

4: Boolean expression that indicates home position has been reached. It is used in Type 1 & Type 2.
  • TYPE 1 : LimitSwitch = LimitSwitchMin

  • TYPE 2 : LimitSwitch = LimitSwitchMax

Inout

GoToPosRef

BOOL

5: Boolean expression that enables position control block

PosRef

REAL

6: Desired position to locate the tracker.

JogFwd

BOOL

9: In order to manually move the system forward, input is set to TRUE

JogBwd

BOOL

10: In order to manually move the system backward, input is set to TRUE

Output

ErrorID

ERROR_ID

NO_ERROR

4: Error code

HomingStarted

BOOL

FALSE

5: Enables synchronization process or Homing started signal to subsequent blocks

HomingDone

BOOL

FALSE

6: Boolean expression that enables synchronization process and giving homing done signal to subsequent blocks

Methods:

A_StartAction

B_CyclicAction

C_CleaningAction

D_AbortAction

E_ResetAction

Structure: