IoModuleInfoExt (FB)

FUNCTION_BLOCK IoModuleInfoExt EXTENDS AbbLConA

Provides information about installed I/O module at the chosen modulenumber: module name, identification, timestamp, firmware/hardvare version.

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.

AbbLConA

Output

Done

BOOL

FALSE

Operation is completed without error (while outputs Busy and Error are FALSE). This output is TRUE for at least one cycle or until Enable is set to FALSE.

AbbLConA

Busy

BOOL

FALSE

Operation is running (while outputs Done and Error are FALSE)

AbbLConA

Error

BOOL

FALSE

Operation is stopped with error (while outputs Busy and Done are 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.

AbbLConA

Input

Module

BYTE

1

Module number 1…10

Output

ErrorID

ERROR_ID

ERROR_ID.NO_ERROR

Error code describing error condition

Name

STRING(8)

‘’

Module name

ID

WORD

0

Module identification

Timestamp

DWORD

0

Factory timestamp

FWVerMain

WORD

0

Module firmware version mainindex

FWVerSub

ARRAY [1..3] OF WORD

[0, 0, 0]

Module firmware version subindex

HWVerMain

BYTE

0

Module hardware version mainindex

HWVerSub

ARRAY [1..3] OF BYTE

[0, 0, 0]

Module hardware version subindex