MDI_ReadDriveParameter (FB)

FUNCTION_BLOCK MDI_ReadDriveParameter

This function block can be used to read parameters from the connected ACS or E530 drive product. The parameters from the drive products each belong to a group and have a number within that group. These parameters can be used here to read that value.

InOut:

Scope

Name

Type

Initial

Comment

Input

Execute

BOOL

FALSE

Executes the read of the parameter one time.

ParGroup

UINT

Allows the user to select the group from which the parameter belongs.

ParIndex

UINT

Allows the user to select the parameter from the group which will be read.

ParScaling

REAL

1

Depends on the data type of drive, for example, parameter 46.01 which has two decimal places in drive, this value must be 0.01.

Timeout

DINT

2000

Read timeout [ms] - Default value is 2000 ms.

Inout

Axis

MDI_AxisRef

Reference to the axis structure.

Output

Done

BOOL

Read completed without an error.

Error

BOOL

Signals that an error has occurred within function block.

ErrorID

ERROR_ID

Contains the error code when there is an error.

Value

REAL

Output value from source parameter (multiplied by ParScaling).

Structure: