MDI_WriteDriveParameter (FB)

FUNCTION_BLOCK MDI_WriteDriveParameter

This function block can be used to write parameters to 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 set a value to that parameter.

InOut:

Scope

Name

Type

Initial

Comment

Input

Execute

BOOL

FALSE

Executes the write 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 written.

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 100.

TimeOut

DINT

2000

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

Value

REAL

Input value to write to source parameter (multiplied by ParScaling).

Inout

Axis

MDI_AxisRef

Reference to the axis structure.

Output

Done

BOOL

Write 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.

Structure: