SolarEncoderOnboardIO (FB)
FUNCTION_BLOCK SolarEncoderOnboardIO EXTENDS AbbLConCA
- Function block to easily integrate, with Eco AC500 On board IO, incremental encoders (A, B) as positioning sensors for solar trackers
Configuration -> Devices -> OnBoard IO -> IO Mapping -> Map variable for position sensors
- 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. A falling edge (Enable = FALSE) aborts the operation. During Aborting the Busy is still TRUE. Afterward all outputs are reset.
AbbLConCA
Output
BusyBOOLFALSE
Operation is running (while output Error is FALSE)
AbbLConCA
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.
AbbLConCA
Input
EnableCounterBOOLFALSE
2: Enable the counter function of the module
SetStartBOOLFALSE
3: Set current counter value
SetStartValueREAL0
4: 32 bit start counter value
EnableCalibBOOLFALSE
5: enabling calibrating process
EnableSyncBOOLFALSE
6: enabling synchronizing process
MeasuringStepREAL0.1758
7: Measuring Step
ZPulseBOOLFALSE
8: encoder’s reference position Z reached
ChannelBYTE0
9: Channel number, for encoder 0/1
Inout
PosActREAL10: Current counter value
ZValueREAL11: position value of the encoder’s reference point (Z)
Output
ErrorIDNO_ERROR
3: Error number
RdySetBOOLFALSE
4: ready message of calibrating process
RdyCalibBOOLFALSE
5: ready message of calibrating process
RdySyncBOOLFALSE
6: ready message of synchronizing process
Methods:
A_StartAction
B_CyclicAction
C_CleaningAction
D_AbortAction
E_ResetAction
Structure: