102
5-5-25 G74: OPTIONAL END
Ends the block currently being executed when the specified optional input goes
ON.
Format G74j<optional number>
Parameters The following table shows the possible settings for the parameters.
Parameter Possible settings
Optional number 00 to 06
Description If the specified input is received while the block after the one with this function is
being executed, execution of that block will be interrupted and the program will
proceed to execute the following block.
If an axis operation is being executed, the operation will be decelerated to a stop
before proceeding to the next block. If a DWELL TIMER function (G04) is being
executed, the function will be interrupted and the remaining time cancelled.
The source of the optional input depends on the optional number specified, as
shown below.
0 through 4: Inputs from the PC’s data area interface
5 and 6: Inputs from general inputs 1 and 2
This function is ineffective if the following block contains a SUBPROGRAM END
function (G73) or PROGRAM END function (G79). If the specified optional input
is ON already, this function will operate just like the OPTIONAL SKIP function
(G75).
Example Program ::
N009 G91
N010 G74 3
N011 G01 X100
N012 G01 X100
::
(Operation when the optional input isn’t received)
Speed
Time
Optional
input 3
(Low level)
(Operation when the optional input is received)
Speed
Time
Optional
input 3
G Functions
Section 5-5