BNP b2215 (Eng) Z

Download as pdf or txt
Download as pdf or txt
You are on page 1of 138

Microsoft and MS-DOS are registered trademarks of Microsoft Corporation in the USA.

Windows and Visual Basic are trademarks of Microsoft Corporation in the USA.
IBM and PC/AT are registered trademarks of International Business Machines
Corporation in the USA.
MELDAS and MELDASMAGIC are registered trademarks of Mitsubishi Electric
Corporation.
The other company names and product names are trademarks or registered trademarks
of the respective companies.
Introduction

This manual describes the handling of the PLC development software, a support tool
used to develop the user PLC (ladders, messages) for the MELDAS 64 Series or
MELDASMAGIC 64 Series.
Please read this manual before starting use.
Please read the "Precautions for Safety" listed on the following page to ensure safe use
of the MELDAS 64 Series and MELDASMAGIC 64 Series.

Details described in this manual

CAUTION

For items described in "Restrictions" or "Usable State", the instruction manual


issued by the machine maker takes precedence over this manual.
Items not described in this manual must be interpreted as "not possible".
This manual is written on the assumption that all option functions are added.
Refer to the specifications issued by the machine maker before starting use.
Some screens and functions may differ or may not be usable depending on the
NC version.

General precautions
Refer to the following documents for details on the handling.

(1) MELDAS64 Series


MELDAS 64 PLC Onboard Instruction Manual......................... BNP-B2213
MELDAS 64 PLC Programming Manual (Ladder section) ....... BNP-B2212
MELDAS 64 PLC Interface Manual .......................................... BNP-B2211

(2) MELDASMAGIC64 Series


MELDASMAGIC 64 PLC Onboard Instruction Manual ............. BNP-B2213
MELDASMAGIC 64 PLC Programming Manual
(Ladder section) .................................................... BNP-B2212
MELDASMAGIC 64 PLC Interface Manual............................... BNP-B2211
MELDASMAGIC 64 MELDASMAGIC
Monitor Operation Manual ..................... BNP-B2192
MELDASMAGIC 64 Utility Manual ........................................... BNP-B2196

(Note) In this manual, the MELDASMAGIC man-machine interface software is


abbreviated as the MMI software or MMI.
Precautions for Safety
Always read the specifications issued by the machine maker, this manual, related
manuals and enclosed documents before starting installation, operation, programming,
maintenance or inspections to ensure correct use. Thoroughly understand the basics,
safety information and precautions of this numerical controller before using the unit.
The safety precautions are ranked as "DANGER", "WARNING" and "CAUTION" in this
manual.

DANGER When there is a great risk that the user could be subject to
fatalities or serious injuries if handling is mistaken.

WARNING When the user could be subject to fatalities or serious injuries


if handling is mistaken.

CAUTION When the user could be subject to injuries or when physical


damage could occur if handling is mistaken.

Note that even if the item is ranked as " CAUTION", incorrect handling could lead to
serious results. Important information is described in all cases, so please observe the
items.

DANGER

Not applicable in this manual

WARNING

Not applicable in this manual.

CAUTION

1. Items related to product and manual


For items described as "Restrictions" or "Usable State" in this manual, the
instruction manual issued by the machine maker takes precedence over this
manual.
Items not described in this manual must be interpreted as "not possible".
This manual is written on the assumption that all option functions are added.
Refer to the specifications issued by the machine maker before starting use.
Some screens and functions may differ or may not be usable depending on the
NC version.
Contents

Contents
1. Outline ........................................................................................................................... 1
2. System Configuration ................................................................................................... 2
2.1 System Configuration for PLC Development ......................................................... 2
2.2 Devices Required for Ladder Development........................................................... 4
3. Development Procedure ............................................................................................... 5
3.1 General Flow of Ladder Development Procedure ................................................. 6
3.2 Before Starting Operations.................................................................................... 8
3.2.1 Menu operation ........................................................................................... 8
3.2.2 Movement of the cursor............................................................................... 9
3.2.3 Explanation of terms ................................................................................... 10
4. Start Up ......................................................................................................................... 13
4.1 Installing the Tools ............................................................................................... 13
4.2 Starting Up and Ending PLC4B ............................................................................ 14
5. Registering the Edit File .............................................................................................. 15
6. Creating a Ladder Circuit ............................................................................................. 16
6.1 Creating a New Circuit .......................................................................................... 17
6.2 Modification of Existing Circuit .............................................................................. 19
6.3 Adding a Circuit Block .......................................................................................... 20
6.4 Reading the Circuit ............................................................................................... 22
6.4.1 Reading the circuit with step number ......................................................... 22
6.4.2 Reading the circuit with device number ...................................................... 25
6.4.3 Reading the circuit with contact or coil number .......................................... 26
6.4.4 Reading the circuit with command .............................................................. 27
6.4.5 Reading the circuit with the END command ............................................... 29
6.4.6 Circuit read functions ................................................................................. 30
6.5 Inserting a Circuit .................................................................................................. 31
6.5.1 Inserting with circuit symbol units ............................................................... 31
6.6 Deleting a Circuit .................................................................................................. 34
6.6.1 Deleting a circuit block ............................................................................... 34
6.6.2 Deleting a circuit symbol ............................................................................ 36
6.7 Circuit Extension Function .................................................................................... 38
6.7.1 Examples of extension circuit operation ..................................................... 39
6.7.2 Error messages .......................................................................................... 47
6.7.3 Relation of number of returns and circuit length ......................................... 49
7. Messages ...................................................................................................................... 50
7.1 Initial ..................................................................................................................... 52
7.1.1 Example of settings ........................................................................................... 54
7.2 Writing .................................................................................................................. 56
7.2.1 ALARM MESS and OPERATE MESS ........................................................ 57
7.2.2 PLC switches ............................................................................................. 61
7.2.3 Device (contact) comment and coil comment ............................................. 62
7.2.4 Comment .................................................................................................... 63
7.2.5 Precautions for creating messages ............................................................ 65
7.3 Read ..................................................................................................................... 66
7.4 Insertion ................................................................................................................ 67
7.5 Deletion ................................................................................................................ 68
7.6 Conversion ........................................................................................................... 69
Contents

8. Printing ......................................................................................................................... 70
8.1 Printing the Ladder Program (Printer) ................................................................... 72
8.2 Printing the Comment List (Printer) ...................................................................... 73
8.3 Printing the Ladder Program (Printer 2) ................................................................ 74
8.4 Printing the Contact Comments and Coil Comments (Printer 2) ........................... 76
8.5 Example of Printing .............................................................................................. 77
8.5.1 Printing with ladder + comment + cross ..................................................... 77
8.5.2 Example of contact comment printing ........................................................ 78
8.5.3 Example of coil comment printing .............................................................. 79
8.6 Free Form Setting of the Printing Paper................................................................ 80
8.6.1 Outline......................................................................................................... 80
8.6.2 Screen configuration ................................................................................... 80
8.6.3 Details of function ...................................................................................... 81
8.6.4 Precautions ................................................................................................. 81
8.7 External File (PR_DATA)....................................................................................... 82
8.7.1 Outline......................................................................................................... 82
8.7.2 Details of functions...................................................................................... 82
8.7.3 Appendix ESC/P and PR201 printer control codes ..................................... 84
8.8 Canceling the Printing ........................................................................................... 84
9. Linking ........................................................................................................................... 85
9.1 File Linking ............................................................................................................ 85
9.1.1 Operation example ...................................................................................... 86
9.2 File Division ........................................................................................................... 87
9.2.1 Operation example ...................................................................................... 88
9.3 Others.................................................................................................................... 89
9.3.1 Address ....................................................................................................... 89
9.3.2 C Address ................................................................................................... 89
9.3.3 C Address 2 ................................................................................................ 89
9.3.4 Language I/F ............................................................................................... 89
9.3.5 C-Macro....................................................................................................... 89
10. Editing an Existing File ............................................................................................... 90
10.1 Link File ............................................................................................................... 90
10.2 Ladder File .......................................................................................................... 91
10.3 Message File ....................................................................................................... 91
11. Converting Ladder Files ............................................................................................. 92
11.1 Outline ................................................................................................................. 92
11.2 Conversion operation .......................................................................................... 92
11.3 Operation Examples ............................................................................................ 93
11.3.1 Normal Operation Example ....................................................................... 93
11.3.2 Operation Example for Link File Conversion ............................................. 93
11.4 Restrictions.......................................................................................................... 94
11.4.1 File Name Restrictions Before Conversion................................................ 94
11.4.2 File Name Restrictions After Conversion................................................... 94
11.4.3 File Attributes of Output Files .................................................................... 94
11.4.4 Device No. ................................................................................................ 94
11.4.5 Header ...................................................................................................... 94
11.4.6 Check Sum................................................................................................ 94
11.4.7 Message data............................................................................................ 94
Contents

12. Transferring Ladder Files (MELDAS 50) .................................................................... 95


12.1 Outline ................................................................................................................. 95
12.2 Starting Method ................................................................................................... 95
12.3 Communication Execution Sequence.................................................................. 96
12.3.1 From [personal computer] to [NC] ............................................................. 96
12.3.2 From [NC] to [personal computer] ............................................................. 96
12.4 Communication Program Screen Configuration .................................................. 97
12.5 Communication Program Operation Methods...................................................... 98
12.5.1 SIO setting ................................................................................................ 98
12.5.2 Com.Mode (Communication mode)........................................................... 98
12.5.3 File Name (File name input) ...................................................................... 98
12.5.4 Execute? ................................................................................................... 99
12.5.5 Monitor ...................................................................................................... 99
12.5.6 Message.................................................................................................... 99
12.6 Message List ....................................................................................................... 100
13. Transferring Ladder Files (MELDASMAGIC 50)......................................................... 102
13.1 Outline ................................................................................................................. 102
13.2 Operating Environment........................................................................................ 103
13.2.1 Personal computer operating conditions ................................................... 103
13.2.2 Required software ..................................................................................... 103
13.3 Converting PLC Program Data ............................................................................ 104
13.3.1 Conversion procedures ............................................................................. 104
13.4 Transferring PLC Program Data .......................................................................... 106
13.4.1 From [personal computer] to [NC Card] .................................................... 106
13.4.2 From [NC Card] to [personal computer] .................................................... 109
13.5 Message List ....................................................................................................... 110
14. List Mode Function .................................................................................................... 111
14.1 Function .............................................................................................................. 111
14.2 Menu Operation .................................................................................................. 113
14.3 Starting Up and Ending the List Mode (LIST4B) ................................................. 114
14.4 List of List Mode Edit Functions .......................................................................... 115
14.5 Registering Edited Files ...................................................................................... 116
14.6 Converting Text Files and Ladder Files .............................................................. 117
14.7 Writing PLC Lists ................................................................................................ 118
14.7.1 Creating a new PLC list ............................................................................ 118
14.7.2 Modification of existing PLC list ................................................................ 119
14.8 Reading the PLC List ......................................................................................... 120
14.8.1 Reading the PLC list with step number .................................................... 120
14.8.2 Reading the PLC list with device number ................................................. 121
14.8.3 Reading the PLC list with command ......................................................... 123
14.9 Inserting a PLC List ............................................................................................ 124
14.10 Deleting a PLC List ........................................................................................... 125
15. Messages .................................................................................................................... 127
15.1 Alarm Messages ................................................................................................. 127
15.2 Messages ........................................................................................................... 128
1. Outline

1. Outline

This manual describes the handling of the PLC development software, a support tool used to develop
the user PLC (ladders, messages).
Ladder circuits and mnemonic expressions are used as the programming language with this tool, so a
sequence program can be created easily.
A function (message creation function) to create messages such as the alarm messages and operator
messages, and the ladder contact comments and coil comments is also provided.

(Note 1) PLC is the abbreviation for Programmable Logic Controller.


(Note 2) The terms "control unit" and "controller" used in this manual refer to the "NC Card" in the
MELDASMAGIC 64 Series.
(Note 3) The " " key used in this manual refers to the Enter key (Return key). Note that the key
names may differ according to the type of personal computer being used.

−1−
2. System Configuration

2. System Configuration

2.1 System Configuration for PLC Development


The system configuration used for PLC development is shown below.

(1) MELDAS 64 Series

Communication terminal
The ladder is developed using the communication
terminal. (Onboard development)

Control unit

Program development,
ladder monitor and PLC
RUN/STOP, etc.

To connector AUX
Base I/O unit

RS-232-C

Up/downloading is carried
out with the control unit's
maintenance function.

RS-232-C

Personal computer Commercial printer


Used for development and saving data. (Ex.: PC-PR201G2)
(Hard disk or floppy disk)

(Note) When developing (onboard development) with the communication terminal, refer to the "MELDAS
64 Series PLC Onboard Development Manual".

−2−
2. System Configuration

(2) MELDASMAGIC 64 Series


By using the NC's onboard function from the M64 monitor, the ladders can be developed and the
signal operation can be monitored, etc.
By using the optional PLC development software, the ladders can be developed even if an NC Card
is not provided.
Personal computer
Used for development and saving data
(Hard disk or floppy disk)
Display unit

MELDASMAGIC monitor
(onboard) Utility disk
PLC development
software
Various utility disk tools

MAGIC
Monitor

Keyboard PLC
development
software

RS-232-C

NC Card

PLC ladder area


Commercial printer NC Card built-in RAM
(Ex.: PC-PR201GS) 16K steps
128K bytes

Base I/O unit

Dedicated printer
(PRT-02B)

(Note 1) When developing (onboard development) with the MELDASMAGIC monitor, refer to the
"MELDASMAGIC Series PLC Onboard Development Manual".
(Note 2) Refer to the MELDASMAGIC Monitor Operation Manual for details on the MELDASMAGIC
monitor.

−3−
2. System Configuration

2.2 Devices Required for Ladder Development


Device, tool Details Supplier
(1) Personal computer PC9801 Series (NEC) Commercial
CPU : 80386 or higher
Required memory: Main memory 640K bytes
+ Protected RAM 1M byte or more
Required disk unit: 1.25M byte compatible floppy
disk drive x 1 unit
Hard disk open capacity 1M
byte or more
PC/AT compatible unit
Hardware

CPU : 80386 or higher


Required memory: Main memory 640K bytes
+ Protected RAM 1M byte or more
Required disk unit: 1.44M byte compatible floppy
disk drive x 1 unit
Hard disk open capacity 1M
byte or more
(2) Printer This is used to output the ladder. (Ex.) PC-PR201 GS Commercial
(3) Cable This cable is used to connect the personal computer Commercial
and printer.
(4) Cable This cable is used to connect the control unit and Mitsubishi
personal computer. (R020 or equivalent) Electric
PLC development PLC4B: Ladder editing tool Mitsubishi
software package The ladders and messages can be edited, linked, Electric
divided and printed.
PC9801 Series LIST4B: List editing tool
DEV-A10Z01 The list can be edited and converted into a text file.
PC/AT compatible unit COMU: Ladder transfer tool
DEV-A10Z02 The PLC program file is transferred between the
personal computer and NC using a serial I/F.
MELDASMAGIC 50 CNV4BMM: Ladder file format conversion tool Mitsubishi
Software

(PC/AT version only) Electric


Utility disk The file is converted between the PLC4B format
and MELDASMAGIC format.
MAGICTRS: Ladder file transfer tool
This is Windows software used to transfer the file
between the personal computer disk and NC.
Japanese conversion Word processing type is used to type in Kanji codes Commercial
F.E.P. (ATOK) when editing the messages.
OS PC9801 Series: MS-DOS Version 3.3 and above Commercial
PC/AT compatible unit: MS-DOS Version 5.0 and
above

(Note 1) For the various tools of the PLC development software to run properly, a protected RAM
(1M byte or more) in the personal computer and the operating system MS-DOS Version 3.3
and above (MS-DOS Version 5.0 and above for PC/AT compatible unit) must be provided.
(Note 2) Either the PC9800 Series or PC/AT series personal computer can be used.
Note that even if the personal computer is compatible, the PLC development software may
not run in some cases.

−4−
3. Development Procedure

3. Development Procedure
The procedure used to create a new user PLC on the personal computer is shown below.

1 Tool installation The PLC development software tools are copied into the personal
computer.
Refer to the section "4.1 Installing the Tools".

2 Starting The PLC development software is started with the PLC4B.


Refer to the section "4.2 Starting Up and Ending PLC4B".

3 File registration The names of the ladder and message files are registered.
Refer to the section "5. Registering the Edit File".

4 Ladder creation A sequence program is created using a ladder circuit.


Refer to the section "6. Creating a Ladder Circuit".

5 Message creation Messages such as the alarm messages are created.


Refer to the section "7. Messages".

6 Printing The created ladder and message list is output.


Refer to the section "8. Printing".

7 Link file creation The ladder file and message file are linked, and a link file is created.
Refer to the section "9. Linking".

8 End The PLC development software is quit.

9 Transfer to actual machine The created link file is transferred to the NC.
Refer to the section "11. Transferring Ladder Files (MELDAS 64)" or
"12. Transferring Ladder Files (MELDASMAGIC 64)".

This procedure will be explained in the following sections.

−5−
3. Development Procedure

3.1 General Flow of Ladder Development Procedure


The following procedure is used to develop a built-in ladder with the PLC development software.

(1) MELDAS 64 Series

Start

Connect the personal computer and control unit Refer to the section "2. System
used for the PLC development tool (PLC4B). Configuration" for details on the
connection.
Stop the PLC using RUN/STOP under the menu Refer to the "PLC Onboard Instruction
file of the onboard function or by setting the rotary Manual" for details.
switch NCSYS on the control unit to "1".

Control unit

WD NC NC NC
ER LED SYS RST

Start the PLC development tool (PLC4B) and Refer to the section "4. Start Up" for how to start
create or edit the ladders and messages. the PLC development tool (PLC4B). To edit a
ladder that is already running in the control unit,
start the ladder file's communication program
Quit the PLC development tool, and convert the (COMU.EXE), and read the file into the
ladder file using the MELDAS-compatible ladder personal computer.
conversion tool (chscx.exe).

Start the ladder file's communication program Refer to section "11. Transferring Ladder
(COMU.EXE), and transfer the link file to the Files (MELDAS 64)" for details.
control unit.

Run the PLC using RUN/STOP under the menu


file of the onboard function or by setting the rotary
switch NCSYS on the control unit to "0".

Debug using the onboard monitor function, etc. Refer to the "PLC Onboard Instruction
Manual" for details.

Completion of creating (debugging)


No
Yes

End

−6−
3. Development Procedure

(2) MELDASMAGIC 64 Series

Start

Connect the personal computer and NC Card Refer to the section "2. System
used for the PLC development tool (PLC4B). Configuration" for details on the
connection.

Stop the PLC using RUN/STOP under the menu Refer to the "PLC Onboard Instruction
file of the onboard function. Manual" for details.

Start the PLC development tool (PLC4B) and Refer to the section "4. Start Up" for how to
create or edit the ladders and messages. start the PLC development tool (PLC4B).
To edit a ladder that is already running in
the NC Card, start the file transfer tool
(MAGICTRS), and read the file into the
personal computer.
Quit the PLC development tool, start the file
format conversion tool (Chgcx.EXE), Refer to section "12.3 Converting the PLC
and convert the file into a format usable by the
Program Data" for details.
MELDASMAGIC 64.

Quit the PLC development tool, start the file Refer to the section "12. Transferring
transfer tool (MAGICTRS.EXE), and transmit the Ladder Files (MELDASMAGIC 64)" for
link file to the NC Card. details.

Run the PLC using RUN/STOP under the menu


file of the onboard function.

Debug using the onboard monitor function, etc. Refer to the "PLC Onboard Instruction
Manual" for details.

Completion of creating (debugging)


No
Yes

End

−7−
3. Development Procedure

3.2 Before Starting Operations


The basic items for using the PLC development software are explained in this section.

3.2.1 Menu operation


The following title screen will display when the PLC development software is started up.

IBM PC-AT SYSTEM No.

1MSSG 4LADDER 5LINK 6EXIT IO 7FILE 8EXIT

Menu display section

When the title screen is displayed, the menu will appear on the bottom of the screen.
Use the function keys PF1 to PF10 to select a menu. The menu number and function key numbers
correspond to each other.
(These keys may be F1 to F10 depending on the personal computer model.)
The menu configuration is shown below.

1.MSSG 4.LADDER 5.LINK 6.EXIT IO 7.FILE 8.EXIT

