2-153
詳細説明
MACHINE OPERATIONS
7-19
G65
マクロ呼出し(ワンショット)
G65 Macro Call (One-Shot)
G65
を指令すると、アドレス
P
で指定したカスタム
マクロを呼び出します。
また、カスタムマクロプログラムに渡すデータ(引
数)の指定ができます。
G65
はすべての引数よりも前に指令します。
When G65 is specified, the custom macro specified at address
P is called.
Data (arguments) to be passed to the custom macro program
can be assigned.
"G65" must be specified before any argument.
7-19-1
引数指定
Argument Assignment
引数指定には
I
と
II
があり、指定されたアルファ
ベットの組み合わせにより自動的に判別されます。
The argument assignment has 2 types, I and II. The type of
argument assignment is determined automatically according
to the addresses used.
7-19-1-1
引数指定
I
Argument Assignment I
詳細は、制御装置メーカーの取扱説明書
Refer to the instruction manual supplied by the NC
manufacturer for details.
G65 P_ L___
<引数指定>
<Argument assignment>
;
•
P . . . . . . . . . . .
呼び出すマクロプログラム番号
Macro program number to be called
•
L . . . . . . . . . . .
プログラムの繰返し呼出し回数
(省略時は
1
回)
1
~
9999
の範囲で指定してください。
Specifies the number of program calls.
(If omitted, the call is repeated once.)
Specify a number from 1 to 9999.
•
<引数指定>
<Argument
assignment>
マクロに渡すデータ
引数指定を使用して対応するローカル変
数に値を代入することができます。
Data passed to the macro
By using argument assignment, values can be
substituted for the corresponding local variables.
呼出されたプログラムに
M99
を
指令することで、
1
つ前のプロ
グラムへ戻ります。
Specify M99 in the called program to
return to the previous program.
アドレス
Address
ローカル変数番号
Local Variable
Number
アドレス
Address
ローカル変数番号
Local Variable
Number
アドレス
Address
ローカル変数番号
Local Variable
Number
A
#1
I
#4
T
#20
B
#2
J
#5
U
#21
C
#3
K
#6
V
#22
D
#7
M
#13
W
#23
E
#8
Q
#17
X
#24
F
#9
R
#18
Y
#25
H
#11
S
#19
Z
#26
1.
アドレス
G, L, N, O, P
は引数として使用
できません。
2.
指定する必要のないアドレスは省略でき
ます。省略したアドレスに対応するロー
カル変数の値は空になります。
3.
特にアルファベット順に指定する必要は
なく、ワードアドレス形式に従っていま
す。
ただし
I, J, K
は、アルファベット順に指
定しなければなりません。
1.
Addresses G, L, N, O and P cannot be used in the
argument.
2.
Unnecessary addresses can be omitted. Local
variables corresponding to an omitted address
are set to null.
3.
Addresses do not need to be specified in alpha-
betical order. The addresses conform to word
address format.
However, I, J, and K need to be specified in
alphabetical order.
Summary of Contents for MSX-850
Page 54: ...1 CHAPTER 1 BASIC OVERVIEW...
Page 170: ...2 CHAPTER 2 MACHINE OPERATIONS...