SML_SetOpmode (FB)ΒΆ
FUNCTION_BLOCK SML_SetOpmode
Sets the mode of operation to a new value, if necessary.
If eSetOpmode <> eOpmode or eActOpmode <> eOpmode, the value of the
parameter eSetOpMode (2000) is written to eOpmode.
The operation succeeds once parameter eActOpMode (2001) has the new value.
- InOut:
Scope
Name
Type
Comment
Inout
AxisReference to the axis
Input
bExecuteBOOLOperates on the rising edge
eOpmodeThe desired mode of operation
Output
bBusyBOOLThe FB is not finished and new output values are to be expected
bDoneBOOLThe mode of operation has been successfully set
bErrorBOOLAn error has occured
eErrorError number