Structure: DrvDataTypePermalink

Structure DrvDataType is used for the DriveData variable to exchange the data for one drive.

Structure DrvDataType is used for the DriveData variable which must be connected to all function blocks related to the same drive.

Besides the element “sName” all variables should not be written by the user directly. They are read and written within the function blocks. The DrvDataType contains some more internal, invisible variables which are used for internal functionality and not meant for user access.

The following table shows the visible variables of DrvDataType.

Variable

Data Type

Default value

Description

wStatusWord

WORD

0

Actual status word from drive

iActValue1

INT

0

Actual value1 from drive – mostly equal speed

iActValue2

INT

0

Actual value2 from drive – mapping is made in drive configuration

wControlWord

WORD

0

Control word to drive

iRefValue1

INT

0

Reference value1 to drive – mostly speed reference

iRefValue2

INT

0

Reference value2 to drive – mapping is made in drive configuration

xOnline

BOOL

FALSE

Connection established – set in Modbus communication function block after successful reading and writing one Modbus job

xCtrlBlockUsedf

BOOL

FALSE

A control block is used to generate the control word, ref1 and ref2 values

sName

STRING

‘Default Drive Name’

Name for drive, which can be set by user directly to DriveData variable