When 1.MSSG is selected:

1.ALARM 2.OPERAT 3.PLC SW 4.DEVICE 5.COIL 6.COMMENT 7.INIT SUBMENU

1.READ 2.WRITE 3.INSERT 4.DELETE 5.CONVT 7.MONIT SUBMENU MENUE

2.WRITE 5.CONVT SUBMENU MENUE

−8−
3. Development Procedure

When 4.LADDER is selected:

2.CIRCUT

1.READ 2.WRITE 3.INSERT 4.DELETE 5.CONVT MENUE

Note 1)

SET

Note 1) ESC = can be used for INS .

When 5.LINK is selected:

1.READ 5.LINK 7.DIVIDE

When 6.EXIT IO is selected:

3.PRINT 5.PRINT2

When 7.FILE is selected:

2.WRITE

The PLC development software title screen will appear when PF10 is pressed.

3.2.2 Movement of the cursor

¡ During ladder creation: · 1 step movement ↑ ↓ ← →


¡ During message creation: · To move between setting sections TAB

· To move between columns ← →

−9−
3. Development Procedure

3.2.3 Explanation of terms

(1) Device and device number


The device is the address signal used to classify the signals handled by the PLC. The device
number is the serial number allocated to that device.
The device numbers for devices X, Y, U, W and H are expressed with a hexadecimal, and the others
are decimals.
List of devices
Device Device number Unit Description

X∗ X0~X4BF (1216 points) 1 bit Signal input to PLC for machine input, etc.

Y∗ Y0~Y53F (1344 points) 1 bit Signal output from PLC for machine output, etc.

U∗ U0~U178 (384 points) 1 bit Signal input to PLC for No.2 system.

W∗ W0~W1FF (512 points) 1 bit Signal output from PLC for No. 2 system.

M M0~M5119 (5120 points) 1 bit Temporary memory

G G0~G3071 (3072 points) 1 bit Temporary memory

F F0~F127 (128 points) 1 bit Temporary memory. Alarm message interface.

L L0~L255 (256 points) 1 bit Latch relay (back up memory)

E∗ E0~E127 (128 points) 1 bit Special relay

T T0~T15 (16 points) 1 bit/16 bit 10ms unit timer

T16~T95 (80 points) 1 bit/16 bit 100ms unit timer

T96~T103 (8 points) 1 bit/16 bit 100ms unit integral timer

Q Q0~Q39 (40 points) 1 bit/16 bit 10ms unit timer (fixed timer)

Q40~Q135 (96 points) 1 bit/16 bit 100ms unit timer (fixed timer)

Q136~Q151 (16 points) 1 bit/16 bit 100ms unit integral timer (fixed timer)

C C0~C23 (24 points) 1 bit/16 bit Counter

B B0~B103 (104 points) 1 bit/16 bit Counter (fixed counter)

D D0~D1023 (1024 points) 16 bit/32 bit Data register. Register for calculation.

R∗ R0~R8191 (8192 points) 16 bit/32 bit File register. PLC to CNC interface.
The user released registers are R500 to R549 and R1900 to R2799.
R1900 to R2799 are backed up by the battery.

A A0, A1 (2 points) 16 bit/32 bit Accumulator

Z – (1 point) 16 bit D or R address index (for ±n)

V – (1 point) 16 bit D or R address index (for ±n)

N N0~N7 (8 points) − Nesting level of master control.

P∗ P0~P255 (256 points) − Label for conditional jump and subroutine call.
(P300 to P511 are used to call C language modules.)

K K-32768~K32767 − Decimal constant for 16-bit command.

K-2147483648~K2147483647 − Decimal constant for 32-bit command.

H H0~HFFFF − Hexadecimal constant for 16-bit command.

H0~HFFFFFFFF − Hexadecimal constant for 32-bit command.

(Note 1) The devices with a ∗ mark in the device column have designated application.
Do not use the non-defined device numbers even if they are blank.
(Note 2) In addition to the above devices, there are the I, J and S devices, but these must not be
used.

− 10 −
3. Development Procedure

(Note 3) There are limits to the usage range, so refer to the "PLC Programming Manual (ladder
section)" for explanations on each device.
(For example, the user release range for point P is P0 to P159.)
(Note 4) The X100 to X13F, Y100 to Y13F, R80 to R83 and R180 to R183 devices cannot be used
with the MELDASMAGIC64 Series.

(2) Circuit signals


The following eight types of circuit signals are used.

Circuit signal Description

Used for A contact circuit.

Used for B contact circuit.

Used for A contact OR circuit.

Used for B contact OR circuit.

Used for coils (Y, M, G, F, L, E, T, C etc.)

Used for programming machine commands.


(MOV, =, +, –, etc.)

Used for connecting between circuit symbols.

Used for connecting between circuit symbols.

(3) Circuit block


The circuit block is the circuit closed with the or circuit symbols.

(Example)

Circuit block

− 11 −
3. Development Procedure

(4) Step numbers and pointers (P)


The step numbers are allocated in order to the created program, and is automatically changed when
the circuit is edited.
The pointers (P) are used as labels for the jumping destination of the conditional jump command
and for the jumping destination for the subroutine command. The points (P) shown below are for
special applications.
P128~P159 : These can be used in the same manner as P0~P127 but these will also
function as the page return when printing out the ladder circuit diagram.
P250~P225 : These are used to separate the PLC program processing levels.

P251 is assigned to the head of the high-speed processing program.


P252 is assigned to the head of the main processing program.

High-speed processing

Main processing

END is not displayed.

(Example)

Step
number

Pointer

− 12 −
4. Start Up

4. Start Up

4.1 Installing the Tools


Confirm that there is no PLC directory below the hard disk drive root directory. If there is a PLC directory,
change the name of the existing PLC directory, or more to a place other than the root directory.

(Operation procedure)
(Note 1) This operation example uses the A
drive of the personal computer for
the hard disk drive and the B drive
for the floppy disk drive.

(1) Turn on the personal computer and


start up MS-DOS. A:\> B:INSTALL_A:_B:

(2) Insert the floppy disk labeled as "PLC


Input the underlined section, and press the return key.
Development Tool Version PC-98" (or
Version PC-AT) into the B drive.

(3) Input the install command.


(Example) 1_File(s)_copied
Input "B:INSTALL_A:_B: ".
(_ indicates a space.)
1_File(s)_copied
(4) Comments will appear as shown on the
LHA’s SFX 2.13L (c) Yoshi, 1991 ...............................
right, and the installation will be
completed. COMU.MAE...............................................................
MELDAS_PLC_DEVELOPMENT_TOOL_INSTALLATION_IS
(5) The following files will be copied to the FINISHED.
designated drive during the installation A:\>

process.

<For Version PC-98> <For Version PC/AT>


A: \CHG4PB.BAT A:\PLC\BIN \ATOKCH.EXE C:\CHG4PB.BAT C:\PLC\BIN\ATOKCH.EXE
\HELP4B.BAT \CHG4PB.EXE \HELP4B.BAT \CHG4PB.EXE
\LIST4B.BAT \CODECCNV.INF \LIST4B.BAT \CODECCNV.INF
\M3MFD.BAT \COME.BAT \M3MFD.BAT \COME.BAT
\RUN386.EXE \COME.EXE \RUN386.EXE \COME.EXE
\HELP4B.BAT \COME.MAE \HELP4B.BAT \COME.MAE
\COME.MAJ \COME.MAJ
\M3MFD.EXE \M3MFD.EXE
\NORMCNV.EXE \NORMCNV.EXE
\HELP4B.EXE \HELP4B.EXE
\HELP4B.MAE \HELP4B.MAE
\HELP4B.MAJ \HELP4B.MAJ
\PLC2B.EXP \PLC2B.EXP
\PLCCM4B.H \PLCCM4B.H
\PLCLIST.H \PLCLIST.H
\PLC_LB.EXP \PLC_LB.EXP
\SET9801.EXE \SETIBMPC.EXE
\SETMFAS.EXE

− 13 −
4. Start Up

(6) When the installation is completed, use a commercial editor, and delete the following device
drivers related to the memory from "CONFIG.SYS".
EMM386.EXE
EMM.SYS
HIMEN.SYS
SMARTDRV.SYS

Change the "CONFIG.SYS" details as shown below.


[Example of CONFIG.SYS details]
BUFFERS=30
FILES=30
DEVICE=A:\DOS\RSDRV.SYS

Refer to a commercial book on MS-DOS for details on CONFIG.SYS.

4.2 Starting Up and Ending PLC4B


PLC4B is the tool used to newly create or edit the ladders and messages.

[Start up method]

(1) The PLC development software will start up by inputting command "plc4b". Refer to section 5 for
explanations on each screen.

A:\>plc4b

(2) When the PLC development software starts, the title screen will appear.
The initial screen of the PLC development software will appear when the PF10 key is pressed on
any screen while PLC4B is running.

[Ending method]

(1) Press PF10 on the keyboard, and display the initial screen of the PLC development software.

(2) Press PF8 ( 8.END ). The prompt (A:\>) will appear on the screen, and the program will return
to the normal MS-DOS mode.

− 14 −
5. Registering the Edit File

5. Registering the Edit File


Register the file name and estimated file size when creating a new ladder circuit or message.

[Basic operation]

Set each necessary setting section


7.FILE → 2.WRITE → number file name and size. →

[Operation procedure]

(1) The PLC FILE screen will display when menu 7.FILE is pressed.
(2) The setting section will appear when 2.WRITE is pressed.
(3) Set the ladder file name and estimated file size, and message 1 file name and estimated file size.
The file name must be a maximum of 10 characters.
(Note) If the file name exceeds 10 characters the last 10 characters will be valid.

File Name (Note 3)

PLC FILE

LADDER BYTE
MESSAGE 1 Size scheduled
for ladder usage
(Unit: byte)
(Note 1)

Used size
(Unit: byte)
(Note 2)

Unit: K byte

NAME SIZE KBYTE

WRITE Setting section

(Note 1) The file name and size scheduled for ladder usage is set in "# LADDER".
The size scheduled for ladder usage is a maximum of 16 Kbytes (16384 bytes).
One ladder step: 4 bytes
(Note 2) Only the file name is set in "# MESSAGE 1".
When various messages are registered with the initial setting on the message creation size,
the size will be displayed automatically.
(Note 3) Set the file that exists in the same directory as PLC4B.EXE or the name of the file created in
the same directory here.

− 15 −
6. Creating a Ladder Circuit

6. Creating a Ladder Circuit


The method for editing the sequence program using the ladder circuit is explained here.
A list of ladder circuit editing functions is shown below.

Function item
Circuit write Creation of new circuit
Correction of existing circuit
Addition of circuit block
Circuit read Circuit read with step number
Circuit read with device number
Circuit read with contact or coil number
Circuit read with command
Final circuit read with END command
Circuit insertion Insertion in circuit symbol units
Circuit delete Delete of circuit block
Delete in circuit symbol units

− 16 −
6. Creating a Ladder Circuit

6.1 Creating a New Circuit


This operation is used to create a new ladder circuit or to erase an existing ladder circuit.

[Basic operation]
4.LADDER → 2.CIRCUT → 2.WRITE → 9.SET → Y → →

→ (Writing operation) → INS → 5.CONVT →

[Operation procedure]
(1) Register the edit file before creating a new circuit.
(2) Press function menu 4.LADDER and the sub menu will display.
(3) Press 2.CIRCUT , 2.WRITE , 9.SET and the following interactive screen will display.
(4) Press Y , to create a new circuit or erase an existing circuit. Press 1.READ for other
applications.
(5) Only the two vertical lines on both sides and step number 0 will display if Y , are pressed.
(6) Start the writing operation
(1) Write the program from the cursor position using the circuit symbols (menu keys) and
alphanumeric keys.
(2) When approximately one screen worth of program is written, press INS 5.COUNT , .
Note) A maximum of two screens worth of program can be created at once, but INS
5.CONVT , should be pressed after one screen if possible.
The final object will not be created on the screen if INS 5.CONVT , are not
pressed after the circuit is completed.
(3) The message “COMPLETED” will appear on the screen when INS 5.CONVT , are
pressed and the conversion is completed.

(Example)
The following screen will display when the following are pressed:

4.LADDER → 2.CIRCUT → 2.WRITE → 9.SET

PLC

CLEAR MEMORY FOR NEW PROGRAM?

∗ YES = “Y” “RETURN”


∗ NO = SELECT READ

MODE CIRCUT MENU WRITE SET DATA

Note) The existing circuits will all be deleted when Y are pressed.

− 17 −
6. Creating a Ladder Circuit

The following screen will display when Y → are pressed. Perform the writing operation on this
screen.

PLC

Memory ( 0/ 4096 steps)

MODE CIRCUT MENU WRITE SET DATA

− 18 −
6. Creating a Ladder Circuit

6.2 Modification of Existing Circuit


An existing sequence circuit can be modified.

[Basic operation]

(Read out circuit) → INS 2.WRITE → ↑ → (Input commands) → INS 5.CONVT →



[Operation procedure]
(1) Read out the circuit to be modified with the read procedure.
(2) When 2.WRITE is pressed, the circuit block at the cursor position will display and the following
blocks will disappear.
¡ To modify a circuit block other than the one displayed on the top of the screen, move the
cursor to the top of the target block and press 2.WRITE . That circuit block will display on the
top line and the other blocks will disappear.
(3) Move the cursor to the circuit position to be modified and input the commands.
(Use ↑ ↓ ← → keys)
(4) Always press INS 5.CONVT after modifying the circuit.
¡ The message “COMPLETED” will appear when the key is pressed, and the circuit will
display after modification.

POINT
(1) When the existing circuit where the step number is changed is modified, the step numbers
of the existing program and the CJ command jump destination will also be automatically
changed.

(Example) To change coil Y10 to Y35.

2.CIRCUT → 1.READ → 9.SET → 2 → 0 → → INS

Read step No.20

2.WRITE → → → 5. → Y → 3 → 5 → INS 5.CONVT →

Change Y10 to Y35

Change to Y35

− 19 −
6. Creating a Ladder Circuit

6.3 Adding a Circuit Block


This operation is used to add a circuit to the existing sequence circuits.

[Basic operation]

(Circuit read operation) → INS 2.WRITE → + → INPUT → (Command input) → INS 5.CONVT →

[Operation procedure]
(1) Read the circuit to where a circuit block is to be added with the read operation.
(2) When 2.WRITE is pressed, the circuit block at the cursor position will display and the following
blocks will disappear.
¡ To add a circuit block to the block other than the one displayed on the top of the screen, move
the cursor to the top of the target block and press 2.WRITE . That circuit block will display on
the top line and the other blocks will disappear.
(3) Press + and the top circuit block will disappear, and the next step number and vertical lines
of the circuit block will display.
(4) Write the additional circuit block by inputting the commands.
(5) Press INS 5.CONVT after adding the circuit.

(Example) Adding circuit blocks X5 and Y15 to step No. 50

2.CIRCUT → 1.READ → 9.SET → 5 → 0 → → (continued on the next page)

Read step No. 50

− 20 −
6. Creating a Ladder Circuit

INS → 2.WRITE → + → →

Set the write area after the read circuit block.

→ 1. → X → 5 → → 5. → Y → 1 → 5 → INPUT →

Write X5 and Y15


INS → 5.CONVT →

POINT

(1) When a circuit block is inserted or added, the following program step numbers and CJ
command, etc., jump destinations will be automatically changed.

− 21 −
6. Creating a Ladder Circuit

6.4 Reading the Circuit

6.4.1 Reading the circuit with step number

This operation is used to read the circuit by designating a step number.

[Basic operation]

2.CIRCUT → 1.READ → 9.SET → STEP NO. →

[Operation procedure]

(1) Press 2.CIRCUT , 1.READ , 9.SET , STEP NO. , and one screen worth of data
following the designated number will display.
¡ Even if in the middle of the designated step number command, the circuit will be displayed
from the start of that command.
(2) Press - and the circuit on the previous screen will display. The circuit on the next screen will
display by pressing + . The succeeding or preceding screens can be displayed by pressing
continuously. “LADDER END” will display in the message display section when the last circuit
block is displayed.
Pressing after - will function in the same manner.
Note) Displaying a screen by pressing - will take three times longer than pressing
+ .
(3) If a circuit block is divided over two screens, use the ↓ key to move the cursor to the bottom of
the screen. Press the ↓ key continuously to scroll the screen one line. Hold down the cursor key
until the whole block appears on the screen.
The screen can be scrolled by pressing ↓ or ↑ even if the circuit block is not split between
screens. Note that pressing the ↓ key will scroll the screen but will not display the next circuit.

(Example 1) To read the step No. 100 program

2.CIRCUT → 1.READ → 9.SET → 1 → 0 → 0 →


Step No.

− 22 −
6. Creating a Ladder Circuit

(Example 2) When step No. 100 program is read, the cursor is moved to the bottom of the screen
with ↓ , and ↓ is pressed four times and ↑ four times.

The next circuit is not


displayed.

Note) If the read circuit is split, the remaining screen can be displayed with the ↓ key, but the
next circuit cannot be displayed. The circuit before the read circuit, step No. 100 above,
also cannot be displayed with ↑ .

− 23 −
6. Creating a Ladder Circuit

(Example 3) When step No. 100 program is read, and + → → → - → →


are pressed.

This section is not displayed


with this method.

− 24 −
6. Creating a Ladder Circuit

6.4.2 Reading the circuit with device number

This operation is used to read the circuit containing a designated device number.

[Basic operation]

2.CIRCUT → 1.READ → DEVICE NO. →

[Operation procedure]

(1) Press 2.CIRCUT , 1.READ , DEVICE NO. , and the circuit block containing the
designated device number will appear.
If there are several circuit blocks with the designated device, the screen with the smallest step
number will display first. If is pressed again, the circuit with the next smallest step number
will be displayed under the currently displayed block.
If the screen is full and is pressed, the top circuit block will disappear and another circuit
block will be added to the bottom.
(2) If the device number is changed during the display, that circuit block will be added to the bottom
of the currently displayed block.
(3) If reading is attempted after all blocks with the corresponding device number have been
displayed, the message “PROG NOT FOUND” will appear.

(Example) Read the circuit block containing output device Y30.

2.CIRCUT → 1.READ → Y → 3 → 0 →

− 25 −
6. Creating a Ladder Circuit

6.4.3 Reading the circuit with contact or coil number

This operation is used to read a circuit containing a designated contact or coil number.

[Basic operation]

2.CIRCUT → 1.READ → CIRCUIT SYMBOL → DEVICE NO. →

[Operation procedure]
(1) Press 2.CIRCUT , 1.READ , CIRCUIT SYMBOL , ( 1. , 2. ,
3. , 4. , 5. ) → DEVICE NO. and .
The circuit block containing the designated contact or coil number will display.
If several circuit blocks contain the designated contact or coil number, the circuit block with the
smallest step number will display. Press again to display the circuit with the next smallest step
number under the currently displayed circuit block.
If the screen is full and is pressed, the top circuit block will disappear and another circuit
block will be added to the bottom.
(2) If the contact or coil number is changed during the display, that circuit block will be added to the
bottom of the currently displayed block.
(3) If reading is attempted after all blocks with the corresponding contact or current number have
been displayed, the message “PROG NOT FOUND” will appear.
(4) Contact A will be read if 1. DEVICE NO. is pressed and a device number is set
when searching with a contact, and contact B if 2. DEVICE NO. is pressed and a
device number is set.
(5) The OUT command will be read out by pressing 5. and setting a device number.

(Example) Read the circuit block containing contact A with device No. X10.

2.CIRCUT → 1.READ → 1. → X → 1 → 0 →
Specified contact A with device No.X10.

− 26 −
6. Creating a Ladder Circuit

6.4.4 Reading the circuit with command

This operation is used to read a circuit containing a designated command.

[Basic operation]

1.CIRCUT → 1.READ → 6. → COMMAND →

[Operation procedure]

(1) Press 2.CIRCUT , 1.READ , 6. , COMMAND , and the program with the
designated command will display from the circuit block with the smallest step number. The device
number designation is insignificant.
If is pressed again, the circuit with the next smallest number will display under the currently
displayed block.
(2) If the command is changed during the display, that block will display under the currently displayed
block.
(3) If the screen is full and is pressed, the top circuit block will disappear and another circuit
block will be added to the bottom. (Refer to Example 2)
(4) If reading is attempted after all corresponding blocks have been displayed, the message “PROG
NOT FOUND” will appear.

