Fanuc Series 15i/150i-MA (Programming) Operators Manual

B-63324EN/03 PROGRAMMING 17.CUSTOM MACRO
- 605 -
- Cumulative number of machined parts and number of required parts #3901, #3902
(Attribute : R/W)
With the run time and part count display function, the number of
required parts and the cumulative number of machined parts can be
displayed on the screen. When the cumulative number of machined
parts reaches the number of required parts, a signal is sent to the
machine (PMC) to report the fact. The system variables can be used to
read and write the cumulative number of machined parts and the
number of required parts.
Value number Value name Description
#3901 [#_PRTSA] Cumulative number of machined parts
#3902 [#_PRTSN] Number of required parts
- Main program number #4000 (Attribute : R)
System variable #4000, even when placed in a subprogram of any level,
can be used to read the main program number.
Value number Value name Description
#4000 [#_MAINO] Main processing number
NOTE
1 The main processing number is the number of a
program that was started first.
2 If an O number is specified by MDI during main
program execution, or a second O number is
specified in DNC mode, the value of #4000 is
changed to the specified O number. If no program is
registered or no O number is specified in DNC mode,
the value of #4000 is 0.
3 Even if #4000 is used when drawing is performed in
the background, the main program number is read in
the background.

Leave a Reply

Your email address will not be published. Required fields are marked *