Chapter 12 Troubleshooting
1
Case 3: When Execute changes from FALSE to TRUE, Busy and Active change to TRUE. One cycle
later, Done changes to TRUE and DataType and Data show corresponding data values. After
Done changes to TRUE, Busy and Active change to FALSE in the same cycle. When Execute
changes from TRUE to FALSE, Done changes from TRUE to FALSE and DataType and Data
retain original values. If Error changes to TRUE, the values of DataType and Data will be
cleared to 0.
Case 4: The input parameter value is illegal such as axis number: 0 before the
DMC_ReadParameter_Motion instruction is executed. When Execute changes from FALSE to
TRUE, Error changes to from FALSE to TRUE and ErrorID shows corresponding error code.
When Execute changes from TRUE to FALSE, Error changes from TRUE to FALSE and the
content of ErrorID is cleared to 0.
Function
DMC_ReadParameter_Motion reads a slave parameter value. Users can specify the index and subindex
of the parameter which is to be read.
Programming Example
The example of executing the DMC_ReadParameter_ Motion instruction is described as follows.
1. The variable table and program
DMC_ReadParameter_ Motion
FALSE
ReadPm_M1_Err BOOL
FALSE
ReadPm_M1_ErrID WORD
DMC_WriteParameter_Motion
FALSE
FALSE
ReadPm_M2
DMC_ReadParameter_ Motion
ReadPm_M2_Done
BOOL
TRUE
ReadPm_M2_Bsy
BOOL
FALSE
11-113