(Example 1) Read the circuit block with the PLS M80 command. (M80 is insignificant here.)

2.CIRCUT → 1.READ → 6. → P → L → S → M → 8 → 0 →

− 27 −
6. Creating a Ladder Circuit

(Example 2) Read the circuit block with the MOV command.

2.CIRCUT → 1.READ → 6. → M → O → V →

Press after
the screen is full.

− 28 −
6. Creating a Ladder Circuit

6.4.5 Reading the circuit with the END command

This operation is used to read the circuit block immediately before the block with the END command.

[Basic operation]

2.CIRCUT → 1.READ → 6. → E → N → D →

[Operation procedure]

(1) Press 2.CIRCUT , 1.READ , 6. , E , N , D , and then .


The circuit block immediately before the one with the END command will display.

(Example) Read the last circuit block.

2.CIRCUT → 1.READ → 6. → E → N → D →

Memory (6040/8192 steps) LADDER END

− 29 −
6. Creating a Ladder Circuit

6.4.6 Circuit read functions

Example of displayed
Read method Operation example Remarks
circuit
Reads the circuit block
with the designated step
Step number 9.SET 2 8 and succeeding steps.

Reads the circuit block


Y 3 containing the
designated device
number regardless of the
M 1 0 circuit symbols.

P 1 0
:
Device :
number :

When reading a circuit


T 1 5 block by designated T or
C, the circuits with
“–< >–” cannot be read.
C 3 “–<T15 K15>–“, etc.,
cannot be read.

Reads each circuit


1. Y 3 symbol separately.
The combination of
Circuit symbol circuit symbol “ –[ ]–”
and device number
2. Y 3 cannot be used for
reading.
and device
number 5. Y 3

Reads the circuit blocks


5. T 1 5 of the designated timer
or counter coil.

Reads the blocks with the


MOV command
regardless of the device
6. M O V numbers.
Circuit symbol
and command
code

Reads the last circuit


block in the sequence.
6. E N D

− 30 −
6. Creating a Ladder Circuit

6.5 Inserting a Circuit

6.5.1 Inserting with circuit symbol units

This operation is used to insert the circuit in circuit symbol units.

[Basic operation]

(Circuit read operation) → 3.INSERT → ↑ → (Command Input) → INS → 5.CONVT →




[Operation procedure]

(1) Using the circuit read operation display the block to where the circuit symbol is to be inserted.
(2) Press 3.INSERT and all circuit blocks other than the one at the cursor position will disappear.
• To insert a circuit symbol into a circuit block other than the one displayed at the screen top,
move the cursor to the beginning of the target block and then press 3.INSERT . The
designated circuit block will move to the top of the screen, and all other blocks will disappear.
(3) Move the cursor to the position where the symbol is to be inserted using the cursor keys, and then
input the command.
(Note) Inputting the data at the top of the screen may not be possible depending on the system.
An operation error will occur if this is attempted in such a system, and "OPERATING
ERROR" will display in the message display section.
(4) Always press 5.CONVT , after inserting the circuit.

• “COMPLETED” will display in the message display section when is pressed and the
updated circuit will display.

POINT

(1) When insertion or addition is performed, the step numbers of the succeeding program and
the CJ command jump destinations will also be changed automatically.

(Example) Read step No. 18 and insert contact B with device No. X8 as an AND circuit after the
contact with device No. Y15.

2.CIRCUT → 1.READ → 9.SET → 1 → 8 → → INS


Read step No.18

3.INSERT → → → 2. → X → 8 → → INS → 5.CONVT →

Insert contact B with device No. X8 after Y15

− 31 −
6. Creating a Ladder Circuit

Examples of insertion and addition of other circuit symbols are shown below.

(1) Inserting a contact


(a) 3.INSERT → → → 1. → X → 1 → 0 →

<Before key input> <After key input>


X10 M10

X10 X1

X10 X3

X10 X1 X3

X4
Eight contacts

(b) 3.INSERT → 3. → X → 1 → 0 →

<Before key input> <After key input>

(2) Inserting a horizontal bar


3.INSERT → 8. −−−− →

<Before key input> <After key input>

− 32 −
6. Creating a Ladder Circuit

(3) Inserting a vertical bar


3.INSERT → 7. | →

<Before key input> <After key input>

− 33 −
6. Creating a Ladder Circuit

6.6 Deleting a Circuit


6.6.1 Deleting a circuit block

This operation is used to delete the sequence circuits one at a time.

[Basic operation]
(Circuit read operation) → 4.DELETE → 5. →
6.
[Operation procedure]
(1) Display the circuit to be deleted with the read operation.
(2) Press 4.DELETE and all circuit blocks other than the one at the cursor position will disappear.
• To delete a circuit block other than the one displayed at the screen top, move the cursor to the
beginning of the target block and then press 4.DELETE . The designated circuit block will
move to the top of the screen.
(3) Press 5. or 6. . “DELETE 1-CIRCUIT” will display in the message
display section. Press the key again to delete the designated block.
• Even if the target circuit block contains the commands for the output device, the block can be
deleted by pressing 4.DELETE , 5. or 6. .

Note: 5.CONVT , do not need to be pressed after deleting the circuit block.

POINT

(1) When deletion is performed, the step numbers of the succeeding program and the CJ
command jump destinations will also be changed automatically.

(Example) Read step No. 25 and delete the circuit block containing it.

2.CIRCUT → 1.READ → 9.SET → 2 → 5 → → INS → 4.DELETE → 5. →


Read step No.25 Delete circuit block

Read step No.25

Display after pressing

4.DELETE 5.

− 34 −
6. Creating a Ladder Circuit

(Example) To delete the faulty circuit if a “LADDER ERROR”, etc., occurs when 5.CONVT ,
are pressed after creating the circuit, or to delete a circuit block before pressing
5.CONVT , .

Circuit where “LADDER


ERROR” has occurred.
(Step numbers are not
assigned.)

(Circuit edit operation) → 5.CONVT → “LADDER ERROR”


LADDER ERROR occurs in the Y25 circuit block

↓ → INS 4.DELETE → 5. → “DELETE 1-CIRCUIT (DISP)” → → INS → 5.CONVT →

Move the Delete Y25 circuit block Convert the Y26 circuit block
cursor down

(Note) “DELETE 1-CIRCUIT” will display in the message display section when a normal circuit
block is deleted. “DELETE 1-CIRCUIT (DISP)” will display when a circuit block with no step
number assigned is deleted.

− 35 −
6. Creating a Ladder Circuit

6.6.2 Deleting a circuit symbol

This operation is used to delete a sequence circuit in circuit symbol units.

[Basic operation]

(Circuit read operation) → 4.DELETE → ↑ → → → 5.CONVT →




[Operation procedure]
(1) Display the circuit block with the circuit symbol to be deleted with the read operation.
(2) Press 4.DELETE and all circuit blocks other than the one at the cursor position will disappear.
• To delete a circuit block other than the one displayed at the screen top, move the cursor to the
beginning of the target block and then press 4.DELETE . The designated circuit block will
move to the top of the screen.
(3) Move the cursor to the circuit symbol to be deleted with the cursor keys, and press
1. , 2. , 3. , 4. , 7. –– or 8. | and then
press to delete it.
(4) Always press 5.CONVT , after deleting the circuit.
• "COMPLETED" will display in the message display section when is pressed and the
updated circuit will display.

POINT

(1) When deletion in circuit symbol units is performed, the step numbers of the succeeding
program and the CJ command jump destinations will also be changed automatically.

(Example) Read step No. 12 and delete X3.

2.CIRCUT → 1.READ → 9.SET → 1 → 2 → → INS


Read step No. 12

4.DELETE → → → ↓ → 3. → → INS 5.CONVT →

Delete X3

− 36 −
6. Creating a Ladder Circuit

Examples of deletion of other circuit symbols are shown below.


(1) Deleting a contact

(a) 4.DELETE → → → → → or 4.DELETE → → → → →

<Before key input> <After key input>

(Note) 5.CONVT is invalid in this circuit.

(b) 4.DELETE → → → ↓ → 3. →

<Before key input> <After key input>

(c) 4.DELETE → → → ↓ → 3. →

<Before key input> <After key input>

(2) Deleting a vertical line

(a) 4.DELETE → → → 7. | →

<Before key input> <After key input>

(Note) 5.CONVT is invalid in this circuit.

− 37 −
6. Creating a Ladder Circuit

6.7 Circuit Extension Function


The circuit extension function is used to create a ladder circuit that is wider than eight contacts and one
coil (equivalent to nine contacts.) The circuit extension function operation method and specifications are
explained below.

CAUTION
(1) When 2.WRITE is pressed, a maximum of eight returns can be created if there is
one extended line. When 3.INSERT is pressed a maximum of one return can be created.

The ladder circuit display buffers are 18 stages long and nine contacts (including a coil) wide. The
section not displayed on the screen is displayed with the cursor keys ↑ ↓ .

9 stages × 2 buffers

− 38 −
6. Creating a Ladder Circuit

6.7.1 Examples of extension circuit operation

(1) Example of writing single return

Write

Write

A maximum of six returns can be created if there is one extended line in the same manner.
• Circuit symbols that can be extended during writing :

• Circuit symbols that cannot be extended during writing :

If any of these symbols are used, an “OPERATING ERROR” will occur when is pressed.

− 39 −
6. Creating a Ladder Circuit

(2) Example of writing two or more extended lines

Write

Write

Write(vertical line)

This example is completed by pressing


INS 5.CONVT .

− 40 −
6. Creation of Ladder Circuit

(3) Example of writing function command into return section

Write − (horizontal line)

Write

This example is completed by


pressing INS 5.CONVT .

When writing a function command into the return section, extend with a − (horizontal line) first,
and then write in the function command. An “OPERATING ERROR” will occur if the function
command is written in directly.

− 41 −
6. Creation of Ladder Circuit

(4) Example 1 of inserting a single extended line

Insert

Insert

M6
This example is completed by
pressing INS 5.CONVT

M7 M8

• The insertion function inserts a contact etc., at the cursor position.


If nine contacts (including a coil) are exceeded, the line will be extended as shown above.
However, only one return can be created with the insertion operation.
• Circuit symbols that can be extended during insertion :

• Circuit symbols that cannot be extended during insertion :

If any of these symbols are used, an “OPERATING ERROR” will occur when is pressed.

− 42 −
6. Creation of Ladder Circuit

(5) Example 2 of inserting a single extended line (when more than one coil exists)

Insert

This example is completed by


pressing INS 5.CONVT .

− 43 −
6. Creation of Ladder Circuit

(6) Example of inserting when a function command exists in the coil section

Insert

Insert

Insert

This example is completed by


pressing INS 5.CONVT .

Note) Insertion is not possible if a function command handled as a contact such as =, >, or < exists
in the return section. An “OPERATING ERROR” will occur if insertion is attempted.

Insert

− 44 −
6. Creation of Ladder Circuit

(7) Example 1 of inserting when there are two or more extended lines

Insert

This example is completed by


pressing INS 5.CONVT .

− 45 −
6. Creation of Ladder Circuit

(8) Example 2 of inserting when there are two or more extended lines

Insert

Insert

This example is completed by


pressing INS 5.CONVT .

− 46 −
6. Creation of Ladder Circuit

6.7.2 Error messages

Insert

An “OPERATING ERROR” occurs.

Insert

A “CIRCUIT CONTINUATION ERROR” or “OPERATING ERROR” occurs.


Only one return can be created when two or more lines are extended.

Insert

“CIRCUIT CONTINUATIVE SIZE OVER” occurs. The maximum number of returns is six.

− 47 −
6. Creation of Ladder Circuit

Insert

10 stages × 2 = 20 stages

“LADDER OVERFLOW” occurs. The maximum number of stages after extension is 18.

A “CIRCUIT CONTINUATION ERROR” will


occur if during conversion if a vertical branch
exists at the return start position.
Program as shown below:

A vertical branch is possible at this position.

− 48 −
6. Creation of Ladder Circuit

6.7.3 Relation of number of returns and circuit length

The relation between the number of returns and the maximum length of the circuit that can be created is
as shown below.

Number of returns 0 1 2 3 4 5 6 7 8
Circuit length (stages) 18 11 7 5 4 3 3 2 2

A “LADDER ERROR” will occur if the limits are exceeded.

Example)

The circuit length is up to


seven lines when there are
two returns.

CAUTION
Max. 18 stages

− 49 −
7. Messages

7. Messages
Sequence programs as well as message data used for the CNC message function and the ladder circuit
printing function can be created with the PLC development software. The messages that can be
created are as follow:
(1) Alarm message (ALARM MESS)
(2) Operation message (OPERATE MESS)
(3) PLC switch name(PLC SW MESS)
(4) Device message (DEVICE MESS)
(5) Coil message (COIL MESS)
(6) Comment message (COMMENT MESS)

The functions of each message are explained below.

(1) ALARM MESS


The alarm messages displayed on the CNC DIAGNOSIS screen are created as character strings.
Alphanumeric, kana and kanji characters can be used. Two half-byte characters are used to
display one kanji character.
The maximum length of an ALARM MESS is 32 characters, and a maximum of 256 messages can
be registered. However, the limits will depend on the CNC memory size.

(2) OPERATE MESS


The operator messages displayed on the CNC DIAGNOSIS screen are created as character
strings.
Alphanumeric, kana and kanji characters can be used. Two half-byte characters are used to
display one kanji character.
The maximum length of an OPERATE MESS is 60 characters, and a maximum of 256 messages
can be registered. However, the limits will depend on the CNC memory size.

(3) PLC SW MESS


The switch names displayed on the CNC DIAGNOSIS screen are created as character strings.
Alphanumeric, kana and kanji characters can be used. Two half-byte characters are used to
display one kanji character.
The maximum length of an PLC SW MESS is 14 characters, and a maximum of 32 switches can
be registered. However, the limits will depend on the CNC memory size.

(4) DEVICE MESS


Create a contact name to be printed with the device numbers during printing of the ladder circuit.
The names are created as character strings.

Device number

Contact names

Alphanumeric, kana and kanji characters can be used. Two half-byte characters are used to
display one kanji character.
The maximum length of a DEVICE MESS is 6 characters, and a maximum of 1000 device names
can be registered. However, the limits will depend on the CNC memory size.

− 50 −
7. Messages

(5) COIL MESS


Create a coil name to be printed with the device numbers during printing of the ladder circuit. The
names are created as character strings.

Coil name

Alphanumeric, kana and kanji characters can be used. Two half-byte characters are used to
display one kanji character.
The maximum length of a COIL MESS is 18 characters, and a maximum of 2700 coil names can
be registered. However, the limits will depend on the CNC memory size.

(6) COMMENT MESS


Create a tool name (8 alphanumeric characters × 5) to display on the CNC TOOL REGISTRATION
screen and a character string to display the load type and scale of the load meter display.
Alphanumeric, kana and kanji characters can be used. Two half-byte characters are used to
display one kanji character.
The maximum length of a COMMENT MESS is 60 characters, and a maximum of 100 comments
can be registered. However, the limits will depend on the CNC memory size.
Note) The number of comment characters will differ according to the application such as the tool
name being 8 characters and the comment for the load meter display 60 characters. The
number of characters will be determined by the longer comment. Thus the number of
characters is normally 60.

CAUTION

Semi-graphics cannot be used for messages created on the personal computer. If semi-
graphics are required for the load meter, etc., leave that line blank, and create a message
including the semi-graphics with the CNC onboard.
An odd number of characters must not be used for one message as the CNC may not
function correctly.

− 51 −
7. Messages

7.1 Initial
Select the initial screen and set the message size before creating a new message. Messages cannot be
created if this is not performed. The data length must always be an even number.

[Basic operation]

1.MSSG → 7.INIT → 2.WRITE → (Set data size) → 5.CONVT → Y →

[Operation procedure]

(1) Select 1.MSSG , and then 7.INIT .


(2) Press 2.WRITE and the setting section will display.
(3) Set the used size and data length for each message.
(4) Press 5.CONVT . The message “CHANGE SIZE (Y/N)” will appear, so press Y .
"COMPLETED" will display when conversion is completed.
Note) Conversion is performed only when each message size is changed.
Index

PLC MESSAGE TABLE

USED SIZE LENGTH


1.ALARM MESS ( 0/ 0) ( 32 BYTE )
2.OPERATE MESS ( 0/ 0) ( 60 BYTE )
3.PLC SW MESS ( 0/ 0) ( 14 BYTE )
4.DEVICE MESS ( 0/ 0) ( 6 BYTE )
5.COIL MESS ( 0/ 0) ( 18 BYTE )
6.COMMENT MESS ( 0/ 0) ( 60 BYTE )
7.CONTROL CODE (0)
Index number
Number of messages
Data length

#( ) DATA ( ) ( BYTE)
Setting section

MODE INIT MENU CONVT

2.WRITE 5.CONVT SUBMENU MENUE

− 52 −
7. Messages

The maximum number of messages and maximum length of each message are shown below.

Max. number
Item of messages Max. data length Remarks

ALARM The alarm message data memory size is


1 256 32 bytes/message set.
MESS
OPERATE The operator message data memory
2 MESS 256 60 bytes/message size is set.

PLC SW The PLC switch data memory size is set.


3 32 14 bytes/switch
MESS Normally set this to 14.
The memory size of the ladder diagram
contact comments such as
DEVICE
4 MESS 1000 6 bytes/contact
is set.

The memory size of ladder diagram coil


comments such as
5 COIL MESS 2700 18 bytes/coil
is set.

The memory size of comment data for


tool registration, load meter, etc. is set.
6 COMMENT 100 60 bytes/comment Up to 60 characters can be used for the
MESS load meter comment, so normally set
this to 60.

CONTROL Not used.


7
CODE — — Set to 0.

− 53 −
7. Messages

7.1.1 Example of settings

PLC MESSAGE TABLE

USED SIZE LENGTH


1.ALARM MESS ( 0/ 0) ( 32 BYTE )
2.OPERATE MESS ( 0/ 0) ( 60 BYTE )
3.PLC SW MESS ( 0/ 0) ( 14 BYTE )
4.DEVICE MESS ( 0/ 0) ( 6 BYTE )
5.COIL MESS ( 0/ 0) ( 18 BYTE )
6.COMMENT MESS ( 0/ 0) ( 60 BYTE )
7.CONTROL CODE ( 0 )

#( ) DATA ( ) ( BYTE)

MODE INIT MENU WRITE

2.WRITE 5.CONVT SUBMENU MENUE

The above screen will appear when the 7.INIT menu


is selected, and the message file set with the edit file
ò
is searched for but not found. PLC MESSAGE TABLE

USED SIZE LENGTH


For example, perform the following to set USED 1.ALARM MESS ( 0/ 0) ( 32 BYTE )
SIZE in ALARM MESS : 2.OPERATE MESS ( 0/ 0) ( 60 BYTE )

2.WRITE 1 → → 2 5 6 → 3 2
3.PLC SW MESS ( 0/ 0) ( 14 BYTE )
4.DEVICE MESS ( 0/ 0) ( 6 BYTE )
5.COIL MESS ( 0/ 0) ( 18 BYTE )
Note) This can be omitted as the default values 6.COMMENT MESS ( 0/ 0) ( 60 BYTE )
are set in the data length. 7.CONTROL CODE ( 0 )

Set the numbers in USED SIZE in OPERATE MESS

ò
to COMMENT MESS are required.

Next, register this data into a file. #( ) DATA ( ) ( BYTE)

The display shown on the right will appear when MODE INIT MENU CONVT
5.CONVT is pressed. The size can be changed or 2.WRITE 5.CONVT SUBMENU MENUE

registered by pressing Y .

− 54 −
7. Messages

The numbers in the USED SIZE sections are as follows:

( Number of messages / Number of registered messages )

Number of registered messages : The number of messages registered in the message table.
Number of messages : The number of messages that can be registered.

The number of messages and number of registered messages are displayed in the “MEMORY ( / )” of
each message create screen after this.

CAUTION

If the data length per block of each message is changed, the message data that
had been created previously will be invalid.
The message “SELECT INIT!” will appear if an ALARM or OPERATOR
MESSAGE screen, etc., is selected without setting the number of messages or
data length in the initial setting.

− 55 −
7. Messages

7.2 Writing
The method for writing each message is explained in this section.

[Basic operation]

1.MSSG → 1.ALARM → (Read) → 2.WRITE → (Write data) → MENUE


2.OPERAT
3.PLC SW → 5.CONVT →
4.DEVICE
5.COIL
6.COMMENT

[Operation procedure]
(1) Press 1.MSSG , select each message menu, and then read.
(2) Press 2.WRITE and the setting section will display.
(3) Press MENUE after writing the message data and then press 5.CONVT , .
"COMPLETED" will display on the top of the screen when the conversion is completed.

Examples of operation for each message are given on the following pages.

− 56 −
7. Messages

7.2.1 ALARM MESS and OPERATE MESS

[Operation example] Writing ALARM MESS “EMERGENCY”.


(1) The following screen will display when 1.MESS 1.ALARM 1.READ 1 2.WRITE
are pressed.
ALARM MESS
1 ( ) ( )
2 ( ) ( )
3 ( ) ( )
4 ( ) ( )
5 ( ) ( )
6 ( ) ( )
7 ( ) ( )
8 ( ) ( )
9 ( ) ( )
10 ( ) ( )
11 ( ) ( )
12 ( ) ( )
13 ( ) ( )
14 ( ) ( )

Index number
Data register number (D)
Message
#( ) ( ) ( )
MEM ( / 100 STEP)

MODE ALARM MENU WRITE

(2) The following data will display when 1 → 0 → E M E R G E N C Y


are pressed.
ALARM MESS
1 ( 0 ) ( EMERGENCY )
2 ( ) ( )
3 ( ) ( )
4 ( ) ( )
5 ( ) ( )
6 ( ) ( )
7 ( ) ( )
8 ( ) ( )
9 ( ) ( )
10 ( ) ( )
11 ( ) ( )
12 ( ) ( )
13 ( ) ( )
14 ( ) ( )

#( ) ( ) ( )
MEM ( / 100 STEP)

MODE ALARM MENU WRITE

− 57 −
7. Messages

(3) The message data has not been transmitted to the file yet.
Press MENU 5.CONVT .
"COMPLETED" will display when the operation is completed correctly.

~ ~
~ ~

#( ) ( ) ( )
MEM ( / 100 STEP) COMPLETED

MODE ALARM MENU WRITE

The message data has been transmitted to the file.

(4) The data register number is 0 here. If 1 to 1023 is input, an identification number can be
displayed after the message when the ALARM MESS is displayed on the CNC.
For example, if 1 is input, the data register (D) 1 contents are displayed after the message. If the
D1 contents are 3, 3 will display. The F or R method can be used for the ALARM MESS display.
To use F, start the index from 0. To use R, start the index at 1. Note that even if a message with
index 0 is created, the message cannot be displayed in the R method.

(5) The OPERATE MESS setting method is the same as the ALARM MESS setting method but only
the R method can be used. A message created with index 0 will be insignificant.
Refer to the PLC Programming Manual (Ladder Section) for the specifications of ALARM MESS
and OPERATE MESS.
The machine name and title used during printing can also be creating using the operator
messages.

9000 Machine name start number Used during printing


9001 Machine name end number Used during printing
9002 Title display start number Used during printing
9003 Title display end number Used during printing

− 58 −
7. Messages

Example of title display and machine name printing

FILE MESSAGE1

.....................................................................................................................................
....
STANDARD SEQUENCE DIAGRAM .
. .
. ;98-08-18 BY.MITSUBISHI .
. .
. .
.....................................................................................................................................
....
.
.
......... MODIFY MEMO ...........
.
.
.
.
.
..

Machine name printout ––––– MELDAS 64 SERIES LADDER


(Printed on every page) BND-400W000-A0 '98-08-18
MACHINE TYPE ABC100

− 59 −
7. Messages

Example of OPERATE MESS used for title display and machine name printing

0 (9000) (MELDAS 64 SERIES LADDER )


Machine name message
1 (9000) (BND-400W000-A0 '98-08-18 ) (Max. of three lines are valid)
2 (9001) (MACHINE TYPE ABC100 )
3 (9002) (...................................................................................)
4 (9002) (. .)
5 (9002) (. STANDARD SEQUENCE DIAGRAM .)
6 (9002) (. .)
7 (9002) (. ;98-08-18 BY.MITSUBISHI .)
8 (9002) (. .)
9 (9002) (................................................................................)
10 (9002) (. ) Title display message
11 (9002) (. ) (The number of lines is not limited)
12 (9002) (..... MODIFY MEMO . )
13 (9002) (. )
14 (9002) (. )
15 (9002) (. )
16 (9002) (. )
17 (9002) (. )
18 (9003) (. )
Set 9000 to 9003 Maximum of 60 characters

− 60 −
7. Messages

7.2.2 PLC switches

[Operation example] Assign “MST_LOCK” to PLC switch 1.

(1) Press 1.MSSG → 3.PLC SW → 1.READ 0 2.WRITE , and the following setting
section will display.
#( ) ( )
Message
Index number

(2) Input 0 → M S T SP L O C K

#( 0) (MST_LOCK )

(3) Press and the following display will appear.

PLC SWITCH
# 1 ( MST LOCK )
2 ( )
3 ( )
4 ( )
5 ( )
6 ( )
7 ( )
8 ( )
9 ( )
10 ( )
11 ( )
12 ( )
13 ( )
14 ( )

#( ) ( )
MEM ( / 32 STEP)

MODE PLC SW MENU WRITE

(4) Execute MENUE and press 5.CONVT . "COMPLETED" will display and the message
writing will be completed. The PLC switch number displayed on the CNC will be the index
number incremented by one.

CAUTION
To use the PLC switch name file created here with the MELDASMAGIC MMI software (option),
a conversion must be made with the "PLC Switch Conversion Tool (CNVPLCSW)" found on
the "Utility disk". Refer to the "Utility Disk Instruction Manual" for details on how to use this
conversion tool.

− 61 −
7. Messages

7.2.3 Device (Contact) comment and coil comment

[Operation example] Write device “M100” and comment “SP.CW” in contact 10.

(1) Press 1.MSSG → 4.DEVICE → 1.READ → 1 0 2.WRITE , and the following


setting section will display.
#( ) ( ) ( ) ( )
Contact comment or coil comment
Device number
Device
Index number

(2) Input 1 0 → M → 1 0 0 → S P . C W

#( 10) (M) ( 100) ( SP. CW)

(3) Press and the following will display.

PLC CONTACT COMMENT


# 10 ( M ) ( 100 ) (SP. CW )
11 ( ) ( ) ( )
12 ( ) ( ) ( )
13 ( ) ( ) ( )
14 ( ) ( ) ( )
15 ( ) ( ) ( )
16 ( ) ( ) ( )
17 ( ) ( ) ( )
18 ( ) ( ) ( )
19 ( ) ( ) ( )
20 ( ) ( ) ( )
21 ( ) ( ) ( )
22 ( ) ( ) ( )
23 ( ) ( ) ( )
24 ( ) ( ) ( )

#( ) ( )
MEM ( 100 / 1000 STEP)

MODE DEVICE MENU WRITE

(4) The coil comment can be set in the same manner as the contact comment.

Note)

The (A) comment is the contact comment.


The (B) comment is the coil comment.

− 62 −
7. Messages

7.2.4 Comment

[Operation example]

(1) Press 1.MSSG 6.COMMENT 1.READ 0 2.WRITE and the following setting
section will display.
#( ) ( ) ( ) ( )
Message
Device number
Device
Index number

(2) Set the device as 1, the device number as 0 and create a message for the TOOL
REGISTRATION screen. A maximum of five steps with a maximum of eight characters can be
created.
The CNC will display only the first five steps even if more than five steps are created.

(3) Set the device as 2, the device number as 0 or 1 and create a message for the load meter. The
load meter comment is divided into the title, scale and unit, etc., and created.
Comment
No. Device Device No. Details
display length
Device 1 comment is read from top to bottom and
Not used 8 alphanumeric
1 1 displayed from left to right on the TOOL
(default value 0) characters
REGISTRATION screen.
0: First series
screen comment 30 characters or The comments with a device 2 is read from the top
2 2
1: Second series 10 characters and displayed as the load meter comments.
screen comment

(4) Execute MENUE and press 5.CONVT → after writing the comment messages.
An example of comment creation is shown below.
0 (1) ( 0) ( [Spindle] )
1 (1) ( 0) ( [Standby 1] )
2 (1) ( 0) ( [Standby 2] )
3 (1) ( 0) ( [Standby 3] )
4 (1) ( 0) ( [Index] )
5 (2) ( 0) ( Spindle load 1 )
6 (2) ( 0) (0 50 100 )
7 (2) ( 0) (∗ % )
8 (2) ( 0) (|_|_|_|_|_|_|_|_|_|_|_|_| )
9 (2) ( 0) ( Z axis load 1 )
10 (2) ( 0) (0 50 100 )
11 (2) ( 0) (∗ % )
12 (2) ( 0) (|_|_|_|_|_|_|_|_|_|_|_|_| )
13 (2) ( 1) ( X axis load 2 )
14 (2) ( 1) (0 50 100 )
15 (2) ( 1) (∗ % )
16 (2) ( 1) (|_|_|_|_|_|_|_|_|_|_|_|_| )
17 (2) ( 1) ( Z axis load 2 )
18 (2) ( 1) (0 50 100 )
19 (2) ( 1) (∗ % )
20 (2) ( 1) (|_|_|_|_|_|_|_|_|_|_|_|_| )
21 ( ) ( 1) ( )
Device No.
Device

The comments number 13 to 20 (device number:1) are the comment data for the second series when
using a 2-series system.

− 63 −
7. Messages

Load meter display

40 characters
30 characters

1 5 10 15 20 25 30 35 40

SP load 0 50 100 First line


10 + 30 characters released

110 % Second line


10 + 30 characters
released
from right

Z a x. l oad 0 50 100 Third line


10 + 30 characters released

110 % Fourth line


10 + 30 characters
released

The bar graph start position is fixed to the 11th character from the left.

The display length (number of characters) is set in R155/R355.


Load meter 2
The R154/R354 value is displayed (binary 0~32767).
The display length (number of characters) is set in
R153/R353 Load meter 1
The R152/R352 value is displayed (binary 0~32767).

(Note) R152 to 155 control the first series screen display when using a 2-series system, and R352 to
355 control the second series screen display when using a 2-series system.

No. On the actual 9-inch CRT:


5 (2) ( 0) ( SP load ) Display 10 characters from 1st line left
6 (2) ( 0) (0 50 100 ) Display 30 characters from 1st line right
7 (2) ( 0) (∗ % ) Display 10 characters from 2nd line left
8 (2) ( 0) (|_|_|_|_|_|_|_|_|_|_|_|_| ) Display 30 characters from 2nd line right
9 (2) ( 0) ( Z ax. load ) Display 10 characters from 3rd line left
10 (2) ( 0) (0 50 100 ) Display 30 characters from 3rd line right
11 (2) ( 0) (∗ % ) Display 10 characters from 4th line left
12 (2) ( 0) (|_|_|_|_|_|_|_|_|_|_|_|_| ) Display 30 characters from 4th line right
Device No.
Device

Precautions for creating load meter


A pair is created with two lines using the first line for the first step and the second line as the second
step. In the above example, No. 5, 7, 9 and 11 are the first step, and No. 6, 8, 10 and 12 are the second
step.
1. The comment message length must be 60 bytes. (The maximum display data on the actual
machine is 30 characters, so this is set to 60 characters for compatibility with other models.)
2. The message display will display a maximum of 10 bytes on the first step and 30 bytes on the
second step.
3. Write the device number in the second step even if the message that is 10 bytes or shorter is
being displayed.
4. Do not use a Kanji character for the 10th byte. (Kanji characters that extend over the 9 to 10th
bytes are possible, but those that extend over the 10 to 11th bytes are not possible.)
5. The third step and seventh step of the comment display will not display the first six characters of
the ten characters. In this example, the first six characters are ∗ %.

− 64 −
7. Messages

7.2.5 Precautions for creating messages

(1) Semi-graphics (↑, ↓, etc.) cannot be used for the message data created with the personal
computer. If semi-graphics must be used with the load meter, etc., leave that line blank, and
create the message containing the semi-graphics with the CNC's onboard function.

(2) An even number of characters must always be set for each message. The CNC may not function
correctly if an odd number is set.

(3) A maximum of 60 characters (30 characters × 2 lines) can be displayed for the operator message.
Thus, if a Kanji character (2 character data) is used for the 30th or 31st character, it will not be
displayed correctly. Use a blank space for the 30th character here.

Example of operator message

The external operator message_


display uses two lines.

Use a space for the 30th character.

#1 ( 0) (The external operator message_display uses two lines.)

− 65 −
7. Messages

7.3 Read
The method for reading the messages is explained in this section.

[Basic operation]
(Set the index number of the
1.MSSG → 1.ALARM → 1.READ → message to be read into the →
setting area.)
2.OPERAT
3.PLC SW
4.DEVICE
5.COIL
6.COMMENT

[Operation example]
(1) Press 1.MSSG and then select one from 1.ALARM to 6.COMMENT .
(2) Press 1.READ and the setting section will display. Input the index number of the message to be
read into the setting area, and press .
15-lines worth of messages will display from the index number.
(3) Input “+” or “−” into the index number setting area to feed the page and then press .
“+” indicates forward page feed and “−” indicates reverse page feed.

− 66 −
7. Messages

7.4 Insertion
The method for inserting each message is explained in this section.

[Basic operation]

1.MSSG → 1.ALARM → (Message read) → 3.INSERT → (Message data input)


2.OPERAT
3.PLC SW → INS → 5.CONVT →
4.DEVICE
5.COIL
6.COMMENT

[Operation example]
(1) Press 1.MSSG and then select one from 1.ALARM to 6.COMMENT .
(2) Read the message section to be inserted.
(3) Press 3.INSERT , set the index number and data to be inserted into the setting area, and then
press .
An example is shown below.

For example to insert data between 101 and 102, designate the 102 position, and create the data to
be inserted.

100 (1001) (EMERGENCY STOP! )


101 (1001) (EMERGENCY! )
102 (1002) (SPINDLE ERROR )
103 (1003) (OIL PRESSURE PUMP ERROR )
:
:

ò # (102) (1002) (
When
SPINDLE ERROR)
is pressed, the following will occur.

100 (1001) (EMERGENCY STOP! )


101 (1001) (EMERGENCY! )
102 (1002) (SPINDLE ERROR )
103 (1002) (SPINDLE ERROR )
104 (1003) (OIL PRESSURE PUMP ERROR )
:
:

(4) Press INS if insertion is completed, press 5.CONVT and then .


"COMPLETED" will display when conversion is completed.

(Note) The inserted data will be invalid if write or read is selected without conversion.

− 67 −
7. Messages

7.5 Deletion
The method for deleting each message is explained in this section.

[Basic operation]

1.MSSG → 1.ALARM → (Message read) → 4.DELETE → (Input index number of


message to be deleted)
2.OPERAT
3.PLC SW → INS → 5.CONVT →
4.DEVICE
5.COIL
6.COMMENT

[Operation example]
(1) Press 1.MSSG and then select one from 1.ALARM to 6.COMMENT .
(2) Read the message section to be deleted.
(3) Press 4.DELETE , set the index number to be deleted into the setting area, and then press .
An example is shown below.

# 100 (1001) (EMERGENCY STOP! )


101 (1001) (EMERGENCY! )
102 (1002) (SPINDLE ERROR )
103 (1003) (OIL PRESSURE PUMP ERROR )
:
:

ò
Set the index and press .
# (102) (1002) ( SPINDLE ERROR)
The following will occur.

100 (1001) (EMERGENCY STOP! )


101 (1001) (EMERGENCY! )
102 (1003) (OIL PRESSURE PUMP ERROR )
:
:

(4) Press INS if deletion is completed, press 5.CONVT and then .

− 68 −
7. Messages

7.6 Conversion
The edited data is written into the message file.

[Basic operation]

1.MSSG → (Edit message) → INS → 5.CONVT →

[Operation example]

(1) Press 1.MSSG and edit the message (write, insert, delete).
(2) Press INS → 5.CONVT → after editing.
The contents of the message file will be updated when "COMPLETED" is displayed.

− 69 −
8. Printing

8. Printing
The PLC development software can edit as well as print the ladder circuits and messages.
There are two methods of printing: printer and printer 2. Printer 2 allows the size of the ladder circuit to
be selected.
PRINT MODE
1.LADDER ( 1) PRINT OUT
2.COMMENT ( 0) SET = 1
3.ALARM MSSG ( 0) 31.USED PAPER SIZE 11INCH
4.OPERATE MSSG ( 0)
5.COMMENT MSSG ( 0) 32.PRINT START POINT X=0
6.PLC SW MSSG ( 0)
33.DATA LENGTH 8+1

34.START PAGE NO( 1) 0 <= X < 10000


20.MACHINE NAME (1)
21.LADDER FILE ( BASE.LD )
22.POINT START STEP ( 0)
23. END STEP ( 100)
24.MODE SELECT ( 0) 0:LAD,1:LAD.+COM,2:LAD.+COM.+CRS
25.MESSAGE FILE (BASE.MS )
26.I/O DEVICE ( )
27.POINT START NO. ( 0)
28. END NO. ( 0)
29.MODE SELECT ( 0) 0.ALL DEVICE 1.DEVICE 2.DEV.+DEV NO. Screen for
3. PRINT
#( 21 )DATA( LAD1 )
3PRINT 5PRINT2

PRINT 2

1.LADDER ( 1) PRINT OUT 30.USED PAPER ( 1 )


2.DEVICE, COIL ( 0) SET = 1 0:15∗11INCH 1:297∗210mm 2:210∗297mm
3.ALARM MSSG ( 0) 3:364∗257mm 4:257∗364mm 5:9∗11INCH
4.OPERATE MSSG ( 0) 6:FREE FORM
5.COMMENT MSSG ( 0)
6.PLC SW MSSG ( 0)

20.MACHINE NAME ( 1)
21.LADDER FILE ( BASED.LD )
22.POINT START STEP ( 0)
23. END STEP ( 100)
24.MODE SELECT ( 0) 0:LAD, 1:LAD. +COM, 2:LAD. +COM. +CRS
25.MESSAGE FILE ( BASED.MS )
26.I/O DEVICE ( )
27.POINT START NO. ( 0)
28. END NO. ( 0)
29.MODE SELECT ( 0) COIL--0.ALL DEVICE 1.DEVICE 2.DEV.+DEV NO. Screen for
DEVI--3.ALL DEVICE 4.DEVICE 5.DEV.+DEV NO. 5.PRINT2
#( ) DATA ( )
3PRINT 5PRINT2

− 70 −
8. Printing

[Basic operation]

6.EXT IO → 3.PRINT → (Set printing conditions) → G O


5.PRINT2

[Example of operation] ... For both printer and printer 2

(1) Select 6.EXT IO and then select printer or printer 2.


(2) Next input the various conditions into the setting section.
#( ) ( )
Data
Index

(3) Input G O in the index setting section, and press . Printing will start.
When completed, the GO display will disappear and the cursor will appear.

− 71 −
8. Printing

8.1 Printing the Ladder Program (Printer)


The procedure for selecting the printer and printing the ladder circuit is shown below.

Select LADDER.

To print with the machine name 1.LADDER ( 1) PRINT OUT


added, set 20. MACHINE NAME to 1. 2.COMMENT ( 0) SET = 1
3.ALARM MSSG ( 0)
4.OPERATE MSSG ( 0)
5.COMMENT MSSG ( 0)
Set the ladder file name. 6.PLC SW MSSG ( 0)

Set the START STEP and END


STEP. 20.MACHINE NAME ( 1)
All steps will be printed when both the 21.LADDER FILE ( BASED.LS )
22.POINT START STEP ( 0)
START STEP and END STEP are set 23. END STEP ( 100)
to 0. 24.MODE SELECT ( 0) 0:LAD,
25.MESSAGE FILE ( BASED.MS )
26.I/O DEVICE ( )
27.POINT START NO. ( 0)
Set MODE SELECT. 28. END NO. ( 0)
29.MODE SELECT ( 0) 0:ALL

Set the message file when "20.


MACHINE NAME" and "24. MODE #( ) DATA ( )
3PRINT 5PRI
SELECT (with comment)" are
designated.

