4 - 42 ISNC G Codes
704-0115-307
WinMax Lathe NC Programming
Macro Instruction (G65)
G65 Macro instructions are G65 commands which are used to perform mathematical,
trigonometric, or program control functions instead of subprogram calls. These
commands are intended to support existing programs which use this program format.
The value in the H parameter defines the operation being performed. In all instructions
except the GOTO commands H80 through H86, a variable number follows the P
parameter. The operation’s result is stored in that variable number. In the following
command the value stored in variable #100 is added to the number 1 and the resultant
value is stored in variable #115.
G65 H02 P#115 Q#100 R1
For the GOTO commands, the value which follows the P is a positive or negative integer.
If the number is negative, the software begins searching for the sequence number at the
beginning of the file and continues to search for the sequence number until reaching the
end of the file. If the number is positive, the search for the sequence numbers begins
with the block after the GOTO command and continues until reaching the end of the file.
The software then searches from the beginning of the file until reaching the GOTO
command block.
The values which follow Q and R are general purpose parameters which are used in
mathematical, logical, or GOTO operations. The specific operations are listed in the
following table.
Format
The following is the G65 Macro Instruction format:
G65 H ____, P #a, Q #b, R #c,.
For H80 through H86, if “a” has a negative value, the software performs a GOTO but
begins looking for the sequence number at the beginning of the program. No variables
can be used for the P parameter for H80 through H86.
The G65 Macro Instructions are intended to support existing Macro A
programs. Use equations and regular GOTO statements in place of
these instructions when developing new programs.
For example use #100 = 4.56 OR #110 instead of G65 #11 P#100
Q4.56 R#110.
And use IF [#150 EQ #160] GOTO 100 instead of G65 H81 P100
Q#150 R#160.
These commands can be used in either Macro A or B mode.
Содержание winmax
Страница 14: ...xiv List of Tables 704 0115 307 WinMax Lathe NC Programming...
Страница 20: ...xx Programming and Operation Information 704 0115 307 WinMax Lathe NC Programming...
Страница 98: ...2 50 Basic NC G Codes 704 0115 307 WinMax Lathe NC Programming...
Страница 208: ...4 94 ISNC G Codes 704 0115 307 WinMax Lathe NC Programming...
Страница 236: ...5 28 ISNC M Codes 704 0115 307 WinMax Lathe NC Programming...
Страница 238: ...6 2 E Codes 704 0115 307 WinMax Lathe NC Programming...
Страница 254: ...12 Index 704 0115 307 WinMax Lathe NC Programming...