DOCA0272EN-00

DP_Control_Digital_I/O (PROFIBUS DP)

The following tables give information about the parameters of the function block interface.

Inputs

Input

Data Type

Description

Variable Category

i_xEnable

BOOL

Activates the function block processing. Cyclic data will be read/written to the hardware IO interface.

Function block control

i_xDQ1

BOOL

If this input is set to TRUE, the digital output 0 is set to TRUE.

Cyclic data

i_xDQ2

BOOL

If this input is set to TRUE, the digital output 1 is set to TRUE.

Cyclic data

i_hwStartAddress

Variant

Must correspond to the first address of the cyclic input address range of the related avatar to be able to execute cyclic read communication.

Communication parameter

In/Out

InOut

Data Type

Description

Variable Category

iq_hwQWAddress

WORD

Must correspond to the output address of the related avatar to be able to execute cyclic write communication.

Communication parameter

Outputs

Output

Data Type

Description

Variable Category

q_xActive

BOOL

If this output is set to TRUE, the Avatar function block is enabled, or an acyclic request is busy.

Function block status

q_xError

BOOL

If this output is set to TRUE, a detected error occurred while executing the Avatar function block. For detailed information about the detected error, see the value of the Error ID.

Function block status

q_dwErrorID

DWORD

The Error ID shows detailed information about the detected error that occurred. Possible values are shown in the table below.

Function block status

q_xReady

BOOL

Indicates TRUE if the function block is ready to receive an Execute command.

Cyclic data

q_xStatusDI0

BOOL

If this output is set to TRUE, the digital input 0 of the Digital I/O avatar is set to TRUE.

Cyclic data

q_xStatusDI1

BOOL

If this output is set to TRUE, the digital input 1 of the Digital I/O avatar is set to TRUE.

Cyclic data

q_xStatusDI2

BOOL

If this output is set to TRUE, the digital input 2 of the Digital I/O avatar is set to TRUE.

Cyclic data

q_xStatusDI3

BOOL

If this output is set to TRUE, the digital input 3 of the Digital I/O avatar is set to TRUE.

Cyclic data

Status and error codes from ConstTeSysIsland

Member name

Used by the function block

Cdw_ErrNoMsg

Yes

Cdw_ErrInternal

No

Cdw_ErrInvalidCycInAddr

Yes

Cdw_ErrInvalidHwid

No

Cdw_ErrInvalidNumOfAvatars

No

Cdw_ErrReadCycIn

Yes

Cdw_ErrReadAcycData1

No

Cdw_ErrReadAcycData2

No

Cdw_ErrWriteAcycData

No

Cdw_StsReadAcycData1Compl

No

Cdw_StsReadAcycData2Compl

No

Cdw_StsWriteAcycDataCompl

No

QR Code is a registered trademark of DENSO WAVE INCORPORATED in Japan and other countries.

Was this helpful?