Chapter 11 Motion Control Instructions
11-149
DMC_WritePositionLagSetting
FB/FC Explanation
FB
DMC_WritePositionLagSetting is used for setting the position lag.
DVP15MC11T-
DMC_WritePositionLagSetting
Axis
DMC_WritePositionLagSetting_instance
Execute
Done
Busy
Error
ErrorID
Lag
HoldTime
Input Parameters
Function Data type
Validation timing
Axis
Specify the number of the axis which
is to be controlled.
USINT
Functions of
Section 2.2.
(The variable
value must be
When Execute
changes from
FALSE to TRUE.
Execute
The instruction is executed when
Execute changes from FALSE to
BOOL
TRUE or
FALSE (FALSE)
-
Lag
Set the allowed value of the
difference between the command
postion and feedback position.
LREAL
(The variable
value must be
When Execute
changes from
FALSE to TRUE.
HoldTime
A period of time during which the set
Lag value is exceeded.
(Unit: second)
LREAL
0 or Positive
number
(0)
When Execute
changes from
FALSE to TRUE.
Output Parameters
Function Data type Valid range
Done
TRUE when the instruction execution is
completed.
BOOL TRUE/FALSE
Busy TRUE when the instruction is being executed. BOOL TRUE/FALSE
Error
TRUE when there is an error in the execution of
the instruction.
BOOL TRUE/FALSE
ErrorID
Contains the error code when an error occurs.
Please refer to section 12.2.
WORD
Output Update Timing
Name Timing for changing to TRUE Timing for changing to FALSE
Done When the instruction execution is completed.
FALSE.
When Error changes to TRUE.
Busy When the instruction is being executed.
When Error changes to TRUE.
Error
When an error occurs in the instruction
execution or the input parameters for the
When the error is cleared.