CD522FreqScan (FB)
FUNCTION_BLOCK CD522FreqScan EXTENDS AbbLConCA
Function block to access all IO-Values for the frequency measurement of CD522. This FB is valid to be used with mode 15. Maximum input frequency 5 kHz.
- InOut:
Scope
Name
Type
Initial
Comment
Input
CntNumWORD0
0 or 1, use of counter 0 or counter 1 (Input Z0 or Z1)
EnCntBOOLFALSE
Enable (TRUE) or disable (FALSE) the function of the module
En0BOOLFALSE
Enables low pulse for measurement
En1BOOLFALSE
Enables high pulse for measurement
EnFreqBOOLFALSE
Enables frequency (TRUE) / time measurement mode (FALSE). Result in Freq/Rpm (TRUE) or Dur (FALSE). Maximum input frequency 5 kHz
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
NewBOOLFALSE
New value available
DurDWORD0
Duration (Time in micro seconds)
FreqWORD0
Frequency
RpmDWORD0
Rotation per minute