CD522SsiCnt (FB)
FUNCTION_BLOCK CD522SsiCnt EXTENDS AbbLConCA
- InOut:
Scope
Name
Type
Initial
Comment
Input
CntNumWORD0
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
EnGrayBOOLFALSE
Actual value will be calculated from gray code
EnBcdBOOLFALSE
Actual value will be calculated from bcd code
SetEndBOOLFALSE
Select EndValue to be set
EndValueDWORD0
32 bit end counter value. When end value is reached, CD522 gives out an ENDV signal at configured output.
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
SetInBOOLFALSE
Set signal detected. Not used.
ResetInBOOLFALSE
Reset signal detected. Not used.