Mitsubishi — 5.12.3 Writing the Value of a Parameter into a Servo Drive

Chapter 5 Applied Instructions 3. Troubleshooting 4. Example Purpose:  Users can reset the servo drive specified on a DMCNET by means of the motion control function block T_DMCRest, and then write the value of a parameter into the servo drive by means of the motion control function block T_DMCServoWrite. The motion control function block named FB1 is set so that the servo drive specified is reset.

The value of the Group input pin in the motion control function block named FB2 indicates a group number, the value of the Parameter input pin in the motion control function block named 5-225 Input pin Name Function Data Setting value Time when a value is valid type DataType Data type BOOL mc16bits: False mc32bits: True The value of the DataType input pin is valid when there is a transition in the Execute input pin’s signal from low to high. State of output pin Name Function Data type Time when there is Time when there is a transition in an output pin’s signal from high to low a transition in an output pin’s signal from low to high Done The execution of the function block is complete.

BOOL  There is a transition in the Done input pin’s signal from low to high when the writing of the value of a parameter into the servo drive specified is complete.  There is a transition in the Done output pin’s signal from high to low when there is a transition in the Execute input pin’s signal from high to low.  If the Execute input pin is set to False when motion is complete, the Done output pin will be set to False in the next cycle. Busy The motion control function block is being executed. BOOL  There is a transition in the Busy output pin’s signal from low to high when there is a transition in the Execute input pin’s signal from low to high.

 There is a transition in the Busy output pin’s signal from high to low when there is a transition in the Error output pin’s signal from low to high.  There is a transition in the Busy output pin’s signal from high to low when there is a transition in the Done output pin’s signal from low to high. Error An error occurs in the motion control function block. BOOL  Input values are incorrect.  There is a transition in the Error output pin’s signal from high to low when there is a transition in the Execute input pin’s signal from high to low. Error Troubleshooting The values of input pins in the motion control function block are incorrect.

Check whether the values of the input pins are in the ranges allowed.