fanuc ncguide pmc simulation function

121

Click here to load reader

Upload: ken

Post on 10-Feb-2016

854 views

Category:

Documents


179 download

DESCRIPTION

Fanuc NCGuide PMC Simulation Function

TRANSCRIPT

Page 1: Fanuc NCGuide PMC Simulation Function

1

NCGuide PMC Simulation Function

OPERATOR’S MANUAL

Page 2: Fanuc NCGuide PMC Simulation Function

2

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

3 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 DISPLAY OF VERSION INFORMATION ····················································· 14

4 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

Page 3: Fanuc NCGuide PMC Simulation Function

3

5.7.1 Outline ································································································ 49

5.7.2 Operation ···························································································· 50

5.7.3 I/O operation panel set automatically ······················································ 53

6 STANDARD MACHINE OPERATOR’S PANEL WINDOW·········································· 57

6.1 OUTLINE································································································· 57

6.2 HOW TO OPEN STANDARD MACHINE OPERATOR’S PANEL······················ 58

6.2.1 In Picture mode ···················································································· 58

6.2.2 In Window mode ··················································································· 58

6.3 CONFIGURATION OF STANDARD MACHINE OPERATOR’S PANEL ············ 59

6.4 FUNCTION OF STANDARD MACHINE OPERATOR’S PANEL ······················ 60

6.5 OPERATION OF STANDARD MACHINE OPERATOR’S 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

Page 4: Fanuc NCGuide PMC Simulation Function

4

9.2 MACHINE COMPOSITION SETTINGS ····················································· 109

9.3 PMC OPTION SETTINGS ········································································ 110

10 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

Page 5: Fanuc NCGuide PMC Simulation Function

1.INTRODUCTION

5

1 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

Page 6: Fanuc NCGuide PMC Simulation Function

1.INTRODUCTION

6

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.

Page 7: Fanuc NCGuide PMC Simulation Function

1.INTRODUCTION

7

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 Available 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 : unavailable

*Available functions of AXCTL Operation Control Available

Rapid traverse 00H

Cutting feed (feed per min.) 01H

Cutting feed (feed per revolution) 02H

Skip (feed per min.) 03H

Dwell 04H

Reference pos. return 05H

Continuous feed 06H

1st ref. pos. return 2nd ref. pos. return 3rd ref. pos. return 4th ref. pos. return

07H 08H 09H 0AH

External pulse synchronization (Position coder) 0BH

External pulse synchronization (1st manual pulse generator)

0DH

External pulse synchronization (2nd manual pulse generator)

0EH

External pulse synchronization (3rd manual pulse generator)

0FH

Speed command 10H

Torque control 11H

Auxiliary function 1 12H

Auxiliary function 2 14H

Page 8: Fanuc NCGuide PMC Simulation Function

1.INTRODUCTION

8

Auxiliary function 3 15H

Machine coordinate system selection 20H

Cutting feedrate (sec/block) 21H

Simultaneous start mode off 40H

Simultaneous start mode on 41H

: available : unavailable The following function codes of the window functions are

supported.

Table1.1.2 (b) Supported window function list(1)

Group Description Function

code

Reading CNC system information 0

Reading a tool offset 13

Write a tool offset 14

Reading a workpiece origin offset value 15

Writing a workpiece origin offset value 16

Reading a parameter 17,154

Writing a parameter 18

Reading a real type parameter 321

Writing a real type parameter 323

Reading setting data 19,155

Writing setting data 20

Reading a custom macro variable 21

Writing a custom macro variable 22

Reading a custom macro variable (variable number extension) 437

Writing a custom macro variable (variable number extension) 438

Reading the CNC alarm status 23

Reading the current program number 24

Reading the current sequence number 25

Reading modal data 32

Reading diagnosis data 33

Reading the P-code macro variable 59

Writing the P-code macro variable 60

Reading CNC status information 76

Reading the current program number (8-digit program numbers) 90

Entering data on the program check screen 150

Reading clock data (date and time) 151

CNC information

Reading detailed information of CNC alarm 433

Page 9: Fanuc NCGuide PMC Simulation Function

1.INTRODUCTION

9

Table1.1.2 (c) Supported window function list(2)

Group Description Function

code

Reading the actual velocity of controlled axes 26 Reading the absolute position (absolute coordinates) of controlled axes

27

Reading the machine position (machine coordinates) of controlled axes

28

Reading a skip position (stop coordinates of skip operation (G31)) of controlled axes

29

Reading the relative position on a controlled axis 74 Reading the remaining travel 75 Reading the actual velocity of each controlled axes 91 Presetting the relative coordinate 249

Axis information

Reading the actual machine position of controlled axes 428 Moving (exchanging) tool management data numbers in a cartridge management table

329

Searching for a free pot 330 Registering new tool management data 331 Writing tool management data 332 Deleting tool management data 333 Reading tool management data 334 Writing a specified type of tool management data 335 Searching for tool management data 366 Shifting tool management data 367 Searching for a free pot (oversize tools supported) 397 Reading the total tool life data 409 Writing tool management data by specified data 419 Deleting tool management data by specified data 420 Reading tool management data by specified data 421 Writing each tool management data by specified data 422 Searching for a free pot by specified data 427 Reading a tool geometry data 429 Writing a tool geometry data 430

Tool management

functions

Moving tool management data numbers in a magazine management table

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.

Page 10: Fanuc NCGuide PMC Simulation Function

1.INTRODUCTION

