PROGRAMMING
13. CUSTOM MACRO
B–63664EN/02
238
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 III–4.7)
The value obtained in binary is converted into decimal notation.
#7 #6 #5 #4 #3 #2 #1 #0
8th axis
7th axis
Setting
#3007
6th axis 5th axis 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.
S
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.
S When mirror–image signals for axes other than the controlled axes are
turned on, they are still read into system variable #3007.
S 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 13.2 (i) 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 Mirror image
D Number of machined
parts