Chapter 11 Motion Control Instructions
11-119
DMC_WriteParameter_Motion
FB/FC Explanation Applicable model
FB
DMC_WriteParameter_Motion sets a slave parameter value.
Input Parameters
Function Data type
Validation timing
Axis
Specify the slave to
control.
USINT
Section 2.2.
(The variable value
When Execute
changes from
FALSE to TRUE
Execute
The instruction is executed
when Execute changes
BOOL
TRUE or FALSE
(FALSE)
-
Index
The index of the
parameter to write.
UINT
SubIndex
The subindex of the
parameter to write.
USINT
DataType
parameter to write
1:Byte,
2:Word,
4:Double Word.
USINT
Data
The value of the
parameter to write
UDINT
Notes:
1. DataType must be the data type of the parameter to write. An error will occur if the filled value is
incorrect.
2. Refer to Chapter 9 for the calculation of the index and subindex of servo parameters.
Output Parameters
Parameter name 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
Active TRUE when the axis is being controlled. 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
DMC_WriteParameter_Motion
Axis Done
DMC_WriteParameter_Motion_instance
Execute Busy
Active
Error
ErrorID
Index
SubIndex
DataType
Data