Chapter 8 Logic Instructions
8-187
8.14.1.2 DMC_WriteParameter_CANopen
FB/FC
FB
DMC_WriteParameter_CANopen is used to set a parameter value of a
DVP15MC11T
Input Parameters
Parameter name Function Data type
Axis
is to be controlled by the
USINT
(The variable value
changes from
Execute
executed when Execute
changes from FALSE to
BOOL
TRUE or FALSE
(FALSE)
-
Index
The index of a
parameter which is set
UINT
SubIndex
The subindex of a
parameter which is set
USINT
DataType
parameter which is set
1: Byte,
2: Word,
4: Double Word.
USINT
Data
The content value of the
parameter which is set
UDINT
Notes:
1. The value of DataType must indicate the data type of the parameter which is set. If the filled value is
incorrect, an error will occur in the instruction.
2. For the method of calculating the index and subindex of CANopen slave parameter, refer to
Introduction of Axis Parameters in Chapter 9.
Output Parameters
Done TRUE when the instruction execution is completed. BOOL
Busy TRUE when the instruction is being executed. BOOL
Active TRUE when the axis is being controlled. BOOL
Error TRUE when there is an error. BOOL
ErrorID
Contains error codes when an error occurs. Please
refer to section 12.2 for the corresponding error
WORD
Output Update Timing
DMC_WriteParameter_CANopen
Axis Done
DMC_WriteParameter_CANopen_instance
Execute Busy
Active
Error
ErrorID
Index
SubIndex
DataType
Data