17.REAL-TIME CUSTOM MACRO
PROGRAMMING
B-63944EN/03
- 580 -
- Real time macro statement (RTM statement)
The real time macro statement (RTM statement) is a statement
included in an RTM command.
One or more RTM statements make up an RTM command.
An RTM statement consists of a macro command and axis control
command dedicated to the real time custom macro function.
The axis control command of an RTM statement is an RTM statement
including an address. This command is used to exercise axis control.
Example
// ZDO ;
G90 G00 X100 ;
ZEND
;
(ZDO and ZEND are reserved words required for the axis control
command of an RTM statement, and are detailed later.)
The macro command of an RTM statement is a macro statement used
with an RTM statement for arithmetic/logical operation and signal
control. (In the example below, #RV[1] and #RV[2] are variables
dedicated to the real time macro command.)
Example
// #IOG[124, 5] = 1 ;
// #RV[1] = #RV[2] * 10 ;
Format
The real time macro command format is shown below.
The RTM command is a command with two slashes (//) prefixed at the
start of a block.
//n <real-time-macro-statement>
or
//n ZDO ;
<real-time-macro-statement>
:
ZEND ;
N: Modal ID (1 to 10) (Omissible)
When a proper number is coded in n, a modal real time
macro command is specified. When n is omitted, a
one-shot real time macro command is specified.
ZDO to ZEND are detailed later.