Fanuc NCGuide PMC Simulation Function
Fanuc NCGuide PMC Simulation Function
Contents
1
INTRODUCTION 5
1.1
1.1.1 Features 5
1.1.2 Difference in operation between PMC and PMC simulation function 6
2
OPERATING ENVIRONMENT 11
BASICS 12
3.1
4.1
4.2
4.4.1 Outline 28
4.4.2 Starting PMC I/O Data Screen 28
4.4.3 Loading Divided Ladder Program 29
5
5.1
OUTLINE 30
5.2
5.3
5.4
5.5
5.6
5.6.1 Outline 45
5.6.2 Write setting file 45
5.6.3 Read setting file 47
5.7
5.7.1 Outline 49
5.7.2 Operation 50
5.7.3 I/O operation panel set automatically 53
6
6.1
OUTLINE 57
6.2
6.4
6.5
7.1
OUTLINE 64
7.2
7.3
FILE OPERATION 68
7.4
7.5
8.1
OUTLINE 73
8.2
OPERATING ENVIRONMENT 75
8.3
8.3.1 Outline 76
8.3.2 Notes from installation to starting application 84
8.3.3 Start and exit of machine signal simulator 86
8.3.4 Machine signal simulator screen 87
8.3.5 Procedure of machine simulation with machine signal simulator 89
8.3.6 PMC Alarm message list 101
8.3.7 Reference of CNC information 101
8.4
9.1
10
9.2
9.3
10.1
10.2
11.1
OUTLINE 115
11.2
11.3
11.4
11.5
1.INTRODUCTION
INTRODUCTION
This manual explains the operation of PMC simulation function that
is a function for ladder debugging included in software FANUC
NCGuide for PC.
For explanation of installation method of PMC simulation function,
and entire operation and setting of NCGuide, refer to FANUC
NCGuide OPERATOR's MANUAL in the installation CD.
See the PMC Programming Manuals about the programming and
operation of PMC.
FANUC Series 30i/31i/32i/35i-B PMC PROGRAMMING
MANUAL (B-64513)
FANUC Series 30i/31i/32i-A PMC PROGRAMMING MANUAL
(B-63983)
FANUC Series 0i-D/0i Mate-D PMC PROGRAMMING
MANUAL (B-64393)
1.1
1.1.1
Features
PMC simulation function is software that executes ladder program on
PC and enables you to debug ladder without CNC.
1.INTRODUCTION
1.1.2
1.INTRODUCTION
Function
Window functional instruction (except servo/spindle data,
tool life management data)
DISPB (message display) functional instruction and EXIN
(external data input) functional instruction
AXCTL (PMC axis control) functional instruction* and signals
related to PMC axis control function
Signals related to auxiliary function
Signals related to tool functions
Signals related to spindle function
Signals related to high-speed position switch and to position
switch
Skip function
High-speed skip function
Signals related to Reference position establishment
Available
: available : unavailable
*Available functions of AXCTL
Operation
Control
Available
Rapid traverse
Cutting feed (feed per min.)
Cutting feed (feed per revolution)
Skip (feed per min.)
Dwell
Reference pos. return
Continuous feed
1st ref. pos. return
2nd ref. pos. return
3rd ref. pos. return
4th ref. pos. return
External pulse synchronization (Position coder)
External pulse synchronization (1st manual
pulse generator)
External pulse synchronization (2nd manual
pulse generator)
External pulse synchronization (3rd manual
pulse generator)
Speed command
Torque control
Auxiliary function 1
Auxiliary function 2
00H
01H
02H
03H
04H
05H
06H
07H
08H
09H
0AH
0BH
0DH
0EH
0FH
10H
11H
12H
14H
1.INTRODUCTION
Auxiliary function 3
Machine coordinate system selection
Cutting feedrate (sec/block)
Simultaneous start mode off
Simultaneous start mode on
15H
20H
21H
40H
41H
: unavailable
: available
CNC
information
Description
Reading CNC system information
Reading a tool offset
Write a tool offset
Reading a workpiece origin offset value
Writing a workpiece origin offset value
Reading a parameter
Writing a parameter
Reading a real type parameter
Writing a real type parameter
Reading setting data
Writing setting data
Reading a custom macro variable
Writing a custom macro variable
Reading a custom macro variable (variable number extension)
Writing a custom macro variable (variable number extension)
Reading the CNC alarm status
Reading the current program number
Reading the current sequence number
Reading modal data
Reading diagnosis data
Reading the P-code macro variable
Writing the P-code macro variable
Reading CNC status information
Reading the current program number (8-digit program numbers)
Entering data on the program check screen
Reading clock data (date and time)
Reading detailed information of CNC alarm
Function
code
0
13
14
15
16
17,154
18
321
323
19,155
20
21
22
437
438
23
24
25
32
33
59
60
76
90
150
151
433
1.INTRODUCTION
Table1.1.2 (c) Supported window function list(2)
Group
Axis
information
Tool
management
functions
Description
Reading the actual velocity of controlled axes
Reading the absolute position (absolute coordinates) of controlled
axes
Reading the machine position (machine coordinates) of controlled
axes
Reading a skip position (stop coordinates of skip operation (G31)) of
controlled axes
Reading the relative position on a controlled axis
Reading the remaining travel
Reading the actual velocity of each controlled axes
Presetting the relative coordinate
Reading the actual machine position of controlled axes
Moving (exchanging) tool management data numbers in a cartridge
management table
Searching for a free pot
Registering new tool management data
Writing tool management data
Deleting tool management data
Reading tool management data
Writing a specified type of tool management data
Searching for tool management data
Shifting tool management data
Searching for a free pot (oversize tools supported)
Reading the total tool life data
Writing tool management data by specified data
Deleting tool management data by specified data
Reading tool management data by specified data
Writing each tool management data by specified data
Searching for a free pot by specified data
Reading a tool geometry data
Writing a tool geometry data
Moving tool management data numbers in a magazine management
table
Function
code
26
27
28
29
74
75
91
249
428
329
330
331
332
333
334
335
366
367
397
409
419
420
421
422
427
429
430
432
Note
These window functions in the above table 1.1.2
(d) are not available for FS 0i-D /0i Mate-D.
The PMC simulation function might not support the functions
added or changed in the recent version of CNC and PMC because
the timing to release is different between actual CNC and PMC
software and NCGuide.
1.INTRODUCTION
Mode
Function
Ladder execution
Cooperating with
FANUC
LADDER-III
Display of CNC
screens
Execution
of
functional
instruction related
to CNC
Debugging
of
Signals related to
CNC
Execution of step
sequence
Option parameter
setting
CNC/PMC
simulation
function
: available
10
PMC simulation
function
: unavailable
2.OPERATING ENVIRONMENT
OPERATING ENVIRONMENT
PMC simulation function requires the same environment as NCGuide
does.
To use FANUC LADDER-III or Machine Signal API function for
PMC simulation function, an effective network connection or
installing Loopback Adapter is necessary.
Note
1 The privilege of Power Users or higher is required
to use the PMC simulation function.
2 For PMC simulation function, multi-core or
Hyper-Threading CPU feature is recommended.
And in the following cases, multi-core or
Hyper-Threading might be necessary for enough
performance.
To communicate with FANUC LADDER-III on
the same PC.
To use the machine signal simulator.
To run ladder of large step number.
11
3.BASICS
BASICS
This chapter describes the basic items which the user should
understand before using PMC simulation function.
3.1
3.1.1
3.1.2
3.BASICS
Popup menu
Note
Refer to 4.2.1 Display mode about the display
mode in CNC/PMC simulation function mode.
13
3.BASICS
3.2
14
4.1
15
The mode (2.) is available to start from the start menu if it has been
chosen at installation.
Operation CNC/PMC
mode
simulation function
Function
I/O such as ladder
PMC
function
simulation
Import/export screen
Backup screen
Option
parameter
setting screen
Operation
mode
Function
CNC screen
Option setting
16
CNC/PMC
simulation function
PMC
function
simulation
X
Option parameter of Option parameter of
PMC and CNC
PMC only
4.2
4.2.1
Display mode
You can choose display mode in the CNC/PMC simulation function
mode, from Picture mode and Window mode. Picture mode is
selected just after the installation.
17
Display Mode
Picture mode
Change
size
and
Not available
position of windows
MDI key
Always displayed
CNC Operation panel
Always displayed
4.2.2
Window mode
Available
Available
Available
Picture mode
This section describes the menu and the operation in picture mode.
Main menu
The composition of menu in picture mode is as follows.
Table4.2.2 (a) Menu list
Main menu
Submenu
Display Mode
CNC Display Size
MDI Key
Window Size
PMC (Note)
I/O Operation Panel
PMC Title Data
Ladder Execution Status
Signal Operation Replay Function
Option
Help
Exit
About
Reference
4.2.4 Method of switching display mode
NOTE
This item can be hidden by checking the Hide
[PMC] menu on the Machine composition setting.
18
Note
Refer to FANUC NCGuide CNC Simulation
Function OPERATOR's MANUAL in the installation
CD for basic operation in the picture mode, such as
the operations of CNC screen and MDI key.
19
4.2.3
Window mode
This section describes the names and functions of each window, the
menu, and the operation in the window mode.
Main menu
Child window
Child window
Child window
Parent window
The main window of this software.
Multiple child windows can be displayed within the parent
window.
20
Child window
Child windows are displayed within the parent window.
Child windows are used for displaying CNC screen and
displaying and editing I/O operation panel, etc.
Main menu
The composition of menu in the window mode is as follows.
Fig.4.2.3 (a) Menu list
Main menu
File
View
PMC (NOTE)
Window
Help
Submenu
Reference
Exit
Display Mode
CNC Display Size
MDI Key
I/O Operation Panel
PMC Title Data
Ladder Execution Status
Signal Operation Replay Function
I/O Operation Panel Setting
Option
Cascade
Tile Horizontally
Tile Vertically
Arrange Icons
About
NOTE
This item can be hidden by checking the Hide
[PMC] menu on the Machine composition setting.
Operation in Window mode
Select an item you want from the [PMC] menu of the main menu.
4.2.4
21
It will be
Note
After the above-mentioned operation, it is necessary
to restart the NCGuide to reflect the new setting.
22
It will be
Note
After the above-mentioned operation, it is necessary
to restart the NCGuide to reflect the new setting.
23
4.2.5
Title window
The content of PMC title data of the ladder under the simulation is
displayed.
In multi-path PMC, title window for each path is displayed
individually.
NOTE
This item is not displayed when checking the Hide
[PMC] menu on the Machine composition setting.
24
4.2.6
Title information
Alarm
Communication status
with FANUC LADDER-III
Ladder run/stop
Title information
Displays the information of the title data in each path of
multi-path PMC.
Ladder execution status
Displays run/stop status of ladder.
: Ladder is running.
: Ladder is stopping.
Alarm
Displays alarm status.
: Alarm occurs
: No alarm
25
Run/stop ladder
Button to run/stop ladder.
: Run ladder
: Stop ladder
Communication with FANUC LADDER-III
Displays the communication with FANUC LADDER-III.
: Connecting
: Disconnecting
NOTE
This item is not displayed when checking the Hide
[PMC] menu on the Machine composition setting.
26
4.3
4.3.1
Main menu
The composition of menu is as follows.
Table4.3.1 (a) Menu list
Main menu
File
View
Tool
Window
Help
Submenu
Import
Export
Backup
Exit
I/O Operation Panel
PMC Title
Ladder Execution Status
Signal Operation Replay Function
I/O Operation Panel Setting
Option
Cascade
Tile Horizontally
Tile Vertically
Arrange Icons
About
Reference
10.2.1 Import procedure
10.2.2 Export procedure
10.2.3 Backup procedure
3.1.2 Exiting PMC simulation function
5 I/O OPERATION PANEL
4.2.5 Title window
0 Ladder execution status window
6 SIGNAL OPERATION REPLAY FUNCTION
5 I/O OPERATION PANEL
9 VARIOUS SETTINGS
11.3 PMC SIMULATION FUNCTION SETTING
27
4.4
4.4.1
Outline
When you use the Ladder Dividing Management Function, divided
ladder programs can be newly registered on the BOOT screen or the
IPL screen in actual CNC.
In NCGuide, divided ladder programs can be registered at the PMC
I/O data screen.
4.4.2
28
4.4.3
NOTE
Refer to the subsection "10.2.9" of NCGuide CNC
Simulation Function OPERATOR'S MANUAL about
the operation of PMC I/O data screen.
29
5
5.1
NOTE
The I/O operation panel is unavailable when
checking the Hide [PMC] menu on the Machine
composition setting.
30
5.2
Fig.5.2 (a) I/O operation panel window of PMC simulation function start
31
4. Set the properties of the new page at the page node. (Page2 here)
32
33
5.3
You can perform the following operation from the pop-up menu
of the I/O operation panel setting node.
Addition of page node
Pasting page node
34
Page node
35
The address data node shows the composition of the address data
in the page. The addresses on the I/O operation panel are
displayed in order of the displayed address data.
You can perform the following operations from the pop-up menu
of the address data node.
36
5.4
Address notation
Specify whether addresses are displayed by the symbol or the
address in the I/O operation panel.
Page node
Title
The page node is shown with the title of the page. Title cannot
be omitted. Note that the character '\' cannot be included in the
title.
Show this page
Select whether to show this page in the I/O operation panel.
37
Title
The address data node is shown with the title of the address data
if it has. The address is displayed if the title is blank.
PMC address
Specify the first PMC signal to display by its address or symbol.
In the multi-path PMC system, an address may follow its PMC
number. You can enter PMC number + : + address to
enter an address as indicated above. When no PMC number is
specified, the address is assumed to belong to the first PMC
path. In this case, PMC number + : is automatically
prefixed to the specified address. When the PMC is the
standard model that has only one PMC path, no PMC number
needs to be specified.
Data Count
Set the number of data of PMC addresses to display.
Data length
Select byte, word, dword, and bit.
Data type
Select among signed, unsigned, and hexadecimal.
Switch type
Select switch type of the input signals.
38
Alternate
Momentary
39
5.5
Forcing
When the forcing of I/O is effective, you can change the value of
any PMC address on the I/O operation panel. Forcing I/O is
enabled by checking Forcing on the I/O operation panel.
Symbol display
Switch the notation of the address on the I/O operation panel
between address and symbol. The notation of the address on
the I/O operation panel will be symbols at checking Disp
symbol on the I/O operation panel.
40
Picture mode
To display the I/O operation panel screen, select the [PMC] - [I/O
Operation Panel] by the pop-up menu.
41
Page name
Displays the title of the page.
Forcing
When the forcing of I/O is effective, you can change the value of
any PMC address on the I/O operation panel. Forcing I/O is
enabled by checking Forcing on the I/O operation panel.
Symbol display
Switch the notation of the address on the I/O operation panel
between address and symbol. The notation of the address on
the I/O operation panel will be symbols at checking Disp
symbol on the I/O operation panel.
Setting button
Display the I/O operation panel setting dialog.
Page No.
To change the display page, enter the page number directly or
operate the upper and lower arrow.
42
Input ON
Input OFF
Output ON
Output OFF
Output lamp
Operation CNC/PMC
mode
simulation function
Button
Input button
Output button
X
A,C,D,E,F,G,K,M,N,
R,S,T,U,V,W,Y
PMC
function
simulation
F,X
A,C,D,E,G,K,M,N,R,
S,T,U,V,W,Y
Note
To change the state of a signal of output lamp,
enable the forcing mode of the I/O operation panel.
43
44
5.6
5.6.1
Outline
Using this function, the I/O operation panel setting information can be
written to a file and can be restored by reading the file. By this
function, you can create the I/O operation panel setting based on the
setting of other machine configuration, or you can reuse your I/O
operation panel setting between different PCs.
Note
Do not change the contents of the file created to
save the setting information of the I/O operation
panel. It may cause failure at reading the file.
5.6.2
2. Enter the file name to save and click the < Save > button.
45
46
5.6.3
3. Enter the file name to save and click the < Open > button.
47
48
5.7
5.7.1
Outline
The auto-setting function of the I/O operation panel is a function to set
the I/O operation panel automatically referring to the setting of the I/O
Link assignment data defined in the ladder program. For each area
of the machine I/O signals (X/Y address), this function extracts the
address of I/O signals of assigned I/O devices, then assembles them to
make pages of the I/O operation panel and adds them.
X020 0. 0. 1 IO24I
Y020 0. 0. 1 IO16O
X040 0. 0. 3 ID08F
Y030 0. 0. 2 OD16D
49
5.7.2
Operation
51
Error messages
When an error occurs in Page Auto-Setting of I/O operation panel, a
message is displayed like following dialog. When the <OK> button
is pushed, the dialog is closed and it returns to the Page Auto-Setting
(I/O Link Assignment) dialog.
Description
Measure
No PMC path is
selected.
There is a problem in
the ladder program, and
the I/O Link assignment
data cannot be used.
52
5.7.3
Note
1 The page for the area, which does not contain any
I/O Link assignment data at all, will not be added.
2 When more than one page are added, they are
arranged in the order of above X/Y address area in
each PMC path.
53
Properties
Properties of the page node which is set automatically are set as
follows.
Title
Title is set in the following format
<PMC path>-<X/Y address area>
Ex) PMC1-X/Y0
FS 0i-D/0i Mate-D
<X/Y address area>
Ex) X/Y200
54
55
Properties
Properties of each address node are set as follows according to the
based I/O assignment data corresponding to an I/O device.
Title
The title is set from the connected location and the module name
of the I/O Link assignment data in the following form.
<Group><Base><Slot><Module name>
Ex)
0.0.1.ID32A (Group =0, Base=0, Slot=1, Module ID32A)
15.0.1.OD32A (Group =15, Base=0, Slot=1, Module OD32A)
Data Count
The number of occupied bytes by the I/O module.
Data Length
BIT type with switch type Alternate.
Show this Address
Checked and the address is displayed.
56
6
6.1
Sub panel
Main panel
57
6.2
6.2.1
In Picture mode
Open context menu and choose [Machine Operators Panel], and
[Main Panel + Sub Panel A] or [Main Panel + Sub Panel D], then
the panels open. Initially, [No Disp] is selected.
6.2.2
In Window mode
Choose the menu [View], [Machine Operators Panel], and [Main
Panel + Sub Panel A] or [Main Panel + Sub Panel D], then the
panels open. Initially, [No Disp] is selected.
58
6.3
Note
1 To assign the Emergency stop switch to *ESP
(X8.4), set the DI Address as X6.
2 For details of the signals, please refer to the
following manuals:
FS30i-B CONNECTION MANUAL (HARDWARE) (B64483EN/01)
8.8 CONNECTION TO STANDARD MACHINE OPERATOR'S PANEL
59
6.4
60
6.5
Note
For details of the switches and the signals, please
refer to the following manuals:
FS30i-B CONNECTION MANUAL (HARDWARE) (B64483EN/01)
8.8 CONNECTION TO STANDARD MACHINE OPERATOR'S PANEL
6.5.1
Key switch
Function
Change NC mode to
MEM
Meaning of LED
MEM mode
Change NC mode to
EDIT
Key switch
Function
Not used
(Xm+6.7)
Meaning of LED
(Yn+2.7)
EDIT mode
Single block
operation mode
Change NC mode to
MDI
MDI mode
Change NC mode
to RMT
RMT mode
Change NC mode
to REF
REF mode
Change to TEACH
IN mode
TEACH IN mode
Change NC mode
to JOG
Restart program
Selecting program
restart
Change NC mode
to INC
INC mode
Machine is locked
61
Key switch
Function
Select rapid traverse
Meaning of LED
Rapid traverse
mode
Halts automatic
operation.
Automatic
operation is
suspended
Feeding axis in
negative direction
Cycle start
Automatic
operation
Not used
(Xm+11.0)
(Yn+7.0)
Not used
(Xm+11.2)
Automatic
operation is
stopped
Not used
(Xm+11.1)
(Yn+7.1)
Change feedrate
Jog feedrate is x1
Not used
(Xm+11.2)
(Yn+7.2)
Change feedrate
Change feedrate
Jog feedrate is
x100
Change feedrate
Jog feedrate is
x1000
X-axis is selected
for jog feed
Y-axis is selected
for jog feed
Z-axis is selected
for jog feed
4th-axis is selected
for jog feed
5th-axis is selected
for jog feed
6th-axis is selected
for jog feed
Feeding axis in
positive direction
62
6.5.2
Image
Signal
Function
Xm+2.4
Xm+1.4
Xm+0.0
|
Xm+0.5
Emergency
stop switch
Program
protect key
Feedrate
override rotary
switch
Spindle speed
override rotary
switch
Power off
swtich
Power on
switch
Xm+0.6
|
Xm+1.3
N/A
Terminate NCGuide.
N/A
Not used.
63
function.
7
7.1
Read
Save
Read
Edit
Spreadsheet etc.
64
7.2
State
Display the state of a current operation.
Replaying.
Recording.
65
Stopping.
Note
The time recorded in the signal operation replay
function does not mean the actual time.
Execution status
Next step: The signal transition to be replayed in the next step
is shown. It is shown in the form of
PMC system: address = value.
The current step number and the total steps are shown.
no limitation in the total step number.
There is
(Play button)
Starts replaying of signal transitions according to the data
recorded in the memory.
(Pause button)
Temporarily stops replaying of the signal transitions.
(Stop button)
Stops replaying or recording the signal transitions.
(Record button)
Starts recording of the signal transitions. After the record button
is pushed, the input signals operated on the I/O operation panel
are recorded in the memory. When the history of the recorded
signal already exists in the memory, new operation will be
recorded in the tail additionally. You cannot start recording
when the history data that contains CHAIN command is in the
memory.
(Step button)
Replays the signal transitions by single step execution.
(Clear button)
Clears the data in the memory.
67
7.3
FILE OPERATION
This section describes about the operation of the signal operation file.
You can use toolbar to make the file operations.
(New)
Newly records the signal operation. The recorded operation in
the memory is cleared. When some recorded operation data is
in the memory, the following message is displayed.
(Open)
Open the saved signal operation file. The data in the memory
is cleared, and then the data in the file is read into the memory.
The confirmation message is displayed when some recorded
operation data is in the memory.
(Save)
Save the recorded signal operation data into the file.
(Save as)
Save the record of signal operation data into another file.
(Close)
Exit the signal operation replay function, and close the window.
When the operation record is in the memory, the confirmation
message is displayed.
Even if this window is closed, the contents of the memory remain.
Select New from the toolbar or push Clear button to clear the
content of the memory.
68
7.4
Data type
Abbreviation
Bit
Bi
Byte
B
Word
W
Dword
D
ABC
0
100
200
C:\filename.csv
X0.0
X0.0
X0.0
1
0
1
Bi
Bi
Bi
X0.1
X0.1
X0.1
70
0 Bi
1 Bi
0 Bi
X20
X20
X20
16#3 B
16#2 B
16#1 B
71
7.5
7.5.1
Procedure to convert
1. Select Open from the toolbar.
2. Specify the file name and select <Open >.
72
8
8.1
Machine
Input
Output
and
73
I/O area
Communication
interface
FOCAS2/
Application
Ethernet
NOTE
The Machine signal simulation function works
without displaying window when checking the Hide
[PMC] menu on the Machine composition setting.
8.2
OPERATING ENVIRONMENT
PMC Simulation function is necessary so that the Machine Signal
Simulator and the Machine Signal API function work.
Using Machine Signal Simulator or Machine Signal API function
requires the environment described below.
OS: following any OS
Windows Vista Business (SP2) (32-bit)
Windows 7 Professional (32 or 64-bit)
Windows 8/8.1 Pro (32 or 64-bit)
And the following package
+.NET Framework 1.1 SP1
CPU: Hyper-Threading correspondent Pentium4 2.8GHz or
higher or Intel Core Duo 1.83GHz or higher
Memory: 512MB or more
Free hard disk space: 150MB or more
Display resolution: 1280 x 1024(SXGA) or higher
DVD drive
USB port
When connecting FANUC LADDER-III to Machine Signal Simulator,
or when using Machine Signal API function, connecting to effective
network or using a Loopback Adapter is necessary.
Moreover, enabling the Hyper-Threading is recommended when using
the FANUC LADDER-III or the Machine Signal API function on the
same PC that is using the PMC simulation function.
75
8.3
8.3.1
Outline
The machine signal simulator is used to make response to the signals
from PMC simulation function using ladder. This function is
embedded in the PMC simulation function. The machine signal
simulator shares the signal area with the PMC simulation function.
Therefore, the machine signal simulator can refer the signals of Y
address etc. of the PMC simulation function, and write the result of
calculation by ladder into X address etc. of the PMC simulation
function, to realize the simulation of the signals from machine.
I/O area
2nd PMC
2nd ladder
I/O area
3rd PMC
3rd ladder
I/O area
76
Basic specification
Table8.3.1 (a) Basic specification of machine signal simulator (1)
Machine signal simulator for NCGuide
of FS31i-A, FS0-iD
1st ladder
2nd ladder
3rd ladder
31i -A PMC (PMC
31i -A PMC (PMC
31i -A PMC (PMC
Model
Memory-C)
Memory-C)
Memory-C)
Program capacity
Up to about
Up to about 32,000 steps Up to about 32,000 steps
32,000 steps
Function
Function
Model
Program
capacity
Note
1 Processing may take time according to operating
environment when step number is large. It is
recommended to make the sum of ladder steps
about 5000 steps.
2 The model of ladder program used for Machine
signal simulator will be 31i-A PMC, even in the
case of NCGuide of FS 0i-D/0i Mate-D.
3 The model of ladder program used for Machine
signal simulator will be 31i-B PMC, even in the
case of NCGuide of FS35i-B.
Functional Instructions
Following table shows functional instruction list for the machine
signal simulator.
Table8.3.1 (c) Functional instructions for machine signal simulator
(: Available.
available.)
Instruction
group
Timer
Counter
Instruction SUB
1
2
3
4
1
2
name
No.
TMR
TMRB
TMRC
TMRBF
CTR
CTRB
3
24
54
77
5
56
Processing
Timer processing
Fixed-timer processing
Timer processing
Fixed off-delay timer processing
Counter processing
Counter processing
77
Not
(Note 1)
(Note 1)
Instruction SUB
name
No.
CTRC
MOVB
MOVW
MOVD
MOVN
MOVE
MOVOR
XMOVB
XMOV
EQB
EQW
EQD
NEB
NEW
NED
GTB
GTW
GTD
LTB
LTW
LTD
GEB
GEW
GED
LEB
LEW
LED
RNGB
RNGW
RNGD
COMPB
COMP
COIN
DSCHB
DSCH
DIFU
DIFD
EOR
AND
OR
NOT
PARI
SFT
COD
CODB
DCNV
DCNVB
DEC
DECB
55
43
44
47
45
8
28
35
18
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
32
15
16
34
17
57
58
59
60
61
62
11
33
7
27
14
31
4
25
Processing
Counter processing
1-byte transfer
2-byte transfer
4-byte transfer
Transfer of arbitrary number of bytes
Data transfer after logical product
Data transfer after logical sum
Index modification binary data transfer
Index modification data transfer
1-byte comparison (equal)
2-byte comparison (equal)
4-byte comparison (equal)
1-byte comparison (not equal)
2-byte comparison (not equal)
4-byte comparison (not equal)
1-byte comparison (greater than)
2-byte comparison (greater than)
4-byte comparison (greater than)
1-byte comparison (less than)
2-byte comparison (less than)
4-byte comparison (less than)
1-byte comparison (greater or equal)
2-byte comparison (greater or equal)
4-byte comparison (greater or equal)
1-byte comparison (less or equal)
2-byte comparison (less or equal)
4-byte comparison (less or equal)
1-byte comparison (range)
2-byte comparison (range)
4-byte comparison (range)
Binary comparison
Comparison
Coincidence check
Binary data search
Data search
Rising-edge detection
Falling-edge detection
Exclusive OR
Logical AND
Logical OR
Logical NOT
Parity check
Shift register
Code conversion
Binary code conversion
Data conversion
Extended data conversion
Decoding
Binary decoding
78
1
2
3
4
5
6
7
8
9
10
CNC function 1
2
3
4
5
6
7
Program
1
control
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Rotation
1
control
2
Invalid
1
instruction
2
3
4
5
6
7
8
9
10
11
Instruction SUB
name
No.
ADDB
SUBB
MULB
DIVB
ADD
SUB
MUL
DIV
NUMEB
NUME
DISPB
EXIN
WINDR
WINDW
AXCTL
PSGN2
PSGNL
COM
COME
JMP
JMPE
JMPB
JMPC
LBL
CALL
CALLU
SP
SPE
END1
END2
END3
END
NOP
CS
CM
CE
ROT
ROTB
SPCNT
DISP
MMCWR
MMCWW
FNC90
FNC91
FNC92
FNC93
FNC94
FNC95
FNC96
36
37
38
39
19
20
21
22
40
23
41
42
51
52
53
63
50
9
29
10
30
68
73
69
65
66
71
72
1
2
48
64
70
74
75
76
6
26
46
49
98
99
90
91
92
93
94
95
96
Processing
Binary addition
Binary subtraction
Binary multiplication
Binary division
BCD addition
BCD subtraction
BCD multiplication
BCD division
Binary constant definition
BCD-constant definition
Message display
External data input
CNC window data read
CNC window data write
PMC axis control
Position signal
Position signal
Common line control
End of common line control
Jump
End of jump
Label jump 1
Label jump 2
Label
Conditional subprogram call
Unconditional subprogram call
Subprogram
End of subprogram
End of first-level program
End of second-level program
End of third-level program
End of ladder program
No operation
Case call
Sub program call in case call
End of case call
Rotation control
Binary rotation control
Spindle control
Message display
MMC window data read
MMC window data write
Arbitrary-function instruction 1
Arbitrary-function instruction 2
Arbitrary-function instruction 3
Arbitrary-function instruction 4
Arbitrary-function instruction 5
Arbitrary-function instruction 6
Arbitrary-function instruction 7
79
(Note 2)
Instruction SUB
name
12
FNC97
No.
Processing
97 Arbitrary-function instruction 8
NOTE
1 Memory of PMC parameter is common between
PMC simulation function and machine signal
simulator. So, set unique number not to conflict
the number parameter of the functional instructions
in two ladder programs which shares the memory.
2 Only the function Reading the machine position
(machine coordinates) of controlled axes is
available. Other function codes do not work.
3 The Machine signal simulator does not support
either of Extended PMC Ladder Instruction
Function and Function Block Function options.
80
X0 to X127
Y0 to Y127
X200 to X327
Y200 to Y327
(Note 1)
X400 to X527
Y400 to Y527
Y600 to Y727
X1000 to X1127
Y1000 to Y1127
Y0 to Y127
X0 to X127
Y200 to Y327
X200 to X327
(Note 1)
Y400 to Y527
X400 to X527
81
X600 to X727
Y600 to Y727
X600 to X727
Y1000 to Y1127
X1000 to X1127
F0 to F767
G0 to G767
F1000 to F1767
G1000 to 1767
F2000 to F2767
G2000 to 2767
F3000 to F3767
G3000 to 3767
F4000 to F4767
G4000 to 4767
F5000 to F5767
G5000 to 5767
F6000 to F6767
G6000 to 6767
F7000 to F7767
G7000 to 7767
F8000 to F8767
G8000 to 8767
F9000 to F9767
G9000 to G9767
Signal kind
Signal output from the
Symbol
G
Corresponding
Machine signal
address of PMC
simulator for
simulation function
NCGuide
G0 to G767
F0 to F767
G1000 to 1767
F1000 to F1767
(Note 2)
G2000 to 2767
F2000 to F2767
G3000 to 3767
F3000 to F3767
G4000 to 4767
F4000 to F4767
G5000 to 5767
F5000 to F5767
G6000 to 6767
F6000 to F6767
G7000 to 7767
F7000 to F7767
G8000 to 8767
F8000 to F8767
G9000 to G9767
F9000 to F9767
M0 to M767
M0 to M767
N0 to N767
N0 to N767
R*
R0 to R15999
R0 to R15999
Z0 to Z499
(None)
Extra relay
E0 to E9999
E0 to E9999
Message display
A*
(Note 3)
Display request
A0 to A499
A0 to A499
Status display
A9000 to A9499
A9000 to A9499
Timer (Note 3)
T*
Variable timer
T0 to T999
T0 to T999
Variable-timer
T9000 to T9999
T9000 to T9999
precision
Counter (Note 3)
C*
Variable counter
C0 to C799
C0 to C799
Fixed counter
C5000 to C5399
C5000 to C5399
K*
User area
K0 to K199
K0 to K199
System area
K900 to K999
(None)
(Note 4)
Data table (Note 3)
D*
D0 to D19999
D0 to D19999
Label (Note 5)
L1 to L9999
(None)
Subprogram (Note 5)
P1 to P5000
(None)
Note
1 When you use M-NET converter in the Function for
transfer line, X address and Y address of Ladder2
are not available.
2 G address of NCGuide can be referred from
Machine signal simulator when using CNC/PMC
simulation function. But, do not write F address
because it is also written by CNC simulation function
and it will be duplicate writing.
3 Address range of the machine signal simulator in
NCGuide corresponds to PMC memory C. When
PMC simulation function is configured as PMC
memory A or B, the common part of the addresses
82
PMC Memory-C
PMC Memory-B
D0
Shared
Shared
D9999
D10000
Not shared
D19999
83
8.3.2
84
NOTE
It is necessary to restart the PMC simulation
function to reflect the setting.
85
8.3.3
Fig.8.3.3 (b) Start of PMC simulation function and machine signal simulator
86
8.3.4
Title information
Communication status
with FANUC LADDER-III
Alarm
Ladder run/stop
Title information
Displays the information of the title data in each path of
multi-path PMC.
Ladder execution status
Displays run/stop status of the ladder.
: Ladder is running.
: Ladder is stopping.
Alarm
Displays alarm status. The content of the PMC alarm can be
confirmed with FANUC LADDER-III. Refer to 8.3.6 PMC
alarm message list for details.
: Alarm occurs
: No alarm
Run/stop Ladder
Button to run or stop ladder.
: Run ladder
87
88
8.3.5
Start
simulation.
End
Fig.8.3.5 (a) Flow of procedure
FANUC LADDER-III
Ladder data
Y0.0
3 Storing
2 Start simulation
Fig.8.3.5 (b) Outline of machine signal simulation procedure
89
Refer
Modify
90
3-1-2
Note
The port number of machine signal simulator is
8191 in initial setting. When this port number is
not available in your environment, set a different
port number both in machine signal simulator
screen and in the setting of FANUC LADDER-III.
When you change the port number, you need to
restart the PMC simulation function.
91
Starting debug.
4-1 Start the debug by running the ladder of PMC simulation
function and machine signal simulator. Using the online
monitor and online editing in the connected FANUC
LADDER-III, you can confirm the behavior of your ladder.
92
Note
Signal areas of system internal relay R9000 to
R9499 or Z0 to Z499 and system keep relay K900 to
K999 are not shared.
If the program which writes the same PMC memory area in
PMC simulation function and machine signal simulator is
made, the behavior may not be stable and simulation may not
work as expected. So, the range of PMC memory used by
machine simulator should not overlap with the range used by
PMC simulation function, and avoid writing the same PMC
memory from both of them.
93
94
Refer
Modify
95
2. Open the symbol comment editing screen and export the symbols
in the PMC simulation function.
96
4. Open the symbol comment editing screen and import the symbol
data exported in 2..
97
Replace
Fig.8.3.5 (l) Setting of the symbol after executing multi address replace
98
2. Open the symbol comment editing screen and export the symbols
in the PMC simulation function.
3. Open the LAD file of the ladder of machine signal simulator by
FANUC LADDER-III.
4. Open the symbol comment editing screen and import the symbol
data exported in 2..
Note
In case of ladder without the extended symbol
feature, even if you program the logic using
symbols, you cannot modify the address in the way
99
100
8.3.6
Message
ER22 NO PROGRAM
8.3.7
Measure
Note
1 Use the address which is not used in the PMC
simulation function as the control data address of
the window instruction.
2 Window instruction other than function code 28 does
not work.
Moreover, position signal function can check whether the current
machine position of CNC simulation function is in some area or
not. Use PSGN2 (SUB63) or PSGNL (SUB50).
101
8.4
8.4.1
Outline
The interface is provided to operate the signals by the machine signal
API function. By programming and executing an application which
controls the signals, the response to PMC simulation function can be
provided.
Realized by FOCAS2
compatible function
PMC simulation function
I/O area
Commu-
FOCAS2/
Application
Ethernet
nication
interface
pmc_wrpmcrng()
Note
To use the machine signal API function, the
following versions of FOCAS1/2 Library disk
(A02B-0207-K737) are required:
FS31i-A
2.0 or later
FS0i-D
3.3 or later
102
8.4.2
Note
1 The value is read in the unit system according to
parameter 3104#0 in the cnc_machine() function.
An error (EW_FUNC) is returned in the PMC
simulation function mode.
2 You can write to X and F addresses by the
pmc_wrpmcrng() function when you connect to the
PMC simulation function.
103
8.4.3
Library handle
To use the CNC/PMC window function, it is necessary to get the
library handle in advance. You can obtain a library handle by
cnc_allclibhndl3() function and released by cnc_freelibhndl() function.
The character string of the IP address of the PC on which the PMC
simulation function is working should be specified in the argument of
cnc_allclibhndl3() function. (example 192.168.0.1)
Once a library handle is obtained, it should be held while a function
call is made in the application, because it is necessary to pass the
handle number as an argument to every CNC/PMC window function.
A library handle is owned by the task that obtained it. Even if the
task-A which has already obtained a library handle notifies its library
handle to another task-B, the task-B cannot use the library handle.
One task can obtain multiple library handles by calling the function to
get a library handle repeatedly. For example, on the 2-path control
system, a task may obtain two library handles and use them for each
path individually.
When a task terminates, the library handles that belong to the task
must be released by cnc_freelibhndl() function.
Warning
If a task terminates without releasing its library
handles, the memory area assigned for the
management of the handle remains allocated and
may be accumulated as unusable memory. If it
happens repeatedly, a large amount of memory may
be consumed and may cause shortage of memory
or failure to obtain a new library handle.
104
8.4.4
Sample application
The sample of using machine signal API function is provided. It is
stored in the following folder.
(CD-ROM drive name):\Samples\Machine Signal API
NOTE
You must do build once before modifying it when
changing the sample application.
105
9.VARIOUS SETTINGS
VARIOUS SETTINGS
This section describes various setting to make the NCGuide suit for
customer's environment of CNC/PMC.
9.1
9.1.1
106
9.VARIOUS SETTINGS
The following screen is displayed.
Click <Cancel> button to exit.
NOTE
Option setting is available only when the NCGuide
is active; the NCGuide must be started in advance.
107
9.VARIOUS SETTINGS
9.1.2
Operation
Set the options following procedure below.
1. Select an option to use and put a check mark on it.
Click the check box located to the left of an option name or
double-click the option name, and the check box is checked.
2. Click the <OK> button and the setting is reflected to the
NCGuide.
3. To cancel all changes, click the <Cancel> button, then the option
setting tool exits.
Click
Double-click
Check mark
Note
It is necessary to restart the NCGuide to reflect the
new option setting.
108
9.VARIOUS SETTINGS
9.2
Ladder
Option parameters
Nonvolatile PMC address
Setting of I/O operation panel and other option (Ethernet port
number)
Displayed screens and the position of the screens
Note
Refer to FANUC NCGuide CNC Simulation
Function OPERATOR's MANUAL in the installation
CD for a detail about machine composition settings.
109
9.VARIOUS SETTINGS
9.3
PMC Memory
Type setting *2
PMC Memory
Type setting *2
Machine Signal
Simulation
NOTE
1 The PMC option setting is unavailable when
checking the Hide [PMC] menu on the Machine
composition setting.
2 PMC Memory Type setting is available for
FS31i-A or FS30i-B series.
110
10
10.1
111
10.2
NOTE
In this mode, input, output and backup of a divided
ladder program cannot be performed.
10.2.1
Import procedure
1. Select [File] [Import] to open file to import.
10.2.2
4. After importing, use backup menu to store the ladder and PMC
multi-language message data to the current machine composition.
Export procedure
112
For
10.2.3
Backup procedure
This operation is to save the ladder program edited on the PMC
simulation function. It corresponds to the backup operation to
FROM on the actual PMC I/O screen. The ladder and PMC
multi-language message data can be stored to the current machine
composition by the operation of this backup menu.
1. Select [File] [Backup], and select the data to backup, and select
the PMC path, according to the model of PMC simulation
function.
113
114
11
11.1
OUTLINE
PMC simulation function has a network communication function to
connect with FANUC LADDER-III online. You can use the
following online functions on FANUC LADDER-III as well as in case
of connecting to an actual PMC.
115
11.2
ETHERNET SETTING IN PC
Basic Ethernet setting such as IP address etc. depends on the network
environment of the PC on which PMC simulation function runs.
Note
Proper IP address should be assigned to the PC
and TCP/IP connection should be effective.
Therefore, in case the PMC simulation function and
FANUC LADDER-III are connected on a single PC,
you may need to connect the PC to an Ethernet
router or a hub, or to install the Loopback Adapter.
116
11.3
117
118
11.4
Connection
FANUC LADDER-III
Simulator
PC Setting up
When the PMC simulation function and FANUC LADDER-III are
connected on the same PC, using Hyper-threading feature is
recommended. To enable Hyper-threading, you need to set up BIOS
of PC. Because the set up procedure may be different according to the
model of PC, refer to the manual or help for your PC or inquire to the
PC maker directly.
When connecting the PMC simulation function and the FANUC
LADDER-III on a PC that is not connected to an effective network,
install the Loopback Adapter.
The Loopback Adapter is a tool of Microsoft corporation, and it builds
virtual network environment on a PC that is not connected to a
network. Refer to the homepage of Microsoft corporation and so on
for the method of the setup.
119
2.
120
11.5
Connection
FANUC LADDER-III
121