CD522ReadInput (FB)
FUNCTION_BLOCK CD522ReadInput EXTENDS AbbLConCA
Function block to access the binary inputs of CD522
- 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
AdrInPOINTER TO WORD
0
Address of process image input. See ../Structs/CD522In for more information about structure
Output
ErrorIDERROR_ID.NO_ERROR
Error code description
InputA0BOOLFALSE
Binary input A0
InputB0BOOLFALSE
Binary input B0
InputZ0BOOLFALSE
Binary input Z0
InputI3BOOLFALSE
Binary input I3
InputC4BOOLFALSE
Binary input C4
InputC5BOOLFALSE
Binary input C5
InputC6BOOLFALSE
Binary input C6
InputC7BOOLFALSE
Binary input C7
InputA1BOOLFALSE
Binary input A1
InputB1BOOLFALSE
Binary input B1
InputZ1BOOLFALSE
Binary input Z1
InputI11BOOLFALSE
Binary input I11
InputC12BOOLFALSE
Binary input C12
InputC13BOOLFALSE
Binary input C13
InputC14BOOLFALSE
Binary input C14
InputC15BOOLFALSE
Binary input C15