DOCA0272EN-00

PN_Control_Analog_I/O (PROFINET IO)

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_iAQ0

INT

Value to be written to analog output 0. Unit and scaling depends on the analog output type configured.

  • Type 0 (Unit: mV)
  • Type 1 (Unit: mV)
  • Type 2 (Unit: μA)
  • Type 3 (Unit: μA)

Cyclic data

i_hwStartAddress

Variant

Must correspond to the first address of the cyclic input submodule address range of the related avatar to be able to execute cyclic read 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_iAI0

INT

Indicates the value read from the analog input 0. Unit and scaling depends on the analog output type configured.

  • Type 0 to 12 (Unit: 0.1 °C)
  • Type 13 (Unit: mV)
  • Type 14 (Unit: mV)
  • Type 15 (Unit: μA)
  • Type 16 (Unit: μA)

Cyclic data

q_iAI1

INT

Indicates the value read from the analog input 1.

Cyclic data

q_iHWOut

INT

Hardware address of the analog output.

Communication parameter

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?