
PROGRAMMING
16. CUSTOM MACRO
B–63124EN/01
296
Specify the channel use for parameter 020. According to the specification
of this parameter, set data items (such as the baud rate) for the
reader/punch interface.
I/O channel 0 : Parameters 101 and 103
I/O channel 1 : Parameters 111 and 113
I/O channel 2 : Parameters 121 and 123
Specify parameter 102, 112 or 122 so that the reader/punch interface is
used as the output device for punching. (Never specify output to the
Fanuc Cassette or floppy disks.)
When specifying a DPRNT command to output data, specify whether
leading zeros are output as spaces (by setting PRT (bit 1 of parameter
6001) to 1 or 0).
To indicate the end of a line of data in ISO code, specify whether to use
only an LF (NCR, of bit 3 of parameter 0103 is 0) or an LF and CR (NCR
is 1).
NOTE
1 It is not necessary to always specify the open command
(POPEN), data output command (BPRNT, DPRNT), and
close command (PCLOS) together. Once an open
command is specified at the beginning of a program, it does
not need to be specified again except after a close
command was specified.
2 Be sure to specify open commands and close commands
in pairs. Specify the close command at the end of the
program. However, do not specify a close command if no
open command has been specified.
3 When a reset operation is performed while commands are
being output by a data output command, output is stopped
and subsequent data is erased. Therefore, when a reset
operation is performed by a code such as M30 at the end
of a program that performs data output, specify a close
command at the end of the program so that processing such
as M30 is not performed until all data is output.
4 Abbreviated macro words enclosed in brackets [ ] remains
unchanged. However, note that when the characters in
brackets are divided and input several times, the second
and subsequent abbreviations are converted and input.
5 O can be specified in brackets [ ]. Note that when the
characters in brackets [ ] are divided and input several
times, O is omitted in the second and subsequent inputs.
D Required setting