
B–62093E–1/02
6. FUNCTIONS OF THE MACRO
EXECUTOR
PROGRAMMING
99
(d) Reference position return command (G345)
G345;
The reference position return command is issued to the PMC
control axis.
(e) Miscellaneous function command (G346)
G346 Mmm;
The miscellaneous function command is issued to the PC control
interface. Specify the miscellaneous function code after address
M.
(f) Status signal read command (G348)
G348 Pppp;
The status signals (F130, F133, F136, F139, F228, F231, F500,
F503, F506, F509) of the corresponding PMC axis control
interface are read into the variable indicated by address P. Into
the variable, a one–byte signal interface is entered in decimal.
The EBSY signal is always input as 0.
76543210
EBSY EOTN EOTP EGEN EDEN EIAL ECKZ EINP
For details of the signals, refer to the CONNECTION MANUAL
for each Series.
(Example) When both EOTN and EIAL are 1
G348 P100;
This G code causes #100 to be set to 68.
(g) Command signal write command (G349)
G349 Pppp;
A numeric value indicated by address P is written into the
command signals (G142, G154, G166, G178, G226, G238,
G464, G476, G488, G500) of the corresponding PMC axis
control interface. The EBUF and EFIN signals cannot be written.
76543210
EBUF ECLR ESTP ESOF ESBK EFIN
For details of the signals, refer to the CONNECTION MANUAL
for each Series.
(Example) ECLR can be set to 1 by the following G code:
G349 P64; (64 = 01000000b)
(2) Notes
(a) Buffering a command
The PMC axis control function buffers command blocks in the
CNC unit so that it can execute two or more commands
sequentially. While a block is being executed, the next block can
be specified if the CNC buffer has sufficient free space. If the
CNC buffer has no free space, the next command is in the wait
state until the previous command block is executed and space in
the buffer becomes free. Meanwhile, the display is locked.
(b) Miscellaneous function command
A miscellaneous function command can be issued by G346. The
conversational macro, however, cannot control the
miscellaneous function completion signal, EFIN. Use the PMC
to control it.