InverterAnalog

InverterAnalog 1:

This class is used for inverters with an analog interface.

Syntax:

FUNCTION_BLOCK FB_InverterAnalog EXTENDS FB_InvDeviceBase

InverterAnalog 2: I/O variables

Name

Type

Direction

Description

QVelocity

FB_OutputAnalog16

Output

Velocity output

QPowerEnable

FB_OutputDigital

Output

Power enable

QPositiveEnable

FB_OutputDigital

Output

Positive directional enable

QNegativeEnable

FB_OutputDigital

Output

Negative directional enable

QReset

FB_OutputDigital

Output

Reset the inverter error state.

IActualVelocity

FB_InputAnalog16

Input

Message of the current velocity.

IActualLoad

FB_InputAnalog16

Input

Message of the current load.

IEnableFeedback

FB_InputDigital

Input

Message of power enable.

IFault

FB_InputDigital

Input

Inverter error

InverterAnalog 3: Properties

Name

Type

Access

Description

ActVelocity

LREAL

Get

Current velocity of the inverter motor.

TolStandstill

LREAL

Get, Set

Tolerance with which the current velocity is interpreted as standstill.

Connected

BOOL

Get

[INTERNAL] Class has been connected to an axis.

EnableN

BOOL

Get, Set

Negative directional enable of the axis.

EnableP

BOOL

Get, Set

Positive directional enable of the axis.

EnablePower

BOOL

Get, Set

Power enable of the axis.

EnableSupply

BOOL

Get, Set

Supply enable of the axis.

Error

BOOL

Get

Inverter is in error state.

ErrorID

UDINT

Get

Error code of the inverter error.

Load

LREAL

Get

Moad of the inverter.

PowerEnabled

BOOL

Get

Feedback of the power enable of the inverter.

Reset

BOOL

Get, Set

Reset signal of the axis.

Reseted

BOOL

Get, Set

Feedback of the successful reset.

SetVelocity

LREAL

Get, Set

Set velocity of the axis.

Stop

BOOL

Get, Set

Stop signal of the axis for possible stop functions of the inverter.

Stopped

BOOL

Get

Feedback of the successful stop of the inverter.

SupplyEnabled

BOOL

Get

Feedback of the supply enable of the inverter.

InverterAnalog 4:

Direction of the signals

The properties essentially form the interface between the inverter and the inverter axis.

  • Methods without a setter are usually feedback signals from the inverter to the axis.
  • Methods with setters are command signals from the axis to the inverter.

InverterAnalog 5: Methods

Name

Description

Cyclic()

Cycle method

Connect()

Connects the inverter device to the axis.

GoError()

Simulates an error of the inverter device.

InverterAnalog 6: Interfaces

Type

Description

I_InvDeviceBase

Standard interface on FB_InvDeviceBase

Defines the interface to the axis.

I_InverterAnalog

Standard interface on FB_InverterAnalog.

I_InvDeviceBaseDev

Extended interface on FB_InvDeviceBase.

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT v3.1.4024.55

PC or CX (x64, x86)

Tc3_PlasticFunctions (>= v3.12.5.0)