TOMATECH AUTOMATION
8) P/S alarm
G65 H99 Pi; i: alarm number +500
(Example) G65 H99 P15;
P/S alarm 515.
Note: Block number can be specified by variables. Such as: G65 H81 P#100 Q#101 R#102;
The program jumps to block that its block number is specified by #100.
3.25.3 Program example with macro command
Differences between user macro program call (G65, G66) and subprogram call (M98) are
as follows:
1. G65, G66 can specify the argument data and send them to macro program and M98
has no such function.
2. G65, G66 can change the level of local variable and M98 has no such function.
3. G65, G66 only follows N and only P or H follows them.
3.25.3.1 Non-modal call G65
Command format: G65 P_ L_ <argument>_;
Macro program specified by P is called, the argument (data) is send to the user macro
program body.
Command explanation:
P —— called macro program number
L —— called times (it is 1 when it is omitted, it can be the repetitive times from 1 to
9999)
<argument> —— data sent to macro program is valued with the corresponding local
variable.
Nest call: G65 call has four-level nest.
Main program macro program (1st level) macro program (2nd level) macro program (3rd level) macro program (4th level)
Argument address and corresponding variable No. table in method 1