227
Part 4 Commands Chapter 2 Explanation of Commands
Part 4 Commands
J W (Jog)
Command, declaration
Extension condition
(LD, A, O, AB, OB)
Input condition
(I/O, flag)
Command,
declaration
Operand 1 Operand 2
Output
(Output, flag)
Optional Optional J W
Axis
pattern
Input,
output, flag
number
PE
[Function] The axes in the axis pattern specified in operand 1 will move forward or backward while the
input or output port or flag specified in operand 2 is ON or OFF.
JBWF
Move backward while the specified port is OFF.
JBWN
Move backward while the specified port is ON.
JFWF
Move forward while the specified port is OFF.
JFWN
Move forward while the specified port is ON.
(Note 1) This command is also valid on an axis not yet completing home return. In this case, the
maximum speed will be limited by “All-axis parameter No. 15, Maximum jog speed before
home return.” Since coordinate values do not mean anything before home return, pay due
attention to prevent contact with the stroke ends.
(Note 2) If an axis moving in accordance with JXWX has its “Axis-specific parameter No. 1, Axis operation
type” set to “0” (Linear-movement axis) AND “Axis-specific parameter No. 68, Linear-movement
mode selection” to “1” (Infinite-stroke mode*), the axis will operate based on an infinite stroke.
When infinite stroke is enabled, the current position will cycle between approx. –10 m and 10
m.
Any positioning command other than the above to a position exceeding a coordinate range from
approx. –9990 to +9990 will generate an “Error No. CBE, Target-data boundary over error.”
Executing any positioning command other than the above outside a coordinate range from
approx. –9990 to +9990 will also generate an “Error No. CC5, Positioning-boundary deviation
error.”
In case there is a possibility that the current value is out of the coordinate range between about
-9990 to +9990 (after turning servo on and having JOG movement), execute the movement
(Limitation is purposely established because the user cannot certainly identify the direction of
movement around the boundary.)
command by combining with “Each Axis Parameter No. 10 Home-Return Method” and after
resetting the current value by HOME Command.
The infinite-stroke mode can be specified only for an incremental-encoder axis.
[Example 1] VEL 100 Set the speed to 100 mm/s.
JBWF 1100 10 Move axes 3 and 4 backward while input 10 is OFF.
[Example 2]
The axis pattern can be specified indirectly using a variable.
When the command in [Example 1] is rephrased based on indirect specification using a
variable:
1100 (binary)
12 (decimal)
VEL 100 Set the speed to 100 mm/s.
LET 1 12 Assign 12 to variable 1.
JBWF *1 10
[Example 3] VEL 100 Set the speed to 100 mm/s.
LET 5 20 Assign 20 to variable 5.
JFWN 1010 *5 Move axes 2 and 4 forward while the content of variable 5
(input port 20), is ON.