NCGuide
PMC Simulation Function
OPERATORS MANUAL
Contents
1
INTRODUCTION 5
1.1
FEATURES OF PMC SIMULATION FUNCTION 5
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
START AND EXIT 12
3.1.1 Starting PMC simulation function 12
3.1.2 Exiting PMC simulation function 12
3.2
4
DISPLAY OF VERSION INFORMATION 14
SCREEN AND OPERATION OF PMC SIMULATION FUNCTION 15
4.1
OPERATION MODE OF PMC SIMULATION FUNCTION 15
4.2
CNC/PMC SIMULATION FUNCTION MODE 17
4.2.1 Display mode 17
4.2.2 Picture mode 18
4.2.3 Window mode 20
4.2.4 How to switch display mode 21
4.2.5 Title window 24
4.2.6 Ladder execution status window 25
4.3
PMC SIMULATION FUNCTION MODE 27
4.3.1 Main menu 27
4.4
ADDING DIVIDED LADDER PROGRAM 28
4.4.1 Outline 28
4.4.2 Starting PMC I/O Data Screen 28
4.4.3 Loading Divided Ladder Program 29
5
I/O OPERATION PANEL 30
5.1
OUTLINE 30
5.2
SETTING PROCEDURE ON I/O OPERATION PANEL 31
5.3
CONTENTS OF I/O OPERATION PANEL SETTING DIALOG 34
5.4
I/O OPERATION PANEL SETTING DIALOG 37
5.5
I/O OPERATION PANEL WINDOW 40
5.6
WRITING/READING FUNCTION OF I/O OPERATION PANEL SETTING 45
5.6.1 Outline 45
5.6.2 Write setting file 45
5.6.3 Read setting file 47
5.7
Auto-Setting function of I/O operation panel 49
2
5.7.1 Outline 49
5.7.2 Operation 50
5.7.3 I/O operation panel set automatically 53
6
STANDARD MACHINE OPERATORS PANEL WINDOW 57
6.1
OUTLINE 57
6.2
HOW TO OPEN STANDARD MACHINE OPERATORS PANEL 58
6.2.1 In Picture mode 58
6.2.2 In Window mode 58
6.3
CONFIGURATION OF STANDARD MACHINE OPERATORS PANEL 59
6.4
FUNCTION OF STANDARD MACHINE OPERATORS PANEL 60
6.5
OPERATION OF STANDARD MACHINE OPERATORS PANEL 61
6.5.1 Operation of Main panel 61
6.5.2 Operation of Sub panel 63
7
SIGNAL OPERATION REPLAY FUNCTION 64
7.1
OUTLINE 64
7.2
SIGNAL OPERATION REPLAY SCREEN 65
7.3
FILE OPERATION 68
7.4
SIGNAL OPERATION FILE FORMAT 69
7.5
CONVERTING TRACED SIGNALS 72
7.5.1 Procedure to convert 72
8
MACHINE SIGNAL SIMULATION FUNCTION 73
8.1
OUTLINE 73
8.2
OPERATING ENVIRONMENT 75
8.3
MACHINE SIGNAL SIMULATOR 76
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
MACHINE SIGNAL API FUNCTION 102
8.4.1 Outline 102
8.4.2 List of library function 103
8.4.3 CNC/PMC window function 104
8.4.4 Sample application 105
9
VARIOUS SETTINGS 106
9.1
OPTION PARAMETER SETTINGS 106
9.1.1 Start and exit 106
9.1.2 Operation 108
3
10
9.2
MACHINE COMPOSITION SETTINGS 109
9.3
PMC OPTION SETTINGS 110
INPUT/OUTPUT AND BACKUP OF PMC DATA 111
10.1
I/O OPERATION IN CNC/PMC SIMULATION FUNCTION MODE 111
10.2
I/O OPERATION OF PMC SIMULATION FUNCTION MODE 112
10.2.1 Import procedure 112
10.2.2 Export procedure 112
10.2.3 Backup procedure 113
11
COMMUNICATION WITH FANUC LADDER-III 115
11.1
OUTLINE 115
11.2
ETHERNET SETTING IN PC 116
11.3
PMC SIMULATION FUNCTION SETTING 117
11.4
CONNECT TO PMC SIMULATION FUNCTION ON SAME PC 119
11.5
CONNECT TO PMC SIMULATION FUNCTION ON DIFFERENT PC 121
[Link]
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
FEATURES OF PMC SIMULATION FUNCTION
1.1.1
Features
PMC simulation function is software that executes ladder program on
PC and enables you to debug ladder without CNC.
About the form of the PMC simulation function
There are three kinds of operation mode of PMC simulation function.
1. CNC/PMC simulation function mode
2. PMC simulation function mode
The followings are available for debugging ladder in the CNC/PMC
simulation function mode (1.), in which the CNC simulation function
works together. PMC model that is supported by the CNC model of
CNC simulation function, works as the PMC simulation function.
Operation of CNC screens, diagnosis and maintenance screens of
built-in PMC
Debugging of ladder that uses window functional instruction and
signals related with CNC
[Link]
The following are available in the CNC/PMC simulation function
mode (1.) and in the PMC simulation function mode (2.).
Executing ladder on PC.
Debugging ladder without using CNC.
Changing I/O signals by mouse operation.
Debugging ladder in cooperation with FANUC LADDER-III
Edit, load, and store ladder
Monitor display of ladder diagram and state of signals
Editing running ladder
Signal trace
1.1.2
Difference in operation between PMC and PMC simulation
function
There are some differences in operations between PMC simulation
function and actual PMC built-in CNC, because PMC simulation
function executes ladder program by pseudo PMC function on PC.
The different points of PMC and PMC simulation function are as
follows.
PMC Simulation function
Execution of ladder
The execution cycle time and timing of ladder are different
from actual PMC.
Some error in timing at timers to count up may be caused by
the difference of running status between actual PMC and
PMC simulation function.
The override function of signals cannot be used.
Ladder execution order in multi-path PMC function is
different from actual PMC.
In multi-path PMC function, the setting of the percentage of
ladder execution time is not effective.
The following functions are not supported.
PMC for dual check safety
PMC/L for FS32i-A
PMC/L for FS0i-D/0i Mate-D
To simulate the ladder for dual check safety and PMC/L for
FS32i-A, convert its source files to one of supported PMC model
with FANUC LADDER-III, and use the converted ladder for
debugging.
[Link]
You can debug ladder that cooperates with CNC simulation
function in CNC/PMC simulation function mode.
Display and operation of CNC screen
Ladder using the functional instruction related to CNC
Ladder using the signals related to CNC (G, F)
In PMC simulation function mode, the following functions are not
supported.
Step sequence
The functions available in CNC/PMC simulation function mode are
as follows.
Table 1.1.2 (a) Available functions in CNC/PMC simulation function mode
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
[Link]
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
The following function codes of the window functions are
supported.
Table1.1.2 (b) Supported window function list(1)
Group
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
[Link]
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.
[Link]
List of supported functions
The available functions in each mode of the PMC simulation function
are summarized in the next table.
Table1.1.2 (e) supported function list
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
[Link] 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
[Link]
BASICS
This chapter describes the basic items which the user should
understand before using PMC simulation function.
3.1
START AND EXIT
This section describes how to start and exit PMC simulation function.
3.1.1
Starting PMC simulation function
First, insert the supplied hardware key into USB port.
On the start menu, click [Programs] [FANUC NCGuide]
[(FS0i-D/FS31i-A/FS31i-B, etc)] [NCGuide], then the PMC
simulation function starts.
Fig.3.1.1 (a) Start menu
Fig.3.1.1 (b) Window just after start up
3.1.2
Exiting PMC simulation function
There are the two operation ways according to the display mode of
PMC simulation function.
12
[Link]
Window mode of CNC/PMC simulation function mode, PMC
simulation function mode:
On the [File] menu, click [Exit]. Alternatively, click
(<Close> button) in the upper right corner of the parent window.
Picture mode of CNC/PMC simulation function mode:
Click the Exit button located at the lower left corner of the screen.
Alternatively, select to exit in the popup menu by right-clicking
the mouse.
Exit button
Popup menu
Fig.3.1.2 (a) Exit PMC simulation function
Note
Refer to 4.2.1 Display mode about the display
mode in CNC/PMC simulation function mode.
13
[Link]
3.2
DISPLAY OF VERSION INFORMATION
This section describes how to display the version information of this
software, at maintenance for example.
Select [Help] - [About].
Fig.3.2 (a) Version information
14
[Link] AND OPERATION OF PMC SIMULATION FUNCTION
SCREEN AND OPERATION OF PMC
SIMULATION FUNCTION
This section explains the screens and the operations of PMC
simulation function in each display mode.
4.1
OPERATION MODE OF PMC SIMULATION FUNCTION
There are three operation modes in PMC simulation function.
1. CNC/PMC simulation function mode
2. PMC simulation function mode
To use PMC Simulation function, check Use PMC Simulator in the
following Machine Composition Screen.
PMC Simulation function works in cooperation with the CNC
simulation function in the mode (1.). To choose this mode, check
Use CNC Simulator also.
PMC Simulation function works individually in the mode (2.). To
choose this mode, remove the check of Use CNC Simulator.
Fig.4.1 (a) Machine Composition Screen
15
[Link] AND OPERATION OF PMC SIMULATION FUNCTION
The mode (2.) is available to start from the start menu if it has been
chosen at installation.
Operation modes of PMC simulation function and their functionality
The differences of display screens by the operation mode of PMC
simulation function are as follows.
Table4.1 (a) Operation modes of PMC simulation function and their functionality
Operation CNC/PMC
mode
simulation function
Function
I/O such as ladder
PMC I/O screen
(memory card)
Backup such as PMC I/O screen
ladder
(flash ROM)
parameter
E
address Option
nonvolatile setting
setting screen
PMC
function
simulation
Import/export screen
Backup screen
Option
parameter
setting screen
Operation mode and display screen of PMC simulation function
The differences of display screens available for each operation mode
of PMC simulation function are as follows.
Table4.1 (b) Operation mode of PMC simulation function and display mode
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
[Link] AND OPERATION OF PMC SIMULATION FUNCTION
4.2
CNC/PMC SIMULATION FUNCTION MODE
This section describes the display of the CNC/PMC simulation
function mode.
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.
Features of picture mode
The image of CNC is displayed on the screen, and you can
operate it just like an actual CNC.
Fig.4.2.1 (a) Appearance of picture mode
Features of window mode
This mode shows the display as a usual Windows program
without the image of an actual CNC. You can change the size
and the position of the windows.
Fig.4.2.1 (b) Appearance of window mode
17
[Link] AND OPERATION OF PMC SIMULATION FUNCTION
Comparison of display modes
The following table shows the differences of features between the
display modes.
Table4.2.1 (a) Comparisons of features of each display mode
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
5 I/O OPERATION PANEL
4.2.5 Title window
0 Ladder execution status window
6 SIGNAL OPERATION REPLAY FUNCTION
9 VARIOUS SETTINGS
11.3 PMC SIMULATION FUNCTION SETTING
3.2 DISPLAY OF VERSION INFORMATION
3.1.2 Exiting PMC simulation function
NOTE
This item can be hidden by checking the Hide
[PMC] menu on the Machine composition setting.
18
[Link] AND OPERATION OF PMC SIMULATION FUNCTION
Operation in Picture mode
In this mode, instead of main menu, click right button of the mouse to
pop up the menu that contains [PMC] menu to select an item you
want.
Fig.4.2.2 (a) Pop-up menu PMC
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
[Link] AND OPERATION OF PMC SIMULATION FUNCTION
4.2.3
Window mode
This section describes the names and functions of each window, the
menu, and the operation in the window mode.
Window names and functions
As shown in the figure below, child windows such as the I/O
operation panel are displayed within the parent window.
Parent window
Main menu
Child window
Child window
Child window
Fig.4.2.3 (a) Appearance of window mode of CNC/PMC simulation function mode
Parent window
The main window of this software.
Multiple child windows can be displayed within the parent
window.
20
[Link] AND OPERATION OF PMC SIMULATION FUNCTION
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
3.1.2 Exiting PMC simulation function
4.2.4 Method of switching display mode
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
3.2 DISPLAY OF VERSION INFORMATION
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.
Fig.4.2.3 (b) Main menu PMC
4.2.4
How to switch display mode
21
[Link] AND OPERATION OF PMC SIMULATION FUNCTION
This section describes how to switch the display mode between
Picture mode and Window mode.
Switching from picture mode to window mode
Select
[Display Mode] - [Window Mode] in the pop-up menu.
Fig.4.2.4 (a) Pop-up menu Display mode switch
The message below is displayed, then click < OK >.
displayed in Window mode after restart.
It will be
Fig.4.2.4 (b) Message after setting
Note
After the above-mentioned operation, it is necessary
to restart the NCGuide to reflect the new setting.
22
[Link] AND OPERATION OF PMC SIMULATION FUNCTION
Switching from window mode to picture mode
Select [View] - [Display Mode] - [Picture Mode] in the main menu.
Fig.4.2.4 (c) Main menu Display mode switch
The message below is displayed, then click < OK >.
displayed in Picture mode after restart.
It will be
Fig.4.2.4 (d) Message after setting
Note
After the above-mentioned operation, it is necessary
to restart the NCGuide to reflect the new setting.
23
[Link] AND OPERATION OF PMC SIMULATION FUNCTION
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.
Fig.4.2.5 (a) Title window
NOTE
This item is not displayed when checking the Hide
[PMC] menu on the Machine composition setting.
24
4.2.6
[Link] AND OPERATION OF PMC SIMULATION FUNCTION
Ladder execution status window
Execution status of the ladder of PMC is displayed.
Title information
Alarm
Communication status
with FANUC LADDER-III
Ladder execution status
Ladder run/stop
Fig.4.2.6 (a) Ladder execution status window
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
[Link] AND OPERATION OF PMC SIMULATION FUNCTION
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
[Link] AND OPERATION OF PMC SIMULATION FUNCTION
4.3
PMC SIMULATION FUNCTION MODE
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
3.2 DISPLAY OF VERSION INFORMATION
Operation in PMC Simulation function mode
The screen and the operation are the same as the window mode.
27
[Link] AND OPERATION OF PMC SIMULATION FUNCTION
4.4
ADDING DIVIDED LADDER PROGRAM
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
Starting PMC I/O Data Screen
In machine composition screen, check the item of [Use PMC
Simulation Function], and click the [PMC Data I/O] button.
Fig.4.4.2 (a) Machine Composition Screen
28
4.4.3
[Link] AND OPERATION OF PMC SIMULATION FUNCTION
Loading Divided Ladder Program
Click the [Load] button on PMC I/O Data Screen.
The following file selection dialog will be displayed. Choose the files
of divided ladder program to register newly, and click the [Open]
button. You can also drag and drop the files of divided ladder
programs onto the data display area of PMC I/O Data Screen.
Fig.4.4.3 (a) Load file selection dialog
When loading finishes, new divided ladder programs will appear in
the PMC I/O data screen.
Fig.4.4.3 (b) PMC I/O Data Screen
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.I/O OPERATION PANEL
5
5.1
I/O OPERATION PANEL
OUTLINE
The I/O operation panel window displays the state of the I/O signals,
and you can change the on-off state of signals in this window.
Moreover, the data count, data length, and the data type etc. of the I/O
signals can be specified in the I/O operation panel setting dialog, and
you can arrange the I/O signals on the panel as you want.
NOTE
The I/O operation panel is unavailable when
checking the Hide [PMC] menu on the Machine
composition setting.
30
5.I/O OPERATION PANEL
5.2
SETTING PROCEDURE ON I/O OPERATION PANEL
1. The following screen that lists some X and Y addresses is
displayed at the very first time of starting in PMC simulation
function mode.
Fig.5.2 (a) I/O operation panel window of PMC simulation function start
2. To add a new address of I/O signals in I/O operation panel, select
[Tool] - [I/O Operation Panel Setting], to reach the following
setting dialog.
31
5.I/O OPERATION PANEL
Fig.5.2 (b) I/O operation panel setting dialog
3. Right-click on the I/O operation panel setting node, and select
Add new page.
Fig.5.2 (c) Add new page
4. Set the properties of the new page at the page node. (Page2 here)
Fig.5.2 (d) I/O page setting
32
5.I/O OPERATION PANEL
5. Right-click on page node (Page2 here), and select Add new
address.
Fig.5.2 (e) Add new address
6. When selecting the address data node, the properties of the
address data is displayed in the right of the dialog, and then set
them as you want.
Fig.5.2 (f) Address data setting dialog
33
5.I/O OPERATION PANEL
5.3
CONTENTS OF I/O OPERATION PANEL SETTING
DIALOG
I/O operation panel setting node
Page node
Address data node
Fig.5.3 (a) I/O operation panel setting dialog
I/O Operation Panel Setting node
Fig.5.3 (b) I/O Operation Panel Setting node
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
5.I/O OPERATION PANEL
Page node
Fig.5.3 (c) I/O Operation Panel Setting node
Page node shows the composition of the page on the I/O
operation panel. The I/O operation panel is displayed with the
addresses in the order of the address data nodes displayed in this
dialog.
You can perform the following operations from the pop-up menu
of page node.
Addition of page node
Cutting, copying, pasting, and deleting page node
Addition of address data node
Pasting address data node
Moreover, page node can be copied by dragging with right
button and moved by dragging with left button, by the drag &
drop of the mouse operation.
35
5.I/O OPERATION PANEL
Address data node
Fig.5.3 (d) Address data node
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.
Addition of address data node
Cutting, copying, pasting, and deleting address data node
Moreover, the address data node can be copied by dragging with
right button and moved by dragging with left button by the drag
& drop of the mouse operation.
36
5.I/O OPERATION PANEL
5.4
I/O OPERATION PANEL SETTING DIALOG
I/O Operation Panel Setting node
Fig.5.4 (a) I/O operation panel setting
Address notation
Specify whether addresses are displayed by the symbol or the
address in the I/O operation panel.
Page node
Fig.5.4 (b) Page setting
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
5.I/O OPERATION PANEL
Address data node
Fig.5.4 (c) Address data setting
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
5.I/O OPERATION PANEL
Alternate
Momentary
The state changes between on and off every
time you push the button.
The state is on only while you push the button;
the state is off when you release it.
Show this address
Select whether to show this address data in the I/O operation
panel.
OK
Accept the modification you made and exit.
Cancel
Cancel all the modification and exit.
39
5.I/O OPERATION PANEL
5.5
I/O OPERATION PANEL WINDOW
PMC simulation function mode and window mode
Fig.5.5 (a) I/O operation panel
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
5.I/O OPERATION PANEL
Picture mode
To display the I/O operation panel screen, select the [PMC] - [I/O
Operation Panel] by the pop-up menu.
Fig.5.5 (b) I/O operation panel
41
5.I/O OPERATION PANEL
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
5.I/O OPERATION PANEL
Input button and Output lamp
The signals of the I/O operation panel are displayed as the input
button and the output lamp according to the kind of address type.
You can operate input buttons using the mouse. The output lamp
displays the signal state usually, but when the forcing of I/O is
enabled, you can also change the state of output lamp as well as input
buttons. The symbols contained in ladder program are displayed on
the input button and output lamp.
Input button
Input ON
Input OFF
Output ON
Output OFF
Output lamp
Fig.5.5 (c) Input button and Output lamp
Only X address is displayed as input buttons in CNC/PMC simulation
function mode. In PMC simulation function mode, F and X
addresses are displayed as input buttons.
The display form of the bit address is summarized as follows.
Table5.5 (a) Input button and 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
5.I/O OPERATION PANEL
Display and setting of byte, word, and dword
The display and the setting of byte, word, dword are operated in the
edit box.
Display content of I/O
The address and the symbol information of the I/O signal are
displayed in the tool chip. When the title of the address data node is
set at the I/O operation panel setting dialog, the title string is displayed
in the form of < title >. When the title is not set, this line is
omitted.
44
5.I/O OPERATION PANEL
5.6
WRITING/READING FUNCTION OF I/O OPERATION
PANEL SETTING
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
Write setting file
The setting information of the I/O operation panel can be written to a
file following the procedure below.
1. Select [Write Setting File...] in the context menu by right-clicking
the mouse on the I/O operation panel setting node or on arbitrary
page node.
Fig.5.6.2 (a) Menu [Write Setting File...]
2. Enter the file name to save and click the < Save > button.
Fig.5.6.2 (b) Save setting file
45
5.I/O OPERATION PANEL
Range of saved setting
The range of the saved I/O operation panel setting may change
according to the operation.
When you start with the context menu of the I/O operation panel
setting node, information of all page nodes will be saved.
When you start with the context menu of a page node, information of
the single page node is saved.
Fig.5.6.2 (c) Save setting file
In case of invalid setting
The following settings are invalid and the information of a page that
contains such setting cannot be saved.
PMC address is invalid.
PMC address is valid, but there are invalid addresses in the range
of address specified by data count
When you try to save the page setting that contains invalid setting, an
error message is displayed.
Invalid PMC address or too many PMC address data count.
(Page:m, Address:n)
(* m is the page number of the first invalid information, and n is the
address number of it.)
When the error message is closed, the focus will move to the position
of the invalid setting.
46
5.6.3
5.I/O OPERATION PANEL
Read setting file
The setting information of the I/O operation panel saved in the file can
be read following the procedure below.
2. Select [Read Setting File...] in the context menu by right-clicking
the mouse on the I/O operation panel setting node or arbitrary
page node.
Fig.5.6.3 (a) Menu [Read Setting File...]
3. Enter the file name to save and click the < Open > button.
Fig.5.6.3 (b) Open setting file
If the specified file does not contain correct information of I/O
operation panel setting, the following error occurs. Confirm if you
specified a correct file when this error occurs.
The file does not contain valid I/O Operation Panel setting.
Position to add read pages
The added position of the I/O operation panel setting read from file
may vary according to the operation.
When you start with the context menu of the I/O operation panel
setting node, the pages of the read setting information will be added
under the last page.
When you start with the context menu of a page node, the pages of the
read setting information will be added under that page.
47
5.I/O OPERATION PANEL
Invalid PMC address
The following PMC address information in the setting information of
the I/O operation panel cannot be interpreted as a correct PMC
address.
PMC address of a PMC path which does not exist in the current
composition.
The PMC address outside valid range in the current composition.
The address nodes of these invalid addresses will be also added
together with the ones of valid address. If invalid PMC address is
found in the setting information, the following message will be
displayed.
Found n invalid PMC address(es).
(* n is address count)
The invalid PMC addresses are displayed in red.
Fig.5.6.3 (c) Invalid PMC address
48
5.I/O OPERATION PANEL
5.7
Auto-Setting function of I/O operation panel
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
Fig.5.7.1 (a) Example of I/O Link assignment data
Fig.5.7.1 (b) Page node by Auto-setting function
Fig.5.7.1 (c) Page of I/O operation panel by Auto-setting function
49
5.I/O OPERATION PANEL
5.7.2
Operation
Auto-Setting procedure of I/O operation panel
1. Select [Tool] - [I/O Operation Panel Setting] to show the setting
dialog.
2. Select [Page Auto-Setting] - [I/O Link Assignment...] in the
context menu by right-clicking the mouse on the I/O operation
panel setting node or arbitrary page node.
Fig.5.7.2 (a) Menu [I/O Link Assignment]
3. As Page Auto-Setting dialog is displayed, select PMC path and
sort by. In FS 0i-D/0i Mate-D, select sort by only.
Fig.5.7.2 (b) Page Auto-Setting (I/O Link Assignment) dialog
Fig.5.7.2 (c) Page Auto-Setting (I/O Link Assignment) dialog
(FS 0i-D/0i Mate-D)
(1) PMC path
Select the PMC path from which the I/O Link assignment data is
referred. More than one PMC path can be selected at one time.
(2) Sort by
50
5.I/O OPERATION PANEL
Select the arranging method of the address nodes in each page.
Connection order or Address order can be selected.
(3) <OK> button
Perform the auto-setting function to set the I/O operation panel
according to the setting. When there is a problem in the setting
or the ladder program, an error will be displayed.
(4) <Cancel> button
Exit the dialog without setting the I/O operation panel.
4. When the <OK> button is pushed, the pages generated from the
I/O Link assignment data will be added to the I/O operation panel
setting. The new pages will be added under the last page when
you start with the menu of the I/O operation panel setting node.
When you start with the menu of a page node the new pages will
be added just under that page node.
Fig.5.7.2 (d) I/O Operation Panel Setting dialog after addition
51
5.I/O OPERATION PANEL
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.
Fig.5.7.2 (e) Error message dialog
Table5.7.2 (a) List of error message
Message
Description
Measure
Please select PMC path.
No PMC path is
selected.
Select one or more
PMC path from which
the I/O Link assignment
data is referred.
Cannot read I/O assignment data in PMCn.
FS 0i-D/0i Mate-D:
Cannot read I/O assignment data.
I/O assignment data
cannot be referred
because of PMC
program view inhibit
setting.
Set PMC program view
inhibit to No and
operate again.
Ladder program in PMCn is broken.
FS 0i-D/0i Mate-D:
Ladder program is broken.
There is a problem in
the ladder program, and
the I/O Link assignment
data cannot be used.
Confirm the state of the
ladder program.
According to the
situation, modify or
replace it to solve the
problem.
Cannot read ladder program in PMCn which is being edited.
FS 0i-D/0i Mate-D:
Cannot read ladder program which is being edited.
The ladder program is
being changed by
FANUC LADDER-III or
from the PMC screen.
(edit or store)
Please operate it again
after completing the
change in the ladder
program on FANUC
LADDER-III or the PMC
screen.
52
5.7.3
5.I/O OPERATION PANEL
I/O operation panel set automatically
Page node set automatically
The I/O operation panel that is set automatically from the I/O Link
assignment data consists of pages corresponding to the following
areas.
Area of X0 to 127 and Y0 to 127
Area of X200 to 327 and Y200 to 327
Area of X400 to 527 and Y400 to 527
Area of X600 to 727 and Y600 to 727
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.
Fig.5.7.3 (a) Page nodes by Auto-setting function
53
5.I/O OPERATION PANEL
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
Show this page
Checked, and the page is displayed.
54
5.I/O OPERATION PANEL
Address node set automatically
One address node is set for one I/O Link device automatically.
Fig.5.7.3 (b) Address nodes by Auto-setting function
55
5.I/O OPERATION PANEL
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.
Order of address node
The arrangement of address nodes in each page is decided by the
specified option in the Page Auto-Setting dialog.
1. Connection
The order is decided from the value of group, base, and slot of the
assignment data. When connected location is same, the order is
decided by the address order.
2. Address
They are arranged from input (X) to output (Y), and then arranged
so that the PMC addresses are in ascending order in each area.
56
[Link] MACHINE OPERATORS PANEL WINDOW
6
6.1
STANDARD MACHINE OPERATORS
PANEL WINDOW
OUTLINE
Standard machine operators panel window consists of Main panel
and Sub panel, which simulate the input/output signals of the actual
Standard machine operators panel connected as an I/O device.
Main panel is common, and you can choose Sub panel from Type A
(horizontal type) and Type D (vertical type).
Sub panel
Main panel
Fig.6.1 Standard machine operators panel (Main + Sub Type D)
To operate CNC by Standard machine operators panel, you need a
ladder program that supports the Standard machine operators panel.
Just after you create a new Machine composition, it will start the
ladder program supporting the Standard machine operators panel.
The simulation of the input/output signals of the Standard machine
operators panel starts after the CNC comes into operation.
Regardless of the assignment of the Standard machine operators
panel, the X-signals will stay 0 before the CNC starts up.
57
[Link] MACHINE OPERATORS PANEL WINDOW
6.2
HOW TO OPEN STANDARD MACHINE OPERATORS
PANEL
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.
Fig.6.2.1 Operation to open the panels in Picture mode
Choosing [No Disp] will close the Standard machine operators
panel.
This setting will be preserved and the Standard machine operators
panel will appear as the same at the next start up of NCGuide.
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.
Fig.6.2.2 Operation to open the panels in Picture mode
Choosing [No Disp] will close the Standard machine operators
panel.
This setting will be preserved and the Standard machine operators
panel will appear as the same at the next start up of NCGuide.
58
[Link] MACHINE OPERATORS PANEL WINDOW
6.3
CONFIGURATION OF STANDARD MACHINE
OPERATORS PANEL
You can configure the assignment address of the Standard machine
operators panel according to your ladder program.
Choose menu [PMC] and [Option], and you can change the settings
at Machine Operators Panel tab.
Fig.6.3 Options for Standard machine operators panel
Initially, these are set as follows:
PMC path
PMC1
DI Address
X0006
DO Address
Y0000
The Sub panel uses the first four bytes of DI signals from the DI
Address, and the Main panel uses the fifth byte and after.
Ex. In case of PMC Path = PMC1, DI = X0006, DO = Y0008
X0006 - X0009
DI of Sub panel
X0010 DI of Main panel
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
FS30i-A CONNECTION MANUAL (HARDWARE) (B63943EN/02)
8.9 CONNECTION TO STANDARD MACHINE OPERATOR'S PANEL
FS0i-D/0i Mate-D CONNECTION MANUAL (HARDWARE)
(B64303EN/02)
9.9 CONNECTION TO STANDARD MACHINE OPERATOR'S PANEL
59
[Link] MACHINE OPERATORS PANEL WINDOW
6.4
FUNCTION OF STANDARD MACHINE OPERATORS
PANEL
The Standard machine operators panel window is common to
Picture mode and Window mode, and has following functions:
Change the window position and size as you like.
OFF switch on Sub panel can terminate the NCGuide.
By shortcut operation (default: Ctrl+F12), you can hide the
Standard machine operators panel window temporarily, and also
show it again.
You can change the shortcut operation to hide/show the panels by
the Key Arrangement Tool.
To change the shortcut key, start the Key Arrangement Tool, and
choose Window Operation at Category. Then select
Show/Hide Machine Operators Panel in Function List and
change the key setting as you like. It is assigned to Ctrl + F12 in
default.
Fig.6.4 Key Arrangement screen
60
[Link] MACHINE OPERATORS PANEL WINDOW
6.5
OPERATION OF STANDARD MACHINE OPERATORS
PANEL
This section describes the operation of the Standard machine
operators panel using the ladder program integrated as default.
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
FS30i-A CONNECTION MANUAL (HARDWARE) (B63943EN/02)
8.9 CONNECTION TO STANDARD MACHINE OPERATOR'S PANEL
FS0i-D/0i Mate-D CONNECTION MANUAL (HARDWARE)
(B64303EN/02)
9.9 CONNECTION TO STANDARD MACHINE OPERATOR'S PANEL
6.5.1
Operation of Main panel
The functions of the key switches of the Main panel, and the
meanings of the corresponding LEDs are as follows:
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
Single block
operation mode
Change NC mode to
MDI
MDI mode
Optional block skip
Optional block skip
mode
Change NC mode
to RMT
RMT mode
Optional block stop
Optional block stop
mode
Change NC mode
to REF
REF mode
Change to TEACH
IN mode
TEACH IN mode
Change NC mode
to JOG
JOG / TJOG mode
Restart program
Selecting program
restart
Change NC mode
to INC
INC mode
Machine lock all axes
Machine is locked
61
[Link] MACHINE OPERATORS PANEL WINDOW
Key switch
Function
Meaning of LED
Dry run
Dry run mode
Key switch
Function
Select rapid traverse
Meaning of LED
Rapid traverse
mode
Halts automatic
operation.
Automatic
operation is
suspended
Jog feed negative
direction
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
Jog feedrate is x10
Change feedrate
Jog feedrate is
x100
Change feedrate
Jog feedrate is
x1000
Select jog feed X-axis
X-axis is selected
for jog feed
Select jog feed Y-axis
Y-axis is selected
for jog feed
Select jog feed Z-axis
Z-axis is selected
for jog feed
Select jog feed
4th-axis
4th-axis is selected
for jog feed
Select jog feed
5th-axis
5th-axis is selected
for jog feed
Select jog feed
6th-axis
6th-axis is selected
for jog feed
Jog feed positive
direction
Feeding axis in
positive direction
62
[Link] MACHINE OPERATORS PANEL WINDOW
6.5.2
Operation of Sub panel
The functions of the switches of the Sub panel are as follows:
Name
Image
Signal
Function
Xm+2.4
Switching emergency stop mode.
When the switch is pressed,
EMG is displayed on the button.
Xm+1.4
Change the protection status of
program.
Xm+0.0
|
Xm+0.5
Apply feedrate override.
Emergency
stop switch
Program
protect key
Feedrate
override rotary
switch
Spindle speed
override rotary
switch
Power off
swtich
Power on
switch
Apply spindle speed override.
Xm+0.6
|
Xm+1.3
* NCGuide does not support spindle
N/A
Terminate NCGuide.
N/A
Not used.
63
function.
[Link] OPERATION REPLAY FUNCTION
7
7.1
SIGNAL OPERATION REPLAY
FUNCTION
OUTLINE
This function is to record the transitions of input signals operated on
the I/O operation panel, and to replay the recorded data, to reduce
the manual operations of the signals. And you can save/load the
recorded data to/from files. The saved data can be edited by the
application on PC such as applications for spreadsheet.
Moreover, making a signal operation file from the trace data
obtained from actual machine by signal trace function in the built-in
PMC, enables you to reproduce the behavior of input signals on the
actual machine for debugging the ladder.
Signal operation replay function
PMC Simulation function
I/O operation panel
Record
Memory
Play
Read
Save
Signal operation file
Read
Trace result file
Edit
Spreadsheet etc.
Fig.7.1 (a) Signal operation replay function
64
[Link] OPERATION REPLAY FUNCTION
NOTE
The Signal operation replay function is unavailable
when checking the Hide [PMC] menu on the
Machine composition setting.
7.2
SIGNAL OPERATION REPLAY SCREEN
This section describes about the signal operation replay window.
Select [Signal Operation Replay Function] from menu to reach the
signal operation replay window.
Fig.7.2 (a) Signal operation replay function window
State
Display the state of a current operation.
Replaying.
Recording.
65
[Link] OPERATION REPLAY FUNCTION
Stopping.
Pausing while replaying.
Comment
Put a comment on recording data.
Step interval to record
Choose Real time or Constant as interval of operated time
for recording operations.
Real time: Record the interval time as you operated, to
reproduce your operations in real time.
Constant: Record every interval as a constant time set by
Wait time.
Wait time: Set the waiting time when Constant is selected.
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.
Above example shows that X127.7=1 in the 2nd
path PMC is executed in the next step. In case of
two or more signal transitions in the same step,
they are displayed as long as possible in the line.
The maximum number of the signal transitions that
can be replayed in a step is 32 points.
Wait time: Displays waiting time for the next step.
Next file: Displays the file name which will be read next
when a CHAIN command exists in the signal
operation file.
Recorded step: The signal transition that is recorded last is
shown at recording operation. It is shown
in the form of
PMC system: address = value.
Above example shows that X127.7=1 in the
2nd path PMC is recorded.
66
[Link] OPERATION REPLAY FUNCTION
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
[Link] OPERATION REPLAY FUNCTION
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.
Fig.7.3 (a) Confirmation message
(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
[Link] OPERATION REPLAY FUNCTION
7.4
SIGNAL OPERATION FILE FORMAT
The signal operation file is formatted as CSV (Comma Separated
Value) file. The file can be divided into the header and the command
part. The file can be displayed and be edited by some text editor,
word pad and spreadsheet application supporting CSV format such as
Microsoft Excel.
1. Header part
The identifier that shows the type of data is output at the head of
data.
PMC SIGNAL DATA
Identifier:
2. Command part
In the format of a line in command part, a command is specified at
the first column. Specify arguments for each command at second
column and after.
The kinds of the commands are enumerated as follows.
REMARK (abbreviation R)
Specify the comment displayed in the signal operation replay
function window.
Specify the comment text as the following argument.
There is no limitation of the number of characters in
comments.
This command can be omitted.
When this command is set to two or more lines, the second
and after commands are ignored.
SET (abbreviation S)
Set data.
Specify the arguments after the command in the format wait,
(address (symbol), value, type), (address (symbol), value,
type)....
Specify the wait time in the column following SET. Wait is
an interval from the last SET line. The unit of wait is ms.
Wait must be a multiple of the execution cycle of first level of
ladder. Round the entered number at the execution cycle
when it is not a multiple of it. For instance, when 1ms is
specified and the execution cycle is 8ms, it is rounded to 8ms.
And when 0ms is specified, the line is performed after the
same interval as the previous SET line. When reading a file
with negative number specified as wait time, an error occurs.
Specify the address following the wait time. Two or more
addresses can be specified in the same line, and those address
transitions will be performed at the same timing. The
maximum number of addresses that can be specified at the
same time is 32 points.
Specify the signal value following the address.
The
hexadecimal number can be specified with the prefix 16#.
Specify the data type following the signal value.
69
[Link] OPERATION REPLAY FUNCTION
Data type
Abbreviation
Bit
Bi
Byte
B
Word
W
Dword
D
This command can be omitted.
CHAIN (abbreviation C)
Move the control to another signal operation file.
As the following argument, specify a file name in the format
of C:\...\ file name. csv.
Relative path from the execution folder can also be specified.
When this command exists, any lines after this command in
the file are discarded.
This command can be omitted.
PMC SIGNAL DATA
REMARK,ABC
SET,0,X0.0,1,Bi,X0.1,0, Bi,X20,16#3,B
SET,100,X0.0,0, Bi,X0.1,1, Bi,X20,16#2,B
SET,200,X0.0,1, Bi,X0.1,0, Bi,X20,16#1,B
CHAIN, C:\ filename. csv
Fig.7.4 (a) Example of display in text form
PMC SIGNAL DATA
REMARK
SET
SET
SET
CHAIN
ABC
0
100
200
C:\[Link]
X0.0
X0.0
X0.0
1
0
1
Bi
Bi
Bi
X0.1
X0.1
X0.1
Fig.7.4 (b) Example of display in table
70
0 Bi
1 Bi
0 Bi
X20
X20
X20
16#3 B
16#2 B
16#1 B
[Link] OPERATION REPLAY FUNCTION
When replaying the file of Fig.6.5.2 (a), (b), the signals will change as
follows.
Fig.7.4 (c) Signal transition
About the error
When any error is detected, the whole data in the file is
discarded.
71
[Link] OPERATION REPLAY FUNCTION
7.5
CONVERTING TRACED SIGNALS
Select signals from the trace result data created by the trace function
of built-in PMC and FANUC LADDER-III, and convert them to the
signal transition record.
7.5.1
Procedure to convert
1. Select Open from the toolbar.
2. Specify the file name and select <Open >.
Fig.7.5.1 (a) Open file
3. When you select a trace result file, it is recognized automatically
and the list of the sampling address of the trace is displayed.
Then, check the addresses you want to extract.
Fig.7.5.1 (b) Sampling address list
4. Select <OK>. The signal transitions of the selected sampling
addresses are converted and stored into the memory as the data of
signal operation replay function.
72
[Link] SIGNAL SIMULATION FUNCTION
8
8.1
MACHINE SIGNAL SIMULATION
FUNCTION
OUTLINE
Machine signal simulation function is a function to simulate I/O
signals of machine side.
To provide the external input for PMC simulation function to debug
ladder, there are methods to use the signal operation replay function
and to use I/O operation panel. In the debug using I/O operation
panel, the input signals for PMC simulation function should be
operated manually. And with the signal operation replay function,
the operations of signals on I/O operation panel are recorded and
replayed. In these conventional methods of debugging, you have to
check the response from PMC simulation function at some input
signal transitions, to confirm the behavior of the ladder program.
Using the machine signal simulation function, the input signals are
provided to the PMC simulation function automatically by
programming the response of machine side according to output signals
from the PMC simulation function by ladder and/or FOCAS2
compatible function. Consequently, you can debug the ladder in the
environment closer to the real environment because the signal
transitions by machine side are simulated.
PMC simulation function
Machine
Input
Output
Simulate the machine signal
by
using the ladder
and
FOCAS2 compatible function.
Fig.8.1 (a) Machine signal simulation function
73
[Link] SIGNAL SIMULATION FUNCTION
There are two ways to use this function.
1. Using machine signal simulator.
Use the machine signal simulator which is embedded in the PMC
simulation function. The machine signal simulator is used to
make response to the signals from PMC simulation function by
programming ladder. Executing the ladder on the machine signal
simulator, the signals from machine side is provided automatically
to PMC simulation function, in the response of the output signals
from PMC simulation function to machine.
Realized by ladder program
PMC simulation function
Machine signal simulator
I/O area
Fig.8.1 (b) Machine simulation by machine signal simulator
2. Using machine API function
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
Communication
interface
FOCAS2/
Application
Ethernet
(Machine simulator etc.)
pmc_rdpmcrng()
pmc_wrpmcrng()
Read and write the I/O
signals by FOCAS2
compatible function
Fig.8.1 (c) Machine simulation by using machine signal API function
The simulation form 1. using the machine signal simulator is a
function to realize a simple signal control by making a ladder.
74
[Link] SIGNAL SIMULATION FUNCTION
The simulation form 2. using the machine signal API function may
be used to realize machine simulation that MTB makes an application
to control a complicated signal behavior and to read the machine
positions. Using the compatible functions with FOCAS2/Ethernet
function, applications can read and write the PMC signals etc. This
function is available when PMC simulation function is active. Both
of the machine signal simulator 1. and the machine signal API
function 2. can be used at the same time.
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
[Link] SIGNAL SIMULATION FUNCTION
8.3
MACHINE SIGNAL SIMULATOR
This section describes about the machine simulation using the
machine signal simulator.
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.
About multi-path PMC
In debug at multi-path PMC, you can make ladders of machine signal
simulator which corresponds to each PMC path.
PMC simulation function
1st PMC
Machine signal simulator
1st ladder
I/O area
2nd PMC
2nd ladder
I/O area
3rd PMC
3rd ladder
I/O area
Fig.8.3.1 (a) Debugging of multi-path PMC
76
[Link] SIGNAL SIMULATION FUNCTION
Specification of ladder
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
Table8.3.1 (b) Basic specification of machine signal simulator (2)
Machine signal simulator for NCGuide of FS31i-B, FS35i-B, FS31i-LB, FS31i-PB
1st ladder
2nd ladder
3rd ladder
3rd ladder
4th ladder
5th ladder
31i B PMC
31i B PMC
31i B PMC
31i B PMC
31i B PMC
31i B PMC
(PMC Memory-D)
(PMC Memory-D)
(PMC Memory-D)
(PMC Memory-D)
(PMC Memory-D)
(PMC Memory-D)
Up to about
Up to about
Up to about
Up to about
Up to about
Up to about
32,000 steps
32,000 steps
32,000 steps
32,000 steps
32,000 steps
32,000 steps
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
Executed as NOP instruction.
Processing
Timer processing
Fixed-timer processing
Timer processing
Fixed off-delay timer processing
Counter processing
Counter processing
77
Not
Machine signal simulator for
NCGuide
(Note 1)
(Note 1)
(Note 1)
[Link] SIGNAL SIMULATION FUNCTION
Instruction
group
3
Data transfer 1
2
3
4
5
6
7
8
Comparison 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Data search 1
2
Bit operation 1
2
3
4
5
6
7
8
Code
1
conversion 2
3
4
5
6
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
Machine signal simulator for
NCGuide
[Link] SIGNAL SIMULATION FUNCTION
Instruction
group
Operation
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
Machine signal simulator for
NCGuide
(Note 2)
[Link] SIGNAL SIMULATION FUNCTION
Instruction
group
Instruction SUB
name
12
FNC97
No.
Processing
97 Arbitrary-function instruction 8
Machine signal simulator for
NCGuide
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
[Link] SIGNAL SIMULATION FUNCTION
About a signal address of machine signal simulator
A machine signal simulator shares all PMC addresses with PMC
simulation function. So, it can refer to the signals of the PMC
simulation function using the same address. But, the signal area of Y
address of the PMC simulation function is mapped as the signal area
of X address of the machine signal simulator. And the signal area of
X and Y address, vice versa. So, the signal written to Y address by
PMC simulation function can be referred as X address of machine
signal simulator. And the signal written to Y address by machine
signal simulator can be referred as X address of PMC simulation
function.
F address and G address are also referred in the same way.
PMC simulation function
Machine signal simulator
Fig.8.3.1 (b) Relation of address
Address list of machine simulator and corresponding address of PMC
simulation function is shown in the following table
Table8.3.1 (d) Address list and corresponding table of machine signal
simulator
Corresponding
Machine signal
address of PMC
Signal kind
Symbol simulator for
simulation function
NCGuide
Signal input to the PMC
X0 to X127
Y0 to Y127
from the machine
X200 to X327
Y200 to Y327
(Note 1)
X400 to X527
Y400 to Y527
Signal output from the
Y600 to Y727
X1000 to X1127
Y1000 to Y1127
Y0 to Y127
X0 to X127
PMC to the machine
Y200 to Y327
X200 to X327
(Note 1)
Y400 to Y527
X400 to X527
Signal input to the PMC
from the CNC (Note 2)
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
[Link] SIGNAL SIMULATION FUNCTION
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
PMC to the CNC
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
Internal relay (Note 3)
R*
R0 to R15999
R0 to R15999
System relay (Note 4)
Z0 to Z499
(None)
Extra relay
E0 to E9999
E0 to E9999
Message display
A*
Signal input to other
PMC path
Signal output from other
PMC path
(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
Keep relay (Note 3)
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
[Link] SIGNAL SIMULATION FUNCTION
marked with * can be referred from PMC simulation
function and the machine signal simulator with the
same address. The part of these addresses which
exists only on the machine signal simulator side, can
be used for the work area for the ladder in the
machine signal simulator.
4 Signal area of system internal relay R9000 to R9499
or Z0 to Z499 and system keep relay K900 to K999
exists independently between PMC simulation
function and machine signal simulator. So, these
signals of PMC simulation function are not shared
and cannot be referred from the machine signal
simulator.
5 Because address areas of label and sub program
are independent of PMC simulation function, you
can use the number used in the ladder of PMC
simulation function.
Supplement of note 2
The example of handling of D address area when PMC simulation
function is configured as PMC memory B is as follows.
The area from D0 to D9999 is shared between machine signal
simulator and PMC simulation function. The other area from
D10000 to D19999 is not shared, and can be used as the work area
of the machine signal simulator.
Machine signal simulator
PMC simulation function
PMC Memory-C
PMC Memory-B
D0
Shared
Shared
D9999
D10000
Not shared
D19999
Fig.8.3.1 (c) Supplement of note 2
83
[Link] SIGNAL SIMULATION FUNCTION
8.3.2
Notes from installation to starting application
Installation and uninstallation
The machine signal simulator is installed and uninstalled with the
PMC simulation function.
About setting of using machine signal simulator
You can choose whether to use the machine signal simulator.
Set the option in the option screen or machine composition setting
screen at NCGuide.
Setting in machine composition screen
Set the option in the Edit Machine Composition or New Machine
Composition screen of the machine composition setting tool. Check
Use Machine Signal Simulator to use it. In that case, you need to
check Use PMC Simulator before it.
Fig.8.3.2 (a) Setting in the Edit Machine Composition screen of the
machine composition
84
[Link] SIGNAL SIMULATION FUNCTION
NOTE
The Machine signal simulation function works
without displaying window when checking the Hide
[PMC] menu on the Machine composition setting.
Setting in the option screen
The setting on the option screen is also available for the NCGuide.
Check Use Machine Signal Simulator to use it.
Fig.8.3.2 (b) Setting in the option screen
NOTE
It is necessary to restart the PMC simulation
function to reflect the setting.
85
[Link] SIGNAL SIMULATION FUNCTION
8.3.3
Start and exit of machine signal simulator
Starting machine signal simulator
On the start menu, click [Programs] [FANUC NCGuide]
[(FS0i-D/FS31i-A/FS31i-B etc)] [NCGuide], then the PMC
simulation function starts and the machine signal simulator starts at
the same time.
Fig.8.3.3 (a) Start menu
Machine signal simulator
PMC simulation function
Fig.8.3.3 (b) Start of PMC simulation function and machine signal simulator
Exiting machine signal simulator
When exiting the PMC simulation function, the machine simulator
exits automatically.
86
[Link] SIGNAL SIMULATION FUNCTION
8.3.4
Machine signal simulator screen
When machine signal simulator is started, the following screen is
displayed.
Execution state etc. of the ladder of machine signal simulator is
displayed.
Title information
Communication status
with FANUC LADDER-III
Alarm
Ladder execution status
Ladder run/stop
Fig.8.3.4 (a) Machine signal simulator screen
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
[Link] SIGNAL SIMULATION FUNCTION
: Stop ladder
Communication with FANUC LADDER-III
Displays the communication status with FANUC LADDER-III.
: Connecting
: Disconnecting
Port Setting
Button for setting port number.
: Displays the port setting dialog.
It is a setting for connection between FANUC LADDER-III and
the machine signal simulator. Specify the port number of
Ethernet that the machine signal simulator uses.
Fig.8.3.4 (b) Port Setting dialog
88
[Link] SIGNAL SIMULATION FUNCTION
8.3.5
Procedure of machine simulation with machine signal
simulator
This section describes the procedure of executing the machine signal
simulation function.
Start
1 Making the ladder of machine signal simulator.
Refer to Making the ladder.
2 Starting PMC simulation function and machine
signal simulator.
Refer to Procedure of machine
3 Storing the ladder to machine signal simulator.
simulation.
4 Running the ladder of PMC simulation function
and machine signal simulator. (Share of signals)
End
Fig.8.3.5 (a) Flow of procedure
FANUC LADDER-III
Ladder data
Y0.0
1 Making ladder with
signals to debug
3 Storing
PMC simulation function
Machine signal simulator
4 share of signals
I/O area
2 Start simulation
Fig.8.3.5 (b) Outline of machine signal simulation procedure
89
[Link] SIGNAL SIMULATION FUNCTION
Procedure of machine simulation
The machine signal simulation using machine signal simulator is
executed following procedure below.
1
Making the ladder of machine signal simulator
1-1 Make the ladder program of machine signal simulator with
FANUC LADDER-III.
Pick out the signals of PMC
simulation function which shall be referred or changed by the
machine signals simulator. Make the ladder that handles
these signals. For more detail about how to make ladder,
refer to Making the ladder.
Ex) Suppose making ladder of machine signal simulator like
following. In this case, one second after Y12.3 of PMC
simulation function is turned on, X45.6 of PMC simulation
function will be turned on.
Refer
PMC simulation function
Modify
Machine signal simulator
Fig.8.3.5 (c) Example of making the ladder of machine signal simulator
1-2 Compile the created ladder.
2
Starting PMC simulation function and machine signal simulator.
Start the PMC simulation function from the start menu. After
PMC simulation function starts, the machine signal simulator
starts also.
About the detail of starting procedure, refer to 8.3.3 Start and
exit of machine signal simulator.
90
[Link] SIGNAL SIMULATION FUNCTION
3
Storing the ladder.
3-1 Change the setting of FANUC LADDER-III so that it can
connect to the machine signal simulator.
3-1-1
Select [Tool] [Communication]. Select [Network
Address] tab and click the <Add Host> button. The
following dialog is displayed.
3-1-2
When you try to make FANUC LADDER-III to connect
the machine signal simulator on the same PC, enter
LOCALHOST to Host. When you try to make it
connect to one on different PC, enter the IP address of
the PC on which the machine signal simulator works.
Set 8191 to the port number in both case.
Fig.8.3.5 (d) Host setting
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
[Link] SIGNAL SIMULATION FUNCTION
3-1-3
Select [Setting] tab, and move LOCALHOST, which
was created in 3-1-2, to Use device box.
Fig.8.3.5 (e) Use device setting
3-2 Store the ladder made in 1 to the machine simulator. After
connecting with FANUC LADDER-III, start the storing of
ladder.
3-3 Perform backup in FANUC LADDER-III after storing, and
the ladder program is saved. The saved ladder will be read
and executed automatically when it starts next time.
4
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
[Link] SIGNAL SIMULATION FUNCTION
Making ladder
Here describes how to make ladder of machine signal simulator.
Procedure of making ladder
Procedure of making ladder is described as follows.
1. Making ladder of machine signal simulator.
Create a new ladder program of PMC type 31i-A PMC memory C
or PMC type 31i-B PMC memory D, using FANUC
LADDER-III.
If the target PMC simulation function is configured as multi-path
PMC, create a new ladder programs that correspond to each path,
as you need.
2. Making ladder logic.
Make ladder logic, keeping the following points in mind.
The machine signal simulator shares all PMC addresses of
PMC simulation function. So, it can refer to the signals of
the PMC simulator in the same address notation. However,
the signal area of Y address of the PMC simulation function
is mapped as the signal area of X address of the machine
signal simulator. And the signal written in Y address by
PMC simulation function can be referred as X address of
machine signal simulator. F and G addresses are also
accessed in the same way.
Ex) Emergency stop signal X8.4 of PMC simulation function
can be referred as Y8.4 in the machine signal simulator.
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
[Link] SIGNAL SIMULATION FUNCTION
NOTE
1 The memory of PMC Parameter is shared between
the PMC simulation function and the machine signal
simulator. Therefore, do not use any duplicated
number for the functional instructions listed below
that uses PMC Parameter.
<Functional instructions using PMC Parameter>
- TMR (Timer : SUB 3)
- CTR (Counter : SUB 5)
- CTRB (Fixed Counter : SUB 56)
The same number for the following functional
instructions can be used for both of PMC simulator
function and machine signal simulator.
<Functional instructions which can use independent
instruction number for each PMC path>
- TMRB (Fixed Timer : SUB 24)
- TMRBF (Off Delay Fixed Timer : SUB 77)
- DIFU (Rising Edge Detection : SUB 57)
- DIFD (Falling Edge Detection : SUB 58)
2 Because the machine signal simulator is used to
debug the ladder of the PMC simulation function, the
functional instructions related to CNC do not work,
except the instructions that refer the machine
position on the PMC simulation function side.
<Not available instructions>
- DISPB (Message display : SUB 41)
- EXIN (External data input : SUB 42)
- WINDR (CNC window data read : SUB 51)
(Excluding function code 28 : Reading the machine
position (machine coordinates) of controlled axes)
- WINDW (CNC window data write : SUB 52)
- AXCTL (PMC axis control : SUB 53)
<Available instructions>
- WINDR (CNC window data read : SUB 51)
(Only function code 28 : Reading the machine
position (machine coordinates) of controlled axes)
- PSGNL (Position signal output : SUB 50)
- PSGN2 (Position signal output 2 : SUB 63)
3 The Machine signal simulator does not support
either of Extended PMC Ladder Instruction
Function and Function Block Function options.
94
[Link] SIGNAL SIMULATION FUNCTION
For example, consider the following machine signal simulation.
Turn on X45.6 one second after Y12.3 turns on.
Y12.3 of PMC simulation function can be referred as X12.3 of
machine signal simulator. And, X45.6 of PMC simulation
function can be referred as Y45.6 of machine signal simulator.
Thus you should create a ladder as follows.
Refer
PMC simulation function
Modify
Machine signal simulator
Fig.8.3.5 (f) Example of ladder of machine signal simulator
95
[Link] SIGNAL SIMULATION FUNCTION
Making ladder using symbol
Using proper symbol data, ladder program of machine signal
simulator can be programmed using the same name as the symbol
defined in the ladder of PMC simulation function.
And if you use a ladder with the extended symbol feature, it is easy to
follow the modification on the assignment of the addresses of the
PMC simulation function.
Here shows the example of making and modifying the ladder of
machine signal simulator using the extended symbol feature.
Make ladder by using extended symbol
Consider the following machine signal simulation. It is an example of
making the example of Figure 7.3.5(f) by using the symbol.
Turn on SYM_X one second after SYM_Y turns on.
Operation procedure
1. and 2. are the operations of PMC simulation function side.
1. Open the LAD file of the ladder of PMC simulation function by
FANUC LADDER-III.
Fig.8.3.5 (g) Ladder of the PMC simulation function
2. Open the symbol comment editing screen and export the symbols
in the PMC simulation function.
Fig.8.3.5 (h) Export of the symbols
3. and after are the operations of machine signal simulator side.
96
[Link] SIGNAL SIMULATION FUNCTION
3. Create a new program of the machine signal simulator by FANUC
LADDER-III. Select the PMC memory C and check the extended
symbol.
Fig.8.3.5 (i) New Program
4. Open the symbol comment editing screen and import the symbol
data exported in 2..
Fig.8.3.5 (j) Import of the symbol
5. Set up multi address replace function with the following settings
and exchange the X and Y addresses.
97
[Link] SIGNAL SIMULATION FUNCTION
Fig.8.3.5 (k) Multi address replace
Replace
Fig.8.3.5 (l) Setting of the symbol after executing multi address replace
6. Pick out the signals of PMC simulation function which is referred
and changed from the machine signal simulator. Make the
ladder logic using symbols of these signals.
Fig.8.3.5 (m) Ladder of the machine signal simulator
When address of PMC simulation function's ladder changed
Here shows the example of changing the address of SYM_X to
X245.6 and SYM_Y to Y212.3.
Operation procedure
1. Open the LAD file of the ladder of PMC simulation function by
FANUC LADDER-III.
98
[Link] SIGNAL SIMULATION FUNCTION
Fig.8.3.5 (n) Ladder of the PMC simulation function
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.
Fig.8.3.5 (o) Ladder of the machine signal simulator
4. Open the symbol comment editing screen and import the symbol
data exported in 2..
Fig.8.3.5 (p) Ladder of machine signal simulator just after importing
5. Replace the X, Y address to swap with each other in multi address
function.
Fig.8.3.5 (q) Ladder of machine signal simulator after executing multi
address replace
By defining the symbols using the extended symbol function as
mentioned above, you can modify the ladder following this simple
procedure; export/import the symbol data and use multi address
replace function.
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
[Link] SIGNAL SIMULATION FUNCTION
described as When address of PMC simulation
function's ladder changed. When you changed the
address of the PMC simulation function, you have to
modify the corresponding address in the ladder of
machine signal simulator.
100
[Link] SIGNAL SIMULATION FUNCTION
8.3.6
PMC Alarm message list
The typical PMC alarms issued by the machine signal simulator are
described as follows.
Refer to the PMC PROGRAMMING
MANUAL for other PMC alarms.
Message
ER03 PROGRAM SIZE ERROR
(OPTION)
ER04 PMC TYPE UNMATCH
ER22 NO PROGRAM
8.3.7
Table8.3.6 (a) PMC alarm message list
Description
The sequence program exceeds
the maximum steps.
PMC type setting of the sequence
program is different from 31i-A
PMC (PMC memory C) or 31i-B
PMC (PMC memory D).
Back up operation is never
executed after starting the
machine signal simulator.
Measure
Reduce the size of the sequence
program.
Convert the PMC type to 31i-A
PMC (PMC memory C) or 31i-B
PMC (PMC memory D) using
FANUC LADDER-III.
Execute the back up operation of
the sequence program
Reference of CNC information
This section describes how to refer the CNC information from
machine signal simulator in case of CNC/PMC simulation function
mode.
Reference of machine position
Read the machine position of the CNC simulation function by the
window instruction in the ladder of machine signal simulator.
Use function code 28 : Reading the machine position (machine
coordinates) of controlled axes.
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
[Link] SIGNAL SIMULATION FUNCTION
8.4
MACHINE SIGNAL API FUNCTION
This section describes about the machine simulation using the
machine signal API function.
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
(Machine simulator etc.)
pmc_rdpmcrng()
nication
interface
pmc_wrpmcrng()
Fig.8.4.1 (a) Machine signal API function
The same CNC/PMC data window library as a real machine is
available, and various data and information can be exchanged with
PMC simulation function via FOCAS2/Ethernet. And the created
application may also be connected to a real machine.
In the machine signal API function of PMC simulation function,
several functions are provided, which is necessary for simulation of
machine. User may create original application using these functions.
For instance, you can create an application to show the screen on
which the axis moves according to the read machine position value
and make a specific signal that means the axis reaches to a certain
position. The PMC simulation function can accept the connection
either from the same PC or from other PC. In case of connection
from the same PC, specify [Link] to the character string which
means the IP address of the target in the argument of the
cnc_allclibhndl3() function described later. Moreover, to connect on
the same PC that is not connected to an effective network, it is
necessary to create a virtual network with using a Loopback Adapter.
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
[Link] SIGNAL SIMULATION FUNCTION
8.4.2
List of library function
The following CNC/PMC Data window library can be used in the
same way as with a real machine and the application that uses only
these functions can be connected with PMC simulation function.
CNC window function
cnc_allclibhndl3()
cnc_freelibhndl()
cnc_machine()
cnc_setpath()
cnc_getpath()
Get a library handle
Free library handle
Read machine axis position (Note1)
Set path number(for multi-path)
Get path number(for multi-path)
PMC window function
pmc_rdpmcrng() Read PMC data(area specified)
pmc_wrpmcrng() Write PMC data(area specified) (Note2)
pmc_rdpmcinfo() Read PMC data information
pmc_select_pmc_unit()
Select the PMC (Note3)
pmc_get_current_pmc_unit()
Get the current PMC unit type
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
[Link] SIGNAL SIMULATION FUNCTION
8.4.3
CNC/PMC window function
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 [Link])
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
[Link] SIGNAL SIMULATION FUNCTION
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
Entire development environment ([Link], etc.)
Sample ladder program (SAMPLE_LADDER_FS0ID.MEM /
SAMPLE_LADDER_FS31IA.MEM)
This sample application is made using Microsoft Visual Basic .NET.
As for the explanation of operation and detail of sample application,
refer to [Link].
NOTE
You must do build once before modifying it when
changing the sample application.
105
[Link] SETTINGS
VARIOUS SETTINGS
This section describes various setting to make the NCGuide suit for
customer's environment of CNC/PMC.
9.1
OPTION PARAMETER SETTINGS
Set the CNC/PMC option parameters for the NCGuide. You can set
the option parameters by the Option Setting tool, not by NCGuide
itself.
9.1.1
Start and exit
From the start menu, click [Programs] [FANUC NCGuide]
[(FS0i-D/FS31i-A)] [Option Setting], and the Option Setting tool
starts.
Fig.9.1.1 (a) Start menu Option Setting
106
[Link] SETTINGS
The following screen is displayed.
Click <Cancel> button to exit.
Fig.9.1.1 (b) Option parameter setting
NOTE
Option setting is available only when the NCGuide
is active; the NCGuide must be started in advance.
107
[Link] 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
Fig.9.1.2 (a) Option parameter setting
Note
It is necessary to restart the NCGuide to reflect the
new option setting.
108
[Link] SETTINGS
9.2
MACHINE COMPOSITION SETTINGS
This section explains the settings of machine composition of the
NCGuide.
The machine composition is a collection of parameters and other
various settings for the NCGuide. Multiple machine compositions
can be registered and switched among them, as you want. For
example, different machine compositions are created for different
users in advance; the NCGuide can be started with the settings for a
specific user simply by switching the machine composition for the
user before starting the NCGuide.
The data related to PMC simulation function, which is maintained at
each machine composition, is as follows.
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
The setting of the machine composition can be modified using other
tool. The NCGuide should not be active while you use the tool.
Fig.9.2 (a) Start menu Machine Composition Setting
Note
Refer to FANUC NCGuide CNC Simulation
Function OPERATOR's MANUAL in the installation
CD for a detail about machine composition settings.
109
[Link] SETTINGS
9.3
PMC OPTION SETTINGS
You can choose following PMC options.
Select [Tool] [Option].
Table9.3 (a) Option setting list
Tab
General
Operation mode
CNC/PMC
simulation function
PMC simulation
function
Ethernet port number
Language
Ethernet port number
PMC Memory Type
PMC Memory
Type setting *2
PMC Memory
Type setting *2
Machine Signal
Simulation
Use PMC Machine
Signal Simulation
Use PMC 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
[Link]/OUTPUT AND BACKUP OF PMC DATA
10
INPUT/OUTPUT AND BACKUP OF PMC
DATA
Input/output and backup the following PMC data can be operated by
the PMC I/O operation. You can also perform same things by import,
export and backup menu on the PMC simulation function.
Ladder
PMC parameter
PMC multi-language message
You can also save the trace result data.
10.1
I/O OPERATION IN CNC/PMC SIMULATION FUNCTION
MODE
Input/output and backup the PMC data on the I/O screen of built-in
PMC screen.
Fig.10.1 (a) I/O screen of built-in PMC
Please refer to the CNC Simulation Function OPERATOR'S
MANUAL about the target folder for MEMORY CARD device of this
I/O function.
111
[Link]/OUTPUT AND BACKUP OF PMC DATA
Note
The file name including only ASCII code can be used.
The difference between upper and lower case of
letters is not distinguished.
As for a file with long file name, the file name with
short MS-DOS form is displayed.
FLOPPY and OTHERS in the DEVICE is not
available.
10.2
I/O OPERATION OF PMC SIMULATION FUNCTION MODE
You can store ladder and PMC multi-language message data to PMC
simulation function by import operation. These imported data can be
stored to the current machine composition by backup operation after
import. The PMC parameter is periodically stored to the machine
composition.
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.
Fig.10.2.1 (a) Menu Import
2. Select file to import.
Fig.10.2.1 (b) Open file
3. Click the <Open> button.
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
[Link]/OUTPUT AND BACKUP OF PMC DATA
1. Select [File] [Export] and select the data type to export.
the case of FS31i-A PMC, select the PMC path also.
For
Fig.10.2.2 (a) Menu Export
2. Enter the file name to export.
Fig.10.2.2 (b) Save file
3. Click the < Save > button.
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.
Fig.10.2.3 (a) Menu Backup
2. Click the < Yes > button.
113
[Link]/OUTPUT AND BACKUP OF PMC DATA
Fig.10.2.3 (b) Confirmation message
114
[Link] WITH FANUC LADDER-III
11
11.1
COMMUNICATION WITH FANUC
LADDER-III
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.
Monitor display of ladder
Online edit of ladder
Display and change PMC parameter
Monitor display in state of signal
I/O operation with PMC (load from PMC and store to PMC)
The PMC simulation function and FANUC LADDER-III can be
connected either on the same PC or between different PCs.
Setting for online connection
The necessary settings for the online connection for the PMC
simulation function and FANUC LADDER-III are as follows.
Port number setting in the PMC simulation function
Host setting in the FANUC LADDER-III
Connect with the same PC
Hyper Threading setting in PC
Use in CNC/PMC simulation function mode
Online monitor setting in the CNC/PMC simulation function
mode
115
[Link] WITH FANUC LADDER-III
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
[Link] WITH FANUC LADDER-III
11.3
PMC SIMULATION FUNCTION SETTING
The way to set up is different between the two modes; CNC/PMC
simulation function mode and PMC simulation function mode.
CNC/PMC simulation function mode
Port number
Specify the port number to connect.
[General], and set the port number.
Select [Tool] - [Option]
Online monitor setting
In the CNC/PMC simulation function, you need to set up built-in
PMC online monitor. Set HIGH SPEED to USE.
Fig.11.3 (a) I/O Online setting monitor of built-in PMC
117
[Link] WITH FANUC LADDER-III
PMC simulation function mode
Port number
Specify the port number to connect.
[General], and set the port number.
Select [Tool] - [Option]
Fig.11.3 (b) Ethernet port number setting
Online monitor setting
You have nothing to do with this setting.
is always active in this mode.
118
The Ethernet function
[Link] WITH FANUC LADDER-III
11.4
CONNECT TO PMC SIMULATION FUNCTION ON SAME
PC
To connect the PMC simulation function with FANUC LADDER-III
on the same PC, you need to set up FANUC LADDER-III and the PC.
Connection
FANUC LADDER-III
Simulator
Fig.11.4 (a) Connected on the same PC
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
[Link] WITH FANUC LADDER-III
Operation on FANUC LADDER-III
1.
Select [Tool] [Communication].
Select [Network
Address] tab and click the <Add Host> button. The
following dialog is displayed, and then enter
LOCALHOST to Host.
Fig.11.4 (b) Host setting
2.
Select [Setting] tab, and move LOCALHOST, which was
created at 1, to Use device box.
Fig.11.4 (c) Use device setting
120
[Link] WITH FANUC LADDER-III
11.5
CONNECT TO PMC SIMULATION FUNCTION ON
DIFFERENT PC
To connect the PMC simulation function with FANUC LADDER-III
on different PC, you need to set up the communication setting of
FANUC LADDER-III with IP address of the PC on which the PMC
simulation function works.
Connection
PMC Simulation function
FANUC LADDER-III
Fig.11.5 (a) Connect to different PC
121