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

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

AdrIn

POINTER TO WORD

0

Address of process image input. See ../Structs/CD522In for more information about structure

Output

ErrorID

ERROR_ID

ERROR_ID.NO_ERROR

Error code description

InputA0

BOOL

FALSE

Binary input A0

InputB0

BOOL

FALSE

Binary input B0

InputZ0

BOOL

FALSE

Binary input Z0

InputI3

BOOL

FALSE

Binary input I3

InputC4

BOOL

FALSE

Binary input C4

InputC5

BOOL

FALSE

Binary input C5

InputC6

BOOL

FALSE

Binary input C6

InputC7

BOOL

FALSE

Binary input C7

InputA1

BOOL

FALSE

Binary input A1

InputB1

BOOL

FALSE

Binary input B1

InputZ1

BOOL

FALSE

Binary input Z1

InputI11

BOOL

FALSE

Binary input I11

InputC12

BOOL

FALSE

Binary input C12

InputC13

BOOL

FALSE

Binary input C13

InputC14

BOOL

FALSE

Binary input C14

InputC15

BOOL

FALSE

Binary input C15