DOCA0272EN-00

PN_Control_Motor_Two_Speeds (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_xRunFwdLow

BOOL

If this input is set to TRUE, the motor starts in forward direction with low speed.

Cyclic data

i_xRunFwdHigh

BOOL

If this input is set to TRUE, the motor starts in forward direction with high speed.

Cyclic data

i_xTripReset

BOOL

If this input is set to TRUE, detected trips whose trip reset conditions have been met will reset for this avatar.

Cyclic data

i_xAcyclicBusy

BOOL

Can be used to block the acyclic execution if acyclic communication of another function block is active.

Function block control

i_xExecute

BOOL

Starts an acyclic request on a rising edge.

Function block control

i_hwSubmHWID

HW_IO

Must correspond to the hardware identifier of the acyclic submodule of the related avatar to be able to execute the acyclic communication.

Communication parameter

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

In/Out

InOut

Data Type

Description

Variable Category

iq_hwQWAddress

WORD

Must correspond to the address of the cyclic output submodule 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_dwAcyclicStatus

DWORD

The Acyclic status provides detailed information about the acyclic fieldbus communication, including detected error details. For detailed information about the status values, see Function Block Library.

Function block status

q_xAcyclicBusy

BOOL

If this output is set to TRUE, an acyclic request is still busy.

Function block status

q_xReady

BOOL

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

Cyclic data

q_xUpstrVPres1

BOOL

If this output is set to TRUE, the avatar has detected that upstream main power is present for the first starter/power device in this avatar.

Cyclic data

q_xUpstrVPres2

BOOL

If this output is set to TRUE, the avatar has detected that upstream main power is present for the second starter/power device in this avatar.

Cyclic data

q_xRunFwdLow

BOOL

If this output is set to TRUE, the motor is running in low speed. If this output is set to FALSE, the motor is stopped or is running in high speed.

Cyclic data

q_xRunFwdHigh

BOOL

If this output is set to TRUE, the motor is running in high speed. If this output is set to FALSE, the motor is stopped or is running in low speed.

Cyclic data

q_xBypass

BOOL

If this output is set to TRUE, the avatar Bypass command is set.

Cyclic data

q_xRunLocalLow

BOOL

If this output is set to TRUE, the avatar Local Low Speed command is set.

Cyclic data

q_xRunLocalHigh

BOOL

If this output is set to TRUE, the avatar Local High Speed command is set.

Cyclic data

q_xOverrideStatus

BOOL

If this output is set to TRUE, the avatar Manual mode is set.

Cyclic data

q_xLoadStart

BOOL

If this output is set to TRUE, the motor is in start phase.

Cyclic data

q_xLoadRun

BOOL

If this output is set to TRUE, a Run or Close command has been executed, and current is flowing in the poles (equivalent to motor running but also for non-motor avatars).

Cyclic data

q_xAlarm

BOOL

If this output is set to TRUE, a protection alarm has been detected by the avatar.

Cyclic data

q_xTripped

BOOL

If this output is set to TRUE, a protection trip event has been detected by the avatar.

Cyclic data

q_xReadyToReset

BOOL

If this output is set to TRUE, the avatar meets the trip reset conditions and can be reset with a Trip Reset command.

Cyclic data

q_xAssetAlarm

BOOL

If this output is set to TRUE, a power device or SIL* Starter within the avatar has reached or exceeded 90% of the expected durability (per the avatar parameter).

Cyclic data

q_udiIRMSAvg

UDINT

Indicates the average of the most recent phase current Irms values. (Unit: A)

Cyclic data

q_udtPVControl

UDT_PVControl

This is a structure of cyclic PV status data for Control avatars. For detailed information about the structure of this UDT, see UDT_PVControl.

Cyclic data

q_udtControl

UDT_Control

This is a structure of acyclic status data for Control avatars, which includes information about alarm and trip messages and maintenance information about the avatar. For detailed information about the structure of this UDT, see UDT_Control. For an overview of which members of the UDT are supported by this avatar, see Supported Members of UDT_Control.

Acyclic data

Status an error codes from ConstTeSysIsland

Member name

Used by the function block

Cdw_ErrNoMsg

Yes

Cdw_ErrInternal

Yes

Cdw_ErrInvalidCycInAddr

Yes

Cdw_ErrInvalidHwid

Yes

Cdw_ErrInvalidNumOfAvatars

No

Cdw_ErrReadCycIn

Yes

Cdw_ErrReadAcycData1

Yes

Cdw_ErrReadAcycData2

No

Cdw_ErrWriteAcycData

No

Cdw_StsReadAcycData1Compl

Yes

Cdw_StsReadAcycData2Compl

No

Cdw_StsWriteAcycDataCompl

No

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

Was this helpful?