Chapter 11 Motion Control Instructions
11-159
DMC_SwitchSoftLimit
FB
DMC_SwitchSoftLimit controls the software limit switch.
DMC_SwitchSoftLimit
Axis Done
DMC_ instanceSwitch SoftLimit_
Enable Error
ErrorID
Switch
Input Parameters
Function Data type
Axis
Specify the number of the
which is to be controlled.
USINT
Section 2.2.
(The variable value
When Enable
changes to
TRUE.
Enable
The instruction is executed
when Enable
changes from
FALSE to TRUE.
BOOL
TRUE or FALSE
(FALSE)
changes to
Switch
FALSE: Turn the software limit
switch OFF.
TRUE
: Turn the software limit
switch ON.
BOOL
TRUE or FALSE
(FALSE)
When Enable
changes to
TRUE.
Output Parameters
Function Data type Valid range
Done
TRUE when the instruction execution is completed.
BOOL TRUE / FALSE
Error
TRUE when an error occurs in execution of the
instruction.
BOOL TRUE / FALSE
ErrorID
Contains the error code when an error occurs.
Please refer to section 12.2.
WORD -
Output Update Timing
Parameter Name
Timing for changing to
TRUE
Timing for changing to FALSE
Done
execution is completed.
Error
When Enable changes from TRUE to FALSE.
Error
the instruction are illegal.
When Enable changes from TRUE to FALSE.
Function
DMC_SwitchSoftLimit controls the software limit switch. When Switch is TRUE and the instruction execution
is completed, the software limit switch turns ON. When Switch is FALSE and the instruction execution is
completed, the software limit switch turns OFF.
Also, users could set the switch by clicking Network Configuration-> Motion->Axis Configuration->General in
the software without using the instruction.
The maximum position and minimum position need be set through the software.
After the software limit switch is ON, an error will occur if the axis position which is being controlled by motion
instructions exceeds the software limit range.