MCV_Decouple
The “MCV_Decouple” FB decouples an axis, i.e. it is deactivated in order to replace a motor, for example. The sequence of the internally commanded FBs is shown in the flow chart below.
Block diagram

FB parameters
| VAR_IN_OUT | ||
| Variable name | Data type | Description | 
| Axis | AXIS_REF | Axis reference | 
| VAR_INPUT | ||
| Variable name | Data type | Description | 
| Execute | BOOL | The axis coupling sequence is triggered on a rising edge | 
| VAR_OUTPUT | ||
| Variable name | Data type | Description | 
| Done | BOOL | The axis was decoupled successfully. | 
| Error | BOOL | Is TRUE if an error occurs in the FB. | 
| ErrorID | WORD | Error code | 
Behaviour of the FB:
- The sequence of axis decoupling is listed in the diagram below.
- At the beginning of the sequence the current axis position is saved to parameter P-AXIS-00152 (pos_refpkt).
Flow chart
