CD522SsiCnt
(FB)
FUNCTION_BLOCK CD522SsiCnt EXTENDS AbbLConCA
- 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
CntNum
WORD
0
0 or 1, counter 0 or counter 1 is used
EnCnt
BOOL
FALSE
Enable (TRUE) or disable (FALSE) the counter function of the module
EnTouch
BOOL
FALSE
Enable (TRUE) or disable (FALSE) the touch function of the module
EdgeTouch
BOOL
FALSE
Select (TRUE) positive or (FALSE) negative edge for touch
EnGray
BOOL
FALSE
Actual value will be calculated from gray code
EnBcd
BOOL
FALSE
Actual value will be calculated from bcd code
SetEnd
BOOL
FALSE
Select EndValue to be set
EndValue
DWORD
0
32 bit end counter value. When end value is reached, CD522 gives out an ENDV signal at configured output.
AdrIn
POINTER TO WORD
0
Address of process image input. See ../Structs/CD522In for more information about structure
AdrOut
POINTER TO WORD
0
Address of process image output. See ../Structs/CD522Out for more information about structure
Output
ErrorID
ERROR_ID.NO_ERROR
Error code description
Act
DWORD
0
32 bit actual counter value
CntTouch
DWORD
0
32 bit touch counter value
RdyTouch
BOOL
FALSE
Set (TRUE) when new touch value is available
SetIn
BOOL
FALSE
Set signal detected. Not used.
ResetIn
BOOL
FALSE
Reset signal detected. Not used.