AX-Series Motion Controller Instructions Manual Chapter 2
104
2.2.2 MC_SetPosition
Supported Devices: AX-308E, AX-8, AX-364E
MC_SetPositionn changes the current position by shifting the coordinates of an axis.
FB/FC Instruction Graphic Expression ST Language
FB MC_SetPosition
MC_SetPosition_instance(
Axis : =,
Execute : =,
Position : =,
Mode : =,
Done =>,
Busy =>,
Error =>,
ErrorID =>);
Inputs
Name Function
Data
Setting Value
Timing to Take Effect
Execute
The instruction is run when Execute
changes from False to True.
BOOL
True/False
-
Position
Axis position
LREAL
Positive, negative,
or 0 (0)
When Execute turns to True and
Busy is False.
Mode
Specify relative position (True) or
BOOL
True/False
When Execute turns to True and
Outputs
Name Function Data Type Output Range (Default Value)
Done
True when finishes coordinate
modification.
BOOL True/False (False)
Busy
True when the instruction is
running.
BOOL True/False (False)
True when an error occurs.
ErrorID
Record the error code when an
error occurs.
Refer to Appendix
for error code
descriptions.
SMC_ERROR* SMC_ERROR (SMC_NO_ERROR)
*Note: SMC_ERROR: Enumeration (Enum)
Output Updating Time