上海维宏电子科技股份有限公司
Weihong Electronic Technology Co., Ltd.
52 Specialized, Concentrated, Focused
These specific programs are defined as public subprograms which have the same format as a
subprogram.
O"9002"
Operation &
control
instructions
of variable
M17
;
G65 P9002 L2
(User-defined
Variable)
Fig. 4-38 Subprogram Call Instruction G65
Fig. 4-38 is a process sketch map to call and execute the subprogram P9002 two times and then
continue executing the following commands.
New function of naming the subprogram is available.
The format is O‖subprogram name‖ and
G65 P‖subprogram name‖ L numerical digit (1,2,3…) for writing and calling a subprogram, which is
convenient to remember. Note that a program name can not be Chinese characters.
G903 100% feedrate override command
Command Format:
G903
Description:
This instruction sets feedrate override as 100% forcedly, whatever the value the user sets. It is
often used in functions of backing to machine origin and tool measurement to ensure accuracy.
This non-modal command should be used together with G00, G01, G02, or G03.
Programming Example:
G905 G903 G01 X10 Y20 Z0 F600;
’F (feedrate) is set as 600 mm/min forcedly
G904 Conditional Movement Command
Command Format:
G904 FX_PX_ LX_ FY_PY_LY_ FZ_PZ_LZ_ X_Y_Z_
Description:
FX_, FY_, FZ_: the moving speed and direction of X, Y and Z axes
PX_, PY_, PZ_: the to-be-detected signal port no. of X, Y and Z axes
LX_, LY_, LZ_: the signal status that is waited to stop movement of X, Y and Z axes (1: on; 0: off)
X_, Y_, Z_: the longest moving distance
Unnecessary axes can be omitted. However, once an axis appears, except X_Y_Z_, the other
data must be complete.
G905 Enable feedrate command
Command Format:
G905
Description:
Summary of Contents for Ncstudio
Page 74: ...RMB 21 00 ...