Descriptions
B-63322EN-2/01
WARNING
Applied when there is a danger of the user being
injured or when there is a damage of both the user
being injured and the equipment being damaged if
the approved procedure is not observed.
CAUTION
Applied when there is a danger of the equipment
being damaged, if the approved procedure is not
observed.
NOTE
The Note is used to indicate supplementary
information other than Warning and Caution.
s-1
B-63322EN-2/01 Table of Contents
Table of Contents
1 OVERVIEW................................
OVERVIEW................................................................
................................................................................................
................................................................................................
.........................................................................
......................................... 1
2 HARDWARE CONFIGURAT
CONFIGURATION
ION ................................................................
................................................................................................
......................................................................
...................................... 2
2.1 OVERVIEW .................................................................................................................................... 3
3 SOFTWARE CONFIGURAT
CONFIGURATION
ION ................................................................
................................................................................................
.......................................................................
....................................... 4
3.1 OVERVIEW .................................................................................................................................... 5
3.2 RAM ADDRESS AREA ASSIGNMENT........................................................................................ 6
3.3 SOFTWARE CONFIGURATION .................................................................................................. 7
4 COMMUNICATION BETWEEN
BETWEEN THE CNC AND CUSTOMER'S BOARD ...................................
................................... 10
4.1 APPLICATION SOFTWARE PROCESSING ............................................................................. 11
4.2 PARAMETERS FOR APPLICATIONS ....................................................................................... 12
4.3 INPUT/OUTPUT SIGNALS FOR TRANSFER WITH APPLICATION SOFTWARE ............. 13
5 CNC/CUSTOMER'S BOAR
BOARDD WINDOW ................................................................
..........................................................................................
.......................................................... 14
5.1 OVERVIEW .................................................................................................................................. 15
5.2 CNC/CUSTOMER'S BOARD ADDRESS MAP........................................................................... 15
5.3 TIMING CHARTS ........................................................................................................................ 16
5.4 DETAILED DATA DESCRIPTIONS .......................................................................................... 20
c-1
Table of Contents B-63322EN-2/01
9 DEVELOPMENT ENVIRONMENT
ENVIRONMENT ................................................................
................................................................................................
................................................................ 39
9.1 OVERVIEW .................................................................................................................................. 40
12 CUSTOMER'S BOARD MA
MANIPULATION
NIPULATION ................................................................
......................................................................................
...................................................... 46
12.1 DEDICATED CUSTOMER'S BOARD PARAMETERS ............................................................. 47
12.2 DEVELOPMENT SUPPORT FUNCTIONS ............................................................................... 58
12.2.1 Monitor Function ............................................................................................................. 59
12.2.2 Memory Display Function ............................................................................................... 61
12.2.3 Breakpoint Function........................................................................................................ 63
12.2.4 Data Output Function ..................................................................................................... 65
12.2.5 Data Escape Function ..................................................................................................... 67
12.2.6 Message Function ............................................................................................................ 72
12.2.7 Debug Display Function .................................................................................................. 74
12.2.8 Waveform Diagnosis Function ........................................................................................ 75
12.3 MANIPULATION PARAMETERS.............................................................................................. 77
12.4 MISCELLANEOUS ...................................................................................................................... 83
c-2
B-63322EN-2/01 1. OVERVIEW
1 OVERVIEW
The customer's board incorporates a high-speed RISC CPU for running
application software created by a machine tool builder to implement
his/her own functions.
The use of a customer's board requires the machine tool builder's
options as well as the basic options.
-1-
2. HARDWARE CONFIGURATION B-63322EN-2/01
2 HARDWARE CONFIGURATION
-2-
B-63322EN-2/01 2. HARDWARE CONFIGURATION
2.1 OVERVIEW
Main board
Flash
memory
FANUC BUS
Customer's
board Code area
(1.25 Mbytes)
Data communication
area (512 Kbytes)
Data area
(2 Mbytes)
<1> Application software can use about 1 Mbyte in the code area (of
the 1 Mbyte, 512 bytes are used by the CNC system) and 1.5
Mbytes in the data area. (See Section 3.2, "RAM Area Address
Assignment.")
<2> When the power is switched on, the customer's board system
software and application software are transferred from flash
memory to the code area.
<3> Upon the completion of step <2>, the software on the customer's
board starts running.
-3-
3. SOFTWARE CONFIGURATION B-63322EN-2/01
3 SOFTWARE CONFIGURATION
-4-
B-63322EN-2/01 3. SOFTWARE CONFIGURATION
3.1 OVERVIEW
-5-
3. SOFTWARE CONFIGURATION B-63322EN-2/01
02000000H to 0203ffffH
System code area (256 Kbytes)
Code area
(1.25 Mbytes),
02040000H to 0213ffffH
which cannot
Application code area (1 Mbyte)
be referenced
from the CNC
02400000H to 0247ffffH
CNC/customer's board window (512 Kbytes)
This window is used as an area for communication
between the CNC main board and customer's board.
-6-
B-63322EN-2/01 3. SOFTWARE CONFIGURATION
System software
System call
library
Application software
Normal-level High-level
process process
CAUTION
The high-level process must be terminated within 8
ms. Otherwise, a system alarm condition may occur.
-7-
3. SOFTWARE CONFIGURATION B-63322EN-2/01
System calls
When an application uses a system-provided process, it calls the
corresponding function from a system call library.
FANUC offers header files for calling functions from the system call
library. The header files are used for developing application software.
NOTE
The entity of the system call library currently exists in
the system software. (The application software calls
system call library functions directly from the system
software side.)
In the future, however, the entity of the system call
library may be partially prepared in the application
software side.
02040200H
Offset Description Size
+ 0000H Task information for task No. 1 32 bytes
+ 0020H Task information for task No. 2 32 bytes
: : :
: : :
+ 01E0H Task information for task No. 16 32 bytes
NOTE
The CNC-side system uses the first 512-byte section of
the application code area. So, no application can use it.
-8-
B-63322EN-2/01 3. SOFTWARE CONFIGURATION
Load the fields for task Nos. 4 to 16 and reserved for future use with 0.
-9-
4. COMMUNICATION BETWEEN THE CNC AND CUSTOMER'S BOARD B-63322EN-2/01
- 10 -
B-63322EN-2/01 4. COMMUNICATION BETWEEN THE CNC AND CUSTOMER'S BOARD
CAUTION
The system-side software initializes (clears to 0) the
work area. The application software should not
initialize it.
- 11 -
4. COMMUNICATION BETWEEN THE CNC AND CUSTOMER'S BOARD B-63322EN-2/01
Number of
No. Data type Valid data range
parameters
0000 to 0015 16 Bit 0 to 1
1000 to 1255 256 Integer -999999999 to +999999999
2000 to 2063 64 Integer axis -999999999 to +999999999
3000 to 3127 128 Real number Nine digits in machine units for
the basic axis
4000 to 4019 20 Real number Nine digits in machine units
axis
CAUTION
If the following CNC parameters are re-set, the
application software parameters of types real number
and real number axis must be cleared to 0 and re-set
on the CNC side.
• Parameter INM (bit 1 of No. 1002)
• Parameter ROT (bit 0 of No. 1006)
• Parameter No. 1012
• Parameter No. 1031
- 12 -
B-63322EN-2/01 4. COMMUNICATION BETWEEN THE CNC AND CUSTOMER'S BOARD
64 dedicated G signals
64 dedicated F signals
Copy
64 dedicated F signals
PMC → CNC
#7 #6 #5 #4 #3 #2 #1 #0
G180
G181
G182
G183
G184
G185
G186
G187
CNC → PMC
#7 #6 #5 #4 #3 #2 #1 #0
F180
F181
F182
F183
F184
F185
F186
F187
- 13 -
5. CNC/CUSTOMER'S BOARD WINDOW B-63322EN-2/01
- 14 -
B-63322EN-2/01 5. CNC/CUSTOMER'S BOARD WINDOW
5.1 OVERVIEW
- 15 -
5. CNC/CUSTOMER'S BOARD WINDOW B-63322EN-2/01
n n+1 n+2
CNC side
CRDY1
RRDY1
Application
side n-1 n n+1
- 16 -
B-63322EN-2/01 5. CNC/CUSTOMER'S BOARD WINDOW
NOTE
1 The CNC side cannot write the next data before the
application side completes reading of the current data.
Keeping the CNC side waiting may reduce its
throughput. Once it has started the high-level process,
therefore, the application side should complete data
reading as quickly as possible by copying the data to
another area.
2 In the first high-level process performed after the power
is switched on, the application must ignore any high-level
data received from the CNC side.
(No data is set, because there is no "previous" high-level
process.)
- 17 -
5. CNC/CUSTOMER'S BOARD WINDOW B-63322EN-2/01
n n+1 n+2
Application
side
RRDY2
CRDY2
CNC side
n-1 n n+1
• When the application software transfers data to the CNC via the
CNC/customer's board window, it is requested to confirm that the
result of an exclusive OR operation between CRDY2 and RRDY2 is
1 before setting data in the CNC/customer's board window .
• The application side is requested to invert RRDY2, after setting the
data.
• Before reading data from the CNC/customer's board window, the
CNC-side process confirms that the result of an exclusive OR
operation between CRDY2 and RRDY2 is 1.
• After reading data, the CNC-side process inverts RRDY2.
• CRDY2 and RRDY2 can take values 0 and 1. Inverting a flag
involves changing its value from 0 to 1 or vice versa.
CAUTION
If the CNC-side process is kept waiting before it can
read data from the CNC/customer's board window, a
system alarm condition may occur.
- 18 -
B-63322EN-2/01 5. CNC/CUSTOMER'S BOARD WINDOW
<CNC side>
PRMWT
Parameter writing
<Application side>
PRMWE
Parameter reading
NOTE
It is not guaranteed that the CNC will complete
parameter writing within 8 ms. When the application
side uses a high-level process for parameter reading, if
parameter writing by the CNC has not ended, the
application must not wait in the current process. Instead,
it must wait in the next process.
- 19 -
5. CNC/CUSTOMER'S BOARD WINDOW B-63322EN-2/01
02400000H
+0H +1H +2H +3H
CRDY1 CRDY2
Reserved for future use
Reserved for future use
High-level data transfer 2 ready flag
High-level data transfer 1 ready flag
02400004H
+0H +1H +2H +3H
- 20 -
B-63322EN-2/01 5. CNC/CUSTOMER'S BOARD WINDOW
02404000H
+0H +1H +2H +3H
02404004H
+0H +1H +2H +3H
- 21 -
5. CNC/CUSTOMER'S BOARD WINDOW B-63322EN-2/01
02400080H
Offset Description Size
+ 0000H Input signal (G180) 1 byte
+ 0001H Input signal (G181) 1 byte
+ 0002H Input signal (G182) 1 byte
+ 0003H Input signal (G183) 1 byte
+ 0004H Input signal (G184) 1 byte
+ 0005H Input signal (G185) 1 byte
+ 0006H Input signal (G186) 1 byte
+ 0007H Input signal (G187) 1 byte
02404080H
Offset Description Size
+ 0000H Output signal (F180) 1 byte
+ 0001H Output signal (F181) 1 byte
+ 0002H Output signal (F182) 1 byte
+ 0003H Output signal (F183) 1 byte
+ 0004H Output signal (F184) 1 byte
+ 0005H Output signal (F185) 1 byte
+ 0006H Output signal (F186) 1 byte
+ 0007H Output signal (F187) 1 byte
- 22 -
B-63322EN-2/01 5. CNC/CUSTOMER'S BOARD WINDOW
Number of
No. Data type Valid data range
parameters
0000 to 0015 16 Bit 0 to 1
1000 to 1255 256 Integer -999999999 to +999999999
2000 to 2063 64 Integer axis -999999999 to +999999999
3000 to 3127 128 Real number Nine digits in machine units for
the basic axis
4000 to 4019 20 Real number Nine digits in machine units
axis
CAUTION
If the following CNC parameters are re-set, the
application parameters of types real number and real
number axis must be cleared to 0 and re-set on the
CNC side.
• Parameter INM (bit 1 of No. 1002)
• Parameter ROT (bit 0 of No. 1006)
• Parameter No. 1012
• Parameter No. 1031
02400090H
Offset Description Size
+ 0000H 16 bit parameters (No. 0000 to No. 0015) 16 bytes
+ 0010H 256 LONG parameters (No. 1000 to No. 1255) 1024 bytes
+ 0410H 64 LONG axis parameters (No. 2000 to No. 2063) 6144 bytes
+ 1C10H 128 real number parameters (No. 3000 to No. 3127) 1024 bytes
+ 2010H 20 real number axis parameters (No. 4000 to No. 4019) 3840 bytes
- 23 -
5. CNC/CUSTOMER'S BOARD WINDOW B-63322EN-2/01
• Bit parameters
02400090H
Offset Data No. Description Size
+ 0000H 0000 Bit parameter No. 1 1 byte
+ 0001H 0001 Bit parameter No. 2 1 byte
+ 0002H 0002 Bit parameter No. 3 1 byte
: : : 1 byte
: : : 1 byte
+ 000FH 0015 Bit parameter No. 16 1 byte
• LONG parameters
024000A0H
Offset Data No. Description Size
+ 0000H 1000 LONG parameter No. 1 4 bytes
+ 0004H 1001 LONG parameter No. 2 4 bytes
+ 0008H 1002 LONG parameter No. 3 4 bytes
: : : :
: : : :
+ 03FCH 1255 LONG parameter No. 256 4 bytes
- 24 -
B-63322EN-2/01 5. CNC/CUSTOMER'S BOARD WINDOW
02402FA0H
Offset Description Size
+ 0000H (1) High-level task processing time (µs) 4 bytes
+ 0004H (2) High-level task peak processing time (µs) 4 bytes
(Maximum permissible time that can elapse after power-on)
+ 0008H Reserved for future use 8 bytes
- 25 -
6. SYSTEM CALLS B-63322EN-2/01
6 SYSTEM CALLS
- 26 -
B-63322EN-2/01 6. SYSTEM CALLS
- 27 -
6. SYSTEM CALLS B-63322EN-2/01
- 28 -
B-63322EN-2/01 6. SYSTEM CALLS
- 29 -
6. SYSTEM CALLS B-63322EN-2/01
- 30 -
B-63322EN-2/01 6. SYSTEM CALLS
- 31 -
6. SYSTEM CALLS B-63322EN-2/01
- 32 -
B-63322EN-2/01 6. SYSTEM CALLS
NOTES
(1) Never call a system call function related to message
output or debug display access when interrupts are
disabled.
(2) System call functions (1) to (10) cannot be called from
task No. 1 (for power-on time processing).
(3) A debug display on the screen may take a high
occupancy ratio for a bus to the same data. Avoid
frequent updates.
As a guideline, limit the number of times that a system
call related to debug display to within several times per
start cycle of task No. 2.
(4) Do not use a cache control system call for any purpose
other than temporarily turning off the cache for
debugging. After you finish debugging, delete all
system calls related to cache control.
Turning off the cache makes the processor slow,
resulting an increase in the time required for the high-
level process and therefore leading to a system error.
0 1 2 3 4 5 6 7 8 9 a b c d e f
00 NL LF
10
20 SP ! “ # $ % & ‘ ( ) * + , - . /
30 0 1 2 3 4 5 6 7 8 9 : ; < = > ?
40 @ A B C D E F G H I J K L M N O
50 P Q R S T U V W X Y Z [ \ ] ^ _
60
to
f0
Codes usable in message output and debug display
- 33 -
6. SYSTEM CALLS B-63322EN-2/01
X-coordinate
0 75
0
(0,0)
Y-
corrdinate
(75,16)
16
Debug display screen configuration
- 34 -
B-63322EN-2/01 7. DEVELOPMENT SUPPORT FUNCTIONS
- 35 -
7. DEVELOPMENT SUPPORT FUNCTIONS B-63322EN-2/01
Monitor function
This function displays the statuses of DI/DO data (G180 to G187/F180
to F187), diagnostic data (processing time and peak time of task No. 2),
and data transfer flags (data transfer 1, data transfer 2, and parameter
transfer). The peak time diagnostic data can be preset.
Breakpoint function
This function enables an address within the application code area on
the customer's board to be specified. It also checks whether an
instruction at the specified address has been executed.
Message function
This function writes user program-specified data into a system buffer
as directed using a system call function.
The function also displays the written data on the CUSTOMER'S
BOARD (MESSAGE) screen.
- 36 -
B-63322EN-2/01 8. CONTROL PARAMETERS
8 CONTROL PARAMETERS
- 37 -
8. CONTROL PARAMETERS B-63322EN-2/01
#7 #6 #5 #4 #3 #2 #1 #0
1011 NCB
NOTE
After setting this parameter, switch the power off and
then back on again.
- 38 -
B-63322EN-2/01 9. DEVELOPMENT ENVIRONMENT
9 DEVELOPMENT ENVIRONMENT
- 39 -
9. DEVELOPMENT ENVIRONMENT B-63322EN-2/01
9.1 OVERVIEW
NOTE
The above items may have to satisfy some conditions,
such as the compiler version. Before purchasing them,
check with FANUC.
- 40 -
B-63322EN-2/01 10. CAUTIONS FOR CODING
- 41 -
10. CAUTIONS FOR CODING B-63322EN-2/01
10.1 OVERVIEW
for ( ; ; ) {
count ++;
if ( count > 100000 ) break;
}
- 42 -
B-63322EN-2/01 10. CAUTIONS FOR CODING
count2 = 0;
for ( ; ; ) {
count ++;
count2 ++;
if ( count > 100000 ) break;
if ( count2 >= 500 ) {
sc_access_wait ();
count2 = 0;
}
}
WARNING
If an application program performs one of the following
operations, the CNC may behave in an unexpected
manner.
• Access to data in an area other than the
CNC/customer's board window or application data
area.
• Change to data in the CNC/customer's board window
at a point in time other than that specified.
• Execution of a program other than an application
program (except system calls)
- 43 -
11. LED INDICATORS B-63322EN-2/01
11 LED INDICATORS
- 44 -
B-63322EN-2/01 11. LED INDICATORS
11.1 OVERVIEW
1 2 3 4
STATUS¡¡¡¡ ← Green
ALARM ¡¡¡ ← Red
The following descriptions use an empty circle (¡), solid circle (●),
and a star (★) to indicate that the corresponding LED is off, on, or
blinking, respectively.
(4) Miscellaneous
If there is no system-side software when the customer's board is
installed, or if there is an error in the software, the nine LED
indicators in the CNC side blink, resulting in the CNC being
stopped.
- 45 -
12. CUSTOMER'S BOARD MANIPULATION B-63322EN-2/01
- 46 -
B-63322EN-2/01 12. CUSTOMER'S BOARD MANIPULATION
Overview
CAUTION
If the following CNC parameters were re-set, the
application software parameters of types real number
and real number axis must be cleared to 0 and re-set
on the CNC side.
• Parameter INM (bit 1 of No. 1002)
• Parameter ROT (bit 0 of No. 1006)
• Parameter No. 1012
• Parameter No. 1031
- 47 -
12. CUSTOMER'S BOARD MANIPULATION B-63322EN-2/01
NOTE
If the set data does not fall within the valid data
range, "+OVERFLOW" or "-OVERFLOW" is
displayed.
- 48 -
B-63322EN-2/01 12. CUSTOMER'S BOARD MANIPULATION
• Bit on: 1
Pressing soft key [ON:1] sets a bit of a bit parameter to 1. The bit is
selected by the cursor.
If all bits are selected by the respective cursors, all bits are set to 1.
- 49 -
12. CUSTOMER'S BOARD MANIPULATION B-63322EN-2/01
• Bit off: 0
Pressing soft key [OFF:0] resets a bit of a bit parameter to 0. The bit is
selected by the cursor.
If all bits are selected by the respective cursors, all bits are reset to 0.
NOTE
1. Setting the data triggers a parameter transfer to the
customer's board side. The data setting session
ends even before parameter transfer is finished.
(The CNC side terminates the data setting session
without waiting until the parameter transfer to the
customer's board side has been completed.)
2. When parameter PWW (bit 0 of parameter No.
2460) = 0, a warning is issued if an automatic
operation is started before parameter transfer ends.
Output procedures
The following paragraphs describe how to output the settings of the
dedicated customer's board parameters to a floppy disk.
Method 1 (with neither output file name nor file number specified)
(1) Display the CUSTOMER'S BOARD (PARAMETER)
screen.
(2) Select MDI mode.
(3) Press soft key [PUNCH].
(4) Press soft key [EXECUTE].
- 50 -
B-63322EN-2/01 12. CUSTOMER'S BOARD MANIPULATION
NOTE
If dedicated customer's board parameter output
method 1 (with neither output file name nor file
number specified) is used with a FANUC Floppy
Cassette, FANUC FA Card, FANUC Handy File, or
a memory card, the file name is fixed to
"CSTM_BD.TXT."
• Input procedures
The following paragraphs describe how to input the dedicated
customer's board parameters from a floppy disk to the CNC memory.
Method 1 (with neither the input file name nor input file number
specified)
(1) Display the CUSTOMER'S BOARD (PARAMETER)
screen.
(2) Select MDI mode.
(3) Bring the CNC to an emergency stop.
(4) Press soft key [READ].
(5) Press soft key [EXECUTE].
NOTE
1. Upon detecting the end of data input, the CNC
starts transferring parameters to the customer's
board side. It terminates the data input session
even before parameter transfer is completed.
(The CNC side terminates the data input session
without waiting for parameter transfer to the
customer's board side to complete.)
2. When parameter PWW (bit 0 of parameter No.
2460) = 0, a warning is issued if automatic operation
is started before parameter transfer ends.
- 52 -
B-63322EN-2/01 12. CUSTOMER'S BOARD MANIPULATION
• Keywords
The letters listed below are used as keywords.
A value that follows each keyword has the meaning indicated below.
Example
N00010P00000001;
Parameter No. 10
Parameter value Bit 0 is 1, and the other bits are 0.
- 53 -
12. CUSTOMER'S BOARD MANIPULATION B-63322EN-2/01
Example
N01000P31515;
Parameter No. 1000
Parameter value 31515
Example
N02020A1P88A2P89A3P90A4P66......;
Parameter No. 2020
Parameter value First axis : 88
Second axis : 89
Third axis : 90
Fourth axis : 66
•
Example
N03001P5000.000;
Parameter No. 3001
Parameter value 5000.000
- 54 -
B-63322EN-2/01 12. CUSTOMER'S BOARD MANIPULATION
Example
N04012A1P50.000A2P60.000A3P70.000A4P0.000A
5P0.000 ........;
Parameter No. 4012
Parameter value First axis : 50.000
Second axis : 60.000
Third axis : 70.000
Fourth axis : 0.000
Fifth axis : 0.000
•
- 55 -
12. CUSTOMER'S BOARD MANIPULATION B-63322EN-2/01
• Overview
The values of the dedicated customer's board parameters can be
modified from programs.
• Command format
Format
G10L55; Selects the input mode for dedicated customer's board
parameters.
N_R_; Inputs parameters of a type other than type axis.
N_P_R_; Inputs parameters of type axis.
:
:
G11; Deselects input mode.
Descriptions of symbols
N_: Dedicated customer's board parameter number.
R_: Value to be set in a dedicated customer's board parameter.
P_: Axis number (to be specified when inputting a parameter of type
axis).
• Explanation
NOTE
1. Any NC command other than that listed above
cannot be used in the dedicated customer's board
parameter input mode.
2. In the dedicated customer's board parameter input
mode, the entry of a pocket calculator-type decimal
point is invalid for address R.
3. Specifying G11 triggers parameter transfer to the
customer's board side. The execution of the G11
block does not end until parameter transfer ends. If
a reset occurs before the end of the parameter
transfer, the execution of the G11 block is forced to
end, but the parameter transfer is continued.
- 56 -
B-63322EN-2/01 12. CUSTOMER'S BOARD MANIPULATION
• Exercises
1. Setting bit 0 of parameter No. 0000 of type bit
2. Changing the values of the Z axis (third axis) and A axis (fourth
axis) in parameter No. 4000 of type real number axis
- 57 -
12. CUSTOMER'S BOARD MANIPULATION B-63322EN-2/01
Overview
For functions other than the monitor and memory display functions,
parameter SCR (bit 1 of parameter No. 2460) can be used to specify
whether to display the related data.
- 58 -
B-63322EN-2/01 12. CUSTOMER'S BOARD MANIPULATION
• Overview
The monitor function displays the following data:
• Input/output signals (G180 to G187/F180 to F187)
• Diagnostic data
• Data transfer control flag
• DI/DO SIGNAL
These boxes display the input/output signals (G180 to G187/F180 to
F187) dedicated to the customer's board.
• DIAGNOSIS
These boxes display diagnostic data values.
TIME 1 displays the processing time for task No. 2 (in µs units).
TIME 2 displays the peak processing time for task No. 2 (in µs units).
TIME 2 can be preset by pressing soft key [COUNTER PRESET].
- 59 -
12. CUSTOMER'S BOARD MANIPULATION B-63322EN-2/01
• CONTROL FLAG
These boxes display the states of the control flags for data transfer
between the CNC and board sides.
NOTE
The displayed values reflect only the instantaneous
states of the control flags. The displayed values
may not necessarily match the current states of the
control flags.
- 60 -
B-63322EN-2/01 12. CUSTOMER'S BOARD MANIPULATION
• Overview
The memory display function displays the contents of the customer's
board side memory.
- 61 -
12. CUSTOMER'S BOARD MANIPULATION B-63322EN-2/01
• Address specification
To specify an address, input a physical address on the customer's board,
and the press the [ADDRESS SEARCH] soft key.
If the input address data is invalid, a warning is issued.
NOTE
Never specify an address that does not exist on the
customer's board. Before switching to another
display page of addresses, check that the target
addresses exist on the customer's board.
If this caution is not observed, a system alarm
condition may occur.
- 62 -
B-63322EN-2/01 12. CUSTOMER'S BOARD MANIPULATION
• Overview
The breakpoint function checks whether the processor has executed an
instruction at a specified address on the customer's board.
• BREAK POINT
This box displays the address that is currently specified for an
instruction to be checked. (The address is a physical address on the
customer's board.)
• STATUS
This box indicates whether the instruction at the specified address has
been executed.
• BREAK
This box indicates whether the check has started or ended.
- 63 -
12. CUSTOMER'S BOARD MANIPULATION B-63322EN-2/01
• Address specification
Key in a physical address that exists on the customer's board, then press
soft key [INPUT].
The specified address is displayed as a breakpoint.
If the specified address data is invalid, a warning is issued.
• Check start
After specifying an address, press soft key [START].
The BREAK box changes to "START" and, simultaneously, the
STATUS box changes to "×."
When the processor executes the instruction at the specified address,
the BREAK box changes to "END," and the STATUS box changes to
"¡."
If no address is specified normally, a warning is issued.
• Check end
Press the [END] soft key.
The BREAK box changes to "END" and, simultaneously, the STATUS
box changes to "×."
The check ends automatically also when:
<1> Another address is specified, or
<2> The processor executes the instruction at the specified address
after the check begins. (In this case, the STATUS box remains set
to "¡.")
NOTE
The specified address must be within the
application code area.
- 64 -
B-63322EN-2/01 12. CUSTOMER'S BOARD MANIPULATION
• Overview
The data output function outputs data between the specified addresses
on the customer's board to a memory card in binary form.
• START ADDRESS
This box displays the start address for data to be punched. (The address
is a physical address on the customer's board.)
• END ADDRESS
This box displays the end address of the data to be punched. (The
address is a physical address on the customer's board.)
- 65 -
12. CUSTOMER'S BOARD MANIPULATION B-63322EN-2/01
• Data output
First, select a memory card slot as an output destination unit, and then
insert a formatted memory card into the memory card slot.
NOTE
1. Specify a memory card as a data output destination
unit.
2. Each specified address must be within the data
area on the customer's board.
A buffer area for the data escape and message
functions described later can also be used with the
data output function.
3. Satisfy the condition: Start address < end address
4. If data output method 1 (with no output file name
specified) is used, the file name is fixed to
"CSTM_MEM.DAT."
- 66 -
B-63322EN-2/01 12. CUSTOMER'S BOARD MANIPULATION
• Overview
The data escape function saves the data between the specified
addresses on the customer's board to a save area at regular intervals (8
ms).
• NO. 1 to NO. 5
Up to five sets of data can be specified for saving.
The escape start/end address and enable/disable attribute can be
specified for each set.
• (0:OFF 1:ON)
These boxes indicate whether each data set is enabled for saving.
Values 0 and 1 correspond to "disabled" and "enabled," respectively.
• START ADDRESS
These boxes specify the start addresses of data to be saved. (Each
address is a physical address on the customer's board.)
- 67 -
12. CUSTOMER'S BOARD MANIPULATION B-63322EN-2/01
• END ADDRESS
These boxes specify the end addresses of the data to be saved.
(Each address is a physical address on the customer's board.)
• BUFFER AREA
These boxes display the area to which data is to be saved.
(The addresses are physical addresses on the customer's board.)
• TOP
This box displays the address to which the next data item is to be saved.
(The address is a physical address on the customer's board.)
• BOTTOM
This box displays the address where the oldest data item is held.
(The address is a physical address on the customer's board.)
• MODE
This box displays the mode in which the save area is to be used.
• STATUS
This box indicates whether data saving has started or ended.
- 68 -
B-63322EN-2/01 12. CUSTOMER'S BOARD MANIPULATION
• Saving start
After selecting data, press soft key [START].
The STATUS box changes to "START."
If no effective set has been set up, a warning is issued.
• Saving end
Press soft key [END].
The STATUS box changes to "END."
Data saving is stopped automatically when:
<1> The set, address, or mode specification is changed.
<2> In single mode, the save area is used up.
• MODE
This box is used to specify the method for using the save area.
There are two modes: Single and ring. The modes can be switched by
pressing the [BUFFER SINGLE] or [BUFFER RING] soft key.
The Mode box displays the currently selected mode.
See the following descriptions for explanations about the differences
between the single and ring modes.
• Presetting
Pressing the [POINTER PRESET] soft key sets both the top and
bottom addresses to the start address of the buffer area.
If saving is started by pressing the [START] soft key, presetting is
performed automatically before actual saving begins.
Presetting can also be performed during data saving.
- 69 -
12. CUSTOMER'S BOARD MANIPULATION B-63322EN-2/01
Save area
• Examples
Buffer use in single mode
0x02c00000 Bottom Start of buffer
area
Space used
Top
Space yet to be
used
0x02ffffff End of buffer
area
Space used
0x02ffffff End of buffer
area
- 70 -
B-63322EN-2/01 12. CUSTOMER'S BOARD MANIPULATION
Saving
Data saving is performed immediately before task No. 2 is started.
In every cycle, data between the addresses in each effective set is saved
sequentially (from set 1 to set 5).
• Examples
Effective set
Set 2 Start address 0x02400000 End address
0x02400003
Set 4 Start address 0x02400100 End address
0x0240010f
On the above assumption:
NOTE
1. Satisfy: Start address < end address
2. Data saving places a heavy burden on the system.
If the saving of a large amount of data is specified,
the burden on the system becomes very heavy,
possibly leading to a system alarm condition.
Therefore, keep the data to be saved to the
minimum required amount.
- 71 -
12. CUSTOMER'S BOARD MANIPULATION B-63322EN-2/01
• Overview
The message function displays the message data output from the
customer's board control software.
• Message display
The message display boxes display the messages output by the
customer's board control software.
Up to the latest 28 rows of message data are displayed.
• BUFFER AREA
These boxes display the area (buffer area) in which message data is to
be stored. (Each address is a physical address on the customer's board.)
• TOP
This box displays the address to which the next message data item is to
be stored. (The address is a physical address on the customer's board.)
• BOTTOM
This box displays the address where the oldest message data item is
stored. (The address is a physical address on the customer's board.)
- 72 -
B-63322EN-2/01 12. CUSTOMER'S BOARD MANIPULATION
• UPDATE
This box indicates whether message data display update has started or
ended.
• Presetting
Pressing the [POINTER PRESET] soft key sets both the top and
bottom addresses to the start address of the buffer area.
• Display updating
Pressing the [UPDATE START] soft key causes the message display to
be updated.
Pressing the [UPDATE STOP] soft key causes the message display
update to be stopped.
Buffer storing continues, however.
(Display processing is stopped, but buffer storing is not.)
Storage area
• Example
0x02b00000 Start of buffer
Space used area
Space used
0x02bfffff End of buffer
area
- 73 -
12. CUSTOMER'S BOARD MANIPULATION B-63322EN-2/01
• Overview
The debug display function displays a simple debugging screen created
using the customer's board control software.
- 74 -
B-63322EN-2/01 12. CUSTOMER'S BOARD MANIPULATION
• Overview
The "Contents of specified memory" have been added as traceable data
to the conventional waveform diagnosis function.
Refer to the "FANUC Series 15i/150i-MA Maintenance Manual
(63325EN)" for detailed descriptions about the waveform diagnosis
function.
Setting
• BOARD SELECT
This box is used to specify the board to be traced, as follows:
0: CNC MAIN board
1: Customer's board
- 75 -
12. CUSTOMER'S BOARD MANIPULATION B-63322EN-2/01
• ACCESS SIZE
This box is used to specify the amount of memory to be accessed for
tracing at any one time.
0: One-byte length (signed)
1: One-byte length (unsigned)
2: Two-byte length (signed)
3: Two-byte length (unsigned)
4: Four-byte length (signed)
• ADDRESS
This box is used to specify a memory address for tracing. The address
is represented in hexadecimal notation.
If the customer's board is selected, a physical address on the customer's
board is specified.
NOTE
1. When the customer's board is selected, the
specified address must be a physical address within
the data area on the customer's board.
2. If an invalid address or access size is specified, a
system alarm condition may occur.
3. The board selection, access size, and address can
be specified only when 11 is specified as the trace
data type.
• Input/output format
The following data types have been added.
T 9 0 B * I * R * * … * ;
Address
Access size
Board selection
- 76 -
B-63322EN-2/01 12. CUSTOMER'S BOARD MANIPULATION
NOTE
1. The traced data is clamped within the following
range:
-999999999 ≤ data ≤ 999999999
2. The following restrictions are imposed on the least
significant digit of the address according to the
access size:
One-byte length: No restriction
Two-byte length: Addresses 0, 2, 4, 6, 8, A, C, and
E
Four-byte length: Addresses 0, 2, 4, 8, and C
3. To output the traced memory contents to an
external unit, select the FS15i type. Selecting the
FS15B type will lead to a warning.
#7 #6 #5 #4 #3 #2 #1 #0
2460 SCR PWW
- 77 -
12. CUSTOMER'S BOARD MANIPULATION B-63322EN-2/01
NOTE
If the data to be output is traced memory contents,
be sure to reset this parameter to 0.
NOTE
If the specified access size is invalid, a system
alarm condition may occur.
- 78 -
B-63322EN-2/01 12. CUSTOMER'S BOARD MANIPULATION
NOTE
Always specify an existing address. If the specified
address is invalid, a system alarm condition may
occur.
NOTE
If the specified access size is invalid, a system
alarm condition may occur.
- 79 -
12. CUSTOMER'S BOARD MANIPULATION B-63322EN-2/01
NOTE
Always specify an existing address. If the specified
address is invalid, a system alarm condition may
occur.
NOTE
If the specified access size is invalid, a system
alarm condition may occur.
- 80 -
B-63322EN-2/01 12. CUSTOMER'S BOARD MANIPULATION
NOTE
Always specify an existing address. If the specified
address is invalid, a system alarm condition may
occur.
NOTE
If the specified access size is invalid, a system
alarm condition may occur.
- 81 -
12. CUSTOMER'S BOARD MANIPULATION B-63322EN-2/01
NOTE
Always specify an existing address. If the specified
address is invalid, a system alarm condition may
occur.
- 82 -
B-63322EN-2/01 12. CUSTOMER'S BOARD MANIPULATION
12.4 MISCELLANEOUS
- 83 -
B-63322EN-2/01 INDEX
INDEX
APPLICATION SOFTWARE ..................................13
A
INTERRUPT DISABLE ...............................................27
APPLICATION SOFTWARE PROCESSING.............. 11
INTERRUPT ENABLE ................................................27
ARBITRATION FOR CONTINUOUS UPDATE........... 32
L
B
LED INDICATORS......................................................44
Breakpoint Function ................................................... 63
M
C
MANIPULATION PARAMETERS ...............................77
CACHE CONTROL..................................................... 33
Memory Display Function ...........................................61
CAUTIONS FOR CODING ......................................... 41
Message Function ......................................................72
CNC/CUSTOMER'S BOARD ADDRESS MAP........... 15
MESSAGE OUTPUT (CHARACTER STRING)...........27
CNC/CUSTOMER'S BOARD WINDOW..................... 14
MESSAGE OUTPUT (INTEGER
COMMUNICATION BETWEEN THE CNC AND
DECIMAL NUMBER) .................................. 28
CUSTOMER'S BOARD .......................................... 10
HEXADECIMAL NUMBER)........................ 29
CONTROL PARAMETERS......................................... 37
MESSAGE OUTPUT (REAL NUMBER) .....................29
CUSTOMER'S BOARD MANIPULATION................... 46
MISCELLANEOUS .....................................................83
D Monitor Function .........................................................59
i-1
Revision Record
FANUC Series 15i/150i-MODEL A Customer’s Board DESCRIPTIONS (B-63322EN-2)
01 Mar., 2000
GERMANY GERMANY
GE Fanuc Automation GmbH GE Fanuc Eberle Automation GmbH
Bernhäuser Straße 22 Ernst-Weyden-Str. 7
D-73765 Neuhausen a.d.F D-51105 Köln (Cologne)
( (+49) 7158 187 400 ( (+49) 221-83904-53
2 (+49) 7158 187 455 (CNC) 2 (+49) 221-83904-55
2 (+49) 7158 187 466 (PLC)
GERMANY GERMANY
GE Fanuc Automation GmbH GE Fanuc Automation GmbH
Elberfelderstr. 45 Obere Hauptstr. 72
D-40724 Hilden D-09244 Lichtenau
( (+49) 2103 247410 (Laser/CNC) ( (+49) 37208 695 20(CNC)
2 (+49) 2103 247420 (Laser/CNC) ( (+49) 37208 695 30 (PLC)
2 (+49) 37208 695 55
GERMANY GERMANY
GE Fanuc Automation Deutschland GmbH GE Fanuc Eberle Automation GmbH
Bensheimer Str. 61 Südwestpark 48
D-65428 Rüsselsheim D-90449 Nürnberg
( (+49) 6142 357600 ( (+49) 911 9672 100 (PLC)
2 (+49) 6142 357611 2 (+49) 911 9672 200 (PLC)
GERMANY SWEDEN
GE Fanuc Eberle Automation GmbH GE Fanuc Automation Nordic AB
Reichenbergerstr. 6 Hammarbacken 4
D-33605 Bielefeld S-19149 Sollentuna
( (+49) 521 92445 0 (PLC) ( (+46) 8 444 5520
2 (+49) 521 92445 30 (PLC) 2 (+46) 8 444 5521
ITALY ITALY
GE Fanuc Automation Italia S.r.l. GE Power Controls Italia S.p.a
Piazza Tirana 24/4B Via Tortona 27
I-20147 Milano I-20144 Milano
( (+39) 02 417 176 (CNC) ( (+39) 02 4242 280 (PLC)
2 (+39) 02 419 669 (CNC) 2 (+39) 02 4242 511 (PLC)
SPAIN SPAIN
GE Fanuc Automation España S.A. GE Power Controls Ibérica S.L.
Polígono Industrial Olaso Calle Marqués de Comillas, 1
Calle Olaso, 57 - Locales 10 y 11 E-08225 Terrassa (Barcelona)
E-20870 Elgoibar ( (+34) 93 736 58 28 (PLC)
( (+34) 943 74 82 90 (CNC) 2 (+34) 93 788 24 03 (PLC)
2 (+34) 943 74 44 21 (CNC)
SWITZERLAND UNITED KINGDOM
GE Fanuc Automation GE Fanuc Automation (UK) Ltd.
Filiale Suisse/Niederlassung Schweiz Unit 1 - Mill Square
Erlenstrasse 35a Featherstone Road
CH-2555 Brügg b. Biel Wolverton Mill South
( (+41) 32 366 63 63 (CNC) Milton Keynes MK12 5BZ
( (+41) 32 366 63 33 (PLC) ( (+44) 1908 84 4000
2 (+41) 32 366 63 64 (CNC) 2 (+44) 1908 84 4001
2 (+41) 32 366 63 34 (PLC)
06/00
• No part of this manual may be reproduced in any form.
• All specifications and designs are subject to change without prior notice.
The export of this product is subject to the authorization of the government of the
country from where the product is exported.
In this manual we have tried as much as possible to describe all the various
matters.
However, we cannot describe all the matters which must not be done, or which
cannot be done, because there are so many possibilities.
Therefore, matters which are not especially described as possible in this manual
should be regarded as “impossible”.