Macro Call Command - Mitsubishi Electric M700V Series Programming Manual

Hide thumbs Also See for M700V Series:
Table of Contents

Advertisement

13. Program Support Functions

13.5.2 Macro Call Command

Function and purpose
Included among the macro call commands are the simple calls which apply only to the instructed
block and also modal calls (types A and B) which apply to each block in the call modal.
Simple macro calls
G65Ll1 Pp1 <argument>;
Format
G65 L__(A__) P__ argument ;
or G65 <File name> P__ argument ;
G65
L(A)
<File name>
P
Argument
When the argument must be transferred as a local variable to a user macro subprogram, the actual
value should be designated after the address.
Regardless of the address, a sign and decimal point can be used in the argument. There are 2
ways in which arguments are designated.
(1) Argument designation I
Format : A_ B_ C_ ... X_ Y_ Z_
Detailed description
(a) Arguments can be designated using any address except G, L(A), N, O and P.
(b) Except for I, J and K, there is no need for designation in alphabetical order.
(c) I, J and K must be designated in alphabetical order.
(d) Addresses which do not need to be designated can be omitted.
(e) The following table shows the correspondence between the addresses which can be
designated by argument designation I and the variable Nos. in the user macro main body.
Main program
Call instruction
Program No.
File name
A file name can be specified instead of a program No.
In this case, enclose the file name with brackets <>.
(The file name can have up to 32 characters including the extension.)
Number of repetitions
Specify variable data
I_ J_ K_ ...... Correct
J_ I_ K_ ...... Incorrect
13.5 User Macro Specifications
Subprogram (Ll
To subprogram
Ll
1
G68
To main program
G68 is used to conclude the user macro subprogram.
300
)
1

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents