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
EnableBOOLFALSE
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
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.
AbbLCon3
BusyBOOLFALSE
Operation is running (while outputs Done and Error are FALSE)
AbbLCon3
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.
AbbLCon3
Input
TypeModeBYTE1
- 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.
ZPulseBOOL0
- 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.
LimitSwitchBOOL0
- 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
GoToPosRefBOOL5: Boolean expression that enables position control block
PosRefREAL6: Desired position to locate the tracker.
JogFwdBOOL9: In order to manually move the system forward, input is set to TRUE
JogBwdBOOL10: In order to manually move the system backward, input is set to TRUE
Output
ErrorIDNO_ERROR
4: Error code
HomingStartedBOOLFALSE
5: Enables synchronization process or Homing started signal to subsequent blocks
HomingDoneBOOLFALSE
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:
SolarModeHoming.A_StartAction(METH)SolarModeHoming.B_CyclicAction(METH)SolarModeHoming.C_CleaningAction(METH)SolarModeHoming.D_AbortAction(METH)SolarModeHoming.E_ResetAction(METH)SolarModeHoming.zACTION_TYPE_1(ACT)SolarModeHoming.zACTION_TYPE_2(ACT)SolarModeHoming.zACTION_TYPE_3(ACT)SolarModeHoming.zACTION_TYPE_4(ACT)