Set the start signal.


# (GO) DATA ( )

Execute printing.

The start signal will disappear and #


( ) DATA ( ) will appear when printing
is completed.

Set the page to start printing from in 34. START PAGE NO. Normally, printing will start from page 1.

CAUTION
Do not use the same name for the ladder file and message file.

− 72 −
8. Printing

8.2 Printing the Comment List (Printer)


The procedure for selecting the printer and printing the comment list (coil comments, contact
comments) is shown below.

Select COMMENT MSSG.

To print with the machine name 1.LADDER ( 0) PRINT OUT


2.COMMENT ( 1) SET = 1
added, set 20. MACHINE NAME to 1. 3.ALARM MSSG ( 0)
4.OPERATE MSSG ( 0)
5.COMMENT MSSG ( 0)
6.PLC SW MSSG ( 0)
Set the message file name. Set into
25. MESSAGE FILE ( ).

20.MACHINE NAME ( 1)
21.LADDER FILE ( BASED.LD )
Set the comment list mode. 22.POINT START STEP ( 0)
29. MODE SELECT ( ) 23. END STEP ( 100)
Select one of the following: 24.MODE SELECT ( 0) 0:LAD,
25.MESSAGE FILE ( BASED.MS )
0. ALL DEVICE 26.I/O DEVICE ( )
1. DEVICE 27.POINT START NO. ( 0)
2. DEV. + DEV. NO. 28. END NO. ( 0)
29.MODE SELECT ( 0) 0:ALL

#( ) DATA ( )
If 1 or 2 is selected above, set the 3PRINT 5PRI
designated device. Designate device
A to Z.

Next, set the range of the designated


device.
Refer to "Section 3. Development
Procedure" for the setting range.

Set the start signal.


# (GO) DATA ( )

Execute printing.
The GO message will disappear and
# ( ) DATA ( ) will appear when
printing is completed.

− 73 −
8. Printing

8.3 Printing the Ladder Program (Printer 2)


The procedure for selecting the printer 2 and printing the ladder circuit is shown below.

Select LADDER.

To print with the machine name


1.LADDER ( 1) PRINT OUT
added, set 20. MACHINE NAME to 1.
2.DEVICE, COIL ( 0) SET = 1
3.ALARM MSSG ( 0)
4.OPERATE MSSG ( 0)
5.COMMENT MSSG ( 0)
6.PLC SW MSSG ( 0)
Set the ladder file name.

Set the START STEP and END 20.MACHINE NAME ( 1)


STEP. 21.LADDER FILE ( BASE.LD )
All steps will be printed when both the 22.POINT START STEP ( 0)
START STEP and END STEP are set 23. END STEP ( 100)
24.MODE SELECT ( 0) 0:LAD,
to 0. 25.MESSAGE FILE ( BASE.MS )
26.I/O DEVICE ( )
27.POINT START NO. ( 0)
28. END NO. ( 0)
29.MODE SELECT ( 0) COIL–
Set the MODE SELECT. DEVI–

#( ) DATA ( )
Set the message file when "20. 3PRINT 5PRI
MACHINE NAME" and "24. MODE
SELECT (with comment)" are
designated.
Note) Only the ladder will be printed if the
message file is not designated. PRINT 2

Designate the printer paper. 30.USED PAPER ( )


30. USED PAPER (0) 0:15∗11INCH 1:297∗210mm 2:210∗297mm
0: 15*1INCH 1: 297*210MM 3:364∗257mm 4:257∗364mm 5:9∗11INCH
6:FREE FORM
2: 210*297MM 3: 364*257MM
4: 257*364MM 5: 9*11INCH
31. WIDE ( 1) 0:1/6INCH 1:1/8INCH
Note) "0" is set for the 32.LINE ( 80)
screen selection. 33.COLUMNS ( 75)
34.REDUCTION ( 0)
Set the line spacing. 35.LEFT MARGIN ( 0)
36.START PAGE NO ( 1) 0 <= X < 10000
31. WIDE (1)
0: 1/6 INCH LAD, 1:LAD. +COM, 2:LAD. +COM. +CRS
1: 1/8 INCH
Note) "0" is set for the
screen selection.
COIL--0.ALL DEVICE 1.DEVICE 2.DEV.+DEV NO.
DEVI--3.ALL DEVICE 4.DEVICE 5.DEV.+DEV NO.

5PRINT2
To next page.

− 74 −
8. Printing

Set the start signal.


# (GO) DATA ( )

Execute printing.

The start signal will disappear and #


( ) DATA ( ) will appear when printing
is completed.

Set the page to start printing from in 34. START PAGE NO. Normally, printing will start from page 1.

CAUTION
1. Do not set the same name for the ladder file and message file.
2. Only the ladder will be printed if the message file name is not designated even if “1” or “2”
is set in 24. MODE SELECT ( ).
3. The contact comments and coil comments must be created with the message function. A
maximum of 6 characters can be set for the contact comment and 18 characters for the
coil contact.
4. The OR circuit is not separated when the page is changed, but if the coil’s cross section is
more than four lines when the OR circuit is printed on the last line of the page, the OR
circuit will be continued on the next page.

− 75 −
8. Printing

8.4 Printing the Contact Comments and Coil Comments (Printer 2)


The procedure for selecting printer 2 and printing the contact comments and coil comments is shown
below.

Set "1" in 2. DEVICE/COIL ( ).

1.LADDER ( 0) PRINT OUT


2.DEVICE, COIL ( 1) SET = 1
3.ALARM MSSG ( 0)
To print with the machine name 4.OPERATE MSSG ( 0)
added, set 20. MACHINE NAME to 1. 5.COMMENT MSSG ( 0)
6.PLC SW MSSG ( 0)

Set the message file name in 25.


MESSAGE FILE ( ).
20.MACHINE NAME ( 1)
21.LADDER FILE ( BASE.LD )
22.POINT START STEP ( 0)
23. END STEP ( 100)
Set 29. DEVICE/COIL MODE ( ). 24.MODE SELECT ( 0) 0:LAD,
Select one of the following: 25.MESSAGE FILE ( BASE.MS )
26.I/O DEVICE ( )
0: ALL DEVICE 27.POINT START NO. ( 0)
1: DEVICE 28. END NO. ( 0)
2: DEV. + DEV. NO. 29.MODE SELECT ( 0) COIL–
3: ALL DEVICE DEVI–
4: DEVICE
#( ) DATA ( )
5: DEV. + DEV. NO. 3PRINT 5PRI

If 1, 2, 4 or 5 is set in 29. MODE


SELECT ( ) above, set device A to Z
in the I/O DEVICE ( ).
1.LADDER ( 0) PRINT OUT
2.DEVICE, COIL ( 1) SET = 1
3.ALARM MSSG ( 0)
4.OPERATE MSSG ( 0)
If 2 or 5 is set in 29. MODE SELECT 5.COMMENT MSSG ( 0)
6.PLC SW MSSG ( 0)
( ) above, set the range of the
designated device.
Set the device number in :
27. POINT START NO. ( )
28. END NO. ( ) 20.MACHINE NAME ( 1)
Note) If END NO. is "0", all 21.LADDER FILE ( BASE.LD )
device Nos. will be 22.POINT START STEP ( 0)
23. END STEP ( 100)
printed. 24.MODE SELECT ( 0) 0:LAD,
25.MESSAGE FILE ( BASE.MS )
Set the start signal. 26.I/O DEVICE ( )
# (GO) DATA ( ) 27.POINT START NO. ( 0)
28. END NO. ( 0)
29.MODE SELECT ( 0) COIL–
DEVI–

The GO message will disappear and #( ) DATA ( )


# ( ) DATA ( ) will appear when 3PRINT 5PRI
printing is completed.

− 76 −
8. Printing

8.5 Example of Printing


An example of printing with printer 2 using the PLC development software is shown below.

8.5.1 Printing with ladder + comment + cross


Printer Example LP-7000

385

Automatic operation start


13

∗Automatic operation stop


15

Single block
17
Dry run
19

Automatic machine lock 1


21

Automatic machine lock 2


22

Automatic machine lock 4


23

Automatic machine lock 5


24

Automatic machine lock 6


25

Manual machine lock 1


26

Manual machine lock 2


27

Manual machine lock 4


28

Manual machine lock 5


29

Manual machine lock 6


30

Automatic machine lock 3


33

Optional block skip


35

Manual machine lock 3


37

Miscellaneous function lock


39

Memory
41

− 77 −
8. Printing

8.5.2 Example of contact comment printing

− 78 −
8. Printing

8.5.3 Example of coil comment printing

COMMENT LIST FILE MSG500

DEVICE COMMENT LIST DEVICE COMMENT LIST DEVICE COMMENT LIST


Y180 AXIS OFF 1 Y1CB Automatic machine lock 4 Y216
Y181 AXIS OFF 2 Y1CC Automatic machine lock 5 Y217
Y182 AXIS OFF 3 Y1CD Automatic machine lock 6 Y218 Automatic operation start
Y183 AXIS OFF 4 Y1CE Automatic machine lock 7 Y219 ∗Automatic operation stop
Y184 AXIS OFF 5 Y1CF Automatic machine lock 8 Y21A Single block
Y185 AXIS OFF 6 Y1D0 Manual machine lock 1 Y21B ∗Block start interlock
Y186 AXIS OFF 7 Y1D1 Manual machine lock 2 Y21C ∗Cutting start interlock
Y187 AXIS OFF 8 Y1D2 Manual machine lock 3 Y21D Dry run
Y188 SERVO OFF 1 Y1D3 Manual machine lock 4 Y21E
Y189 SERVO OFF 2 Y1D4 Manual machine lock 5 Y21F Error detect
Y18A SERVO OFF 3 Y1D5 Manual machine lock 6 Y220 NC reset 1
Y18B SERVO OFF 4 Y1D6 Manual machine lock 7 Y221 NC reset 2
Y18C SERVO OFF 5 Y1D7 Manual machine lock 8 Y222 Reset & rewind
Y18D SERVO OFF 6 Y1D8 Feed axis selection 1 Y223 Chamfering
Y18E SERVO OFF 7 Y1D9 Feed axis selection 2 Y224
Y18F SERVO OFF 8 Y1DA Feed axis selection 3 Y225 Gear shift complete
Y190 MIRROR IMAGE 1 Y1DB Feed axis selection 4 Y226 M function complete 1
Y191 MIRROR IMAGE 2 Y1DC Feed axis selection 5 Y227 M function complete 2
Y192 MIRROR IMAGE 3 Y1DD Feed axis selection 6 Y228 Tool length measurement
Y193 MIRROR IMAGE 4 Y1DE Feed axis selection 7 Y229 Tool length measurement 2
Y194 MIRROR IMAGE 5 Y1DF Feed axis selection 8 Y22A
Y195 MIRROR IMAGE 6 Y1E0 Feed axis selection −1 Y22B Program resume
Y196 MIRROR IMAGE 7 Y1E1 Feed axis selection −2 Y22C Playback
Y197 MIRROR IMAGE 8 Y1E2 Feed axis selection −3 Y22D Macro interrupt
Y198 Y1E3 Feed axis selection −4 Y22E Rapid traverse
Y199 Y1E4 Feed axis selection −5 Y22F
Y19A Y1E5 Feed axis selection −6 Y230 Manual absolute
Y19B Y1E6 Feed axis selection −7 Y231 Display lock
Y19C Y1E7 Feed axis selection −8 Y232 F 1 digit speed change valid
Y19D Y1E8 Y233 Recalculation request
Y19E Y1E9 Y234 Integrated time input 1
Y19F Y1EA Y235 Integrated time input 2
Y1A0 Y1EB Y236
Y1A1 Y1EC Y237
Y1A2 Y1ED Y238 ∗Data protect key 1
Y1A3 Y1EE Y239 ∗Data protect key 2
Y1A4 Y1EF Y23A ∗Data protect key 3
Y1A5 Y1F0 Y23B ∗Data protect key 4
Y1A6 Y1F1 Y23C
Y1A7 Y1F2 Y23D
Y1A8 Automatic interlock 1 Y1F3 Y23E
Y1A9 Automatic interlock 2 Y1F4 Y23F Optional block skip
Y1AA Automatic interlock 3 Y1F5 Y240
Y1AB Automatic interlock 4 Y1F6 Y241
Y1AC Automatic interlock 5 Y1F7 Y242
Y1AD Automatic interlock 6 Y1F8 Y243
Y1AE Automatic interlock 7 Y1F9 Y244
Y1AF Automatic interlock 8 Y1FA Y245
Y1B0 Automatic interlock −1 Y1FB Y246
Y1B1 Automatic interlock −2 Y1FC Y247
Y1B2 Automatic interlock −3 Y1FD Y248 No.1 handle axis No.11
Y1B3 Automatic interlock −4 Y1FE Y249 No.1 handle axis No.12
Y1B4 Automatic interlock −5 Y1FF Y24A No.1 handle axis No.14
Y1B5 Automatic interlock −6 Y200 Y24B No.1 handle axis No.18
Y1B6 Automatic interlock −7 Y201 Y24C No.1 handle axis No.116
Y1B7 Automatic interlock −8 Y202 Y24D
Y1B8 Manual interlock 1 Y203 Y24E
Y1B9 Manual interlock 2 Y204 Y24F No.1 handle axis valid
Y1BA Manual interlock 3 Y205 Y250
Y1BB Manual interlock 4 Y206 Y251
Y1BC Manual interlock 5 Y207 Y252
Y1BD Manual interlock 6 Y208 JOG Y253
Y1BE Manual interlock 7 Y209 HANDLE Y254
Y1BF Manual interlock 8 Y20A Step Y255
Y1C0 Manual interlock −1 Y20B Manual random feed Y256
Y1C1 Manual interlock −2 Y20C Zero point return Y257
Y1C2 Manual interlock −3 Y20D Y258

− 79 −
8. Printing

8.6 Free Form Setting of the Printing Paper

8.6.1 Outline

When "6. FREE FORM" is selected for "30. USED PAPER" on the "PRINT2" screen, the following
printing is possible.

• Free No. of lines (Designate with "32. LINE")


• Free No. of columns (Designate with "33. COLUMNS")
• Reduction (Designate with "34. REDUCTION")
• Free left margin (Designate with "35. LEFT MARGIN")

Note that this function is dedicated for the "PRINT2" screen.

8.6.2 Screen configuration

PRINT 2

1.LADDER ( 0) PRINT OUT 30.USED PAPER ( 0 )


2.DEVICE, COIL ( 0) SET = 1 0:15∗11INCH 1:297∗210mm 2:210∗297mm
3.ALARM MSSG ( 0) 3:364∗257mm 4:257∗364mm 5:9∗11INCH
4.OPERATE MSSG ( 0) 6:FREE FORM
5.COMMENT MSSG ( 0)
6.PLC SW MSSG ( 0) 31.WIDE ( ) 0:1/6INCH 1:1/8INCH
32.LINE ( )
33.COLUMNS ( )
34.REDUCTION ( )
35.LEFT MARGIN ( )
36.START PAGE NO ( ) 0 <= X < 10000
20.MACHINE NAME ( 0)
21.LADDER FILE ( )
22.POINT START STEP ( 0)
23. END STEP ( 0)
24.MODE SELECT ( 0) 0:LAD, 1:LAD. +COM, 2:LAD. +COM. +CRS
25.MESSAGE FILE ( )
26.I/O DEVICE ( )
27.POINT START NO. ( 0)
28. END NO. ( 0)
29.MODE SELECT ( 0) COIL--0.ALL DEVICE 1.DEVICE 2.DEV.+DEV NO.
DEVI--3.ALL DEVICE 4.DEVICE 5.DEV.+DEV NO.

#( ) DATA ( )
3 PRINT 5 PRINT2

− 80 −
8. Printing

8.6.3 Details of function


When "6. FREE FORM" is selected for "30. USED PAPER" on the "PRINT 2" screen, the data set in
items 32. to 35. will be validated.
If a setting other than 6 is made, the 32. to 35. settings will be ignored. Thus, if reduction printing or a left
margin is to be designated, set 6 for the "30. USED PAPER" setting.
Setting range
Display item Details
(Default value)
30. USER PAPER 0: 15∗11-inch, 1: A4 portrait, 2: A4 landscape, 3: B4 portrait, 4:
B4 landscape, 5: 9∗11-inch, 6: Free
32. LINE Designate the number of lines to be printed on one page. 40 ~ 100
Designate this value so that the lines will fit on the paper being (80)
used.
When the designated number of lines have been printed, the
change page code will be output.
The number of lines here refers to the lines from the file name
to the page number.
Set the paper size with the printer.
33. COLUMNS Designate the number of columns on one line. Designate this 70 ~ 136
so that the columns will fit on the paper being used. If there are (75)
more than 75 columns, a comment or cross reference can also
be printed.
The number of cross references printed on one line will
depend on the number of columns.
Number of cross references =
Number of columns - 75 + 1 (round down decimal values)
6
When the comment or cross reference is printed, they may not
fit on one line when the normal character size is used. In this
case, designate reduction printing.
34. REDUCTION Designate whether to carry out reduction printing. 0/1
(Note that some printers may not be capable of this function.) (0)
35. LEFT MARGIN Designate the left margin width with a number of columns. 0 ~ 40
PC-98: Number of normal characters regardless of the (0)
reduction designation.
PC/AT: Normally, the normal characters. When reduction is
designated, the number of reduction characters.
(Note) Some printers may not be capable of this function.
36. START PAGE Designate the page to start printing. The page number will be 0 ~ 9999
NO printed at the bottom center of the page from the set value. (1)
If a value other than 0 is designated for "22. POINT START
STEP", the printing will start from the designated step position.
At this time, the printing page number will start from the
designated value.
If an illegal value is set in "36. START PAGE NO", the "START
PAGE ILLEGAL" error will display. The "START PAGE
ILLEGAL" error will occur in the following case:
1) When a setting not within the setting range is made.

8.6.4 Precautions
(1) If the ladder mode is 0 or if the number of columns does not satisfy 75, the comment or cross
reference cannot be printed.
(2) The reduction and left margin settings are valid only when the “30. USED PAPER” setting is “6.
FREE FORM”.
(3) The default value of each data can be changed to an arbitrary value by using the external file
"PR_DATA".
Refer to the section "8.7 External File (PR_DATA)" for details.
− 81 −
8. Printing

8.7 External File (PR_DATA)


The initial values of the parameters on the PRINT 2 screen can be set.
The parameters shown below can be set.

8.7.1 Outline
If the printer output setting data and control codes are registered in the external file (PR_DATA), the
following settings and changes will be possible.
• Setting of initial value of parameters for printing
• Changing of printer control codes.

8.7.2 Details of functions


(1) Parameters for printing
The following parameters are read when the tool is started, and are used as the initial setting values.
24. MODE SELECT (LDM)
30. USED PAPER (PPP)
31. WIDE (CRW)
32. LINE (LNS)
33. COLUMN (CLS)
34. REDUCTION (RED)
35. LEFT MARGIN (LFT)
∗ The names given in parentheses are used when defining in the external file.

Cautions

(1) If there is no external file, the default values will be set as the initial values for all parameters.
(2) The default value will be set as the initial values for any parameter that is not designated.
If a value that exceeds the setting range is set, or if a character other than a number is set,
the default value will be set as the initial value.
Setting range : LDM 0~2
PPP 0~6
CRW 0 / 1
LNS 40 ~ 100
CLS 70 ~ 136
RED 0/1
LFT 0 ~ 40
If LDM is set to 1 or 2, and PPP is set to 1 or 5, both LDM and PPP will be invalid.
(This is because the printing details and paper size do not match.)

(2) Printer control code


This tool outputs the printer control codes that correspond to PC/AT (ESC/P) or PC98 (PR201).
To use a printer other than these, register the control code that matches the printer into the external
file. The following control codes can be set.
Reduction designation (_RED)
Reduction cancel (_NRD)
Left margin (_LFT)
∗ The names given in parentheses are used when defining in the external file.
These codes are output to the printer according to the state when the printer output starts.
• The reduction designation control code is output when "34. REDUCTION" is set to 1.
• The reduction cancel control code is output when "34: REDUCTION" is set to 0.
• The left margin control code is added to the margin width set in "35. LEFT MARGIN" and output.

− 82 −
8. Printing

Cautions

(1) If a control code is not designated, the default control code will be used.
Default control code: For PC/AT .... Follows ESC/P
For PC98 ...... Follows PR201
(2) The control codes are sequentially output one byte at a time. The output will stop at the point
that an illegal code is found (more than three digits, or other than 0-9, A-F or special codes).
Even if an incorrect code is designated, the output will continue to the end if the format is
correct. In this case, the following printer operation cannot be guaranteed, so take special
care when designating the control code.
(3) If the length of one line exceeds 256 characters, the line following the 257th character will be
invalid.
Thus, if all control codes are described with two digits, up to 84 control codes can be output.

(3) External file directory


The directory in which the external file is placed is as follows.
Storage directory: \PLC\BIN (Directory that stores the main tool)
The external file is automatically referred to by the tool, so if the name and directory differ, the
reference will not be possible.
External file name: "PR_DATA"

(4) File format


The external file is a text file, and the data is set as follows.
Parameter name = Data (decimal)
Control code name = Data, data, data... (hexadecimal)
If there are multiple control codes, always separate each byte with a comma (,). If there is a line
return midway, the output will end at the return.

Example of external file Parameter:


LDM=2 Ladder mode =2
PPP=6 Printer paper =6
CRW=1 Line width =1
LNS=80 Lines = 80
CLS=136 Columns = 136
RED=0 Reduction =0
LFT=5 Left margin =5
¦_RED=0F Control code: Reduction designation = 0F [HEX]
¦_NRD=12 Reduction cancel = 12 [HEX]
¦_LFT=1B,6C,X0 Left margin = 1B [HEX] 6C [HEX]
special code
The printer control code
will be written.

− 83 −
8. Printing

Special code: The data that starts with an "X" such as "X0" in the control code is called a special code.
The special code indicates a code that cannot be designated because the code changes
due to the conditions, etc.
Currently, the left margin width is a special code. The method of expressing the margin
width differs according to the printer, so the width is changed by the special code type.
ESC/P : Binary, 1 byte (0A for 10 digits)
PR201 : Character string, 3 bytes (30,31,30 for 10 digits)
For ESC/P type : Designate the special code "X0".
For PR201 type : Designate the special code "X1".
(Example) ESC/P_LFT=1B,6C,X0
PR201_LFT=1B,4C,X1

If set as shown above, the tool will generate the margin width data from the left margin
setting value, and will output the data to the printer.
The left margin value can be applied with a fixed value, but in this case, the left margin
setting value set on the screen will be ignored.

8.7.3 Appendix ESC/P and PR201 printer control codes


∗ The format used to designate with the external file "pr_data" is shown in the parentheses.

Reduction designation ESC/P : 0x0F (_RED=0F)


PR201 : 0x1C, 0x6D, "1/1, 1/2, H."
(_RED=1C,6D,31,2F,31,2C,31,2F,32,2C,48,2E)

Reduction cancel ESC/P : 0x12 (_NRD=12)


PR201 : 0x1C, 0x6D, "1/1, 1/1, H."
(_NRD=1C,6D,31,2F,31,2C,31,2F,31,2C,48,2E)

Left margin ESC/P : 0x1B, 0x6C, margin width (_LFT=1B,6C,X0)


For margin width 10... 0x1B,0x6C,0x0A
PR201 : 0x1B, 0x4C, margin width" (_LFT=1B,4C,X1)
For margin width 10... 0x1B,0x4C,"010"

8.8 Canceling the printing


The printing will be canceled if the ESC key is pressed during printing.
(1) Printing will stop when the ESC key is pressed.
(2) The message "PRINTING CANCELED" will appear when the printing is canceled.

− 84 −
9. Linking

9. Linking
Linking is a function used to merge the ladder file and message file described earlier into one file. The
file created by merging the ladder file and message file is called a link file. Normally, this link file is
transferred to the control unit. The ladder file and message file will remain intact even after they are
linked.
There is also a function used to divide the link file into a ladder file and message file.
Up to eight message files can be linked.
PLC FILE LINK

#1 LINK (LINK ) ( 21568/29952)


2 LADDER (LADDER ) ( 8000/16384)
3 MESSG.1 (MSSG1 ) ( 4096/ 4096)
4 MESSG.2 (MSSG2 ) ( 4096/ 4096)
5 MESSG.3 (MSSG3 ) ( 4096/ 4096)
6 MESSG.4 ( ) ( )
7 MESSG.5 ( ) ( )
8 MESSG.6 ( ) ( )
9 MESSG.7 ( ) ( )
10 MESSG.8 ( ) ( )
11 ADDRESS (41000100 )
12 C ADDR. (0001FF00 )
13 C ADDR.2 (0002FF00 )
14 LANG. I/F (0003FF00 )
15 C-MACRO (0004FF00 )

# ( ) NAME ( )

1READ 5LINK 7DIVIDE

Link screen

9.1 File Linking


The procedures for creating a link file are described in this section.
[Basic operations]
5LINK → 1READ → Designate ladder file name → 5LINK →
Designate message file name
Designate link file name
[Operation example]
(1) The following setting area will appear when 5LINK → 1READ are pressed.
#( ) NAME ( )
File name (Note 1)
Index
(2) Register the name of the ladder file created previously into "#2 LADDER". The used size will also
appear at this time.
(3) Register the name of the message file created previously into "#3 MESSG.1". The used size will
also appear at this time.
To create a multi-language compatible program, register the various language message files in
"#4 to 10".
(4) Register the name of the link file in "#1 LINK".(Note 2)
(5) When 5LINK and are pressed, the message "EXECUTION" will appear. When the linking is
completed "COMPLETED" will appear.
The link file size will also appear at this time.
(Note 1) Only files created in the same directory as PLC4B.EXE or files in the same directory can be
designated here.
(Note 2) If a link file with the same name as the ladder file is designated and the linking is completed
normally, the link file cannot be actually sent. (The transmission capacity will be 0.)
Designate a name that differs from the ladder file.
− 85 −
9. Linking

PLC FILE LINK


#1 LINK (LINK ) ( 21568/29952)
9.1.1 Operation example 2 LADDER (LAD0 ) ( 0/ 0)
3 MESSG.1 (MSG1 ) ( 4096/ 4096)
(1) Register the required file with 1READ , and 4 MESSG.2 (MSG2 ) ( 4096/ 4096)
5 MESSG.3 (MSG3 ) ( 4096/ 4096)
6 MESSG.4 ( ) ( )
then press 5LINK and . 7 MESSG.5 ( ) ( )
8 MESSG.6 ( ) ( )
9 MESSG.7 ( ) ( )
10 MESSG.8 ( ) ( )
11 ADDRESS ( ) ( )
12 C ADDR. ( )
When 5LINK is pressed, the setting area 13 C ADDR.2 ( )
14 LANG. I/F ( )
parentheses ( ) will appear, but nothing 15 C-MACRO ( )

needs to be set here in particular. ( )

1READ 5LINK 7DIVIDE

PLC FILE LINK


(2) The file indicated with an asterisk ∗ does not #1 LINK (LINK ) ( 21568/29952)
2 LADDER (LAD0 ) ( 0/ 0) ∗
exist. Designate the file name again. 3 MESSG.1 (MSG1 ) ( 4096/ 4096)
4 MESSG.2 (MSG2 ) ( 4096/ 4096)
1READ 5 MESSG.3 (MSG3 ) ( 4096/ 4096)
6 MESSG.4 ( ) ( )
2 → L A D 7 MESSG.5 ( ) ( )
8 MESSG.6 ( ) ( )
9 MESSG.7 ( ) ( )
5LINK 10 MESSG.8 ( ) ( )
11 ADDRESS ( ) ( )
12 C ADDR. ( )
13 C ADDR.2 ( )
14 LANG. I/F ( )
15 C-MACRO ( )

( ) PROG. NOT FOUND

1READ 5LINK 7DIVIDE

PLC FILE LINK


(3) The file indicated with an asterisk ∗ already #1 LINK (LINK ) ( 21568/29952)∗
2 LADDER (LAD ) ( 8000/ 16384)
exists. Designate the file name again if 3 MESSG.1 (MSG1 ) ( 4096/ 4096)
4 MESSG.2 (MSG2 ) ( 4096/ 4096)
required. 5 MESSG.3 (MSG3 ) ( 4096/ 4096)
6 MESSG.4 ( ) ( )
7 MESSG.5 ( ) ( )
8 MESSG.6 ( ) ( )
9 MESSG.7 ( ) ( )
10 MESSG.8 ( ) ( )
If Y and are pressed, the file linking 11 ADDRESS ( ) ( )
12 C ADDR. ( )
will start with the designated files. 13 C ADDR.2 ( )
14 LANG. I/F ( )
15 C-MACRO ( )

( Y ) VI-FILE IS EXIST. OK (Y/N)

1READ 5LINK 7DIVIDE

PLC FILE LINK


#1 LINK (LINK1 ) ( 21568/29952)
(4) The file linking will start when the following 2 LADDER (LAD ) ( 8000/ 16384)
3 MESSG.1 (MSG1 ) ( 4096/ 4096)
keys are pressed. 4 MESSG.2 (MSG2 ) ( 4096/ 4096)
5 MESSG.3 (MSG3 ) ( 4096/ 4096)
1READ 6 MESSG.4 ( ) ( )
7 MESSG.5 ( ) ( )
1 → L I N K 1 8
9
MESSG.6
MESSG.7
(
(
)
)
(
(
)
)
10 MESSG.8 ( ) ( )
5LINK 11 ADDRESS ( ) ( )
12 C ADDR. ( )
13 C ADDR.2 ( )
14 LANG. I/F ( )
15 C-MACRO ( )

( ) EXECUTION

1READ 5LINK 7DIVIDE

− 86 −
9. Linking

(5) The message "COMPLETED" will appear PLC FILE LINK


#1 LINK (LINK1 ) ( 21568/29952)
when the linking is completed. 2 LADDER (LAD ) ( 8000/ 16384)
3 MESSG.1 (MSG1 ) ( 4096/ 4096)
4 MESSG.2 (MSG2 ) ( 4096/ 4096)
5 MESSG.3 (MSG3 ) ( 4096/ 4096)
6 MESSG.4 ( ) ( )
7 MESSG.5 ( ) ( )
8 MESSG.6 ( ) ( )
9 MESSG.7 ( ) ( )
10 MESSG.8 ( ) ( )
11 ADDRESS ( ) ( )
12 C ADDR. ( )
13 C ADDR.2 ( )
14 LANG. I/F ( )
15 C-MACRO ( )

( ) COMPLETED

1READ 5LINK 7DIVIDE

9.2 File Division


The procedures for dividing the link file will be described in this section.

[Basic operation]
5LINK → 1READ → (Designate link file name) → 7DIVIDE

[Operation example)
(1) The following setting area will appear when 5LINK → 1READ are pressed.
#( ) NAME ( )
File name
Index

(2) Register the name of the link file created previously in "#1 LINK". The names and sizes of the
ladder file and message files in the link file will appear.
(3) When 7DIVIDE and are pressed " ( ) " will appear.
If Y and are pressed, the message "EXECUTION" will appear.
When the division is completed, the message "COMPLETED" will appear.

− 87 −
9. Linking

PLC FILE LINK


9.2.1 Operation example #1 LINK (LINK ) ( / )∗
2 LADDER ( ) ( / )
3 MESSG.1 ( ) ( / )
(1) Read in the link file, and press the 7DIVIDE 4 MESSG.2 ( ) ( / )
5 MESSG.3 ( ) ( / )
and keys. 6 MESSG.4 ( ) ( )
7 MESSG.5 ( ) ( )
8 MESSG.6 ( ) ( )
9 MESSG.7 ( ) ( )
1READ 10 MESSG.8 ( ) ( )
11 ADDRESS ( ) ( )
1 → L N K 12 C ADDR. ( )
13 C ADDR.2 ( )
14 LANG. I/F ( )
7DIVIDE 15 C-MACRO ( )

( ) PROG. NOT FOUND

1READ 5LINK 7DIVIDE

PLC FILE LINK


(2) The file indicated with an asterisk ∗ does not #1 LINK (LINK1 ) ( 21568/29952)
2 LADDER (LAD ) ( 8000/ 16384)
exist. Designate the file name again. 3 MESSG.1 (MSG1 ) ( 4096/ 4096)
4 MESSG.2 (MSG2 ) ( 4096/ 4096)
5 MESSG.3 (MSG3 ) ( 4096/ 4096)
6 MESSG.4 ( ) ( )
1READ 7 MESSG.5 ( ) ( )
8 MESSG.6 ( ) ( )
1 → L I N K 1 9 MESSG.7 ( ) ( )
10 MESSG.8 ( ) ( )
11 ADDRESS ( ) ( )
7DIVIDE 12 C ADDR. ( )
13 C ADDR.2 ( )
14 LANG. I/F ( )
15 C-MACRO ( )

( )

1READ 5LINK 7DIVIDE

PLC FILE LINK


(3) The file indicated with an asterisk ∗ already #1
2
LINK
LADDER
(LINK1
(LAD
)
)
(
(
21568/29952)
8000/ 16384) ∗
exists. Designate the file name again if 3 MESSG.1 (MSG1 ) ( 4096/ 4096) ∗
4 MESSG.2 (MSG2 ) ( 4096/ 4096) ∗
required. 5 MESSG.3 (MSG3 ) ( 4096/ 4096) ∗
6 MESSG.4 ( ) ( )
If Y and are pressed, the file division 7 MESSG.5 ( ) ( )
8 MESSG.6 ( ) ( )
9 MESSG.7 ( ) ( )
will start with the designated files. 10 MESSG.8 ( ) ( )
11 ADDRESS ( ) ( )
12 C ADDR. ( )
13 C ADDR.2 ( )
14 LANG. I/F ( )
15 C-MACRO ( )

( ) VI-FILE IS EXIST. OK (Y/N)

1READ 5LINK 7DIVIDE

PLC FILE LINK


#1 LINK (LINK1 ) ( 21568/29952)
2 LADDER (LAD ) ( 8000/ 16384)
(4) The file division will start when the following 3 MESSG.1 (MSG1 ) ( 4096/ 4096)
4 MESSG.2 (MSG2 ) ( 4096/ 4096)
keys are pressed. 5 MESSG.3 (MSG3 ) ( 4096/ 4096)
6 MESSG.4 ( ) ( )
Y 7 MESSG.5 ( ) ( )
8 MESSG.6 ( ) ( )
9 MESSG.7 ( ) ( )
10 MESSG.8 ( ) ( )
11 ADDRESS ( ) ( )
12 C ADDR. ( )
13 C ADDR.2 ( )
14 LANG. I/F ( )
15 C-MACRO ( )

( ) EXECUTION

1READ 5LINK 7DIVIDE

− 88 −
9. Linking

PLC FILE LINK


(5) The message "COMPLETED" will #1 LINK (LINK1 ) ( 21568/29952)
appear when the division is completed. 2 LADDER (LAD ) ( 8000/ 16384)
3 MESSG.1 (MSG1 ) ( 4096/ 4096)
4 MESSG.2 (MSG2 ) ( 4096/ 4096)
5 MESSG.3 (MSG3 ) ( 4096/ 4096)
6 MESSG.4 ( ) ( )
7 MESSG.5 ( ) ( )
8 MESSG.6 ( ) ( )
9 MESSG.7 ( ) ( )
10 MESSG.8 ( ) ( )
11 ADDRESS ( ) ( )
12 C ADDR. ( )
13 C ADDR.2 ( )
14 LANG. I/F ( )
15 C-MACRO ( )

( ) COMPLETED

1READ 5LINK 7DIVIDE

9.3 Others

9.3.1 Address
This is not used with the MELDAS 64 Series and MELDASMAGIC 64 Series.

9.3.2 C Address
This is not used with the MELDAS 64 Series and MELDASMAGIC 64 Series.

9.3.3 C Address 2
This is not used with the MELDAS 64 Series and MELDASMAGIC 64 Series.

9.3.4 Language I/F


This is not used with the MELDAS 64 Series and MELDASMAGIC 64 Series.

9.3.5 C-Macro
This is not used with the MELDAS 64 Series and MELDASMAGIC 64 Series.

− 89 −
10. Editing an Existing File

10. Editing an Existing File


The methods for editing a link file, ladder file or message file created previously will be described in this
section. To edit these files, they must be placed in the root directory of the disk in which the PLC
development software is installed.

10.1 Link File


The existing link file is edited after dividing it into the ladder file and message file.

[Basic operation]

5LINK → 1READ → [Designate link file name] → 7DIVIDE → →


Edit ladder file → Create link file
Edit message file

[Operation procedures]
(1) The following setting area will appear when 5LINK → 1READ are pressed.
# ( ) NAME ( )
(2) When the following is input, the ladder file name, message file name, capacity of each file and
used size will appear.
# ( 1) NAME (Name of link file to be edited)
(3) The parentheses ( ) will appear when the keys are pressed in the order of 7DIVIDE → .
(4) The message "EXECUTION" will appear when Y → are pressed, and the division will start.
The message "COMPLETED" will appear when the division is completed.
(5) When 4LADDER → 2CIRCUIT are pressed on the Title screen, the ladder file can be edited.
(6) When 1MESSAGE → (Each message file) are pressed on the Title screen, the message file
can be edited.
(7) When completed with the editing, return to the Title screen, and press 5LINK → 5LINK → .
The message "EXECUTION" will appear, and the edited files will be linked.
The message "COMPLETED" will appear when the linking is completed.

− 90 −
10. Editing an Existing File

10.2 Ladder File


An existing ladder file is edited with the following procedure.

[Basic operation]

5LINK → 1READ → [Designate ladder file name] → [Edit ladder file]

[Operation procedures]

(1) The following setting area will appear when 5LINK → 1READ are pressed.
# ( ) NAME ( )
(2) When the following is input, the ladder file capacity and used size will appear.
# ( 2) NAME (Name of ladder file to be edited)

(3) When 4LADDER → 2CIRCUIT are pressed on the Title screen, the ladder file can be edited.

10.3 Message File


An existing message file is edited with the following procedure.

[Basic operation]
5LINK → 1READ → [Designate message file name] → [Edit message file]

[Operation procedures]
(1) The following setting area will appear when 5LINK → 1READ are pressed.
# ( ) NAME ( )
(2) When the following is input, the message file capacity and used size will appear.
# ( 3) NAME (Name of message file to be edited)

(3) When 1MESSAGE → (Each file name) are pressed on the Title screen, the message file can
be edited.

− 91 −
11. Converting Ladder Files

11. Converting Ladder Files


11.1 Outline
The conversion tool required to convert the PLC program files (link files) developed on a personal
computer to a format that can be handled by the MELDAS 64 Series is described in this section.
(File name: chgcx. exe. Hereafter, conversion tool.)

Using this tool, PLC programs developed on a personal computer and MELDAS500/50 Series ladder
assets can be used and smoothly transferred to the M64 Series.

(Precautions)
(1) PLC program files converted and created with this conversion tool cannot be corrected
with the PLC development software.
(2) PLC program files converted and created with this conversion tool cannot be operated
by any control unit (MELDAS500/50 Series) besides the MELDAS64 Series, even if
transferred to such a unit.

11.2 Conversion operation


The basic command format is shown below. Items in < > brackets can be omitted.
(Refer to section "11.3.1 Normal Operation Example" for an operation example.)

CHGCX < - option > in_file<.ext> <out_file.ext >

< − option > : Designate the conversion option. (Can be omitted.)


−m : Message deletion mode. Delete the link file message.
−h : Output mode in which the header is not deleted. Refer to section "11.4.5
Header".
(Always add this option in the MELDAS64 Series.)
−n : Ladder/message name conversion mode. Refer to section "11.3.2
Operation Example for Link File Conversion".
−p : Mode in which the NOP commands after the END command are not
deleted.
(Always add this option in the MELDAS64 Series.)
−c : Mode in which ANDSW commands are used for software command
operation codes.
in_file< . ext > : Designate the file name to be converted. (Extensions can be omitted.)
Refer to section "11.4.1 File Name Restrictions Before Conversion" for details on
file names.
< out_file. ext > : Designate the file name after conversion. (Can be omitted.)
If omitted, the file name after conversion will be the same as that in the in_file,
with extensions added.
The new file after conversion will be created in the same directory as the file
before conversion.
Refer to section "11.4.2 File Name Restrictions After Conversion" for details on
file names.

Always add the above options "−h" and "−p" in the MELDAS64 Series.

− 92 −
11. Converting Ladder Files

11.3 Operation Examples

11.3.1 Normal Operation Example

The conversion operation is carried out as follows when the file type to be converted is a ladder file.

Ladder file name Ladder file name


DEF MNO.LDX

The conversion operation for the above conversion example is as follows. (In this case, options "h" and
"p" are added.)

CHGCX −HP DEF MNO

11.3.2 Operation Example for Link File Conversion

When the file type to be converted is a link file, the file names of the ladder file and message file
included in the link file can be converted using the option "n". If option "n" is not used, the file name
before conversion will be used as is.

Link file name before Link file name after


conversion conversion
ABC JKL.LKX
Ladder file name Ladder file name
DEF MNO
Message file name Message file name
GHI PQR

The conversion operation for the above conversion example is as follows.

1) Convert the file using the command "CHGCX".


A> CHGCX −N ABC JLK

2) Designate the ladder file name of the converted file.


At this time, the same name can be designated by inputting a " . " (period).
Old ladder file name is DEF
Please type new ladder file name MNO

3) Designate the message file name of the converted file.


At this time, the same name can be designated by inputting a " . " (period).

Old message file name is GHI


Please type new ladder file name PQR

− 93 −
11. Converting Ladder Files

11.4 Restrictions
The following restrictions apply to designated file names before and after conversion.

11.4.1 File Name Restrictions Before Conversion


1) The file name must be expressed as [file name. extension]. Extensions are not required.
2) The file name must be within 128 characters (including drive name, backslashes, extensions and
periods.)
3) All characters in the file name must be characters that can be used normally.

11.4.2 File Name Restrictions After Conversion


1) The file name must be designated as [file name. extension].
When the extension is omitted, an extension is automatically depending on the contents of the file
before conversion.
The following shows details of the automatically added extensions.
Details of the file before conversion File name after conversion
Link file [file name. LKX]
Ladder file [file name. LDX]

2) The file name must be within 128 characters (including drive name, backslashes, extensions and
periods.)
3) All characters in the file name must be characters that can be used normally.

11.4.3 File Attributes of Output Files


Attributes dedicated for reading are added.

11.4.4 Device No.


An error will occur if an attempt is made to convert ladder files using the following device Nos. Change
to another device No. before conversion.
X4C0 ~ X4FF (machine input spare)
Y540 ~ Y57F (machine output spare)
S140 ~ S1FF (rotation tool input/output spare)
I400 ~ I4BF (input signal spare)

11.4.5 Header
Header address information is required in the M64 Series. An output in which the header is not deleted
can be obtained by adding the "-h" option. Always add the "-h" option in the M64 Series.

11.4.6 Check Sum


The check sum of the data from the head to end (excluding the header) is calculated and stored in the
entry table.

11.4.7 Message data


Individual ladder files and ladder message link files can be converted.
Single files of message data and help messages cannot be converted.

− 94 −
12. Transferring Ladder Files (MELDAS 64)

12. Transferring Ladder Files (MELDAS 64)

12.1 Outline
The communication program required to transmit and receive the PLC program files (ladder and
message link file) between the [NC] and [personal computer] will be described in this section.
(File name: COMU.EXE. Hereafter, communication program.)

A PLC program file (ladder + message) developed on the personal computer can be transferred to the
control unit.

(Note 1)
The following two types of files can be communicated.
(1) Files generated by linking with PLC development software and converted into
MELDAS64 Series format.
(2) PLC program created with NC onboard PLC development function and
input/output with the maintenance data input function (#99 250).

When linking with the PLC development software, if a link file with the same name
as the ladder file is designated, the file cannot be sent.
(The linking will be completed normally, but the transmission capacity will be 0.)
Do not designate the same name as the ladder file for the link file name.

12.2 Starting Method


Type in the start command as shown below.
A:\>comu

The communication program screen will appear when the communication program starts.

− 95 −
12. Transferring Ladder Files (MELDAS 64)

12.3 Communication Execution Sequence

12.3.1 From [personal computer] to [NC]


The PLC program (ladder, message) is created with the following procedure using the PLC
development software.
The file to be transmitted must be a file that has been linked with the PLC development software and
converted into MELDAS64 Series format.
(Read the details of (Note 1) carefully.)
(1) Start the communication program. (Personal computer side)
(2) Check the NC RS-232-C parameters (baud rate, parity, etc.), and set them according to the
communication program.
(3) Set the Maintenance Data Input Wait state on the NC DATA INPUT screen.

# (99) (250) (2) Designate the reception file (maintenance).


INPUT OUTPUT (1) Designate INPUT.

(3) The reception wait state will be entered with INPUT .

Transmission will start from the communication program.


When the communication program displays "Transmitting Completed", the transmission has been
completed normally.

12.3.2 From [NC] to [personal computer]


(1) Start the communication program. (Personal computer side)
(2) Check the NC RS-232-C parameters (baud rate, parity, etc.), and set them according to the
communication program.
(3) Set the communication program to the reception wait state.
(4) Output the maintenance data on the NC DATA OUTPUT screen.

# (99) (250) (2) Designate the transmission file (maintenance).


INPUT OUTPUT (1) Designate OUTPUT.

(3) The transmission will state with INPUT .

When the communication program displays "Receiving Completed", the


reception has been completed normally.
The received file cannot be read into the PLC development software.

− 96 −
12. Transferring Ladder Files (MELDAS 64)

12.4 Communication Program Screen Configuration


The following screen will appear when this program (COMU.EXE) is started.

635W035 - (MELDAS64 )

<Fig. 12.1>

(Note 2)
The system number shown on the first line of the screen is BND-655W036-**for
the PC-AT compatible unit communication program.

(Note 3)
• The cursor used to select the items by moving vertically (using the ↑ and

↓ keys) will be called the "vertical cursor" hereafter.


• The highlighted items are the default settings.
• The basic operation can be carried out by selecting the items with the arrow
keys.

− 97 −
12. Transferring Ladder Files (MELDAS 64)

(Note 4) Use the following keys when the arrow keys cannot be used.
↓ = CTRL + J

↑ = CTRL + K
← = CTRL + H

→ = CTRL + L

12.5 Communication Program Operation Methods

12.5.1 SIO setting


Refer to <Fig. 12.1> for the default settings.
The setting can be changed with the arrow keys ( ↑ • ↓ • ← • → ).
The setting details are as follow.

Baud Rate Baud rate setting


Data Length Number of data bits
Stop Bit Number of stop bits
Parity Parity bit setting
Monitor Setting of transmission/reception data display

12.5.2 Com.Mode (Communication mode)


The communication mode (TRANSMIT/RECEIVE) is set.
The setting can be changed with the arrow keys ( ← • → ).
TRANSMIT Transmission mode (personal computer → controller)
RECEIVE Reception mode (personal computer ← controller)

12.5.3 File Name (File name input)


When the vertical cursor is set to "File Name", the cursor will appear at the input area, and "Enter File
Name" will appear in the message area.
Type in the file name. (The BS key is valid.)
The key is identical to the ↓ key operation. (This key will not function as the fixing key.)
B:\USER\DATA1.DAT
To transmit data, indicate the name of the file to be transmitted.
(Example) To transmit the file "DATA1.DAT" under the directory "USER" in drive B.

B:\USER\READ1.DAT
To receive data, indicate the name of the file to be received.
(Example) To save the reception data in the file "READ1.DAT" under the directory "USER" in drive B.

− 98 −
12. Transferring Ladder Files (MELDAS 64)

12.5.4 Execute?
If the key is pressed when "START" is highlighted, the transmission or reception will start according
to the "Com.Mode" setting.

[Transmitting] The designated file will be transmitted to the control unit.

(Note 5)
If the designated transmission file is not found, error message 7 (refer to Table
12.1) will appear.

[Receiving] The reception data will be saved in the designated file.

(Note 6)
• If a file with the same name exists, it will be overwritten.
• If the file is not found, a file will be created.
• A directory will not be created. If a directory that does not exist is designated,
error message 8 (refer to Table 12.1) will appear.
• If the FLD is write-protected, a message will be output from MS-DOS.
(The screen will be distorted in this case, but work can be continued by
following the given instructions.)

If the key is pressed when "MS-DOS" is highlighted, this program will be quit, and the system will
return to MS-DOS.

12.5.5 Monitor
TRANSMIT DATA : The transmission data will be displayed when the Monitor is ON.
RECEIVE DATA : The reception data will be displayed when the Monitor is ON.

12.5.6 Message
Instructions or warnings will be displayed in this area as required.
Refer to section "12.6 Message List" for details on the messages.

(Note 7)
If the communication is not completed normally (including when an error is judged
during [COMP]), the personal computer may not accept the STOP key (including
Ctrl + C ).
Reset the personal computer if communication is not completed normally.

− 99 −
12. Transferring Ladder Files (MELDAS 64)

12.6 Message List


The following messages will appear as required in the Message area of <Fig. 12.1>.

No. Message Meaning


01 Transmitting File is being transmitted.
02 Transmitting Completed The transmission has been completed.
03 Receiving The file is being received.
04 Receiving Completed The reception has been completed.
05 No Answer There is no answer. (The line is not connected.)
06 Communication Error Communication error (overrun, framing error, etc.)
The designated file or directory was not found.
07 No File
(During transmission)
A directory that does not exist was designated, and a file was not
08 File Create Failure
created. (During reception)
Request for entering of file name.
09 Enter File Name
(When the cursor is at "File Name")
Press Enter Key Communication will start when key is pressed.
10
(Communication Start) (When cursor is at "Execute?", and "START" is selected.)
Press Enter Key (Return MS-DOS will be returned to when key is pressed.
11
to MS-DOS) (When cursor is at "Execute?", and "MS-DOS" is selected.)
A horizontal parity error occurred in the reception data.
12 H-Parity Error
(Data Bit 7 is the horizontal parity.)
File Create Failure This message appears when the storage medium (FLD, etc.)
13
(Capacity) capacity is low during reception.
This message will appear to confirm whether to clear the area at
File Modify OK? (Y/N)
14 00H when the received file's 164H (140H+24H) to 223H
(Note 10)
(1FFH+24H) is not 00H. (Press Y or N)
This message appears when the corrections to message 14 have
Receiving Completed been completed.
15
(Copying File Completed) The “04 Receiving Completed” message appears when the check is
passed.

− 100 −
12. Transferring Ladder Files (MELDAS 64)

(Note 8)
The message area will be cleared when the vertical cursor (cursor that moves
with ↓ and ↑ ) is moved.

(Note 9)
If reception is executed while the FLD is write-protected, a warning message
will be output from the MS-DOS, so the screen will be partially distorted.
If the FLD write-protection tab is released and the instructions are followed,
work can be continued.

(Note 10)
When message 14 appears:
This message means that when the 164H to 223H bytes from the head of the
received file were checked, data that was not the binary [00H] was found.
If this area is not [00H], the file may not run correctly on the "PLC development
software". Thus, this message will appear and request the user to take
measures.
When [Y] is pressed, 164H to 223H in the reception file will be unconditionally
changed to [00H].
(The uncorrected file will not be saved.)
An error will always occur if [COMP] is carried out on the corrected file.
When [N] is pressed, nothing will be changed, so there will be no guarantee that
the file will run correctly on the "PLC development software".

− 101 −
13. Transferring Ladder Files (MELDASMAGIC 64)

13. Transferring Ladder Files (MELDASMAGIC 64)

13.1 Outline
The PLC program data (ladder and message) created with "PLC4B" on the personal computer can be
transferred to the NC (MELDASMAGIC 64).
The PLC program data created with the PLC development function (onboard) on the NC side can also
be transferred to the personal computer.
In this section, the methods for transmitting and receiving the PLC program data (ladder and message)
between the [NC] and [personal computer] using the transfer tool (magictrs.exe) will be described.
The data is transferred from the personal computer to the NC with the following procedure when using
the MELDASMAGIC 64.

1 Create PLC program file The PLC program file is created using "PLC4B". (*1)
*1 Refer to sections "4. Start Up" to "9. Linking".

2 Using the MELDASMAGIC transfer tool (magictrs.exe), the


Transfer to NC *3 converted PLC data is transferred to the NC. (*3)
Refer to the section "12.4 Transferring PLC program data".
MELDASMAGIC 64 Personal computer

Onboard PLC
development tool
USERPLC.LAD CHGCX

USERPLC.LAD

MELDASMAGIC 50

Onboard PLC
development tool
USERPLC.LAD
CNV4BMM -4
CNV4BMM

USERPLC.LAD

MELDAS Series

Ladder
PLC4B
and
message
PLC development software

(Note 1) The following two types of files can be communicated.


1. A file generated by linking with the PLC development software and converted into
MELDASMAGIC format.
2. PLC program generated with MELDASMAGIC 64 onboard (M64 monitor) that has been
input/output with the maintenance data input function (#99 250).
(Note 2) When linking a ladder file and message file with the PLC development software (PLC4B),
do not designate the same name as the ladder file for the link file name.
If a link file with the same name as the ladder file is designated, the file cannot be
transferred.
(The linking will be completed normally, but the transmission capacity will be 0.)
− 102 −
13. Transferring Ladder Files (MELDASMAGIC 64)

13.2 Operating Environment

13.2.1 Personal computer operating conditions

(1) PC-9800 Series


Use a PC-9800 Series that is running "MS-DOS Version 3.3 and above".

Caution

The PLC development software (PLC4B) can be used on the PC-9800 Series, but the
conversion tool (CNV4BMM) is dedicated for the PC/AT compatible unit, and thus will
not run on the PC-9800 Series.
Before converting a PLC program developed with the PC-9800 Series, load it into a
PC/AT compatible unit using a FLD, etc.

(2) PC/AT compatible unit


Use an IBM-PC/AT or compatible unit that is running "MS-DOS Version 5 and above".

13.2.2 Required software

(1) Transfer tool (MAGICTRS.EXE)


This tool is located in the "UTILITY disk".
Use the file transfer function in the MELDASMAGIC 64 MMI software (option).
Refer to the "Utility Operation Manual" for details on installing the "UTILITY disk" and the operation
of the tools, etc.

− 103 −
13. Transferring Ladder Files (MELDASMAGIC 64)

13.3 Converting PLC Program Data


Convert the PLC program data (ladder and message link file) created with the PLC4B into a format that
can be handled by the MELDASMAGIC using the following procedure.
This procedure can also be used to convert a file used with the MELDASMAGIC into a format that can
be handled by the PLC4B (format that can be used with conventional NC).

13.3.1 Conversion procedures


Convert the data with the following procedures.

(1) Start MS-DOS.


(2) Start the conversion tool (cnv4bmm.exe), and type in the following command.
(The following example shows when the tool is installed in the C:\directory.)

C:\>C:\meltools\dos\cnv4bmm.exe

The following type of explanation will appear.

[CNV4BMM] PLC4B format File Converter Ver. A0


Convert PLC4B format File into MELDASMAGIC format File.
Usage: CNV4BMM [-option] input_file [output_file]
option : [−m | −4 | −a]
−m : convert PLC4B format into MELDASMAGIC format
−4 : convert MELDASMAGIC format into PLC4B format
−a : automatically convert into another format (default)
input_file : input file name
output_file : output file name
If no output file name ordered, it use “USERPLC.LAD”.
Copyright (C) 1995 Mitsubishi Electric Corporation ALL Rights Reserved.

The following three methods can be used for conversion.


−m : Convert from PLC4B format into MELDASMAGIC format
−4 : Convert from MELDASMAGIC format into PLC4B format
−a : Automatically judge input_file format and convert

(3) Following the explanation above, designate the file name and option, and type in the command.
(Example) To convert a file (c:\plc1) created with the PLC development software, etc., and
located in the drive C root directory into a file that can be input into
MELDASMAGIC.

C:\>C:\meltools\dos\cnv4bmm.exe -m plc1

A file named USERPLC.LAD will be created in the execution directory (C:\).


(In this example, output_file has been omitted, so the default file name will be assigned.)

− 104 −
13. Transferring Ladder Files (MELDASMAGIC 64)

Caution

1) File name designation


• If the same name is designated for the input file name and output file name, an error
will occur.
• If the input file name is omitted, an error will occur.
• If the output file name is omitted, the output file name will be set to "USERPLC.LAD".
• All lowercase characters in the input or output file name will be interpreted as
uppercase characters.
2) Command inputs (option designation)
• The option characters are case sensitive. For example, -A or -M will cause an error.
• Only one of the options (-m, -4 or -a) can be designated. If two or more options are
designated, an error will occur.
• If no option (-m, -4 or -a) is designated, the same process as when -a is designated
will take place.
3) File size
• The MELDASMAGIC can handle up to 4K steps of ladder data. When converting
ladder data developed with the conventional model (MELDAS 50 Series, MELDAS
500 Series), or ladder data developed with the PLC4B, take care so that this size is
not exceeded.
If 4K steps is exceeded, the excessive data will not be converted.

− 105 −
13. Transferring Ladder Files (MELDASMAGIC 64)

13.4 Transferring PLC Program Data


Data is transferred between the personal computer and NC with the following procedure using the
MELDASMAGIC transfer tool (magictrs) or the MELDASMAGIC MMI software.

13.4.1 From [personal computer] to [NC Card]


(1) Stop the PLC and enter the emergency stop state. The following method can be used.
Method) Stop the PLC from the onboard PLC screen.
When the function keys are pressed in the order of F12 → F3 (File) → F4
(4RUN/SP), the following message will appear. Set 1.
0: RUN 1: STOP
(Note) When the PLC program data has been created using the PLC4B and is to be converted
and transferred, the PLC is stopped. Check the state before proceeding with the work.

(2) Start the transfer tool with the following procedure.


[When using MMI software file transfer window]
(Note) Start with this method when using the MELDASMAGIC 64.
The MELDASMAGIC MMI software is an option specification.
1) Start Windows.
2) Start the MELDASMAGIC MMI software.
3) Click on the [Monitor] - [Search] and [File Transfer] commands, and open the File Transfer
window.

[When using transfer tool (magictrs.exe)]


(Note) This method can be used to start when using MELDASMAGIC 64.
1) Start Windows.
2) Select the [File] → [Run...] menus under the Program Manager.
3) Type the following in the command line, and click on the [OK] button.
MELDASMAGIC MMI Install Destination Directory\MAGIC.EXE/M=NC Card No.

(Example) When MELDASMAGIC MMI software is installed in C:\.

C:\>MAGICTRS.EXE

− 106 −
13. Transferring Ladder Files (MELDASMAGIC 64)

(4) Select the NC side directory "M01:\LAD" with the following procedure.
1) Double-click on "M01:\".
2) Double-click on "LAD".
(5) Designate the PLC file to be transferred (file that has been converted with CNV4BMM) with the
following procedure.
1) Double-click on the directory containing the PLC file to be transferred.
2) Select and click on the file in the file list.

(6) Click on the copy button PC → NC ( ).


(7) The Copy window will open. The file name designated in step (5) will appear in the text box.
Change this to "USERPLC.LAD".

Change the file name.

− 107 −
13. Transferring Ladder Files (MELDASMAGIC 64)

(8) Click on the [OK] button.


If an error message does not appear, the transmission is completed.
(9) Start the PLC and confirm that there is no error. The PLC can be started with the following two
methods.
(Note 1) If "Method 1" was selected for stopping the PLC in step (1), select Method 1. If "Method
2" was selected, select Method 2.
Method 1) Return the RS611 card rotary switch CS2 to 0.
Method 2) Stop the PLC from the onboard PLC screen.
When the function keys are pressed in the order of F12 → F3 (file) → F4
(4RUN/SP), the following message will appear. Type in 0.
0: RUN 1: STOP

CAUTION

(1) Always set the file name to "USERPLC.LAD" when transferring from the PC to the NC.
(2) Refer to section "13.5 Message List" for details on the error messages.

− 108 −
13. Transferring Ladder Files (MELDASMAGIC 64)

13.4.2 From [NC Card] to [personal computer]


(1) Stop the PLC and enter the emergency stop state.
(Refer to the section "13.4.1 From [personal computer] to [NC Card]" for details.)

(2) Start the transfer tool.


(Refer to the section "13.4.1 From [personal computer] to [NC Card]" for details.)

(3) Select the PLC file "M01:\LAD\USERPLC.LAD" (NC side) to be transferred with the following
procedure.
(1) Double-click on "M01:\".
(2) Double-click on "LAD".
(3) Select and click on "USERPLC.LAD" in the file list.

(4) Designate the file transfer destination (personal computer side directory).

(5) Click on the copy button NC → PC ( ).

(6) The Copy window will open. The "USERPLC.LAD" will appear in the text box. Change the file name
here.

(7) Click on the [OK] button. If an error message does not appear, the transmission is completed.

(8) Start the PLC and confirm that there is no error.


(Refer to the section "13.4.1 For [personal computer] to [NC Card] for details.)

− 109 −
13. Transferring Ladder Files (MELDASMAGIC 64)

CAUTION
(1) The following steps must be taken to edit the file transferred to the personal computer
with the PLC4B.
1. Using the conversion tool CNV4BMM, convert the transferred file into a format that
can be read by the PLC4B. (Refer to the section "13.3 Converting PLC program data".)
2. Divide the link file (converted) into a ladder file and message file.
(Refer to the section "9.2 File division".)
(2) Refer to section "13.5 Message List" for details on the error messages.

13.5 Message List


The following messages will appear as required when the data is transferred with the File Transfer window.

No. Message Measures


1 The designated file does not exist. Select the file from the file list on the window.
Confirm the file name, copy destination
2 It failed in copying file.
directory or file name.
Designated file name already exists. Confirm the file name, and make sure that it
3
Designate the other file name. is not duplicated.

Copying, deleting or renaming of files cannot


4 Re-execute after the program has ended.
be executed while a program running.
5 Files cannot be copied while PLC operation. Re-execute after the PLC has ended.

− 110 −
14. List Mode Function

14. List Mode Function


14.1 Function
The codes can be directly input with characters instead of using the ladder circuit symbols when using
the PLC development software. This is called the list mode function.
Programming can be performed more efficiently than using circuit symbols by using the list mode
function.
The list mode function also has a function to convert the ladder sequence file into a list text file.

Ladder edit List edit


function function

Ladder sequence file List text file

The list text file can be edited using an editor such as mifes. Changing of the devices, etc., on the NC
side can be performed easily with the function to convert the ladder sequence file into a list text file.

− 111 −
14. List Mode Function

The function to convert the ladder sequence file into a list text file is used as shown below.
To convert LD X0 in the ladder sequence file to LD Y0 (device batch conversion)

Convert the ladder sequence


file into a list file as shown on
the left.

Editing of text file (in MIFES)

Convert the list text file into a


ladder sequence file.

− 112 −
14. List Mode Function

14.2 Menu Operation


The following title screen will display when the PLC development software is started up.

Model name Version

4.LADDER 7.FILE 8.EXIT


Menu display section

When the title screen is displayed, the menu will appear on the bottom of the screen.
Use the function keys PF01 to PF10 to select a menu. (These keys may be F1 to F10 depending on
the personal computer model.)
The menu number and function key numbers correspond to each other.
The menu configuration is shown below.

4.LADDER 7.FILE 8.EXIT

− 113 −
14. List Mode Function

When 4.LADDER is selected:

1.LIST SUBMENU

1.READ 2.WRITE 3.INSERT 4.DELETE 5.CONVT MENUE


Note 1)

1.SET 2.DEVICE 3.COMMAND 4.DATA MENUE

(Note 1) ESC = can be used instead of INS .

2.WRITE 5.CONVT

The PLC development software title screen will appear when PF10 is pressed.

14.3 Starting Up and Ending the List Mode (LIST4B)

[Start up method]
(1) Input the following startup command to start the list mode function.
A:\> list4b

(2) The list mode function will start, and the title screen will display.

[Ending method]
(1) Press PF10 on the keyboard, and display the title screen of the PLC development software.
(2) Press PF8 ( 8 EXIT ) to end LIST4B. The prompt (A:\>) will appear on the screen, and the
program will return to the normal MS-DOS mode.

− 114 −
14. List Mode Function

14.4 List of List Mode Edit Functions


A list of edit functions used for editing the sequence program using the list mode is shown below.

Function item
List write Creation of new list
Correction of existing list
List read List read with step number
List read with device number
List read with command
List insertion Insertion in list command units
List delete Deletion of list in command units
Deletion of list with range designation

− 115 −
14. List Mode Function

14.5 Registering Edited Files


The following operation is used to register the ladder file name and text file name.

[Basic operation]
7.FILE → 2.WRITE → (Set the necessary setting number and file name.) →

[Operation procedure]
(1) Press function menu 7.FILE and the PLC FILE screen will display.
(2) Press 2.WRITE and the setting section will appear.
(3) Set the ladder file name, message file name 1 and text file name.
• Set the estimated file size for the ladder file.
• A maximum of 8 characters can be used for the file name.

(Example) To register the text file as “MELLIST”.


7.FILE → 2.WRITE → 3 → M E L L I S T →

PLC FILE

# 1 LADDER ( MELLADDER ) ( 4096/ 0 BYTE)


# 2 MESSAGE ( MELMSSG1 ) ( 4096)
# 3 TEXT ( MELLIST ) ( 12345)

#( ) NAME ( ) SIZE ( KBYTE)

2WRITE 5CONVT

− 116 −
14. List Mode Function

14.6 Converting Text Files and Ladder Files


The following operation is used to convert a text file into a ladder file and vice versa.

[Basic operation]
7.FILE → 5.CONVT → 1 → → Y →
2

[Operation procedure]
(1) Press function menu 7.FILE .
(2) Press 5.CONVT and the text file and ladder file conversion direction will appear.
(3) Designate the conversion direction.
• 1 : The ladder file will be converted to a text file.
• 2 : The text file will be converted to a ladder file.
The message "COMPLETED" will appear when the conversion is completed.

(Note) After conversion, the converted details will be written into each designated file. If the
designated file name (for example, a text file name when 1 is selected above) already
exists, the message "V1-FILE IS EXIST. OK (Y/N)" will display.
If Y is pressed here, the conversion process will start.
If N is pressed or if another operation is carried out, the conversion process will be
canceled.
(Note) There must be only one “END” command when converting from a text file to a ladder file.
An error will occur if there are several “END” commands.

(Example) To convert a ladder file into a text file


7.FILE → 5.CONVT → 1 →
VI-FILE IS EXIST. OK (Y/N)
Preset the ladder file name and text 1.LADDER > TEST 2.TEXT>LADDER (1)
file name before starting this
2.WRITE 5.CONVT
operation.
If the text file exists, the message
“VI-FILE IS EXIST. OK (Y/N)” will
display. Press Y if the file can be
replaced.
COMPLETED
The message “COMPLETED” will 1.LADDER > TEST 2.TEXT>LADDER (1)
appear when the conversion is
2.WRITE 5.CONVT
completed.

− 117 −
14. List Mode Function

14.7 Writing PLC Lists

14.7.1 Creating a new PLC list


This operation is used to create a new PLC list or to erase and existing PLC list.
[Basic operation]
4.LADDER → 1.LIST → 2.WRITE → 1.SET → Y → → Writing operation) →
→ 5.CONVT →

[Operation procedure]
(1) Register the edit file before creating a new circuit.
(2) Press function menu 4.LADDER and the sub menu will display.
(3) Press 1.LIST , 2.WRITE , 1.SET and the following interactive screen will display.
(4) Press Y , to create a new circuit or erase an existing circuit. Press 1.READ for other
applications.
(5) Only the bus bar on both sides and the step number will display if Y , are pressed.
(6) Start the writing operation.
(a) Create a program from the cursor position using the alphanumeric keys.
(b) When approximately one screen worth of program is written, press 5.CONVT , .
Note) A maximum of two screens worth of program can be created at once, but
5.CONVT , should be pressed after one screen if possible.
The final object will not be created on the screen if 5.CONVT , are not pressed
after the list is completed.
(c) The message “COMPLETED” will appear on the screen when 5.CONVT , are pressed
and the conversion is completed.
(Example) The following screen will display when the following are pressed:
4.LADDER → 1.LIST → 2.WRITE → 1.SET
PLC LIST

Note) The existing lists will all be deleted when CLEAR MEMORY FOR NEW PROGRAM?

Y , are pressed. *YES = "Y" "RETURN"


*NO = SELECT READ

FILE ( TEST )
MEM ( 0/ 512 STEP )

MODE LIST MENU WRITE SET #( )( )

1SET 2DEVICE 3COMMAND 4DATA MENUE

PLC LIST

Perform the writing operation on this screen. 0 15


1 16
2 17
3 18
4 19
5 20
6 21
7 22
8 23
9 24
10 25

− 118 −
14. List Mode Function

14.7.2 Modification of existing PLC list

An existing PLC list can be modified.

[Basic operation]
(Read out program list) → ↑ → 2.WRITE → (Input commands) → 5.CONVT →

[Operation procedure]
(1) Read out the PLC list to be modified with the read procedure.
(2) Move the cursor to the PLC list position to be modified. (Use ↓ ↑ keys)
(3) Press 2.WRITE and the step number at the cursor will display at the setting section.
Press 4.DATA and the data at the cursor position will display in the setting section.
• Move the cursor at the setting section with the → ← keys and modify the command.
(4) The program list can also be changed by inputting the step number and command instead of step
(3).
(5) Always press 5.CONVT , after modifying the PLC list.
• The message “COMPLETED” will appear in the message section after the PLC list is written
into the file. The step number will also be updated at this time.
(6) When the data is rewritten, the step numbers will be updated according to the number of steps in
the command. The step number on the left will also be updated.

POINT
(1) When the existing circuit where the step number is changed is modified, the step numbers
of the existing program and the CJ command jump destination will also be automatically
changed.

(Example 1) To change "R0070" to "R0170" at step 5 using the 4.DATA key.


1.LIST → 1.READ → 5 → → 4.DATA → → ••• ← → R 0 1 7 0

→ 5.CONVT →

PLC LIST

FILE ( TEST)
MEM ( 0/ 512 STEP )
MODE LIST MENU WRITE SET # ( )( )

1.SET 2.DEVICE 3.COMMAND 4.DATA MENUE

− 119 −
14. List Mode Function

(Example 2) To rewrite to after step 20 using the 2. WRITE key.


1.LIST → 1.READ → 2 → 0 → → 2.WRITE → L D SP M 1 0 →
5.CONVT →

PLC LIST

FILE ( TEST)
MEM ( 0/ 512 STEP )
MODE LIST MENU WRITE SET # ( )( )

1.SET 2.DEVICE 3.COMMAND 4.DATA MENUE

− 120 −
14. List Mode Function

14.8 Reading the PLC List

14.8.1 Reading the PLC list with step number

This operation is used to read the PLC list by designating a step number.

[Basic operation]
1.LIST → 1.READ → 1.SET → STEP NO. →

[Operation procedure]
(1) Press 1.LIST , 1.READ , 1.SET , STEP NO. , and one screen worth of data following the
designated number will display.
• The PLC list will be displayed from the start of that command even if in the middle of the
designated step number command.
(2) Press + and the list on the screen following the current PLC list screen will display.
Press - and the list on the screen before the current PLC list screen will display.
The succeeding or preceding screens can be displayed by pressing continuously.
(3) The cursor can be moved down one line by pressing ↓ . If pressed continuously, the cursor will
continue to move down. When pressed on the last line, the PLC list will scroll over to the right.
The cursor can be moved up one line by pressing ↑ . If pressed continuously, the cursor will
continue to move up, and will stop at the top line of the left column.

(Example 1) To read out the step number 300 list

1.LIST → 1.READ → 3 0 0 →

The screen on the right will appear


when the following are pressed:

FILE ( TEST)
MEM ( 400/ 512 STEP )
MODE LIST MENU READ SET # ( ) ( )
1.SET 2.DEVICE 3.COMMAND 4.DATA MENUE

Press + and the list on the last


screen will appear.

FILE ( TEST)
MEM ( 400/ 512 STEP )
MODE LIST MENU READ SET # ( ) ( )
1.SET 2.DEVICE 3.COMMAND 4.DATA MENUE

− 121 −
14. List Mode Function

14.8.2 Reading the PLC list with device number

This operation is used to read the PLC list by designating a device number.

[Basic operation]
1.LIST → 1.READ → 2.DEVICE → DEVICE NO. →

[Operation procedure]
(1) Press 1.LIST , 1.READ , 2.DEVICE , DEVICE NO. , and one screen worth of data from
the command with the designated device will appear.
If there are several commands with the designated device, the screen with the smallest step
number will display first.
(2) If reading is attempted after all program lists with the corresponding device number have been
displayed, the message “PROG NOT FOUND” will appear.

(Example) To read out "D500"

1.LIST → 1.READ → 2.DEVICE → D 5 0 0 →

PLC LIST

FILE ( TEST)
MEM ( 400/ 512 STEP )
MODE LIST MENU READ SET # ( )( )
1.SET 2.DEVICE 3.COMMAND 4.DATA MENUE

When the key is pressed again, the next "D500" will be searched for and displayed.

− 122 −
14. List Mode Function

14.8.3 Reading the PLC list with command

This operation is used to read a PLC list containing a designated command.

[Basic operation]
1.LIST → 1.READ → 3.COMMAND → COMMAND CODE →

[Operation procedure]
(1) Press 1.LIST , 1.READ , 3.COMMAND , COMMAND CODE , , the PLC list with
the designated command will display from the list with the smallest number.
If is pressed again, the PLC list with the next smallest number will display.
(2) If reading is attempted after all commands have been displayed, the message “PROG NOT
FOUND” will appear.

(Example) To read out "MOV"

1.LIST → 1.READ → 3.COMMAND → M O V →

PLC LIST

FILE ( TEST)
MEM ( 400/ 512 STEP )
MODE LIST MENU READ SET # ( )( )
1.SET 2.DEVICE 3.COMMAND 4.DATA MENUE

When the key is pressed again, the next "MOV" will be searched for and displayed.

− 123 −
14. List Mode Function

14.9 Inserting a PLC List


This operation is used to insert the PLC list in command units.

[Basic operation]
(Program→ list read ↑ 3.INSERT → (Input command) → → 5.CONVT →
operation)

[Operation procedure]
(1) Display the position to where the PLC list is to be inserted using the circuit read operation.
(2) Move the cursor to the position where the PLC list is to be inserted. (Use ↑ ↓ )

(3) Press 3.INSERT and the step number at the cursor position will display in the setting section.
Press 4.DATA and the data at the cursor position will display in the setting section.
(4) Write the command to be inserted in the setting section, and press .
(5) Always press 5.CONVT after inputting the command.
• The message “COMPLETED” will appear in the message display section when the PLC list has
been written into the file. The PLC list read will display again after being written into the file.
The step number will be updated simultaneously.

POINT
(1) When the existing circuit where the step number is changed is modified, the step numbers
of the existing program and the CJ command jump destination will also be automatically
changed.

(Example) To insert "AND M123" at step 5.

1.LIST → 1.READ → 5 → → 3.INSERT → A N D SP M 1 2 3 →


Reading of step number 5

→ → 5.CONVT →

PLC LIST

FILE ( TEST)
MEM ( 400/ 512 STEP )
MODE LIST MENU INSERT # ( 5) ( AND M123 )
1.SET 2.DEVICE 3.COMMAND 4.DATA MENUE

− 124 −
14. List Mode Function

14.10 Deleting a PLC List


This operation is used to delete the PLC list in command units or in a batch.

[Basic operation]
(Program→list read (No. of steps to
↑ 4.DELETE → be deleted)→ → 5.CONVT →
operation)

[Operation procedure]
(1) Display the PLC list to be deleted with the read operation.
(2) Move the cursor to the PLC list position to be deleted. (Use ↑ ↓ )
(3) Press 4.DELETE and the step number at the cursor position will display in the setting section.
To delete several commands in a batch, set the last step to be deleted in the brackets on the right
of the setting section.
(4) Press and the step number displayed in the setting section will be deleted.
(5) Always press 5.CONVT after inputting the command.
• The message “COMPLETED” will appear in the message display section when the PLC list has
been written into the file. The read PLC list will display again after being written into the file.
The step number will be updated simultaneously.

POINT

(1) When part of the PLC list is deleted, the step numbers of the following program and the
CJ command jump destination will also be automatically changed.

(Example 1) To delete 1 command.

1.LIST → 1.READ → 1.SET → 5 → → 4.DELETE → → 5.CONVT →


Reading of step number 5

PLC LIST

FILE ( TEST)
MEM ( 400/ 512 STEP )
MODE LIST MENU INSERT # ( 5) ( )
1.SET 2.DEVICE 3.COMMAND 4.DATA MENUE

− 125 −
14. List Mode Function

(Example 2) To delete from step 5 to 19 in one batch.

1.LIST → 1.READ → 1.SET → 5 → 4.DELETE → 1 9


→ 5.CONVT →

PLC LIST

FILE ( TEST)
MEM ( 400/ 512 STEP )
MODE LIST MENU INSERT # ( 5) ( 19 )
1.SET 2.DEVICE 3.COMMAND 4.DATA MENUE

− 126 −
15. Messages

15. Messages
15.1 Alarm Messages

No. Message Display conditions Remedies


0 Blank
The END command is not found Display the end of the circuit on the screen,
1 NO END in the sequence program. move the cursor to the position displaying
the step and input P255.
OPERATING The operation method was Press the correct key.
2 ERROR mistaken.
DEVICE NO. An invalid device number was Set a valid device number.
3 ERROR input in the write mode.
A circuit that cannot be converted Revise to the correct circuit.
4 LADDER ERROR is in the circuit mode.
PROGRAM SIZE
5 OVER
6 NOT WRITE
The key input operation was Press the correct key.
7 SETTING mistaken while creating a
ERROR message.
A number of steps exceeding the Change the number of designated steps.
STEP NO. memory capacity was designated
8
ERROR when reading the sequence
program.
The parameter and set memory Increase the memory capacity.
PROGRAM SIZE
9 capacity was exceeded during
OVER
circuit conversion.
A code that cannot be converted Rewrite to a correct command.
10 COMMAND into a sequence command was
CODE ERROR found.
SETTING
11 ERROR
The designated program was not Input the correct program name (file name)
12 PROG NOT
found during the search. into the file designation section.
FOUND
The same coil was designated in The same coil can be programmed (used),
COIL ALREADY
13 duplicate when creating the but check that the same coils have not been
USED
sequence program. programmed by mistake.
CIRCUIT The number of returns in the Change the circuit so that there are less
14 CONTINUATIVE circuit exceeded eight returns. than eight or less returns.
SIZE OVER
SETTING The data input in the message Input the data again.
15 screen is incorrect.
ERROR
CIRCUIT Two returns return two or more Change the ladder circuit so that the two
16 CONTINUATION times in the circuit. returns return only once.
ERROR
An invalid value was input for the Input a value within the range again.
17 DEVICE ERROR device.
Display of the comment was Create a contact or coil comment.
18 NO COMMENT attempted with no existing
DATA contact or coil comment.
FILE TYPE The ladder file and message file Register as a correct file.
19 were mistaken and registered.
INCORRECT

− 127 −
15. Messages

15.2 Messages

No. Message Display conditions Remarks


0
DELETE Displayed when one ladder circuit is deleted.
1
1-CIRCUIT
Displayed when the last program was read during
2 LADDER END
the circuit display.

DISPLAY OVER Displayed when the display of a circuit covering


3 two screens was attempted.
FLOW
DELETE Displayed when the circuit block not having a step
4 number before circuit conversion is deleted.
1-CIRCUIT

5 COMPLETED Displayed when the conversion is completed.

Displayed while a coil comment or contact


6 DISPLAYING
comment is displayed.
COMMENTS
Displayed when a ladder circuit is edited and
7 PRESS <CNV> reading is attempted without converting the file.
Displayed when the message has not been
8 SELECT INIT!
initialized.
Displayed when conversion or initialization is
9 EXECUTION
being performed.
Displayed if a key is pressed when a mode is not
10 SELECT MODE
selected.
Displayed when a function must be selected in the
11 SELECT
next operation.
FUNCTION
Displayed when a ladder or message file name is
12 SELECT FILE!
not registered.

− 128 −
Revision History

Sub-No. Date of revision Revision details


∗ April 1998 First edition created.
 1998 MITSUBISHI ELECTRIC CORPORATION
ALL RIGHTS RESERVED
MITSUBISHI ELECTRIC CORPORATION
HEAD OFFICE: MITSUBISHI DENKI BLD. MARUNOUCHI. TOKYO 100 TEL:03-218-3426

You might also like