10

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

CNC/PMC simulation function

PMC simulation function

Ladder execution Cooperating with FANUC LADDER-III

Display of CNC screens

X

Execution of functional instruction related to CNC

X

Debugging of Signals related to CNC

X

Execution of step sequence

X

Option parameter setting

: available : unavailable

Page 11: Fanuc NCGuide PMC Simulation Function

2.OPERATING ENVIRONMENT

11

2 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.

Page 12: Fanuc NCGuide PMC Simulation Function

3.BASICS

12

3 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.

Page 13: Fanuc NCGuide PMC Simulation Function

3.BASICS

13

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.

Page 14: Fanuc NCGuide PMC Simulation Function

3.BASICS

14

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

Page 15: Fanuc NCGuide PMC Simulation Function

4.SCREEN AND OPERATION OF PMC SIMULATION FUNCTION

15

4 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

Page 16: Fanuc NCGuide PMC Simulation Function

4.SCREEN AND OPERATION OF PMC SIMULATION FUNCTION

16

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 mode

Function

CNC/PMC simulation function

PMC simulation function

I/O such as ladder PMC I/O screen (memory card)

Import/export screen

Backup such as ladder

PMC I/O screen (flash ROM)

Backup screen

E address nonvolatile setting

Option parameter setting 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/PMC simulation function

PMC simulation function

CNC screen X Option setting Option parameter of

PMC and CNC Option parameter of PMC only

Page 17: Fanuc NCGuide PMC Simulation Function

4.SCREEN AND OPERATION OF PMC SIMULATION FUNCTION

17

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

Page 18: Fanuc NCGuide PMC Simulation Function

4.SCREEN AND OPERATION OF PMC SIMULATION FUNCTION

18

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 Window mode

Change size and position of windows

Not available Available

MDI key Always displayed Available CNC Operation panel Always displayed Available

4.2.2 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 Reference

Display Mode CNC Display Size

4.2.4 Method of switching display mode

MDI Key

Window Size

PMC (Note) I/O Operation Panel PMC Title Data Ladder Execution Status Signal Operation Replay FunctionOption

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

Help About 3.2 DISPLAY OF VERSION INFORMATION

Exit 3.1.2 Exiting PMC simulation function

NOTE This item can be hidden by checking the “Hide

[PMC] menu” on the Machine composition setting.

Page 19: Fanuc NCGuide PMC Simulation Function

4.SCREEN AND OPERATION OF PMC SIMULATION FUNCTION

19

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.

Page 20: Fanuc NCGuide PMC Simulation Function

4.SCREEN AND OPERATION OF PMC SIMULATION FUNCTION

20

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.

Main menu

Child window

Child window

Child window

Parent 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.

Page 21: Fanuc NCGuide PMC Simulation Function

4.SCREEN AND OPERATION OF PMC SIMULATION FUNCTION

21

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 Submenu Reference

File Exit 3.1.2 Exiting PMC simulation function

View Display Mode CNC Display Size MDI Key

4.2.4 Method of switching display mode

PMC (NOTE) I/O Operation Panel PMC Title Data Ladder Execution Status Signal Operation Replay Function I/O Operation Panel Setting Option

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

Window Cascade Tile Horizontally Tile Vertically Arrange Icons

Help About 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

Page 22: Fanuc NCGuide PMC Simulation Function

4.SCREEN AND OPERATION OF PMC SIMULATION FUNCTION

22

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 >. It will be displayed in “Window mode” after restart.

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.

Page 23: Fanuc NCGuide PMC Simulation Function

4.SCREEN AND OPERATION OF PMC SIMULATION FUNCTION

23

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 >. It will be displayed in “Picture mode” after restart.

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.

Page 24: Fanuc NCGuide PMC Simulation Function

AND OPERATION OF PMC SIMULATION FUNCTION 4.SCREEN

24

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.

Page 25: Fanuc NCGuide PMC Simulation Function

4.SCREEN AND OPERATION OF PMC SIMULATION FUNCTION

25

4.2.6 Ladder execution status window Execution status of the ladder of PMC is displayed.

Title information

Communication status with FANUC LADDER-IIIAlarm

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

Page 26: Fanuc NCGuide PMC Simulation Function

4.SCREEN AND OPERATION OF PMC SIMULATION FUNCTION

26

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.

Page 27: Fanuc NCGuide PMC Simulation Function

4.SCREEN AND OPERATION OF PMC SIMULATION FUNCTION

27

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 Submenu Reference File Import

Export Backup Exit

10.2.1 Import procedure 10.2.2 Export procedure 10.2.3 Backup procedure 3.1.2 Exiting PMC simulation function

View I/O Operation Panel PMC Title Ladder Execution Status Signal Operation Replay Function

5 I/O OPERATION PANEL 4.2.5 Title window 0 Ladder execution status window 6 SIGNAL OPERATION REPLAY FUNCTION

Tool I/O Operation Panel Setting Option

5 I/O OPERATION PANEL 9 VARIOUS SETTINGS 11.3 PMC SIMULATION FUNCTION SETTING

Window Cascade Tile Horizontally Tile Vertically Arrange Icons

Help About 3.2 DISPLAY OF VERSION INFORMATION

Operation in PMC Simulation function mode The screen and the operation are the same as the window mode.

Page 28: Fanuc NCGuide PMC Simulation Function

4.SCREEN AND OPERATION OF PMC SIMULATION FUNCTION

28

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

Page 29: Fanuc NCGuide PMC Simulation Function

4.SCREEN AND OPERATION OF PMC SIMULATION FUNCTION

29

4.4.3 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.

Page 30: Fanuc NCGuide PMC Simulation Function

5.I/O OPERATION PANEL

30

5 I/O OPERATION PANEL

5.1 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.

Page 31: Fanuc NCGuide PMC Simulation Function

5.I/O OPERATION PANEL

31

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.

Page 32: Fanuc NCGuide PMC Simulation Function

5.I/O OPERATION PANEL

32

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

Page 33: Fanuc NCGuide PMC Simulation Function

5.I/O OPERATION PANEL

33

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

Page 34: Fanuc NCGuide PMC Simulation Function

5.I/O OPERATION PANEL

34

5.3 CONTENTS OF I/O OPERATION PANEL SETTING DIALOG

Page node

I/O operation panel setting 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

Page 35: Fanuc NCGuide PMC Simulation Function

5.I/O OPERATION PANEL

35

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.

Page 36: Fanuc NCGuide PMC Simulation Function

5.I/O OPERATION PANEL

36

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.

Page 37: Fanuc NCGuide PMC Simulation Function

5.I/O OPERATION PANEL

37

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.

Page 38: Fanuc NCGuide PMC Simulation Function

5.I/O OPERATION PANEL

38

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.

Page 39: Fanuc NCGuide PMC Simulation Function

5.I/O OPERATION PANEL

39

Alternate The state changes between on and off every time you push the button.

Momentary 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.

Page 40: Fanuc NCGuide PMC Simulation Function

5.I/O OPERATION PANEL

40

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.

Page 41: Fanuc NCGuide PMC Simulation Function

5.I/O OPERATION PANEL

41

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

Page 42: Fanuc NCGuide PMC Simulation Function

5.I/O OPERATION PANEL

42

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.

Page 43: Fanuc NCGuide PMC Simulation Function

5.I/O OPERATION PANEL

43

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 lamp

Output ON Output OFF

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 mode

Button

CNC/PMC simulation function

PMC simulation function

Input button X F,X Output button A,C,D,E,F,G,K,M,N,

R,S,T,U,V,W,Y 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.

Page 44: Fanuc NCGuide PMC Simulation Function

5.I/O OPERATION PANEL

44

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.

Page 45: Fanuc NCGuide PMC Simulation Function

5.I/O OPERATION PANEL

45

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

Page 46: Fanuc NCGuide PMC Simulation Function

5.I/O OPERATION PANEL

46

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.

Page 47: Fanuc NCGuide PMC Simulation Function

5.I/O OPERATION PANEL

47

5.6.3 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.

Page 48: Fanuc NCGuide PMC Simulation Function

5.I/O OPERATION PANEL

48

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

Page 49: Fanuc NCGuide PMC Simulation Function

5.I/O OPERATION PANEL

49

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

Page 50: Fanuc NCGuide PMC Simulation Function

5.I/O OPERATION PANEL

50

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

Page 51: Fanuc NCGuide PMC Simulation Function

5.I/O OPERATION PANEL

51

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

Page 52: Fanuc NCGuide PMC Simulation Function

5.I/O OPERATION PANEL

52

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.

Page 53: Fanuc NCGuide PMC Simulation Function

5.I/O OPERATION PANEL

53

5.7.3 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

Page 54: Fanuc NCGuide PMC Simulation Function

5.I/O OPERATION PANEL

54

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.

Page 55: Fanuc NCGuide PMC Simulation Function

5.I/O OPERATION PANEL

55

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

Page 56: Fanuc NCGuide PMC Simulation Function

5.I/O OPERATION PANEL

56

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.

Page 57: Fanuc NCGuide PMC Simulation Function

6.STANDARD MACHINE OPERATOR’S PANEL WINDOW

57

6 STANDARD MACHINE OPERATOR’S PANEL WINDOW

6.1 OUTLINE Standard machine operator’s panel window consists of Main panel and Sub panel, which simulate the input/output signals of the actual Standard machine operator’s 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).

Fig.6.1 Standard machine operator’s panel (Main + Sub Type D)

To operate CNC by Standard machine operator’s panel, you need a ladder program that supports the Standard machine operator’s panel. Just after you create a new Machine composition, it will start the ladder program supporting the Standard machine operator’s panel. The simulation of the input/output signals of the Standard machine operator’s panel starts after the CNC comes into operation. Regardless of the assignment of the Standard machine operator’s panel, the X-signals will stay “0” before the CNC starts up.

Sub panel

Main panel

Page 58: Fanuc NCGuide PMC Simulation Function

6.STANDARD MACHINE OPERATOR’S PANEL WINDOW

58

6.2 HOW TO OPEN STANDARD MACHINE OPERATOR’S PANEL

6.2.1 In Picture mode

