CD522PwmOut (FB)
FUNCTION_BLOCK CD522PwmOut EXTENDS AbbLConCA
Function block to access all IO-Values for the PWM-Output of CD522. This FB is valid to be used with mode 2 in channel configuration
- 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, use output channel O0 or O1
EnPwmBOOLFALSE
Enable (TRUE) or disable (FALSE) the PWM output of the module
FreqDWORD0
Frequency of the PWM in Hertz from 0 to 100.000 Hz
DutyCycleWORD0
Duty cyle from 0 to 1000 (0 to 100.0%), percentage PWM signal is high
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