CD522PulseOut (FB)
FUNCTION_BLOCK CD522PulseOut EXTENDS AbbLConCA
Function block to access all IO-Values for the Pulse-Output of CD522. This FB is valid to be used with mode 1 in channel configuration
- InOut:
Scope
Name
Type
Initial
Comment
Input
ChnNumWORD0
0 or 1, use of output channel O0 or O1
EnFreqBOOLFALSE
Enable (TRUE) or disable (FALSE) the frequency output of the module. When input is set to FALSE before pulse output has finished, pulse output stops. When set to TRUE again pulse output begins anew.
FreqWORD0
Pulse frequency 0 to 15 kHz
NumWORD0
Number of pulses to be sent (1 to 65.535). 0 is for permanent output of pulses
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
RdyPulseBOOLFALSE
Set to TRUE when all pulses were sent
ActPulseBYTE0
Percentage of pulses (Num) sent, from 0 to 100%. Value 100 % is obtained, when all pulses were sent