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
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.
AbbLConCA
Output
Busy
BOOL
FALSE
Operation is running (while output Error is FALSE)
AbbLConCA
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.
AbbLConCA
Input
EnableCounter
BOOL
FALSE
2: Enable the counter function of the module
SetStart
BOOL
FALSE
3: Set current counter value
SetStartValue
REAL
0
4: 32 bit start counter value
EnableCalib
BOOL
FALSE
5: enabling calibrating process
EnableSync
BOOL
FALSE
6: enabling synchronizing process
MeasuringStep
REAL
0.1758
7: Measuring Step
ZPulse
BOOL
FALSE
8: encoder’s reference position Z reached
Channel
BYTE
0
9: Channel number, for encoder 0/1
Inout
PosAct
REAL
10: Current counter value
ZValue
REAL
11: position value of the encoder’s reference point (Z)
Output
ErrorID
NO_ERROR
3: Error number
RdySet
BOOL
FALSE
4: ready message of calibrating process
RdyCalib
BOOL
FALSE
5: ready message of calibrating process
RdySync
BOOL
FALSE
6: ready message of synchronizing process
Methods:
A_StartAction
B_CyclicAction
C_CleaningAction
D_AbortAction
E_ResetAction
Structure: