SolarEncoderIO
(FB)
FUNCTION_BLOCK SolarEncoderIO EXTENDS AbbLConCA
- Function block to easily integrate, with any S500 I/O card, incremental encoders (A, B) plus Inductive sensor (Z) as positioning sensors for solar trackers
Configuration -> Devices -> IO Bus -> DC522 -> DC522 IO Mapping -> Fast counter -> 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
Inout
CounterIn
ARRAY [0..9] OF BYTE
9: Array of BYTE for input of Configuration fast counter
CounterOut
ARRAY [0..17] OF BYTE
10: Array of BYTE for output of Configuration fast counter
PosAct
REAL
11: Current counter value
ZValue
REAL
12: 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:
D_AbortAction
A_StartAction
B_CyclicAction
C_CleaningAction
E_ResetAction
Structure: