Você está na página 1de 185

FUJI PROGRAMMABLE CONTROLLER

Handy Loader
USER'S MANUAL
Type: NW0H-NE

FEH402

Preface

This Users Manual explains the specifications of the PC Card Interface modules. Read this manual carefully to ensure
correct operation.
When using modules or peripheral devices, be sure to read the corresponding users manuals listed below.
1. Appearance
Make sure that outer package is neither damaged nor cracked.
2. Accessories
(1) Loader cable (NB-EC0100)
(2) Users manual (this manual)
This users manual explains the specifications, operation, and programming method of the Handy Loader, which is for use
with FLEX-PC N and SPB series PLC.
When using the Handy Loader, refer to the following manuals, as necessary:
Title

Manual No.

Contents

SPB series <Hardware>

FEH401

Explains hardware of SPB.

SPB series <Instruction>

FEH400

Explains instruction of SPB.

NB0 series

FEH503

Explains hardware and software of NB0.

NB0 series <Introduction>

FEH504

Introduction to programming methods with control examples.

NB -P/E series <Hardware>

FEH510

Explains hardware of NB -P/E.

NB U/W series <Hardware>

FEH509

Explains hardware of NB U/W.

NB series <Software>

FEH512

Explains software of NB.

NB3 series <Hardware>

FEH518

Explains hardware of NB3.

NJ series <Hardware>

FEH520

Explains hardware of NJ.

NJ series <Software>

FEH500

Explains software of NJ.

NS series <Hardware>

FEH550

Explains hardware of NS.

NS series <Software>

FEH501

Explains software of NS.

In addition to the above manuals, the following Fuji Electric FA Components & Systems Co., Ltd. site offers various
manuals and technical documents associated with FLEX-PC N and SPB.
URL http://www.fujielectric.co.jp/fcs/eng/

Notes
1. This manual may not be reproduced in whole or part in any form without prior written approval by the manufacturer.
2. The contents of this manual (including specifications) are subject to change without prior notice.
3. If you find any ambiguous or incorrect descriptions in this manual, please write them down (along with the manual
No. shown on the cover) and contact FUJI.

* Microsoft, Windows are trademarks of Microsoft Corporation in the USA and other countries.
* Intel486 and Pentium are trademarks or registered trademarks of Intel Corp.

Safety Precautions

Be sure to read the Safety Precautions thoroughly before using the module.
Here, the safety precaution items are classified into Warning and Caution.

Warning : Incorrect handling of the device may result in death or serious injury.
Caution

: Incorrect handling of the device may result in minor injury or physical damage.

Even some items indicated by Caution may also result in a serious accident.
Both safety instruction categories provide important information. Be sure to strictly observe these instructions.

Warning
The liquid (liquid crystal) on the liquid crystal display is harmful. If it has been damaged, it must not get into the mouth.
If the skin or clothes are stained with it, rinse them.

Caution
Keep in the environment specified in the operating instructions and manual.
Do not use one found damaged or deformed when unpacked, otherwise, failure or erratic operation might be caused.
Do not shock the product by dropping or tipping it over, otherwise, it might be damaged or troubled.
Be sure to use the specified type of cable (length) described in the operating instructions. Otherwise, communication
will failure.
Operate in the environment specified in the operating instructions and manual. High temperature, high humidity,
condensation, dust, corrosive gases, organic solvents, excessive vibration or shock might cause electric shock, fire,
erratic operation or failure.
Be careful not to get dust on the connectors because dust might cause failure.
Do not push the sheet keys of the product with tweezers, tools, or other objects with a sharp tip, or do not push them with
excessive force, otherwise, it might be damaged.
Sufficiently make sure of safety before program change, forced output, starting, stopping or anything else during a run.
The wrong operation might break or cause machine problems.
Follow the regulations of industrial wastes when the device is to be discarded.
Modification and dismantling of the device are forbidden as they may cause a failure of the device.
Do not pull or swing the loader cable, otherwise failure might be caused.

Revisions

*Manual No. is shown on the cover.

Printed on

*Manual No.

Revision contents

Sep. 2001

FEH402

First edition

Contents

Preface
Safety Precautions
Revisions
Contents
Page

Section 1 General ..........................................................................................1-1


1-1
1-2
1-3
1-4

Overview ..........................................................................................................................................
Applicable PCs ...............................................................................................................................
Connection to PC ...........................................................................................................................
Notes on Using the Handy Loader ...............................................................................................

1-1
1-1
1-2
1-3

Section 2 Specifications ...............................................................................2-1


2-1 General Specifications .................................................................................................................. 2-1
2-2 Basic Specifications ...................................................................................................................... 2-1
2-3 Outside Specifications .................................................................................................................. 2-2
2-3-1 Name and function of each part ............................................................................................................ 2-2
2-3-2 Dimensions ............................................................................................................................................ 2-5
2-3-3 Accessories ........................................................................................................................................... 2-5

2-4 Functions ........................................................................................................................................ 2-6


2-5 Initial Screen for Connecting to PC .............................................................................................. 2-7
2-6 Key Operation Reference List ....................................................................................................... 2-8

Section 3 Programming Functions ..............................................................3-1


3-1 Programming Modes ...................................................................................................................... 3-1
3-2 Writing a Program ........................................................................................................................... 3-4
3-3 Writing a Sequence Instruction .................................................................................................... 3-5
3-3-1 Writing an LD instruction and OUT instruction ...................................................................................... 3-5
3-3-2 Bit specification of the register area .................................................................................................... 3-14
3-3-3 Writing a pointer instruction ................................................................................................................ 3-16
3-3-4 Writing direct-input and direct-output instructions .............................................................................. 3-21
3-3-5 Writing a differential contact instruction .............................................................................................. 3-23

3-4 Writing a Data Instruction ............................................................................................................ 3-25


3-4-1 Function No. list ................................................................................................................................... 3-26
3-4-2 Write example 1 ................................................................................................................................... 3-32
3-4-3 Write example 2 ................................................................................................................................... 3-37
3-4-4 Write example 3 ................................................................................................................................... 3-39

3-5 Changing an Instruction .............................................................................................................. 3-41


3-5-1 Changing sequence instruction ........................................................................................................... 3-42
3-5-2 Changing a data instruction ................................................................................................................ 3-43

3-6 Inserting an Instruction ............................................................................................................... 3-44


3-7 Deleting an Instruction ................................................................................................................ 3-46
3-7-1 Deleting a single instruction ................................................................................................................ 3-46
3-7-2 Deleting the program range specification ........................................................................................... 3-47
3-7-3 Writing NOP instructions within a specified range .............................................................................. 3-49
3-7-4 Deleting multiple NOP instructions (NOP delete) ............................................................................... 3-50
3-7-5 Writing NOP instructions at one time (program memory all clear) ..................................................... 3-51

Contents

3-8 Reading a Program ...................................................................................................................... 3-52


3-8-1 Reading a program step ...................................................................................................................... 3-52
3-8-2 Reading (searching for) a device ........................................................................................................ 3-55
3-8-3 Reading (searching for) an instruction ................................................................................................ 3-57
3-8-4 Reading a pointer ................................................................................................................................ 3-60

Section 4 Monitor and Test Functions .........................................................4-1


4-1 Monitoring ....................................................................................................................................... 4-1
4-1-1 Conductivity check ................................................................................................................................ 4-1
4-1-2 Monitoring devices ................................................................................................................................ 4-2
4-1-3 Monitoring a timer or counter ................................................................................................................ 4-8

4-2 Test ................................................................................................................................................... 4-9


4-2-1 Forced ON/OFF (changing bit device contents) ................................................................................... 4-9
4-2-2 Changing the contents of a word device ............................................................................................. 4-11
4-2-3 Changing contents of 32-bit word data ............................................................................................... 4-13
4-2-4 Changing the contents of floating-point data ...................................................................................... 4-15
4-2-5 Changing the current value of timer/counter instruction ..................................................................... 4-16
4-2-6 Changing a timer/counter setting value .............................................................................................. 4-17
4-2-7 Changing the setting value area of timer/counter using indirect setting ............................................ 4-18

Section 5 Auxiliary Function ........................................................................5-1


5-1
5-2
5-3
5-4

PC Start/Stop ..................................................................................................................................
Program Check ...............................................................................................................................
Parameter Setting ...........................................................................................................................
Password .........................................................................................................................................

5-1
5-2
5-5
5-9

5-4-1 Registering a password ......................................................................................................................... 5-9


5-4-2 Operation when a password is set ...................................................................................................... 5-10
5-4-3 Canceling a password ......................................................................................................................... 5-10
5-4-4 If you forget a password: ..................................................................................................................... 5-10

5-5 Message Display .......................................................................................................................... 5-11


5-5-1 System messages (error messages) .................................................................................................. 5-11
5-5-2 User messages ................................................................................................................................... 5-14

5-6 RAS ................................................................................................................................................ 5-18


5-6-1 System RAS ........................................................................................................................................ 5-18
5-6-2 Instruction RAS ................................................................................................................................... 5-20
5-6-3 System RAS area clear ....................................................................................................................... 5-21
5-6-4 Optional RAS ....................................................................................................................................... 5-22

5-7 Data Transfer to/from the Memory Card or Memory Cassette on the Processor .................. 5-24
5-7-1 Data transfer to/from the memory card on the processor ................................................................... 5-24
5-7-2 Data transfer to/from the memory cassette on the processor ............................................................ 5-27

5-8 Device Conversion .......................................................................................................................


5-9 Memory Clear ................................................................................................................................
5-10 Calendar Setting .........................................................................................................................
5-11 Buzzer ON/OFF ...........................................................................................................................
5-12 Modules (Expansion Function) .................................................................................................

5-38
5-39
5-42
5-43
5-44

5-12-1 PROM writer and EEPROM read/write unit ...................................................................................... 5-44

5-13 Setting the PC Station Number ................................................................................................. 5-55


5-14 User Program Storage in Memory in Handy Loader ............................................................... 5-56

Contents

Section 6 User Macrocommands ................................................................6-1


6-1 Handling User Macros ................................................................................................................... 6-1
6-1-1 Using the Handy Loader (NW0H-NE) ................................................................................................... 6-1
6-1-2 Notes on using the Handy Loader ........................................................................................................ 6-1

6-2 User Macro Configuration ............................................................................................................. 6-2


6-2-1 Storing and execution of user macro .................................................................................................... 6-2
6-2-2 Configuration of user macro .................................................................................................................. 6-3

Appendix ...................................................................................................App.-1

Section 1 General

Page
1-1 Overview ...................................................................................................................... 1-1
1-2 Applicable PCs ............................................................................................................ 1-1
1-3 Connection to PC ........................................................................................................ 1-2
1-4 Notes on Using the Handy Loader ............................................................................ 1-3

Section 1 General
1-1 Overview

The Handy Loader is a programming tool that, when connected to a FLEX-PC N series PC and SPB-series PC, can
access the PC memory.
It provides the following operations.
Item

Programming tool

Writing a program

Writing sequence and data instructions

Inserting an instructions

Adding or inserting sequence and data instructions

Deleting an instruction

Deleting a sequence instruction or a data instruction


Deleting program within a specified range
Program memory clear at a time

Reading a program

Reading with a step number or a device identifier


Reading a sequence instruction or a data instruction

Monitoring a program

Check continuity
Monitoring a bit device or a word device
Monitoring a timer or a counter

Testing

Forced bit ON/OFF


Changing data of a word device
Changing the current/setting value of timer or counter

Auxiliary function

PC diagnosis
Parameter setting
Transfer between PC memory and memory cassette
Transfer between PC memory and memory in loader

1-2 Applicable PCs


The Handy Loader can be used with the following PCs.
Series

PC type (Processor type)

NB0 series

NB0-P14, NB0-P24
NB0U14, NB0U24

NB series
(NB -P/E)

NB1-P24, NB1-P40, NB1-P56


NB2-P24, NB2-P36, NB2-P56, NB2-P90

NB series
(NB -U/W)

NB1U24, NB1U40, NB1U56


NB2U24, NB2U36, NB2U56, NB2U90

NB3 series

NB3-P34

NJ series

NJ-CPU-A8, NJ-CPU-E4
NJ-CPU-B16, NJ-CPU-B32

NS series

NS-CPU-A32, NS-CPU-A64
NS-CPU-B32, NS-CPU-B64

SPB series

NW0P20, NW0P30
NW0P40, NW0P60

1-1

1-3 Connection to PC

Insert the modular plug of the loader cable attached into the modular jack of a basic unit for the SPB, NB0, NB, and NB3
series, or a CPU module for the NJ and NS series.

SPB series

NB series

NJ series

NS series

The two plugs on the both ends of the loader cable is the same ones. Either plug can be connected to a PC or the Handy
Loader.

Modular connector

1-2

1-4 Notes on Using the Handy Loader

(1) Be sure to transfer any program you have created to memory cassette or cassette tape in order to store it.

Transferring memory card


Please transfer to the memory card or the memory cassette, and preserve the program.
See 5-7-1 Module for details.

Transferring memory cassette


Two types of memory cassettes, EPROM and EEPROM, are available.

The EEPROM memory cassette which has been inserted into the PC, is operable if only the Handy Loader is
connected to the PC.
Transferring a program to the EPROM memory cassette requires a PROM writer (N-HLD-PRW), a peripheral device.
See, 5-7-2 Data transfer to/from the memory cassette on the processor and 5-12 Modules for details.

Note: The PROM writer can be attached to and used with either EEPROM or EPROM memory cassette.
An EEPROM read/write unit, which can be used with only an EEPROM memory cassette, is also available.

Memory cassette
Type: N-MP , NN-MBP
N-ME , NN-MBE

PROM writer
Type: N-HLD-PRW
EEPROM read/write unit
Type: NN-HLD-EERW

Handy loader
Type: NW0H-NE

1-3

1-4 Notes on Using the Handy Loader

(2) Do not drop the Handy Loader.

(3) Do not install the equipment in the following environment.


The equipment is subjected to direct sunlight. Ambient temperature exceeds the range of 0 to 50C.
Relative humidity exceeds the range of 20 to 90%. Condensation occurs due to rapid temperature change.
Corrosive gas or flammable gas is present.
Dust, iron powder or other electrically inductive particles, oil mist, saline solution, or organic solvent is present at a
substantial rate.
A strong electric or magnetic field is generated.
The equipment is directly subjected to strong mechanical vibration or shocks.
(4) Pay attention to static electricity.
Static electricity can destroy electronic devices. In a dry ambient your body can be charged up to a very high static
voltage. Before touching the electronic devices, discharge your body by touching a metallic object grounded to the
earth potential.
(5) Never use solvent to clean the equipment.
Never use thinner or other solvent to clean the surfaces of the equipment. If you do, the surfaces may be
discolored or otherwise impaired.
To clean the surfaces of the equipment, use a cloth moistened with warm water.
(6) Pay attention on the conditions of storage.
Do not store the equipment in adverse ambient conditions of high temperature and high humidity.
(Permissible ambient temperature range for storage is -20 to +70C.)

1-4

Section 2 Specifications

Page
2-1 General Specifications ............................................................................................... 2-1
2-2 Basic Specifications ................................................................................................... 2-1
2-3 Outside Specifications ............................................................................................... 2-2
2-3-1 Name and function of each part ............................................................................................ 2-2
2-3-2 Dimensions ........................................................................................................................... 2-5
2-3-3 Accessories .......................................................................................................................... 2-5

2-4 Functions ..................................................................................................................... 2-6


2-5 Initial Screen for Connecting to PC ........................................................................... 2-7
(1) Initial screen ............................................................................................................................................ 2-7
(2) When a PC fault occurs .......................................................................................................................... 2-7
(3) When a password is set on the program ................................................................................................ 2-7

2-6 Key Operation Reference List .................................................................................... 2-8

Section 2 Specifications
2-1 General Specifications

General specifications of the Handy Loader are given below.

Item
Physical conditions

Mechanical conditions

Installation conditions

Specification
Operating temperature

0 to +55C

Storage temperature

-20 to +70C

Relative humidity

20 to 90% RH (no condensation)

Dust

No electrically conductive dust present

Corrosive gas

No corrosive gas present


No droplets of organic solvent, cutting oil, etc.

Vibration

JIS C 0040, crossover frequency 57Hz, 19.6m/s2


2 hours in 3 axis directions

Shock

JIS C 0041
malfunction shock 147m/s2, endurance shock 294m/s2,
2 times in 3 axis directions

Cooling

Self cooling

Internal current consumption Approx. 500mA (with PROM writer installed)


Mass

Approx. 200g

Dimensions

W90 x H148 x D35 (unit: mm)

2-2 Basic Specifications


Item

Specification

Display

LCD, 16 characters x 2 lines, back-lit

Keyboard

Membrane keypad, 40 keys, with electronic buzzer

User program memory

Preserves the memory with built-in a Handy Loader

Peripheral devices

PROM writer (N-HLD-PRW)


EEPROM read/write unit (NN-HLD-EERW)
(Can be installed on the loader)

Communication with PC

RS-422

2-1

2-3 Outside Specifications

2-3-1 Name and function of each part


The name and function of each part of the Handy Loader is as follows:
4) Expansion interface connector

5) Modular jack

1) LCD display

6) Hanger hole

2) LCD contrast adjustment screw

N
NW0H

RD
INS
MNT
AUX
TEST
WR DEL
LD
X

AND
M

OR
L

LDI
Y

ANI
S

ORI
T

OUT ANB ORB


C
D
E
MC
A

HELP CLR

,
W
F

SET
8

PLS
9

RST
4

PLF MCR RET


5
6
7

INV
B

FNC
P/I

SP
STEP

K/H
-

NOP MPS MRD MPP END


0
1
2
3

GO

3) Operation keypad

Attaching holes to a PC
(NB series only)

1) LCD display
A back-lit liquid crystal display (LCD) (16 characters x 2 lines) displays programs, data, and various messages.
2) LCD contrast adjustment screw
Adjust the LCD contrast by turning this with a Phillips screwdriver.

2-2

2-3 Outside Specifications

3) Operation keys
Used for programming and monitoring. Consists of a sheet keyboard with an electronic buzzer at the touch of click.
Key functions
RD
INS MNT
AUX
WR DEL TEST

LD
X

AND
M

OR
L

LDI
Y

ANI
S

ORI
T

OUT ANB ORB


C
D
E
MC
A

HELP

RD
WR

INS
DEL

MNT
TEST

AUX determine the Handy Loader operation mode.

CLR

,
FNC
P/I

SET
8

PLS
9

RST
4

PLF MCR RET


5
6
7

INV
B

SP

HELP key:

STEP

Used to display the number of PC program steps and data instruction number list,
and to switch numeric data display between hexadecimal and decimal.

K/H

NOP MPS MRD MPP END


0
1
2
3

FNC

Mode keys:

GO

key : Used to input data instructions.

,
SP

P/I

STEP

K/H

key : Used to input data instructions, to monitor devices, and to process bits in the register area.

key : Used for pointer instructions (jump instruction and specification of an interrupt program jump destination.)

key : Used to specify a step number.

key : Used to input a constant.

K: Specifies decimal.
H: Specifies hexadecimal.

key : Used to specify a negative constant.

keys : Used to move a step and input a differential contact instruction.

GO

key : Causes the PC to execute an operation, such as storage of a program.


key : Cancels the key input.

CLR

Other keys

: Used to input instruction words, devices, addresses, and numeric values.

2-3

2-3 Outside Specifications

4) Expansion interface connector


This connector is used to connect the PROM writer or the CMT interface. Remove the cover when using this connector.
(Please install the cover when not connecting it.)

PROM writer
EEPROM read /write unit

Screw

5) Modular jack for the loader cable


A modular plug of the loader cable is connected.
(Please install the cover when not connecting it.)

6) Hanger hole
When hanging the Handy Loader on a wall, use this (No hook supplied).

7) Attaching holes
Use the screws (PC accessories) to fix the Handy Loader to the PC.
(NB series only)

2-4

2-3 Outside Specifications

2-3-2 Dimensions

35

90
8

RD
WR

INS
DEL

LD
X

AND
M

OR
L

LDI
Y

ANI
S

ORI
T

HELP CLR

OUT ANB ORB


C
D
E
MC
A

MNT
AUX
TEST

148

NW0H

FNC

SET
8

PLS
9

RST
4

PLF MCR RET


5
6
7

INV
B

P/I

SP
STEP

K/H

NOP MPS MRD MPP END


0
1
2
3

GO

25

82

2-3-3 Accessories

A loader cable, NB-EC0100 (straight cord: 1000mm),


is attached to the Handy Loader.

Loader cable (Sold separately, as needed)


Type

Length

Remarks

NB-EC0030

300mm

Straight cord

NB-EC0050

500mm

Straight cord

NB-EC0100

1000mm

Same as the one which is attached to the Loader

NB-EC0200

2000mm

Straight cord

N-HLD-C2

2000mm

Curled cord

2-5

2-4 Functions

Operation mode

Item

Operating

Stopped

Write

Programming Functions

Instruction write
Device change (contact change)
Instruction work insert, delete, change
Designated program range delete
-

NOP collective delete


NOP collective write
Pointer write

Read

Read from starting step


Read by step No.
Instruction reference and read
Read when there are multiple occurrences of the same contact in program
Read when there are data instructions in program
Device reference and read
Pointer read (with interrupt)
Pointer read (with jump instruction)

Monitor / Test

Monitor / Test Functions

Continuity check
Device monitor
Timer/counter current value monitor
Compulsive ON/OFF
Device data change
Timer/counter current value/setting change

Auxiliary Functions

Processor activation/deactivation
-

Program check
Parameter setting

Password
Message display
RAS
Data transfer to memory cassette

Device change

Memory clear
Calendar setting
Buzzer ON/OFF
Module (extended adapter function)
PC No. setting (communication module)
User program save to handy loader internal memory
: Possible
: Transfer to CPU is not possible
* Some parameter settings are recognised after the power is turned OFF and back ON.

2-6

2-5 Initial Screen for Connecting to PC

This section shows a typical screen on the LCD display.


(1) Initial screen

HANDY LOADER
HW0H-NE

V .

(2) When a PC fault occurs


If a fault occurs in the PC, the initial screen shown above appears for about a second, followed by this screen:

SYSTEM MESSAGE
Error message appears.

Press the

CLR

key to return to the initial screen.

Press the

AUX

key and mode selection keys to display each function.

(3) When a password is set on the program


The initial screen shown above appears for about a second, followed by this screen.

KEY IN PASSWORD
Password input wait status

After typing a password, press the G O key to display the initial screen.
If the password is wrong, the following message appears:

KEY IN PASSWORD
PASSWORD ERROR
Press CLR to return to the password input wait status display.

Note
To delete a program and password when the password is not known, press the
press

GO

The following screen appears.

PC ALL CLEAR ?
OK

[GO]

To execute, press

GO

The initial screen will appear.

2-7

,
SP

key eight times and then

2-6 Key Operation Reference List

Key operation for each function of the Handy Loader is listed below. For the details on the actual operation, see Chapter 3 to 5.

Key operation list


Item
Read

Page

Key operation
First

3-52

RD
WR

Step No.
STEP

Device search

RD
WR

(Step No.)

3-54

GO

[Device identifier]

SP

[Device address]

GO

3-55

To search again
press GO
Instruction search

RD
WR

[Instruction
word]

[Device identifier]

[Device address]

GO

3-57

Instruction requiring no device

To search again
press GO
Conductivity check

MNT
TEST

Programming Memory clear

Write

STEP

RD
WR

RD
WR

RD
WR

RD
WR

[Step No.]
NOP
0

[Instruction
word]

GO

MC
A

4-1

GO

[Device
identifier]

3-51

GO

[Device
identifier]

GO

3-4

CLR

Insertion

INS
DEL

Delete

Monitor
and
Test

Reading bit data


and Forced ON/OFF

Reading the internal


register and
Changing the data
in it
Auxiliary menu screen

[Program input]

INS

INS

DEL

DEL

MNT

TEST

SP

MNT
TEST

,
SP

3-44

GO

Reading the program step to


be deleted
DEVICE

GO

WORD DEVICE

MNT
TEST

GO

3-46

GO

SET
8

: Forced ON

RST
4

: Forced OFF

MNT

4-11

TEST

,
SP

AUX

K/H

K/H

NUMERIC VALUE

[Select the subsequent auxiliary function menu]

2-8

4-9

GO

2-6 Key Operation Reference List

Item
Auxiliary

Page

Key operation
1. PC run/stop

< 1 RUN/STOP SW screen >


GO

GO

5-1
(Return to the auxiliary menu 1.)

CLR

1) PC stops if it has been stopped.


2) PC starts operation if it has been stopped.
2. Program check

< 2 PROGRAM CHECK screen >

5-2

No error

GO

CLR

3. Parameter

Return to the
auxiliary menu 2.

(Next
error)

Error

: displays the previous error.]

< 3 PARAMETER screen >

5-5

1) Reading
(Parameter area address)

GO

GO

2) Change
(New Parameter value)

GO

(Displays the
previous address)
(Displays the
next address)
GO

GO

CLR

CLR

Return to address
input screen
4. password

< 4 PASSWORD screen >

Return to the
auxiliary menu 3.
5-9

[Go to (1) or (2)]

GO

(1) To register:
(Password)

GO

GO

(2) To delete:
GO

5. Message display

< 5 MSG DISPLAY screen >


GO

(System message)
(User message)

CLR

(Return to auxiliary menu 5.)

2-9

CLR

CLR

Return to the
auxiliary menu 4.

5-11

2-6 Key Operation Reference List

Item
Auxiliary

Page

Key operation
6. RAS

< 6 RAS screen >

[Go to (1) to (4)]

GO

5-18

(1) System RAS


GO

System RAS
address input

GO

System RAS
display

CLR

(2) Instruction RAS


Instruction
RAS display

GO

Next RAS
display

(3) System RAS clear


GO

GO

(4) Option RAS


GO

Display from
address 000

(Address area)
[

: Displays the previous address,


CLR

7. Memory
Cassette
Transfer

CLR

9. Memory clear

GO

: Displays the next address.]

(Return to the auxiliary menu 6.)

5-24

< 7 MEM CST XFER screen >


GO

or

GO

8. Converting
a Device
Address

CLR

selects a function.)

GO

CLR

(Return to the function selection.)

CLR

(Return to the auxiliary menu 7.)

5-38

< 8 DEV CONV screen >


GO

Conversion source
device address

GO

CLR

CLR

< 9 MEMORY CLEAR screen >

GO

New device
address

(Return to the the auxiliary menu 8.)

GO

[ Go to (1), (2), (3), or (4) ]

1) Parameter clear
GO

GO

CLR

2) Program clear
GO

Return to the the


auxiliary menu 9.

GO

3) Data clear
GO

GO

4) Memory all clear


GO

2-10

CLR

GO

5-39

2-6 Key Operation Reference List

Item
Auxiliary

Page

Key operation
10. Calender
setting

5-42

< 10 CALENDAR SET screen >


GO

CLR

(Year setting)

Return to the CALENDAR


SET screen.

(Month setting)
(Day setting)
(Hour setting)
(Minute setting)
(Second setting)
(Day of the week setting)
GO

11. Buzzer ON/OFF

5-43

< 11 Buzzer ON/OFF screen >


GO

( Return to the Buzzer ON/OFF screen.)

CLR

(1) Set to OFF when the buzzer has been ON.


(2) Set to ON when the buzzer has been OFF.
12. Module

< 12 Module screen >

5-44

When the PROM writer is mounted.


GO

GO

(Press

or

key to select the memory cassette type.)

GO

(Press

or

key to select the function.)

GO

13. Setting PC
Station No.

GO

CLR

(Return to the function selection.)

CLR

(Return to the memory cassette type


selection.)

CLR

(Return to the auxiliary menu 12.)

< 13 PC No. SET screen >


GO

(Setting slot No.)


(Setting PC Station No.)

GO

CLR

(Return to the auxiliary menu 13.)

2-11

5-55

2-6 Key Operation Reference List

Item
Auxiliary

14. Transfer

Key operation

Page

<14 TRANSFER screen >

5-56

GO

(1) PC

or

select a area

GO

Loader
GO

(2) Loader

GO

CLR

GO

(3) Verification
GO

GO

(4) Deletion of memory with built-in loader.


GO

2-12

CLR

Return to the
auxiliary menu
14.

PC
GO

CLR

GO

Section 3 Programming Functions

Page
3-1 Programming Modes .................................................................................................. 3-1
3-2 Writing a Program ....................................................................................................... 3-4
3-3 Writing a Sequence Instruction ................................................................................. 3-5
3-3-1 Writing an LD instruction and OUT instruction ...................................................................... 3-5
3-3-2 Bit specification of the register area .................................................................................... 3-14
3-3-3 Writing a pointer instruction ................................................................................................ 3-16
(1) Writing a jump instruction and jump pointer .......................................................................................... 3-16
(2) Writing an interrupt pointer: In for an interrupt program ........................................................................ 3-18

3-3-4 Writing direct-input and direct-output instructions ............................................................... 3-21


3-3-5 Writing a differential contact instruction .............................................................................. 3-23

3-4 Writing a Data Instruction ........................................................................................ 3-25


3-4-1 Function No. list .................................................................................................................. 3-26
3-4-2 Write example 1 .................................................................................................................. 3-32
3-4-3 Write example 2 .................................................................................................................. 3-37
3-4-4 Write example 3 .................................................................................................................. 3-39

3-5 Changing an Instruction ........................................................................................... 3-41


3-5-1 Changing sequence instruction ........................................................................................... 3-42
3-5-2 Changing a data instruction ................................................................................................ 3-43

3-6 Inserting an Instruction ............................................................................................ 3-44


3-7 Deleting an Instruction ............................................................................................. 3-46
3-7-1 Deleting a single instruction ................................................................................................ 3-46
3-7-2 Deleting the program range specification ........................................................................... 3-47
3-7-3 Writing NOP instructions within a specified range .............................................................. 3-49
3-7-4 Deleting multiple NOP instructions (NOP delete) ................................................................ 3-50
3-7-5 Writing NOP instructions at one time (program memory all clear) ...................................... 3-51

3-8 Reading a Program ................................................................................................... 3-52


3-8-1 Reading a program step ..................................................................................................... 3-52
(1) Reading a step adjacent to the one displayed on the screen. .............................................................. 3-53
(2) Reading any step .................................................................................................................................. 3-54

3-8-2 Reading (searching for) a device ........................................................................................ 3-55


3-8-3 Reading (searching for) an instruction ................................................................................ 3-57
(1) Reading a sequence instruction ........................................................................................................... 3-57
(2) Reading a data instruction .................................................................................................................... 3-59

3-8-4 Reading a pointer ................................................................................................................ 3-60


(1) Reading a jump instruction pointer P .................................................................................................... 3-60
(2) Reading an interrupt program pointer I ................................................................................................. 3-60

Section 3 Programming Functions


3-1 Programming Modes

Programming using the Handy Loader is direct access to the PC memory.

Memory the Handy Loader can access


(1) SPB-series
The destination of writing the program is internal RAM of PC.
Use Memory cassette transfer function when you make the destination of writing the program a internal flash memory
and a flash memory card.

PC
Internal
Flash
Memory

Handy Loader
Key
operation

Programming
RAM

Memory
card

PC
Handy Loader
Key
operation

Transfer

Transfer instruction
command

Internal
Flash
Memory

RAM
Transfer

Memory
card

(2) N-series
If the PC does not not have a memory cassette attached, any program created is written to the PCs internal RAM; and
if a memory cassette is attached, the program can be written to both the RAM and the memory cassette.
However, no program cannot be written to an EPROM memory cassette. Even if an EEPROM write cassette is used,
writing is disabled while the write protect switch is on.
It is also possible to transfer a program between the PC internal RAM and PC memory cassette by key operation on the
Handy Loader.

Handy Loader
Programming

Internal
RAM
Memory
cassette

3-1

Transfer

Key
operation

PC

3-1 Programming Modes

The Handy Loader has four programming modes as follows:

Programming

Read

......... Reads a program from memory. Four read specifications are available:
step, instruction, device, and pointer.

Write

......... Writes a new program, overwrites a previous program, adds instructions,


and writes multiple NOP instructions at a time (all clear).

Insert

......... Add instructions to a program to increment the subsequent step numbers.

Delete

......... Deletes instructions specified in a program and decrements the preceding


step numbers.
Also deletes multiple NOP instructions at a time within a specified range,
and deletes instructions and pointers.

An example of display screen on the Handy Loader is shown below.

Mode indicator

0 LD
1 OUT

X000
Y010

Each mode is indicated with one alphabet as follows:


R (Read) :
Read mode
W (Write) :
Write mode
I (Insert) :
Insert mode
D (Delete) :
Delete mode

3-2

3-1 Programming Modes

Screen during programming

Device identifier

Step No. (decimal)


Mode indicator

R : Read mode
W : Write mode

10

LD

000

Up to four digit
Device address

I : Insert mode
D : Delete mode

Up to five digit
Instruction word

Press the following mode keys to set each programming mode as follows:

Press the

RD

key to set Read mode.

WR

Press the

RD
WR

RD

key to set Write mode.

WR

(Either the Read mode or Write mode is displayed alternatively each time the

RD

key is pressed.)

WR

Press the

Press the

INS
DEL
INS
DEL

key to set Insert mode.

INS
DEL

key to set Delete mode.

(Either the Insert mode or Delete mode is displayed alternatively each time the

INS
DEL

3-3

key is pressed.)

3-2 Writing a Program

This section explains the basic operation of writing a program using the Handy Loader.
Three basic patterns are provided according to the instruction type to be written.
Basicoperation
operation
Basic

1) Instruction without a device


*1

[Write mode]

[Instruction] key

GO
FNC

FNC No.

2) Instruction requires a device


*1

[Write mode]

[Instruction] key
Device identifier

,
FNC

FNC No.

Device address

GO

SP

3) Instruction requires two or more devices


*1

[Write mode]

[Instruction] key

,
FNC

FNC No.

SP
*2

Device identifier

Device address

*1 Press [Instruction] key for a sequence instruction.


Press
*2 Press

FNC

,
SP

and input FNC No. for a data instruction.


before and after Device address is input.

3-4

,
SP

Device identifier

Device address

3-3 Writing a Sequence Instruction

3-3-1 Writing an LD instruction and OUT instruction


The mnemonic notation below right is used when the Handy Loader creates a ladder diagram below.
<Ladder diagram>
X0

<Mnemonic notation>
YC

X1

Step No.

0
YC
T0
TMR

X2
4

500
YD

T0
7
C0
CTR

X3
9

10

X4
CRst
YE

C0

Instruction word Device

0
1
2
3
4
5
7
8
9
10
11
13
14
15

13

Point: Timer instruction


Write the timer instruction using the following procedure:
1) Write a condition contact of the the timer instruction.

LD
X

Device identifier

Device address

2) Write the timer device as OUT instruction.

ORI
T

OUT
C

Timer number

3) Write a setting value.


Press

,
SP

to go to the next line.

K/H

Device identifier

Decimal setting value

(Setting range : 1 to 32767)

Device address

GO

3-5

LD
OR
ANI
OUT
LD
OUT
LD
OUT
LD
LD
OUT
LD
OUT
END

X0
YC
X1
YC
X2
T0
T0
YD
X3
X4
C0
C0
YE

K500

K10

3-3 Writing a Sequence Instruction

Point: Counter instruction


Write the counter instruction using the following procedure.
1) Write the count condition contact of the counter instruction.

LD
X

Device identifier

Device address

2) Write the reset contact of the counter instruction.

LD
X

Device identifier

Device address

3) Write the counter number as OUT instruction.

OUT
C

OUT
C

Counter number

4) Write a setting value.

,
Press

SP

to go to the next line.

K/H

Decimal setting value

Device identifier

(Setting value : 1 to 32767)

Device address

GO

Note
The range of the setting value of the timer and counter instructions is 1 to 32767.
If a value outside this range is input, a message SETTING ERROR is displayed.
<Screen>

<Key operation>

OUT
C

OUT
C

NOP
0

OUT

OUT

C
K

(Value outside the range)

GO

000

K/H

CLR

SP

OUT

000

000

SETTING ERROR

Returns to the setting value input screen.

OUT

3-6

000

3-3 Writing a Sequence Instruction

<Key operation>
<Write>

<Screen>

(1) Power start-up

HANDY LOADER
NW0H-NE

(Initial screen)

RD
WR

RD
WR

X0

X0

Sets read mode.

Sets write mode.

LD
X

Inputs instruction word.

LD
X

Inputs device identifier.

NOP
0

Inputs device address.

GO

Stores instruction.

OR
L

Inputs instruction word.

LDI
Y

Inputs device identifier.

R
0 NOP

W
0 NOP

W
0 LD

W
0 LD

LD

X 000

0 LD

X 000

1 NOP

LD

OR

X 000

YC

0 LD

X 000

1 OR

3-7

3-3 Writing a Sequence Instruction

b
<Write>

OUT
C

X0

X1

Inputs device address.

GO

Stores instruction.

ANI
S

Inputs instruction word.

LD
X

Inputs device identifier.

MPS
1

Inputs device address.

LD

X 000

OR

Y 00C

OR

Y 00C

NOP

OR

ANI

OR

Y 00C

YC

GO

X0

X1

YC

Stores instruction.

OUT
C

Inputs instruction word.

LDI
Y

Inputs device identifier.

OUT
C

Inputs device address.

Y 00C

2 ANI

OR

Y 00C

ANI

X 001

ANI

X 001

NOP

ANI

OUT

ANI

X 001

OUT

ANI

X 001

OUT

Y 00C

X 001

YC

3-8

3-3 Writing a Sequence Instruction

d
<Write>

X0

YC

X1

GO

Stores instruction.

LD
X

Inputs instruction word.

LD
X

Inputs device identifier.

MRD
2

Inputs device address.

OUT

NOP

X 00C

OUT

LD

OUT

Y 00C

LD

OUT

Y 00C

LD

X 002

X 002

Y 00C

YC
X2

GO

X0

X1

YC

YC
X2

T0
TMR

500

Stores instruction.

OUT
C

Inputs instruction word.

ORI
T

Inputs device identifier.


(timer)

NOP
0

Inputs device address.


(timer No.).

,
SP

Scrolls to the next line.

LD

NOP

LD

OUT

LD

X 002

OUT

LD

X 002

OUT

T 000

OUT

T 000

X 002

3-9

3-3 Writing a Sequence Instruction

f
<Write>

K/H

PLF
5

X0

YC

X1

YC
X2

T0
TMR

500

T0

YC

X1

YC
X2
T0

T0
TMR

500
YD

NOP NOP
0
0

Inputs setting

OUT

Stores instruction.

LD
X

Inputs instruction word.

ORI
T

Inputs device identifier.

NOP
0

Inputs device address.

Stores instruction.

OUT
C

Inputs instruction word.

LDI
Y

Inputs device address.

OUT

3-10

T 000
K

W
7

NOP

K 500
7

LD

LD

LD

T 000

LD

T 000

NOP

LD

OUT

LD

T 000

OUT

K 500
T

500

K 500

K 500

T 000

T 000
K

number.

GO

GO

X0

Specifies decimal number.

3-3 Writing a Sequence Instruction

h
<Write>

ANB
D

X0

YC

X1

YC
X2

T0
TMR

500
YD

T0

Inputs device address.

GO

Stores instruction.

LD
X

Inputs instruction word.

LD
X

Inputs device identifier.

MPP
3

Inputs device address.

LD

T 000

OUT

Y 00D

OUT

T 00D

NOP

OUT

LD

Y 00D

OUT

Y 00D

LD

OUT

Y 00D

LD

X 003

LD

X 003

X3

* Counter count is input.

X0

X1

YC

YC
X2

T0
TMR

500
YD

T0

GO

Stores instruction.

LD
X

Inputs instruction word.

LD
X

Inputs device identifier.

RST
4

Inputs device address.

9
10

NOP

LD

10

LD

X 003

LD

X 003

10

LD

LD

X 003

10

LD

X 004

X3
X4

* Counter reset is input.

3-11

3-3 Writing a Sequence Instruction

j
<Write>

GO

X0

YC

X1

YC
X2

T0
TMR

500
YD

T0
X3

C0
CTR

OUT
C

Stores instruction.

Inputs instruction word.

OUT
C

Inputs device identifier.

NOP
0

Inputs device address.

CRst

SP

K/H

NOP

10

LD

11

OUT

10

LD

X 004

11

OUT

10

LD

X 004

11

OUT

C 000

11

OUT

C 000

11

OUT

(counter No.).

Scrolls to the next line.

Specifies decimal number.

MPS NOP
1
0

X 004

X 004

Inputs setting value.

GO

Stores instruction.

LD
X

Inputs instruction word.

C 000
K

11

OUT

C 000
K

W
13

10

10

10

NOP

YC

X1

YC
T0
TMR

W
13

LD

500
YD

T0
X3

LD

(counter).

X2

10
11

10

X4

X0

C0
CTR

k
10

X4
CRst
C0

3-12

3-3 Writing a Sequence Instruction

k
<Write>

OUT NOP
0
C

GO
X0

Inputs device identifier

Stores instruction.

K 10
13

LD

C 000

13

LD

C 000

14

NOP

13

LD

14

OUT

13

LD

C 000

14

OUT

Y 00E

14

OUT

Y 00E

15

NOP

14

OUT

15

END

YC

X1

OUT
C

YC
X2

and device address.

T0
TMR

C 000

500
YD

T0
X3

C0
CTR

10

LDI
Y

ORB
E

X4
CRst
YE

C0

GO

END

GO

X0

YC

X1

YC
X2

T0
TMR

T0
X3

500
YD

C0
CTR

10

X4
CRst
C0

YE

END

3-13

15

END

16

NOP

Y 00E

3-3 Writing a Sequence Instruction

3-3-2 Bit specification of the register area


N-series PCs also allow the register areas (D: date register, W: link register, etc.) to be processed as bit data.
Sequence instructions (LD, -OUT instructions, etc.) enable data processing in the register areas.
Example: If X0 is turned on, numeric data 5 is set in the data register D0.

<Ladder diagram>

<Mnemonic notation>
D0000*0

X0

Step No.

0
D0000*0

Ins. word
LD

OUT

D00000

OUT

D00002

<Key operation>

LD
X

LD
X

NOP
0

GO

Bit address
F E D C B A 9 8 7 6 5 4 3 2 1 0
D0000

D0000.2
D0000.0

* Press

,
SP

X0

<Screen>

POINT
Data register

Device

to specify bit in the register area.

3-14

LD

NOP

X 000

3-3 Writing a Sequence Instruction

<Key operation>

<Screen>

OUT
C

Inputs instruction word.

ANB
D

Inputs device identifier


(data register area).

NOP
0

LD

OUT

X 000

LD

OUT

LD

OUT

LD

OUT

LD

OUT

D00000

OUT

D00000

NOP

OUT

D00000

OUT

D0000

OUT

D00002

NOP

X 000
D

X 000
D0000

Inputs register word


address.

SP

NOP
0

GO

OUT
C

Inputs register bit address.

Stores Instruction.

ANB
D

NOP
0

SP

MRD
2

GO

3-15

X 000
D0000

X 000

3-3 Writing a Sequence Instruction

3-3-3 Writing a pointer instruction


(1) Writing a jump instruction and jump pointer
Jump instructions (CJ, JMP) require a pointer to specify the jump destination.
The mnemonic notation on the right is used when the Handy Loader creates a ladder diagram below.
The key operation is given below.

<Ladder diagram>

<Mnemonic notation>
Step No.

M0
CJMP

100

H0

Ins.word

Device

100

LD

M0

101

CJ

P0

202

YB

X0

103

M100

X100
200

202

JEND

H0

<Key operation>

<Screen>

In write mode
M0

LD
X

Inputs instruction word.

AND
M

Inputs device identifier.

NOP
0

Inputs device address.

GO

Stores instruction.

W
100

LD

100

LD

100

LD

M0000

100

LD

M0000

101

NOP

Note
A jump instruction does not work unless a jump pointer P

is provided.

To write a jump instruction, stop the PC (or set it in the TERM mode for the NJ or NS series).

CJMP

Program to be skipped
with a jump instruction
JEND

If a jump instruction is written while the PC is running, a program


check is performed automatically, a syntax error may occur and
cause the PC to stop. (INVALID COMMAND is displayed for NB0.)
In this case, continue writing the program, and turn on the power
again after writing the jump pointer is completed.

3-16

3-3 Writing a Sequence Instruction

M0
CJMP

H0

FNC

100

LD

101

FNC

M0000

100

LD

101

FNC

000

101

CJ

000

101

CJ

Input FNC No. of the CJ


instruction

NOP
0

,
SP

P/I

Scrolls to the next line.

Inputs the jump pointer

Inputs pointer No..

GO

Stores instruction.

000
P

identifier: P.

NOP
0

M0000

101

CJ

000
P 00

P
103

00

NOP

Program to be jumped with a jump instruction (103 to 201 steps)


M0
CJMP

H0

Program to be jumped

P/I
202

JEND

Inputs pointer identifier: P.

H0

NOP
0

GO

Inputs pointer number.

Stores instruction.

3-17

202

202

W
00

3-3 Writing a Sequence Instruction

(2) Writing an interrupt pointer: In for an interrupt program


An Interrupt program is written at the step where the main routine program ends with FEND instruction and subsequent
steps. This pointer is called interrupt pointer and indicates the top of the interrupt program. Pointer numbers are
determined depending on the PC and interrupt types as follows:
Fixed-cycle interrupt cycle T = 5ms x N (where, N: 1 to FF)
Pointer No.

SPB
series

00 to 03:
04 to 0F:
10 to 11:
12 to 1B:
1C to 1F:

Interrupt due to external input (X0 to X3)


Reserved (vacant)
Interrupt due to high-speed counter matching
Reserved (vacant)
Fixed-cycle interrupt

NB
series

00 to 07:
10 to 17:
18 to 1B:
1C to 1F:

Interrupt due to external input (X0 to X7)


Interrupt due to high-speed counter matching
Reserved (vacant)
Fixed-cycle interrupt

NJ and NS
series

00 to 0F:
10 to 17:
18 to 1B:
1C to 1F:

Interrupt due to interrupt input module (bits 0 to F)


Interrupt due to option module (slots 0 to 7)
Reserved (vacant)
Fixed-cycle interrupt

Basic operation

P/I

P/I

GO

Interrupt pointer No.

Interrupt pointer identifier

Interrupt cycle for fixed-cycle interrupt


(00 for interrupt other than a fixed-cycle)

The mnemonic notation on the right is used when the Handy Loader creates a ladder diagram below.
The key operation is given below.

<Ladder diagram>

<Mnemonic notation>
Step No.
100
Main routine
program
FEND

100

I NTR

H0200

M0
MOV

0
I RET

D0

Interrupt
program

3-18

Ins. word

Device

FNED

101

0200

103

LD

M0

104

MOV

K0

107

IRET

D0

3-3 Writing a Sequence Instruction

<Key operation>

<Screen>

FNC

100

FNC

100

FNC

002

100

FEND

002

101

NOP

100

FEND

Input Instruction FEND.


(Main routine program end)

MRD
2

GO

Stores instruction.

P/I

101

002
P

Inputs interrupt pointer identifier.


W

P/I

MRD
2

NOP
0

Inputs interrupt pointer No..

FEND

100

W
Inputs fixed-cycle interrupt cycle.
(00 for other than a fixed-cycle
interrupt)

FEND

100

FEND

002
I0200

FEND

002

101

I0200

101

I0200

103

3-19

002
I0 200

101

Stores pointer.

100

002
I

101

NOP
0

GO

100
101

NOP

3-3 Writing a Sequence Instruction

<Key operation>

LD
X

AND
M

NOP
0

FNC

MRD
2

NOP
0

<Screen>

GO

103

LD

104

NOP

104

MOV

104

MOV

M0000

020

SP

Input instruction MOV and proceed to the next line.

K/H

NOP
0

SP

Input decimal constant for device S and proceed to the next line.

ANB
D

NOP
0

GO

D0000
107

NOP

Input decimal constant for device D and store it.

FNC

MPP
3

GO

107

I RET

03

NOP

Input instruction IRET and store it.

Note
An interrupt program does not work unless the pointer I and the IRET instruction are provided.
Stop the PC while writing an interrupt program. If an interrupt program is written

I NTR H

while the PC (or set it in the TERM mode for the NJ or NS series) is running,

Interrupt program

a syntax error may occur, causing the PC stop.


If this occurs, continue writing the interrupt program, and then turn on the power

I RET

again after completing the program.

3-20

3-3 Writing a Sequence Instruction

3-3-4 Writing direct-input and direct-output instructions


Direct-input stores input ON/OFF information directly into input relay X during scanning.
Direct-output outputs operation results directly to the specified output relay Y when the instruction is executed. Direct-input
and -output is applicable to the sequence instructions such as LD, OUT, SET.
Press ANB
before the device identifier is specified.
D
Basic operation

ANB

[Instruction] key

Device identifier

GO

Device address

Specifies direct input

Input relay : X area or

and output.

output relay: Y area


can be a specified.

<Ladder>
X0
D

<Mnemonic>
Step No.

YE
D
YF
SD

X1

YF
RD

Inst. word. Device

LD

DX0

OUT

DYE

SET

DYF

LD

X1

RST

DYF

<Key operation>

<Screen>

Write mode

LD
X

X0
D

Inputs instruction word.

ANB
D

W
0

LD

LD

LD

DX

LD

DX

000

LD

DX

000

NOP

W
Input direct-input
device identifier.

LD
X

NOP
0

GO

Inputs device address.

Stores instruction.

3-21

3-3 Writing a Sequence Instruction

<Key operation>

OUT
C

YE
D

X0
D

<Screen>

Inputs instruction word.

ANB
D

LD

DX

000

OUT

LD

DX

000

OUT

LD

DX

OUT

DY

LD

DX

000

OUT

DY

00E

OUT

DY

00E

NOP

SET

DY

00F

NOP

LD

001

NOP

RST

DY

00F

NOP

Input direct-input
device identifier.

LDI
Y

ORB
E

GO

SET
8

ANB
D

LDI
Y

Inputs device address.

Stores instruction.

GO

000

Input direct SET instruction device

LD
X

LD
X

MPS
1

RST
4

ANB
D

LDI
Y

GO

GO

3-22

3-3 Writing a Sequence Instruction

3-3-5 Writing a differential contact instruction


Differential contact turns on or off only for a single scan at the signal rising or falling edge.
Press the
or
key after the normal sequence instruction keys (LD, AND, etc.) are pressed.
Basic operation

[Instruction] key

Device identifier

GO

Device address

Specifies the rising or


falling contact

<Ladder diagram>
X0

M0

<Mnemonic notation>
Step No.

Y6

0
Y5

Ins. word Device

LD

ORI

Y5

AND

M0

OUT

Y6

X0

N o t e : The differential contact instruction cannot be used for NB-0, NB-E (NB2-P24/36, NB2U24/36).

<Key operation>

X0

<Screen>

LD
X

W
0

LD

LD

LD

LD

000

LD

000

NOP

Input instruction word.


( : Rising edge differentiation)
W

LD
X

Inputs device identifier.

NOP
0

Inputs device address.

GO

Stores instruction.

3-23

3-3 Writing a Sequence Instruction

<Key operation>

<Screen>

ORI
T

X0

LD

ORI

X 000

LD

ORI

LD

X 000

ORI

LD

X 000

ORI

Y 005

ORI

Y 005

NOP

AND

NOP

OUT

NOP

Input instruction word.

Y5

( : Falling edge differentiation)


W

LDI
Y

Inputs device identifier.

PLF
5

Inputs device address.

GO

Stores instruction.

AND
M

AND
M

NOP
0

GO

OUT
C

LDI
Y

MCR
6

GO

X0

M0

Y6

Y5

3-24

X 000

M0000

Y 006

3-4 Writing a Data Instruction

When a data instruction is read or written by the Handy Loader, it is processed according to the FNC No. (for FNC No., see
the table on the next page or Appendix.)

Basic operation

FNC

GO

(Device specification, etc.)

FNC No.

Example: Input as follows:


MOV

FNC020

BIN

FNC044

Using function help function (data instruction list)


Writing is enabled while the data instruction FNC No. is being checked.

1) The group name of the FNC No. can be confirmed.


<Screen>

FNC

HELP

The group name of the function


instruction is screen.

0
1
2
3
4
5
6
7
8
9
A
B

PROGRAM BRANCH
COMPARISON
TRANSFER
ARITH, LOGICAL
DATA PROCESS
ROTATION
STEP CONTROL
MESSAGE XFR
DATA
DEBUG
SFC1
SFC2

11
12
13
14
15
16
17
18
19

COMPARISON 2
COMPARISON 3
ARITH, LOGIC 2
FILE
FLOAT 1
FLOAT 2
DATE, TIME
PULS OUTPUT
HANDY OPE.

2) The FNC No. in the group can be confirmed respectively.


Example: When you input 02

FNC

HELP

FNC No. upper two digit

020: MOV
021: DMOV
022: CML
023: BMOV
024: FMOV
025: XCH
026: DMPX

027: MPX
028: XFR
029: DT
02A: DCML
02B: DXCH
02C: DFMOV

3) Confirm the FNC No. and write the data instruction.

FNC

HELP

FNC No. Lower one digit

FNC No. upper two digit

After this operation, continue the ordinary input


operation of data instruction.
It returns when the CLR key is pushed.

3-25

3-4 Writing a Data Instruction

3-4-1 Function No. list


FNC No. list (1)
Function numbers are grouped according to the tens and hundreds digit.
FNC
Unit digit

(Lower one digit)

Tens digit

(Upper two digit)

Hundreds digit

Group name

Program
flow
instruction

Tens
digit

Unit
digit

00

Comparison Transfer
instruction 1 instruction,
etc.
01

Arithmetic Conversion Rotation


and logic
instruction instruction
instructions 1

02

03

04

Step
control
instruction

Message
instruction,
etc.

Data
instruction

Debug
instruction

06

07

08

09

05

CJ

LD=

MOV

ADD

DECO

RCR

MSGT

DATA B

SLT

JMP

LD< >

DMOV

SUB

ENCO

RCL

MSGR

DATA M

SLTR

FEND

LD>

CML

MUL

SUM

ROR

OPDF

IRET

LD<=

BMOV

DIV

BCD

ROL

CALL

AND=

FMOV

INC

BIN

SFTR

UMEXE

AND< >

XCH

INCP

DBCD

SFTL

UMEND

AND>

DMPX

DEC

DBIN

NRCR

UM

AND<=

MPX

DECP

DSUM

NRCL

URET

OR=

XFR

WAND

ASCI

NROR

LOOP

OR< >

DT

WOR

HEX

NROL

CONT

OR>

DCML

WXOR

SEC

NSFR

OR<=

DXCH

WXNR

HMS

NSFL

DCMP

DFMOV

DADD

DNRCR

CMP

DSUB

DNRCL

DMUL

DNROR

DDIV

DNROL

Group name

Tens
digit

Unit
digit

10

Comparison
instruction 2

Comparison
instruction 3

11

12

Arithmetic File
and logic
instruction
instructions 2
13

SC

STRAR

Floating-point Floating-point Clock


instruction 1 instruction 2 operation
instruction

14

STRA

15

16

17

Pulse
output
instruction

Convenience
instruction

18

19
RAMP

LDD=

LD<

DINC

FFST

ECMP

EADD

TCMP

PLS1

LDD< >

LD>=

DINCP

FIFO

EZCP

ESUB

TZCP

DPLS1

LDD>

AND<

DDEC

FILO

EMUL

TADD

PLS2

LDD<=

AND>=

DDECP

EDIV

TSUB

DPLS2

ANDD=

OR<

DAND

FLT

ESQR

TRD

PWM1

ABSD

ANDD< >

OR>=

DOR

DFLT

TWR

PWM2

INCD

ANDD>

LDD<

DXOR

INT

SIN

PLSI

MTR

ANDD<=

LDD>=

DXNR

DINT

COS

DPLSI

ORD=

ANDD<

EBCD

TAN

PLSA

DSW

ORD< >

ANDD>=

EBIN

DPLSA

SEGL

ORD>

ORD<

ORG

ORD<=

ORD>=

DORG

ZCP

DZCP

E
F

3-26

PID

3-4 Writing a Data Instruction

FNC No. list (2)


Date instruction FNC No. upper digits 0A and 0B indicate SFC language instruction words.
The SFC language is usable only for PCs supporting the SFC language.
The SFC language expresses the entire program flow, execution order, and execution conditions in easy-to-understand
drawing. It is useful to use the dedicated function of the program loader software for creating and monitoring SFC programs.
If a program using the SFC language is monitored with the Handy Loader, a mnemonic instruction equivalent to the SFC
language instruction appears. The mnemonic notation of the SFC language is listed below.
FNC No.

Instruction
identifier

Name

FNC No.

Instruction
identifier

Name

0A0

PRC

Main process start instruction

0B0

SINGL

Single sequence transfer


start instruction

0A1

E_PRC

Process end instruction

0B1

D_SLC

Selection branch
start instruction

0A2

M_END

SFC main end

0B2

C_SLC

Selection confluent
start instruction

0A3

SPRC

Sub-process start instruction

0B3

D_SIM

Parallel branch start instruction

0A4

E_SPR

Sub-process end instruction

0B4

C_SIM

Parallel confluent start


instruction

0A5

Reserved

0B5

E_TRN

Transfer end instruction

0A6

Reserved

0B6

STL

Transfer source step state read


instruction

0A7

Reserved

0B7

STLC

Transfer source step state read


instruction (CALL)

0A8

Reserved

0B8

SET

Transfer instruction

0A9

ACEXE

Action execution start instruction

0B9

SLCT

Selection branch instruction

0AA

ACFUN

Action function start instruction

0BA

JUNC

Selection confluent transfer


source step state read instruction

0AB

E_AC

Action end instruction

0BB

0AC

CLOSE

Process end

0BC

SIMUL

Parallel branch instruction

0AD

CALLA

Sub-process call

0BD

SYNL

Parallel confluent source step


state read instruction

0AE

SRET

Sub-process return

0BE

SYNLC

Parallel confluent source step


state read instruction (CALL)

0AF

OUT

Step jump instruction

0BF

SYNC

Parallel confluent instruction

3-27

Reserved

3-4 Writing a Data Instruction

FNC No. list (3)


Function numbers supported by SPB series are listed below.
Group name

Program
flow
instruction

Tens
digit

Unit
digit

00

Comparison Transfer
Arithmetic
Conversion Rotation
instruction 1 instruction, and logic
instruction instruction
instructions 1
etc.
01

02

03

04

CJ

LD=

MOV

ADD

DECO

RCR

JMP

LD< >

DMOV

SUB

ENCO

RCL

FEND

LD>

CML

MUL

SUM

ROR

IRET

LD<=

BMOV

DIV

BCD

ROL

CALL

AND=

FMOV

INC

BIN

SFTR

UMEXE

AND< >

XCH

INCP

DBCD

SFTL

UMEND

AND>

DMPX

DEC

DBIN

NRCR

UM

AND<=

MPX

DECP

DSUM

NRCL

URET

OR=

XFR

WAND

ASCI

NROR

LOOP

OR< >

DT

WOR

HEX

NROL

CONT

OR>

DCML

WXOR

SEC

NSFR

OR<=

DXCH

WXNR

HMS

NSFL

DCMP

DFMOV

DADD

DNRCR

CMP

DSUB

DNRCL

DMUL

DNROR

DDIV

DNROL

Data
instruction

Debug
instruction

06

07

08

09

SC

MSGT

DATA B

MSGR

DATA M

Floating-point Floating-point Clock


Comparison Comparison Arithmetic
File
instruction 2 instruction 3 and logic
instruction instruction 1 instruction 2 operation
instructions 2
instruction

Group name

Tens
digit

Message
instruction,
etc.

05

Unit
digit

Step
control
instruction

10

11

12

13

14

15

16

17

Pulse
output
instruction

Convenience
instruction

18

19
RAMP

LDD=

LD<

DINC

FFST

ECMP

EADD

TCMP

PLS1

LDD< >

LD>=

DINCP

FIFO

EZCP

ESUB

TZCP

DPLS1

LDD>

AND<

DDEC

FILO

EMUL

TADD

PLS2

LDD<=

AND>=

DDECP

EDIV

TSUB

DPLS2

ANDD=

OR<

DAND

FLT

ESQR

TRD

PWM1

ABSD

ANDD< >

OR>=

DOR

DFLT

TWR

PWM2

INCD

ANDD>

LDD<

DXOR

INT

SIN

PLSI

MTR

ANDD<=

LDD>=

DXNR

DINT

COS

DPLSI

ORD=

ANDD<

EBCD

TAN

PLSA

DSW

ORD< >

ANDD>=

EBIN

DPLSA

SEGL

ORD>

ORD<

ORG

ORD<=

ORD>=

DORG

ZCP

DZCP

E
F

3-28

PID

3-4 Writing a Data Instruction

FNC No. list (4)


Function numbers supported by NB0 series are listed below.
Group name

Program
flow
instruction

Tens
digit

Unit
digit

00
CJ

Comparison Transfer
Conversion Rotation
Arithmetic
instruction 1 instruction, and logic
instruction instruction
instructions 1
etc.
01
LD=

02
MOV

03

04

Step
control
instruction

Message
instruction,
etc.

Data
instruction

Debug
instruction

06

07

08

09

Rotation
instruction

Step
control
instruction

Message
instruction,
etc.

Data
instruction

Debug
instruction

05

06

07

08

09

05

ADD

RCR

SUB

RCL

LD< >

LD>

LD<=

AND=

AND< >

AND>

AND<=

OR=

WAND

OR< >

WOR

OR>

WXOR

OR<=

WXNR

SC

C
D
E
F

FNC No. list (5)


Function numbers supported by NBE series are listed below.
Group name

Program Comparison
instruction 1
flow
instruction

Tens
digit

Unit
digit

00

CJ

JMP

FEND

IRET

CALL

UMEXE

UMEND

UM

URET

01

Transfer
Conversion
Arithmetic
instruction, and logic
instruction
etc.
instructions 1
02
MOV

03

04

ADD

RCR

SUB

RCL

9
A
B
C
D
E
F

3-29

SC

3-4 Writing a Data Instruction

FNC No. list (6)


Function numbers supported by NB -P/NB3 series are listed below.
Group name

Program
flow
instruction

Tens
digit

Unit
digit

00

Conversion
Arithmetic
Comparison Transfer
instruction
instruction 1 instruction, and logic
instruction 1
etc.
01

02

03

04

Rotation
instruction

Step
control
instruction

05

06

ADD

DECO

RCR

SUB

ENCO

RCL

CML

MUL

SUM

LD<=

BMOV

DIV

BCD

AND=

FMOV

INC

BIN

UMEXE

AND< >

XCH

INCP

UMEND

AND>

DMPX

DEC

UM

AND<=

MPX

DECP

URET

OR=

WAND

OR< >

WOR

OR>

WXOR

OR<=

WXNR

CJ

LD=

JMP

LD< >

FEND

LD>

IRET

CALL

MOV

Data
Message
instruction, instruction
etc.
07

08

Debug
instruction

09

C
D
E
F

FNC No. list (7)


Function numbers supported by NB U series are listed below.
Group name

Program
flow
instruction

Tens
digit

Unit
digit

00

Conversion
Arithmetic
Comparison Transfer
instruction
instruction 1 instruction, and logic
instruction 1
etc.
01

02

03

04

Rotation
instruction

Step
control
instruction

05

06

CJ

LD=

MOV

ADD

DECO

RCR

JMP

LD< >

DMOV

SUB

ENCO

RCL

FEND

LD>

CML

MUL

SUM

ROR

IRET

LD<=

BMOV

DIV

BCD

ROL

CALL

AND=

FMOV

INC

BIN

SFTR

UMEXE

AND< >

XCH

INCP

DBCD

SFTL

UMEND

AND>

DMPX

DEC

DBIN

NRCR

UM

AND<=

MPX

DECP

NRCL

URET

OR=

XFR

WAND

NROR

OR< >

DT

WOR

NROL

OR>

WXOR

NSFR

OR<=

WXNR

NSFL

DCMP

DADD

DSUB

E
F

3-30

SC

Data
Message
instruction, instruction
etc.
07

08

Debug
instruction

09

3-4 Writing a Data Instruction

FNC No. list (8)


Function numbers supported by NJ/NS series are listed below.
Group name

Program Comparison
instruction 1
flow
instruction

Tens
digit

Unit
digit

00

01

Transfer Arithmetic
Conversion
instruction, and logic
instruction
instructions 1
etc.
02

03

04

Rotation
instruction

Step
control
instruction

Message
instruction,
etc.

Data
instruction

Debug
instruction

05

06

07

08

09

CJ

LD=

MOV

ADD

DECO

RCR

MSGT

DATA B

SLT

JMP

LD< >

DMOV

SUB

ENCO

RCL

MSGR

DATA M

SLTR

FEND

LD>

CML

MUL

SUM

IRET

LD<=

BMOV

DIV

BCD

CALL

AND=

FMOV

INC

BIN

UMEXE

AND< >

XCH

INCP

UMEND

AND>

DMPX

DEC

UM

AND<=

MPX

DECP

URET

OR=

WAND

OR< >

WOR

OR>

WXOR

OR<=

WXNR

C
D
E
F

3-31

OPDF

STRA
STRAR

3-4 Writing a Data Instruction

3-4-2 Write example 1


Example: The mnemonic notaion below right is used when the Handy Loader creates the following ladder diagram.

<Ladder diagram>

<Mnemonic notation>

X30

Step No.

Y1F
=

>

WX1

WY0

30

WM1

Ins. word Device

LD

X30

AND=

WX1

K30

OR>

WY0

WM1

OUT

Y1F

END

The key operation is given below.

<Key operation>

<Screen>

(Initial screen)

N SERIES HANDY LOADER


NW0H-NE

RD

V .

WR

NOP

NOP

LD

LD

LD

003

LD

030

Sets write mode.


RD

WR

X30

LD
X

Inputs instruction word.

LD
X

Inputs device identifier.

MPP
3

Inputs device address.

NOP
0

3-32

3-4 Writing a Data Instruction

GO

Stores instruction.

X30
=

WX1

30

FNC

NOP
0

LD

NOP

LD

FNC

LD

FNC

030

030

030
000

Inputs data instruction FNC No..

MPS
1

RST
4

,
SP

Scrolls to the next line.

LD

FNC

030

LD

FNC

014

AND=

014

AND=

014

AND=

001

030

W
Inputs device identifier of word area.

LD
X

MPS
1

Inputs device address


of word area.

,
SP

014
WX

Scrolls to the next line.

AND=

AND=

3-33

014
WX

01

3-4 Writing a Data Instruction

K/H

MPP
3

Specify decimal constant.

>

WY0

30

1 AND=

1 AND=

Stores instruction.

X30
= WX1

NOP
0

GO

1 AND=

30

30

30

4 NOP

FNC

30

4 FNC

WM1

NOP
0

W
4 FNC

000

Inputs data instruction FNC No..

MPS
1

MC
A

4 FNC

,
SP

Scrolls to the next line.

001

30

4 FNC

01A

4 OR>

01A

3-34

30

3-4 Writing a Data Instruction

OR>

0 1A
W

Inputs device identifier


of word area.

LDI
Y

NOP
0

OR>

01A
WY

Inputs device address


of word area.

,
SP

Scrolls to the next line.

OR>

01A
WY

OR>

OR>

00

W
Inputs device identifier
of word area.

AND
M

MPS
1

GO

Y1F

X30
=

>

WX1

WY0

30

OR>

,
WM

Inputs device address


of word area.

Stores instruction.

OUT
C

Inputs instruction word.

LDI
Y

Inputs device identifier.

OR>

,
WM001

WM001
7

NOP

OUT

OUT

WM000

WM1

WM001

3-35

3-4 Writing a Data Instruction

MPS
1

W M 0 01
7

OUT

001

OUT

01F

01F

01F

Inputs device address.


W

GO

END

Inputs instruction word.

GO

Stores instruction.

Y1F

X30
=

>

Stores instruction.

WY0

WX1

30

WM1

END

3-36

W M 0 01

OUT

NOP

OUT

END

END

NOP

3-4 Writing a Data Instruction

3-4-3 Write example 2


Example: The mnemonic notation below right is used when the Handy loader creates the following ladder diagram (by
using the XFR instruction).

<Mnemonic notation>

<Ladder diagram>

Step No.

X30
XFR WM0000H WL0001H

Ins. word Device

LD

X30

XFR

WM000H

END

The XFR instruction is to transfer of the eight high- or low-order bits of the transfer source to the eight high- or low-order
bits of the transfer destination. Selection between high and low can be made with

HELP

key (H for high and L for low).

For example, transfer of data the eight high-order bits of WM0 to those of WL1 is done as follows:

WM0

WL1
<Key operation>

FNC

<Screen>

Inputs data instruction FNC No.

NOP
0

MRD
2

SET
8

,
SP

Scrolls to the next line.

Input device identifier of word area.

LD

FNC

LD

FNC

3-37

030

030
000

LD

FNC

LD

FNC

028

XFR

028

XFR

028

030
002

030

3-4 Writing a Data Instruction

AND
M

Inputs device address of word area.

HELP

Select between H and L.

Scrolls to the next line.

Inputs device identifier of word area.

OR
L

028

XFR

028

XFR

028
WM000H

XFR

XFR

XFR

WL

Inputs device address of word area.

HELP

Select between H and L.

Stores instruction.

WM000L

MPS
1

GO

XFR
WM

NOP
0

SP

XFR

WL0 0 1 L

XFR

WL001 H

WL 0 0 1 H
4

3-38

NOP

3-4 Writing a Data Instruction

3-4-4 Write example 3


Example: The mnemonic notation below right is used when the Handy loader creates the following ladder diagram (by
using the XFR instruction).

<Ladder diagram>

<Mnemonic notation>
Step No.

X30
E+ D10 -1.2345E-12 D20

Ins. word Device

LD

X30

EADD

D10

END

-1.2345E-12

D20

Example of inputting the


floating point instruction.

<Key operation>

<Screen>
W

FNC

MPS MCR NOP


1
0
6

ANB MPS NOP


1
0
D

NOP

EADD

EADD

EADD

0 3 0

1 6 0

SP

Select a floating point input data.

E + 0 0

EADD

,
1. E + 0 0

MRD MPP RST


2
3
4

ORB
E

LD

SP

MPS
1

PLF
5

EADD ,
1. 2 3 4 5 E + 0 0

Switch the +/-.

EADD ,
-1. 2 3 4 5 E + 0 0

Switch the input of the mantissa


part or the exponent part.

EADD ,
-1. 2 3 4 5 E + 0 0

a
3-39

3-4 Writing a Data Instruction

MPS MRD
1
2

EADD

-1. 2 3 4 5 E + 1 2

Switch the +/-.

EADD

-1. 2 3 4 5 E - 1 2

EADD

NOP

, ,

SP

ANB MRD NOP


2
0
D

GO

D0020

* The number of input digits is the mantissa part six digits, and exponent part two digits.
Input it again pushing

ORB
,
E

ORB
key.
E

3-40

3-5 Changing an Instruction

In write mode, instruction can be overwritten to change a program.


Instruction can be inserted in insert mode and deleted in delete mode.

<Ladder diagram>
X0

M1

<Mnemonic notation>
Y4

M0

Step No.

0
Y4

Y5

Y5

Y6

Y6
MOV -1

18

WY2

END

3-41

Ins. word

LD

MPS

ANI

MPS

Device
X0
M1

ANI

M0

OUT

Y4

MPP

AND

MPS

Y4

OUT

10

MPP

11

AND

Y5

12

OUT

Y6

13

MPP

Y5

14

AND

Y6

15

MOV

K-1

18

END

WY2

3-5 Programming Modes

3-5-1 Changing sequence instruction


An existing sequence instruction can be changed by overwriting it with a new instruction.
X0

M1

M0

Y4

Y4

Y5

Y5

Y6

Change to
Y5

Y6

MOV -1 WY2

END

Press

or

key to move to the step (Step 7) of the instruction to be changed.

6
7

MPP
AND

Y4

ANI
S

Inputs new instruction word.

6
7

MPP
ANI

LDI
Y

Inputs new device identifier.

6
7

MPP
ANI

PLF
5

Inputs new device address.

6
7

MPP
ANI

005

GO

Stores instruction.
(change completed)

7
8

ANI
MPS

005

3-42

3-5 Programming Modes

3-5-2 Changing a data instruction


Changing the contents of a data instruction (Changing device only is also enabled)
X0

M1

M0

Y4

Y5

Y5

Change decimal constant to


hexadecimal constant.

Y6
Y6

MOV -1 WY2

-1

HFFFF

END

Press

or

key to move to the step of the instruction to be changed.

K/H

15

MOV

15

MOV

020
K-1

Specify hexadecimal constant.

K/H

020
H

Sets hexadecimal
number FFFF.

15

MOV

15

MOV

020
H FFFF

(Press four times)

GO

Stores values.
(change completed)

3-43

WY 02

3-6 Inserting an Instruction

Sequence instructions and data instructions can be added to a program and the subsequent step numbers incremented. In
this case, perform the same operation as for writing in insert mode.

Basic operation
Insert mode
Press

INS

key to perform the same operation as for usual program writing.


DEL
Insert an instruction into a step displayed on the screen with the Handy Loader.
I

STEP A

INSTRUCTION A

STEP B

INSTRUCTION B

Screen before insertion

An instruction is inserted between INSTRUCTION A and INSTRUCTION B.


Instructions after INSTRUCTION B are pushed down as many steps as there are inserted instructions.

An instruction is inserted as step 50 of program 1).


Program 1) is changed to program 2), as shown below.
Program 1)
<Ladder diagram>

<Mnemonic notation>
M23

X10

Step No.

49

END

51

Ins. word Device

49

LD

X10

50

OUT

M23

51

END

Insert instruction.

Program 2)
<Ladder diagram>
X10

X12

<Mnemonic notation>
M23

Step No.

49

52

END

Ins. word Device

49

LD

50

AND

X10
X12

51

OUT

M23

52

END

This instruction is inserted.


The key operation is given on the next page.

3-44

3-6 Inserting an Instruction

Step No. of the next instruction to be inserted is read.

<Key operation>
50

INS
DEL
Either upper or
lower key
operation gives
the same result.

Sets insert
mode.

STEP

<Screen>

GO

STEP No.

Reads the next instruction step to be inserted.

I
50

OUT

M0023

50
51

AND
OUT

X 012
M0023

50

STEP

GO

STEP No.

LD
X

MPS
1

DEL
Sets insert
mode.

Reads the next step to be inserted.

AND
M

INS

MRD
2

GO

Note
Final step of the CPU program memory for each type:
SPB
Step 3965
(NW0P20/30)
SPB
Step 8061
(NW0P40/60)
NB0
Step 319
NB0 U
Step 999
NB-E
Step 999
(NB2-P24/36, NB2U24/36)
NBStep 8061
(NB other than the aboves)
NB3
Step 3965
NJ (A8 type)
Step 8061
NJ (E4 type)
Step 3965
NJ (B16 type)
Step 15869
NJ (B32 type)
Step 32637
NS (32 type)
Step 32637
NS (64 type)
Step 65405

Wait

Insert

Final
instruction

Program memory

If an attempt is made to insert an instruction when the above final step contains an instruction, a message
MEMORY OVER appears and insertion is not executed. Take care to avoid this error.

3-45

3-7 Deleting an Instruction

Sequence and data instructions can be deleted from a program and the subsequent step numbers decremented. In this
case, operation is made in delete mode.

Basic operation
Delete mode

INS
1) Press the

DEL

2) Press the

3) Press the

key twice.

or

GO

key or read step to display step to be deleted.


D

STEP C

INSTRUCTION C

STEP D

INSTRUCTION D

key to execute deletion.

INSTRUCTION D of STEP D at the bottom


of the screen is deleted.
The subsequent steps are moved up.

3-7-1 Deleting a single instruction


Program 1) is changed to Program 2) by deleting an instruction of step 50.
Program 1)
<Ladder diagram>
X10

<Mnemonic notation>
M23

X12

Step No.

49

END

52

Ins. word Device

49

LD

50

AND

X10
X12

51

OUT

M23

52

END

Delete this instruction.

Program 2)
<Ladder diagram>

Step No.

49

51

<Mnemonic notation>
M23

X10

END

Ins. word Device

49

LD

X10

50

OUT

M23

51

END

3-46

3-7 Deleting an Instruction

The key operations are shown bellow.

Step No. of an instruction to be deleted is read out.


<Key operation>

INS

INS

DEL

DEL
Either upper
or lower key
operation
gives the
same result.

Set delete
mode.

PLF
5

STEP

STEP

PLF
5

<Screen>

NOP
0

GO

Read the instruction step to be


deleted.

NOP
0

GO

INS

INS

GO

50

AND

50

OUT

M0023

in the delete mode to be delete an instruction

at the lower line in the screen.

3-7-2 Deleting the program range specification


This function is used to delete instructions of sequential steps.
Basic operation
1) Press the

INS
DEL

012

GO

Press

DEL

DEL

key twice.

2) Input the first step of the program range to be deleted.


3) Input the final step of the program range to be deleted.

3-47

STEP

SP

STEP NO.

STEP

STEP NO.

GO

3-7 Deleting an Instruction

Example: Changing program 1) to program 2).

Program 1)
<Ladder diagram>

<Mnemonic notation>
YC

X0

Step No.

0
X1

X2

YD

Delete here.
5

END

Ins. word Device

LD

X000

OUT

Y00C

LDI

X001

ANI

X002

OUT

Y00D

END

Program 2)
<Ladder diagram>

<Mnemonic notation>
YC

X0

Step No.

END

Ins. word Device

LD

X000

OUT

Y00C

END

<Key operation>

<Screen>
2

INS
DEL

INS

STEP

DEL

Step No.

SP

D
1
AREA

OUT

D
1
AREA

OUT

00C

00C
4

Deletion range first step.

Set delete mode.

STEP

Step No.

Performing
deletion.

GO

Deletion range end step.

The above message is


displayed while the CPU
performs deletion.

Deletion
processing
completes.

D
2

END
As the deletion processing
by the CPU completes,
the instruction which had
been next to the deletion
range end step moves up
to the step which had been
the deletion range first step.

3-7-3 Writing NOP instructions within a specified range


3-48

3-7 Deleting an Instruction

NOP instructions can be written within a specified range of steps in a program.


Example: Changing program 1) to program 2).

Program 1)
<Ladder diagram>

<Mnemonic notation>
Y10

X0

Step No.

0
X1

X3

Y11

Change here to NOP


X2

Y12

END

Ins. word

Device

LD

X000

OUT

Y010

LD

X001

AND

X003

OUT

Y011

LD

X002

OUT

Y012

END

Program 2)
<Ladder diagram>

<Mnemonic notation>
Y10

X0

Step No.

0
Y12

X2
5

END

Ins. word Device

LD

X000

OUT

Y010

NOP

NOP

NOP

LD

X002

OUT

Y012

END

<Key operation>

<Screen>

Display the first step of a program part which should


be changed to NOP, at the lower line in the screen,
using

or

key. (Set WRITE mode using

RD
WR

1
2

OUT
LD

Y
X

010
001

1
2

OUT
NOPK

010

NOP

key.)

NOP
0

K/H

RST
4

GO

3-7-4 Deleting multiple NOP instructions (NOP delete)


All NOP instructions before the END instruction can be deleted.

3-49

3-7 Deleting an Instruction

This operation can be executed regardless of step displayed on the Handy Loader.
Note: NOP cannot be deleted while running PC.

Basic operation

INS
DEL

INS
DEL

Set delete mode

<Screen>

NOP
0

GO

NOP

Execute NOP deletion.

DELETE

The above screen appears


during NOP deletion.

D
0

Example: When NOP deletion is executed, program 1) changes to


program 2).

LD

<Mnemonic notation>
YC

X0

Step No.

0
2

NOP

NOP

Deleting this part.

NOP

END

Ins. word

Device

LD

X000

OUT

Y00C

NOP

NOP

NOP

END

Program 2)

<Ladder diagram>

<Mnemonic>
YC

X0

Step No.

END

3-50

000

Step 0 appears when


NOP deletioncompletes.

Program 1)

<Ladder diagram>

Ins. word Device

LD

X000

OUT

Y00C

END

3-7 Deleting an Instruction

3-7-5 Writing NOP instructions at one time (program memory all clear)
NOP instructions are written in all steps of program memory.
<Key operation>

RD
WR

RD

NOP
0

WR

<Screen>

MC
A

GO

ALL

CLEAR ?
OK
[GO]

Performs all clear.


W
0

GO

NOP

Execute all clear.

Note: The same result is also obtained when the program clear is executed in memory clear of the auxiliary function.

Program memory
Program memory is the memory which contains an instruction procedure executed by

Program memory

the CPU. When any program is not yet written in this memory (that is, immediately after
a customer purchased a product), NOP instructions are written in all steps in the
program memory.
All clear of the program memory also results in writing NOP instructions in all steps.

3-51

P
NO P
NO

3-8 Reading a Program

This section describes the basic operation of using the Handy Loader to read a program and search for an instruction.

3-8-1 Reading a program step


Press the mode key
step 0.

RD
WR

INS

or

DEL

at the initial screen after power has been turned on to make the Handy Loader read

Basic operation
On the initial screen
Press
Press
Press
Press

RD
WR

to read step 0 in read mode.

RD

RD

WR
INS
DEL

WR

to read step 0 in write mode.

to read step 0 in insert mode.

INS

INS

DEL

DEL

to read step 0 in delete mode.

* Reading a program step is enabled in any mode: Read, Write, Insert, or Delete.
Press the mode key

RD
WR

or

INS
DEL

after the data check is finished in the monitor mode or the data setting is completed

in an auxiliary function, to make the Handy Loader read step 0.

000

K 0
K 5000

RD

WR
INS

LD

000

LD

000

DEL

3-52

3-8 Reading a Program

(1) Reading a step adjacent to the one displayed on the screen.

Basic operation

Press the

key to read the step before a displayed step.

Press the

key to read the step after a displayed step.

Example: Perform the key operation below to read two steps.


<Key operation>

<Screen>

(Initial screen)

N SERIES HANDY LOADER


NW0H-NE

RD
WR

Specifies mode.
(Step 0 appears.)

Reads step 1.

Reads step 2.

Return to step 1.

3-53

LDI

X 000

0
1

LDI
AND

X 000
X 005

1
2

AND
OUT

X 005
Y 00C

0
1

LDI
AND

X 000
X 005

3-8 Reading a Program

(2) Reading any step


Any step can be read from program memory.

Basic operation

STEP

GO

Step No.

Example: Perform the key operation below to read step 8061.


<Key operation>

NOP
0

SET
8

STEP

MCR
6

<Screen>

MPS
1

GO

R
8061

NOP

Note
If an attempt is made to read a step exceeding the program memory, the message STEP OVER ERROR appears.
Example: Suppose that you are programming using NW0P30 series PC. Effective steps for NW0P30 are 0 to 3965.
The current screen is;
R

0
1

LD
AND

X
X

000
001

If the following key operation is made;

STEP

PLS
9

MPP
3

MCR
6

MCR
6

GO

R
STEP OVER ERROR

(An attempt to read a step larger than step 3965 is made.)


Press the CLR key to return to the previous screen.

Number of steps in the CPU program memory


The Handy Loader directly accesses the PC program memory.
Press the HELP key to display the number of steps in the PC program memory.

Example: When the NW0P30 series PC is used:


PROGRAM

HELP
Press

HELP

or

CLR

key to return to the previous screen.

3-54

MEMORY
0-3965

3-8 Reading a Program

3-8-2 Reading (searching for) a device


The program step containing a specified device can be read.
This operation is done in READ MODE.

Basic operation

RD
WR

Device identifier

SP

GO

Device address

The key operation to read the device X0 in the following program is given below:

<Ladder diagram>
YC

X0
0

Step No.

X2
X0

<Mnemonic notation>

M1

YE

3
M0
YF

X0
X1

END

Ins. word Device

LD

OR

X0
X2

OUT

YC

LDI

X0

OR

M0

AND

M1

OUT

YE

LD

X0

ORI

X1

OUT

YF

10

END

The device X0 is read out sequentially from step 0.

3-55

3-8 Reading a Program

<Key operation>

<Screen>
In read mode

SP

Starts read out of device.

LD
X

Inputs device identifier.

NOP
0

Inputs device address.

DVC

R
DVC

DVC

000

GO

Searches for device, reading from step 0.


(First found at step 0)

GO

Continues to search from the next step.


(Found at step 3)

GO

Continues to search from the next step.


(Found at step 7)

Continues to search from the next step.


In this example, the subsequent steps do not
contain the device being searched for.
Therefore, when the final step of the program
memory is reached, the message
CANT FIND PROGM appears.

GO

Press CLR to return to the previous screen.

3-56

LD

000

LDI

000

LD

000

FIND

PRGM

CAN T

3-8 Reading a Program

3-8-3 Reading (searching for) an instruction


The program step containing a specified instruction can be read.
This operation is done in READ MODE.

Basic operation

RD
WR

GO

Device

[Instruction] key

(1) Reading a sequence instruction


The key operation to read the instruction ORI X2 in the following program is given below:
<Ladder diagram>

<Mnemonic notation>
Step No.

YC

X0
0
X2

YE

X3
3
M0
X2

YF

X1
7

Ins. word Device

LDI

ORI

X0
X2

OUT

YC

LD

X3

ORI

M0

ORI

X2

OUT

YE

LDI

X1

ORI

X2

OUT

YF

10

END

X2

10

END

The instruction ORI X2 is read out.


(When a sequence instruction is read, step contents, including
devices, are searched.)
Instructions are read sequentially from step 0.

3-57

3-8 Reading a Program

<Key operation>

<Screen>
In read mode

ORI
T

Inputs instruction word.

LD
X

Inputs device identifier.

MRD
2

Inputs device address.

R
INS .

ORI

INS .

ORI

ORI

X 002

ORI

X 002

ORI

X 002

ORI

X 002

FIND

PRGM

R
INS .

GO

Searches for instruction, reading form step 0.


(First, found at step 1)

GO

Searches from the step after the step read


at the previous screen.

GO

Searches from the step after the step read


at the previous screen.

Searches from the step after the step read


at the previous screen.
In this example, the subsequent steps do not
contain the instruction being searched for.
Therefore, when the final step of the program
memory is reached, the message
CANT FIND PRGM appears.

GO

Press CLR to return to the previous screen.

3-58

CAN T

3-8 Reading a Program

(2) Reading a data instruction


The key operation to read the data instruction MOV in the following program is given below:

<Ladder diagram>

<Mnemonic notation>

X0

Step No.

MOV 0

WM10

X1

MOV -1

WM11

Ins. word Device

LD

X0

MOV

K0

LD

X1

MOV

K-1

<Key operation>

WM10
WM11

<Screen>
In read mode
R

FNC

INS .

FN C

INS .

FNC

020

MOV

020

MOV

020

MOV

020

Input data instruction FNC No..

MRD
2

GO

NOP
0

Searches for instruction word from step 0.

Pressing the

or

keys to go to

the next or previous step.

GO

Continues to search from the next step.

GO

If the subsequent steps do not contain instruction


being searched for, the message appears.

R
CAN T

At that time, press CLR to return to the previous screen.

3-59

FIND

PRGM

3-8 Reading a Program

3-8-4 Reading a pointer


(1) Reading a jump instruction pointer P
A pointer P specifying the destination of a jump instruction (CJ or JMP) can be searched for and the step at which it occurs
displayed.
<Key operation>

<Screen>

In read mode

P/I

MPS
1

GO

Inputs jump instruction pointer P.

POINTER

POINTER

0 1

0 1

Inputs pointer No..

Executes search to read out that step.

10

(2) Reading an interrupt program pointer I


A pointer I specifying the first step of the interrupt program can be searched for and the step at which it occurs displayed.
<Key operation>

<Screen>

P/I

POINTER

POINTER

POINTER

I 0 1 0 0

20

I 0 1 0 0

Input interrupt program pointer identifier.


R

P/I

MPS
1

GO

NOP
0

NOP
0

Input pointer number and


fixed-cycle interrupt cycle.
Input 00 for interrupt other
than fixed-cycle.

Executes the search.

3-60

Section 4 Monitor and Test Functions

Page
4-1 Monitoring ................................................................................................................... 4-1
4-1-1 Conductivity check ................................................................................................................ 4-1
4-1-2 Monitoring devices ................................................................................................................ 4-2
(1) Monitoring bit device X0 ......................................................................................................................... 4-2
(2) Bit-wise monitoring of register areas ...................................................................................................... 4-3
(3) Monitoring a word device ........................................................................................................................ 4-4
(4) Monitoring a 32-bit word device .............................................................................................................. 4-5
(5) Monitoring of floating-point ..................................................................................................................... 4-7

4-1-3 Monitoring a timer or counter ................................................................................................ 4-8

4-2 Test ............................................................................................................................... 4-9


4-2-1 Forced ON/OFF (changing bit device contents) ................................................................... 4-9
4-2-2 Changing the contents of a word device .............................................................................. 4-11
4-2-3 Changing contents of 32-bit word data ............................................................................... 4-13
4-2-4 Changing the contents of floating-point data ...................................................................... 4-15
4-2-5 Changing the current value of timer/counter instruction ..................................................... 4-16
4-2-6 Changing a timer/counter setting value .............................................................................. 4-17
4-2-7 Changing the setting value area of timer/counter using indirect setting ............................. 4-18

Section 4 Monitor and Test Functions


4-1 Monitoring
The Handy Loaders monitor function allows it to display the ON/OFF status of a programs bit devices and the data
memory contents.

4-1-1 Conductivity check


The contact and coil ON/OFF statuses are monitored while a program is read.
<Mnemonic notation>

<Ladder diagram>
X0

Y3

Ins. word

Device

LD

X0

OR

X1

OUT

Y3

END

Step No.

X1
END

With the above program, Y3 conductivity check is performed.


Basic operation
<Screen>
MNT
TEST
Either upper or
lower key
operation gives
the same
result.

STEP

GO

STEP No.

M
Sets monitor
mode.

GO

STEP No.

Read step No. of a program for which


a conductivity check is to be performed.

To specify a step from any position, press


or

Read step No. of a program for which


a conductivity check is to be performed.

OUT

STEP

Y003
Blank : OFF
: ON

Monitor
mode

STEP

Press

Step No. 2 is read.

MNT
TEST
Sets monitor
mode.

STEP No.

GO

to scroll the screen to adjacent steps.

Example: To display step 1 and step 0 from the above screen,


press

key.

LD

000

OR

001

Note
When timer and counter instructions are being monitored by a conductivity check, it appears that those instructions
result in the same operation as the normal OUT instruction. (The instructions are synchronised with condition
contacts.)

4-1

4-1 Monitoring

4-1-2 Monitoring devices


The device statuses (data memory area) can be monitored.
(1) Monitoring bit device X0
Basic operation

MNT

SP

TEST

Device identifier

Device address

GO

Device X000 is read out.

MNT

SP

TEST

LD
X

NOP
0

Monitor
mode

GO

000
Blank : OFF
: ON

Press

or

to scroll the screen to adjacent steps.

<Key operation>

000

001

000

001

0 02

000

001

002

003

002

003

004

* Up to four bit devices (except up to two for the data register and only one
for the timer or counter) can be monitored on a single screen.
M

4-2

002

003

004

005

4-1 Monitoring

(2) Bit-wise monitoring of register areas


The bit-wise monitoring of register areas (data register: D, link register: W).
Example: Perform the key operation below to monitor bit 5 of data register: D10.
F F D C B A 9

8 7

4 3

2 1

D10
Monitoring here.

10

Device identifier

Word address

MNT

SP

TEST

Press

or

GO

Bit address

SP

D00105

key to scroll the screen to adjacent bits.

Word and bit


Even if all the data memory areas (areas X, M, and D, etc.) of consist of bit data, it is possible to process the data as
word data (in 16 bits unit). Bit data are weighted (numeric value) in a word device as follows:

F
-2

15

E
2

14

D
2

13

C
2

12

B
2

11

A
10

9
2

8
9

7
8

6
7

5
6

4
5

When data is read in decimal, it is 2 s complemented and the MSB is -215.

In the above example, when bit 5 of D10 is turned on, word data of D10 is 25=32.

4-3

3
4

2
3

1
2

0
1

4-1 Monitoring

(3) Monitoring a word device


It is possible to process a bit device as a word device by entering

before the device identifier.

For example, to monitor WM10, perform the key operation below.


<Screen>

<Key operation>

MNT

SP

TEST

AND
M

MPS
1

NOP
0

GO

W M 0 1 0

K0

Word area is monitored in decimal.

Input a register area without entering

before the device identifier.

For example, to monitor D10, perform the key operation below.


<Screen>

<Key operation>

MNT

SP

TEST

ANB
D

MPS
1

NOP
0

D 0 0 1 0

GO
Word area is monitored in decimal.

Switching between decimal and hexadecimal modes


The Handy Loader monitors a word area to display data in decimal. To display data in hexadecimal, press HELP
while decimal data is being displayed.
In the above example, press HELP to display data in the D10 area in hexadecimal.
M

Pressing

HELP

switches between decimal and hexadecimal display modes.

4-4

D0010

H0005

K5

4-1 Monitoring

(4) Monitoring a 32-bit word device


All word devices consist of 16-bit data. However, 32-bit data may be set when a data instruction is partly used or the highspeed counter function is used.
The 32-bit monitor function is useful, for example, when the multiplication instruction (FNC032) is used.

<Ladder diagram>

<Mnemonic notation>
Ins. word

M300

Device

LD

M300

MUL

D0

X D0 D1 D10

D1

D10

The above multiplication instruction performs the following operation:


D0 16-bit data is multiplied by D1 16-bit data and the results stored in the 32-bit data area consisting of D10 and D11.

D1

D0
1234

D11

D10

56

69104

Numeric data is expressed by 2 s complement. When data is expressed as 32-bit data, the weighting is as follows:

D11
F
-2

31

E
2

30

D
2

29

C
2

28

B
2

27

A
26

9
2

25

8
2

24

23

22

21

20

19

2
2

18

17

16

One numeric data is

D10
F
2

15

E
2

14

D
2

13

C
2

12

B
2

11

A
2

10

9
2

8
2

expressed by two

7
8

6
7

5
6

4
5

4-5

3
4

2
2

1
2

0
1

word devices.
0

4-1 Monitoring

Perform the key operation below to monitor the multiplication results on the previous page.
MNT
TEST

HELP

STR
0

Inputs device

D0010

(for lower 16 bits.)

Upper 16-bit device.

GO

HELP

Specifies 32-bit data monitoring.

ANB AND
D
1

Press

Sets device monitoring mode.

SP

D0011

D0010
K 69104

Lower 16-bit device.

to monitor the 32-bit area in hexadecimal.

Decimal display is switched to hexadecimal display, and vice versa.


Press

or

to monitor adjacent devices.

For example, when 32-bit data in D11


Press

D10

is monitored:

to monitor 32-bit data in D 0 F D 0 E , or press

D 0 0 0 F
D000E
K
233832448

D0011
K

D0013

to monitor 32-bit data in D 1 3

D000F
D000E
H0DF00000

D0011
D0010
H 0 0 010DF0

D0013
D0012
H 0 0 0 0 0 0 0 1

HELP

D0010
69104

HELP

D0012
K 1

HELP

4-6

D1 2 .

4-1 Monitoring

(5) Monitoring of floating-point


The data of the floating point can be monitored. Data is displayed in a double word.

When there is data in D10 and D11.


<Key operation>
MNT

TEST

SP

MPS
1

NOP
0

HELP

<Screen>

ANB
D

D 0 0 1 1
D0010
K 983815946

Display the hexadecimal number.

D 0 0 1 1
D0010
H 3 A A 3 D7 0 A

It becomes a display of the floating


point data.

D 0 0 1 1
D0010
1.2 5 0 0 0 E - 0 3

GO
Call D10 and D11.

HELP

4-1-3 Monitoring a timer or counter

4-7

4-1 Monitoring

Setting values, current values, and time-up contacts ON/OFF statuses of the timer and counter can be monitored.

MNT

Timer device identifier

SP

TEST

000

K
K

Timer device address

GO

1 55

T 000

20 0 0

2 0 00

2 000

Timer times up.


Timer setting value

Timer setting value

Timer current value

Timer current value


Timer-up contact

Counter instruction

MNT
TEST

Counter device identifier

SP
000

K
K

2
100

GO

Counter device address

000

1 00

1 00

Counter count-up.
Counter setting value

Counter setting value


Counter current value

Counter current value


Count-up contact

Monitoring a timer or counter that is not used


Timers and counters that are not used in a program are not provided with settings. If an attempt is made to monitor
such timer or counter, a message NO SETTING appears.
It takes time to display the above message because the entire program memory area is searched for setting values
that do not actually exist.
M

T010
NO

K0
SETTING

Monitoring a time or counter whose settings are indirectly specified


The setting value of a timer or counter instruction can be indirectly specified. If an attempt is made to monitor such
timer counter, the following screen appears.

001

K0

K 500

4-8

WM000

4-2 Test

The test function allows the Handy Loader to forcibly turn on and off the PC data memory contents.
Note: When using the test function, read out the device in monitor mode to enter test mode.

4-2-1 Forced ON/OFF (changing bit device contents)


The forced ON/OFF function allows externally connected output devices to be turned on and off.
Basic operation

MNT

SP

TEST

Device

GO

Sets monitor

Read out the device to be

mode.

forcibly turned on and off.


Key operation of device monitoring

MNT
TEST
Sets test mode.

SET
8

Forced ON

RST
4

Forced OFF

Note: the forced ON/OFF function is effective only for devices marked by

on the screen,

Example: Perform the key operation below to turn on M0 forcibly.

<Key operation>

MNT

SP

TEST

MNT
TEST

AND
M

<Screen>

NOP
0

SET
8

* When this key operation is applied to a bit device X


turns X

GO

instead of M0, it securely

forcibly on.

At that time, ON status is not displayed on the loader screen and the input LED
lamp X

on the PC is not lit. For this reason, see the PC processing on the

next page.

4-9

M0 0 0 0

M0 0 0 0

X 00 1

4-1 Monitoring

PC processing
The PC executes various types of instructions in the program memory sequentially from the first step, seizes input
signals from input terminals, writes instruction execution results in memory as output signals, and performs internal
processing, such as communication and self-diagnosis etc.
The PC repeats the above processing cycle.
Seizing input signals

The forced ON/OFF function mentioned previously is timed at 1)


PC internal processing.
Bit device: X1 in the example on the previous page is assigned to the

1) PC internal processing

input relay area. The device forcibly turned on by timing 1) seizes the
real input signal (the signal from an input device connected to the
PC) by timing 4) in the same scan.
In this case, the contents of the device forcibly turned on are
rewritten instantaneously.
In addition to the input relay area, devices connected to input device
is rewritten in the next scan upon seizing input signals by timing 4),

1 scan

2) Executing instructions
in program memory

even if is forcibly turned on or off.

3) Writing output signals

4) Seizing input
processing

1) PC internal processing

2) Executing instructions
in program memory

4-10

4-1 Monitoring

In this way, the forced ON/OFF function is effective only for a moment before device is rewritten by a program. Using this
function for the input contact of the SET or RST instruction causes the same operation as if the input devices are actually
connected to the PC input terminal and operated.
Example: In the following program, turning forcibly X0 causes y10 to be on.

X0

Y10
)S)
M0000
(
)

X1

Example: In the following program, turning forcibly X2 on resets the counter.

X2

C0
[ CTR

1 ]

[ CRst

X3

4-2-2 Changing the contents of a word device


This function enables numeric data to be set in a word device.
Basic operation

MNT

Device

SP

TEST

GO

Monitoring the word device


to be set or changed.

MNT

SP

TEST

K/H

Decimal number

Sets data setting mode.

K/H

Note: Press

HELP

K/H

Hexadecimal number

to switch to numeric data display mode for word device.

If decimal mode is set, a setting in hexadecimal is converted to decimal, and decimal data is displayed.

4-11

4-1 Monitoring

Example: Set hexadecimal number FFFF in data register D0.


<Screen>

<Key operation>

MNT

ANB
D

SP

TEST

NOP
0

GO

D0000

K0

D0000

K0

D0000

H FFFF

D0000

K-1

Monitor data register: D0

MNT
TEST

a,
SP

Set numeric data setting mode


(in decimal mode.)

K/H

K/H

Change to hexadecimal data


mode.

GO

Input hexadecimal numbers.

When setting is completed,


the screen returns to decimal
display again.

4-12

4-1 Monitoring

4-2-3 Changing contents of 32-bit word data


Word device all consists of 16-bit data. However, 32-bit data may be set when a data instruction is used or the high-speed
counter function is used.
This is effective, for example, for setting a 32-bit dividend when the division instruction (FNC033) is used.

<Mnemonic notation>

<Ladder diagram>

Ins. word

M300
/ D0 D2 D10

D1

Device

LD

M300

DIV

D0

D2

D0
/

D2

D10

D11

D10

D13

D12

Quotient

1234

Remainder

32-bit data can be set.

Numeric data is expressed by 2 s complement.


When data is expressed as 32-bit data, weighting is as follows:
D1
F

-2

31

30

29

28

27

26

25

24

23

22

21

20

19

2
18

17

16

One numeric data

D0
F

15

14

D
13

12

11

10

is expressed by

7
8

6
7

5
6

4
5

4-13

3
4

1
2

0
1

two word devices.


0

4-1 Monitoring

Follow the key operation below to set dividend for the division instruction on the previous page.
MNT
TEST

Set device monitoring mode.

SP

HELP

Specifies 32-bit monitoring.

ANB NOP
D
0

Input device (lower 16-bit).

GO

D0 000

D0001

Sets test mode.

D0 000
K0

MNT
TEST

,
SP

Upper 16-bit device

K/H

D0001

K0

MPS MRD MPP RST NOP NOP NOP NOP


1
2
3
0
0
0
0
4

Up to eight digit numeric value in hexadecimal, or up to 10 digit in decimal can be set.


Press HELP to switch to hexadecimal setting.
Press

or

D0 0 00

to display adjacent devices.

4-14

GO

Lower 16-bit device

4-1 Monitoring

4-2-4 Changing the contents of floating-point data


Set the data of the floating-point by the following operations.
Basic operation

MNT

HELP

SP

TEST

GO

Devise

Set or change data after monitoring the floating-point data.


Basic operation

MNT

Decimal number

SP

TEST

Set current data setting mode.

ORB
E

Input the mantissa part.

(Change the sign.)

Hexadecimal number

Change the input part


from the mantissa part to
the exponent part.

Input the exponent part.

GO

(Change the sign.)

Example) Data register: Change the current value of D10 and D11.

MNT
TEST

NOP
0

ANB
D

HELP

SP

MPS
1
M

GO

D00 11
0.

D0 010

0 0 000E+00

Monitor D10, D11.

MNT

D0 010

0. 0 0 0 0 0 E + 0 0

SP

TEST

D 0 01 1

Change the display to the test mode.

MRD
2

MPP
3
-

ORB
E

RST
4
PLF
5

GO

D0011
2.

Input the value 2.34E-5 of the change value.

4-15

D 0 0 10

3 4 0 0 0E -05

4-1 Monitoring

4-2-5 Changing the current value of timer/counter instruction


Basic operation

MNT

GO

Timer or counter number

SP

TEST

Monitor the timer or counter to change its current value.

MNT

SP

TEST

K/H

Decimal number

K/H

K/H

GO

Set current data setting mode.

GO

Hexadecimal number

Input a new numeric data.

Note: For timer/counter numeric data, hexadecimal display mode is not available. (Even if

HELP

is pressed, display remains in decimal.)

Even if data is set in hexadecimal, it is displayed in decimal.

Example: Perform the key operation below to change timer: T0 setting value to decimal number 99 .

Current value of timer T0

MNT

ORI
T

SP

TEST

NOP
0

GO

TEST

000

K 0
K

5 00

Setting value of timer T0

Monitor T0.

MNT

000

K 0

SP

500

Set the current data


setting mode.

K/H

PLS
9

PLS
9

GO

000

K 99
K

Input decimal 99 .

4-16

500

4-1 Monitoring

4-2-6 Changing a timer/counter setting value


Basic operation

MNT

Timer or counter number

SP

TEST

GO

Monitor the timer or counter to change its setting value area.

MNT
TEST

SP

SP

K/H

Decimal number

GO

Set data setting mode


(setting value area
specification mode).

Note: For timer/counter numeric data, hexadecimal display mode is not available. (Even if

HELP

is pressed, display remains in decimal.)

Even if data is set in hexadecimal, it is displayed in decimal.


Note: An identical key operation applies also when the timer/counter setting value is indirectly specified. (see the next page.).

Example: Perform the key operation below to change timer: T0 setting value to decimal 999.

Current value of timer T0

MNT

ORI
T

SP

TEST

NOP
0

GO

TEST

000

K
K

500

Setting value of timer T0

Monitor T0.

MNT

SP

SP

000

K
K

500

Set data setting mode (setting value


area specification mode).

K/H

PLS
9

PLS
9

PLS
9

GO

Input a new value, decimal 999.

4-17

000

K
K

999

4-1 Monitoring

4-2-7 Changing the setting value area of timer/counter using indirect setting
The N-series PCs timer/counter instruction can specify any word device as a setting value. (Indirect specification)
Basic operation

MNT

GO

Timer or counter address

SP

TEST

Monitor timer or counter to change its setting value area.

SP

SP

MNT
TEST

GO

Word device to store setting value

Set data setting mode


(setting value area
specification mode).

Input word device to perform indirect specification.

Note: When a timer/counter setting value is indirectly specified, the setting value (numeric data) is changed by changing
the numeric value of the word device in the setting value area.

Example) Perform the key operation below to specify word device: WM0 in the setting value area of timer T0.

Current value of timer T0

MNT

ORI
T

SP

TEST

NOP
0

GO

TEST

000

K
K

500

Setting value of timer T0

Monitor T0.

MNT

SP

SP

000

K
K

500

Set data setting mode (setting value


area specification mode).
Current value of T0

AND
M

NOP
0

GO

000
K

T0 setting value

4-18

K
0

WM 0 0 0

Section 5 Auxiliary Function

Page
5-1 PC Start/Stop ............................................................................................................... 5-1
5-2 Program Check ........................................................................................................... 5-2
5-3 Parameter Setting ....................................................................................................... 5-5
5-4 Password ..................................................................................................................... 5-9
5-4-1 Registering a password ........................................................................................................ 5-9
5-4-2 Operation when a password is set ...................................................................................... 5-10
5-4-3 Canceling a password ......................................................................................................... 5-10
5-4-4 If you forget a password: ..................................................................................................... 5-10

5-5 Message Display ....................................................................................................... 5-11


5-5-1 System messages (error messages) ................................................................................... 5-11
5-5-2 User messages ................................................................................................................... 5-14

5-6 RAS ............................................................................................................................ 5-18


5-6-1 System RAS ........................................................................................................................ 5-18
5-6-2 Instruction RAS ................................................................................................................... 5-20
5-6-3 System RAS area clear ....................................................................................................... 5-21
5-6-4 Optional RAS ...................................................................................................................... 5-22

5-7 Data Transfer to/from the Memory Card or Memory Cassette on the Processor ........ 5-24
5-7-1 Data transfer to/from the memory card on the processor ................................................... 5-24
(1) When there is no flash memory card (Transfer to internal memory) ..................................................... 5-24
(2) When there is a flash memory card ...................................................................................................... 5-25

5-7-2 Data transfer to/from the memory cassette on the processor ............................................. 5-27
(1) ROM operation ...................................................................................................................................... 5-28
(2) Transfer and verification in the memory cassette and the processor program memory ........................ 5-30

5-8 Device Conversion .................................................................................................... 5-38


5-9 Memory Clear ............................................................................................................ 5-39
5-10 Calendar Setting ..................................................................................................... 5-42
5-11 Buzzer ON/OFF........................................................................................................ 5-43
5-12 Modules (Expansion Function) .............................................................................. 5-44
5-12-1 PROM writer and EEPROM read/write unit ...................................................................... 5-44
(1) Overview ............................................................................................................................................... 5-44
(2) Name and function of each part ............................................................................................................ 5-44
(3) PROM writer mounting procedure ........................................................................................................ 5-45
(4) Handy Loader key operation ................................................................................................................. 5-46
(5) Error message list ................................................................................................................................. 5-54

5-13 Setting the PC Station Number .............................................................................. 5-55


5-14 User Program Storage in Memory in Handy Loader ............................................ 5-56
(1) Key operation ........................................................................................................................................ 5-56
(2) Error message list ................................................................................................................................. 5-59

Section 5 Auxiliary Function


5-1 PC Start/Stop

The PC starts running when it is powered on. The Handy Loader allows starting and stopping of a connected PC. If the PC
start/stop function is executed on the Handy Loader while the PC is running, the PC stops; and if the function executed
while the PC is stopped, the PC starts up.
<Key operation>

<Screen>

HANDY LOADER

Initial screen after power on.


PC is running.

NW0H NE

Sets auxiliary mode.

AUX

Selects the PC start/stop function.


(Makes the PC stop operation available.)

GO

Stops the PC.

GO

1 RUN / S T O P SW

GO

Starts the PC.

GO

STOP
OK

PC

[GO]

STOP

COMPLETION

AUXILIARY

CLR

Selects the PC start/stop function.


(Starts up the PC.)

AUXILIARY

PC

Returns to the previous screen.

R U N /S TOP S W

PC START
OK

PC

[GO]

START

EXECUTING

After this, the function is executed alternately.

PC

START

COMPLETION
* Press

AUX

RD
WR

INS
DEL

or

MNT
TEST

instead of CLR key to set each mode.

Note
When making use of this start/stop function for the NJ or NS series, be sure to set the key switch of CPU module
in the TERM position.

5-1

5-2 Program Check

Be sure to stop the PC before checking a program. (Perform the operation on the previous page to stop the PC.)
A following message appears on the Handy Loader if the program check is executed while the PC is running:

PROGRAM CHECK
PC

RUNNING

Key operation for checking a program is as follows:

Set auxiliary mode to move


to 2 PROGRAM CHECK.

AUXILIARY

AUX

Executes program check.

PROGRAM CHECK

PROGRAM CHECK

GO

EXECUTING

..................................

Yes.

Program error?

There is an error
in the program.
No.
User program
contains no error.

PROGRAM CHECK
1

ERR COD

PROGRAM CHECK
20

NO ERROR

Error code (instruction RAS)


Initial step No. containing program error

If there are multiple errors, press


step, or press

and

to display them. Press

to display any program error at a subsequent

to display any program error at a preceding step. Up to six program errors can be stored in memory.

5-2

5-2 Program Check

The following table lists error codes that may be stored in the instruction RAS area and their contents.
Note that these error codes are independent of the codes that may be stored in the system RAS area.
1) SPB-series
Instruction RAS code Description
00

Normal

01

Non-executable instruction exists, such as the instructions for higher-order devices or those
reserved for future use.

02

The type or size of operand exceeds the available range. Instructions for higher-order devices, etc.

13

Interrupt program error


1) There are multiple I****s of the same interrupt program No.
2) The upper two digits of interrupt program number is between 04 and 0F, between 12 and 1B, or
greater than 20.
Available No. for SPB series: I0000 to I0003, I1000 to I1100, and I1C** to I1F**
3) I or IRET instruction is set before FEND instruction.

14

Jump error
1) No pointer Pxx is set while there is jump instruction JMP Pxx or CJ P**.
2) There are multiple pointers P** of the same number.
3) The total number of P s exceeds 256.
4) No correspondence between JMP P** instruction and P** in an interrupt program or user
macro command executer
5) JMP P** instruction or P** exists in a user macro command caller.

18

User macro command (UM) error


1) Not programmed in the order of CALL UM**, UM EXE, and UM END
2) UMxx or URET instruction is set before FEND instruction.
3) No UM** instruction is set when there is CALL UMxx instruction.
4) The total number of UM instructions exceeds 16.
5) There are multiple UM** instructions of the same number.
6) User macro command number of UM instruction exceeds 1FFFH.

1A

LOOP-CONT error
1) LOOP-CONT nesting level (Max. 8) over
2) No corresponding CONT instruction when there is LOOP instruction
3) No LOOP instruction when there is CONT instruction
4) No correspondence between LOOP and CONT instructions in an interrupt program or user
macro command executor
5) LOOP or CONT instruction is set in a user macro command caller.

20

MPS, MRD or MPP error


1) MPP or MRD instruction is set when MPS is not used
2) No MPP instruction is set when MPS is used.
3) Stack error due to too many MPP s (more than 11)

23

Stack error due to too many ANB s or ORB s (more than 8)

24

MC and MCR errors


1) A U RET, IRET, END, or FEND is specified between the MC and MCR instructions.
2) No MCR instruction is set when there is MC instruction. (In main routine, interrupt program or
user macro command executor)

FF

The data for the result of compilation exceeds the compile area.

5-3

5-2 Program Check

2) FLEX-N series

Instruction
RAS code

Contents

NB0

00

Normal

01

A nonexecutable instruction is found. Instructions for upper-level models or


reserved for future use are nonexecutable.

02

The type or size of an operand is out of the valid range. The operands of the
instructions for upper-level models are specified.

07

The same address is used in both an input relay X** and output relay Y** in a
program. (For example, X000 and Y000 are found.)

13

Interrupt program errors


1) An interrupt pointer (I****) is duplicated.
2) The two most significant digits of an interrupt pointer No. are 20 or more.
NB2-P24/36, NB2U24/36: I0000 to I0700, I1000 to I1700
NB1, NB2-56/90, NB2U56/90, NB3: I0000 to I0700, I1000 to I1700,
I1C** to I1F**
NJ, NS: I0000 to I0F00, I1000 to I1700, I1Cxx to I1F**
(NB0 has no interrupt function.)
3) I and IRET are specified before the FEND instruction.

14

Jump errors
1) JMP P** and CJ Pxx are specified, but Pxx is not found.
2) A No. (**) is used for multiple P**.
3) The total No. of pointer P is more than the specified number.
Total No. of pointers of NB0, NB2-P24/36, NB2UP24/36: 16
Total No. of pointers for other types: 256

18

User macrocommand (UM) errors


1) The CALL UM**
UMEXE
and UMEND instructions are not
programmed in this order.
2) A UM** or URET instruction is specified before the FEND instruction.
3) A CALL UM** instruction is specified, but the corresponding UM**
instruction is not found.
4) The total No. of UM instructions is more than the maximum No.
The total No. of user macrocommands depends on the PC type.
Total NB2-P24/36 UMs: 8 (normal sequence + assembler)
Total NB1, NB2-P56/90, NB3 UMs: 16 (normal sequence + assembler)
Total NJ UMs: 32 (regular series 16, assembler 16)
Total NS UMs: 128 (regular series 64, assembler 64)
NB0 has no UMs.
5) Multiple UM** instructions having the same No. (**) are found.

20

MPS, MRD, and MPP errors


1) Although the MPS instruction is not specified, the MPP or MRD instruction is
specified.
2) Too many MPP instructions are specified and a stack error results. (11 rows)

23

Too many ANB or ORB instructions are specified, and a stack error results.
(Max. 8 rows)

24

MC and MCR errors


1) A URET, IRET, END, or FEND is specified between the MC and MCR
instructions.
2) An MC instruction is specified, but the corresponding MCR instruction is
not found.

5-4

NB

NJ

NS

5-3 Parameter Setting

Parameters are set for using expanded functions in addition to the standard functions.
Parameters are assigned to the PC memory area according to the PC type. This section explains how to set parameters
using the Handy Loader.
For the details of each parameter, see the SOFTWARE USERS MANUAL of PCs (SPB-, NS-, NJ-, and NB-series).

<Key operation>

<Screen>

AUXILIARY

AUX

PARAMETER

Set auxiliary mode and move


to 3 PARAMETER.
PARAMETER

GO
Selects parameter setting.

MRD
2

PARAMETER

GO

02
H0000

Calls the parameter address to be set.

RET
7

INV
B

PARAMETER

GO

02
H007B

Input a new numeric value for the parameter to be set.

GO

GO

Executes.

PARAMETER SET
COMPLETION

* Press the

or

key to scroll numeral of the parameter address.

Notes
Some parameters are effective as soon as they are set, while others require power to be reset or PC to be restarted
(RUN
STOP
RUN) before becoming effective.
Parameters that require power reset:
EEPROM operation mode
Battery backup error monitoring
Data latch clearance
Communication adapter setting (SPB-series)

I/O module address assignment (NJ- and NS-series)


Number of occupied points of I/O module (NJ- and NS-series)
RS-232C port setting (NS-series)

Parameters that require PC restart


Counter operation mode (SPB, NB-series)
Input signal filtering time setting

5-5

5-3 Parameter Setting

Parameters
Parameters enable the PC to be used flexibly for a variety of purposes. The PC can be used without the user setting
parameters (the defaults are in effect). However, if the default settings of the parameters do not meet the users
requirements, the user may specify different parameters.
Parameters can be set by using a program loader. The following table lists the parameters of the PC.
(1) SPB-series
Address Item

Default

Setting range

00H

File register capacity


(1 word)

0: No file register N x 256 words,


N: 00 to 1FH (0 to 32)

01H

User watchdog timer


(1 word)

0: 250ms

N x 10ms,
N: 0 to 19H (0 to 25)
(0: 250ms)

02H

Fixed-cycle scan time


(1 word)

0: Normal scan

N x 1ms,
N: 0 to FFH (0 to 255)
(0: Normal scan)

03H

PC operation mode

Backup battery
error monitoring
(2 bit)

0: Monitor
battery error

Monitor battery error or Do not monitor battery error

Data latch clear


(3 bit)

0: Do not clear

Clear or Do not clear

System stop at
nonfatal error(4 bit)

0: No stop

No stop or Stop

I/O status latch


(5 bit)

0: Turn OFF
outputs and
refresh inputs

Turn OFF outputs and refresh inputs or Stop data memory and output
latches

Built-in flash memory


0: Indicate
mismatch indication(7 bit)
04H

Remote RUN/STOP
(1 word)

05H

Not used

06H
07H
08H

Relay/register latch
range (3 words)

09H
0AH
0BH

Not used

0CH
0D

High-speed
counter

0EH

Not used

0FH
to
1EH

Input filtering
time

1FH
to
4FH

Not used

50H
to
53H

Communication adapter

Indicate or Do not indicate

0: No remote
RUN/STOP

No remote RUN/STOP or Remote RUN/STOP

0: Not specified

Not specified or Specified

0: Not specified

Whether or not to use high-speed counter and the mode of high-speed counter
can be specified.

OFF to ON: 3ms


ON to OFF: 3ms

Input filtering time can be specified in word units.

Loader
communication
mode

Operation mode, character structure, station No. and structure registration


are specified.

* Please refer to the users manual <FEH400 Section 4-3 Parameter Setting> for the set method.

5-6

5-3 Parameter Setting

(2) N-series
Setting range
Address Item

Default
NB

NJ

NS

00H

File register capacity


(1 word)

0: No file register N x 256 words,


N: 0 to 1FH (0 to 31)

01H

User watchdog timer


(1 word)

0: 250ms

02H

Fixed-cycle scanning time 0: Normal scan


(1 word)

N x 1ms
N: 0 to FFH(0 to 255)
(0: Normal scan)

03H

PC operation mode

N x 256 words,
N x 256 words,
A8 N: 00 to 1FH (0 to 31)
E4 N: 00 to 0FH (0 to 15) A64, B64 N: 0 to 80H (0 to 128)
B16 N: 00 to 3DH (0 to 61) A32, B32 N: 00 to 7FH (0 to 127)
Nx 10ms,
N: 0 to FFH (0 to 255)
(0: 2560ms)

64 points (32I+32O) or 16 points (16O)


* (Number of occupied I/O points of option module is selected)

N x 10ms,
N: 0 to 19H (0 to 25)
(0: 250ms)

Number of occupied
I/O points of option
module

0: 64 points
(32I+32O)

EEPROM operation
mode

0: Enables
EEPROM writing

Enables EEPROM writing or Disables EEPROM writing * (To set an operation


mode when an EEPROM memory cassette is used as the program memory.)

Backup battery error


monitoring

0: Monitors
battery error

Monitors battery error or


Does not monitor battery error

Data latch clearance

0: Do not clear

Clears or Does not clear


* (Whether or not the data in memory with battery-backup is to be cleared at
power-on can be specified.)

System stop at
nonfatal fault

0: No stop

No stop or Stop
* (Whether or not the PC is stopped when a nonfatal fault occurs can be specified.)

I/O status latch


0: Does not clear

0: Turn OFF
outputs and
refresh inputs

Turn off outputs and refresh inputs , or Stop data memory hold and Stop
output hold

04H

Remote RUN
(1 word)

0: No remote RUN

No remote RUN or Remote RUN , X0 to X1FF


* (An arbitrary external input can be specified as the input signal to start the PC
(RUN contact).)

05H

Remote STOP
(1 word)

0: No remote
STOP

No remote STOP or Remote STOP , X0 to X1FF


* (An arbitrary external input can be specified as the input signal to stop the PC
(STOP contact).

06H
to
09H

Relay/register latch range 0: Not specified


(4 words)

0AH
0BH

Not specified or Specified (Areas M, L, and D)


* (Memory backup can be set for a device that does not have backup, or memory
backup for a device can be cancelled.)

Not used.

* For setting of EEPROM operation mode, refer to the chapter for the memory cassette.

5-7

5-3 Parameter Setting

Address Item

Default

Setting range
NB

0CH

Use of highspeed counter


built in the NBseries

0: Not specified

NJ

Counters 0 to 7 are used or


not used.

0DH
to
0EH

Operation mode 0:
of high-speed
High-speed
counter built in
response
the NB-series
Supporting
two-phase
No auto reset

0FH
to
27H

Digital input
signal filtering
time

Time setting is made in points


NB-series
OFF
ON: 3ms for an input module installed
ON
OFF: 10ms in the basic unit.
NJ- and NS-series
OFF
ON: 10ms
ON
OFF: 10ms

28H
to
2EH

Digital input
signal filtering
time

Time setting is made in words


for an input module installed
in the expansion unit.

2FH

I/O module
address
assignment
mode

0/1:
High-speed/low-speed
response
Two-phase operation/onephase
No auto reset/auto reset

Not used.
NJ-series : 16 points
NS-series: 32 points

Number of
0: No arbitrary
occupied I/O
assignment
module points for
arbitrary
assignment

50H

RS-232C port
setting (only B
type CPU is
effective)

Not used.

Not used.

Time setting is made in 1 module unit (in the unit of 200)


for each of the input modules.

The method of I/O module address assignment can be


selected;
Automatic assignment or arbitrary assignment.
The number of points occupied by unused slots can also
be specified;
NJ-series : 16 points or 0 point
NS-series: 32 points or 0 point

0: Automatic
assignment and
unused slot.

30H
to
40H

NS

I/O module, optional module, the number of I/O module


points, and the number of optional module points can be
specified for each slot.

Not used.

Baud rate: 2400


Stop bit: 1
Not used.
Character length: 7
Parity bit: None

Not used.

* Please refer to the following user s manual for the set method.
(1) NB series Software <LEH923> 4-5 Parameter setting
(2) NJ series Software <LEH925> 3-4 Parameter
(3) NS series Software <LEH927> 3-4 Parameter

5-8

Baud rate setting


Stop bit setting
Character length setting
Parity bit setting

5-4 Password

Registration of a password is enabled to prohibit all Handy Loader operation and protect a program when the power is
turned on. Once a password has been registered, it must be input whenever power is turned on.

5-4-1 Registering a password

<Key operation>

<Screen>

AUXI L I A R Y

AUX

PASSWORD

Set auxiliary mode to move to 4 PASSWORD.

PASSWORD

GO

SET

Selects password.

PASSWORD SET

GO
Selects 1 SET (registration).

NOP
0

NOP
0

NOP
0

NOP
0

GO

Executes.

PASSWORD SET
COMPLETION

Input a four-digit password in decimal (0 to 9).

Note
The password must be decimal 4 digits. Passwords of 1, 2, or 3 digits are invalid.

PASSWORD SET

The password registration is rejected.


11
Though you may press
message will not appear.

5-9

GO

key, the COMPLETION

5-4 Password

5-4-2 Operation when a password is set


When a password is set, the Handy Loader displays the following messages when power is turned on:
KEY IN PASSWORD

Initial screen

Input a registered password.

KEY IN PASSWORD
0612

GO

Executes.

HANDY LOADER
V .

NW0H-NE

The subsequent operation is identical to that for normal operation.

5-4-3 Canceling a password


AUXILIARY

AUX

PASSWORD

Set auxiliary mode to move to 4 PASSWORD .

PASSWORD

GO

CANCEL

Move to an item of deleting a password.

PASSWORD

GO

CANCEL

COMPLETION

Executes password deletion.

5-4-4 If you forget a password:


If you forget a password, you cannot monitor or modify a program in the PC. In this case, cancel the password by
performing the key operation below.
(This operation clears not only the password but also all the areas for programs, data, and parameters.
Take care remember any password you have registered.)

,
SP

SP

KEY IN PASSWORD

Press eight times.

PC ALL CLEAR ?

GO

OK

5-10

[GO]

5-5 Message Display

Messages are grouped into system messages and user messages.


Both types of message can be monitored and displayed on the Handy Loader.

5-5-1 System messages (error messages)


The PCs are provided with various diagnostic functions. If an indication lamp on the processor comes on to indicate an
error, use the Handy Loader to search for the cause of the error.

AUXILIARY

AUX

5 SYSTEM MESSAGE
Set auxiliary mode to move to 5 MSG DISPLAY and executes.

<When there is no message>


SYSTEM MESSAGE

GO

<When there is a message>


SYSTEM

If there is no message to be displayed, the above screen appears.


A message, if any, appears in the lower row.

USER

MESSAGE

PROGRAM

ERR

A table of message is given on the next page.

System messages are stored by the PC in the special relay area D8038 to D803F.
If multiple errors occur, the system message for only the last generated error is displayed. A system message list is given
on the next page.
System message area
F

The PC automatically
writes any system
message in this area.

8 7

D 8 0 3 8

(2)

(1)

D 8 0 3 9

(4)

(3)

D 8 0 3 A

(6)

(5)

D 8 0 3 B

(8)

(7)

D 8 0 3 C

(10)

(9)

D 8 0 3 D

(12)

(11)

D 8 0 3 E

(14)

(13)

D 8 0 3 F

(16)

(15)

System message

(1) (2) (3) (4) (5) (6) (7) (8) (9) (10) (11) (12) (13) (14) (15) (16)

5-11

5-5 Message Display

System message list


1) SPB-series
Item

Check content and


method

Normal running
Normal stop

No error found during


self-diagnosis

Message display SPB-series

System Special
RAS
relay
code
M8000

Processor power Power voltage dropped


shutdown

11

User program check sum error


Parameter check sum error
File check sum error
Compile check sum error

PROGRAM MEM ERR


PRMTR MEM ERROR
FILE RGTR ERR
COMPILE MEM ERR

21
26
27
23

Power failure
hold error

Keep relay data not held

LATCH DATA ERROR

Memory card
error

Sum check error


PC type code unmatched
Memory card write check

User RAM error

Other
Check
special timing
relay(s)

At power off

M8001

M8030

At power on
At start-up
During running

29

M8001

M8021

At power on

MEMCARD DATA ERR


MEMCARD MISMATCH

2A
2F

M8001
M8001

M8038
M8038

At power on

MEMCARD WRT ERR

2D

M8001

M8038

Battery error

Voltage drop
Battery loose

Operation and
monitoring

User WDT up

WDT UP

35

User nonfatal
fault

User nonfatal fault relay on

USER S MINOR FLT

User fatal fault

User fatal fault relay on

USER S MAJOR FLT

At power on
During memory card writing

M8028
M8029

At power on
Constantly

M8001

M8020

During running

37

M8001

M8026
M8010~M802F

During running

36

M8001

M8027
M8130~M814F

During running

I/O collation error Configuration data inconsistent EXPNDER DISCONN

45

M8001

M8033

Constantly

User program
error

Program check for circuit error,


syntax error,etc.

According to
instruction
RAS code

M8001
*1

M8032

With the loader at


start-up (program
check)

CPU error

System WDT up

Constantly

System RAM
error

Read and write enable check

At power on

Built-in flash

Sum check of built-in flash memory

FLASH MEM ERR

51

M8001

M8039

memory error

Write check of built-in flash memory

FLASH MEM W ERR

52

M8001

M8039

COM ADPT DISCONN

4E

M8001

M8037

Constantly

4F

M8001

M802C

Constantly

Disconnected or
Disconnected or added
added communication communication adapter during
adapter
operation

PROGRAM ERROR

Simplified CPU link Disconnected station detected or CPU LINK CFG ERR
structure error
structure registered station not yet
connected during simplified CPU
link communication

*1) Please refer to the <Instruction RAS Code List (Page 5-3)> for the Instruction RAS Code .

5-12

At power on
During built-in flash writing

5-5 Message Display

2) FLEX-N series
Item

Check content and


method

Normal running
Normal stop

No error found during


self-diagnosis

Processor power
shutdown

Power voltage dropped

Message display
NB

NJ/NS

System
RAS
code

Special
relay

Check
Other
special timing
relay(s)

M8000
11

Constantly

Constantly

Expansion power Expansion unit power not


shutdown
normally supplied

EXPNDER PWR DOWN

15

M8001

24V DC error

24V DC power output shortcircuited or overcurrent

AUX PWR SPLY FLT

16

M8001

User RAM error

User program check sum error


Parameter check sum error
File check sum error
User macro check sum error

PROGRAM MEM ERROR


PRMTR MEM ERROR
FILE RGTR ERROR
USER MACRO ERROR

21
26
27
28

M8001
M8001
M8001
M8001

Power failure hold Keep relay data not held


error

LATCH DATA ERROR

29

M8001

Memory cassette Sum check error


error
PC type code unmatched

CST DATA ERROR


MEM CST MISMATCH

2A
2F

M8001
M8001

BATTERY ERROR
BAT NOT CONNTED

22
25

M8001

M8028
M8029

Constantly

WDT UP

WDT UP

35

M8001

M8020

During running

User nonfatal fault User nonfatal fault relay on

USER S MINOR FLT

USER S MINOR FLT

37

M8001

M8010 to
M802F

During running

User fatal fault

USER S MAJOR FLT

USER S MAJOR FLT

36

M8001

M8030 to
M804F

During running

Blown output fuse Blown output fuse detecting

FUSE FAULT

44

M8001
M8022

M8080 to
M80BF

Constantly

I/O verify error

Configuration data inconsistent

EXPNDER DISCONN

45

Constantly

Expansion unit
disconnect

Expansion unit disconnect


during running

45

M8001/M8032 M8040 to
M807F
M8001
M8023

Constantly

I/O area
exceeded

Number of I/O points of I/O


module exceed the maximum

46

M8001

At power on

Expansion unit
code setting
error

Expansion unit I/O area exceeded I/O POINT OVER

46

M8001

At power on

Expansion unit I/O area overlap

I/O AREA OVERLAP

4A

Number of
expansion units
exceeded

NB expansion units exceed 3


and special units exceed 4

EXPANDERS OVER

4B

M8001

Module error

I/O slot mounting module error


other than error code 44 or 45
Mounting position hand shake
error

47
48
49

M8001/M8024
M8001
M8001

Battery error

Voltage drop
Battery loose

Operation and
monitoring

User WDT up

User fatal fault relay on

User program error Program check for circuit error,


syntax error, etc.

(Note: 2)

EXPNDER DISCONN

I/O POINT OVER

I/O MODULE FAULT


OPTION MDL ERROR
OPTION WDT UP

PROGRAM ERROR

ERROR IN STEP

According to
instruction
RAS code

CPU error

M8025

Constantly

At power on
At start-up
During running
M8021

At power on
At power on

At power on

M8001
(Note: 3)

At power on

Constantly
M80C0 to M80FF

With the loader


at start-up
(program check)
Constantly

System WDT up

System RAM error Read and write enable check

At power on

Loader
communication
error

Error occurred during loader


communication

At loader
communication

COM
communication
error

Error in communication port

At COM
communication

Note: 1 The shaded boxes denote differences between NB and NJ/NS.


Note: 2 No message appears for NB. (Battery error LED is on and special relay works.)
Note: 3 For instruction RAS codes, see the instruction RAS code list on page 5-4.

5-13

5-5 Message Display

5-5-2 User messages


The PC allows a user program to display messages. The user message data is written into the PC special relay areas
D8030 to D8037.
Characters used for user messages are 8-bit ANK codes (see the next page). The codes are stored in the following order.

User message area contents


Bit address
F

8 7

D 8 0 3 0

(2)

(1)

D 8 0 3 1

(4)

(3)

D 8 0 3 2

(6)

(5)

D 8 0 3 3

(8)

(7)

D 8 0 3 4

(10)

(9)

D 8 0 3 5

(12)

(11)

D 8 0 3 6

(14)

(13)

D 8 0 3 7

(16)

(15)

<Screen>
USER MESSAGE
(1) (2) (3) (4) (5) (6) (7) (8) (9) (10) (11) (12) (13) (14) (15) (16)

<Key operation>
AUXILIARY

AUX

MSG DISPLAY

Set auxiliary mode to move to 5 MSG DISPLAY.

SYSTEM MESSAGE

GO
Displays a system message.

USER MESSAGE

Displays a user message.

Note: If there are no system messages (no errors have occurred), SYSTEM MESSAGE does not appear but USER MESSAGE
only appears.

5-14

5-5 Message Display

User message code list


0000
0

0010
2

0011
3

0100
4

0101
5

**** 0000
0

**** 0001
1

**** 0010
2

**** 0011
3

**** 0100
4

**** 0101
5

**** 0110
6

**** 0111
7

**** 1000
8

**** 1001
9

**** 1010
A

**** 1011
B

**** 1100
C

**** 1101
D

**** 1110
E

**** 1111
F

5-15

0110
6

0111
7

1010
A

1011
B

1100
C

1101
D

1110
E

1111
F

5-5 Message Display

Typical user of user message


When input X0 is turned on, the user message
X0
on appears;
when X0 is off,
X0
off appears.
Write there messages from the file register area of the user message area.

AUX

GO

GO

PARAMETER

Set the file register by setting parameter (file register).

MPS
1

GO

GO

GO

PARAMETER SET
COMPLETION

Secures the file register area as 256 words (R0 to RFF).

User message display data is written in the file register area R0 to RF.

X0

X0

on

off

00
H 0 000

R0

H3058

R1

H7E20

R2

H6F20

R3

H206E

R4

H2020

R5

H2020

R6

H2020

R7

H2020

R8

H3058

R9

H7E20

RA

H6F20

RB

H6666

RC

H2020

RD

H2020

RE

H2020

RF

H2020

5-16

5-5 Message Display

Display program (Use the block transfer BMOV instruction to read a data from the file area.)

X0
BMOV R0 : D8030 : K8
X0
BMOV R8 : D8030 : K8

Note: The NB0 and NBE (NB2-P24/36, NB2U24/36) types do not support the file register and block transfer (BMOV) instruction.
Use the MOV instruction in another memory area.

Perform the key operation below to display a user message.

AUX

GO

X0: ON

X0: OFF

USER MESSAGE

USER MESSAGE

X0

X0

ON

OFF

Note: A screen displaying a message is not switched to even if display data (D8030 to D80377) changes. To monitor a
switched screen, the key operation for displaying a user message must be performed again. Turn X0 input on or off,
and after the key operation above, perform the key operation below to display a new message.

CLR

GO

The user program enables to generate fatal and nonfatal faults. At such time, the cause of the error can be easily checked by
checking the displayed user message.

Name

Common to SPB, NB, NJ, NS-series

User nonfatal fault relay M8110 to M812F


(running continued)
User fatal fault relay
(running stopped)

M8130 to M814F

5-17

5-6 RAS

The following types of RAS are provided: system RAS for PC self-diagnosis and external fault diagnosis; instruction RAS
for user instruction diagnosis; and optional RAS for areas possessed by specific optional modules. The PC determines
whether to start or stop itself upon receiving the RAS results.

5-6-1 System RAS


1) Hardware self-diagnosis (LED indication)
The system RAS performs CPU hardware diagnosis by performing a RAM read/write check whenever the power is
turned on. If any error is found, CPU operation is not started. System RAS also monitors CPU operation by means of a
watchdog timer. It prevents operation if a certain time elapses. Any use of the programming tool is then disabled. If an
error recurs after power is restarted, the basic unit is faulty.
2) Self-diagnosis on system operation (Error code in system RAS area)
The CPU performs self-diagnosis (program check, system check etc.) on the PC before starting-up the system.
If an error occurs, the corresponding processing performed (for example, an external LED comes on and the PC starts
or stops). The error code is then stored in the system RAS area. (The corresponding message data is stored in the
system message area. See Section 5-5.)
Error codes are stored sequentially, enabling the error history to be checked. (An error message statement
corresponding to the latest error code is stored.) In addition, an error flag corresponding to an error is written in the error
notification relay (special relay) area. It can be read and checked with the Handy Loader, and used in a user program.
For system RAS codes, see the system message list on Page 5-12, 5-13.
Contents of the system RAS area
PC type Address (No.)

Contents
Latest RAS
position

Total number
of errors
Minute

Day

Hour

Year

Month

Error code (system RAS code)

SPB

Remarks

Second

Total number of errors: 00 to FF


Latest RAS position: Indicates address (No.) where the latest RAS
is stored. (If no RAS is stored, 0 is indicated.)
The time of error occurrence is also stored. An error is stored using
four words.
The model without the calendar function stores 0 .
The PC itself writes up to 60 errors for each error occurrence in the
system RAS area.
If memory overflows, memory is overwritten from address 1,
enabling the latest 60 errors to be stored.

F0
Latest RAS
position

Total number
of errors

Error code (system RAS code)

2
3
4

NB0

5
6
7

NB

Hexadecimal

0
1
2
3
4

Latest RAS
position

Error code (system RAS code)

Total number of errors: 00 to FF


Latest RAS position: Indicates address (No.) where the latest RAS
is stored. (If no RAS is stored, 0 is indicated.)
An error code is system RAS code. (See Section 5-11.)
The PC itself writes up to 60 errors for each error occurrence.
If memory overflows, memory is overwritten from 1, enabling the
latest 15 errors to be stored.

D
E
F
0

NJ/NS

Total number
of errors

Total number of errors: Countable from 00 to FFH (0 to 255).


Returns to 00 after FF
Latest RAS position: Indicates address (No.) where the latest RAS
is stored. (If no RAS is stored, 0 is indicated.)
The PC itself stores up to 7 errors into the address No. 1 and
followed Nos for each error occurrence.
If the address No. F is occupied by the error code, the processing
returns to address No. 1 and the latest 7 errors are stored.

Latest RAS
position

Total number
of errors
Minute

Second

Day

Hour

Year

Month

4
5

Error code (system RAS code)

Total number of errors: 00 to FF


Latest RAS position: Indicates address (No.) where the latest RAS
is stored. (If no RAS is stored, 0 is indicated.)
The time of error occurrence is also stored. An error is stored using
four words.
The PC itself writes up to 60 errors for each error occurrence.
If memory overflows, memory is overwritten from 1, enabling the
latest 60 errors to be stored.

6
F0

5-18

5-6 RAS

Monitoring method of the system RAS area


Start up the FLEX-PC series PC and perform the following key operation with the Handy Loader:
<Key operation>

AUX

<Screen>
AUXILIARY

GO

RAS

(Press five times)

RA S

Set auxiliary mode to move to 6 RAS .

GO

Input address (0 to F0) of the


system RAS to be monitored.

Call the system RAS address 0 .

NOP
0

GO

SYSTEM

RA S

SYSTEM

RAS

SYSTEM

RA S

S Y S TE M

R AS

00

00
0505

Five errors occurred and their RAS code are stored in RAS address 1 to 5.
In this address, the RAS code of the last generated error is stored.

Call the system RAS


address 1 .

In the NJ/NS-series, the date and time


of error occurrence are stored.

SYSTEM

RA S

01
0011

Note: Even when the PC function normally, the system RAS area holds data in case of service interruption, retaining RAS
information for the previous error.
In addition, the PC itself recognizes the power voltage drop when the PC power is turned off as an error, and stores
the system code 11 . Thus, RAS code 11 is stored each time the power is turned off.
Voltage

Storing RAS code 11

Rated
voltage

Power voltage
drop is recognized.

PC

Power off

5-19

5-6 RAS

5-6-2 Instruction RAS


The CPU performs self-diagnosis (program check, system check, etc.) on the PC before starting-up the system. The
instruction RAS performs user instruction diagnosis when the program check is executed at PC start-up. If any error is
found, the PC does not start running.
An error code (RAS code) is stored in the instruction RAS area. (The corresponding message does not appears on the
Handy Loader. See the instruction RAS code list (Page 5-3, 5-4).)

AUXILIARY

AUX

R AS

Press five times


Set auxiliary mode to move to 6 RAS .

RAS
1

I N S T R RAS

I N S T R RAS

GO

Monitors the instruction RAS area.

1 E R R COD

Program step at which instruction error occurred


Instruction RAS code of an error occurred in the above step

If multiple errors occur you can switch


the screen by pressing

or

RAS

RAS

GO

Moves to 2 INSTR RAS .

SYSTEM

5-20

20

5-6 RAS

The instruction RAS is stored after program check is performed. The PC starts program check from the first program step.
Errors, if any, are stored sequentially. If the number of errors reaches six, no further errors are stored. This error
information is retained in case of interruption of service, and memory contents are renewed when program check is
performed again.

Instruction RAS memory

Program check

First error occurrence step and


instruction RAS code

Program memory

Error 1)

Second error occurrence step and


instruction RAS code

Error 2)

Third error occurrence step and


instruction RAS code
Fourth error area

Error 3)

Fifth error area

Sixth error area

Contents of instruction RAS area (store error codes and error occurrence step)
Group

Place
to store

Storing order

Contents

Remarks

Number of error 0 to 6

Indicates the number of errors.

1 Word 1 and 2

Error code/Error occurrence step

2 Word 3 and 4

Error code/Error occurrence step

3 Word 5 and 6

Error code/Error occurrence step

4 Word 7 and 8

Error code/Error occurrence step

Note:
5 Word 9 and A Error code/Error occurrence step
6 Word B and C Error code/Error occurrence step

Note:E Error contents are displayed using 2 word.


Error code
Error occurrence step

First word
Second word

5-21

Errors are stored by CPU.


Checking stops when 6 groups of errors occur.
The contents are updated each time the program check is
performed with the Handy Loader.
The PC cannot run until no error is found.

5-6 RAS

5-6-3 System RAS area clear


The system RAS area is retained in case of interruption of service. To clear this area, perform the key operation below.

AUXILIARY

AUX

RAS

Five times
Set auxiliary mode to move to 6 RAS .

RA S

GO

SYSTEM RAS CLR

Select 6 RAS and move to the system RAS clear item.

GO

SYSTEM RAS CLR

GO

COMPLETION

Execute system RAS clear.

5-22

5-6 RAS

5-6-4 Optional RAS


Some option modules of NS- and NJ-series are provided with optional RAS areas as modules RAS areas.
Perform the key operation below to monitor the RAS areas specific to this module.

AUXILIARY

AUX

RAS

Five times
Set auxiliary mode to move to 6 RAS .
Moves to optional RAS.

RAS

GO

GO

OPTION

OPTION

Inputs optional RAS area address.

R AS

RAS

Optional RAS area addresses are assigned within a range from 000 to 7FF.

7 FF
The lower two digits indicate the optional RAS area address.
The highest digit indicates the slot position of the option module.

MPS
1

NOP
0

NOP
0

Monitor RAS in address 00 of

GO

OPTION RA S

the first slot optional module.

100
1234

Four digits in hexadecimal


(Address+1)

Display adjacent RAS by


pressing

and

keys.

OPTION R AS

101
5678

Note:
There is no units which are provided with optional RAS area in NB series. If an attempt to perform optional RAS code
diagnosis, the screen below appears.
OPTION RA S
PARAMETER ERR

5-7-1 Data transfer to/from the memory card on the processor


5-23

5-7 Data Transfer to/from the Memory Card or Memory Cassette


on the Processor

The memory cassette and internal memory can be used to save the program in SPB series.
20/30 points unit
Transferred
Processor
from: program memory
Transferred to:
Internal
flash memory
40/60 points unit
Transferred
Flash
from: memory card
Transferred to:
Flash
memory card

Processor
program memory

Processor
program memory
Internal
flash memory

(1) When there is no flash memory card (Transfer to internal flash memory)
AUXILIARY
7

MEM CST XFR

GO
MEM CST XFR
1

PCRAM

PCFLASH

GO
PCRAM

PCFLASH

OK

[GO]

GO
PCRAM

PCFLASH

EXECUTING

PCRAM

PCFLASH

COMPLETION

5-24

5-7 Data Transfer to/from the Memory Card or Memory Cassette


on the Processor

(2) When there is a flash memory card


Menu display

AUXILIARY
7

MEM CST XFR

Set auxiliary mode to move to the

GO

7 MEM CST XFR .

MEM CST XFR


1

<1. PCRAM

PCRAM

FLASH

MEM CST XFR

Copies the PC program memory contents to the

flash memory card.

PCRAM

FLASH

MEM CST XFR

Copies the flash memory card contents to the PC

program memory.

PCRAM

FLASH

MEM CST XFR

Verifies the PC program memory contents with the

flash memory card.

PCRAM : FLASH

FLASH>

Copies the PC program memory contents to the flash memory card.


MEM CST XFR
1 PCRAM

GO

Selects 1 PCRAM

FLASH

FLASH .
PCRAM

FLASH
OK

[GO]

GO
PCRAM

FLASH

EXECUTING

PCRAM

FLASH

COMPLETION

5-25

5-7 Data Transfer to/from the Memory Card or Memory Cassette


on the Processor

<2. PCRAM

FLASH>

Copies the flash memory card contents to the PC program memory.


MEM CST XFR
2

GO

Selects 2 PCRAM

PCRAM

FLASH

FLASH .
PCRAM

FLASH

OK

[GO]

GO
PCRAM

FLASH

EXECUTING

PCRAM

FLASH

COMPLETION

<3. PCRAM : FLASH>


Verifies the PC program memory contents with the flash memory card.
MEM CST XFR
3

GO

PCRAM : FLASH

Selects 3 PCRAM : FLASH .


PCRAM : FLASH
OK

[GO]

GO
PCRAM : FLASH
EXECUTING

PCRAM : FLASH
COMPLETION

5-26

5-7 Data Transfer to/from the Memory Card or Memory Cassette


on the Processor

5-7-2 Data transfer to/from the memory cassette on the processor


A memory cassette can be used with the FLEX-PC for saving a program.
Three types of memory cassettes are available: EPROM, EEPROM and RAM. Data transfer is enabled between the
following types of cassettes mounted on the processor.
Transferred
from:
Transferred to:

EEPROM memory

EPROM memory

Processor program

cassette

cassette

memory

EEPROM
memory cassette

EPROM

memory cassette
Processor program
memory

The following memory cassette are available for each FLEX-PC N-series PC:
Memory
cassette
CPU type

EEPROM

EPROM
N-MP1
NN-MBP1

N-MP4
NN-MBP4

N-MP8
NN-MBP8

N-MP16

N-MP32

N-MP64

N-ME1
NN-MBE1

N-ME4
NN-MBE4

N-ME8
NN-MBE8

N-ME32

NB-E

NB-series

x
x

NJ-CPU-A8
NJ-CPU-E4

Memory cassette cannot be mounted.

NJ-CPU-B16
NJ-CPU-B32
NS-A (B)32

NS-A (B)64

NB0

Memory cassette cannot be mounted.

: Usable
x : Unusable
: Unusable within the capacity of memory cassette

5-27

5-7 Data Transfer to/from the Memory Card or Memory Cassette


on the Processor

(1) ROM operation


When power is turned on while a memory cassette mounted on a processor of the FLEX-PC N-series, the contents
(program) of the memory cassette are copied to the processor program memory (RAM) automatically (without the Handy
Loader operation), and the processor starts running.
Note: The processor program memory is overwritten and the contents it held before power was turned on are lost.
1) EPROM cassette
If the processor is provided with an EPROM cassette and the power is turned on, ROM operation starts.
2) EEPROM cassette
Setting can be made for the EEPROM cassette so that ROM operation is not provided even if the power is turned on while
the EEPROM mounted on the processor.
Whether or not ROM operation is provided with the EEPROM cassette mounted is determined with the ON/OFF state of the
EEPROM protect switch and PC processor parameter memory 03H.

Parameter

03H

Set this bit to 0 or 1

Protect switch ON (write disable)


If the EEPROM cassette is mounted on the processor and the power is turned on, ROM operation is provided.

Protect switch ON (wire disabled)

OFF
ON

WRITE PROTECT

EEPROM
4KW

OFF
ON

EEPROM
4KW

WRITE PROTECT

In this case, the EEPROM operation is identical to that when EPROM is mounted.

Protect switch OFF (wire enabled)

5-28

5-7 Data Transfer to/from the Memory Card or Memory Cassette


on the Processor

Protect switch OFF (write enabled)


1) When the processor parameter 03H is 0000, the EEPROM cassette provides ROM operation.
2) When the processor parameter 03H is 0002, the EEPROM cassette contents are not copied to the processor program
memory; instead, the processor starts operation with the current processor program memory (RAM) contents.
Conclusion
Setting to provide no ROM operation can be made for the EEPROM cassette.
When the protect switch is off (write enabled), parameter 03H bit 1 is set.
ROM operation provided:

(H03=0000)

ROM operation not provided: (H03=0002)

5-29

5-7 Data Transfer to/from the Memory Card or Memory Cassette


on the Processor

(2) Transfer and verification in the memory cassette and the processor program memory
The program and parameter are stored in the memory cassette. Data is not stored.
Note: The file register areas uses the program memory area, thus allowing data to be stored in the memory cassette.
Install the memory cassette before turning on power. The PC recognizes that a memory cassette is mounted when
power is turned on. The PC does not recognizes a memory cassette if it is mounted after power is turned on.
Step 1
Step 2

Mount the memory cassette on the PC.


Turn on the PC. (The memory cassette contents are copied to the processor program memory and ROM
operation starts, unless an EEPROM is used and a parameter is set.)

CPU-A8

RUN
EPR
BAT

Cover
0
C

Cover

Cover
Memory cassette
holder

0 1

2 3

EF

Memory cassette
holder

Memory cassette
Cover
Memory cassette
Memory cassette

Cover

5-30

5-7 Data Transfer to/from the Memory Card or Memory Cassette


on the Processor

Step 3
Step 4

Stop the PC using the Handy Loader. (See Section 5-1)


(If the PC is running, transfer/verification is not executed.)
Perform the following key operation with the Handy Loader.

AUXILIARY

AUX

MEM CST XFR

6 times
Set auxiliary mode to move to the 7 MEM CS XFR .

MEM CST XFR

GO

PCRAM

EPROM

Recognises type (EPROM or EEPROM) and displays


transfer function menu.

Menu for EPROM memory cassette


Copies the EPROM contents to the processor program
memory.

MEM CST XFR


1

PCRAM

EPROM

PCRAM : EPROM

Collates the EPROM contents with the processor program


memory contents.

Note

A program cannot be written to the EPROM cassette by Handy Loader operation only.
A PROM writer is necessary for copying the PC RAM contents to the EPROM memory cassette. (See Section 5-12.)

5-31

5-7 Data Transfer to/from the Memory Card or Memory Cassette


on the Processor

<1. PCRAM
EPROM>
Copies the EPROM memory cassette contents to the processor program memory.
(If an EPROM memory cassette is mounted on the PC, ROM operation is always provided. Even if this key operation is
not performed, the memory cassette contents are copied to the processor program memory automatically.)

MEM CST XFR


1

PCRAM

GO
Select 1 PCRAM

PCRAM

EPROM

EPROM

OK

[GO]

EPROM .

PCRAM

GO

EPROM

EXECUTING

PCRAM

EPROM

COMPLETION

<2. PCRAM : EPROM>


Collates the EPROM memory cassette contents with the PC program memory contents.

MEM CST XFR


2

PCRAM : EPROM

PCRAM : EPROM

GO

OK

[GO]

PCRAM : EPROM
COMPLETION

5-32

5-7 Data Transfer to/from the Memory Card or Memory Cassette


on the Processor

Operation for an EPROM


The following operations are enabled when an EPROM is mounted on the PC.
1. PCRAM

EPROM

2. PCRAM : EPROM
Stop the PC before the above operation. (See Section 5-1.)
If the above operations are performed while the PC is running, the following message appears:
MEM CST XFR
PC

RUNNING

When an EPROM is mounted on the processor, writing to the program memory is disabled and the following message
appears:
MEMORY

WR

ERROR

To change the PC RAM contents, write data only after removing the EPROM.
To change the EPROM contents, first change the PC RAM contents, then delete the EPROM contents with a ROM
eraser, and finally write data with the PROM writer.

