CD522SsiCnt_PLUS (FB)
FUNCTION_BLOCK CD522SsiCnt_PLUS EXTENDS AbbLConCA
- 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
ChnNumWORD0
0 or 1, counter 0 or counter 1 is used
EnCntBOOLFALSE
Enable (TRUE) or disable (FALSE) the counter function of the module
EnTouchBOOLFALSE
Enable (TRUE) or disable (FALSE) the touch function of the module
EdgeTouchBOOLFALSE
Select (TRUE) positive or (FALSE) negative edge for touch
ResetSsiBOOLFALSE
Reset signal for SSI encoder. Sets an output signal on CD522 for SSI encoder reset input. (ChnNum 0: on CD522 output C7 is set / ChnNum 1: on CD522 output C15 is set)
EnGrayBOOLFALSE
If (TRUE), Actual value will be calculated from gray code to binary code
EnBcdBOOLFALSE
If (TRUE), Actual value will be calculated from bcd code to binary code
AdrInPOINTER TO WORD
0
Address of process image input. See ../Structs/CD522In for more information about structure
AdrOutPOINTER TO WORD
0
Address of process image output. See ../Structs/CD522Out for more information about structure
Output
ErrorIDERROR_ID.NO_ERROR
Error code description
ActDWORD0
32 bit actual counter value
CntTouchDWORD0
32 bit touch counter value
RdyTouchBOOLFALSE
Set (TRUE) when new touch value is available