Funuc Lader III
Funuc Lader III
Welding machine
Welding machine Welding machine
Contact us:
http://cti-sumy.com.ua
https://www.facebook.com/cti.sumy
https://www.youtube.com/channel/UCyYGmKVZ2FwZ
noX4RV8Is0g
Semi-automatic welding
machine
We have more than 10 years of experience in machine building and will gladly help
Taking into account the peculiarities of your manufacture we can make a custom
OPERRATOR’S MANUAL
B-63484EN/05
• No part of this manual may be reproduced in any form.
• All specifications and designs are subject to change without notice.
The export of this product is subject to the authorization of the government of the country
from where the product is exported.
In this manual we have tried as much as possible to describe all the various matters.
However, we cannot describe all the matters which must not be done, or which cannot be
done, because there are so many possibilities.
Therefore, matters which are not especially described as possible in this manual should be
regarded as ”impossible”.
This manual contains the program names or device names of other companies, some of
which are registered trademarks of respective owners. However, these names are not
followed by or in the main body.
B-63484EN/05 SAFETY PRECAUTIONS
SAFETY PRECAUTIONS
This manual includes safety precautions for protecting the user and
preventing damage to the machine. Precautions are classified into
Warnings and Cautions according to their bearing on safety. Also,
supplementary information is described as Notes. Read the Warnings,
Cautions, and Notes thoroughly before attempting to use the machine.
WARNING
Applied when there is a danger of the user being
injured or when there is a danger of both the user
being injured and the equipment being damaged if
the approved procedure is not observed.
CAUTION
Applied when there is a danger of the equipment
being damaged, if the approved procedure is not
observed.
NOTE
Notes is used to indicate supplementary
information other than Warnings and Cautions.
s-1
SAFETY PRECAUTIONS B-63484EN/05
WARNING
1 Before operating the machine, thoroughly check
the entered data. Operating the machine with
incorrectly specified data may result in the machine
behaving unexpectedly, possibly causing damage
to the workpiece and/or machine itself, or injury to
the user.
2 The parameters for the CNC and PMC are
factory-set. Usually, there is no need to change
them. When, however, there is no alternative other
than to change a parameter, ensure that you fully
Failure to set a parameter correctly may result in
the machine behaving unexpectedly, possibly
causing damage to the workpiece and/or machine
itself, or injury to the user.
NOTE
Command programs, parameters, and variables
are stored in nonvolatile memory in the CNC.
Generally, the contents of memory are not lost by a
power on/off operation. However, the contents of
memory may be erased by mistake, or important
data in nonvolatile memory may have to be erased
upon recovering from a failure.
To enable the restoration of data as soon as
possible if such a situation arises, always make a
backup of the data in advance.
s-2
B-63484EN/05 SAFETY PRECAUTIONS
The following summarizes the points that the user should keep in
mind when using Ladder Editing Package (Windows). Before using
Ladder Editing Package (Windows), read the following:
CAUTION
In this manual we have tried as much as possible
to describe all the various matters.
However, we cannot describe all the matters which
must not be done, or which cannot be done,
because there are so many possibilities.
Therefore, matters which are not especially
described as possible in this manual should be
regarded as “impossible”
s-3
B-63484EN/05 PREFACE
PREFACE
Thank you for purchasing Ladder Editing Package (Windows)
(Specification : A08B-9210-J511).
Ladder Editing Package (Windows) is a programming system for
developing sequence programs for FANUC PMCs.
This software runs on a FANUC OPEN CNC.
Use the sequence program development software listed below to
develop sequence programs, using a personal computer that operates
independently of a FANUC OPEN CNC. For how to use the software,
refer to the respective operator's manuals.
Name Operator’s Manual
FANUC LADDER FANUC LADDER Operator’s Manual (B-66131E)
FANUC LADDER-II FANUC LADDER-II Operator’s Manual (B-66184EN)
FANUC LADDER-III FANUC LADDER-III Operator’s Manual (B-66234EN)
p-1
PREFACE B-63484EN/05
Features
Using the FANUC PMC sequence program development environment
on an OPEN CNC offers a more comfortable manipulation
environment.
OPEN CNC
CNC/PMC Machine
HSSB, Ethernet
DI/DO
I/O operation
Online functions using HSSB or Ethernet
by using the
- Monitoring and debugging sequence programs
PMC I/O
- Executing and stopping sequence programs
- Transferring sequence programs
- Writing to flash ROM
- Setting and displaying PMC parameters
Keyboard
Printer
Drawing
Hard disk
Outline Diagram
NOTE
1 Depending on the PMC model, the online functions that use HSSB or Ethernet
have different specifications or cannot be used. For details on the functions, refer to
the relevant PMC programming manual.
2 For Ethernet, I/O operations that use [HOST] of the PMC I/O function cannot be
performed.
3 Multiple Ladder Editing Package (Windows) programs can be started at the same
time.
Multiple Ladder Editing Package (Windows) programs cannot be connected to one
PMC at the same time. For one PC, Ladder Editing Package (Windows) can be
connected to a maximum of eight PMCs.
p-2
B-63484EN/05 PREFACE
• Main functions
⋅ Inputting, displaying, editing, and outputting sequence
programs
⋅ Monitoring and debugging sequence programs
(Displaying the signal status, alarms, and PMC status, and
ladder diagram online monitoring)
⋅ Setting and displaying PMC parameters
⋅ Executing and stopping sequence programs
⋅ Transfer to and from the PMC (RAM)
⋅ Writing to flash ROM
⋅ Printing sequence programs
• Supported PMC models
PMC-SA1/SA3/SA5/SB3/SB4/SB5/SB6/SB7/SC3/SC4
30i-A PMC / 31i-A PMC / 32i-A PMC
p-3
PREFACE B-63484EN/05
NOTE
*1 • Available when the PMC software series and edition are 4066/12, 4068/11, or
later and the CNC software series and edition are B0A1/23, B1A1/20, BDA1/12,
BEA1/12, or later.
*2 • Available when the PMC software series and edition are 4074/01 or later. Not
available with the 4075 series. The supported CNC software series and editions
are 8838/01, 883C/02, 8839/01, 8834/07, 883E/03, and later.
• Available when the PMC software series and edition are 4078/04 or later. The
supported CNC software series and editions are 8880/11 and later.
*3 • Available when the PMC software series and edition are 4048/10, 4068/08, or
later.
• Not available with the 4046 or 4047 PMC software series.
*4 • Available when the PMC software series and edition are 406N/13 or later.
• In extended function, symbol is maximum 40 characters. Comment is maximum
255 characters and 4 kinds available for multi-comment. And local symbol and
automatic address assigment are supported.
p-4
B-63484EN/05 PREFACE
Machine
NOTE
The CRT/MDI keypad cannot be used to activate a
Japanese-language entry system. To enter
comments in Japanese, use the full keyboard.
High-speed CNC
serial bus
Personal Machine
computer
p-5
PREFACE B-63484EN/05
CNC
High-speed
serial bus Machine
Machine
Personal
computer
Machine
Intelligent
terminal CNC
High-speed
serial bus
Machine
p-6
B-63484EN/05 PREFACE
• CD-ROM disks
FANUC Ladder Editing Package (Windows) (A08B-9210-J511)
NOTE
You must read the release note (READMEJ.TXT)
on the “\Disk1 folder” of the product package. The
release note provides detailed information on the
package and information not included in the
operator's manual.
p-7
PREFACE B-63484EN/05
SAFETY PRECAUTIONS
Describes general precautions that must be observed to ensure
the safe use of this software.
PREFACE
Briefly describes the main features of this software. Also
describes how to use this manual and other information to
understand the use of this software.
1. SETUP
Describes the software operating environment and explains how
to set up this software to ready it for use.
2. BASICS
Describes the basic items that the user should understand before
using this software.
3. CREATING AND EDITING SEQUENCE PROGRAMS
Describes how to create and edit sequence programs.
4. PRINTING SEQUENCE PROGRAMS
Describes how to print sequence programs.
5. COMPILATION AND DECOMPILATION
Describes how to compile and decompile programs and also
describes ladder program protection by password.
6. MNEMONIC EDITING
Describes conversion to mnemonic files and the mnemonic file
format.
7. INPUT/OUTPUT
Describes input/output of sequence programs (loading sequence
programs from the PMC and storing them into the PMC).
8. EXECUTING AND STOPPING SEQUENCE PROGRAMS
Describes how to execute and stop sequence programs.
9. DIAGNOSIS
Describes the online diagnosis functions including ladder
monitoring, signal tracing, and signal analysis.
10. EXTENDED SYMBOL/COMMENT FUNCTION
11. CONVERTING SEQUENCE PROGRAMS
Describes how to convert DOS sequence programs to Windows
sequence programs.
12. ERROR MESSAGES
Describes the error messages displayed by this software.
APPENDIX
Provides information that is to be read as necessary.
p-8
B-63484EN/05 PREFACE
• Mouse operations
Example of notation Explanation
Click To press and then immediately release a
mouse button.
Double-click To click a mouse button twice in rapid
succession.
Drag To move the mouse while holding down
a mouse button, and then releasing the
button at a desired position.
• Folders
Directories and folders are collectively referred to as folders.
p-9
PREFACE B-63484EN/05
• PMC models
In this manual, the PMC models are abbreviated as follows:
Abbreviation Name
OPEN CNC FANUC OPEN CNC
MMC-IV FANUC MMC-IV
HSSB High Speed Serial Bus
p-10
B-63484EN/05 TABLE OF CONTENTS
TABLE OF CONTENTS
SAFETY PRECAUTIONS............................................................................s-1
PREFACE ....................................................................................................p-1
1 SETUP..................................................................................................... 1
1.1 OPERATING ENVIRONMENT ...................................................................... 2
1.2 INSTALLATION AND UNINSTALLATION ..................................................... 4
1.2.1 Installation ................................................................................................................4
1.2.2 Uninstallation ...........................................................................................................9
2 BASICS ................................................................................................. 11
2.1 SYSTEM FILES ........................................................................................... 12
2.2 START AND END........................................................................................ 13
2.2.1 Starting Ladder Editing Package (Windows) .........................................................13
2.2.2 Starting Ladder Editing Package (Windows) (Online Connection) .......................13
2.2.3 Terminating Ladder Editing Package (Windows) ..................................................13
2.3 WINDOW NAMES AND FUNCTIONS......................................................... 14
2.3.1 Main Menu .............................................................................................................15
2.3.2 Toolbar ...................................................................................................................16
2.3.3 Edit Toolbar............................................................................................................17
2.3.4 Soft Keys ................................................................................................................17
2.3.5 Status Bar ...............................................................................................................17
2.3.6 Status Monitor ........................................................................................................17
2.4 DISPLAYING VERSION INFORMATION .................................................... 18
3 CREATING AND EDITING SEQUENCE PROGRAMS......................... 19
3.1 SEQUENCE PROGRAMS........................................................................... 20
3.1.1 Procedure for Creating Sequence Programs...........................................................20
3.1.2 PMC Programming Method ...................................................................................24
3.1.3 Work Folders and Online Program Files................................................................25
3.1.4 PMC Type (Step Sequence and I/O Link Expansion) Setting ...............................26
3.1.5 Device Selection.....................................................................................................27
3.2 EDITING TITLES ......................................................................................... 29
3.2.1 Procedure................................................................................................................29
3.3 EDITING LADDER DIAGRAMS................................................................... 31
3.3.1 Preparing for Offline Editing .................................................................................31
3.3.2 Preparing for Online Editing ..................................................................................31
c-1
TABLE OF CONTENTS B-63484EN/05
c-2
B-63484EN/05 TABLE OF CONTENTS
3.8.1 Procedure..............................................................................................................144
3.9 SAVING PROGRAMS WITH NAMES ....................................................... 149
3.9.1 Procedure..............................................................................................................149
3.9.2 About the Deletion of the Unused Net Comment.................................................149
3.10 IMPORTING PROGRAMS ........................................................................ 150
3.10.1 Procedure..............................................................................................................150
3.10.2 Import of the External Symbol File......................................................................156
3.11 EXPORTING PROGRAMS........................................................................ 159
3.11.1 Procedure..............................................................................................................159
3.11.2 Export of the External Symbol file.......................................................................163
3.12 CHECKING DUPLICATE COIL ................................................................. 166
3.12.1 Duplicate Coil Screen...........................................................................................166
c-5
TABLE OF CONTENTS B-63484EN/05
c-6
B-63484EN/05 TABLE OF CONTENTS
c-7
TABLE OF CONTENTS B-63484EN/05
c-9
TABLE OF CONTENTS B-63484EN/05
c-10
B-63484EN/05 TABLE OF CONTENTS
APPENDIX
A CABLE FOR DATA TRANSFER ........................................................ 413
B CONVERSION USING A SIGNAL ADDRESS CONVERTER ............ 414
C LANGUAGE PROGRAM LINK FUNCTION........................................ 416
D MULTI-LANGUAGE PMC MESSAGE CREATION TOOL.................. 418
D.1 FILE FORMAT OF A MESSAGE SOURCE FILE ...................................... 422
D.1.1 Sample File...........................................................................................................424
D.1.2 Usable Characters.................................................................................................425
D.1.3 Entering Special Characters .................................................................................429
D.1.3.1 New line character ........................................................................................... 429
D.1.3.2 Numeric data.................................................................................................... 429
D.1.3.3 Reservation character....................................................................................... 430
D.2 USAGE ...................................................................................................... 431
D.3 ERROR MESSAGES................................................................................. 435
D.3.1 Error List ..............................................................................................................435
c-11
B-63484EN/05 1.SETUP
1 SETUP
This chapter describes the operating environment of Ladder Editing
Package (Windows). This chapter also describes how to set up Ladder
Editing Package (Windows) to make software ready for use.
-1-
1.SETUP B-63484EN/05
• Computer
PC/AT-compatible computer running Windows 98 SE, Me,
NT4.0, 2000 or XP.
• For Windows 98 SE
⋅ Pentium 133MHz or better CPU
⋅ 16MB or more memory (32MB or more recommended)
• For Windows XP
⋅ Pentium II 333MHz or better CPU
⋅ 64MB or more memory
• Hard disk
⋅ 30MB of free space required (at installation)
⋅ 120MB of free space required (at execution)
NOTE
Time required for ladder diagram editing and
processing of symbols and net comments is
affected by the free spaces of memory and the
hard disk. When handling a source program
including many ladders, symbols, comments, or net
comments or editing ladder diagrams on multiple
screens, allocate much more free spaces as far as
possible.
• Device driver
FANUC Open CNC Drivers and Libraries (A02B-0207-K737)
or
FANUC Open CNC Drivers and Libraries
(A02B-0207-K730(HSSB))
-2-
B-63484EN/05 1.SETUP
• CNC functions
Options for FANUC open-ended CNCs
<For Series 150 / Series 150i>
⋅ Expansion driver library function (A02B-0207-J801)
⋅ Ladder editing package function (A02B-0207-J821)
<For Series 16 / Series 18 / Series 16i / Series 18i / Series 21i>
⋅ Expansion driver library function (A02B-0207-J800)
⋅ Ladder editing package function (A02B-0207-J820)
<For Series 160 / Series 180 / Series 160i / Series 180i / Series
210i>
⋅ Expansion driver library function (A02B-0207-J800)
⋅ Ladder editing package function (A02B-0207-J820)
<For Series 0i-B / Series 0i-C>
⋅ Expansion driver library function (A02B-0207-J800)
⋅ Ladder editing package function (A02B-0207-J820)
<For Power Mate i-MODEL D/ Power Mate i-MODEL H>
⋅ Expansion driver library function (A02B-0259-J847)
⋅ Ladder editing package function (A02B-0259-J848)
<For Series 30i / Series 300i / Series 300is-MODEL A>
⋅ Expansion driver library function (A02B-0207-J900)
⋅ Ladder editing package function (A02B-0207-J820)
<For Series 31i / Series 310i / Series 310is-MODEL A>
⋅ Expansion driver library function (A02B-0207-J900)
⋅ Ladder editing package function (A02B-0207-J820)
<For Series 32i / Series 320i / Series 320is-MODEL A>
⋅ Expansion driver library function (A02B-0207-J900)
⋅ Ladder editing package function (A02B-0207-J820)
NOTE
It is recommended that the Ladder Editing Package
(Windows) be used on Windows 98 SE, Windows
NT 4.0, Windows 2000, Windows Me, or Windows
XP.
-3-
1.SETUP B-63484EN/05
1.2.1 Installation
Procedure
1 Preparation prior to installation
-4-
B-63484EN/05 1.SETUP
3-4 When you agree to the terms of the license agreement, and
wish to continue installation, click the <Yes> button.
Clicking the <No> button stops installation.
-5-
1.SETUP B-63484EN/05
-6-
B-63484EN/05 1.SETUP
5-5 Select the program folder in which you want to install the
program or create a folder. Then, click the <Next> button.
-7-
1.SETUP B-63484EN/05
-8-
B-63484EN/05 1.SETUP
1.2.2 Uninstallation
Procedure
1 Terminating Ladder Editing Package (Windows)
-9-
1.SETUP B-63484EN/05
3 Confirming uninstallation
4 Executing uninstallation
The installed files, folders, and start menu items are deleted, and
the original system settings are restored.
Uninstallation then ends.
The uninstaller sometimes cannot uninstall all the files and
folders of Ladder Editing Package (Windows), such that some
files or folders may remain after uninstallation. Should this occur,
restart the system, and then delete the remaining files/folders by
using My Computer or Explorer.
- 10 -
B-63484EN/05 2.BASICS
2 BASICS
This chapter describes the basic items the user should understand
before using Ladder Editing Package (Windows).
- 11 -
2.BASICS B-63484EN/05
• *.DLL
Install dynamic link library (DLL) files used for node selection in
the Windows system directory. For details, refer to the document
file saved on the following expansion driver/library disks.
⋅ Expansion driver/library disk (for Windows,
A02B-0207-K726)
⋅ Driver/library disk (for Windows, A02B-0207-K727 and for
Windows 95, A02B-0207-K730)
- 12 -
B-63484EN/05 2.BASICS
This section describes how to start and end Ladder Editing Package
(Windows).
Procedure
1 Click the [Start] button.
2 From the [Start] menu, select [Program].
3 From the [Program] menu, select the [Ladder Editing
Package(Windows)] folder.
4 From the [Ladder Editing Package(Windows)] folder, select
Ladder Editing Package (Windows).
- 13 -
2.BASICS B-63484EN/05
As shown in the figure below, child windows are displayed within the
parent window. These are required for operations such as the creation
of sequence programs for the FANUC PMC
Main menu
Toolbar
Parent window
Edit toolbar
Child window
Child window
Fig. 2.3
• Parent window
The main window of this software.
Multiple child windows can be displayed within the parent
window.
• Child window
Child windows are displayed within the parent window.
Child windows are used for displaying and editing FANUC PMC
sequence programs.
- 14 -
B-63484EN/05 2.BASICS
Table 2.3
Main menu Submenu Reference chapter, section, or subsection
File Save As 3.9 SAVING PROGRAMS WITH NAMES
Import 3.10 IMPORTING PROGRAMS
Export 3.11 EXPORTING PROGRAMS
Print 4 PRINTING SEQUENCE PROGRAMS
Preview 4 PRINTING SEQUENCE PROGRAMS
Exit 2.2.3 Terminating Ladder Editing Package (Windows)
Edit Undo
Cut
Copy
Paste
Select All 3.3 EDITING LADDER DIAGRAMS
Add Data 3.5 EDITING SYMBOLS AND COMMENTS
Search Data 3.6 EDITING MESSAGES
Delete 3.7 EDITING I/O MODULE ASSIGNMENT
Delete All
Find
Replace
Jump
View ToolBar
Status Bar
Softkey
Edit ToolBar 3.3 EDITING LADDER DIAGRAMS
Program List
Grid Lilne
Zoom
Diagnose Signal Status 9.2 SIGNAL STATUS
PMC Parameter 9.3 PMC PARAMETERS
Timer 9.3.2 Timers
Counter 9.3.3 Counters
Keep Relay 9.3.4 Keep Relays
Data Table 9.3.5 Data Table
Set Up 9.3.6 Setting PMC Parameters
PMC Alarm Status 9.4 PMC ALARM STATUS
PMC Status 9.5 PMC STATUS
Signal Trace 9.6 SIGNAL TRACING
Signal Analysis 9.7 SIGNAL ANALYSIS
Ladder Online/Offline 3.5 EDITING LADDER DIAGRAMS
Monitor/Editor 3.5 EDITING LADDER DIAGRAMS
- 15 -
2.BASICS B-63484EN/05
Table 2.3
Main menu Submenu Reference chapter, section, or subsection
Tool Mnemonic Convert 6.1 CONVERTING SOURCE PROGRAMS TO MNEMONIC FILES
Source Program Convert 6.2 CONVERTING MNEMONIC FILES TO SOURCE PROGRAMS
Data Conversion 11 CONVERTING SEQUENCE PROGRAMS
Data File→LAD File 11.1 CONVERSION FROM DOS FANUC LADDER-II
Data File←LAD File 11.2 CONVERSION TO DOS FANUC LADDER-II
Compile 5.1 COMPILATION
Decompile 5.2 DECOMPILATION
Communication 7.1 SETTING COMMUNICATION
Device Select
Load from PMC 7.1, 7.2 LOADING SEQUENCE PROGRAMS FROM PMC
Store to PMC 7.3, 7.4 STORING SEQUENCE PROGRAMS IN PMC
Clear PMC Memory 9.8 CLEARING PMC AREAS
I/O Link Restart 9.9 ACTIVATING THE I/O LINK
Backup 7.6 WRITING SEQUENCE PROGRAMS INTO F-ROM
Program Run/Stop 8 RUNNING AND STOPPING SEQUENCE PROGRAMS
Option
Window Cascade
Tile
Arrange Icons
Help Topic
Help
About version information
2.3.2 Toolbar
The toolbar contains a set of buttons used for file operations and
editing.
<1> Print
Prints a program.
<2> About version information
Displays version information.
<3> Context-sensitive help
Displays the help text for the portion specified with the mouse.
<4> Run/stop program
Runs or stop a Ladder program.
<5> Online/Offline
Switches the system between online and offline modes.
<6>, <7> Ladder monitor, Online editing
Switches the system between ladder monitor and online editing.
<8> Signal trigger stop
Runs the signal trigger stop function.
- 16 -
B-63484EN/05 2.BASICS
Fig. 2.3.4
- 17 -
2.BASICS B-63484EN/05
Procedure
1 Select [Help] - [About version information…].
Fig. 2.4
- 18 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
- 19 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
Specify control behavior (calculate the number of DI/DO points and determine scale of control)
Off-line function
On-line function
Yes
New ?
No
Edit ladder Edit mnemonic
diagram
- Monitor/Edit ladder diagram
- Monitor signals
No
Debug ?
End
In online function, programming and monitoring are carried out on a personal computer
connected to the PMC.
In offline function, programming is carried out on a personal computer not connected to the
PMC.
The other PMC programming systems (for use on OPEN CNC) include FANUC LADDER
(DOS) , FANUC LADDER-II (DOS) and FANUC LADDER-III (Windows).
Refer to the following manuals:
- FANUC LADDER (for Use on PC) Operator's Manual (B-66131E)
- FANUC LADDER-II Operator's Manual (B-66184EN)
- FANUC LADDER-III Operator's Manual (B-66234EN)
- 20 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
• Sequence programs
• Title data
• System parameters
• Symbols/comments
• Message data
• I/O module data
• I/O module comments
• Ladder level 1
• Ladder level 2
• Ladder level 3
• Ladder subprograms
• Step sequence subprograms
• Net comments
• Memory card format data
- 21 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
Source program
System parameters
Title data
Symbols/comments
Message data
I/O module data
I/O module comments
Ladder level 1
Ladder level 2
Ladder level 3
Subprogram P1
Subprogram P2
:
Subprogram Pn
Net comments
Object code
Memory card format data
NOTE
1 In Ladder Editing Package (Windows), a sequence
program to be printed or edited offline is called a
source program.
2 An I/O module comment is one given to a module
address in the I/O unit. See Section 3.7, “Editing
I/O Module Assignment,” for details.
- 22 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
• Data flow
Subprogram Pn
Net comments
Compile/Decompile
Object code
Memory card format data
CNC
- 23 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
• Sequence configuration
Ladder programs can take any one of the following five
configurations.
⋅ Ladder level 1
⋅ Ladder level 2
⋅ Ladder level 3
⋅ Ladder subprogram
⋅ Step sequence subprogram
NOTE
Ladder level 3 is omissible.
LEVEL1 (LADDER)
LEVEL2 (LADDER)
LEVEL3 (LADDER)
- 24 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
• Work folder
A program work folder is created automatically on a path set up
in the TMP environment variable. The work folder is called
WFLAD* where * represents any number.
NOTE
Up to ten online program files can be held. When
you finish debugging program, save the program
file under a different file name.
- 25 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
3.1.4 PMC Type (Step Sequence and I/O Link Expansion) Setting
When the PMC type cannot be identified during start of
communication (because the PCM sequence program does not exist or
is corrupted), the PMC type of a new sequence program can be set.
Procedure
1 If the PMC type cannot be identified during start of
communication, the [PMC Type Setting] dialog box
automatically appears. Use this dialog box to enable or disable
[LEVEL3 Program Using], [Step sequence], and [I/O Link
expansion].
Fig. 3.1.4
NOTE
1 Addition or deletion can be performed for a level 3
program that has been newly created (only for level
3-enable models).
2 While another sequence program is being edited,
the system asks if you want to create a new
program, before displaying the [PMC Type Setting]
dialog box. After determining whether there is no
need to save the editing program, create a new
program.
- 26 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
Procedure
1 If the loader has been installed, the following dialog box
automatically appears at the start of communication.
2 Select the device you want to connect using the [↑] and [↓] keys.
3 Click the <Exec> button.
NOTE
Selected connection is effective until the
communication is disconnected. To change
connection, please disconnect the communication
and reestablish the communication from the
communication in tool menu again.
- 27 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
In the [Selection of device] dialog, specify the PMC path you want to
connect. When you change the destination, perform communication
with the PMC again.
Procedure
1 The [Selection of device] dialog appears. (Only the PMC paths to
which you can connect are displayed.)
2 Select the path you want to connect using the [↑] and [↓] keys.
3 Click the <OK> button.
NOTE
1 It is not possible to connect with two or more PMC
paths at the same time.
2 When PMC type of the opened program support
Multi-path PMC and the connection to PMC is
started, LADDER EDITING PACKAGE (Windows)
is automatically connected with the PMC path of
the opened program.
3 [Selection of device] dialog is not displayed when
there is only one PMC path which can be
connected. (When selecting [Device select…] in
TOOL menu, [Selection of device] dialog is
displayed.)
- 28 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
This section describes how to enter a title for a program created by the
machine tool builder.
NOTE
Titles can be displayed and edited only when the
current programmer mode (offline/online) is offline.
To change the programmer mode to offline, select
[Ladder] - [Online/Offline].
3.2.1 Procedure
1 Double-click the <Title> item in the [Program List] screen. The
[Edit Title] screen appears.
- 29 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
Table 3.2.1
Maximum number of
Data
characters that can be entered
Machine Tool Builder Name 32
Machine Tool Name 32
PMC & CNC Name 32
PMC Program No. 4
Edition No. 2
Program Drawing No. 32
Date of Programming 16
Program Designed By 32
ROM Written By 32
Remarks 32
<Close> button
- 30 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
Procedure
1 Check the current programmer mode (offline or online) on the
status bar.
Programmer mode
Fig. 3.3.1
- 31 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
NOTE
1 If a ladder program to be edited online does not
match one in the PMC, it is impossible to change
the ladder mode to edit. Before trying to match the
ladder to be edited to that in the PMC, store or load
the ladder program to be edited.
2 A level 3 program can be added by right-clicking
the [Program List] screen and then clicking [Add
LEVEL3]. Level 3 programs can be added only
when the current programmer mode is offline.
Fig. 3.3.2
NOTE
Back up any online-edited ladder program in the
PMC to F-ROM of the PMC. (See Section 7.6,
"WRITING SEQUENCE PROGRAMS INTO
F-ROM," for details.)
- 32 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
Procedure
1 Select [View] - [Program List]. The [Program List] screen
appears. (Usually, this screen appears automatically when a LAD
file is created or opened.)
Ladder program
- 33 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
Zoom-out button
Zoom-in button
Insert button
Delete all button
Replace button
Edit window
Error status Display net [total number of nets] Ladder mode Input mode
Display window
Ladder program is displayed here.
Edit window
Ladder program is edited here. When the ladder program in this
window is inserted or overwrote to the display window, the
ladder program in the display window is changed
Insert button
Inserts ladders in the ladder program (display window) to the edit
window.
- 34 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
Replace button
Replaces ladders in the ladder program (display window) with
those in the edit window.
Zoom-in button
Magnifies ladder diagrams.
Zoom-out button
Reduces (shrinks) ladder diagrams.
Resize button
Make the size of a ladder diagram display match the window
size.
Search button
Searches the display or edit window for an address or symbol.
Error status
Displays information about errors.
Ladder mode
Display the current ladder mode (monitor or edit). To change the
ladder mode, select [Ladder] - [Monitor/Editor].
Input mode
To change the input mode (insert or overwrite), press the [Insert]
key.
- 35 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
Display Ctrl+W
Opens a window for browsing another part of the ladder diagram
being edited.
Soft keys
The following shows the soft keys that can be used with the edit
window.
• Normal state
NOTE
To display soft keys, select [View] - [Softkey].
The edit tool bar contains buttons for entering relays and coils, using
the mouse. When you click a button on the edit tool bar and move the
mouse pointer to the edit window, the mouse pointer changes its shape
to the relay or coil corresponding to the clicked button. Under this
condition, left-clicking causes the relay or coil to be entered in the
current mouse pointer position. Right-clicking resumes the usual
mouse pointer shape.
- 36 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
NOTE
1 To display the edit tool bar, select [View] - [Edit
ToolBar].
2 The edit tool bar can be detached from the window
to which it belongs and moved to any position on
the screen by clicking between its buttons and
dragging.
Shortcut keys
Table 3.3.3
Shortcut key Function
[F2] Down Coil Search
[Shift] + [F2] Up Coil Search
[Ctrl] + [F2] Global Search
[F3] Search next (downward)
[Shift] + [F3] Search next (upward)
[Ctrl] + [F3] Seach Address
[F4]
[Shift] + [F4]
[F5]
[Shift] + [F5]
[Ctrl] + [F5] Replace
[F6] S
[Shift] + [F6] R
[F7] Vertical line (Left side)
[Shift] + [F7] Vertical line (Right side)
[Ctrl] + [F7] Insert element
[F8] Horizontal line
[Shift] + [F8] Clear element (repeatable)
[Ctrl] + [F8] Insert line
[F9] Function instruction
[Shift] + [F9] Net comment
[Ctrl] + [F9] Insert Net (forward)
[Ctrl] + [F10] Insert Net (backward)
[Delete] Clear element
[Ctrl] + [A] Edit – Select all
[Ctrl] + [C] Edit – Copy
[Ctrl] + [D] Edit – Address display switch
[Ctrl] + [F] Edit – Search
[Ctrl] + [G] Edit – Jump to specified net number
[Ctrl] + [H] Edit – Replace
[Ctrl] + [R] Restore (for Online editting)
[Ctrl] + [T] Stay opened
[Ctrl] + [U] Update (for Online editting)
[Ctrl] + [V] Edit – Paste
[Ctrl] + [W] View
[Ctrl] + [Y] Redo
[Ctrl] + [Z] Undo
- 37 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
Table 3.3.3
Shortcut key Function
[Home] Display left end
[End] Display right end
[Ctrl] + [Home] Jump to beginning
[Ctrl] + [End] Jump to end
[Ctrl] + [↑] Jump to previous net
[Ctrl] + [↓] Jump to next net
[Ctrl] + [PageUp] Jump to next page
[Ctrl] + [PageDown] Jump to previous page
Context menu
Right-clicking the ladder editing screen or pressing [Shift]+[F10]
displays the context menu. See Table 3.3.3 for details of each
function.
- 38 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
NOTE
1 To modify a ladder program, copy ladders from the
display window to the edit window. Then, change
them on the display window and substitute the
ladders on the display window with those modified
on the edit window.
2 If there is a ladder error in the ladders on the edit
window, it is impossible to select the <Insert> and
<Replace> buttons.
3 Double-clicking a ladder on the display window
causes the ladders in the same net as the clicked
ladder to be copied to the edit window.
Procedure
1 On the display window, position the cursor to the ladder you
want to modify, using the cursor control keys.
- 39 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
Table 3.3.4
Operation Subsection
Entering basic instructions 3.3.6 “Entering Basic Instructions”
Entering horizontal lines 3.3.8 “Entering Horizontal Lines”
Entering and deleting vertical
3.3.9 “Entering and Deleting Vertical Lines”
lines
Entering function instructions 3.3.7 “Entering Function Instructions”
- 40 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
5 Select the replacement position, using the [↓] key or [↑] key, and
then click the <Exec> button
- 41 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
NOTE
1 If there is a ladder error in a ladder in the edit
window, it is impossible to select the <Insert> and
<Replace> buttons.
2 Double-clicking a ladder in the display window
causes the ladders in the same net as the clicked
ladder to be copied to the edit window.
Procedure
1 In the edit window, create the ladders you want to insert into a
ladder program.
For an explanation about how to operate the ladders on the edit
window, see the subsections listed below:
Table 3.3.5
Operation Subsection
Entering basic instructions 3.3.6 “Entering Basic Instructions”
Entering horizontal lines 3.3.8 “Entering Horizontal Lines”
Entering and deleting vertical
3.3.9 “Entering and Deleting Vertical Lines”
lines
Entering function instructions 3.3.7 “Entering Function Instructions”
- 42 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
3 Select the insertion position, using the [↓] key or [↑] key, and
then click the <Exec> button.
- 43 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
Procedure
1 Position the cursor to the point where you want to enter a basic
instruction, using the cursor control keys. (Alternatively, click
the point.)
2 Press the key that corresponds to the basic instruction you want
to enter.
Table 3.3.6
Key Basic instruction
[F5]
[Shift] + [F5]
[F6]
[Shift] + [F6]
[Shift] + [F7] S
[Shift] + [F8] R
- 44 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
3 Position the cursor to the basic instruction you entered, using the
cursor control keys, and then press the [Enter] key. (Alternatively,
double-click the basic instruction.)
- 45 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
Procedure
1 Position the cursor to the point where you want to enter a basic
instruction, using the cursor control keys. (Alternatively, click
the point.)
- 46 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
3 Press the key that corresponds to the basic instruction you want
to enter. (See Table 3.3.6.)
- 47 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
Procedure
1 Position the cursor to the point where you want to enter a
function instruction, using the cursor control keys. (Alternatively,
click the point.)
2 Press the [F9] key to display the [Select function] dialog box.
- 48 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
3 Select the function instruction you want to enter, and then press
the <OK> button.
- 49 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
Procedure
1 Position the cursor to the point where you want to enter a
function instruction, using the cursor control keys. (Alternatively,
click the point.)
- 50 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
- 51 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
Procedure
1 Position the cursor to the point where you want to enter a
horizontal line. (Alternatively, click the point.)
- 52 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
Procedure
1 Position the cursor to the point where you want to enter a vertical
line, using the cursor control keys. (Alternatively, click the
point.)
2 Press the [F8] key, and then press the [↑] or [↓] key. The vertical
line is entered. (To delete the vertical line, hold down the [Shift]
key and then press the [↑] or [↓] key.)
- 53 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
Procedure
1 Right-click on the program list screen, and then click [Add
sub-program F9].
3 Enter [sub-program].
6 The subprogram is added, and the screen for the added ladder
program appears.
- 54 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
Procedure
1 On the program list screen, position the pointer to the
subprogram you want to delete and right-click. Then, click
[Delete sub-program F6].
- 55 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
Procedure
1 In the display window, position the mouse pointer to the point
where you want to add a net comment, and then right-click.
- 56 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
3 After you finish entering the net comment, press the <OK>
button.
- 57 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
Procedure
1 In the display window, double-click the net comment you want
to modify.
The [Net comment] screen appears.
2 Edit the character strings for the net comment. After you finish
editing, press the <OK> button. The net comment in the display
window is updated.
- 58 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
Procedure
1 In the display window, position the mouse pointer to the net
comment you want to delete, and then right-click.
- 59 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
Procedure
1 In the display window, position the mouse pointer to the point
where you want to add a page break, and then right-click.
Fig. 3.3.14
- 60 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
Procedure
1 In the display window, position the mouse pointer to the page
break you want to delete, and then right-click.
- 61 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
Procedure
1 In the display window, select the range of nets you want to delete,
using the mouse or cursor control keys.
- 62 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
3.3.17 Search
This subsection describes the ladder program search function.
Procedure
1 Choose [Search] from the [Edit] menu.
The [Search] screen appears.
1-2 Program
Click the <Select> button to open the [Program select
dialog] screen, then select a search target program.
- 63 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
All
Searches for all types of instructions.
Select
Select a desired instruction you want to search for.
Write coils
Searches for only write coils.
3-1 Parameter
Enter parameters as search conditions according to
Functional instruction selected in Search kind.
- 64 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
- 65 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
Fig. 3.3.17.1
NOTE
1 The editing screen separated into the display and
the editing window is not supported.
2 The [Monitor] and the [Signal Trigger] of the online
mode are not supported.
3 The step sequence programs is not supported.
- 66 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
Table 3.3.17.2
Shortcut
Setting Soft key display Explanation
key
No check [F2] Down Coil Search The address and the symbol of the cursor position are taken in, and
the downward coil of cursor is searched.
[F3] Down Search The downward contact, coil and functional instruction of cursor are
searched using the conditions inputted in the search screen.
[Shift]+[F2] Up Coil Search The address and the symbol of the cursor position are taken in, and
the upward coil of cursor is searched.
[Shift]+[F3] Up Search The upward contact, coil and functional instruction of cursor are
searched using the conditions inputted in the search screen.
[Ctrl]+[F2] Global Search The search range changes the global or the local.
[Ctrl]+[F3] Search Address The address and the symbol of the cursor position are taken in.
Check [F2] Down Coil Search The address and the symbol of the cursor position are taken in, and
the downward coil of cursor is searched.
[F3] Down Search The address, the symbol and the functional instruction of the cursor
position are taken in, and the downward coil of cursor is searched.
[Shift]+[F2] Up Coil Search The address and the symbol of the cursor position are taken in, and
the upward coil of cursor is searched.
[Shift]+[F3] Up Search The address, the symbol and the functional instruction of the cursor
position are taken in, and the upward coil of cursor is searched.
[Ctrl]+[F2] Global Search The search range changes the global or the local.
- 67 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
- 68 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
- 69 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
- 70 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
- 71 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
- 72 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
Fig. 3.3.18.3
- 73 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
- 74 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
Procedure
1 From the [Tool] menu, choose [Options], then click [Ladder] tab.
- 75 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
NOTE
1 If the number of contacts and coils per row is
changed, a ladder diagram in the edit window and
clipboard is deleted, and reediting is disabled.
2 A net that has more relays or coils than the set
number of contacts and coils is displayed as a
continuation net as conventionally done.
- 76 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
1-2 ToolTips
When the pointer is positioned to a basic instruction in a
ladder diagram, the information such as the address, the
symbol and the comment is displayed. Tool tip is displayed
when checked.
1-3 Grid
Specifies that grid lines are displayed on the ladder diagram.
It is displayed when checked.
- 77 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
2-1 Font
Click the <Setting...> button. A dialog box appears. In this
dialog box, specify the font name, style, and size of
characters displayed in a ladder diagram.
- 78 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
2-2 Colors
Click the <Setting...> button. A dialog appears. In this
dialog box, specify the colors of items displayed in a ladder
diagram.
- 79 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
Procedure
1 Position the cursor to the signal address or function instruction
parameter you want to change.
2 Press and hold down the [Shift] key and press the [Enter] key,
and the address or parameter will enter the change-enabled state.
(You can also key in directly after positioning the cursor.)
Fig. 3.3.20
NOTE
1 You can also enter a symbol as a signal address.
2 You cannot change function instruction numbers or
the first parameters of the function instructions
ADDB, AND, COMPB, DIVB, EOR, MULB, OR,
and SUBB.
- 80 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
Procedure
1 Position the cursor to the contact or coil you want to change.
2 Click the soft key that corresponds to the contact or coil you
want to change. (You can also change the contact or coil to the
one selected with the edit toolbar.)
NOTE
You cannot insert or delete contacts/coils. Nor can
you enter horizontal/vertical lines.
- 81 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
Procedure
1 On the [Program List] screen, position the pointer to a program
for which you want to check the number of program steps and
click the right mouse button. Then, click [Properties].
2-1 Ladder
The total number of steps in the program is displayed.
2-2 LEVEL1
Displays the number of steps in each of LEVEL1 to
LEVEL3.
- 82 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
2-3 Sub-program
Displays the number of steps in each subprogram.
NOTE
1 If a step sequence program is contained, the total
number of program steps is not displayed.
2 The number of steps in a step sequence program
is not displayed.
3 In online mode, the number of program steps is not
displayed.
3.3.23 Replace
This subsection describes the ladder program replace function.
Procedure
1 From the [Edit] menu, choose [Replace].
The [Replace] screen appears.
- 83 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
1-1 Program
Click the <Select…> button to open the [Program select
dialog] screen. Then, select the program in which you want
to search for a string.
NOTE
1 A wildcard can substitute for one or multiple
characters.
2 A question mark (?) represents one character. This
wildcard can be used more than once to represent
characters.
3 An asterisk (*) represents zero or more characters.
- 84 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
3 Wild card
3-1 Asterisk (*)
The following types of wildcard replacement using asterisks
are available:
Character string to be replaced with
Y200 Y* Y200.1 Y*.1 Y200.*
X100 A B B B B
searched for
string to be
Character
X* A B B B B
X100.0 B B A B B
X*.0 B B A C A
X100.* B B A A A
A : Can be replaced.
B : Cannot be replaced.
C : Can be replaced only when the signal names are the
same.
(Example) X*.0 → X*.1
- 85 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
NOTE
1 Address P can be replaced with another character
string only in the CALL and CALLU instructions.
2 No wildcards can be used for replacing an address
using a symbol.
3 No wildcards can be used in a signal name.
Fig. 3.3.24.1
- 86 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
Fig. 3.3.24.2
- 87 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
Procedure
1-1 Position the cursor to the point where you want to enter a
basic instruction, using the cursor control keys.
(Alternatively, click the point.)
1-2 Press the key that corresponds to the basic instruction you
want to enter.
Table 3.3.24.3
Key Basic instruction
[F4]
[Shift] + [F4]
[F5]
[Shift] + [F5]
[F6] S
[Shift] + [F6] R
- 88 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
1-4 Enter an address or symbol, and then press the [Enter] key.
- 89 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
Procedure
2-1 Position the cursor to the point where you want to enter a
basic instruction, using the cursor control keys.
(Alternatively, click the point.)
- 90 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
2-3 Press the key that corresponds to the basic instruction you
want to enter. (See Table 3.3.24.3.)
Procedure
1-1 Position the cursor to the point where you want to enter a
function instruction, using the cursor control keys.
(Alternatively, click the point.)
- 91 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
1-2 Press the [F9] key to display the [Select function] dialog
box.
1-3 Select the function instruction you want to enter, and then
press the <OK> button.
- 92 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
Procedure
2-1 Position the cursor to the point where you want to enter a
function instruction, using the cursor control keys.
(Alternatively, click the point.)
- 93 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
- 94 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
Procedure
1 Position the cursor to the point where you want to enter a
horizontal line. (Alternatively, click the point.)
- 95 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
Procedure
1 Position the cursor to the point where you want to enter a vertical
line, using the cursor control keys. (Alternatively, click the
point.)
2 Press the [F7] key to enter a vertical line at the left of the cursor
position. Press [Shift]+[F7] to enter a vertical line at the right of
the cursor position. To delete a vertical line, press the same soft
key again.
- 96 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
Procedure
1 Move the cursor to the position of a basic instruction for which
you want to delete symbol or comment data, using direction
keys.
2 Click the right mouse button and choose [Property].
- 97 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
Procedure
1 Select [Edit]-[Undo] from the menu-bar, or click the toolbar
button, or push the shortcut key of [Ctrl]+[Z]. Then the previous
edit operation in the ladder edit screen is canceled.
2 Select [edit]-[Redo] from the menu-bar, or click the toolbar
button, or push the shortcut key of [Ctrl]+[Y]. Then the operation
canceled by Undo function is executed again.
- 98 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
Fig. 3.3.26.1
NOTE
1 This function is effective to the following edit operations.
- Ladder editing in the direct ladder edit screen
(Includes “Change of PMC address by Replace
function”.)
- Addition and deletion of sub-program (P1/P2…) in
program list screen.
2 Undo log is erased by the following operation.
- Changing the “Number of contacts + coil a line”
- Changing the “Method of editing ladder diagram”
- Changing the online mode
- Executing the Decompilation
- Importing the source program
3 There is a case that the operation cannot be canceled
correctly, when the nets which contain the error are
connected.
- 99 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
NOTE
1 The editing screen separated into the display and
the editing window is not supported.
2 If the programmer mode is offline, this function is
available.
3 The step sequence programs is not supported.
3.3.27.1 Procedure
1 The Ladder program to output is displayed.
- 100 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
3 Input the output file name. Push the <Save> button and the file is
outputted.
- 101 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
NOTE
1 The menu item can not be selected if there is an
error net.
2 It is necessary to display and select the window of
the ladder.
3 As to the storing folder of the text file,
You can choose the default of the storing folder by
the Specify the same folder as a LAD file for
working directory in the [General] tab of the option.
(select the [Tool] - [Option...])
- 102 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
Header information
Ladder program
Fig. 3.5.27.2
Header information
Header information changes according to the kind of outputted
program.
Program Title
All Ladder Diagram(ALL)
LEVEL1 Ladder Diagram(LEVEL1)
Sup-program Ladder Diagram(P0001)
Search result list Ladder Diagram Search result list(*)
Collective Display Ladder Diagram Collective Display(*)
Duplicate Coil Duplicate Coil List
• In the Search result list and the Collective Display, the
number of nets and the number of steps are not outputted.
• * : The Search condition and the condition name of
Collective Display are displayed.
Item Contents
File name LAD file name
PMC Type The model of PMC
Date Date the file was created.
* Date is dependent on "Regional options".
- 103 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
3.3.27.3 Ladder diagram without the net number is output to the text
file
The setting to output the ladder diagram without the net number in the
text file has been added. Since the net numbers are not output, you can
compare the ladder diagrams before and after the modifications using
the function of a text editor.
Setting
1 Click [Option...] in [Tool] menu.
2 Click [Ladder] tab on [Option] window.
3 Check Output the text file without the net number.
Fig. 3.3.27.3
Operation
1 The Ladder program to output is displayed
2 [Output a text format file...] is selected from the [Tool] menu.
3 Input the output file name. Push the <Save> button and the file is
outputted.
- 104 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
Supported instructions
The 1st parameter of the following functional instructions is the target
of automatic input.
SUB3(TMR)
SUB24(TMRB)
SUB77(TMRBF)
SUB5(CTR)
SUB56(CTRB)
SUB57(DIFU)
SUB58(DIFD)
Operation
1 Move cursor to the 1st parameter and push the [F6] key. The
unused parameter number will be input.
Fig. 3.3.28
- 105 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
NOTE
1 Details are different between SUB3 (TMR) and
SUB5 (CTR).For details, see "Automatic input of
the TMR parameter of a functional instruction" and
"Automatic input of the CTR parameter of a
functional instruction", described later.
2 If you perform this operation with a parameter
number already input, an unused parameter
number subsequent to that number will be set.
3 If you perform this operation just after you enter the
parameter numbers, an unused parameter number
subsequent to input number will be set. If you click
"Auto" with the mouse, the same result as the item
2 is obtained.
4 If an attempt is made to perform this operation on a
function instruction to which this operation is not
applicable, the following error message will be
displayed.
'Cannot perform "Auto" on the instruction.'
If no unused number for parameters is found, the
following error message will be displayed.
'No unused parameter number.'
5 This function cannot be used when ladder edit in
the interface of two panes is selected; "Display
Window" and "Edit Window".
Offline editing
(1) Range of parameter numbers subject to this automatic input
Timer numbers with their precision default setting being 8 ms
(timer number 9 and subsequent numbers) are assumed to be
subject to this automatic input.
Online editing
(1) Range of parameter numbers subject to this automatic input
The timer number 9 or later is assumed to be subject to this
automatic input.
(2) Display of setting and precision of an input timer number
In online editing, the preset value and accuracy value of an input
timer number are displayed in the status line in the following
format.
- 106 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
Fig. 3.3.28.1
NOTE
All models are supporting the display of the TMR
number, the preset value and accuracy value on
the status line. If the automatic input of the TMR
parameter is supported, "Auto" will be displayed on
the [F6] key.
Online editing
In online editing, the preset value and current value of an input
counter number are displayed in the status line in the following
format.
Fig. 3.3.28.2
NOTE
All models are supporting the display of the CTR
number, the preset value and current value on the
status line. If the automatic input of the CTR
parameter is supported, "Auto" will be displayed on
the [F6] key.
- 107 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
NOTE
Step sequence programs can be displayed and
edited only when the current programmer mode
(offline/online) is offline. To change the
programmer mode to offline, select [Ladder] -
[Online/Offline].
Procedure
1 Select [View] - [Program List]. The [Program List] screen
appears. (Usually, this screen appears automatically when a LAD
program is created or opened.)
Ladder program
- 108 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
Zoom-in button
Zoom-out button
Cursor
Zoom-out button
Reduces the step ladder screen display.
Zoom-in button
Magnifies the step ladder screen display.
Search button
Searches for a step number and action.
Check button
Check program syntax.
Cursor position
Displays the row and column of the current cursor position.
- 109 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
NOTE
The step sequence program edit screen consists of
32 horizontal elements by 64 vertical lines.
Soft keys
• When the Shift key is not pressed (the cursor is on the
“processing step line”)
• When the Shift key is not pressed (the cursor is on the “condition
specification TR”)
NOTE
To display soft keys, select [View] - [Softkey].
Context menu
Right-clicking the step sequence program edit screen displays this
menu.
- 110 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
Shortcut keys
Table 3.4
Shortcut key Function
[F3] Search (downward)
[Shift] + [F3] Search (upward)
Enter step program (step line)
[F5]
Enter transition (transition line)
[Shift] + [F5] Enter label jump (step line)
Enter initial step program (step line)
[F6]
Enter beginning of selective branch (transition line)
Enter jump-to label (step line)
[Shift] + [F6]
Enter end of selective branch (transition line)
Enter block step program (step line)
[F7]
Enter beginning of parallel branches (transition line)
Enter end of block step (step line)
[Shift] + [F7]
Enter end of parallel branch (transition line)
[F8] Enter continuation line
[F9] Check syntax
[Shift] + [F9] Zoom
[Del] Clear element
[Ctrl] + [C] Edit - Copy
[Ctrl] + [F] Edit - Search
[Ctrl] + [G] Edit - Jump to specified position
[Ctrl] + [V] Edit - Paste
[Ctrl] + [X] Edit - Cut
[Home] Display left end
[End] Display right end
[Ctrl] + [Home] Jump to beginning
[Ctrl] + [End] Jump to end
Step
A step is a unit of processing in a program.
- 111 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
Table 3.4.1
State Processing Sn.0
The step is active.
Active Running The corresponding action program 1
(subprogram) is running.
The step is shifting from running to stopped.
The corresponding action program
Stopping 0
(subprogram) is executed only once. After this it
Inactive is stopped.
The step is inactive.
Stopped The corresponding action program 0
(subprogram) is not running.
NOTE
The state of a specified step can be read through a
contact; it cannot be written, however.
Sn.0 (where n represents a step number, which
can take a value from 1 to 1000)
Step numbers are used in a program so that
transition between steps can be controlled in detail.
Using step numbers makes it possible for any
subprogram to detect the state of any step.
However, the use of step numbers adversely
affects program transportability and ease of
understanding. Do not use step numbers
excessively.
Initial step
An initial step is a step that automatically becomes active when the
program starts running. Except for this point, the initial step behaves
in the same manner as ordinary steps. Control can be passed from a
usual step to the initial step again. In this case, the initial step behaves
in exactly the same manner as an ordinary step.
- 112 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
Transition
A transition represents a condition under which transition occurs from
one step to another.
Subprogram P1
Subprogram P101
NOTE
The TRSET function instruction is intended to
describe that a transition condition is satisfied. It is
used in a subprogram that is called from the
transition.
- 113 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
- 114 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
- 115 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
Jump
A jump is processed in conjunction with a transition to control the
execution of steps.
Label
A label represents a jump destination.
Block step
The block step is a step for representing a subprogram described with
step sequences.
- 116 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
- 117 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
Procedure
1 Position the cursor to the point where you want to enter a step.
Fig. 3.4.2
4 After you finish entering the items, press the <OK> button.
S12
P518
NOTE
To change a step number, action, or label, position
the cursor to the desired element, and then press
the [Enter] key. Alternatively, double-click the
element. The [Action] dialog box appears.
- 118 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
Procedure
1 Position the cursor to the point where you want to enter a
transition.
Fig. 3.4.3
P519
NOTE
To modify an action, position the cursor to the
relevant element, and then press the [Enter] key.
Or, double-click the element. The [Action] dialog
box appears.
- 119 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
Procedure
1 Position the cursor to the point where you want to enter the
beginning of a selective branch.
Procedure
1 Position the cursor to the point where you want to enter an end of
selective branch.
2 Hold down the [Shift] key, and then press the [F5] key.
S1 S2
- 120 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
Procedure
1 Position the cursor to the point (transition line) where you want
to enter the beginning of parallel branch.
P100
Procedure
1 Position the cursor to the point where you want to enter the end
of a parallel branch.
2 Hold down the [Shift] key, and then press the [F6] key.
S1 S2
- 121 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
Procedure
1 Position the cursor to the point (step line) where you want to
enter a jump-to label (a label to which a jump is to be made).
2. Hold down the [Shift] key, and then press the [F6] key.
←
S1
Fig. 3.4.8
4 After you finish entering the label name, press the <OK> button.
← L10
S1
P500
- 122 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
Procedure
1 Position the cursor to the point (step line) where you want to
enter a label jump.
2 Hold down the [Shift] key, and then press the [F5] key.
←L10
S1
P10 P10
→
S2
P10
Fig. 3.4.9
4 After you finish entering the label, press the <OK> button.
←L10
S1
P10 P10
→ L10
S2
P10
- 123 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
Procedure
1 Press the [F9] key.
- 124 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
Procedure
1 Right-click the program list screen, and then click [Add
sub-program F9].
3 Enter [sub-program].
4 Select [Step Sequence] from [Kind of Ladder].
5 Enter [Symbol] and [RelayComment], and then click the <OK>
button.
6 The step sequence subprogram is added, and the screen for the
added subprogram appears.
- 125 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
Procedure
1 Position the pointer to the step sequence subprogram that you
want to delete from the program list screen, and then right-click.
Then, click [Delete sub-program F6].
- 126 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
3.4.13 Search
This subsection describes the step sequence program search function.
Procedure
1 Choose [Find] from the [Edit] menu.
The [Find] screen appears.
Fig. 3.4.13
- 127 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
NOTE
Symbols and comments can be displayed and
edited only when the current programmer mode
(offline/online) is offline. To change the
programmer mode to offline, select [Ladder] -
[Online/Offline].
(1) PMC model which does not support the multiple comments
Y0.0
COIL
Character string assigned to a coil
Coil comment COMMENT
to describe it
- 128 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
- 129 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
NOTE
1 The maximum number of characters or lines,
whichever is reached first, functions as a limit.
2 Relay comments are used only on the Ladder Edit
screen of LADDER EDITING PACKAGE
(Windows). They are not included in a
memory-card-type file generated by the compile
function.
3 In the PMC model which can input the lowercase
letters to the symbol, the symbol with a different
only capital letter and small letter cannot be
registered.
Example) “OverTravel” and “OVERTRAVEL”
cannot be registered.
3.5.2 Procedure
1 Double-click the <Symbol comment> item on the [Program List]
screen. The [SYMBOL/COMMENT] screen appears.
- 130 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
Fig. 3.5.2(d)
NOTE
When you check [Ignore too long strings of the
symbol], the number of symbols that can be
registered and the size of coil comments vary
because the symbols that exceed the limit are
assumed to be absent.
- 131 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
<Close> button
- 132 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
3.5.3 Toolbar
<1><2> <3><4>
Fig. 3.5.3
Fig. 3.5.4 (a) Fig. 3.5.4 (b) 30i/31i/32i-A Fig 3.5.4 (c) 30i/31i/32i-A Extended function
- 133 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
Using the DISPB (SUB 41) function instruction enables the display of
any message on the CRT/MDI screen of the CNC. This section
describes how to create messages.
NOTE
Messages can be displayed and edited only when
the current programmer mode (offline/online) is
offline. To change the programmer mode to offline,
select [Ladder] - [Online/Offline].
3.6.1 Procedure
1 Double-click the <Message> item on the [Program List] screen.
The [Message Editing] Screen appears.
- 134 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
NOTE
In Japanese-language input mode, Numeric data
can be input according to the setting in
“%%%flset.cnf” file of the install folder. (See
subsection 3.8.4, “New line character, Numeric
data” for detailes.)
<Close> button
- 135 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
Table 3.6.2
Characters that can be entered
Half-size Alphanumeric
JIS level-1/-2 kanji set
kana characters
Some kanji characters cannot be displayed.
Ladder Editing Package (Windows) cannot check Usable Usable
whether they can be displayed.
NOTE
1 Lowercase letters (a to z) are converted to
uppercase (A to Z) when entered.
2 Up to 65,535 characters can be used in messages
in total with PMC-SA1, SA3, SA5, SB3, SB4, SB5,
SB6, SC3, and SC4.
Specifically, the number of characters in messages
are counted starting at message No. 1, when the
message edit function ends. Only the first 65,535
characters are accepted. Others are deleted.
3 With the PMC-SB7, up to 512,000 characters can
be used in messages in total, but the number of
characters is limited depending on the total capacity
of the sequence programs.
- 136 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
(Example)
The following message includes 3 digits tool number at the spindle
and the offset data ( _ . __ ) for this tool. And these data are
contained in memory address of 2bytes:
SPINDLE TOOL No. = [I230, ____ ]
OFFSET DATA = [I212, ____ ]
- 137 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
NOTE
1 Sum of integer part digits and fractional part digits
must be within 8.
2 Do not use any space between the brackets, [ ].
3 With the view function, as many number signs (#) as
the number of specified digits are displayed in bold.
(Example: ###.##).
- 138 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
<1> <2> <3> <4> <5> <6> <7> <8> <9> <10> <11> <12>
Fig. 3.6.5
- 139 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
<1>
Fig. 3.6.6
<1> The status bar displays the number of bytes in a message on the
current line (that line with a caret).
- 140 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
This section describes how to set and delete an address for each
module in an I/O unit.
NOTE
I/O module assignment can be displayed and
edited only when the current programmer mode
(offline/online) is offline. To change the
programmer mode to offline, select [Ladder] -
[Online/Offline].
3.7.1 Procedure
1 Double-click the <I/O Module> item on the [Program List]
screen.
The [Edit I/O Module] screen appears.
- 141 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
1-1 Double-click the line that you want to edit. The [Module]
screen appears.
1-2 Select a module name from those that can be specified. Set
the following data.
Group
Base
Slot
Comment
NOTE
I/O Unit MODEL-B assignment is carried out as
follows:
[GROUP]: To be set with a group number within a
configuration.
[BASE]: To always be set to 0.
[SLOT]: To be set to a unit number for the I/O
Unit-B. To be set with 0, however, when
information ‘##’ about power-on/-off is
assigned.
2 To close the [Edit I/O Module] screen, click the <Close> button.
<Close> button
- 142 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
- 143 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
NOTE
System parameters can be displayed and edited
only when the current programmer mode
(offline/online) is offline. To change the
programmer mode to offline, select [Ladder] -
[Online/Offline].
3.8.1 Procedure
1 Double-click the <System parameter> item on the [Program List]
screen. The [Edit System Parameter] screen appears.
- 144 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
Ladder Exec
(Valid only with the PMC-SC3/SC4, PMC-QC,
PMC-NB/NB2, and PMC-SB7)
Initial value: 100
Setting: 1 to 150
Set an increment for the processing time for ladder
levels 1 and 2. Setting this parameter reduces the
ladder scan time, thus quickening ladder processing.
The ladder execution time takes the value described
below out of 8 ms.
If 100% is specified, the processing time for levels 1
and 2 is 5 ms.
If 150% is specified, the processing time for levels 1
and 2 is 7.5 ms.
Note that increasing the ladder execution time
decreases the processing time in "PMC Screen Display
Time", "Language Program Processing Time", and
"Ladder Level 3".
Language Origin
(Valid only with the PMC-SC3/SC4, PMC-QC, and
PMC-NB/NB2)
Initial value: 000000
Setting: Address within the language program
storage area
Set the start address of the link control statement data
in the language program.
Specify 000000H if no language program is included.
- 145 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
Key Address
Setting range: X0 to X127 and X1000 to X1019
Set the PMC address corresponding to the start address
of the external DI that is connected.
LED Address
Setting range: Y0 to Y127 and Y1000 to Y1014
Set the PMC address corresponding to the start address
of the external DO that is connected.
Channel 1 Enable
Specify whether to enable or disable the selectable I/O
link assignment function for channel 1. If checking this
box, specify Basic Group Count.
Channel 2 Enable
Specify whether to enable or disable the selectable I/O
link assignment function for channel 2. If checking this
box, specify Basic Group Count.
- 146 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
1-2 Set the comment set number for displayed language of CNC
(For PMC model which supports the multiple comments)
In [Language for Comment] dialog-box (<Language for
Comment> button on [Edit System Parameter] screen),
please set the comment set number for displayed language
of CNC.
Number of display
language (comment)
0: English 8: Dutch
1: Japanese 9: Danish
2: German 10: Portuguese
3: French 11: Polish
4: Chinese 12: Hungarian
5: Italian 13: Swedish
6: Korean 14: Czech
7: Spanish -1: Others
- 147 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
<Close> button
NOTE
1 For details on the I/O link assignment data
selection function, refer to the FANUC PMC
MODEL
PA1/PA3/SA1/SA2/SA3/SA5/SB/SB2/SB3/SB4/SB
5/SB6/SB7/SC/SC3/SC4/NB/NB2/NB6 Ladder
Language Programming Manual (B-61863E).
2 When channel 1 and channel 2 are not checked,
the screen for setting the I/O link assignment data
selection function, which is shown in Subsection
9.3.6, "Setting PMC Setting Parameters," does not
appear.
3 To enable the I/O link assignment selection
function, set the setting parameters (K910 to K913)
correctly according to the I/O devices that are
actually connected.
- 148 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
3.9.1 Procedure
1 Select [File] - [Save As].
The [Save As] screen appears.
Fig. 3.9.1
Fig. 3.9.2
NOTE
Normally, please select <Yes> button.
If you don’t want to modify a net comment data and
a timestamp of a LAD file, press <No> button.
- 149 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
3.10.1 Procedure
1 Select [File] - [Import].
The [Import/Export -- Select import file type] screen appears.
- 150 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
User File
An arbitrary user file is imported to the user file folder
(MyFladder) for the currently open sequence program.
See Subsection 3.1.3, “Work Folders and Online
Program Files,” for an explanation about the user file
folder.
NOTE
As to the import folder,
you can choose the default of the import folder by
the Specify the same folder as a LAD file for
working directory in the [General] tab of the
option.(select the [Tool] - [Option...])
- 151 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
- 152 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
- 153 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
♦ If the memory format file, ROM format file, and/or Handy file
format files are selected as the types of files you want to import
in step 2, above
3 Click the <Finish> button.
The message “Import completed” appears.
- 154 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
♦ If the memory card format file is selected as the type of file you
want to import in step 2 above and the PMC type of the specified
memory card format file is not compatible with the import
destination program, a message appears, which indicates that a
new import destination program will be created.
The [New Program] dialog box appears. Select from among the
displayed PMC types compatible with the import source memory
card format file.
NOTE
When you can select from among multiple
compatible PMC types, decompilation may not
terminate normally, depending on the PMC type
you specify. In this case, specify another
compatible PMC type.
Operation
1. Select [File]-[Import...]. Then, the [Import] dialog appears.
2 Select External Symbol File from the list, push the <Next>
button.
- 156 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
Execution result
Example of Log file.
##### Conversion of External Symbol File #####
Conversion completed Error count = 00000 Warning count = 00000
##### SYMBOL & COMMENT #####
Conversion completed Error count = 00000 Warning count = 00000
- 157 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
NOTE
1 The log file will be opened if the import is finished.
2 When the symbol has already existed, the symbol
does not read.
3 When the character in a symbol is replaced to the
white-space character, please check the following
setting.
a) Select the [Tool]-[Option].
b) Click the [mnemonic/source] tag in the Option
screen.
c) Remove the check of Converting to source
programs.
4 Refer to Appendix E “The data format of the
external symbol file" for the data format of the
external symbol file.
- 158 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
3.11.1 Procedure
1 Select [File] - [Open Program] to open the program from which
you want to perform export.
2 Select [File] - [Export]. The following dialog appears.
- 159 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
User File
A user file is exported from the user file folder
(MyFladder) for the currently open sequence program.
See Subsection 3.1.3 "Work Folders and Online
Program Files," for explanations about the user file
folder.
NOTE
There is an inquiry of compilation when the
Memory-card File/ROM Format File/Handy-file
Format File is exported with only the source
program updated.
Please compile if necessary.
- 160 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
NOTE
As to the export folder,
You can choose the default of the export folder by
the Specify the same folder as a LAD file for
working directory in the [General] tab of the
option.(select the [Tool] - [Option...])
- 161 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
NOTE
In the export of User File, only user files can be
selected.
NOTE
If a file with the same name is already present in
the export destination folder, an overwrite
confirmation message appears.
• FANUC LADDER-III(*.LAD)
- 162 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
• User File
Operation
1 Select [File]-[Export...]. Then, the [Export] dialog appears.
- 163 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
2 Select External Symbol File from the list, push the <Next>
button.
3 Enter the file name to export.
- 164 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
Execution result
Example of Log file.
##### SYMBOL & COMMENT #####
Conversion completed Error count = 00000 Warning count = 00000
##### Conversion of External Symbol File #####
Conversion completed Error count = 00000 Warning count = 00000
Fig. 3.11.2 (c) 30i/31i/32i-A
NOTE
1 When a white-space character is contained in the
symbol, it can be replaced with the specified
character. Select [Tool] - [Option...]. Click
[Mnemonic/Source] tag. Input the character to
replace in Converting to a mnemonic file. Default is
_(underbar).
2 L address of LABEL type is always automatically
assigned regardless of this setting.
3 Refer to Appendix E “The data format of the
external symbol file" for the data format of the
external symbol file.
- 165 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
NOTE
1 When the programmer mode is only off-line,
duplicate coil check is done for the source program
of the ladder.
2 Duplicate coil check is not done for the step
sequence subprogram and the ladder subprogram
protected by a special password.
3 The net with the error while editing is excluded
from the check.
4 Even if the source program of the ladder edits and
is updated, the content of [duplicate coil] screen is
not updated.
5 When the source program of the ladder has been
updated, the ladder edit screen is not opened from
[duplicate coil list] screen.
6 Symbol and wild-card ('*' ,'?') cannot be used to set
the check address.
Procedure
1 [Duplicate Coil - Address Setting] dialog is displayed by either
of the following operations.
• Double-click the <Duplicate Coil> item on the [Program
List] screen.
(Alternatively, move cursor to <Duplicate Coil> and press
[Enter] or [F10] key)
• Right-click <Duplicate Coil> item on the [Program List]
screen, and click [Check…] from context menu.
• Right-click on the Ladder edit screen, and click [(bit
address) Duplicate Coil Check] from context menu.
- 166 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
All
All the output addresses are checked.
Address
An arbitrary output address is checked.
Specification by the bit address and specification in the range to
have used byte address are possible.
‘,’(commma) is used to specify two or more conditions.
Example: A0.0,A0.4,R0-R100,Y0-Y15
Address kind
All the range of the selected kind of address are checked.
Please select the kind of address on [Duplicate Coil - Address
Kind Setting] dialog
(Press <Select> button to display [Duplicate Coil - Address Kind
Setting] dialog.)
- 167 -
3.CREATING AND EDITING SEQUENCE PROGRAMS B-63484EN/05
Address list
Address List
Address of duplicate coil is displayed by the tree form
The number of nets is displayed in parentheses. (In the line for
“All Address” and kind of address, the number of addresses and
nets is displayed.)
- 168 -
B-63484EN/05 3.CREATING AND EDITING SEQUENCE PROGRAMS
Soft Keys
F4 Setting…
[Duplicate Coil – Address Setting] dialog box (Fig. 3.12.1 (e)) is
displayed.
F5 Properties…
Address property dialog box of cursor line is displayed.
F9 Update
When the source program of the ladder is updated, duplicate coil
check is restarted.
Context menu
- 169 -
4.PRINTING SEQUENCE PROGRAMS B-63484EN/05
- 170 -
B-63484EN/05 4.PRINTING SEQUENCE PROGRAMS
4.1.1 Procedure
1 Select [File] - [Print]. The [Print] screen appears.
- 171 -
4.PRINTING SEQUENCE PROGRAMS B-63484EN/05
Title
Specify a title to be printed (the Initially value is "Title
Data").
Sub Title
Specify a subtitle to be printed (the Initially value is blank).
- 172 -
B-63484EN/05 4.PRINTING SEQUENCE PROGRAMS
4.2.1 Procedure
1 Select [File] - [Print]. The [Print] screen appears.
- 173 -
4.PRINTING SEQUENCE PROGRAMS B-63484EN/05
Title
Specify a title for ladder diagram printing (the Initially
value is "Ladder Diagram").
Sub Title
Specify a subtitle for ladder diagram printing (the Initially
value is blank).
Print Range
Specify the range of ladder diagrams to be printed (the
Initially value is <All>).
All: All ladder diagrams will be printed.
Net No.: The ladder diagrams in the specified nets will be
printed.
When you specify [Unit] for the print target
program, specify the range of nets in the
subprogram.
Page No.: The ladder diagrams on the specified pages will
be printed.
Print Program
Specify the ladder programs you want to print (the Initially
value is <All>).
All: All programs (including subprograms) will be printed.
Unit: Enter the name of the subprogram you want to print,
or select it from the combo box.
- 174 -
B-63484EN/05 4.PRINTING SEQUENCE PROGRAMS
Line Spacing
Specify line spacing for nets (the Initially value is
<Narrow>).
Relay/Coil
Specify the data to be printed at a contact (the Initially value
is <Symbol>).
Symbol: Symbol data for contacts will be printed.
Relay Comment: Data for relay comments will be printed.
- 175 -
4.PRINTING SEQUENCE PROGRAMS B-63484EN/05
4.3.1 Procedure
1 Select [File] - [Print]. The [Print] screen appears.
- 176 -
B-63484EN/05 4.PRINTING SEQUENCE PROGRAMS
Title
Specify a title for step sequence printing (the Initially value
is "Step Sequence Diagram").
Sub Title
Specify a subtitle for step sequence printing (the Initially
value is blank).
Print Program
Specify the step sequence programs you want to print (the
Initially value is <All>).
All: All programs (including subprograms) will be printed.
Unit: Enter the name of the subprogram you want to print,
or select it from the combo box.
- 177 -
4.PRINTING SEQUENCE PROGRAMS B-63484EN/05
4.4.1 Procedure
1 Select [File] - [Print]. The [Print] screen appears.
- 178 -
B-63484EN/05 4.PRINTING SEQUENCE PROGRAMS
Title
Specify a title for symbol printing (the Initially value is
"Symbol & Comment").
Sub Title
Specify a subtitle for symbol printing (the Initially value is
blank).
Print Range
Specify the range of symbols to be printed (the Initially
value is <All>).
All: All the symbols will be printed.
Line No.: The symbols on the specified lines will be
printed.
Page No.: The symbols on the specified pages will be
printed.
Comment
Specify the type of comment you want to print (the Initially
value is <Relay Comment>).
Relay Comment: A relay comment will be printed.
Coil Comment: A coil comment will be printed.
Relay Comment/Coil Comment:
Relay and coil comments will be printed.
- 179 -
4.PRINTING SEQUENCE PROGRAMS B-63484EN/05
4.5.1 Procedure
1 Select [File] - [Print]. The [Print] screen appears.
- 180 -
B-63484EN/05 4.PRINTING SEQUENCE PROGRAMS
Title
Specify a title for message printing (the Initially value is
"Message").
Sub Title
Specify a subtitle for message printing (the Initially value is
blank).
Print Range
Specify the range of messages to be printed (the Initially
value is <All>).
All: All the messages will be printed.
Address: The messages in the specified address range will
be printed.
Page No.: The messages on the specified pages will be
printed.
- 181 -
4.PRINTING SEQUENCE PROGRAMS B-63484EN/05
4.6.1 Procedure
1 Select [File] - [Print]. The [Print] screen appears.
- 182 -
B-63484EN/05 4.PRINTING SEQUENCE PROGRAMS
Title
Specify a title for I/O module printing (the Initially value is
"I/O Module").
Sub Title
Specify a subtitle for I/O module printing (the Initially
value is blank).
- 183 -
4.PRINTING SEQUENCE PROGRAMS B-63484EN/05
4.7.1 Procedure
1 Select [File] - [Print]. The [Print] screen appears.
- 184 -
B-63484EN/05 4.PRINTING SEQUENCE PROGRAMS
Title
Specify a title for system parameter printing (the Initially
value is "System Parameter").
Sub Title
Specify a subtitle for system parameter printing (the
Initially value is blank).
- 185 -
4.PRINTING SEQUENCE PROGRAMS B-63484EN/05
4.8.1 Procedure
1 Select [File] - [Print]. The [Print] screen appears.
- 186 -
B-63484EN/05 4.PRINTING SEQUENCE PROGRAMS
Title
Specify a title for cross-reference printing (the Initially
value is "Cross Reference").
Sub Title
Specify a subtitle for cross-reference printing (the Initially
value is blank).
Print Range
Specify the range of cross-references to be printed (the
Initially value is <All>).
All: All the cross-references will be printed.
Address: The cross-references in the specified address
range will be printed.
Address Kind: Cross-references at addresses of the
specified type will be printed. The kind of
the address is specified by pushing the
selection button.
Guidance
Specify the type of output format guidance (the Initially
value is "STEP NO./NET NO.").
Sub Guidance
Specify the type of output format subguidance (the Initially
value is blank).
- 187 -
4.PRINTING SEQUENCE PROGRAMS B-63484EN/05
Print No. Type (The Initially value is "Step No. /Net No. ".)
Comment
Specify the type of comment you want to print (the Initially
value is <Relay Comment>).
Coil Guidance
(The Initially value is <Ladder Diagram Graphics>.)
- 188 -
B-63484EN/05 4.PRINTING SEQUENCE PROGRAMS
- 189 -
4.PRINTING SEQUENCE PROGRAMS B-63484EN/05
4.9.1 Procedure
1 Select [File] - [Print]. The [Print] screen appears.
- 190 -
B-63484EN/05 4.PRINTING SEQUENCE PROGRAMS
2 Set up the following print options on the Bit Address Map tab.
Page No.
Specify a start page number for bit address map printing
(the Initially value is 1).
Title
Specify a title for bit address map printing (the Initially
value is "Bit Address Map").
Sub Title
Specify a subtitle for bit address map printing (the Initially
value is blank).
Print Range
Specify the range of bit address maps to be printed (the
Initially value is <All>).
All: All bit address maps will be printed.
Address: The bit map addresses in the specified
address range will be printed.
Address Kind: Bit map addresses at addresses of the
specified type will be printed (multiple
address types can be selected).
- 191 -
4.PRINTING SEQUENCE PROGRAMS B-63484EN/05
4.10.1 Procedure
First Language
Specify a title for bit address map printing (the Initially
value is <English>).
Second Language
This item can be specified if <First/Second Language> is
selected for Guidance Message Language (the Initially
value is <English>).
- 192 -
B-63484EN/05 4.PRINTING SEQUENCE PROGRAMS
This section describes how to save the print options you set up to a file
and how to read them from the file when printing.
4.11.1 Procedure
1 Select [File] - [Print]. The [Print] screen appears.
2 To save the options to a file, click the <Save Option File> button.
- 193 -
4.PRINTING SEQUENCE PROGRAMS B-63484EN/05
- 194 -
B-63484EN/05 4.PRINTING SEQUENCE PROGRAMS
4.12.1 Procedure
1 Select [File] - [Print]. The [Print] screen appears.
- 195 -
4.PRINTING SEQUENCE PROGRAMS B-63484EN/05
Line Count
Specify the maximum number of lines that can be
printed on one page. A value can be entered directly. It
can also be selected by clicking the up/down arrows.
(The Initially value is 72.)
Char Point
Specify the character spacing, in points. A value can
be entered directly. It can also be selected by clicking
the up/down arrows. The font size may be adjusted
automatically according to the specified character
spacing.
(The Initially value is 9.)
Line Point
Specify the line spacing, in points. A value can be
entered directly. It can also be selected by clicking the
up/down arrows. The number of lines and the font size
may be adjusted automatically according to the
specified line spacing.
(The Initially value is 9.)
Font Face
Specify the font you want to use.
(The Initially value is <Courier New>.)
- 196 -
B-63484EN/05 4.PRINTING SEQUENCE PROGRAMS
Font Size
Specify the font size you want to use. The number of
lines, character spacing, and line spacing may be
adjusted automatically according to the specified font
size.
(The Initially value is 9.)
<Reset> button
This button clears the settings of all the items on the
[Line Count] tab to the respective Initially values.
Line Count
Specify the maximum number of lines that can be
printed on one page. A value can be entered directly. It
can also be selected by clicking the up/down arrows.
The line spacing and font size may be adjusted
automatically according to the specified number of
lines.
(The Initially value is 78.)
Char Point
Specify the character spacing, in points. A value can
be entered directly. It can also be selected by clicking
the up/down arrows. The font size may be adjusted
automatically according to the specified character
spacing.
(The Initially value is 8.)
Line Point
Specify the line spacing, in points. A value can be
entered directly. It can also be selected by clicking the
up/down arrows. The number of lines and the font size
may be adjusted automatically according to the
specified line spacing.
(The Initially value is 8.)
- 197 -
4.PRINTING SEQUENCE PROGRAMS B-63484EN/05
Ladder Data
Specify the ladder data for which you want to specify a
font.
Font Face
Specify the name of the font you want to use for an
item specified in Ladder Data.
(The Initially value is <Courier New>.)
Font Size
Specify the font size you want to use for an item
specified in Ladder Data. The number of lines,
character spacing, and line spacing may be adjusted
automatically according to the specified font size.
(The Initially value is 8.)
<Reset> button
This button clears the settings for all the items on the
[Line Count (Ladder)] tab to the respective Initially
values.
Upper
Specify the top margin for each page. A value can be
entered directly. It can also be selected by clicking the
up/down arrows. The entered value is assumed to be in
mm.
(The Initially value is 20.)
Under
Specify the bottom margin for each page. A value can
be entered directly. It can also be selected by clicking
the up/down arrows. The entered value is assumed to
be in mm.
(The Initially value is 10.)
- 198 -
B-63484EN/05 4.PRINTING SEQUENCE PROGRAMS
Right
Specify the right margin for each page. A value can be
entered directly. It can also be selected by clicking the
up/down arrows. The entered value is assumed to be in
mm.
(The Initially value is 10.)
Left
Specify the left margin for each page. A value can be
entered directly. It can also be selected by clicking the
up/down arrows. The entered value is assumed to be in
mm.
(The Initially value is 10.)
Size
Specify the size of the form you want to use.
(The Initially value is <A4>.)
- 199 -
4.PRINTING SEQUENCE PROGRAMS B-63484EN/05
Frame Print
Specify whether to print a frame. The following items
can be set up only when this item is selected.
File
Specify the meta file you want to use for frame
printing. The <File> button lets you select a file name.
Data
Specify the data for which you want to set up a
character string, coordinate values, and font.
String
Specify a character string set up in Data as print data.
Data can be specified in the following data formats.
%[T]: Title data will be printed.
%[S]: Subtitle data will be printed.
%[P]: A program name will be printed.
%[N]: Page numbers will be printed.
(Initially values)
Character definition 1: %[P]
Character definition 2: %[T]
Character definition 3: %[N]
Character definition 4: %[S]
Character definition 5: Unavailable
X Pos
Specify the print start position (X-coordinate) for a
character string set up in Data. A value can be entered
directly. It can also be selected by clicking the
up/down arrows. The entered value is assumed to be in
mm.
(Initially values)
Character string definition 1: 10
Character string definition 2: 75
Character string definition 3: 180
Character string definition 4: 75
Character string definition 5: 0
Y Pos
Specify the print start position (Y-coordinate) for a
character string set up in Data. A value can be entered
directly. It can also be selected by clicking the
up/down arrows. The entered value is assumed to be in
mm.
(Initially values)
Character string definition 1: 10
Character string definition 2: 10
Character string definition 3: 10
Character string definition 4: 15
Character string definition 5: 0
- 200 -
B-63484EN/05 4.PRINTING SEQUENCE PROGRAMS
Font Face
Specify the name of the font you want to use to print
the data set up in Data.
(The Initially value is <Courier New>.)
Font Size
Specify the font size you want to use to print the data
set up in Data.
(The Initially value is 12.)
2-6 To use the entered page settings, click the <OK> button.
To cancel the page settings, click the <Cancel> button.
- 201 -
5.COMPILATION AND DECOMPILATION B-63484EN/05
• Compilation
Compilation involves converting an edited source program to
object code that can be executed by the PMC. Unless source
programs are compiled, online functions cannot be used and the
source programs cannot be transferred to RAM of the PMC.
• Decompilation
Decompilation involves converting object code to a source
program. Data items uploaded from the PMC, and data items
read from ROM and a memory card become object code. Since
object code can neither be edited nor printed offline, you must
decompile object code.
NOTE
To decompile an object code with a password,
enter the password first.
- 202 -
B-63484EN/05 5.COMPILATION AND DECOMPILATION
5.1 COMPILATION
Procedure
1 Select [Tool] - [Compile]. The [Compile] dialog appears.
- 203 -
5.COMPILATION AND DECOMPILATION B-63484EN/05
- 204 -
B-63484EN/05 5.COMPILATION AND DECOMPILATION
Table 5.1(b)
Option Explanation
A symbol (16 bytes or less) that can be displayed
Output Symbol/Comment on display unit of CNC, and a comment are output
to an object code.
Output First Comment First comment is output to an object code.
Output Second Comment Second comment is output to an object code.
Output Netcomment
A net comment pointer is output to an object code.
pointers
Multiple used check of Functions TMR, TMRB, CTR, DIFU, and DIFD are
the Function parameter checked if they are duplicated. If any, a warning is
number displayed.
A password is added to an object code. Enter a
Setting of Password
password at the start of execution.
- 205 -
5.COMPILATION AND DECOMPILATION B-63484EN/05
NOTE
1 Condense mode
Condense mode has the following advantages.
• Reduced compilation time.
• Reduced transfer time from a personal computer to the
PMC.
• The mode requires little ROM space.
On the other hand, the following restrictions must be observed:
• When data is edited by an integrated edit function, and if a
ladder or symbol is added, overlapping with the C language
area might occur. Pay careful attention to this point.
2 Net comment pointer
The net comment contains string information only in a source
program. The compiled object code does not include the net
comment information. Therefore, the setting to output the "net
comment pointer" (position information of a net comment) as a
function NOP to object code was developed. This position
information enables the net comment to be restored at
decompilation after a ladder is modified by online editing.
3 Symbol comment data
A relay comment, which is a type of symbol comment data, is
not included in a compiled object code. For details, see Section
3.5.1, " Symbol and Comment Data."
4 PMC-SB7
On PMC-SB7, the "Condense" and "Ignore too long strings of
the symbol" options are enabled unconditionally.
- 206 -
B-63484EN/05 5.COMPILATION AND DECOMPILATION
Header information
Size information
Header information
Item Contents
File name LAD file name
PMC Type The model of PMC
Date Date the file was created.
* Date is dependent on "Regional options".
Size information
Item Contents
Message Data size of a message.
Symbol Data size of a symbol and a comment.
Comment
Ladder program Data size of a ladder and step sequence.
Memory Used Data size of the all ladder program .
F-ROM Used Size of Flash ROM necessary to store a ladder
program.
* KB is KByte.
NOTE
When displayed "F-ROM used" size exceeds the
option of PMC ladder capacity, the ladder cannot
be transmitted to PMC or may be unable to write
correctly to F-ROM.
- 207 -
5.COMPILATION AND DECOMPILATION B-63484EN/05
5.2 DECOMPILATION
This section describes how to decompile object code.
Procedure
1 Select [Tool] - [Decompile]. The [Decompile] dialog appears.
- 208 -
B-63484EN/05 5.COMPILATION AND DECOMPILATION
- 209 -
5.COMPILATION AND DECOMPILATION B-63484EN/05
- 210 -
B-63484EN/05 5.COMPILATION AND DECOMPILATION
NOTE
Password
The password to be entered differs depending on
the type of the password added to an object code.
• Only Password(Read)
→ Enter Password(Read) to permit display
• Only Password(Read/Write) or Password(Write)
→ Enter Password(Read/Write) or
Password(Write) to permit display and editing
• Both
→ Enter Password(Read/Write) or
Password(Write) to permit display and editing
Header information
Size information
- 211 -
5.COMPILATION AND DECOMPILATION B-63484EN/05
Header information
Item Contents
File name LAD file name
PMC Type The model of PMC
Date Date the file was created.
* Date is dependent on "Regional options".
Size information
Item Contents
Message Data size of a message.
Symbol
Data size of a symbol and a comment.
Comment
Ladder program Data size of a ladder and step sequence.
Memory Used Data size of the all ladder program .
Size of Flash ROM necessary to store a ladder
F-ROM Used
program.
* KB is KByte.
NOTE
The display format of "Modified" is dependent on
"Regional options". So, the contents of the display
may differ.
- 212 -
B-63484EN/05 5.COMPILATION AND DECOMPILATION
NOTE
Setting options for automatic compilation or
decompilation
(1) Compile option
• Select [Tool] - [Option].
• Click the [Compile] tab for setting.
(2) Decompile option
• Select [Tool] - [Option].
• Click the [Decompile] tab for setting.
- 213 -
5.COMPILATION AND DECOMPILATION B-63484EN/05
NOTE
The different dialog by PMC model is displayed.
Please refer to the manual of the corresponding
PMC model for details of the password.
1 FANUC PMC MODEL
PA1/PA3/SA1/SA2/SA3/SA5/SB/SB2/SB3/SB4/
SB5/SB6/SB7/SC/SC3/SC4/NB/NB2/NB6
LADDER LANGUAGE PROGRAMMING
MANUAL.(B-61863E)
2 FANUC Series 30i/300i/300is-MODEL A PMC
PROGRAMMING MANUAL (B-63983EN)
5 Click the <OK> button. Then, object code with the entered
password is created.
- 214 -
B-63484EN/05 5.COMPILATION AND DECOMPILATION
NOTE
Entering a password
1 A password must consist of no more than eight or
sixteen alphanumeric characters. (The maximum
length of characters is different in dependence on
the PMC model.)
2 Passwords are not case-sensitive. (A lower-case
letter is regarded as an upper-case letter.)
3 A space, kana character, kanji character, and
special character (for example, *, #, and @ )
cannot be used.
4 There are combinations of characters, which
cannot be used in some rare cases.(An error
message appears.) In this case, enter another
string.
• Special password
A special password begins with #.
(Except for its beginning with #, a special password is no
different from a normal password.)
PMC-SB4(STEP)/SC4(STEP)/SB6(STEP)/SB6(STEP,IO-2)/
SB7/NB2(STEP)
Display item Setting
Setting for display permission No check
Setting for display and edit Check
permission Input a password that begins with #.
Password E.g.: #FANUC
- 215 -
5.COMPILATION AND DECOMPILATION B-63484EN/05
• Applied model
PMC-SB4(STEP)/SC4(STEP)/SB6(STEP)/SB6(STEP,IO-2)
/SB7/NB2(STEP)
30i-A PMC/30i-A PMC(EXT)/30i-A PMC(2nd)/
30i-A PMC(2nd,EXT)/30i-A PMC(3rd)/30i-A PMC(3rd,EXT)
31i-A PMC/31i-A PMC(EXT)/31i-A PMC(2nd)/
31i-A PMC(2nd,EXT)/31i-A PMC(3rd)/31i-A PMC(3rd,EXT)
32i-A PMC/32i-A PMC(EXT)/32i-A PMC(2nd)/
32i-A PMC(2nd,EXT)/32i-A PMC(3rd)/32i-A PMC(3rd,EXT)
NOTE
Object code with a special password can be
decompiled without entering a password. In this
case, only a subprogram in the non-protection area
(P1500 or later) can be displayed, edited, and
printed. When compiled, [Setting of Password] in
the compile option is ignored and an object code is
created by using a special password added to the
object code. This enables only the non-protection
area to be changed while a ladder program created
by a machine tool builder is protected.
- 216 -
B-63484EN/05 5.COMPILATION AND DECOMPILATION
If you use this function, the 1st parameter for the TMRB/ TMRBF/
DIFU/ DIFD instructions will be automatically numbered at the
compiling process and you no longer have to take care of entering the
specific numbers for these parameters.
Supported instructions
The 1st parameter of the following functional instructions is the target
of assignment.
SUB24(TMRB)
SUB77(TMRBF)
SUB57(DIFU)
SUB58(DIFD)
To use this function, you should set the 1st parameter for the TMRB/
TMRBF/ DIFU/ DIFD instructions to 0. When the TMRB/ TMRBF/
DIFU/ DIFD instructions, that have a number 0 in the first parameter,
are detected in the compiling process of the FANUC OPEN CNC
Ladder Editimg Package, their numbers are automatically generated
from the last number. In this case, the TMRB/ TMRBF/ DIFU/ DIFD
instructions, that have a number except 0, is detected, its number is not
changed. This automatic number generation is done only at the
compiling process of FANUC OPEN CNC Ladder Editimg Package.
Therefore, you can set its number to 0 in a mnemonic file or on the
offline editing screen but you cannot set its number to 0 on the online
editing screen which does not executes the compiling process.
RD Input
TMRB
0
1000
WRT Output1
RD Input
TMRBF
0
1000
WRT Output2
RD Input
DIFU
0
WRT Output3
RD Input
DIFD
0
WRT Output4
Fig. 5.5 (a) Ladder diagram Fig. 5.5 (b) Mnemonic data
- 217 -
5.COMPILATION AND DECOMPILATION B-63484EN/05
Operation
1 Select [Tool]-[Compile...]. Then, the [Compile] dialog appears.
2 Click the <Exec> button.
3 If compile processing is completed, the error and warning are
displayed.
NOTE
1 The result of automatic assignment is output to the
map log. Push the <Map Log> button to display the
net number, the functional instruction and the
automatic assigned parameter number.
2 You can check duplication of the parameter
number of the functional instruction TMR, TMRB,
TMRBF, CTR, CTRB, DIFU, and DIFD. Please
check the Multiple used check of the Function
parameter number of the [option] tab of the
[compile] screen.
3 You cannot check the automatically generated
number on the offline editing screen because
automatic numbering function generates the
parameter number in the ladder object code
directly. But you will be able to check the
automatically generated number on the online
editing screen.
- 218 -
B-63484EN/05 6.MNEMONIC EDITING
6 MNEMONIC EDITING
This chapter describes how to convert a source program to a
mnemonic file, and vice versa, as well as the mnemonic file format.
- 219 -
6.MNEMONIC EDITING B-63484EN/05
Procedure
1 Select [Tool] - [Mnemonic Convet]. Then, the [Mnemonic –
Mnemonic Conversion] dialog appears.
Fig. 6.1
Table 6.1(a)
ALL Converts all source programs.
System Parameter Converts only system parameters.
Title Converts only titles.
Symbol&Comment Converts only symbols and comments.
No check External Symbol
Symbol&Comment Converts only symbols and comments into
Check External Symbol the external symbol file.
Ladder Converts only ladder programs.
I/O Module Converts only I/O modules.
Message Converts only messages.
NOTE
The External Symbol is displayed if the external
symbol file output function is supported.
- 220 -
B-63484EN/05 6.MNEMONIC EDITING
- 221 -
6.MNEMONIC EDITING B-63484EN/05
Operation
1 Select [Tool]-[Mnemonic Convert...]. Then, the [Mnemonic]
screen appears.
Fig 6.1.1(a)
NOTE
1 When a white-space character is contained in the
symbol, it can be replaced with the specified
character. Select [Tool] – [Option...]. Click
[Mnemonic/Source] tag. Input the character to
replace in Converting to a mnemonic file. Default is
_(underbar).
2 L address of LABEL type is always automatically
assigned regardless of this setting.
3 Refer to Appendix E "The data format of the
external symbol file" for the data format of the
external symbol file.
- 222 -
B-63484EN/05 6.MNEMONIC EDITING
Procedure
1 Select [Tool] - [Source Program Convert]. Then, the [Mnemonic
– Source Program Conversion] dialog appears.
Fig. 6.2
- 223 -
6.MNEMONIC EDITING B-63484EN/05
NOTE
1 For conversion to a source program, the source
program of the currently open sequence program is
changed but is not stored, however.
2 For a coil comment, created in A or B format, that
contains single-byte lowercase alphabetic
characters, the lowercase characters are replaced
with uppercase characters when a mnemonic file is
converted to a source program.
3 If the name of defined symbol data is the same as a
signal name available in ladder programs, an error
may occur during conversion to source data.
- 224 -
B-63484EN/05 6.MNEMONIC EDITING
Procedure
1 Select [Tool] – [Source Program Convert…]. Then, the
[Mnemonic – Source Program Conversion] dialog appears.
Fig. 6.2.1
- 225 -
6.MNEMONIC EDITING B-63484EN/05
; Symbol(LEVEL1) ; Ladder(LEVEL1)
%@2-C %@3
X0000.0 I_L1_MODULE_00_0 (*
$1 'INPUT 00.0' PROGRAM $name$ LEVEL1
Y0001.0 O_L1_MODULE_01_0 VERSION $version$ 0.01
$1 '' 'OUTPUT MODULE 01.0' DATE $date$ 2003.08.01
% PROGRAMMED BY $author$
COPYRIGHT (C) 2003, FANUC LTD.
*)
RD I_L1_MODULE_00_0
WRT O_L1_MODULE_01_0
END1
%
; Symbol(LEVEL2) ; Ladder(LEVEL2)
%@2-C %@3
X0001.1 I_L2_MODULE_01_1 (*
$1 'INPUT 01.1' PROGRAM $name$ LEVEL2
Y0002.1 O_L2_MODULE_02_1 VERSION $version$ 0.01
$1 '' 'OUTPUT MODULE 02.1' DATE $date$ 2003.08.01
% PROGRAMMED BY $author$
COPYRIGHT (C) 2003, FANUC LTD.
*)
RD I_L2_MODULE_01_1
WRT O_L2_MODULE_02_1
END2
%
; Symbol(P0001) ; Ladder(P0001)
%@2-C %@3
X010.1.1 I_P1_MODULE_10_1 P1 SP
$1 'INPUT 10.1' (*
Y012.1 O_P1_MODULE_12_1 PROGRAM $name$ P0001
$1 '' 'OUTPUT MODULE 12.1' VERSION $version$ 0.01
% DATE $date$ 2003.08.01
PROGRAMMED BY $author$
COPYRIGHT (C) 2003, FANUC LTD.
*)
RD I_P2_MODULE_10_1
WRT O_P2_MODULE_12_1
SPE
%
- 226 -
B-63484EN/05 6.MNEMONIC EDITING
Identification code
For a mnemonic file, data is defined using one of four types of
identification code, beginning with %.
Table 6.3 (a)
Identification
Meaning
code
%@A Start of ALL-format data
%@E End of ALL-format data
%@0 to %@5 Start of each single-format data
%@0: System parameter
%@1: Title
%@2: Symbol and comment (FORMAT-A/B)
%@2-C: Symbol and comment (FORMAT-C)
%@2-C2: Symbol and comment (For multiple comments)
%@2-D: Symbol and comment (Extended function)
%@2-E (optional setting):
Symbol and comment (CSV format)
%@3: Ladder
%@3-D: Ladder (Extended function)
%@4: Message
%@5: I/O module
Only % End of each single-format data
Delimiter
Table 6.3 (b)
This is used in ladder data.
• This is used in the ladder data part to delimit ladder data
and a comment statement. Data after ";" is regarded as
; (Semicolon)
being a comment statement. Consequently, when a
mnemonic file is converted to a source program, data
after ";" is not converted but deleted.
This is used in ladder data and I/O module data.
• This is used in a ladder data part to delimit net numbers
and ladder data. Data before ":" is regarded as being net
: (Colon) numbers.
• This is used in the I/O module data part to delimit
channel numbers and I/O module data. Data before ":" is
regarded as being channel numbers.
- 227 -
6.MNEMONIC EDITING B-63484EN/05
Control character
In a mnemonic file, a dollar sign "$" is used as the control character.
When a dollar sign is used in a string, describe "$$."
(1) Symbol and comment data
• Specifying address and symbol
Describe an address and symbol on the same line. At the
beginning of a line, describe an address, use a half-size
space or tab as a delimiter, and then describe a symbol.
R0200.0 UNIT-3-POWER
Address Symbol
$1 ’KEEPPOWERON’ ’KEEPPOWERON’
Relay comment Coil comment
$1 ’’ ’INITIALIZE OF SEQUENCE’
$1 ’KEEPPOWERON’ ’KEEPPOWERON’
1st comment 2nd comment
$1 ’’ ’INITIALIZE OF SEQUENCE’
- 228 -
B-63484EN/05 6.MNEMONIC EDITING
NOTE
When you use a single quotation mark " ' " in a
string of a relay comment or coil comment,
describe a dollar sign plus a single quotation mark
as "$" + " ' ".
%%%FLSET
;==========================================================
; FANUC LADDER-III Initial Setting File
; ( `key word =' <= 9characters )
;==========================================================
:
*M; ======== Mnemonic options definition ========
:
SFC=0;
;
NETCMT_CTRL_CHAR=$; Addition
- 229 -
6.MNEMONIC EDITING B-63484EN/05
NOTE
1 If you don’t need the control character in a
mnemonic file, please set
“NETCMT_CTRL_CHAR=NULL” in a
file %%%FLSET.
2 When the control character is used in a string,
please describe two consecutive control
characters.
Ex.) When the control character is “#”, please
describe “##”
3 When specifying the position of a form feed
character (printing a ladder diagram), please
describe “a control character” + “P” in a net
comment.
4 If this software is updated with the new released
installer, a file %%%FLSET is initialized and the
line of “NETCMT_CTRL_CHARA=” is deleted. After
reinstalling this software, please set
“NETCMT_CTRL_CHARA=” again if you want to
change the control character in a mnemonic file.
Example
• When the control character is “$”. (current
specification)
%@3 Converting into
(* $P *) the source <New page>
RD ABC program ABC XYZ
WRT XYZ
(* #P *)
: [ #P ]
%
Fig. 6.3 (b)
- 230 -
B-63484EN/05 6.MNEMONIC EDITING
6.4.1.1 Parameter
%@0
2 BCD → Counter data type
3 NO → Presence or absence of operator panel
4 PMC-RC4 → PMC type
5 000000 → Head address of language program link control statement data
6 50 → Time ratio to execute language program
7 100 → Ladder execution time
%
PMC type
Table 6.4.1.1
PMC model Setting data (half-size string)
30i-A PMC 30i-A PMC
30i-A PMC(2nd) 30i-A PMC(2nd)
30i-A PMC(3rd) 30i-A PMC(3rd)
30i-A PMC(DCS) 30i-A PMC(DCS)
30i-A PMC(EXT) 30i-A PMC(EXT)
30i-A PMC(2nd,EXT) 30i-A PMC(2nd,EXT)
30i-A PMC(3rd,EXT) 30i-A PMC(3rd,EXT)
30i-A PMC(DCS,EXT) 30i-A PMC(DCS,EXT)
31i-A PMC 31i-A PMC
31i-A PMC(2nd) 31i-A PMC(2nd)
31i-A PMC(3rd) 31i-A PMC(3rd)
31i-A PMC(DCS) 31i-A PMC(DCS)
31i-A PMC(EXT) 31i-A PMC(EXT)
31i-A PMC(2nd,EXT) 31i-A PMC(2nd,EXT)
31i-A PMC(3rd,EXT) 31i-A PMC(3rd,EXT)
31i-A PMC(DCS,EXT) 31i-A PMC(DCS,EXT)
- 231 -
6.MNEMONIC EDITING B-63484EN/05
- 232 -
B-63484EN/05 6.MNEMONIC EDITING
- 233 -
6.MNEMONIC EDITING B-63484EN/05
NOTE
Please refer to Subsection 3.8.1 “Operation” of
Section 3.8 “EDITING SYSTEM PARAMETERS”
for the detail.
- 234 -
B-63484EN/05 6.MNEMONIC EDITING
- 235 -
6.MNEMONIC EDITING B-63484EN/05
- 236 -
B-63484EN/05 6.MNEMONIC EDITING
- 237 -
6.MNEMONIC EDITING B-63484EN/05
NOTE
Please refer to Subsection 3.8.1 “Operation” of
Section 3.8 “EDITING SYSTEM PARAMETERS”
for the detail.
- 238 -
B-63484EN/05 6.MNEMONIC EDITING
6.4.2 Title
%@1
01 MACHINE TOOL BUILDER NAME
02 MACHINE TOOL NAME
03 CNC & PMC NAME
04 PMC PROGRAM NO.
05 EDITION NO.
06 PROGRAM DRAWING NO.
07 DATE OF PROGRAMMING
08 PROGRAM DESIGNED BY
09 ROM WRITTEN BY
10 REMARKS
%
%2-C
Address %@2-C
Symbol
R0200.0 UNIT-3-POWER
$1 ‘KEEP POWER ON’ ‘KEEP UNIT-3 POWER ON’
R0200.1 UNIT-2-ACT
Mark that represents $1 ‘$’POWER$$’ ‘KEEP UNIT-4 $$POWER$’ ON’ Coil comment
comment data R0300.0
$1 ‘KEEP POWER ON’ ‘KEEP UNIT-4 POWER ON’
P0008 OPEN-FRONT
Relay comment $1 ‘OPEN FRONT COVER
L0100 INITIALIZE
$1 ‘’ ‘INITIALIZE OF SEQUENCE
%
NOTE
1 Symbol is up to 16 characters (bytes).
2 Relay comment is up to 16 characters (bytes).
3 Comment is up to 30 characters (bytes).
%2-C2
Address %@2-C2
Symbol
R0200.0 UNIT-3-POWER
$1 ‘KEEP POWER ON’ ‘KEEP UNIT-3 POWER ON’
R0200.1 UNIT-2-ACT
Mark that represents $1 ‘$’POWER$$’ ‘KEEP UNIT-4 $$POWER$’ ON’ 2nd comment
comment data R0300.0
$1 ‘KEEP POWER ON’ ‘KEEP UNIT-4 POWER ON’
P0008 OPEN-FRONT
1st comment $1 ‘OPEN FRONT COVER
L0100 INITIALIZE
$1 ‘’ ‘INITIALIZE OF SEQUENCE
%
NOTE
1 Symbol is up to 16 characters (bytes).
2 First Comment and second comment are up to 30
characters (bytes).
- 239 -
6.MNEMONIC EDITING B-63484EN/05
6.4.2.2 Ladder
%@3
RD X0.4
OR Y80.6
WRT D300.1
SUB 1
RD.NOT X3.0
SUB 40
2
8191
D300
SUB 2
%
Full option
%@3
N00001: SUB 71 ; SP
P1 ; (SUBPR1 ) “SUB PROG. NO.01”
; [SUB PROGRAM DATA NO.01]
N00002: RD X0.0 ; (XADRS1 ) “JUMPB LABEL L001”
SUB 68 ; JMPB
L100 ; (LABEL1 )
; [LABEL L00001]
N00003: RD X0.1 ; (XADRS2 ) “JMPC LABEL L001”
SUB 73 ; JMPC
L100 ; (LABEL1 )
; [LABEL L00001]
N00004: SUB 69 ; LBL
L100 ; (LABEL1 )
; [LABEL L00001]
N00005: SUB 72 ; SPE
N00006: SUB 71 ; SP
P2 ; (SP1000 ) “SUB PROGRAM NO.1”
N00007 RD R0.0 ; (RADRS00)
DEC D0 ; (DADRS04)
2
WRT D0.0
N00008: SUB 72 ; SPE
N00009: SUB 64 ; END
%
- 240 -
B-63484EN/05 6.MNEMONIC EDITING
%@3
SUBPR1 SP SUBPR1 ; <P1 > “SUB PROG. NO.01”
; [SUB PROGRAM DATA NO.01]
RD XADRS1 ; <X0.0 > “JUMPB LABEL L001”
JMPB LABEL1 ; <L100 >
; [LABEL L00001]
RD XADRS2 ; <X0.1 > “JUMPB LABEL L002”
JMPB LABEL1 ; <L100 > [LABEL L00001]
LABEL1 LBL ; <L100 >
; [LABEL L00001]
SPE
SP1000 SP ; <P2 > “SUB PROG. NO.01”
RD RADR00 ; <R0.0 >
DEC DADR04 ; <D0 >
2
WRT D0.0
SPE
END
%
6.4.2.3 Message
%@4
A00.0 2100020 ACT DOOR NOT CLOSE
A00.1 2101022 SPINDLE SPEED ARRIVAL SIGNAL NOT ON
A00.2 2100020 EDTOK KEY SWITCH ON
%
%@5
X000 1 0 1 ID64A
Y008 1 0 4 OD64B
%
- 241 -
6.MNEMONIC EDITING B-63484EN/05
%@A
%@0
2 BINARY
3 NO
4 PMC-RB4
%
%@1
01 MACHINE TOOL BUILDER NAME
:
:
10 REMARKS
%
%@2-C
R0200.0 UNIT-3-POWER
$1 ‘KEEP POWER ON’ ‘KEEP UNIT-3 POWER ON’
R0200.1 UNIT-2-ACT
$1 ‘$’POWER$$’ ‘KEEP UNIT-4 $$POWER$’ ON’
R0300.0
$1 ‘KEEP POWER ON’ ‘KEEP UNIT-4 POWER ON’
P0008 OPEN-FRONT
$1 ‘OPEN FRONT COVER
L0100 INITIALIZE
$1 ‘’ ‘INITIALIZE OF SEQUENCE
%
%@3
RD R1001.0
OR R120.3
AND R1000.2
WRT Y2000.4
(*
Describe a net comment at this position.
Any characters that can be entered from a PC are available.
*)
RD R1001.0
AND R1000.2
WRT Y23.4
(* $p *) ← Specification of the position of a form feed character
(printing a ladder diagram)
RD R101.0
OR R123.4
AND R100.2
WRT Y200.4
%
%@4
A00.0 2100020 ACT DOOR NOT CLOSE
A00.1 2101022 SPINDLE SPEED ARRIVAL SIGNAL NOT ON
%
%@5
X000 1 0 1 ID16C
Y008 1 0 4 OD32A
%
%@E
- 242 -
B-63484EN/05 6.MNEMONIC EDITING
Procedure
1 Modify a mnemonic option definition in the %%%FLSET file in
the Ladder Editing Package (Windows) installation folder, using
a text editor.
;==============================================================================
; Ladder Editing Package(Windows) Initial Setting File
; ( `key word =' <= 9characters )
;==============================================================================
;
~~
*M; ======== Mnemonic options definition ========
;
P_G_COMPATIBLE = /ERC FLMNE.ERR /OUT V /P-G
JPN_COMMENT = /ERC FLMNE.ERR /OUT V /SJ /MJJ /ICH
JPN_FULL_OPTIONS = /ERC FLMNE.ERR /OUT V /LX 8 20 28 /SJ /LS /LC /LF /LN /MJJ /ICH
ENG_FULL_OPTIONS = /ERC FLMNE.ERR /OUT V /LX 8 20 28 /LS /LC /LF /LN /ICH
JPN_LABEL_SUBPRG = /ERC FLMNE.ERR /OUT V /LX 10 21 31 /SJ /LAD /LC /LLS /LAS /LS /LFN /MJJ /ICH
ENG_LABEL_SUBPRG = /ERC FLMNE.ERR /OUT V /LX 10 21 31 /LAD /LC /LLS /LAS /LS /LFN /ICH
;
SFC=1; ← When you want to convert a step sequence program to a mnemonic file or source
program, set 1.
;
2 Select [Tool] - [Mnemonic Convert...]. The [Mnemonic] dialog
box appears. In this dialog box, convert a step sequence program
to a mnemonic file.
NOTE
1 Do not edit a step sequence program converted to
a mnemonic file using a text editor.
2 If you re-install the Ladder Editing Package, the
content of "%%%FLSET" file is replaced with initial
value.
- 243 -
6.MNEMONIC EDITING B-63484EN/05
Fig. 6.6
Converting to a mnemonic file
To replace the white-space character with another character when
converting to a mnemonic files, please check [Replace a
white-space character of symbol to the specified character].
(Default: checked on)
When this box is not checked, the white-space characters in a
symbol are output to a mnemonic file without being replaced.
Enter the replacing character in the [Specified Character] edit
box (one half-size character).
Converting to source programs
To replace the specified character with the white-space character
when converting to source programs, please check [Replace the
specified character of symbol to a white-space character].
(Default: checked off)
When this box is not checked, the specified characters in a
symbol are output to a symbol data without being replaced.
Enter the replacing character in the [Specified Character] edit
box (one half-size character).
- 244 -
B-63484EN/05 6.MNEMONIC EDITING
Identification code
For a mnemonic file, data is defined using one of four types of
identification code, being with %.
Please use identification code "%@2-E" when you describe symbol
information in the CSV file.
Table 6.7
Identification
Meaning
code
%@A Start of ALL-format data
%@E End of ALL-format data
%@0 to %@5 Start of each single-format data
%@0:System parameter
%@1:Title
%@2:Symbol and comment (FORMAT-A/B)
%@2-C:Symbol and comment (FORMAT-C)
%@2-C2:Symbol and comment(Multiple comment)
%@2-D:Symbol and comment (Variable symbol)
%@2-E(Option):Symbol and comment (CSV file)
%@3:Ladder
The column number
%@3-D:Ladder(Variable symbol)
of symbol, comment
%@4: Message
and etc. is specified
%@5:I/O module
for Option enclosed
Only % End of each single-format data in parentheses
behind %@2-E.
6.7.1 Option
The column number of symbol, comment and etc. is specified for
Option enclosed in parentheses behind %@2-E.
Table 6.7.1
Option Description Remarks
/SYM= Specify a column no. of symbol 1st column when omitted
/SCP= Specify a column no. of symbol scope Symbol scope is global when omitted
(LEVEL1->L1, LEVEL2->L2, P0001->P1,,).
/TYP= Specify a column no. of symbol type 3rd column when omitted
(BOOL/BYTE/WORD/DWORD)
/ADR= Specify a column no. of address 4th column when omitted
/CM1= Specify a column no. of comment 1 When omitted, it is considered that comment 1/2/3/4
/CM2= Specify a column no. of comment 2 does not exist.
/CM3= Specify a column no. of comment 3 In Additional Information window of CNC’s I/O
/CM4= Specify a column no. of comment 4 DIAGNOSIS screen, one of 4 comments can be
displayed according to the setting of display language
on CNC. Please see “10.7.1 Set of display language
for comment” in this material.
/SEP= Specify a character of delimiter Delimiter is comma when omitting
- 245 -
6.MNEMONIC EDITING B-63484EN/05
Table 6.7.1
Option Description Remarks
+ Plus is used to connect strings of two or To combine the character strings in the fifth column
more comment columns and the tenth column into comment 1, specify
CM1=5+10.
/JOI= Specify a character to connect strings of When /JOI=_ is specified, _ is added between
two or more comment columns. character strings to be combined. When this option is
omitted, they are directly combined.
/LBL The first effective line is a column label When /LBL exists, the conversion of the first line in
definition line. effective data is skipped.
(white-space) Delimiter of option setting
:
%@2-E(SYM=1 ADR=2 TYP=3 SCP=4 CM1=5 CM2=6)
STOP,Y0.0,BOOL,Stop signal on,Maintenance information (Line 29)
POWER_OFF,X32.0,BOOL,Power off status,Maintenance information (Line 01)
DOOR,X32.1,BOOL,Safety door open,Maintenance information (Line 12)
%
:
- 246 -
B-63484EN/05 6.MNEMONIC EDITING
Procedure
1 Boot Ladder Editing Package. And then select [Ladder] -
[Programer Mode] - [Offline]. Then, display mode is changed to
Offline.
2 Select [Tool] - [Source Program Convert…]. Then, the
[Mnemonic - Source Program Conversion] dialog appears.
Fig. 6.7.3
NOTE
When converting from the source file to mnemonic
file, symbol/comment data is always exported in
normal symbol/comment format (%@2-D section
format). It is not supported to export CSV format
symbol/comment file.
- 247 -
7.INPUT/OUTPUT B-63484EN/05
7 INPUT/OUTPUT
This chapter describes how to load and store programs.
NOTE
1 When input or output (loading data from the PMC
or storing data to the PMC) is performed during NC
operation, the speed at which data (such as
positions) is displayed on an NC screen may fall.
This does not, however, affect NC operation. It is
recommended that input or output be performed
while the NC is not being operated.
2 While a screen created by the C language executor
is displayed, the communication speed falls. It is
recommended that, after moving to another screen
such as the position display screen, input or output
(loading data from the PMC or storing data to the
PMC) be performed.
- 248 -
B-63484EN/05 7.INPUT/OUTPUT
7.1.1 Procedure
1 Select [Tool] - [Communication...].
Host
Specify a host name (for example, "CNC1") or an IP
address (for example, "190.168.0.1").
- 249 -
7.INPUT/OUTPUT B-63484EN/05
Port No.
Specify the port number of the Ethernet function of the
CNC to be connected.
Time Out
Specify the time out applied to the transmission/reception of
PMC data, in seconds.
NOTE
If the PMC is displaying one of the following
screens, you cannot communicate with the PMC.
Use the online function after the PMC switches to
another screen.
[PMCLAD], [I/O], [EDIT], [SYSPRM], [TRACE],
[ANALYS], [USRDGN], [DBGLAD], [GDT],
[USRMEM]
- 250 -
B-63484EN/05 7.INPUT/OUTPUT
Fig.7.1.2
Use FBUS
When using the expansion driver/library to communicate
through a high-speed serial bus, check this option. When
using only Ethernet together with Ladder Editing Package
(Windows), uncheck this option. (Initially, this checkbox is
checked.)
NOTE
When the expansion driver/library is not installed, if
the [Use FBUS] checkbox is checked, an error may
occur. For details on the expansion driver/library,
see Section 1.1, "OPERATING ENVIRONMENT."
- 251 -
7.INPUT/OUTPUT B-63484EN/05
7.2.1 Procedure
1 Select [Tool] - [Load from PMC].
The [Program transfer wizard Selection of transferred method]
screen appears.
NOTE
On PMC-SB7 and 30i/31i/32i-A PMC, this screen
does not appear. On PMC-SB7 and 30i/31i/32i-A
PMC, only <I/O by MONIT-ONLINE function> is
available.
- 252 -
B-63484EN/05 7.INPUT/OUTPUT
- 253 -
7.INPUT/OUTPUT B-63484EN/05
- 254 -
B-63484EN/05 7.INPUT/OUTPUT
Table 7.2.1
Model Compatible PMC
Ladder Type 30i-A 31i-A 32i-A
1st 30i-A PMC 31i-A PMC 32i-A PMC
2nd 30i-A PMC(2nd) 31i-A PMC(2nd) 32i-A PMC(2nd)
3rd 30i-A PMC(3rd) 31i-A PMC(3rd) 32i-A PMC(3rd)
DCS 30i-A PMC(DCS) 31i-A PMC(DCS) 32i-A PMC(DCS)
1st, EXT 30i-A PMC(EXT) 31i-A PMC(EXT) 32i-A PMC(EXT)
2nd, EXT 30i-A PMC(2nd,EXT) 31i-A PMC(2nd,EXT) 32i-A PMC(2nd,EXT)
3rd, EXT 30i-A PMC(3rd,EXT) 31i-A PMC(3rd,EXT) 32i-A PMC(3rd,EXT)
DCS, EXT 30i-A PMC(DCS,EXT) 31i-A PMC(DCS,EXT) 32i-A PMC(DCS,EXT)
: Compatible memory card form file
NOTE
The sequence program for Series 30i-A can be
executed in Series 31i/32i-A without conversion.
But, do not execute the PMC sequence program in
other CNC without debugging.
- 255 -
7.INPUT/OUTPUT B-63484EN/05
2 Select <I/O by “I/O” key operation>, and then click the <Next>
button. The [Program transfer wizard Selection of loading/store]
screen appears.
- 256 -
B-63484EN/05 7.INPUT/OUTPUT
- 257 -
7.INPUT/OUTPUT B-63484EN/05
NOTE
Set CHANNEL, DEVICE, FUNCTION, and DATA
KIND on the PMC I/O PROGRAM screen of the
PMC in advance. Set HOST for DEVICE. For details
of the settings, refer to the FANUC PMC Ladder
Language Programming Manual (B-61863E).
Press soft key <EXEC> of the NC to place the NC in
standby.
- 258 -
B-63484EN/05 7.INPUT/OUTPUT
7.3.1 Procedure
1 Select [Tool] - [Load from PMC].
The [Program transfer wizard Selection of transferred method]
screen appears.
NOTE
When connection is not established, the
[Communication] screen appears. Then, establish
connection.
- 259 -
7.INPUT/OUTPUT B-63484EN/05
NOTE
Only PMC-SC3/SC4 allow loading and storing of
language programs. Those types of PMCs to which
a C language board is attached do not allow
loading and storing of language programs.
1-3 Check the setting items. Click the <Finish> button. Then,
the [Transfer monitor] screen appears, and then the program
is transferred.
- 260 -
B-63484EN/05 7.INPUT/OUTPUT
7.4.1 Procedure
1 Select [Tool] - [Store to PMC].
The [Program transfer wizard Selection of transferred method]
screen appears.
- 261 -
7.INPUT/OUTPUT B-63484EN/05
- 262 -
B-63484EN/05 7.INPUT/OUTPUT
- 263 -
7.INPUT/OUTPUT B-63484EN/05
2 Select <I/O by “I/O” key operation>, and then click the <Next>
button. The [Program transfer wizard Selection of
loading/store] screen appears.
- 264 -
B-63484EN/05 7.INPUT/OUTPUT
- 265 -
7.INPUT/OUTPUT B-63484EN/05
NOTE
Set CHANNEL, DEVICE, FUNCTION, and DATA
KIND on the PMC I/O PROGRAM screen of the
PMC in advance. Set HOST for DEVICE. For
details of these settings, refer to the FANUC PMC
Ladder Language Programming Manual
(B-61863E).
Press soft key <EXEC> of the NC to place the NC
in the standby status.
- 266 -
B-63484EN/05 7.INPUT/OUTPUT
7.5.1 Procedure
1 Select [Tool] - [Store to PMC]
The [Program transfer wizard Selection of program] screen
appears.
NOTE
When connection is not established, the
[Communication] screen appears. Then establish
connection.
- 267 -
7.INPUT/OUTPUT B-63484EN/05
1-3 Check the setting items. Click the <Finish> button. Then,
the [Transfer monitor] screen appears, and then the program
is transferred.
NOTE
1 During ladder editing in online mode, no program
can be stored in the PMC. Store programs in the
PMC while a ladder is being monitored.
2 After storing a program in the PMC, if the CNC is
powered down without backing up the program, the
editing results are lost. When you want to store a
program in the CNC, execute [Backup].
- 268 -
B-63484EN/05 7.INPUT/OUTPUT
7.6.1 Procedure
1 Select [Tool] - [Backup].
The [Backup of program] screen appears.
Fig. 7.6.1
2 Choose the check boxes of the programs you want to back up.
When the C language board is not mounted, you cannot choose
"User C program."
3 To back up a program, click the <OK> button.
When backup is completed successfully, the [Backup of the
program ended] message appears.
To cancel the backup of a program, click the <Cancel> button.
- 269 -
7.INPUT/OUTPUT B-63484EN/05
You can compare programs with the I/O function, HOST operation.
Fig. 7.7.1
NOTE
You can compare programs including language
programs on each model of PMC-SC3, SC4, NB,
and NB2.
- 270 -
B-63484EN/05 7.INPUT/OUTPUT
Fig. 7.7.2.1
Fig. 7.7.2.2
- 271 -
8.EXECUTING AND STOPPING SEQUENCE PROGRAMS B-63484EN/05
WARNING
Special care is needed when you execute or stop a
program.
If a program is used inappropriately, the machine
may operate in an unexpected manner.
It is recommended that you not use this machine
while a person is near the machine.
Execution/stop status
Undisplay : When disconnected
: Execution status
: Stop status
Fig. 8 (a)
Procedure
1 Connect a personal computer to the NC (PMC) with a cable.
(For the specification of the required cable, see Appendix
A.)
2 Check the communications status (connection or
disconnection) with the PMC.
Connection/disconnection status
Fig. 8 (b)
- 272 -
B-63484EN/05 8.EXECUTING AND STOPPING SEQUENCE PROGRAMS
Procedure
1 Select [Tool] - [Program Run/Stop].
Yes
A sequence program is to be executed.
No
The dialog box is closed without executing a sequence
program.
INITIAL START
Selected: A language program is to be executed from the
beginning.
Unselected: A language program is to be executed from the
last-terminated position.
- 273 -
8.EXECUTING AND STOPPING SEQUENCE PROGRAMS B-63484EN/05
Procedure
1 Select [Tool] - [Program Run/Stop].
Fig. 8.2
Yes
A sequence program is to be stopped.
No
The dialog box is to be closed without stopping the
sequence program.
NOTE
When the PMC-MDI screen is displayed by a
language program on the NC, no program can be
stopped. To stop the program, select another
screen on the NC.
- 274 -
B-63484EN/05 9.DIAGNOSIS
9 DIAGNOSIS
This chapter describes the online diagnosis functions including ladder
monitoring, display and modification of the PMC status and PMC
parameters, signal tracing, and signal analysis.
- 275 -
9.DIAGNOSIS B-63484EN/05
CAUTION
1 The online monitor function for step sequence
programs is not supported.
2 If the system being used is not supported by the
connected PMC, the online functions sometimes
cannot be used. Use a system with a supported
edition.
9.1.1 Procedure
1 When the system is in offline mode, select [Ladder] -
[Online/Offline] to set online mode.
When the <On-Line/Off-Line Change> button is in the up state,
the system is in offline mode. When the button is in the down
state, the system is in online mode.
Fig. 9.1.2
The screen is scrolled by using the direction keys, page keys, and
scroll bars.
The signal ON and OFF states are expressed by the line thickness.
ON :
OFF :
- 276 -
B-63484EN/05 9.DIAGNOSIS
The <Update> button on the toolbar writes the edited ladder program
to the PMC.
The <Restore> button restores the ladder program to its original state
that existed before editing.
CAUTION
1 Executing the update function alters the ladder
program on the PMC.
Before executing the update function, carefully
check whether it is safe to alter the ladder program.
2 Except for the Power Mate-D (PMC-PA3), powering
off the CNC without first backing up the program
clears the program changes. Before powering off the
CNC, click the <Update> button on the toolbar and
then back up the program.
3 To reflect the results of editing a ladder program in
online mode in the source program in the sequence
program (LAD file), switch to offline mode to
automatically execute decompilation or execute
decompilation manually.
- 277 -
9.DIAGNOSIS B-63484EN/05
Supported instructions
Multiple use of the following functional instruction parameter number
is checked.
SUB3(TMR)
SUB24(TMRB)
SUB77(TMRBF)
SUB5(CTR)
SUB56(CTRB)
SUB57(DIFU)
SUB58(DIFD)
Operation
1 Push the <Update> button on online editing screen.
2 The following screen will be displayed if multiple use of the
parameter number of functional instruction was found.
NOTE
1 Multiple use of the parameter number of TMRB and
TMRBF instruction is checked.
2 Multiple use of the parameter number of DIFU and
DIFD instruction is checked.
- 278 -
B-63484EN/05 9.DIAGNOSIS
9.1.4.1 Procedure
1 If the offline mode is set, choose [Online/Offline] from the
[Ladder] menu to set the online mode.
The offline mode is set when the <Online/Offline Switch> button
is up. The online mode is set when the button is down.
Fig. 9.1.4.1
- 279 -
9.DIAGNOSIS B-63484EN/05
Fig. 9.1.4.2
<Icon for indicating that the signal trigger stop function is being
executed>
- 280 -
B-63484EN/05 9.DIAGNOSIS
- 281 -
9.DIAGNOSIS B-63484EN/05
Fig. 9.1.4.4
Address
Set a trigger address. (Symbol input is possible.)
Check Point
Select a trigger check point.
Make a selection from Level1 (start of LEVEL1), END1 (after
END1 instruction execution), END2 (after END2 instruction
execution), and END3 (after END3 instruction execution,
selectable with a model that can use LEVEL3).
Count
Set a trigger count (1 to 65535).
Trigger Mode
ON: Stops triggering on the rising edge of a specified address
signal.
OFF: Stops triggering on the falling edge of a specified address
signal.
<Init> button
This button initializes the parameters as follows:
Address: Blank
Check Point: LEVEL1
Count: 1
Trigger Mode: Disabled
- 282 -
B-63484EN/05 9.DIAGNOSIS
Fig. 9.1.4.5
- 283 -
9.DIAGNOSIS B-63484EN/05
Procedure
1 Select [Tool] - [Option…]. Then, the [Option - General] dialog
appears.
Fig. 9.1.5
NOTE
The following screens are always displayed with
ladder language
• Collective display
• Search results list display
- 284 -
B-63484EN/05 9.DIAGNOSIS
Procedure
1 Select [View] - [Program List]. The [Program List] screen
appears. (Usually, this screen appears automatically when a LAD
file is created or opened.)
2 Check the current programmer mode (offline or online). If the
programmer mode is offline, select [Ladder] - [Programmer
Mode] - [Online] or click <Online/Offline change> button to
change the programmer mode to online.
3 Check the current ladder mode (monitor or editor). If the ladder
mode is editor, select [Ladder] - [Ladder Mode] - [Monitor] or
click <Ladder Monitor> button to change the ladder mode to
monitor.
4 On the [Program List] screen, double-click the ladder program
you want to monitor. Alternatively, select the ladder program and
press the [Enter] or [F10] key.
Signal
status
Line
number
Mnemonic
language
program
Cursor
information
- 285 -
9.DIAGNOSIS B-63484EN/05
Toolbar
Shortcut keys
Table 9.1.5
Shortcut key Corresponding function
[F3] Search(downward)
[Shift]+[F3] Search(upward)
[Ctrl]+[F3] Switch search area (Global/Local)
[Ctrl]+[F] Display a [Search setting] dialog-box
- 286 -
B-63484EN/05 9.DIAGNOSIS
WARNING
Special care must be taken when the signal status
or PMC parameters are changed. If the change
function is not used appropriately, the machine
operation may be unpredictable.
When there are people near the machine, this
function should not be used.
CAUTION
1 The statuses of some signals cannot be changed.
The status of such a signal is not changed when a
sequence program, the CNC, the MMC, or an
external I/O unit such as the I/O-Link is repeatedly
writing data into the address of the signal. (The
CNC repeatedly writes data to address F, the MMC
repeatedly writes data to address M, and the
external I/O unit repeatedly writes data to address
X.)
2 When a bit signal of the D8192-D9999 addresses
is changed, other bit signals of the same byte
address are overwritten at the same time.
Therefore, it can happen that the signal state might
not change as specified if the signals of the same
D address is changed by the PMC program and the
CNC at the same time.
9.2.1 Procedure
1 Select [Diagnose] - [Signal Status]. The [Signal Status] screen
appears.
Fig. 9.2.1
- 287 -
9.DIAGNOSIS B-63484EN/05
9.2.2 Toolbar
<1> <2> <3> <4> <5> <6> <7> <8> <9> <10> <11> <12>
Fig. 9.2.2
<1> Switches between the status screen and forced I/O screen.
<3> Combo box for inputting the character string for which a search
is to be made
- 288 -
B-63484EN/05 9.DIAGNOSIS
Fig. 9.2.4
- 289 -
9.DIAGNOSIS B-63484EN/05
PMC parameters (timers, counters, keep relays, and data table) are
displayed.
WARNING
Special care must be taken when the signal status
or PMC parameters are changed. If the change
function is not used appropriately, the machine
operation may be unpredictable.
When there are people near the machine, this
function should not be used.
CAUTION
When PMC parameters should not be changed, the
parameters may be protected.
Refer to the relevant programming manual for the
PMC being used.
9.3.1 Procedure
1 Select [Diagnose] - [PMC Parameter].
9.3.2 Timer
The contents of the timer address locations (T) used with the TMR
instruction can be displayed and modified.
- 290 -
B-63484EN/05 9.DIAGNOSIS
When you can set the timer accuracy of each timer number
9.3.2.1 Toolbar
<2> Search
<3> Combo box for inputting the character string for which a search
is to be made
<1> <2>
Fig. 9.3.2.2
<1> Minimum setting time for the timer selected with the cursor
<2> Maximum setting time for the timer selected with the cursor
Fig. 9.3.2.3
- 291 -
9.DIAGNOSIS B-63484EN/05
9.3.3 Counter
The contents of the counter address locations (C) used with the CTR
instruction can be displayed and modified.
Fig. 9.3.3
NOTE
1 The contents can be displayed and modified in
binary or BCD according to the setting of the
counter data type system parameter.
2 Data which cannot be displayed in BCD is
indicated with a question mark (?).
9.3.3.1 Toolbar
Fig. 9.3.3.1
<2> Search
<3> Combo box for inputting the character string to be searched for
- 292 -
B-63484EN/05 9.DIAGNOSIS
Fig. 9.3.3.2
Fig. 9.3.4
9.3.4.1 Toolbar
Fig. 9.3.4.1
<2> Search
<3> Combo box for inputting the character string for which a search
is to be made
- 293 -
9.DIAGNOSIS B-63484EN/05
Fig. 9.3.4.2
K17 or K900
#7 #6 #5 #4 #3 #2 #1 #0
DTBLDSP * * MEMINP * * PRGRAM LADMASK
K19 or K902
#7 #6 #5 #4 #3 #2 #1 #0
* * * * * * * FROM-WRT
- 294 -
B-63484EN/05 9.DIAGNOSIS
• PMC model which does not support minus sign display and
bit display
- 295 -
9.DIAGNOSIS B-63484EN/05
• Bit display
9.3.5.1 Toolbar
<1> <2> <3> <4> <5> <6> <7> <8> <9> <10> <11> <12>
Fig. 9.3.5.1
<2> Search
<3> Combo box for inputting the character string for which a search
is to be made
- 296 -
B-63484EN/05 9.DIAGNOSIS
<12>Write protection
Fig. 9.3.5.5
- 297 -
9.DIAGNOSIS B-63484EN/05
CAUTION
The subsequent subsections contain information
important to the developer of the application
systems to be controlled by the PMC. If the design
of an application system is inappropriate, security
problems are more likely to occur. Use great
caution when operating the functions described in
the subsequent subsections and designing
application systems using these functions.
- 298 -
B-63484EN/05 9.DIAGNOSIS
9.3.6.2 Procedure
1 Check the setting parameters you want to make valid.
Fig. 9.3.6.2
- 299 -
9.DIAGNOSIS B-63484EN/05
- 300 -
B-63484EN/05 9.DIAGNOSIS
CAUTION
The [Display] button can be used if the following
conditions are satisfied:
• The selectable I/O link assignment screen on
the system parameter screen is enabled.
• IO GROUP SELECTION (K906.1=1) is checked
and PROGRAMMABLE ENABLE (K900.1=1) is
also checked.
Fig. 9.3.6.4
OK
Displays the selectable I/O link assignment function.
Cancel
Returns you to the SETTING screen for PMC setting parameters.
- 301 -
9.DIAGNOSIS B-63484EN/05
WARNING
If you modify these parameters inadvertently, the
I/O device configuration may not match the I/O
assignment data, possibly causing the machine to
perform an unexpected operation after the power is
turned on. These parameters are assumed to be
modified only by those operators who are familiar
with the operation of sequence programs and that
of the PMC. This setting screen must be protected
with the programmer protect function so that the
settings on the screen are not inadvertently
changed by regular operators after the machine
has been shipped to the field.
Fig. 9.3.6.5
Channel 1
Select the group to which the I/O link assignment data for
channel 1 is to be made valid.
Checked : The assignment data is valid.
Not checked : The assignment data is invalid.
- 302 -
B-63484EN/05 9.DIAGNOSIS
Channel 2
Select the group to which the I/O link assignment data for
channel 2 is to be made valid.
Checked : The assignment data is valid.
Not checked : The assignment data is invalid.
NOTE
1 The basic groups that have been specified for each
"Basic Group Count" on the system parameter
screen will have their numbers displayed gray with
an asterisk mark (*) shown above them. These
groups are noneligible for this settings.
2 Channels for which the "selectable I/O link
assignment function" is disabled on the system
parameter screen are displayed gray. These
channels are noneligible for this setting.
3 When you click the [OK] button, the warning
message shown in Subjection 9.3.6.3 reappears.
To reflect the settings to the keep relays, click the
[OK] button below the warning message.
- 303 -
9.DIAGNOSIS B-63484EN/05
9.4.1 Procedure
1 Select [Diagnose] - [PMC Alarm Status]. The [PMC Alarm
Status] screen appears.
• Multi-path PMC
NOTE
1 For details on PMC alarm messages, refer to the
ladder language programming manual.
2 You can switch the language in which PMC alarm
messages are displayed.
1) Select [Tool] - [Options].
2) Select a language from "PMC alarm language"
in Display tab.
- 304 -
B-63484EN/05 9.DIAGNOSIS
Fig. 9.4.2
- 305 -
9.DIAGNOSIS B-63484EN/05
9.5.1 Procedure
1 Select [Diagnose] - [PMC Status]. The [PMC Status] screen
appears.
Multi-path PMC
- 306 -
B-63484EN/05 9.DIAGNOSIS
• PMC type
Model of the connected PMC
- 307 -
9.DIAGNOSIS B-63484EN/05
9.6.1 Procedure
1 Select [Diagnose] - [Trace].
The [Select Function] screen of the trace function appears.
2 Select the [Signal Trace] radio button and click the <OK> button.
The [Signal Trace] screen appears.
<Parameter button>
- 308 -
B-63484EN/05 9.DIAGNOSIS
5 Click the <Start> button. The <Start> button enters the down
state, and signal tracing starts.
<Start button>
9.6.2 Toolbar
<1> Parameter
<5> Combo box for inputting the character string for number search
<1> <2>
Fig. 9.6.3
<1> Status
[Tracing Exec] or [Trace Stop] is displayed.
Fig. 9.6.4
Fig. 9.6.6
Mode
Signal data length (in bytes)
Address Type
PMC address or physical address
Address
Address for signal tracing of a specified address type
- 310 -
B-63484EN/05 9.DIAGNOSIS
Mask Bit
Specify the bits of the signals that need not be traced.
(The buttons of the signals to be traced are in the down state.)
NOTE
1 While the signal analysis function is being used,
the signal trace function cannot be used.
2 During online monitoring, the PMC signal trace
screen cannot be displayed.
CAUTION
When the address type is physical address,
starting tracing with an illegal memory address
specified may result in a system error. To specify a
valid physical address, the user needs to be
familiar with PMC programming in C language.
Refer to the " C language Programming Manual"
(B-61863E-1), and specify a valid memory address.
- 311 -
9.DIAGNOSIS B-63484EN/05
The ladder signal status is sampled and displayed along with the time
axis. Trigger conditions can also be set.
9.7.1 Procedure
1 Select [Diagnose] - [Trace].
The [Select Function] screen of the trace function appears.
2 Select the [Signal Analysis] radio button and click the <OK>
button.
The [Signal Analysis] screen appears.
<Parameter button>
- 312 -
B-63484EN/05 9.DIAGNOSIS
<Sampling button>
6 To terminate sampling, click the <Sampling> button again. The
button enters the up state, and sampling terminates.
• Maximum number of signals sampled simultaneously: 16
• Sampling interval: 8 or 4 msec
• Maximum sampling period:
10 sec (when the sampling interval is set to 8 msec)
5 sec (when the sampling interval is set to 4 msec)
9.7.2 Toolbar
NOTE
1 While the signal analysis function is being
executed, the signal trace function cannot be used.
If the <Sampling> button is clicked during signal
tracing, a message box appears, indicating "Signal
Trace function is running."
2 When the automatic signal read function is
executed at power-on, the displayed button is in
the down state, which indicates that sampling is in
progress.
<4> Save As
Saves signal analysis data in a file with a file name specified
(extension: SAN).
- 313 -
9.DIAGNOSIS B-63484EN/05
<7> Search
Moves through the signal analysis area with a specified search
time.
<8> Text box for inputting the character string for which a search is
to be made
Specifies the search time.
Fig. 9.7.3
<2> Condition
<7> The current mouse position is indicated as the time (msec) on the
signal analysis display.
Fig. 9.7.4
- 314 -
B-63484EN/05 9.DIAGNOSIS
Fig. 9.7.6
- 315 -
9.DIAGNOSIS B-63484EN/05
Sampling Time
Set the maximum sampling time.
When the sampling interval is 8 msec, set 1 to 10 sec (in 0.1-sec
increments).
When the sampling interval is 4 msec, set 1 to 5 sec (in 0.1-sec
increments).
Trigger Address
Set the trigger bit address at which sampling starts, with a PMC
address or symbol.
Condition
Condition for starting sampling
Start: Sampling start button on the toolbar
Trigger-ON: Sampling start button + rising edge at the trigger
address
Trigger-OFF: Sampling start button + falling edge at the trigger
address
NOTE
When Trigger-ON or Trigger-OFF is selected with
no trigger address set, a message box appears,
indicating "No Trigger Address."
Trigger Mode
There is a buffer for holding data sampled for up to 10 seconds
when the signal status is read at 8-msec intervals. (When the
signal status is read at 4-ms intervals, the buffer can hold data
sampled over five seconds.)
In trigger mode, the read start and end points are specified.
After: The signal status after the trigger address meets the
trigger condition is read until the sampling time elapses.
About: The signal status around the time at which the trigger
address satisfies the trigger condition is read within the
sampling time.
Before: The signal status from when the <Sampling> button on
the tool bar is pressed until the trigger address satisfies
the trigger condition is read for up to the sampling time.
Only: The signal status when the trigger address satisfies the
trigger condition is read.
NOTE
When About or Before is selected with the
condition set to Start, a message box appears,
indicating "[About]/[Before] is illegal on [Start]
selected."
Signal Address
Set up to 16 sampling addresses with PMC addresses or symbols.
- 316 -
B-63484EN/05 9.DIAGNOSIS
To reset the settings to the default values, click the <RESET> button.
Table 9.7.6
Default
Sampling Time 10 sec
Trigger Address Not set
Condition Start
Trigger Mode After
Signal Address Not set
Once the settings are complete (the <OK> button is pressed), the
trigger address and diagnosis address setting information is stored in
the Windows registry on the disk. When the dialog box is next opened,
the registry is read, and the previously made settings are restored in
the list of the combo box.
Fig. 9.7.7
Line Color
Fill Color
Choose from the following 16 colors:
Black, blue, light blue, light green, pink, red, yellow, white, dark
blue, peacock blue, green, purple, dark red, dark yellow, 50%
gray, 25% gray
Line Size
1 dot, 2 dots, or 3 dots
- 317 -
9.DIAGNOSIS B-63484EN/05
Fig. 9.7.8
Line Color
Choose from the following 16 colors:
Black, blue, light blue, light green, pink, red, yellow, white, dark
blue, peacock blue, green, purple, dark red, dark yellow, 50%
gray, 25% gray
Line Style
Solid line, dotted line, or broken line
Scale
When the sampling interval is 8 msec:
8 msec, 16 msec, or 32 msec
When the sampling interval is 4 msec:
4 msec, 8 msec, or 16 msec
When the trigger mode is ONLY:
1 time, 2 times or 4 times
Table 9.7.8
Default
Line Color 50% gray
Line Style Solid line
Scale 8 msec (4 msec, 1 times)
- 318 -
B-63484EN/05 9.DIAGNOSIS
9.8.1 Procedure
1 Select [Tool] - [Clear PMC Memory].
The [Clear PMC memory] screen appears.
Fig. 9.8.1
WARNING
When PMC areas are cleared, special care must
be taken.
Clearing a PMC area may cause unpredictable
machine operation. When there are people near
the machine, this function should not be used.
- 319 -
9.DIAGNOSIS B-63484EN/05
9.9.1 Procedure
1 Select the [Tool] - [I/O Link Restart].
The [I/O Link Restart] screen appears.
Fig. 9.9.1
WARNING
When the I/O Link is activated, special care must
be taken.
Setting I/O module data may cause unpredictable
machine operation. When there are people near
the machine, this function should not be used.
- 320 -
B-63484EN/05 9.DIAGNOSIS
9.10.1 Procedure
1 Select [Diagnose] - [Trace].
The [Signal Trace] screen appears.
Fig. 9.10.1
<Parameter> button
4 Click the <Start> button. The button enters the down state, and
signal tracing starts.
<Start> button
9.10.2 Toolbar
- 321 -
9.DIAGNOSIS B-63484EN/05
- 322 -
B-63484EN/05 9.DIAGNOSIS
<3> Frame
The current setting of the number of sampling frames is
indicated.
<4> Trigger address
The current setting of the sampling stop trigger address is
indicated.
<5> Sampling trigger address
The current setting of the sampling trigger address is indicated.
Fig. 9.10.4
Sampling
Set the sampling mode by clicking the corresponding radio
button.
Time Cycle : Samples data in cycles.
Signal Transition : Samples signal transition.
Stop Condition
Set a tracing stop condition by selecting it from the list in the
combo box.
None : Does not stop automatically.
BUFFER FULL : Automatically stops when the sampling buffer
becomes full.
TRIGGER : Automatically stops at a trigger.
Trigger Address
This item can be set when the tracing stop condition is
[TRIGGER]. Set the trigger address at which tracing stops.
- 323 -
9.DIAGNOSIS B-63484EN/05
Trigger Mode
This item can be set when the tracing stop condition is
[TRIGGER]. Set the trigger mode for stopping tracing.
RISING EDGE : Automatically stops at the rising edge of the
trigger signal.
FALLING EDGE : Automatically stops at the falling edge of the
trigger signal.
BOTH EDGE : Automatically stops when the trigger signal
status changes.
Sampling Condition
This item can be set when the sampling mode is [Signal
Transition]. Set the sampling condition.
TRIGGER : Samples data when the sampling trigger
condition is satisfied.
BOTH EDGE : Samples data when the sampling address signal
changes.
Initialization button
Initializes the trace parameters in the PMC.
Details button
Displays the [Trace Mode Details Parameter] dialog box.
OK
Stores the settings and closes the dialog box.
Cancel
Closes the dialog box without storing the settings.
- 324 -
B-63484EN/05 9.DIAGNOSIS
Resolution
Sets the sampling resolution. The default value is 8 msec.
Setting range : 8msec to 1000msec
The input value is rounded down to the nearest multiple of 8.
Frame
This item is displayed when [Signal Transition] is selected for
the sampling mode. Set the number of samplings.
The valid data range of this item varies depending on the setting
of [Resolution] and the number of signals to be sampled. The
valid data range is displayed in the dialog box.
Time
This item is displayed when [Time Cycle] is selected for the
sampling mode. Set the sampling time. The valid data range of
this item varies depending on the setting of [Resolution] and the
number of signals to be sampled. The valid data range is
displayed in the dialog box.
- 325 -
9.DIAGNOSIS B-63484EN/05
Example
Graph display range when the sampling time is 10 sec and the
sampling position is 10%:
Trigger position
<-1 sec-> <---- 9 sec ---->
| | |
-1 0 9 (SEC)
OK
Stores the settings and closes the dialog box.
Cancel
Closes the dialog box without storing the settings.
Fig. 9.10.6
- 326 -
B-63484EN/05 9.DIAGNOSIS
↑ button
Replaces the set address at the cursor with the address on the line
immediately above.
↓ button
Replaces the set address at the cursor with the address on the line
immediately below.
OK
Stores the settings and closes the dialog box.
Cancel
Closes the dialog box without storing the settings.
- 327 -
9.DIAGNOSIS B-63484EN/05
Fig. 9.10.7
- 328 -
B-63484EN/05 10.EXTENDED SYMBOL/COMMENT FUNCTION
10 EXTENDED SYMBOL/COMMENT
FUNCTION
The extended symbol/comment function allows you to use the
following features.
• Increase in the symbol/comment character count
• Ladder edit by using symbol.
• Symbol effective in each sub-program
• Symbol type setting
• Automatic assignment function for R,D,E address.
Fig. 10
- 329 -
10.EXTENDED SYMBOL/COMMENT FUNCTION B-63484EN/05
Symbol
Fig. 10.1 (a)
Extended type Former
Kind
(30i/31i/32i-A Extended function) (30i/31i/32i-A)
A to Z, a to z, 0 to 9, A to Z, a to z, 0 to 9, Space,
Usable characters !”#&’()*+,-<= >?@[/]^_`{|}~ !”#$%&’()*+,.-<=>?
(Note) @[/]^_`{|}~;:
Unusable characters for the first
%$
character
Space, Full-size Japanese character,
Unusable characters
:(Colon) ;(Semicolon) .(Period)
Maximum number of characters 40 16
Maximum number of units that can
40,000 40,000
be registered
NOTE
Although it is allowed to use special characters in
symbol, using only alphabets, digits and
_(underscore) to comply with the variable name
defined in IEC61131-3 is strongly recommended.
Comment
Fig. 10.1 (b)
Extended type Former
Kind
(30i/31i/32i-A Extended function) (30i/31i/32i-A)
A to Z, a to z, 0 to 9, A to Z, a to z, 0 to 9,
Space Space
Usable characters !"#$%&'()*+,-<=>?@[\]^_` !"# $%&'()*+,-<=>?@[\]^_`
{|}~ {|}~
:(Colon) ;(Semicolon) .(Period) :(Colon) ;(Semicolon) .(Period)
Unusable characters Tab Tab
Maximum number of 255 (Full-size Japanese character is 30 (Full-size Japanese character is
characters counted as two.) counted as two.)
Maximum number of units
40,000 40,000
that can be registered
4 (Comment 1, Comment 2, Comment 3,
Set number 2 (Comment 1, Comment 2)
Comment 4)
- 330 -
B-63484EN/05 10.EXTENDED SYMBOL/COMMENT FUNCTION
10.1.1 Relation between the Global Symbol and the Local Symbol
The relation between the global symbol and the local symbol is
described below.
NOTE
When you decompile the ladder object, it does not
get back to the original symbol.
- 331 -
10.EXTENDED SYMBOL/COMMENT FUNCTION B-63484EN/05
(c) The symbol is the same and the address is the same.
The relation between the global symbol and the local symbol is
the same as the above-mentioned description (from a) to d)).
- 332 -
B-63484EN/05 10.EXTENDED SYMBOL/COMMENT FUNCTION
NOTE
1 When you decompile the ladder object code
containing the references to the symbols with the
same address, such references may not get back to
the symbol in the original source program. The
symbol name may be changed to one of the symbols
selected by decompiler.
2 When multiple symbols are defined for the same
address, only one symbol selected by the system is
displayed in the address display of the signal status
screen etc. on PMC. Other symbols are not displayed.
Procedure
1 Double-click the <Symbol comment> item on the [Program List]
screen.
The [SYMBOL/COMMENT] screen appears.
Tool bar It rearranges by click.
Display
selection Symbol comment display window
window
Status bar
Fig. 10.2
10.2.1 Toolbar
(1) (2)
Fig. 10.2.1
- 334 -
B-63484EN/05 10.EXTENDED SYMBOL/COMMENT FUNCTION
- 335 -
10.EXTENDED SYMBOL/COMMENT FUNCTION B-63484EN/05
Procedure
1 Click <Add New Data> button on toolbar.
Fig. 10.2.3
- 336 -
B-63484EN/05 10.EXTENDED SYMBOL/COMMENT FUNCTION
CAUTION
1 Same symbol data can not be registered. As error
message is displayed when adding new data,
register another symbol, please.
2 More than one symbol can be set for one address.
In this case, the original symbol data may not be
restored by decompilation. It is confirmed to check
[Multiple use check of the symbol address] of
compile option.
3 Symbol set to P address always becomes a global
symbol.
Procedure
1 Double-click the symbol that you want to modify. (Or position
the cursor to the symbol and press [Enter] key.) Following
dialog will appear.
Fig. 10.2.4
- 337 -
10.EXTENDED SYMBOL/COMMENT FUNCTION B-63484EN/05
Procedure
1 Select the symbol to modify or copy.
To select plural symbol and comment data, click the
symbol/Comment data with pressing [Ctrl] key.
2 Click the [Cut] or [Copy] of context menu which is displayed by
right-clicking the symbol and comment data selected above.
These cut or copied data are able to paste to test editor.
3 To add new symbols from cut or copied data, click the [Paste] of
context menu which is displayed by right-clicking the symbol
and comment data.
4 When the pasted symbol is already registered (Duplicate symbol
has been detected), [Overlap with registered symbol] dialog will
appears. Please modify symbol data and click <OK> button.
Procedure
1 Select the symbol to delete.
2 Click the [Delete] of context menu that is displayed by
right-clicking the symbol selected above.
3 Confirm message will appear. Click the <OK> button to delete.
- 338 -
B-63484EN/05 10.EXTENDED SYMBOL/COMMENT FUNCTION
10.2.7 Search
Search the symbol and comment data by No., symbol, address and
comment. It is ignored whether the strings are specified in upper case
or lower case.
Fig. 10.2.7
Procedure
1 Input character string to search into [Search data].
2 Select the item to search by [SearchField]
3 Click <OK> button to start search.
NOTE
1 Even if the symbol data is modified or deleted in
symbol/comment editing screen, the modification of
symbol does not influence to the ladder program.
Therefore, the symbol in ladder program must be
modified too.
2 Modifying the address of symbol in
symbol/comment editing screen does influence to
the ladder program. Address of the symbol in
ladder program is changed. When the data is made
by inputting address in ladder editing screen and
then the symbol is defined in symbol/comment
editing screen, address of the symbol is not
changed by above operation. This note is not
applicable to the data which was once
de-compiled.
3 Please avoid using the symbol that has same
notation of PMC address.
4 The search by address in ladder program is
unavailable when the symbol is modified or deleted
in symbol/comment editing screen.
- 339 -
10.EXTENDED SYMBOL/COMMENT FUNCTION B-63484EN/05
NOTE
1 For editing the extended ladder program, ladder
editor does not support the interface of two pains;
“Display Window” and “Edit Window”.
2 Extended ladder program does not support Step
Sequence.
Procedure
1 Double-click [Ladder] node in [Program List] screen to open
[Ladder] window.
2 Whole ladder program appears in window. It is shown as View
mode; you can not edit it in this window.
Fig. 10.3.2
- 340 -
B-63484EN/05 10.EXTENDED SYMBOL/COMMENT FUNCTION
Table 10.3.2
Address display format Information to be displayed
Address Upper: Address is displayed.
In cases below, its symbol appears instead:
• Symbol is defined, but its address is not assigned yet.
• Corresponding symbol is not defined (undefined symbol)
Symbol Upper: Symbol is displayed.
In cases below, its address appears instead:
• No symbol is defined for the address.
• Case of NULL symbol.
Comment Upper: Comment is displayed.
In cases below, its address appears instead:
• No symbol is defined for the address.
• The symbol of the address has no comment.
In cases below, its symbol appears instead:
• Symbol is defined, but its address is not assigned yet.
• Corresponding symbol is not defined (undefined symbol)
Address & Symbol Upper: Address is displayed.
Lower: Symbol is displayed.
Address & Comment Upper: Address is displayed.
Lower: Comment is displayed.
Symbol & Comment Upper: Symbol is displayed.
Lower: Comment is displayed.
Upper: 8 characters at maximum
Lower: 16 characters at maximum
You can customize the color of Symbol, Address, and Comment at
[Ladder] tab of [Option] window.
Procedure
1 Move cursor onto the symbol or address whose information you
want to change.
2 Click [Property] in the context menu, which pops up at
right-click.
3 [Property] screen appears.
- 341 -
10.EXTENDED SYMBOL/COMMENT FUNCTION B-63484EN/05
Fig. 10.3.3
NOTE
1 When the symbol is used in multiple parts of
ladder, please do not change the symbol name by
pushing <Modify> button. In this case, please add
the symbol by pushing <Add> button. Otherwise,
you may see unexpected side effect of the change,
such as undefined symbol.
2 If you want to change the symbol of the ladder
program, please use Search/Replace function.
Fig. 10.3.4
Procedure
1 Click [Option] in [Tool] menu.
2 Click [Ladder] tab in [Option] window.
3 Check Tool tip.
- 342 -
B-63484EN/05 10.EXTENDED SYMBOL/COMMENT FUNCTION
Fig. 10.3.5
Procedure
1 Click [Option] in [Tool] menu.
2 Click [Ladder] tab in [Option] window.
3 Choose comment in the list-boxes Show comment of Contact
and Show comment of Coil.
Procedure
1 Open the ladder program in which you want to find something.
2 Click [Find…] in [Edit] menu, or press <Ctrl>+<F>.
3 [Search] screen appears.
- 343 -
10.EXTENDED SYMBOL/COMMENT FUNCTION B-63484EN/05
Fig. 10.3.6.1
Table 10.3.6.1
Search kind Select one of Address/Symbol and Functional
Instruction.
Program Choose the programs to be searched
Search string Enter the string to search for.
Wildcard search(Y) This option is available to search for an address.
With this option, you can use wildcard characters
‘*’ and ‘?’ in the search string.
Search string of “R10.*” will hit any of R10.0 -
R10.7
You can not use wildcard search at searching for a
symbol.
Multiple search strings You can specify multiple addresses separated by
comma “,” or semicolon “;”, such as “Y0.0;X0.0”.
Search result list The result of the search summarizes the results in
display [Search result list] screen.
[Search result list] screen shows the program
number, net number, ladder diagram, and coil
comment of each appearance of what you
searched.
Global search Search the whole ladder program.
NOTE
1 The wildcard letter can match with any single or
multiple letters.
2 Question mark “?” matches with any single letter.
More than one “?” can be placed for any letters to
match with.
3 Asterisk mark “*” matches with 0 or more any
letters.
- 344 -
B-63484EN/05 10.EXTENDED SYMBOL/COMMENT FUNCTION
Procedure
1 Double-click [Collective Display] in [Program List] screen to
open Collective Display screen.
- 345 -
10.EXTENDED SYMBOL/COMMENT FUNCTION B-63484EN/05
This string will be the name of the search condition and will be
listed in [Collective Display] screen.
4 The list in [Collective Display] is updated to contain the new
condition.
5 Repeat 2 to 4 if necessary.
6 Check the conditions that you want to enable, and name the
search condition at [Condition Name].
The nets that meet the search condition are collected and displayed at
a time.
You can use this function in on-line mode also.
- 346 -
B-63484EN/05 10.EXTENDED SYMBOL/COMMENT FUNCTION
Procedure
1 Right-click the search condition to be modified in [Program List]
screen.
Search condition
Fig. 10.3.6.3
- 347 -
10.EXTENDED SYMBOL/COMMENT FUNCTION B-63484EN/05
Table 10.3.6.3
Program Specify the program in which the address will be
replaced.
Search string Enter the string to search for; address or symbol.
You can use wildcard characters ‘*’ and ‘?’ in the
search string only at searching an address.
Replace string Enter the string to be replaced with.
You can use wildcard characters ‘*’ and ‘?’ in the
replace string only at searching an address.
Wildcard search(Y) This option is available to replace an address. With
this option, you can use wildcard characters ‘*’ and
‘?’ in the search string.
Search string of “R10.*” will hit any of R10.0 - R10.7
You can not use wildcard search at replacing
symbols.
NOTE
1 [Replace…] in [Edit] menu can be activated when
ladder editing function is available.
2 If an undefined symbol is inputted as the
replacement string, "Replace" can not be
performed. You have to register the symbol before
performing the replacement.
3 The wildcard letters can not be used at replacing
symbol.
4 The wildcard letter can match with any single or
multiple letters.
5 Question mark “?” matches with any single letter.
More than one “?” can be placed for any letters to
match with.
6 Asterisk mark “*” matches with 0 or more any letters.
7 Wildcard letters can not be used in a signal name.
- 348 -
B-63484EN/05 10.EXTENDED SYMBOL/COMMENT FUNCTION
- Wildcard
(1) Asterisk “*”
The wildcard asterisk can be used as below:
Replace with
Y200 Y* Y200.1 Y*.1 Y200.* Symbol
X100 OK NG NG NG NG OK
X* OK NG NG NG NG NG
Search X100.0 NG NG OK NG NG OK
for X*.0 NG NG OK OK† OK NG
X100.* NG NG OK OK OK NG
Symbol OK NG OK NG NG OK
OK : Effective
NG : Ineffective
OK† : Effective if their address types are the same, such as
replace “X*.0” with “X*.1”.
- 349 -
10.EXTENDED SYMBOL/COMMENT FUNCTION B-63484EN/05
Procedure
1 Right-click the mouse in [Program List] screen, and then click
[Add sub-program F9].
- 350 -
B-63484EN/05 10.EXTENDED SYMBOL/COMMENT FUNCTION
Fig. 10.3.8
- 351 -
10.EXTENDED SYMBOL/COMMENT FUNCTION B-63484EN/05
Ladder Edit
1 Input the label of the JMPB/JMPC/LBL instructions.
2 If you input the label as the undefined symbol, the following new
data definition screen appears. If you input the defined symbol,
the new data definition screen does not appear.
- 352 -
B-63484EN/05 10.EXTENDED SYMBOL/COMMENT FUNCTION
Source conversion
In the processing that converts the mnemonic into the source file, if
the following conditions are fulfilled, the symbol will be defined
automatically.
• The undefined symbol is inputted as the label of the JMPB/
JMPC/ LBL instruction.
• The identification code of the mnemonic is "%@3-D".
% @ 3-D
・・・
RD Input
JM PB abc
abc LBL
zyx LBL
・・・
% P1 SP If the symbol "abc" is not defined, it is
RD Input
JM PC zyx defined automatically into the symbol
・・・ comment data.
%
Fig. 10.3.9 (c) Mnemonic
Compile
L address of the symbol is assigned.
Procedure
1 Select [Tool]-[Compile...]. Then, the [Compile] dialog appears.
2 Click the <Exec> button.
3 The L address is assigned.
- 353 -
10.EXTENDED SYMBOL/COMMENT FUNCTION B-63484EN/05
NOTE
1 You can define the new label on the offline editing
screen.
2 You cannot define the new label on the online
editing screen. But, you can use the already
defined symbol.
3 You can input the symbol of only LABEL type as
the label of the JMPB/JMPC/LBL instructions.
4 If assigned L address is displayed on the symbol
comment edit display, the "*" mark adheres to the
head of the address.
5 When the automatic assignment area becomes
empty, the error occurs, and compile processing is
stopped.
6 L address is assigned without regard to the setting
of "Automatic Assignment Address" on the system
parameter screen.
Mnemonic Conversion
Source data are converted into the mnemonic format file.
- 354 -
B-63484EN/05 10.EXTENDED SYMBOL/COMMENT FUNCTION
Print
Not to print the label type symbol, the setting of "LABEL types are
not printed." was added to the "Symbol Comment" tab of the printing
option screen.
If you check "LABEL types are not printed.", the LABEL type
symbols will not print. (The default setting is no check)
Symbol
L address assigned automatically is printed with the "*" mark at the
head of the address.
- 355 -
10.EXTENDED SYMBOL/COMMENT FUNCTION B-63484EN/05
When a fixed address need not be assigned for relay contact used
temporarily in program etc., the address can be assigned automatically
at compiling by inputting only data type and address type when
symbol is defined.
Automatic assignment is applied to the following symbols.
• Symbol of BOOL, BYTE, WORD and DWORD type
• Address of R, D, E
Procedure
1 Double-click the <System parameter> item in the [Program List]
screen. The [Edit System Parameter] screen appears.
2 Check the Automatic Assignment of Address and click the
[Details].
- 356 -
B-63484EN/05 10.EXTENDED SYMBOL/COMMENT FUNCTION
Table 10.4
Type Rang of Assignment
R address BOOL R100.0 - R109.7
BYTE R110 - R139
WORD R140 - R199
DWORD R200 - R251
WARNING
Set the address ranges not to overlap. Otherwise,
an error occurs when compiling.
Procedure
1 Double-click the <Symbol comment> item in the [Program List]
screen. The [Symbol Comment Editing] screen appears.
2 Double-click a symbol to open the property screen.
3 Enter “R” to ADDRESS.
- 357 -
10.EXTENDED SYMBOL/COMMENT FUNCTION B-63484EN/05
Procedure
1 Double-click the <Symbol comment> item in the [Program List]
screen. The [Symbol Comment Editing] screen appears.
2 Click the Address decision of context menu that is displayed by
right-clicking the assigned address.
Fig. 10.4.3
NOTE
1 When setting the range of address by an automatic
assignment on the System Parameter screen,
please set the range of unused address in a ladder.
2 The address is assigned according to the symbol
type. Therefore, please don't use this function for
the symbol of a functional instruction with the data
length which is not consistent with the type of
symbol.
- 358 -
B-63484EN/05 10.EXTENDED SYMBOL/COMMENT FUNCTION
- 359 -
10.EXTENDED SYMBOL/COMMENT FUNCTION B-63484EN/05
Fig. 10.6
- 360 -
B-63484EN/05 10.EXTENDED SYMBOL/COMMENT FUNCTION
Procedure
1 Double-click the <System parameter> item in the [Program List]
screen. The [Edit System Parameter] screen appears.
2 Click the Language for Comment button.
Number of display
language (comment)
Fig. 10.7
0: English 8: Dutch
1: Japanese 9: Danish
2: German 10: Portuguese
3: French 11: Polish
4: Chinese 12: Hungarian
5: Italian 13: Swedish
6: Korean 14: Czech
7: Spanish -1: Other
100 REMARK in I/O Diagnosis screen
- 361 -
10.EXTENDED SYMBOL/COMMENT FUNCTION B-63484EN/05
10.8 COMPILATION
Fig. 10.8
0: English 8: Dutch
1: Japanese 9: Danish
2: German 10: Portuguese
3: French 11: Polish
4: Chinese 12: Hungarian
5: Italian 13: Swedish
6: Korean 14: Czech
7: Spanish -1: Other
100 REMARK in I/O Diagnosis screen
- 362 -
B-63484EN/05 10.EXTENDED SYMBOL/COMMENT FUNCTION
10.9 DECOMPILATION
Fig. 10.9
- 363 -
10.EXTENDED SYMBOL/COMMENT FUNCTION B-63484EN/05
10.10 PRINTING
Fig. 10.10.1
- 364 -
B-63484EN/05 10.EXTENDED SYMBOL/COMMENT FUNCTION
Table 10.10.2
Print format Description
All All the symbols and the comment data are printed.
Printed as a single line. The symbol is printed up to 24
1 line
characters and the comment is up to 40 characters.
Procedure
1 Select the [Print] of the [File] menu.
2 Select the [Option] button of the [Print] dialog box.
3 Select the [Symbol_Comment] tab of the [Option] dialog box.
4 Choose the All or the 1 Line of the [Selection of print format]
Fig. 10.10.2
- 365 -
10.EXTENDED SYMBOL/COMMENT FUNCTION B-63484EN/05
Subprogram Comment
Coil Comment
Relay/Coil
Fig. 10.10.3 (a)
Procedure
1 Select the [Print] of the [File] menu.
2 Select the <Option> button of the [Print] dialog box.
3 Select the [Ladder Diagram] tab of the [Option] dialog box.
4 Click the <Details> button.
5 Use the Relay/Coil, the Coil comment or the Subprogram
comment.
- 366 -
B-63484EN/05 10.EXTENDED SYMBOL/COMMENT FUNCTION
Procedure
1 Select the [Print] of the [File] menu.
2 Select the <Option> button of the [Print] dialog box.
3 Select the [Cross Reference] tab of the [Option] dialog box.
4 Click the <Details> button.
5 Use the Comment.
Fig. 10.10.4
- 367 -
10.EXTENDED SYMBOL/COMMENT FUNCTION B-63484EN/05
Procedure
1 Select [Diagnose] – [Signal Status]. The [Signal Status] screen
appears.
Fig. 10.11
10.11.1 Toolbar
(1) Switches between the status screen and forced I/O screen.
(2) Search button
(3) Combo box for inputting the character string for which a search
is to be made.
To search a local symbol “ABC” in P1, Input ”P1.ABC”.
(4) Symbol indication (off ⇔ on)
(5) Display format: Byte
(6) Display format: Word
(7) Display format: Double word
(8) Display type: Binary
(9) Display type: Decimal
(10) Display type: Hexadecimal
(11) Display type: BCD
(12) Sign indication (off ⇔ on)
(Valid only when decimal notation is set as the display type.)
(13) ToolTips indication (off ⇔ on)
When the cursor is on an address, detailed information of the
address is shown if ToolTips indication is turned on.
- 368 -
B-63484EN/05 10.EXTENDED SYMBOL/COMMENT FUNCTION
10.12.1 Toolbar
10.13.1 Toolbar
- 369 -
10.EXTENDED SYMBOL/COMMENT FUNCTION B-63484EN/05
10.14.1 Toolbar
10.15.1 Toolbar
- 370 -
B-63484EN/05 10.EXTENDED SYMBOL/COMMENT FUNCTION
10.16.1 Toolbar
(1) (2) (3) (4) (5) (6) (7) (8) (9) (10) (11) (12)(13)(14)(15) (16)
Fig. 10.16.1
Fig. 10.17
- 372 -
B-63484EN/05 10.EXTENDED SYMBOL/COMMENT FUNCTION
Table 10.18
Identification
Conversion name Data kind The contents of change
code
Symbol %@2 FORMAT-A/B
P-G Compatible
and %@2-C FORMAT-C (Relay comment, Comment)
Full Options
comment %@2-C2 FS30i (Comment 1, Comment 2)
Label / Sub program
Ladder %@3
Extended functions System %@0 • Model information was added.
parameter • Automatic assignment of address was added.
Symbol %@2-D • Structure of a symbol subject.
and • The local symbol and the global symbol were added.
comment • Type information was added.
• The comment set was extended to four.
Ladder %@3-D • It corresponded to the address and the symbol.
• It corresponded to the local symbol and the global symbol.
- 373 -
10.EXTENDED SYMBOL/COMMENT FUNCTION B-63484EN/05
%@2-D
Symbol Address:Type
$1 'Comment 1'
$2 'Comment 2'
$LEVEL1
Symbol Address:Type
$2 'Comment 2'
%
- 374 -
B-63484EN/05 10.EXTENDED SYMBOL/COMMENT FUNCTION
CAUTION
1 Please input a symbol and a comment from the 1st
character. Any blank should not precede.
2 When using a single quotation mark " ' " into the
character string of a relay comment and a coil
comment, dollar + single quotation mark " $ "+ " ' "
describes.
3 When you use yen symbol " \ " (backslash) by a
comment into a comment text, please describe it as
two " \\. "
%@2-D
INITIALIZE L0100:LABEL
$1 'INITIALIZE OF SEQUENCE'
OPEN-FRONT P0008:PROG
$2 'OPEN FRONT COVER'
UNIT-2-ACT R0200.1:BOOL
$1 'KEEP UNIT-4 $$POWER$' ON'
$2 '$'POWER$$'
UNIT-3-POWER R0200.0:BOOL
$1 'KEEP UNIT-3 POWER ON'
$2 'KEEP POWER ON'
R0300.0:BOOL
$1 'KEEP UNIT-4 POWER ON'
$2 'KEEP POWER ON'
$LEVEL1
*ESP G0008.4:BOOL
$1 'Emergency STOP'
Work1 R0100.0:BOOL
$1 'Work signal\nTest'
%
- 375 -
10.EXTENDED SYMBOL/COMMENT FUNCTION B-63484EN/05
10.18.3 Ladder
Extended functions
%@3-D
END1
LABEL1 LBL ;<L100 >
;[LABEL L00001]
END2
SUBPR1 SP ;<P1 > "SUB PROG. NO.01"
;[SUB PROGRAM DATA NO.01]
RD XADRS1 ;<X0.0 > "JUMPB LABEL L001"
JMPB LABEL1 ;<L100 >
;[LABEL L00001]
RD XADRS2 ;<X0.1 > "JMPC LABEL L001"
JMPC LABEL1 ;<L100 >
;[LABEL L00001]
LABEL1 LBL ;<L100 >
;[LABEL L00001]
SPE
SP1000 SP ;<P2 > "SUB PROGRAM NO.1"
RD RADRS00 ;<R0.0 >
DEC DADRS04 ;<D0 >
2
WRT %D0.0
SPE
END
%
Fig. 10.18.3
CAUTION
1 Please input the parameter of LBL and SP
instruction from the 1st character.
2 Please be sure to put in the space or a tab before a
basic instruction and a functional instruction.
3 The character before a “:” (colon) is disregarded.
The character after a “;” semicolon is also
disregarded.
4 Please attach "%" (percent) to an address.
- 376 -
B-63484EN/05 11.CONVERTING SEQUENCE PROGRAMS
- 377 -
11.CONVERTING SEQUENCE PROGRAMS B-63484EN/05
11.1.1 Procedure
1 Select [Tool] – [Data Conversion.]
- 378 -
B-63484EN/05 11.CONVERTING SEQUENCE PROGRAMS
- 379 -
11.CONVERTING SEQUENCE PROGRAMS B-63484EN/05
11.2.1 Procedure
1 Select [Tool] – [Data Conversion.]
Fig. 11.2.1
Program Name
Enter the name (folder name) of the DOS-version
sequence program you want to create by the
conversion.
Program Format
Select format A, B, or C.
NOTE
1 For conversion to FANUC LADDER-II sequence
programs, select FormatC for Program Format.
2 Any sequence program on the PMC-SB7 cannot be
converted to a sequence program of FANUC
LADDER-II.
- 380 -
B-63484EN/05 11.CONVERTING SEQUENCE PROGRAMS
Table 11.3.1
CNC model PMC from which conversion is possible
FS16/18/20-B
PMC - SA1 / SA3 / SA5 /
FS16/18/21-C
SB3 / SB4 / SB5 / SB6 / SB7 /
FS16/18/21i-A
SC3 / SC4
FS16/18/21i-B
Power Mate-D/F/H
PMC - PA1 / PA3 / SB5 / SB6
Power Mate i-D/H
FS15-B
PMC - NB / NB2 / NB6
FS15i
NOTE
It is impossible to convert step sequence data.
- 381 -
11.CONVERTING SEQUENCE PROGRAMS B-63484EN/05
%@A %@A
%@0 %@0
2 BCD 2 BCD
3 NO 3 NO
4 PMC-RB3 Changing 4 PMC-RC3
7 100 system 5 000000
% parameters 6 50
%@1 7 100
01 ABC-KIKAI %
02 S-DRILL %@1
: 01 ABC-KIKAI
: 02 S-DRILL
% :
%@5 :
X000 1 0 1 ID16C %
Y008 1 0 4 OD32A %@5
% X000 1 0 1 ID16C
%@E Y008 1 0 4 OD32A
%
%@E
NOTE
For an explanation of the setting items of the
system parameter section of each model, see
Subsection 6.4.1.1, "Parameter" in Section 6.4,
"MNEMONIC FILE SAMPLE".
- 382 -
B-63484EN/05 11.CONVERTING SEQUENCE PROGRAMS
[Example: Making symbol and comment data for the PMC-SB usable
for with PMC-SC3]
%@A %@A
%@0 %@0
2 BCD 2 BCD
3 NO 3 NO
4 PMC-RB 4 PMC-RC3
7 100 5 000000
9 YES 6 50
% 7 100
%@1 %
: %@1
: :
% :
Insert %
%@2
X000.0 ZPX.M %@2
X000.1 ZPY.M X000.0 ZPX.M
% X000.1 ZPY.M
: %
: :
% :
%@E %
%@E
- 383 -
11.CONVERTING SEQUENCE PROGRAMS B-63484EN/05
4 Import the memory card format data that was exported in step 2,
above.
- 384 -
B-63484EN/05 12.ERROR MESSAGES
12 ERROR MESSAGES
This chapter describes the error messages that may be displayed by
Ladder Editing Package (Windows).
- 385 -
12.ERROR MESSAGES B-63484EN/05
Function
Function name Function screen
symbol
Create new program
Open program
Update program
A File Save
Import
Export
Data conversion
B Title editing Edit title
C I/O module editing Edit I/O module
D System parameter editing Edit system parameter
Edit ladder
E Ladder/step sequence editing
Ladder monitor
F Symbol/comment editing Edit symbol/comment
G Message editing Edit message
Print
H Print
Print preview
I Compile Compile
J Decompile Decompile
Mnemonic conversion
K Mnemonic editing
Source program conversion
Load from PMC
L Input/output Store in PMC
Backup
Signal status
PMC parameter timer
PMC parameter counter
PMC parameter keep relay
PMC parameter data table
PMC parameter setting
PMC alarm status
N Online PMC status
Signal trace
Signal analysis
Run program
Stop program
Communication
I/O Link start
Clear PMC area
- 386 -
B-63484EN/05 12.ERROR MESSAGES
- 387 -
12.ERROR MESSAGES B-63484EN/05
12.2.1 File
- 388 -
B-63484EN/05 12.ERROR MESSAGES
- 389 -
12.ERROR MESSAGES B-63484EN/05
- 390 -
B-63484EN/05 12.ERROR MESSAGES
- 391 -
12.ERROR MESSAGES B-63484EN/05
- 392 -
B-63484EN/05 12.ERROR MESSAGES
- 393 -
12.ERROR MESSAGES B-63484EN/05
12.2.7 Print
12.2.8 Compile
I:E-3100 **** read error The source program could not be read.
I:E-3101 **** write error The results of compilation could not be written.
I:E-3102 **** Source program name illegal. An invalid source program name was specified.
I:E-3103 **** Source program not found. The **** source program is not found.
I:E-3104 **** file not found
I:E-3105 **** Source program format is different. The format of the source program is FORMAT-A.
I:E-3106 **** file read error.
I:E-3107 System parameter read error. A source file containing system parameter data is missing.
I:E-3108 Title read error. A source file containing title data is missing.
I:E-3109 I/O module read error. A source file containing I/O module data is missing.
I:E-3110 Verification error An entered password does not match the set password.
This word can not be used as password.
I:E-3111 Try another password.
Try another word
Only alphabetical and numerical A password including other than alphanumeric characters was
I:E-3112
characters are allowed entered.
An instruction that cannot be handled with a selected type of
I:E-3200 There is an undefined instruction.
program is included.
- 394 -
B-63484EN/05 12.ERROR MESSAGES
- 395 -
12.ERROR MESSAGES B-63484EN/05
- 396 -
B-63484EN/05 12.ERROR MESSAGES
- 397 -
12.ERROR MESSAGES B-63484EN/05
- 398 -
B-63484EN/05 12.ERROR MESSAGES
12.2.9 Decompile
- 399 -
12.ERROR MESSAGES B-63484EN/05
- 400 -
B-63484EN/05 12.ERROR MESSAGES
- 401 -
12.ERROR MESSAGES B-63484EN/05
- 402 -
B-63484EN/05 12.ERROR MESSAGES
- 403 -
12.ERROR MESSAGES B-63484EN/05
- 404 -
B-63484EN/05 12.ERROR MESSAGES
- 405 -
12.ERROR MESSAGES B-63484EN/05
- 406 -
B-63484EN/05 12.ERROR MESSAGES
- 407 -
12.ERROR MESSAGES B-63484EN/05
12.2.11 Input/Output
12.2.12 Online
- 408 -
B-63484EN/05 12.ERROR MESSAGES
- 409 -
APPENDIX
B-63484EN/05 APPENDIX A.CABLE FOR DATA TRANSFER
A02B-0200-K814
CD(1)
(2)SD
RD(2)
(3)RD
SD(3)
(6)DR
ER(4)
(7)SG
SG(5)
(8)CD
DR(6)
(5)CS
RS(7)
(4)RS
CS(8)
(20)ER
- 413 -
B.CONVERSION USING A SIGNAL ADDRESS CONVERTER APPENDIX B-63484EN/05
- 414 -
B-63484EN/05 APPENDIX B.CONVERSION USING A SIGNAL ADDRESS CONVERTER
- 415 -
C.LANGUAGE PROGRAM LINK FUNCTION APPENDIX B-63484EN/05
1 Select [File] - [Open Program], and open the program with which
you want to unite a load module.
2 Select [Tool] - [Link of language programs...].
- 416 -
B-63484EN/05 APPENDIX C.LANGUAGE PROGRAM LINK FUNCTION
NOTE
1 If not using C language functions, you need not
unite programs.
2 This function is available to models
PMC-SC3/SC4/SC4 (STEP SEQ.)/QC/NB/NB2.
- 417 -
D.MULTI-LANGUAGE PMC MESSAGE CREATION TOOL APPENDIX B-63484EN/05
Multi-language
PMC Message CNC
Creation TOOL PCMCIA
PMC sequence program
memory card
(Memory card format file)
Multi-language Multi-language
PMC message file PMC message file
(Memory card format file) (Memory card format file)
- 418 -
B-63484EN/05 APPENDIX D.MULTI-LANGUAGE PMC MESSAGE CREATION TOOL
CNC Option
• 1st-path PMC message multi-language display 128K :
A02B-0303-S977#128K
• 1st-path PMC message multi-language display 256K :
A02B-0303-S977#256K
• 2nd-path PMC message multi-language display 128K :
A02B-0303-S978#128K
• 3rd-path PMC message multi-language display 128K :
A02B-0303-S979#128K
NOTE
The number of messages and F-ROM size.
When F-ROM size is 128KB.
- PMC for Series 30i/31i/32i without extended function : 473 messages or more
- PMC for Series 30i/31i/32i with extended function : 435 messages or more·
When F-ROM size is 256KB.
- PMC for Series 30i/31i/32i without extended function : 946 messages or more
- PMC for Series 30i/31i/32i with extended function : 870 messages or more
Above calculation is the case where:
The maximum size of one message data is as follows (When you use a global
symbol).
- PMC for Series 30i/31i/32i without extended function : Maximum 277 bytes =
(Language ID 3bytes) + (Symbol 16bytes) + (Message string 255bytes) +
(delimiter 3bytes)
- PMC for Series 30i/31i/32i with extended function : Maximum 301 bytes =
(Language ID 3bytes) + (Symbol 40bytes) + (Message string 255bytes) +
(delimiter 3bytes)
- 419 -
D.MULTI-LANGUAGE PMC MESSAGE CREATION TOOL APPENDIX B-63484EN/05
Operating system
Windows 2000 Professional
Windows XP Professional
Windows XP Home Edition
Windows 98 SE
Windows Me
NOTE
1 In Windows 2000/XP, ASCII and Unicode(UTF-16)
can be used in the encoding of a text file.
2 In Windows 98/Me, ASCII is recommended in the
encoding of a text file.
- 420 -
B-63484EN/05 APPENDIX D.MULTI-LANGUAGE PMC MESSAGE CREATION TOOL
Overview
Personal computer
Multi-language message source files
German message (Text file) In the encoding of a text file, both ANSI and
Unicode (UTF-16) are supported.
If the encoding of a text file is Unicode(UTF-16),
Japanese message (Text file)
european special character can be edited
directly.
Command prompt
Multi-language
PMC Message cd \pmc_message
Creation TOOL fpmcmsg germsg.txt + jpnmsg.txt /o=msg_mcard
PCM/CIA card
Message data
NOTE
1 Multi-language PMC message file can be loaded from CNC boot menu or PMC I/O
screen through PCM/CIA card.
2 Multi-language PMC message can be modified without modifying the PMC
sequence program.
3 When the alarm number of the same A address in PMC sequence program and
multi-language PMC message file is not corresponding, alarm number of PMC
sequence program is displayed
4 In message data of PMC sequence program, please prepare the message number
whenever you should display the message number. And please specify the same
message number in multi-language PMC message file.
- 421 -
D.MULTI-LANGUAGE PMC MESSAGE CREATION TOOL APPENDIX B-63484EN/05
File format
File type : Text file
Encoding : ANSI / Unicode(UTF-16)
- 422 -
B-63484EN/05 APPENDIX D.MULTI-LANGUAGE PMC MESSAGE CREATION TOOL
(i) Language ID
A string of message is displayed according to the display
language of CNC by specifying language ID.
Language ID
0: English 1: Japanese 2: German
3: French 4: Traditional Chinese 5: Italian
6: Korean 7: Spanish 8: Dutch
9: Danish 10: Portuguese 11: Polish
12: Hungarian 13: Swedish 14: Czech
15: Simplified Chinese
(Example)
English -> $0 (symbol or address) ‘(A string of message)’
German -> $2 (symbol or address) ‘(A string of message)’
Korean -> $6 (symbol or address) ‘(A string of message)’
Simplified Chinese -> $15 (symbol or address) ‘(A string
of message)’
- 423 -
D.MULTI-LANGUAGE PMC MESSAGE CREATION TOOL APPENDIX B-63484EN/05
NOTE
European special character can be entered by
code input (@0D-01@) on a text editor not capable
of Unicode.
NOTE
1 European special character (umlaut) can be edited
directly by using appropriate text editor capable of
Unicode (UTF-16)
2 When managing the message source files using
other application software such as version
management tools, such software is required to
support the encoding of ANSI and Unicode
(UTF-16).
- 424 -
B-63484EN/05 APPENDIX D.MULTI-LANGUAGE PMC MESSAGE CREATION TOOL
- 425 -
D.MULTI-LANGUAGE PMC MESSAGE CREATION TOOL APPENDIX B-63484EN/05
A0 A8 B0 B8
A1 A9 B1 B9
A2 AA B2 BA
A3 AB B3 BB
A4 AC B4 BC
A5 AD B5 BD
A6 AE B6 BE
A7 AF B7 BF
- 426 -
B-63484EN/05 APPENDIX D.MULTI-LANGUAGE PMC MESSAGE CREATION TOOL
C0 C8 D0 D8
C1 C9 D1 D9
C2 CA D2 DA
C3 CB D3 DB
C4 CC D4 DC
C5 CD D5
C6 CE D6
C7 CF D7
- 427 -
D.MULTI-LANGUAGE PMC MESSAGE CREATION TOOL APPENDIX B-63484EN/05
- 428 -
B-63484EN/05 APPENDIX D.MULTI-LANGUAGE PMC MESSAGE CREATION TOOL
(a) Signed
[Ibid, ]
Address where the numerical data is stored
Set binary data in the specified address.
The specifying of address using symbol is not
supported.
(b) Unsigned
[Ubid, ]
Address where the numerical data is stored
Set binary data in the specified address.
The specifying of address using symbol is not
supported.
NOTE
1 Sum of integer part digits and fractional part digits
must be within 8.
2 Blank is displayed for digits exceeding 8 digits.
3 Do not use any space between the brackets, [ ].
- 429 -
D.MULTI-LANGUAGE PMC MESSAGE CREATION TOOL APPENDIX B-63484EN/05
Example)
The following message includes 3 digits tool number at the
spindle and the offset data ( . ) for this tool. And these data
are contained in memory address of 2bytes:
SPINDLE TOOL NO. = [I230, ]
OFFSET DATA = [I212, ∆∆∆∆]
Example)
“@Fuse [100mA] is blown.” is as follows.
@40@Fuse @5B@100mA@5D@ is blown.
- 430 -
B-63484EN/05 APPENDIX D.MULTI-LANGUAGE PMC MESSAGE CREATION TOOL
D.2 USAGE
Parameter
[drive:][path]message-file1, [drive:][path]message-file2, …
Specify the location and name of a multi-language message file.
Two or more multi-language message files can be specified by using +.
When only the file name is specified, the multi-language message file is
considered to be on current folder.
/m=[drive:][path]lad-mcard-file
To confirm the multi-language message not correctly displayed, please specify
this parameter.
In lad-mcard-file, specify the name of a sequence program (memory card
format file) related to source files.
When only the file name is specified, lad-mcard-file is considered to be on current
folder.
This parameter can be omitted.
/l=[drive:][path]lad-file
To confirm the multi-language PMC message not correctly displayed, please specify
this parameter.
In lad-file, specify the name of .LAD file related to source files.
When only the file name is specified, lad-file is considered to be on current folder.
This parameter can be omitted.
Please do not execute this tool while the .LAD file specified by /l parameter
has been opened by FANUC LADDER-III.
/O=[drive:][path]mcard-file
Specify the location and name of a multi-language PMC message file.
When only the file name is specified, a multi-language PMC message file is created
on current folder.
- 431 -
D.MULTI-LANGUAGE PMC MESSAGE CREATION TOOL APPENDIX B-63484EN/05
Fmsgcnv [drive:][path]mcard-file
[/unicode]
/o=[drive:] [path]message-text-file
Parameter
[drive:][path]mcard-file
Specify the location and name of a multi-language PMC message file.
When only the file name is specified, a multi-language PMC message file is
considered to be on current folder.
/unicode
The encoding of a source file becomes to Unicode.
When this parameter is omitted, the encoding of a source file becomes to
ANSI.
/o=[drive:][path]message-text-file
Specify the location and name of a source file.
NOTE
1 FPMCMSG.EXE exists on the install folder of
Ladder Editing Package (Windows).(A default
folder is “C:\Program Files\FANUC PMC
Programmer\LADDER EDITING PACKAGE”.)
2 Usually, FPMCMSG.EXE sends the output of
command to your screen.To redirect the output of a
command, use the greater-than sign (>).The
greater-than sign (>) sends the output of a
command to a file or a device, such as a printer.
3 In creating a multi-language PMC message file
from source files, line comment except title
information is not created into a multi-language
PMC message file.
- 432 -
B-63484EN/05 APPENDIX D.MULTI-LANGUAGE PMC MESSAGE CREATION TOOL
[Example –1]
Create a multi-language PMC message file “msg_mcard” from a
source file “multi_msg.txt”.
Multi-language message text file (ANSI)
(multi_msg.txt)
%@4-D
“Create:11-Dec-2003 Edition:0002
Multi-language message English / German / Japanese”
“English message” 1st-path PMC
$0 ALM1001 1001 FUSE IS BLOWN (SURGE KILLER) multi-language
$0 %A000.1 1002 EXT. EMERGENCY STOP SIGNAL ON
PMC message file
$0 LEVEL1.ALM10031003.TIME OVER (M100-M109)
“German message”
(msg_mcard)
$2 ALM1001 1001 FUSEIS BLOWN (SURGE KILLER)
$2 %A000.1 1002 EXT. EMERGENCY STOP SIGNAL
$2 LEVEL1.ALM10031003 TIME @0DB101@VER (M100-M109)
“Japanese message”
$1 ALM1001 1001 ヒューズ切れ(サージキラー)
$1 %A000.1 1002 外部非常停止になりました
$1 LEVEL1.ALM10031003 タイムオーバー (M100-M109)
%
- Command
cd \pmc_message
fmsgcnv multi_msg.txt /o=msg_mcard
[Example –2]
Create a multi-language PMC message file of 2nd-path PMC from
source files divided by a language.
English message text file (ANSI)
%@4-D
$0 ALM1001 1001 FUSE IS BLOWN (SURGE KILLER)
$0 %A000.1 1002 EXT. EMERGENCY STOP SIGNAL ON
$0 %P7.ALM1003 1003.TIME OVER (M100-M109)
- Command
cd \pmc_message
fmsgcnv engmsg.txt + germsg.txt + jpnmsg.txt /p=2
/o=msg_mcard
- 433 -
D.MULTI-LANGUAGE PMC MESSAGE CREATION TOOL APPENDIX B-63484EN/05
[Example-3]
Create a source file “multi_msg.txt” from a multi-language PMC
message file “msg_mcard”.
- Command
cd \pmc_message
fmsgcnv msg_mcard /o=multi_msg.txt
[Example-4]
Create a source file “multi_msg.txt” with Unicode (UTF-16) from a
multi-language PMC message file “msg_mcard”.
- Command
cd \pmc_message
fmsgcnv msg_mcard /unicode /o=multi_msg.txt
- 434 -
B-63484EN/05 APPENDIX D.MULTI-LANGUAGE PMC MESSAGE CREATION TOOL
- 435 -
D.MULTI-LANGUAGE PMC MESSAGE CREATION TOOL APPENDIX B-63484EN/05
- 436 -
B-63484EN/05 APPENDIX E.THE DATA FORMAT OF THE EXTERNAL SYMBOL FILE
• Identification code
It is the character string which starts with %. The external
symbol file needs identification code ("%@2-E") for the
symbol/comment of CSV.
Table E (a)
Identification code Meaning
%@2-E(Option) Symbol and comment (CSV file)
% End of data
- 437 -
E.THE DATA FORMAT OF THE EXTERNAL SYMBOL FILE APPENDIX B-63484EN/05
NOTE
1 If unsupported option is specified, warning will be
displayed, and the option is disregarded.
2 If you use the quotation mark, please put the whole
option among them.
(Example) "%@2-E(....)" or '%@2-E(....)'
" (the double quotation mark) is
omissible.
- 438 -
B-63484EN/05 APPENDIX E.THE DATA FORMAT OF THE EXTERNAL SYMBOL FILE
• In 30i/31i/32i-A
Table E.1 (b)
Identification code
%@2-E(SYM=1 ADR=2 CM1=3 CM2=4)
%
(Example output)
The symbol is the 1st row, the address is the 2nd row, the
comment1 is the 3rd row and the comment2 is outputted to
the 4th row.
(Example output)
The symbol is the 1st row, the address is the 2nd row, the
type is the 3rd row, the program is the 4th row, the
comment1 is the 5th row and and the comment2 is outputted
to the 6th row.
- 439 -
E.THE DATA FORMAT OF THE EXTERNAL SYMBOL FILE APPENDIX B-63484EN/05
- 440 -
B-63484EN/05 APPENDIX E.THE DATA FORMAT OF THE EXTERNAL SYMBOL FILE
- Operation
1 Display the export screen in 30i/31i/32i-A, and output the
external symbol file.
%@2-E(SYM=1 ADR=2 CM1=3 CM2=4)
STOP,Y0.0,Output Line No.43,Stop signal on
POWER_OFF,X32.0,Input Line No.183,Power off status
DOOR,X32.1,Input Line No.184,Safety door open
%
- 441 -
E.THE DATA FORMAT OF THE EXTERNAL SYMBOL FILE APPENDIX B-63484EN/05
- Operation
1 Display the export screen in 30i/31i/32i-A extended function.
Check Performing automatic address assignment. Output the
external symbol file.
2 Display the import screen in 30i/31i/32i-A, and input the external
symbol file.
3 When reading the external symbol file for 30i/31i/32i-A, there
are the following limitations.
- 442 -
B-63484EN/05 INDEX
INDEX
Changing Signal Addresses and Function Instruction
<A>
Parameters in the Display Window...........................80
ABOUT SYMBOL/COMMENT DATA ...................... 330
Changing the ladder editing mode...................................86
ABOUT THE CHARACTER OF THE EXTERNAL
CHECKING DUPLICATE COIL .................................166
SYMBOL FILE ...................................................... 440
Checking Syntax ...........................................................124
About the Deletion of the Unused Net Comment.......... 149
Checking the Number of Program Steps .........................82
About the Distinction of Symbol and Address.............. 333
CLEARING PMC AREAS ...........................................319
About the Symbol Type ................................................ 333
Collective Display...........................................................68
ACTIVATING THE I/O LINK..................................... 320
Collective display function............................................345
Add New Symbol and Comment................................... 336
Comment of Contact and Coil.......................................343
Adding Ladder Subprograms .......................................... 54
COMPARING WITH PMC ..........................................270
Adding Page Breaks........................................................ 60
COMPATIBILITY OF THE EXTERNAL SYMBOL
Adding Step Sequence Subprograms ............................ 125
FILE ........................................................................441
Addition of Symbol/Comment and Net comment ......... 225
COMPILATION ................................................... 203, 362
Address Decision .......................................................... 358
COMPILATION AND DECOMPILATION ................202
ALL format ................................................................... 242
Compile.........................................................................394
AUTOMATIC ADDRESS ASSIGNMENT
Conversion by Changing System Parameters................381
FUNCTION ............................................................ 356
CONVERSION USING A SIGNAL ADDRESS
AUTOMATIC COMPILATION AND
CONVERTER.........................................................414
DECOMPILATION................................................ 213
CONVERTING FROM DOS-VERSION FANUC
Automatic input of the CTR parameter of a functional
LADDER-II ............................................................378
instruction ............................................................... 107
CONVERTING MNEMONIC FILES TO SOURCE
Automatic input of the TMR parameter of a functional
PROGRAMS...........................................................223
instruction ............................................................... 106
CONVERTING SEQUENCE PROGRAMS.................377
Automatic Input of Timer, Counter, Rising/Falling-edge
CONVERTING SEQUENCE PROGRAMS BETWEEN
Numbers.................................................................. 105
PMC MODELS.......................................................381
AUTOMATIC NUMBERING OF TMRB/ TMRBF/
CONVERTING SOURCE PROGRAMS TO
DIFU/DIFD............................................................. 217
MNEMONIC FILES...............................................220
Automatic Sampling Function at Power-On ................. 328
Converting Step Sequence Programs between Different
Automatic Signal Sampling Function at Power-On ...... 318
Models ....................................................................384
Automatic Trace Function at Power-On........................ 311
CONVERTING STEP SEQUENCE PROGRAMS TO
<B> MNEMONIC FILES.....................................................
BASICS........................................................................... 11 CONVERTING TO DOS-VERSION FANUC
Beginning of Parallel Branch ........................................ 121 LADDER-II ............................................................380
Beginning of Selective Branch...................................... 120 CONVERTING TO MNEMONIC................................360
CONVERTING TO SOURCE PROGRAMS ...............359
<C>
Converts to the External Symbol File ...........................221
C ADDRESS (COUNTER)........................................... 369
Counter..........................................................................292
CABLE FOR DATA TRANSFER................................ 413
CREATING AND EDITING SEQUENCE
Changing Contacts and Coils in the Display Window ........
PROGRAMS.............................................................19
Changing Ladder Programs............................................. 39
Cut, Copy and Paste of Symbol or Comment Data .......338
Changing Ladder Programs on the Display Window ...... 86
i-1
INDEX B-63484EN/05
EDITING STEP SEQUENCES .................................... 108 Import of the External Symbol File...............................156
Entering and Deleting Vertical Lines.............................. 53 Inserting Ladders from the Edit Window into a Ladder
ERROR MESSAGES.................................... 385, 388, 435 Ladder Diagram is Outputted to the Text File...............100
i-2
B-63484EN/05 INDEX
i-3
INDEX B-63484EN/05
Sample of an External Symbol File............................... 246 Starting Ladder Editing Package (Windows) (Online
SAVING AND READING OPTION FILE .................. 193 Connection)...............................................................13
SAVING PROGRAMS WITH NAMES....................... 149 Status Monitor.................................................................17
Search.............................................................. 63, 127, 339 Step Sequence Configuration ........................................111
Search Function............................................................. 343 STOPPING SEQUENCE PROGRAMS .......................274
Selecting a transfer direction......................................... 271 STORING SEQUENCE PROGRAMS IN THE PMC
Selecting a transfer method ........................................... 271 (DURING CONNECTION WITH THE PMC) ......261
SEQUENCE PROGRAMS ............................................. 20 STORING SEQUENCE PROGRAMS IN THE PMC
Set of Display Language for Comment ......................... 361 (DURING CONNECTION WITH THE PMC) ......267
Set of Symbol................................................................ 357 Switching the Language in Which PMC Alarm
Set Screen...................................................................... 356 Messages Are Displayed .........................................305
Setting collective display extraction conditions .............. 68 Symbol and comment....................................................239
Setting Details of Trace Mode ...................................... 325 Symbol and Comment Data ..........................................128
Setting items.................................................................. 299 Symbol Comment..........................................................374
Setting Ladder Display.................................................... 75 SYSTEM FILES .............................................................12
Setting Options.............................................................. 251 SYSTEM PARAMETER ..............................................361
Setting PMC Setting Parameters ................................... 298 System Parameter..........................................................373
Setting Property............................................................. 201 System Parameter Editing .............................................390
Setting screen of the selectable I/O link assignment
<T>
function ................................................................... 302
T ADDRESS (TIMER) .................................................369
Setting the maximum number of undo operations........... 99
Terminating Ladder Editing Package (Windows) ...........13
Setting Trace Parameters............................................... 323
Terminating the signal trigger stop function .................281
Setting Trace Parameters (Sampling Addresses)........... 326
THE DATA FORMAT OF THE EXTERNAL
SETTING UP COMMON OPTIONS ........................... 192
SYMBOL FILE.......................................................437
SETTING UP COMMUNICATION............................. 249
The example of an output file........................................103
Setting up Pages ............................................................ 196
Timer.............................................................................290
SETTING UP PRINTER .............................................. 195
Title ...............................................................................239
SETUP ..............................................................................1
Title Editing ..................................................................389
Shortcut key list ............................................................ 283
TOOLTIPS INDICATION............................................372
SIGNAL ANALYSIS ................................................... 312
[Trigger Parameter] screen............................................282
[Signal Analysis Format] Screen................................... 317
[Signal Analysis Parameter] Screen .............................. 315 <U>
SIGNAL STATUS ................................................ 287, 368 Undo / Redo ....................................................................98
SIGNAL TRACE FUNCTION ..................................... 321 Uninstallation ....................................................................9
[Signal Trace Parameter] Screen................................... 310 Usable Characters..........................................................425
SIGNAL TRACING ............................................. 308, 371 USAGE .........................................................................431
Signal Trigger Stop Function ........................................ 279 Using System Program Data for Another Program .......383
Single Format ................................................................ 231
<W>
Soft Keys................................................................... 17, 67
Warning message ..........................................................301
Specifying Jump-to Label ............................................. 122
WINDOW NAMES AND FUNCTIONS........................14
Specifying Label Jump.................................................. 123
Work Folders and Online Program Files .........................25
START AND END ......................................................... 13
WRITING SEQUENCE PROGRAMS INTO F-ROM .269
Starting Ladder Editing Package (Windows) .................. 13
i-4
Revision Record
FANUC OPEN CNC Ladder Editing Package (Windows) OPERATOR’S MANUAL (B-63484EN)