5-33

5-7 Data Transfer to/from the Memory Card or Memory Cassette


on the Processor

Menu for the EEPROM cassette


MEM CST XFR

Copies the PC program memory contents to

the EEPROM.

PCRAM

EEPROM

MEM CST XFR

Copies the EEPROM contents to the PC program

memory.

PCRAM

EEPROM

MEM CST XFR

Collates the PC program memory contents with

the EEPROM contents.

PCRAM : EEPROM

<1. PCRAM
EEPROM>
Copies the PC program memory contents to the EEPROM.

MEM CST XFR


1

PCRAM

GO
Selects 1 PCRAM

GO

PCRAM

EEPROM

EEPROM

OK

[GO]

EEPROM

PCRAM

EEPROM

EXECUTING

PCRAM

EEPROM

COMPLETION

5-34

5-7 Data Transfer to/from the Memory Card or Memory Cassette


on the Processor

<2. PCRAM

EEPROM>

MEM CST XFR


2

PCRAM

GO
Selects 2 PCRAM

PCRAM

EEPROM

EEPROM

OK

[GO]

EEPROM

GO

PCRAM

EEPROM

EXECUTING

PCRAM

EEPROM

COMPLETION

<3. PCRAM : EEPROM>

MEM CST
3

GO

XFR

PCRAM : EEPROM

PCRAM : EEPROM
OK

[GO]

Selects 3 PCRAM : EEPROM .

GO

PCRAM : EEPROM
EXECUTING

PCRAM : EEPROM
COMPLETION

5-35

5-7 Data Transfer to/from the Memory Card or Memory Cassette


on the Processor

Operation for an EEPROM


The following operations are enabled when an EEPROM is mounted on the PC.
1. PCRAM

EEPROM

2. PCRAM

EEPROM

3. PCRAM : EEPROM
Be sure to stop the PC before the above operations. (See Section 5-1.)
If the above operations are performed
while the PC is running, the message
on the right appears:

MEM CST XFR


PC RUNNING

The parameter which determines the usage of the EEPROM is assigned to the parameter address 03H.
The meanings of the parameter are as follows:
0: When power is turned on, the contents of EEPROM
F E D C B A 9 8 7 6 5 4 3 2 1 0
is copied to RAM.

03H

1: When power is turned on, the contents of EEPROM


is not
This bit is used.

The setting of the parameter that is written


on the installed ROM cassette becomes effective.

1) The parameter determines the operation of the PC when the EEPROM is used for program memory.
The EEPROM operation is divided into three types according to settings of the parameter and WRITE
PROTECT switch which is provided on the EEPROM cassette.
EEPROM write enabled is set by default.
2) EEPROM operation list
EEPROM cassette
WRITE PROTECT
switch

Bit 1 of
parameter
03H

PCRAM
EEPROM
copy at power on

EEPROM overwrite Transfer with the loader


auxiliary function
at program write
mode
Remarks
RAM
EEPROM
EEPROM

RAM

Copy

EEPROM is also
overwritten when
RAM is overwritten

Enabled

Enabled

No copy

Only RAM overwritten;


EEPROM overwrite
disabled

Enabled

Enabled

Copy

RAM and EEPROM


overwrite are
disabled

Disabled

Enabled

This setting is made when EEPROM is


used as a nonvolatile RAM.

OFF

ON

0
1

Rewriting of program when EEPROM memory cassette is installed on PC


1) If the WRITE PROTECT switch of EEPROM is OFF, programs can be rewritten.
2) If the WRITE PROTECT switch of EEPROM is ON, programs cannot be rewritten.
If you attempt to rewrite them, the following message will appear.

W
MEM WRITE ERROR

5-36

This switch is useful for changing


a program at commissioning.
(After a program is completed, it is
transferred from PC RAM to EEPROM.)
This switch is set for using an
EEPROM as ROM.

5-7 Data Transfer to/from the Memory Card or Memory Cassette


on the Processor

Typical use of EEPROM memory cassette


To transfer a program from one PC to another, follow the procedure below.

Memory contents
NB

EEPROM cassette containing no program


Turn off the WRITE PROTECT switch.

PC containing a program
Set parameter H03 to 0002.

1) Set parameter H03 of the PC containing a program to 0002.


Note: The power must be restarted to let the PC read the new parameter setting.
2) Turn off the WRITE PROTECT switch of the EEPROM cassette.
3) Turn off the PC containing the program, and mount the EEPROM cassette on the PC.
4) Turn on the PC.
Only the PC program memory is overwritten; the EEPROM memory cassette is not overwritten, even if data is written
using the Handy Loader under this condition.
5) Stop the PC. (The RUN lamp goes out.)
6) Transfer data from PCRAM to EEPROM using the Handy Loader.

NB

Memory contents

EEPROM cassette containing no program


Turn off the WRITE PROTECT switch.

PC in which the program


is to be stored.

7) Turn off the PC in which the program is to be stored.


8) Turn on the WRITE PROTECT switch of EEPROM cassette containing the program.
9) Mount the EEPROM cassette on the PC in which the program is to be stored.
10) Turn on the PC power.

5-37

5-8 Device Conversion

This function is to change addresses of devices within a PC. The device address of a specific device used in the PC
program is changed. Execute this function after stopping the PC.
This function is disabled while the processor is running.
<Key operation>

AUXILIARY

AUX

RUN/STOP

SW

AUXILIARY

(Press seven
times.)

GO

DEVICE

CONV

DEVICE

CONV

DEVICE

CONV

Selects device conversion.

LD
X

Available device identifiers:


X, Y, M, L, D, W, T, C

Specify by bits.

Inputs the device identifier of a


device whose address should be
changed.

MPS MRD
1
2

DEVICE

GO

X0 1 2

CONV

Device conversion can be executed only with the


same device identifier.

Input its address.

MPP
3

DEVICE

RST
4

X0 1 2

DEVICE

GO

X0 1 2

DEVICE

CONV

Input its address.

034

CONV
X

034

Press CLR to return to the initial screen.

CONV

COMPLETION
The above operation changes all X12 used in the program to X34.

X12

M20

X34

X20
M20

M20

X20
X12

M25

M20

X12

X34

5-38

X34

M25

5-9 Memory Clear

Memory Clear clears the contents of the processor memory (program memory, parameter memory, and data memory).
AUXILIARY

AUX

(Press eight times.)

MEMORY CLEAR

Set auxiliary mode to move to 9 MEMORY CLEAR .

MEMORY CLEAR

GO

PARAMETER CLR

Selects MEMORY CLEAR .

MEMORY CLEAR
1

Clears parameter.

PARAMETER CLR

MEMORY C L E A R
2

PROGRAM CLR

MEMORY CLEAR
3

Clears data.

DATA CLR

MEMORY CLEAR
4

ALL

Clears program.

Clears parameter, program


and data memory area.

CLR

5-39

5-9 Memory Clear

<1. PARAMETER CLEAR>


Parameters are recognized when power is turned on.
After making new parameter setting, turn off the PC power, and then turn it on again.

AUX

Selects 1 PARAMETER CLR .

(Press eight times.)

AUXILIARY
9

MEMORY

GO

CLEAR

MEMORY

CLEAR

PARAMETER

PARAMETER

GO

OK

CLR
[GO]

PARAMETER

GO

CLR

CLR

EXECUTING

PARAMETER

CLR

COMPLETION

<2. PROGRAM CLEAR>


Clears program memory

AUX

Selects 2 PROGRAM
CLR .

(Press eight times.)

AUXILIARY
9

MEMORY

GO

CLEAR

CLR

OK

PROGRAM

GO

CLR

PROGRAM

PROGRAM

GO

CLEAR

MEMORY

[GO]

CLR

EXECUTING

PROGRAM

CLR

COMPLETION

5-40

5-9 Memory Clear

<3. DATA CLEAR>


Clears data memory.

AUX

(Press eight times.)

AUXILIARY
9

MEMORY

CLEAR

Move to 3 Data Clear.

MEMORY

GO

CLEAR

DATA

CLR

Selects 3 DATA CLR .

DATA

GO

CLR
OK

DATA

GO

[GO]

CLR

EXECUTING

DATA

CLR

COMPLETION

<4. ALL CLEAR>


Clears parameters, program, and data area.

(Press eight times.)

AUX

AUXILIARY
9

MEMORY

MEMORY

GO

ALL

ALL

GO

CLEAR
CLR

CLR
OK

Selects 4 ALL CLR .

ALL

GO

CLEAR

[GO]

CLR

EXECUTING

ALL

CLR

COMPLETION

5-41

5-10 Calendar Setting

For a PC provided with a calendar function, the set data can be changed.

PC type

Calendar function

SPB-series

Differs by the model.

NB0/NB/NB3-series

Not provided

NJ-CPU-E4

Not provided

NJ-CPU-A8

Provided

NJ-CPU-B16

Provided

NJ-CPU-B32

Provided

NS-series

Provided

(Press nine
times.)

AUX

AUXILIARY
10

CALENDAR

SET

Set auxiliary mode to move to 10


CALENDAR SET.
Selects
CALENDAR SET.

GO

Reads each item.


To change a
setting, input two
digits decimal
numbers for that
item.

CALENDAR
1

CALENDAR
2

Reads contents from the special register calendar


area for display. (BCD)

SET

(Press

key to display the previous item.)

MONTH

CALENDAR
3

SET

YEAR

SET

DAY
For example, to use the minute item, select

CALENDAR

5 MINUTE and input two digits decimal


numbers.

SET

4 HOUR
PLF
5

CALENDAR
5

GO

CALENDAR

MINUTE

CALENDAR
6

SET

PLF
5

SET

SET

MINUTE

55

(Same for other items)

SECOND
(Setting is not change unless GO is pressed.)

CALENDAR

Finishes inputs
of all items.

CALENDAR
OK

Executes.

GO

SET
Set a day of the week by
inputting numbers as follows:
00: Sunday
01: Monday
02: Tuesday
03: Wednesday
04: Thursday
05: Friday
06: Saturday

DAY OF WEEK

CALENDAR

SET
[GO]

SET

Registers calendar setting in the PC.

COMPLETION

5-42

5-11 Buzzer ON/OFF

This function is used to turn off the loader key sound.


AUXILIARY

AUX

11 BUZZER

ON /OFF

(Press 10 times.)

GO

BUZZER OFF

ON

OFF: Displays OFF

COMPLETION

OFF

ON : Displays ON

Press CLR key to return to the auxiliary menu.

5-43

5-12 Modules (Expansion Function)

A program that has been written in the Handy Loader can be stored in a memory cassette using an expansion module
(with read, write, and verify functions) of the Handy Loader.
EPROMs cannot be used for storing a program in NB0-series PC.
Note: Storing a program in an EEPROM cassette or a RAM memory cassette can also be performed without using the
expansion module. (See 5-7-2 Transfer and verification in the memory cassette and the processor program
memory.)

Program storage media

Required expansion module

Remarks

Memory cassette

PROM writer (type: N-HLD-PRW)

Not usable for NB0-series

EEPROM cassette

EEPROM read/write unit (type: NN-HLD-EERW)

Usable for all types of N-series

5-12-1 PROM writer and EEPROM read/write unit


(1) Overview
Transfer to/from the processor program memory, parameter memory (including the file register area), and memory
cassette and data collation can be performed.
(2) Name and function of each part
1) Memory cassette connector
This connector is for use with a memory cassette.
Open the cover to use the connector.
2) Memory cassette connector cover.
Open the connector cover to use a memory cassette.

3) ROM writer fixing screw hole


Use this hole to secure the ROM writer. (M3x6 screw attached)

2)

4) Connector for the Handy Loader


Connect to the Handy Loader expansion interface connector.
1)

4)

3)

5-44

5-12 Modules (Expansion Function)

(3) PROM writer mounting procedure


Connect the PROM writer to the Handy Loader by following the procedure below:

Step 1

Remove the cover from the Handy Loader expansion interface connector. (Figure 1)

Step 2

Insert the connector 4) for the Handy Loader in the Handy Loader. (Figure 2)

Step 3

Secure the PROM writer or EEPROM read/write unit to the Handy Loader by
tightening the screw attached. (Figure 2)

Step 4

Open the memory cassette connector cover 2) of the PROM writer or


EEPROM read/write unit to insert the memory cassette. (Figure 3)

Figure 1

PROM writer or EEPROM


read/write unit

Screw

Memory cassette
(EPROM or EEPROM)

Figure 2

PROM writer or EEPROM


read/write unit

Figure 3

5-45

5-12 Modules (Expansion Function)

(4) Handy Loader key operation


Perform the key operation below to use the PROM writer.
AUXILIARY

(Press 11 times.)

AUX

12

MODULE

Set auxiliary mode to move to 12 MODULE .

PROM WRITER

GO

OK

[GO]

Recognise the module is PROM writer.

GO

MEM

or

CASSETTE

TYP

N - MP 1

Move to MEMORY CASSETTE type.

The following 11 memory cassette types are available:


Memory cassette type

Memory IC type

N-MP1

(NN-MBP1)

EPROM type

N-MP8

(NN-MBP4)

Memory cassette

N-MP8

(NN-MBP8, NB9VMPU-08)

N-MP16

N-MP32

N-MP64

N-ME1

(NN-MBE1)

EEPROM type

N-ME4

(NN-MBE4, NB9VMEU-04)

Memory cassette

N-ME8

(NN-MBE8, NB9VMEU-08)

10

N-ME16

11

N-ME32

Specify the same memory cassette type as the memory cassette being inserted. If the wrong type is specified, Memory
cassette error appears and the program may not be transferred correctly.
Note: The EPROM memory cassette cannot be used in the EEPROM read/write unit.
PROM writer cannot be used for NB0 series.

PROM WRITER

GO

PC

EPROM

Select one of the memory cassette types. The PROM writer function menu list then appears.

5-46

5-12 Modules (Expansion Function)

Menu for EPROM memory cassette

PROM

WRITER

EPROM

PC

Transfers data from the PC program memory (RAM) to the


EPROM (writes data into EPROM).

Transfers data from the EPROM to the PC program memory

PROM WRITER
2

PC

(in the same way as when power is turned on while the

EPROM

EPROM is mounted on the PC).


Verifies the PC program memory contents with the EPROM

PROM WRITER
3

contents.

PC: EPROM

Checks whether the EPROM is write enabled.

PROM WRITER
4

BL A N K

CHECK

Once a program is written in an EPROM, the EPROM cannot be overwritten as it is.


Such a program can be erased only by applying ultraviolet rays (using a ROM eraser); this makes it possible to write
new program repeatedly.
When using an EPROM cassette, perform the following:
1) Execute 4 BLANK CHECK to check whether the EPROM is write enabled.
2) Execute 1 PC

EPROM to write program to the memory cassette.

3) Execute verification 3 PC : EPROM to check whether the program has been written into the memory cassette
normally.
Note: When an EEPROM read/write unit is used, operation of the EPROM memory cassette is disabled and the
EPROM memory cassette type cannot be selected.

5-47

5-12 Modules (Expansion Function)

<1. PC
EPROM>
Copies the PC program memory contents to an EPROM memory cassette.
<Screen>
PROM

WRITER

EPROM

PC

PC

EPROM

GO

OK

PC

GO

[G O]

EPROM

COMPLETION

Execute.
Note: If the EPROM cassette already contains data,
WRITE ERROR appears and data transfer is
disabled.

<2. PC

PC

EPROM

WRITE ERROR

EPROM>

Copies the EPROM memory cassette contents to the PC program memory.


PROM

WRITER

EPROM

PC

GO

PC

EPROM
OK

PC

GO

[G O]

EPROM

COMPLETION
Execute.
Note: This function cannot be executed while the PC is running.

5-48

PC

EPROM

PC

RUNNING

5-12 Modules (Expansion Function)

<3. PC : EPROM>
Verifies the PC program memory contents with the EPROM memory cassette contents.

<Screen>
PROM WRITER
3 PC : EPROM

PC : EPROM

GO

GO
Execute.

OK

When the program memory


contents conform with the
EPROM memory cassette
contents:

When the program memory


contents do not conform
with the EPROM memory
cassette contents:

Note: If the memory cassette contents are faulty,


MEMORY CASSETTE ERR appears.
If this is the case, delete the memory cassette contents
with the ROM eraser and write data again.

[G O]

PC : EPROM
COMPLETION

PC : EPRO M
VERIFY

ERROR

PC : EPROM
MEM CASSETTE

ERR

<4. BLANK CHECK>


Checks whether the EPROM memory cassette is write enabled (data is deleted with the ROM eraser).

PROM W R I T E R
4

GO

When the EPROM cassette


contents are deleted:

BLANK CHECK

BLANK

CHECK

COMPLETION

When a program is written


in the EPROM cassette:

5-49

BLANK

CHECK

BLANK

ERROR

5-12 Modules (Expansion Function)

Menu for EEPROM memory cassette


For an EEPROM memory cassette, operation using the PROM writer N-HLD-PRW and operation using the EEPROM
read/write unit NN-HLD-EERW have the same result.

PROM
1

PC

Transfers data from the PC program memory (RAM)

WRITER

to the EEROM (writes data into EEPROM).

EEPROM

Transfers data from the EEPROM to the PC program

PROM W R I T E R
2

PC

memory (in the same way as when power is turned on

EEPROM

with the EEPROM mounted on the PC).

PROM
3

Verifies the processor program memory contents

WRITER

with the EEPROM contents.

PC : EPROM

Note on using the memory cassette


If data is written repeatedly, written data may not be deleted from the EPROM or EEPROM. Write a program only
after thoroughly checking it.
Changing EEPROM contents takes much more time than changing RAM contents.

5-50

5-12 Modules (Expansion Function)

<1. PC
EEPROM>
Copies the PC program memory contents to an EEPROM memory cassette.
<Screen>
PROM W R I T E R
1

PC

PC

EEPROM

EEPROM

GO

OK

PC

GO

[GO ]

EEPROM

COMPLETION

Execute.
Note: When the WRITE PROTECT switch of the EEPROM memory
cassette is turned on, WRITE ERROR appears and data

PC

EEPROM

W R I T E ERROR

transfer is disabled.

<2. PC

EEPROM>

Copies the EEPROM memory cassette contents to the PC program memory.

PROM W R I T E R
2

PC

GO

PC

EEPROM

EEPROM
OK

PC

GO

[GO ]

EEPROM

COMPLETION

Execute.
Note: This function cannot be executed while the PC is running.

5-51

PC

EEPROM

PC

RUNNING

5-12 Modules (Expansion Function)

<3. PC : EEPROM>
Verifies the PC program memory contents with the EEPROM memory cassette contents.

<Screen>
PROM
3

WRITER

PC :EEPROM

PC : EEPROM

GO

GO

OK

When the PC program memory


contents conform with the EEPROM
memory cassette contents:

[GO]

PC : EEPROM
COMPLETION

Execute.
When the PC program memory
contents do not conform with the
EEPROM memory cassette contents:

Note: If the memory cassette contents are faulty,

PC : EEPROM
VERIFY

ERROR

PC : EEPROM

MEM CASSETTE ERR appears.

MEM C A S S E T T E

The write data again.

5-52

ERR

5-12 Modules (Expansion Function)

Using the EEPROM read/write unit (NB0-series program transfer)


The PROM writer (N-HLD-PRW) and EEPROM read/write unit (NN-HLD-EERW) have the following functions:

EPROM memory cassette

EEPROM memory cassette

PROM writer

EEPROM read/write unit

Application to NB0-series

The EEPROM read/write unit is required for data transfer between an NB0-series PC and an EEPROM memory
cassette.
A memory cassette cannot be mounted on NB0-series.
A program created by NB0 can be transferred to another PC or a program stored in a memory cassette can be
transferred to the NB0-series, by using a setup as shown below.

Memory cassette (EEPROM)

EEPROM read/write unit

Handy Loader

5-53

5-12 Modules (Expansion Function)

(5) Error message list


Error messages that may be generated when a PROM writer or EEPROM read/write unit is used are listed below.
Error message

Cause of error

Time to occur

Program error
(PROGRAM ERROR)

The program read from the memory cassette to the PC


contains a syntax error.

Memory cassette

Cassette not mounted


(CST NOT LOADED

Memory cassette is not plugged into the ROM writer.


Memory cassette has come off during processing.

PROM writer all processing

Cassette type not matched


(CST MISMATCH)

Memory cassette type selection error.


i Selection error for EEPROM and EPROM
ii Selection error for EPROM 256K product and 1M product,
and EEPROM 64K product and 256K product
iii RAM is installed.

PC

Blank error (BLANK ERROR)

EPROM memory cassette contents are not yet deleted.

BLANK CHECK

Write error
(WRITE ERROR)

Data cannot be written into memory cassette.


(EPROM fault, or EEPROM WRITE PROTECT switch ON)

Memory cassette

Insufficient cassette capacity


(CST CAP SHORT)

Total memory requirement of PC program, user macro, and


R areas exceeded the memory cassette capacity.

PC

Insufficient PC capacity
(PC CAP SHORT)

Total memory requirement of memory cassette program, user


macro, and R areas exceeded the PC program capacity.

Memory cassette

Memory cassette error


(MEM CASSETTE ERR)

Data in memory cassette is destroyed.

EPROM
PC
EPROM : PC
BLANK CHECK

Verification error
(VERIFY ERROR)

Data in the PC does not conform with PROM data.

PROM : PC

PC running
(PC RUNNING)

PC is running while data is transferred to the PC.

PROM

PC

Loader type not matched


(LDR MISMATCH)

Loader manufacturer type does not match the PROM


internal data manufacturer type.

PROM

PC

Module not connected


(MDL NOT CONNTED)

PROM writer or audio CMT is not connected.

GO key pressed at 12 MODULE

5-54

PC

Memory cassette

PC

Memory cassette

PC

5-13 Setting the PC Station Number

The NS-series and NJ-series provide data communication between PCs using a communication module such as an NPlink module or an ME-NET module.

NP-link module
on Slot 4

Sta. No. 2 PC

This setting is for communication between the


Handy Loader and a PC (linked by
communication modules) other than that
connected to the Handy Loader.
The Station number (Sta. No.) is set with the
following procedure:
1) Register a slot number in which the
communication module is mounted.
2) Set the Sta. No. of the PC to be
communicated with, using the Handy Loader.

NP-link module
on Slot 4
NP-link
cable

Sta. No. 1 PC

Perform the key operation below to enable the Handy Loader to communicate with Sta. No. 2 PC, given the above system
configuration.

Set auxiliary mode to move to 13 PC NO.


SET .

AUX

AUXILIARY
13

PC NO .

SET

PC NO . SET

GO

1 SLOT N O .
Input slot No..

PC NO . SET

RST
4

2 PC

STA NO.

Input the Sta. No. of the PC to be communicated with.

MRD
2

PC NO . SET

(PC Sta. No. = 2)

OK

[G O]

PC NO . SET

GO

COMPLETION

5-55

5-14 User Program Storage in Memory in Handy Loader

Two memories by which the user program is stored are built in Handy Loader. The user program writing, the reading and
the collation operation can be done to the memory.
(1) Key operation

AUX

Set auxiliary mode to move to the 14 TRANSFER .

AUXILIARY
14

TRANSFER AREA

Display the storage area.

GO

TRANSFER AREA
1

AREA1

Display the storage area (AREA 1).

AREA1

TRANSFER AREA
2

TRANSFER

Display the storage area (AREA 2).

AREA2

TRANSFER AREA
1 AREA1

TRANSFER

Display the transfer mode.

GO

1 PC

LOADER

Menu display

TRANSFER
1 PC

Copies the PC program to the memory in Handy Loader.

LOADER

TRANSFER

Copies the program in the memory in Handy Loader

2 PC

to the PC.

LOADER

TRANSFER

Verifies the program in the PC and the program

3 PC : LOADER

in Handy Loader

TRANSFER

Erases the memory in Handy Loader.

4 ERASE

5-56

5-14 User Program Storage in Memory in Handy Loader

<1. PC

Loader>

Copies the PC program to the memory in Handy Loader.


(The operation is the same also in area 2.)

TRANSFER
1 PC

PC

GO

LOADER

LOADER (AREA 1)
OK

[GO]

Confirms the area to the storage destination.

PC

GO

LOADER (AREA 1)

EXECUTING

PC

LOADER (AREA 1)

COMPLETION

Copies the program in the memory in Handy Loader to the PC.


(The operation is the same also in area 2.)

TRANSFER
2 PC

GO

PC

LOADER

LOADER
OK

(AREA 1)

[GO]

Confirms the transfer origin.

GO

PC

LOADER

(AREA 1)

Except the SPB


series.

EXECUTING

PCRAM

PCFLASH

OK

GO
Copies the PC program to the internal memory.

PCRAM

[GO]

PCFLASH

EXECUTING

Push the CLR key when you do not transfer.

PC

LOADER

(AREA1)

COMPLETION

PC

LOADER

PC

RUNNING

Note: This function cannot be executed while the PC is running.

5-57

(AREA1)

CLR

5-14 User Program Storage in Memory in Handy Loader

<3. PC : LOADER>

Verifies the program in Handy Loader and the program in the PC.
(The operation is the same also in area 2.)
TRANSFER
3

PC : LOADER

PC : LOADER

GO

(AREA1)

OK

[GO]

Confirms the area of the collation origin.

PC : LOADER

GO

(AREA1)

EXECUTING

PC : LOADER

(AREA1)

COMPLETION

VERIFY ERROR

(Verification error in the parameter part)

PARAMETER
Error address (HEX)

VERIFY ERROR

(Verification error in the program part)

PROGRAM
Error step (DEC)

Erases the memory in Handy Loader. (The operation is the same also in area 2.)

TRANSFER
4 ERASE

