
PROGRAMMING15. CUSTOM MACRO
B–64134EN/01
246
Execution of the program can be stopped, and then a message can be
displayed.
Variable number Function
#3006 When “#3006=1 (MESSAGE);” is commanded in the mac-
ro, the program executes blocks up to the immediately pre-
vious one and then stops.
When a message of up to 26 characters, which is enclosed
by a control–in character (“(”) and control–out character
(“)”), is programmed in the same block, the message is dis-
played on the external operator message screen.
The mirror–image status for each axis set using an external switch or
setting operation can be read through the output signal (mirror–image
check signal). The mirror–image status present at that time can be
checked. (See Section 4.7 in III.)
The value obtained in binary is converted into decimal notation.
#7 #6 #5 #4 #3 #2 #1 #0
Setting
#3007
4th axis 3th axis 2th axis 1th axis
For each bit,
0 (mirror–image function is disabled)
or
1 (mirror–image function is enabled)
is indicated.
Example : If #3007 is 3, the mirror–image function is enabled for the first and second axes.
D
When the mirror–image function is set for a certain axis by both the
mirror–image signal and setting, the signal value and setting value are
ORed and then output.
D When mirror–image signals for axes other than the controlled axes are
turned on, they are still read into system variable #3007.
D System variable #3007 is a write–protected system variable. If an
attempt is made to write data in the variable, P/S 116 alarm “WRITE
PROTECTED VARIABLE” is issued.
The number (target number) of parts required and the number (completion
number) of machined parts can be read and written.
Table 15.2 (h) System variables for the number of parts required
and the number of machined parts
Variable number Function
#3901 Number of machined parts (completion number)
#3902 Number of required parts (target number)
NOTE
Do not substitute a negative value.
D Stop with a message
D Mirror image
D Number of machined
parts