Open context menu and choose [Machine Operator’s 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 operator’s panel. This setting will be preserved and the Standard machine operator’s panel will appear as the same at the next start up of NCGuide.

6.2.2 In Window mode Choose the menu [View], [Machine Operator’s 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 operator’s panel. This setting will be preserved and the Standard machine operator’s panel will appear as the same at the next start up of NCGuide.

Page 59: Fanuc NCGuide PMC Simulation Function

6.STANDARD MACHINE OPERATOR’S PANEL WINDOW

59

6.3 CONFIGURATION OF STANDARD MACHINE OPERATOR’S PANEL

You can configure the assignment address of the Standard machine operator’s panel according to your ladder program. Choose menu [PMC] and [Option], and you can change the settings at “Machine Operator’s Panel” tab.

Fig.6.3 Options for Standard machine operator’s 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

Page 60: Fanuc NCGuide PMC Simulation Function

6.STANDARD MACHINE OPERATOR’S PANEL WINDOW

60

6.4 FUNCTION OF STANDARD MACHINE OPERATOR’S PANEL

The Standard machine operator’s 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 operator’s 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 Operator’s 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

Page 61: Fanuc NCGuide PMC Simulation Function

6.STANDARD MACHINE OPERATOR’S PANEL WINDOW

61

6.5 OPERATION OF STANDARD MACHINE OPERATOR’S PANEL

This section describes the operation of the Standard machine operator’s 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 Meaning of LED

Change NC mode to “MEM”

MEM mode

Change NC mode to “EDIT”

EDIT mode

Change NC mode to “MDI”

MDI mode

Change NC mode to ”RMT”

RMT mode

Change NC mode to ”REF”

REF mode

Change NC mode to ”JOG”

JOG / TJOG mode

Change NC mode to ”INC”

INC mode

Key switch Function Meaning of LED Not used (Xm+6.7)

(Yn+2.7)

Single block operation Single block operation mode

Optional block skip Optional block skip mode

Optional block stop Optional block stop mode

Change to “TEACH IN” mode

“TEACH IN” mode

Restart program Selecting program restart

Machine lock all axes Machine is locked

Page 62: Fanuc NCGuide PMC Simulation Function

6.STANDARD MACHINE OPERATOR’S PANEL WINDOW

62

Key switch Function Meaning of LED

Dry run Dry run mode

Halts automatic operation.

Automatic operation is suspended

Cycle start Automatic operation

Not used (Xm+11.2)

Automatic operation is stopped

Change feedrate Jog feedrate is x1

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

Key switch Function Meaning of LED Select rapid traverse Rapid traverse

mode

Jog feed negative direction

Feeding axis in negative direction

Not used (Xm+11.0)

(Yn+7.0)

Not used (Xm+11.1)

(Yn+7.1)

Not used (Xm+11.2)

(Yn+7.2)

Page 63: Fanuc NCGuide PMC Simulation Function

6.STANDARD MACHINE OPERATOR’S PANEL WINDOW

63

6.5.2 Operation of Sub panel

The functions of the switches of the Sub panel are as follows:

Name Image Signal Function

Emergency stop switch

Xm+2.4 Switching emergency stop mode. When the switch is pressed, “EMG” is displayed on the button.

Program protect key

Xm+1.4 Change the protection status of program.

Feedrate override rotary switch

Xm+0.0 | Xm+0.5

Apply feedrate override.

Spindle speed override rotary switch

Xm+0.6 | Xm+1.3

Apply spindle speed override. * NCGuide does not support spindle

function.

Power off swtich

N/A Terminate NCGuide.

Power on switch

N/A Not used.

Page 64: Fanuc NCGuide PMC Simulation Function

7.SIGNAL OPERATION REPLAY FUNCTION

64

7 SIGNAL OPERATION REPLAY FUNCTION

7.1 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.

Fig.7.1 (a) Signal operation replay function

PMC Simulation function

Signal operation replay function

Memory

I/O operation panel Record

Play

Signal operation file

Read Save

Trace result file

Read

Edit

Spreadsheet etc.

Page 65: Fanuc NCGuide PMC Simulation Function

7.SIGNAL OPERATION REPLAY FUNCTION

65

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.

Page 66: Fanuc NCGuide PMC Simulation Function

7.SIGNAL OPERATION REPLAY FUNCTION

66

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.

Page 67: Fanuc NCGuide PMC Simulation Function

7.SIGNAL OPERATION REPLAY FUNCTION

67

The current step number and the total steps are shown. There is no limitation in the total step number.

(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.

Page 68: Fanuc NCGuide PMC Simulation Function

7.SIGNAL OPERATION REPLAY FUNCTION

68

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.

Page 69: Fanuc NCGuide PMC Simulation Function

7.SIGNAL OPERATION REPLAY FUNCTION

69

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. Identifier: PMC SIGNAL DATA

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.

Page 70: Fanuc NCGuide PMC Simulation Function

7.SIGNAL OPERATION REPLAY FUNCTION

70

Data type Bit Byte Word Dword Abbreviation Bi B W 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.

Fig.7.4 (a) Example of display in text form

CHAIN, C:\ filename. csv

SET,200,X0.0,1, Bi,X0.1,0, Bi,X20,16#1,B

SET,100,X0.0,0, Bi,X0.1,1, Bi,X20,16#2,B

SET,0,X0.0,1,Bi,X0.1,0, Bi,X20,16#3,B

REMARK,ABC

PMC SIGNAL DATA

PMC SIGNAL DATA REMARK ABC SET 0 X0.0 1 Bi X0.1 0 Bi X20 16#3 BSET 100 X0.0 0 Bi X0.1 1 Bi X20 16#2 BSET 200 X0.0 1 Bi X0.1 0 Bi X20 16#1 BCHAIN C:\filename.csv

Fig.7.4 (b) Example of display in table

Page 71: Fanuc NCGuide PMC Simulation Function

7.SIGNAL OPERATION REPLAY FUNCTION

71

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.

Page 72: Fanuc NCGuide PMC Simulation Function

7.SIGNAL OPERATION REPLAY FUNCTION

72

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.

Page 73: Fanuc NCGuide PMC Simulation Function

8.MACHINE SIGNAL SIMULATION FUNCTION

73

8 MACHINE SIGNAL SIMULATION FUNCTION

8.1 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.

MachinePMC simulation function

Simulate the machine signal

by using the ladder and

FOCAS2 compatible function.

Input

Output

Fig.8.1 (a) Machine signal simulation function

Page 74: Fanuc NCGuide PMC Simulation Function

8.MACHINE SIGNAL SIMULATION FUNCTION

74

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.

PMC simulation function Machine signal simulator

Realized by ladder program

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.

PMC simulation function Application

(Machine simulator etc.)

pmc_rdpmcrng()

pmc_wrpmcrng()

Realized by FOCAS2

compatible function

Read and write the I/O

signals by FOCAS2

compatible function

Commu-

nication

interface

I/O area

FOCAS2/

Ethernet

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.

Page 75: Fanuc NCGuide PMC Simulation Function

8.MACHINE SIGNAL SIMULATION FUNCTION

75

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.

Page 76: Fanuc NCGuide PMC Simulation Function

8.MACHINE SIGNAL SIMULATION FUNCTION

76

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 Machine signal simulator

I/O area

1st ladder 1st PMC

2nd ladder 2nd PMC

3rd ladder 3rd PMC

I/O area

I/O area

Fig.8.3.1 (a) Debugging of multi-path PMC

Page 77: Fanuc NCGuide PMC Simulation Function

8.MACHINE SIGNAL SIMULATION FUNCTION

77

Specification of ladder

Basic specification

Table8.3.1 (a) Basic specification of machine signal simulator (1)

Function Machine signal simulator for NCGuide of FS31i-A, FS0-iD

1st ladder 2nd ladder 3rd ladder

Model 31i -A PMC (PMC Memory-C)

31i -A PMC (PMC Memory-C)

31i -A PMC (PMC Memory-C)

Program capacity Up to about 32,000 steps

Up to about 32,000 steps Up to about 32,000 steps

Table8.3.1 (b) Basic specification of machine signal simulator (2)

Function 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

Model 31i –B PMC (PMC Memory-D)

31i –B PMC (PMC Memory-D)

31i –B PMC (PMC Memory-D)

31i –B PMC (PMC Memory-D)

31i –B PMC (PMC Memory-D)

31i –B PMC (PMC Memory-D)

Program capacity

Up to about 32,000 steps

Up to about 32,000 steps

Up to about 32,000 steps

Up to about 32,000 steps

Up to about 32,000 steps

Up to about 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. : Executed as NOP instruction. : Not available.)

Instruction group

Instruction

name

SUBNo.

Processing Machine signal simulator for

NCGuide

1 TMR 3 Timer processing (Note 1)

2 TMRB 24 Fixed-timer processing

3 TMRC 54 Timer processing

Timer

4 TMRBF 77 Fixed off-delay timer processing

1 CTR 5 Counter processing (Note 1) Counter

2 CTRB 56 Counter processing (Note 1)

Page 78: Fanuc NCGuide PMC Simulation Function

8.MACHINE SIGNAL SIMULATION FUNCTION

78

Instruction group

Instruction

name

SUBNo.

Processing Machine signal simulator for

NCGuide

3 CTRC 55 Counter processing

1 MOVB 43 1-byte transfer

2 MOVW 44 2-byte transfer

3 MOVD 47 4-byte transfer

4 MOVN 45 Transfer of arbitrary number of bytes

5 MOVE 8 Data transfer after logical product

6 MOVOR 28 Data transfer after logical sum

7 XMOVB 35 Index modification binary data transfer

Data transfer

8 XMOV 18 Index modification data transfer

1 EQB 200 1-byte comparison (equal)

2 EQW 201 2-byte comparison (equal)

3 EQD 202 4-byte comparison (equal)

4 NEB 203 1-byte comparison (not equal)

5 NEW 204 2-byte comparison (not equal)

6 NED 205 4-byte comparison (not equal)

7 GTB 206 1-byte comparison (greater than)

8 GTW 207 2-byte comparison (greater than)

9 GTD 208 4-byte comparison (greater than)

10 LTB 209 1-byte comparison (less than)

11 LTW 210 2-byte comparison (less than)

12 LTD 211 4-byte comparison (less than)

13 GEB 212 1-byte comparison (greater or equal)

14 GEW 213 2-byte comparison (greater or equal)

15 GED 214 4-byte comparison (greater or equal)

16 LEB 215 1-byte comparison (less or equal)

17 LEW 216 2-byte comparison (less or equal)

18 LED 217 4-byte comparison (less or equal)

19 RNGB 218 1-byte comparison (range)

20 RNGW 219 2-byte comparison (range)

21 RNGD 220 4-byte comparison (range)

22 COMPB 32 Binary comparison

23 COMP 15 Comparison

Comparison

24 COIN 16 Coincidence check

1 DSCHB 34 Binary data search Data search

2 DSCH 17 Data search

1 DIFU 57 Rising-edge detection

2 DIFD 58 Falling-edge detection

3 EOR 59 Exclusive OR

4 AND 60 Logical AND

5 OR 61 Logical OR

6 NOT 62 Logical NOT

7 PARI 11 Parity check

Bit operation

8 SFT 33 Shift register

1 COD 7 Code conversion

2 CODB 27 Binary code conversion

3 DCNV 14 Data conversion

4 DCNVB 31 Extended data conversion

5 DEC 4 Decoding

Code conversion

6 DECB 25 Binary decoding

Page 79: Fanuc NCGuide PMC Simulation Function

8.MACHINE SIGNAL SIMULATION FUNCTION

79

Instruction group

Instruction

name

SUBNo.

Processing Machine signal simulator for

NCGuide

1 ADDB 36 Binary addition

2 SUBB 37 Binary subtraction

3 MULB 38 Binary multiplication

4 DIVB 39 Binary division

5 ADD 19 BCD addition

6 SUB 20 BCD subtraction

7 MUL 21 BCD multiplication

8 DIV 22 BCD division

9 NUMEB 40 Binary constant definition

Operation

10 NUME 23 BCD-constant definition

1 DISPB 41 Message display

2 EXIN 42 External data input

3 WINDR 51 CNC window data read (Note 2)

4 WINDW 52 CNC window data write

5 AXCTL 53 PMC axis control

6 PSGN2 63 Position signal

CNC function

7 PSGNL 50 Position signal

1 COM 9 Common line control

2 COME 29 End of common line control

3 JMP 10 Jump

4 JMPE 30 End of jump

5 JMPB 68 Label jump 1

6 JMPC 73 Label jump 2

7 LBL 69 Label

8 CALL 65 Conditional subprogram call

9 CALLU 66 Unconditional subprogram call

10 SP 71 Subprogram

11 SPE 72 End of subprogram

12 END1 1 End of first-level program

13 END2 2 End of second-level program

14 END3 48 End of third-level program

15 END 64 End of ladder program

16 NOP 70 No operation

17 CS 74 Case call

18 CM 75 Sub program call in case call

Program control

19 CE 76 End of case call

1 ROT 6 Rotation control Rotation control 2 ROTB 26 Binary rotation control

1 SPCNT 46 Spindle control

2 DISP 49 Message display

3 MMCWR 98 MMC window data read

4 MMCWW 99 MMC window data write

5 FNC90 90 Arbitrary-function instruction 1

6 FNC91 91 Arbitrary-function instruction 2

7 FNC92 92 Arbitrary-function instruction 3

8 FNC93 93 Arbitrary-function instruction 4

9 FNC94 94 Arbitrary-function instruction 5

10 FNC95 95 Arbitrary-function instruction 6

Invalid instruction

11 FNC96 96 Arbitrary-function instruction 7

Page 80: Fanuc NCGuide PMC Simulation Function

8.MACHINE SIGNAL SIMULATION FUNCTION

80

Instruction group

Instruction

name

SUBNo.

Processing Machine signal simulator for

NCGuide

12 FNC97 97 Arbitrary-function instruction 8

NOTE 1 Memory of PMC parameter is common between

PMC simulation function and machine signal simulator. So, set unique number not to conflict the number parameter of the functional instructions in two ladder programs which shares the memory.

2 Only the function “Reading the machine position (machine coordinates) of controlled axes” is available. Other function codes do not work.

3 The Machine signal simulator does not support either of “Extended PMC Ladder Instruction Function” and “Function Block Function” options.

Page 81: Fanuc NCGuide PMC Simulation Function

8.MACHINE SIGNAL SIMULATION FUNCTION

81

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

Y X

X Y

D D

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

Signal kind SymbolMachine signal simulator for

NCGuide

Corresponding address of PMC

simulation function

X X0 to X127

X200 to X327

X400 to X527

X600 to X727

Y0 to Y127

Y200 to Y327

Y400 to Y527

Y600 to Y727

Signal input to the PMC

from the machine (Note 1)

X1000 to X1127 Y1000 to Y1127

Y Y0 to Y127

Y200 to Y327

Y400 to Y527

Y600 to Y727

X0 to X127

X200 to X327

X400 to X527

X600 to X727

Signal output from the

PMC to the machine (Note 1)

Y1000 to Y1127 X1000 to X1127

Signal input to the PMC

from the CNC (Note 2)

F F0 to F767

F1000 to F1767

F2000 to F2767

F3000 to F3767

F4000 to F4767

F5000 to F5767

F6000 to F6767

F7000 to F7767

F8000 to F8767

F9000 to F9767

G0 to G767

G1000 to 1767

G2000 to 2767

G3000 to 3767

G4000 to 4767

G5000 to 5767

G6000 to 6767

G7000 to 7767

G8000 to 8767

G9000 to G9767

Page 82: Fanuc NCGuide PMC Simulation Function

8.MACHINE SIGNAL SIMULATION FUNCTION

82

Signal kind SymbolMachine signal simulator for

NCGuide

Corresponding address of PMC

simulation function

Signal output from the

PMC to the CNC (Note 2)

G G0 to G767

G1000 to 1767

G2000 to 2767

G3000 to 3767

G4000 to 4767

G5000 to 5767

G6000 to 6767

G7000 to 7767

G8000 to 8767

G9000 to G9767

F0 to F767

F1000 to F1767

F2000 to F2767

F3000 to F3767

F4000 to F4767

F5000 to F5767

F6000 to F6767

F7000 to F7767

F8000 to F8767

F9000 to F9767

Signal input to other

PMC path M M0 to M767 M0 to M767

Signal output from other

PMC path N N0 to N767 N0 to N767

Internal relay (Note 3) R* R0 to R15999 R0 to R15999

System relay (Note 4) Z Z0 to Z499 (None)

Extra relay E E0 to E9999 E0 to E9999

Message display (Note 3)

A*

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

precision T9000 to T9999 T9000 to T9999

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

(Note 4) K900 to K999 (None)

Data table (Note 3) D* D0 to D19999 D0 to D19999

Label (Note 5) L L1 to L9999 (None)

Subprogram (Note 5) P 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

Page 83: Fanuc NCGuide PMC Simulation Function

8.MACHINE SIGNAL SIMULATION FUNCTION

83

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

SharedD9999

D19999

Shared

Not sharedD10000

Fig.8.3.1 (c) Supplement of note 2

Page 84: Fanuc NCGuide PMC Simulation Function

8.MACHINE SIGNAL SIMULATION FUNCTION

84

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

Page 85: Fanuc NCGuide PMC Simulation Function

8.MACHINE SIGNAL SIMULATION FUNCTION

85

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.

Page 86: Fanuc NCGuide PMC Simulation Function

8.MACHINE SIGNAL SIMULATION FUNCTION

86

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.

Page 87: Fanuc NCGuide PMC Simulation Function

8.MACHINE SIGNAL SIMULATION FUNCTION

87

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.

Fig.8.3.4 (a) Machine signal simulator screen

Communication status with FANUC LADDER-III

Title information

Alarm

Ladder execution status

Ladder run/stop

Title information Displays the information of the title data in each path of multi-path PMC.

Ladder execution status

Displays run/stop status of the ladder. : Ladder is running. : Ladder is stopping.

Alarm

Displays alarm status. The content of the PMC alarm can be confirmed with FANUC LADDER-III. Refer to “8.3.6 PMC alarm message list” for details.

: Alarm occurs : No alarm

Run/stop Ladder

Button to run or stop ladder. : Run ladder

Page 88: Fanuc NCGuide PMC Simulation Function

8.MACHINE SIGNAL SIMULATION FUNCTION

88

: 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

Page 89: Fanuc NCGuide PMC Simulation Function

8.MACHINE SIGNAL SIMULATION FUNCTION

89

8.3.5 Procedure of machine simulation with machine signal simulator

This section describes the procedure of executing the machine signal simulation function.

Refer to “Making the ladder”.

Start

3 Storing the ladder to machine signal simulator.

4 Running the ladder of PMC simulation function

and machine signal simulator. (Share of signals)

2 Starting PMC simulation function and machine

signal simulator.

Refer to “Procedure of machine

simulation”.

1 Making the ladder of machine signal simulator.

End

Fig.8.3.5 (a) Flow of procedure

FANUC LADDER-III

Ladder data

3 Storing

1 Making ladder withsignals to debug Y0.0

2 Start simulation

PMC simulation function Machine signal simulator

I/O area

4 share of signals

Fig.8.3.5 (b) Outline of machine signal simulation procedure

Page 90: Fanuc NCGuide PMC Simulation Function

8.MACHINE SIGNAL SIMULATION FUNCTION

90

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.

Modify

Refer PMC simulation function

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”.

Page 91: Fanuc NCGuide PMC Simulation Function

8.MACHINE SIGNAL SIMULATION FUNCTION

91

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.

Page 92: Fanuc NCGuide PMC Simulation Function

8.MACHINE SIGNAL SIMULATION FUNCTION

92

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.

Page 93: Fanuc NCGuide PMC Simulation Function

8.MACHINE SIGNAL SIMULATION FUNCTION

93

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.

Page 94: Fanuc NCGuide PMC Simulation Function

8.MACHINE SIGNAL SIMULATION FUNCTION

94

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.

Page 95: Fanuc NCGuide PMC Simulation Function

8.MACHINE SIGNAL SIMULATION FUNCTION

95

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.

Modify

Refer PMC simulation function

Machine signal simulator

Fig.8.3.5 (f) Example of ladder of machine signal simulator

Page 96: Fanuc NCGuide PMC Simulation Function

8.MACHINE SIGNAL SIMULATION FUNCTION

96

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.

Page 97: Fanuc NCGuide PMC Simulation Function

8.MACHINE SIGNAL SIMULATION FUNCTION

97

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.

Page 98: Fanuc NCGuide PMC Simulation Function

8.MACHINE SIGNAL SIMULATION FUNCTION

98

Fig.8.3.5 (k) Multi address 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.

Replace

Page 99: Fanuc NCGuide PMC Simulation Function

8.MACHINE SIGNAL SIMULATION FUNCTION

99

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

Page 100: Fanuc NCGuide PMC Simulation Function

8.MACHINE SIGNAL SIMULATION FUNCTION

100

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.

Page 101: Fanuc NCGuide PMC Simulation Function

8.MACHINE SIGNAL SIMULATION FUNCTION

101

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.

Table8.3.6 (a) PMC alarm message list

Message Description Measure

ER03 PROGRAM SIZE ERROR (OPTION)

The sequence program exceeds the maximum steps.

Reduce the size of the sequence program.

ER04 PMC TYPE UNMATCH

PMC type setting of the sequence program is different from 31i-A PMC (PMC memory C) or 31i-B PMC (PMC memory D).

Convert the PMC type to 31i-A PMC (PMC memory C) or 31i-B PMC (PMC memory D) using FANUC LADDER-III.

ER22 NO PROGRAM Back up operation is never executed after starting the machine signal simulator.

Execute the back up operation of the sequence program

8.3.7 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).

Page 102: Fanuc NCGuide PMC Simulation Function

8.MACHINE SIGNAL SIMULATION FUNCTION

102

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.

PMC simulation function Application

(Machine simulator etc.)

pmc_rdpmcrng()

pmc_wrpmcrng()

Realized by FOCAS2

compatible function

Commu-

nication

interface

I/O area

FOCAS2/

Ethernet

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 “127.0.0.1” 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

Page 103: Fanuc NCGuide PMC Simulation Function

8.MACHINE SIGNAL SIMULATION FUNCTION

103

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() Get a library handle cnc_freelibhndl() Free library handle cnc_machine() Read machine axis position (Note1) cnc_setpath() Set path number(for multi-path) cnc_getpath() 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.

Page 104: Fanuc NCGuide PMC Simulation Function

8.MACHINE SIGNAL SIMULATION FUNCTION

104

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 “192.168.0.1”) Once a library handle is obtained, it should be held while a function call is made in the application, because it is necessary to pass the handle number as an argument to every CNC/PMC window function. A library handle is owned by the task that obtained it. Even if the task-A which has already obtained a library handle notifies its library handle to another task-B, the task-B cannot use the library handle. One task can obtain multiple library handles by calling the function to get a library handle repeatedly. For example, on the 2-path control system, a task may obtain two library handles and use them for each path individually. When a task terminates, the library handles that belong to the task must be released by cnc_freelibhndl() function.

Warning If a task terminates without releasing its library

handles, the memory area assigned for the management of the handle remains allocated and may be accumulated as unusable memory. If it happens repeatedly, a large amount of memory may be consumed and may cause shortage of memory or failure to obtain a new library handle.

Page 105: Fanuc NCGuide PMC Simulation Function

8.MACHINE SIGNAL SIMULATION FUNCTION

105

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 (sample.sln, 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 “Readme.txt”.

NOTE You must do build once before modifying it when

changing the sample application.

Page 106: Fanuc NCGuide PMC Simulation Function

9.VARIOUS SETTINGS

106

9 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”

Page 107: Fanuc NCGuide PMC Simulation Function

9.VARIOUS SETTINGS

107

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.

Page 108: Fanuc NCGuide PMC Simulation Function

9.VARIOUS SETTINGS

108

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.

Page 109: Fanuc NCGuide PMC Simulation Function

9.VARIOUS SETTINGS

109

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.

Page 110: Fanuc NCGuide PMC Simulation Function

9.VARIOUS SETTINGS

110

9.3 PMC OPTION SETTINGS You can choose following PMC options. Select [Tool] – [Option].

Table9.3 (a) Option setting list

Tab

Operation mode

General PMC Memory Type Machine Signal

Simulation

CNC/PMC simulation function

Ethernet port number PMC Memory Type setting *2

Use PMC Machine Signal Simulation

PMC simulation function

Language Ethernet port number

PMC Memory Type setting *2

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.

Page 111: Fanuc NCGuide PMC Simulation Function

10.INPUT/OUTPUT AND BACKUP OF PMC DATA

111

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.

Page 112: Fanuc NCGuide PMC Simulation Function

10.INPUT/OUTPUT AND BACKUP OF PMC DATA

112

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. 4. After importing, use backup menu to store the ladder and PMC

multi-language message data to the current machine composition. 10.2.2 Export procedure

Page 113: Fanuc NCGuide PMC Simulation Function

10.INPUT/OUTPUT AND BACKUP OF PMC DATA

113

1. Select [File] – [Export] and select the data type to export. For the case of FS31i-A PMC, select the PMC path also.

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.

Page 114: Fanuc NCGuide PMC Simulation Function

10.INPUT/OUTPUT AND BACKUP OF PMC DATA

114

Fig.10.2.3 (b) Confirmation message

Page 115: Fanuc NCGuide PMC Simulation Function

11.COMMUNICATION WITH FANUC LADDER-III

115

11 COMMUNICATION WITH FANUC LADDER-III

11.1 OUTLINE PMC simulation function has a network communication function to connect with FANUC LADDER-III online. You can use the following online functions on FANUC LADDER-III as well as in case of connecting to an actual PMC. 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

Page 116: Fanuc NCGuide PMC Simulation Function

11.COMMUNICATION WITH FANUC LADDER-III

116

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.

Page 117: Fanuc NCGuide PMC Simulation Function

11.COMMUNICATION WITH FANUC LADDER-III

117

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. Select [Tool] - [Option] – [General], and set the port number.

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

Page 118: Fanuc NCGuide PMC Simulation Function

11.COMMUNICATION WITH FANUC LADDER-III

118

PMC simulation function mode Port number

Specify the port number to connect. Select [Tool] - [Option] – [General], and set the port number.

Fig.11.3 (b) Ethernet port number setting

Online monitor setting

You have nothing to do with this setting. The Ethernet function is always active in this mode.

Page 119: Fanuc NCGuide PMC Simulation Function

11.COMMUNICATION WITH FANUC LADDER-III

119

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.

FANUC LADDER-III

Simulator

Connection

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.

Page 120: Fanuc NCGuide PMC Simulation Function

11.COMMUNICATION WITH FANUC LADDER-III

120

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

Page 121: Fanuc NCGuide PMC Simulation Function

11.COMMUNICATION WITH FANUC LADDER-III

121

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.

FANUC LADDER-IIIPMC Simulation function

Connection

Fig.11.5 (a) Connect to different PC