ERASE (AREA1)

GO

OK

[GO]

Confirms the erase area.

ERASE (AREA1)

GO

COMPLETION

* Transfer the PC program to the memory in Handy Loader after erasing the memory in Handy Loader.

5-58

5-14 User Program Storage in Memory in Handy Loader

(2) Error message list


Error message that may be generated when the user program storage function to the memory in Handy Loader is used
are listed below.

Error message

Cause of error

Time to occur

PC running

PC is running while data is transferred to the PC.

Loader

Data in the PC does not conform with Handy Loader.

Loader: PC

Memory in Handy Loader are not yet deleted.

PC

Loader

Data cannot be written into memory in Handy Loader.

PC

Loader

Insufficient PC capacity

Total memory requirement of Handy Loader program,

Loader

PC

(PC CAP SHORT)

user macro, and R areas exceeded the PC program capacity.

Memory error in Loader

The memory in Handy Loader is abnormal.

Loader

PC

PC

(PC RUNNING)
Verification error
(VERIFY ERROR)
Blank error
(BLANK ERROR)
Write error
(WRITE ERROR)

(LOADER MEM ERROR)

Loader : PC

( ): Message on LCD

5-59

Section 6 User Macrocommands

Page
6-1 Handling User Macros ................................................................................................ 6-1
6-1-1 Using the Handy Loader (NW0H-NE) ................................................................................... 6-1
6-1-2 Notes on using the Handy Loader ........................................................................................ 6-1

6-2 User Macro Configuration .......................................................................................... 6-2


6-2-1 Storing and execution of user macro .................................................................................... 6-2
6-2-2 Configuration of user macro .................................................................................................. 6-3

Section 6 User Macrocommands


6-1 Handling User Macros

6-1-1 Using the Handy Loader (NW0H-NE)


The Handy Loader cannot handle user macrocommands (user macros) written in the assembly language or supplied on
a floppy disk.

To load onto the PC memory, an personal computer loader is necessary.


(For details, refer to the Manual for User Macrocommands LEH943.)
Supplied by
manufacturer.

FUJI
ELECTRIC

Standard user macro library


Custom-made user macros.

User macros can be read from a


floppy disk and stored in the PC
memory.

6-1-2 Notes on using the Handy Loader


1) The Handy Loader cannot download user macros to the PC from a floppy disk, nor to a floppy disk from the PC. Use the
personal computer program loader or LITE/N.
2) When programming the user macro call part with the Handy Loader, take care to specify correct parameter addresses.
Unlike the personal computer program loader of LITE/N, the Handy Loader does not program parameter addresses
automatically.

6-1

6-2 User Macro Configuration

6-2-1 Storing and execution of user macro


User macros consist of a call part and an execution part.
PC program area

Main
routine
program

User macro call part

FEND

As user macro call instruction during execution of program main


routine.
Executes the specified user macro when CALL is executed.

After execution of the macro is complete, returns to the program


main routine to continue processing from the next instruction.

User macro execution part

User macro execution part is stored in different areas according


to execution format.
File register area

FEND
Program consists of N-series
instructions
END
Program consists of assembly
language
File register area

6-2

1) User created macro instruction


2) Standard macros supplied
by FUJI (N-series instruction
type)
3) Standard macros supplied
by FUJI (assembly language
type)

6-2 User Macro Configuration

6-2-2 Configuration of user macro


A user macro is divided into all part and execution part. Each part is configured as follows:

Call instruction of user macro

Word input processing

CALL UM (FNC04)*

FNC

RST
4

,
SP

User macro number

Word output processing


(before execution)

Data that can be processed and calculated by user macros is limited to that
in the dedicated data area. Required data is passed to this area.

User macro call part

Bit input processing

Bit output processing


(before execution)
User macro execution part start

Word output processing


(after execution)

UMEXE (FNC05)*

FNC

PLF
5

GO

Processing and calculation results of user macros are output to the dedicated
data area. Output data is passed to the normal area used by the main routine.

Bit output processing


(after execution)
User macro call part end

UMEND (FNC06)*

FNC

User macro execution part

User macro execution part start

MCR
6

GO

UM (FNC07)*

FNC

RET
7

,
SP

Instructions executed

User macro execution part end

URET (FNC08)*

FNC

SET
8

GO

* Instruction words related to user macros are input by FNC No. in the same way as other data instructions.

6-3

User macro number

Appendix

Page
(1) Basic instruction ................................................................................................................................ App.-1
(2) Application instruction ....................................................................................................................... App.-4

Appendix

Instruction List
(1) Basic instruction
1) Contact instructions
Instruction

Symbol

: Usable,

FNC No.

Function

No. of
steps
1

LD

LD

Specifies NO contact from bus


(rising edge differential)

LD

Specifies NO contact from bus


(falling edge differential)

Specifies NO contact from bus


(direct input)

Specifies NC contact from bus

LDD

LDI

Specifies NO contact from bus

1
2

LDI

Specifies NC contact from bus


(rising edge differential)

LDI

Specifies NC contact from bus


(falling edge differential)

Specifies NC contact from bus


(direct input)

AND

Connects NO contact in series

AND

Connects NO contact in series


(rising edge differential)

AND

Connects NO contact in series


(falling edge differential)

Connects NO contact in series


(direct input)

ANI

Connects NC contact in series

ANI

Connects NC contact in series


(rising edge differential)

ANI

Connects NC contact in series


(falling edge differential)

Connects NC contact in series


(direct input)

OR

Connects NO contact in parallel

OR

Connects NO contact in parallel


(rising edge differential)

OR

Connects NO contact in parallel


(falling edge differential)

Connects NO contact in parallel


(direct input)

LDID

ANDD

ANID

ORD

1
2

1
2

1
2

App.-1

Unusable

PC type
NS/NJ

NB

NBE

NB0

SPB

Appendix

(Continued)
Instruction

: Usable,

Symbol

FNC No.

Function

No. of
steps

Connects NC contact in parallel

ORI

Connects NC contact in parallel


(rising edge differential)

ORI

Connects NC contact in parallel


(falling edge differential)

Connects NC contact in parallel


(direct input)

Symbol

FNC No.

Function

No. of
steps

Connects logical block in series

ORB

Connects logical block in parallel

MPS

Not marked in a
ladder diagram

Writes operation result into register

MRD

Not marked in a
ladder diagram

Reads operation result from register

MPP

Not marked in a
ladder diagram

Reads and resets operation result

Symbol

FNC No.

OUT

Function

No. of
steps

Output from device

1
2

OUTD

Output from device (direct output)

SET

Sets device

SETD

SD

Sets device (direct output)

Resets bits

*
Resets word device

RD

Resets device (direct output)

PLS

Generates one scan pulse on the


rising edge

PLF

Generates one scan pulse on the


falling edge

Words specified

RSTD

2
1
2

Bits specified

RST

2
1
2

App.-2

NBE

NB0

SPB

Unusable

PC type
NS/NJ NB

: Usable,

3) Output instructions

RST

NS/NJ NB

: Usable,

ANB

Instruction

PC type

2) Connection instructions
Instruction

Unusable

ORI

ORID

NBE

NB0

SPB

Unusable

PC type
NS/NJ

NB

NBE

NB0

SPB

Appendix

4) Master control
Instruction

: Usable,

Symbol

FNC No.

Function

No. of
steps

MC

MC n D

Sets master control

MCR

MCR n

Resets master control

5) Timer, counter
Instruction

FNC No.

Function

No. of
steps

OUTT

T
TMR D

Connects incrementing timer

OUTC

C
CTR D

Connects incrementing counter

Unusable

PC type
NS/NJ

NB

: Usable,

Symbol

NBE

NB0

SPB

Unusable

PC type
NS/NJ

NB

NBE

NB0

SPB

CRST

6) Others
Instruction

: Usable,

Symbol

FNC No.

Function

No. of
steps

END

End of Program

End of program

NOP

Not marked in a
ladder diagram

No operation

Invert

INV

7) Step control
Instruction

D
SC

SC
Note)

FNC No.

: For NB

FNC060

Function

No. of
steps

Controls of the steps of internal relay L

U type only.

App.-3

Unusable

PC type
NS/NJ

NB

: Usable,

Symbol

NBE

NB0

SPB

Unusable

PC type
NS/NJ

NB

NBE

NB0

SPB

Appendix

(2) Application instruction

1) Transfer instructions
Instruction Symbol
Symbol
Instruction

: Usable,

FNCNo.
No. Function
FNC

MOV

MOV S, D

FNC020

Transfers from S to D

CML

CML S, D

FNC022

Inverts and transfers from S to D

XCH

XCH D1, D2

FNC025

Exchanges D1 and D2

DMPX

DMPX S1, D1, D2

FNC026

Distribution

MPX

MPX S1, S2, D

FNC027

Extraction

BMOV

BMOV S, D, n

FNC023

Block transfer

FMOV

FMOV S, D, n

FNC024

Block transfer
(same data)

XFR S, D

FNC028

D1

S1

S1
S1+S2

4
D

n words n words

Byte (8-bit) transfer


XFR

3
S

Digit transfer
FNC029

DT

DT S, D, n1, n2, n3

DMOV

DMOV S, D

DCML

DCML S, D

FNC02A

Transfers from S to D
(32 bits)

DXCH

DXCH D1, D2

FNC02B

Exchanges between S and D


(32 bits)

DFMOV S, D, n

FNC02C

S
Transfers
same data block
(32 bits)

32-bit transfer

S
S+1

D
D+1

2n words

2 words

DFMOV

FNC021

4
5

MSGT

MSGT n1, n2, n3, D

FNC070

Transfers message

MSGR

MSGR n1, n2, n3, D

FNC071

Receives message

OPDF n1, n2, n3

FNC072

Option module parameter settin

OPD
Note)

: For NB

Unusable

Execution
type time Reference
No.of
of PC
No.
/Non-execution
steps NS/NJ NB
steps
NBE page
NB0
SPB
time (s)

U type only.

App.-4

Appendix

2) Comparison instructions
Instruction

Symbol

: Usable,

FNC No.

Function

No. of
steps

S1, S2

FNC010

ON if S1 = S2

LD<>

<>

S1, S2

FNC011

ON if S1 = S2

AND=

S1, S2

FNC014

ON if S1 = S2

<> S1, S2

FNC015

ON if S1 = S2

S1, S2

FNC018

ON if S1 = S2

<> S1, S2

FNC019

ON if S1 = S2

>

S1, S2

FNC012

ON if S1 > S2

LD<=

<= S1, S2

FNC013

ON if S1 <= S2

AND>

> S1, S2

FNC016

ON if S1 > S2

AND<=

<= S1, S2

FNC017

ON if S1 <= S2

>

S1, S2

FNC01A

ON if S1 > S2

<= S1, S2

FNC01B

ON if S1 <= S2

<

S1, S2

FNC120

ON if S1 < S2

LD>=

>= S1, S2

FNC121

ON if S1 >= S2

AND<

<

S1, S2

FNC122

ON if S1 < S2

>= S1, S2

FNC123

ON if S1 >= S2

<

S1, S2

FNC124

ON if S1 < S2

OR>=

>= S1, S2

FNC125

ON if S1 >= S2

LDD=

D= S1, S2

FNC110

ON if S1 = S2 (32-bit)

LDD<>

D<> S1, S2

FNC111

ON if S1 = S2 (32-bit)

LD=

AND<>

OR=

OR<>

LD>

OR>

OR<=

LD<

AND>=

OR<

3
4
3
4

App.-5

Unusable

PC type
NS/NJ NB

NBE

NB0

SPB

Appendix

(Continued)

: Usable,

Instruction
Instruction Symbol
Symbol

Execution
type time
No.
ofof PC
No.
/Non-execution
steps
NBE
steps NS/NJ NB

FNC
No.
FNC
No. Function
Function

time (s)

ANDD=

D = S1, S2

FNC114

ON if S1 = S2 (32-bit)

ANDD<>

D <> S1, S2

FNC115

ON if S1 = S2 (32-bit)

ORD=

D = S1, S2

FNC118

ON if S1 = S2 (32-bit)

ORD<>

D <> S1, S2

FNC119

ON if S1 = S2 (32-bit)

LDD>

D > S1, S2

FNC112

ON if S1 > S2 (32-bit)

LDD<=

D <= S1, S2

FNC113

ON if S1 <= S2 (32-bit)

ANDD>

D > S1, S2

FNC116

ON if S1 > S2 (32-bit)

ANDD<=

D <= S1, S2

FNC117

ON if S1 <= S2 (32-bit)

ORD>

D > S1, S2

FNC11A

ON if S1 > S2 (32-bit)

ORD<=

D <= S1, S2

FNC11B

ON if S1 <= S2 (32-bit)

LDD<

D < S1, S2

FNC126

ON if S1 < S2 (32-bit)

LDD>=

D >= S1, S2

FNC127

ON if S1 >= S2 (32-bit)

ANDD<

D < S1, S2

FNC128

ON if S1 < S2 (32-bit)

ANDD>=

D >= S1, S2

FNC129

ON if S1 >= S2 (32-bit)

ORD<

D < S1, S2

FNC12A

ON if S1 < S2 (32-bit)

ORD>=

D >= S1, S2

FNC12B

ON if S1 >= S2 (32-bit)

CMP

CMP S1, S2

DCMP

Note)

: For NB

DCMP S1, S2

FNC01D

FNC01C

3
4
3
4
3
4
3
4
3
4
3
4
3
4
3
4
3
4
3
4
3
4
3
4
3
4
3
4
3
4
3
4

16-bit comparison M81FD

M81FE

(S1) > (S2)

OFF

OFF

(S1) = (S2)

ON

OFF

(S1) < (S2)

OFF

ON

32-bit comparison M81FD

M81FE

(S1,S1+1) > (S2,S2+1)

OFF

OFF

(S1,S1+1) = (S2,S2+1)

ON

OFF

(S1,S1+1) < (S2,S2+1)

OFF

ON

U type only.

App.-6

Unusable
Reference
NB0
SPB
page

Appendix

(Continued)
Instruction

: Usable,

Symbol

ZCP

FNC No.

ZCMP S1, S2, S

DZCP

DZCMP S1, S2, S

FNC12C

FNC12D

Function

No. of
steps

16-bit band comparison

M81FC M81FD M81FE

(S1) > (S)

ON

OFF

OFF

(S1) <= (S) <= (S2)

OFF

ON

OFF

(S) < (S2)

OFF

OFF

ON

(S1,+1) > (S,+1)

(S,+1) > (S2,+1)

ON

OFF

OFF

OFF

ON

OFF

OFF

ON

Function

No. of
steps

+ S1, S2, D

FNC030

Signed addition (16-bit)


S1+S2 D

SUB ( - )

- S1, S2, D

FNC031

Signed subtraction (16-bit)


S1 - S2 D

DADD (+)

D+ S1, S2, D

FNC03C

Signed addition (32-bit)


(S1,S1+1) + (S2, S2+1)

FNC03D

4
(D, D+1)

Signed subtraction (32-bit)


(S1,S1+1) + (S2, S2+1) (D, D+1)

MUL (x)

x S1, S2, D

FNC032

Signed multiplication (16-bit)


S1x S2 (D+1, D)

DIV (/)

/ S1, S2, D

FNC033

Signed division (16-bit)


(S1+1, S1) / (S2)

5
4

Quotient
(D+1, D)
Remainder
(D+3, D+2)

4
5

INC

+1

FNC034

Increment (16-bit)
D+1 D

INCP

+1P

FNC035

Increment pulse (16-bit)


D+1 D

DEC

-1

FNC036

Decrement (16-bit)
D-1 D

DECP

- 1P

FNC037

Decrement pulse (16-bit)


D-1 D

Signed multiplication (32-bit)


(S1+1, S1) x (S2+1, S2)
(D+3, D+2, D+1, D)
Signed division (32-bit)
(S1+1, S1) / (S2+1, S2) Quotient
(D+1,D), Remainder (D+3, D+2)

DMUL

D x S1, S2, D

DDIV

D / S1, S2, D

DINC

D+1

FNC130

Increment (32-bit)
D+1 D

DINCP

D+1P

FNC131

Increment pulse (32-bit)


D+1 D

Note)

: For NB

FNC03E

FNC03F

NBE

NB0

SPB

: Usable,

FNC No.

D - S1, S2, D

NB

ADD (+)

DSUB ( - )

PC type
NS/NJ

3) Arithmetic instructions
Symbol

Unusable

32-bit band comparison M81FC M81FD M81FE

(S1,+1) <= (S,+1) <= (S2,+1) OFF

Instruction

U type only.

App.-7

5
4
5

Unusable

PC type
NS/NJ NB

NBE

NB0

SPB

Appendix

(Continued)
Instruction

: Usable,

Symbol

FNC No.

Function

No. of
steps

DDEC

D-1

FNC132

Decrement (32-bit)
D-1 D

DDECP

D-1P

FNC133

Decrement pulse (32-bit)


D-1 D

4) Conversion instructions
Instruction

Symbol

Function

No. of
steps

DECO

DECO S, D

FNC040

Decoding (4 to 16)

ENCO

ENCO S, D

FNC041

Encoding (16 to 4)

SUM

SUM S, D

FNC042

Count on bit

BCD

BCD S, D

FNC043

Binary to BCD conversion (16-bit)

BIN

BIN S, D

FNC044

BCD to Binary conversion (16-bit)

DBCD

DBCD S, D

FNC045

Binary to BCD conversion (32-bit)

DBIN

DBIN S, D

FNC046

BCD to binary conversion (32-bit)

DSUM

DSUM S, D

FNC047

Count ON-bits (32 bit)

ASCI

ASCI S, D, n

FNC048

HEX to ASCII conversion

HEX

HEX S, D, n

FNC049

ASCII to HEX conversion

SEC

SEC S, D

FNC04A

HMS (hours/minutes/seconds) to
SEC (seconds) conversion

HMS

HMS S, D

FNC04B

SEC (seconds) to HMS


(hours/minutes/seconds)

Note)

: For NB

U type only.

App.-8

Unusable

PC type
NS/NJ

NB

: Usable,

FNC No.

NBE

NB0

SPB

Unusable

PC type
NS/NJ

NB

NBE

NB0

SPB

Appendix

5) Logic instructions
Instruction

Symbol

: Usable,

FNC No.

Function

No. of
steps

WAND

AND S1, S2, D

FNC038

(S1) AND (S2)

WOR

OR, S1 S2, D

FNC039

(S1) OR (S2)

WXOR

XOR S1, S2, D

FNC03A

(S1) EOR (S2)

WXNR

XNR S1, S2, D

FNC03B

(S1) EOR (S2)

DAND

DAND S1, S2, D

FNC134

(S1) AND (S2)


(32-bit)

DOR

DXOR

DXNR

DOR S1, S2, D

DXOR S1, S2, D

DXNR S1, S2, D

FNC135

FNC136

FNC137

(S1) OR (S2)
(32-bit)

5
D

4
5

(S1) EOR (S2)


(32-bit)

(S1) EOR (S2)


(32-bit)

4
5

App.-9

4
5

Unusable

PC type
NS/NJ NB

NBE

NB0

SPB

Appendix

6) Program instructions
Instruction

Symbol

FEND

: Usable,

FNC No.

FEND

Function

No. of
steps

FNC002

End of main program

CALL

CALL UM

FNC004

Calls user macro command

UMEXE

UM EXE

FNC005

Activates user macrocommand executor

UMEND

UM END

FNC006

End of called macrocommand

UM

FNC007

Head of user macrocommand executor

URET

URET

FNC008

End of user macrocommand executor

JMP

JMP

FNC001

Unconditional jump

CJMP n

FNC000

Conditional jump

UM

CJ

JEND n

Pointer n: 0 to FF

INTR n

Interrupt pointer

IRET

IRET

FNC003

End of interrupt program

LOOP

LOOP N

FNC009

Iteration starting step

CONT

CONTINUE

FNC00A

Iteration ending step

App.-10

Unusable

PC type
NS/NJ NB

NBE

NB0

SPB

Appendix

7) Rotation and shift


Instruction

Symbol

: Usable,

FNC No.

Function

No. of
steps

RCR

RCR D

FNC050

Right rotation of 16-bit data (carry)

RCL

RCL D

FNC051

Left rotation of 16-bit data (carry)

ROR

ROR D

FNC052

Right rotation of 16-bit data (no carry)

ROL

ROL D

FNC053

Left rotation of 16-bit data (no carry)

NRCR

NRCR D, n

FNC056

N-bit right rotation of 16-bit data (carry)

NRCL

NRCL D, n

FNC057

N-bit left rotation of 16-bit data (carry)

NROR

NROR D, n

FNC058

N-bit right rotation of 16-bit data (no carry)

NROL

NROL D, n

FNC059

N-bit left rotation of 16-bit data (no carry)

SFTR

SFTR D

FNC054

1-bit right shift of 16-bit data

SFTL

SFTL D

FNC055

1-bit left shift of 16-bit data

NSFR

NSFR D, n

FNC05A

N-bit right shift of 16-bit data

NSFL

NSFL D, n

FNC05B

N-bit left shift of 16-bit data

DNRCR

DNRCR D, n

FNC05C

n-bit right shift of 32-bit data


(carry)

DNRCL

DNRCL D, n

FNC05D

n-bit left rotation of 32-bit data


(carry)

DNROR

DNROR D, n

FNC05E

n-bit right shift of 32-bit data


(no carry)

DNROL

DNROL D, n

FNC05F

n-bit left rotation of 32-bit data


(no carry)

8) File
Instruction

FNC No.

Function

No. of
steps

FFST

FFST S, D1, D2, n

FNC140

Stores a file

FIFO

FIFO S1, S2, D, n

FNC141

First-in first-out control

FILO

FILO S1, S2, D, n

FNC142

First-in last-out control

App.-11

Unusable

PC type
NS/NJ NB

: Usable,

Symbol

NBE

NB0

SPB

Unusable

PC type
NS/NJ

NB

NBE

NB0

SPB

Appendix

9) Floating points
Instruction

ECMP

EZCP

: Usable,

Symbol

ECMP S1, S2

EZCP S1, S2, S

FNC No.

FNC150

FNC151

Function

No. of
steps

Compare 32 bits M81FD

M81FE

S1 > S2

OFF

OFF

S1 = S2

ON

OFF

S1 < S2

OFF

ON

Compare band

M81FC M81FD M81FE

S1 > S

ON

OFF

OFF

S1 <= S <= S2

OFF

ON

OFF

S > S2

OFF

OFF

ON

FLT

FLT S, D

FNC154

Binary integer to binary floating-point


3
conversion

DFLT

DFLT S, D

FNC155

Binary integer to binary floating-point


conversion (32 bit)

INT

INT S, D

FNC156

Binary floating-point to binary integer


3
conversion

DINT

DINT S, D

FNC157

Binary floating-point to binary integer


3
conversion (32 bit)

EBCD

EBCD S, D

FNC158

Binary floating-point to BCD floatingpoint conversion (32 bit)

EBIN

EBIN S, D

FNC159

BCD floating-point to binary floatingpoint conversion (32 bit)

EADD

E+ S1, S2, D

FNC160

Binary floating-point addition:


S1+S2 D

ESUB

E S1, S2, D

FNC161

Binary floating-point subtraction:


S1- S2 D

EMUL

Ex S1, S2, D

FNC162

Binary floating-point multiplication:


S1xS2 D

EDIV

E/ S1, S2, D

FNC163

Binary floating-point division:


S1/S2 D

ESQR

ESQR S, D

FNC164

Binary floating-point square root:


S D

3
4

SIN

SIN S, D

FNC166

Floating-point sine calculation:


SIN S D

COS

COS S, D

FNC167

Floating-point cosine calculation:


COS S D

TAN

TAN S, D

FNC168

Floating-point tangent calculation:


TAN S D

App.-12

Unusable

PC type
NS/NJ NB

NBE

NB0

SPB

Appendix

10) Clock operation


Instruction

TCMP

TZCP

Symbol

TCMP S1, S2, S3, S

TZCP S1, S2, S

: Usable,

FNC No.

FNC170

FNC171

Function

No. of
steps
M81FD

M81FE

(S1, S2, S3) > S

OFF

OFF

(S1, S2, S3) = S

ON

OFF

(S1, S2, S3) < S

OFF

ON

Comparison

Band comparison M81FC M81FD M81FE


S1 > S

ON

OFF

OFF

S1 <= S <= S2

OFF

ON

OFF

S < S2

OFF

OFF

ON

FNC172

Clock data addition:


S1+S2 D

TSUB

TSUB S1, S2, D

FNC173

Clock data subtraction:


S1- S2 D

TRD

TRD D

FNC174

Clock data read

TWR

TWR D

FNC175

Clock data write

11) Others

: Usable,

FNC No.

Function

No. of
steps

DATA B

Not marked in a
ladder diagram

FNC 080

Data instruction
(direct specification)

DATA M

Not marked in a
ladder diagram

FNC 081

Data instruction
(indirect specification)

SLT

FNC 090

Status latch setting

SLTR

SLTR

FNC 091

Status latch reset

STRA

STRA

FNC 092

Sampling trace setting

STRA R

FNC 093

Sampling trace reset

SLT

STRA R

PC type
NS/NJ NB

App.-13

NBE

NB0

SPB

TADD S1, S2, D

Symbol

Unusable

TADD

Instruction

Unusable

PC type
NS/NJ NB

NBE

NB0

SPB

Gate City Ohsaki, East Tower,


11-2, Osaki 1-chome, Shinagawa-ku, Tokyo 141-0032, Japan

E-mail: micrex-sx@fujielectric.co.jp
URL: http://www.fujielectric.com/
Materials covered in this document are subject to revision due to the modification of the product.

Issued as FE consolidated edition, June 2011

Você também pode gostar