Macro Program
09093 ;
M93 ;
#10 = ROUND [#6] *2 ;
#11 = ROUND ~#21] +#10
#12 = ROUND [#23] +#10
#3003 = 1 ;
GOO U#ll ;
#3004 = 7 ;
G22 U-#10 w-#6 F#9 ;
G32w#12 ;
G32 U#10 w-#6 ;
#3004 = o ;
GOO U-#11 ;
GOO w-#23 ;
#3003 = o ;
M92 ;
M99 ;
— Buffering 4 blocks
Single block switch
r
invalidated
1
Feed hold inva-
lidated
F eedrat e over-
ride invalidated
Positioning com-
pleted
h. RS232C Data Output (#3100)
When system variable #3100 is specified, messages
and NC internal data can be output to external
euuipment via RS232C data input/output interface.
If- tie external equipment
information is printed.
i, Output of Messages
#3100 = (<Message>)
is a printer, the above
When this command is specified, the message
enclosed by control–in and control–out is output,
via RS232C interface.
Each output message is followed by CR/LF
(Carriage Return /Line Feed) . Hence, when
#3100 = ( ) is specified, only CR/LF is outputted,
which is useful in tabulating the punched data.
Note:
When the message is output, it should be
enclosed by control–in and control–out.
ii.
Output of Data
#3100 = [ i variable >]
When this command is specified, the value of the
local variable,
common variable, or system varia–
ble at the right-hand side is output via RS232C
interface as plus or minus decimal 9 digits ( 4
digits after the decimal point, 5 digits before the
decimal point) data.
Notes:
1. The value is rounded out to the fifth digit
after the decimal point.
2. When the value is of 6 digits or more before
the decimal point, the asterisk is output.
iii. The above output is performed when system
variable #3100 is executed in the macro program.
It is required, therefore, to previously attach
the external equipment such as a printer via
RS 232c interface and preset the parameters that
use the interface.
Sample Program
#3100=( ); . . .
Carriage ret urn /line feed
#3100 = (TOOL OFFSET 01) ;
#3100 = (I.JU Xuuuuuuuuuu
z UUUUUUUUUU R);
#3100 = [ #2001
#3100 = [ #2101
#3100 = [ #2201
#3100 = ( ) ;
;.. .
= 10.000 mm
;. ..=
-10.000 mm
:.. .
=0.800mm
Printout Data
I TOOL OFFSET 01
I
x
z
R
I
UUUU1O. OOOOUUU–10. 0000 uuuu I-10.80000
I I
I
1
A ~aximum of 6 digits (data plus signs)
before the decimal point can be output.
i. Modal Information #4001 Through #4120)
i. When one of system variables #4001 through
#4120 is specified,
the modal commands that are
specified up to the immediately preceding block
can be known.
These modal commands are some-
times called the current values of modal informa-
tion commands.
System Variable
I
Modal Information
# 4001
# 4021
?$4108
#4109
#4114
#4115
#4119
#41 20
G code (group 01 )
\
G code (group 21 )
E code
F code
Sequence number
Program number
S code
T code
Notes :
1
2
M code can not be read out because of non-modal
information,
The value of either E (#4108) or F ( #4109) is specified
just before being stored, giving # 4108 and # 4109 the
same value.
75