You are on page 1of 185

FUJI PROGRAMMABLE CONTROLLER

Handy Loader
USER'S MANUAL

Type: NW0H-NE

FEH402
Preface

This User’s 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 user’s 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 user’s 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 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 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 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
5-7-2 Data transfer to/from the memory cassette on the processor ............................................................ 5-27
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
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 NB1-P24, NB1-P40, NB1-P56
(NB -P/E) NB2-P24, NB2-P36, NB2-P56, NB2-P90
NB series NB1U24, NB1U40, NB1U56
(NB -U/W) 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 50°C.
• 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 +70°C.)

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 Specification
Physical conditions Operating temperature 0 to +55ºC
Storage temperature -20 to +70ºC
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.
Mechanical conditions 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
Installation conditions 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 6) Hanger hole 1) LCD display 2) LCD contrast adjustment screw

NW0H

RD INS MNT
AUX
WR DEL TEST

LD AND OR
HELP CLR
X M L R
LDI ANI ORI ,
FNC
Y S T W SP
OUT ANB ORB
P/I STEP
C D E F
SET PLS MC INV
K/H
8 9 A B
RST PLF MCR RET
-
4 5 6 7
NOP MPS MRD MPP END
GO
0 1 2 3

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
RD INS MNT Mode keys: AUX determine the Handy Loader operation mode.
AUX
WR DEL TEST WR DEL TEST
LD AND OR
HELP CLR
X M L R
LDI ANI ORI ,
FNC
Y S T W SP
HELP key:
OUT ANB ORB
P/I STEP
C D E F
SET PLS MC INV Used to display the number of PC program steps and data instruction number list,
K/H
8 9 A B and to switch numeric data display between hexadecimal and decimal.
RST PLF MCR RET
4 5 6 7
-
NOP MPS MRD MPP END
GO
0 1 2 3

FNC key : Used to input data instructions.

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

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

STEP key : Used to specify a step number.

K: Specifies decimal.
K/H key : Used to input a constant.
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

90 35
¿8

NW0H

RD INS MNT
AUX
WR DEL TEST

148
LD AND OR
HELP CLR
X M L R
LDI ANI ORI ,
FNC
Y S T W SP
OUT ANB ORB
P/I STEP
C D E F
SET PLS MC INV
K/H
8 9 A B
RST PLF MCR RET
4 5 6 7 -
NOP MPS MRD MPP END
GO
0 1 2 3

82 25

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
Programming Functions

Instruction write
Write

Device change (contact change)


Instruction work insert, delete, change
Designated program range delete
NOP collective delete -
NOP collective write
Pointer write
Read from starting step
Read

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)
Continuity check
Monitor / Test Functions

Monitor / Test

Device monitor
Timer/counter current value monitor
Compulsive ON/OFF
Device data change
Timer/counter current value/setting change
Processor activation/deactivation
Auxiliary Functions

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 SP key eight times and then

press GO .
The following screen appears.

PC ALL CLEAR ?
OK [GO]
To execute, press GO .
The initial screen will appear.

2-7
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 Key operation Page

First
Read RD
3-52
WR

Step No.
STEP (Step No.) GO 3-54

Device search RD ,
SP
[Device identifier] [Device address] GO 3-55
WR

To search again
press GO

Instruction search RD
WR
[Instruction [Device identifier] [Device address] GO
3-57
word] Instruction requiring no device

To search again
press GO

Conductivity check MNT


STEP [Step No.] GO 4-1
TEST

Programming Memory clear RD RD NOP MC


WR WR 0 A
GO GO 3-51

Write RD RD [Instruction [Device [Device 3-4


GO
WR WR word] identifier] identifier]

CLR

Insertion INS
DEL
[Program input] GO 3-44

Delete INS INS Reading the program step to


DEL DEL
GO 3-46
be deleted

Reading bit data MNT , MNT SET


Monitor SP
DEVICE GO
8 : Forced ON 4-9
and Forced ON/OFF TEST TEST
and
RST
Test : Forced OFF
4

Reading the internal MNT , MNT


SP
WORD DEVICE GO
TEST
4-11
register and TEST

Changing the data ,


in it K/H K/H NUMERIC VALUE GO
SP

Auxiliary menu screen AUX [Select the subsequent auxiliary function menu]

2-8
2-6 Key Operation Reference List

Item Key operation Page

Auxiliary 1. PC run/stop < 1 RUN/STOP SW screen > 5-1

GO GO CLR (Return to the auxiliary menu 1.)

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


GO No error CLR

Error (Next Return to the


error) auxiliary menu 2.
[ : displays the previous error.]

3. Parameter < 3 PARAMETER screen > 5-5


1) Reading
GO (Parameter area address) GO

2) Change
(New Parameter value) GO
(Displays the
previous address)
(Displays the
next address)

GO GO CLR CLR

Return to address Return to the


input screen auxiliary menu 3.

4. password < 4 PASSWORD screen > GO [Go to (1) or (2)] 5-9


(1) To register:
GO (Password) GO CLR CLR

(2) To delete: Return to the


auxiliary menu 4.
GO

5. Message display < 5 MSG DISPLAY screen > 5-11

GO (System message)

(User message)

CLR (Return to auxiliary menu 5.)

2-9
2-6 Key Operation Reference List

Item Key operation Page

Auxiliary 6. RAS < 6 RAS screen > GO [Go to (1) to (4)] 5-18
(1) System RAS
System RAS System RAS
GO GO CLR
address input display
(2) Instruction RAS
Instruction Next RAS
GO
RAS display display
(3) System RAS clear
GO GO

(4) Option RAS


Display from
GO CLR
address 000

(Address area) GO

[ : Displays the previous address, : Displays the next address.]

CLR CLR (Return to the auxiliary menu 6.)

7. Memory < 7 MEM CST XFER screen > 5-24


Cassette
GO ( or selects a function.)
Transfer

GO GO

CLR (Return to the function selection.)

CLR (Return to the auxiliary menu 7.)

8. Converting < 8 DEV CONV screen > 5-38


a Device Conversion source New device
GO GO
Address device address address

GO CLR CLR (Return to the the auxiliary menu 8.)

9. Memory clear < 9 MEMORY CLEAR screen > GO [ Go to (1), (2), (3), or (4) ] 5-39
1) Parameter clear
GO GO CLR CLR

2) Program clear Return to the the


GO GO auxiliary menu 9.

3) Data clear
GO GO

4) Memory all clear

GO GO

2-10
2-6 Key Operation Reference List

Item Key operation Page

Auxiliary 10. Calender < 10 CALENDAR SET screen > 5-42


setting
GO (Year setting) CLR

(Month setting) Return to the CALENDAR


SET screen.
(Day setting)

(Hour setting)

(Minute setting)

(Second setting)

(Day of the week setting)

GO

11. Buzzer ON/OFF < 11 Buzzer ON/OFF screen > 5-43

GO CLR ( Return to the Buzzer ON/OFF screen.)

(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 GO CLR (Return to the function selection.)

CLR (Return to the memory cassette type


selection.)

CLR (Return to the auxiliary menu 12.)

13. Setting PC < 13 PC No. SET screen > 5-55


Station No.
GO (Setting slot No.)

(Setting PC Station No.)

GO CLR (Return to the auxiliary menu 13.)

2-11
2-6 Key Operation Reference List

Item Key operation Page

Auxiliary 14. Transfer <14 TRANSFER screen > 5-56

GO ( or select a area GO

(1) PC Loader

GO GO CLR CLR CLR

(2) Loader PC Return to the


auxiliary menu
GO GO 14.

(3) Verification

GO GO

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

GO GO

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

Handy Loader Internal


Flash
Key Programming Memory
RAM
operation
Memory
card

PC

Handy Loader Internal


Transfer instruction Transfer Flash
Key command Memory
RAM
operation
Memory
Transfer card

(2) N-series
If the PC does not not have a memory cassette attached, any program created is written to the PC’s 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 PC

Key Programming Internal


operation RAM
Transfer

Memory
cassette

3-1
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 R 0 LD X000


1 OUT 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
R : Read mode 10 LD X 000
W : Write mode
Up to four digit
I : Insert mode Device address
Up to five digit
D : Delete mode
Instruction word

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

RD
Press the key to set “Read mode”.
WR

RD RD
Press the key to set “Write mode”.
WR WR

RD
(Either the “Read mode” or “Write mode” is displayed alternatively each time the key is pressed.)
WR

INS
Press the key to set “Insert mode”.
DEL

INS INS
Press the key to set “Delete mode”.
DEL DEL

INS
(Either the “Insert mode” or “Delete mode” is displayed alternatively each time the key is pressed.)
DEL

3-3
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
Basic operation

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 Device address GO


FNC FNC No.
SP

3) Instruction requires two or more devices


*1
[Write mode] [Instruction] key

,
FNC FNC No.
SP
*2
,
Device identifier Device address Device identifier Device address
SP

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

Press FNC and input FNC No. for a data instruction.


,
*2 Press SP before and after Device address is input.

3-4
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> <Mnemonic notation>


X0 X1 YC Step No. Instruction word Device
0 0 X0
LD
YC 1 OR YC
2 ANI X1
X2 T0 3 OUT YC
4 TMR 500 4 LD X2
T0 YD 5 OUT T0 K500
7 7 LD T0
X3 C0 8 OUT YD
9 CTR 10 9 LD X3
X4 10 LD X4 K10
CRst 11 OUT C0
C0 YE 13 LD C0
13 14 OUT YE
15 END

Point: Timer instruction

Write the timer instruction using the following procedure:


1) Write a condition contact of the the timer instruction.

LD
Device identifier Device address
X

2) Write the timer device as OUT instruction.

OUT ORI
Timer number
C T

3) Write a setting value.


,
Press to go to the next line.
SP

K/H Decimal setting value (Setting range : 1 to 32767)

Device identifier Device address

GO

3-5
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
Device identifier Device address
X

2) Write the reset contact of the counter instruction.

LD
Device identifier Device address
X

3) Write the counter number as OUT instruction.

OUT OUT Counter number


C C

4) Write a setting value.

,
Press to go to the next line.
SP

K/H Decimal setting value (Setting value : 1 to 32767)

Device identifier 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.
<Key operation> <Screen>

OUT OUT NOP , W 4 OUT C 000


C C 0 SP —

W 4 OUT C 000
K/H
K —

W 4 OUT C 000
(Value outside the range) GO
SETTING ERROR

W 4 OUT C 000
CLR Returns to the setting value input screen.

3-6
3-3 Writing a Sequence Instruction

<Key operation> <Screen>

<Write>
(1) Power start-up HANDY LOADER
(Initial screen) NW0H-NE V .

RD R
Sets read mode.
WR 0 NOP

RD W
Sets write mode.
WR 0 NOP

X0 LD W
Inputs instruction word.
X 0 LD

LD W
Inputs device identifier.
X 0 LD X

NOP W
Inputs device address.
0 0 LD X 000

W 0 LD X 000
GO Stores instruction.
1 NOP

OR W 0 LD X 000
X0 Inputs instruction word.
L 1 OR

YC

LDI W 0 LD X 000
Inputs device identifier.
Y 1 OR Y

b a

3-7
3-3 Writing a Sequence Instruction

b a

<Write>

OUT W 0 LD X 000
Inputs device address.
C 1 OR Y 00C

W 1 OR Y 00C
GO Stores instruction.
2 NOP

ANI W 1 OR Y 00C
X0 X1 Inputs instruction word.
S 2 ANI
YC

LD W 1 OR Y 00C
Inputs device identifier.
X 2 ANI X

MPS W 1 OR Y 00C
Inputs device address.
1 2 ANI X 001

W 2 ANI X 001
GO Stores instruction.
3 NOP

OUT W 2 ANI X 001


X0 X1 YC Inputs instruction word.
C 3 OUT
YC

LDI W 2 ANI X 001


Inputs device identifier.
Y 3 OUT Y

OUT W 2 ANI X 001


Inputs device address.
C 3 OUT Y 00C

d c

3-8
3-3 Writing a Sequence Instruction

d c

<Write>

W 3 OUT X 00C
GO Stores instruction.
4 NOP

X0 X1 YC LD W 3 OUT Y 00C
Inputs instruction word.
X 4 LD
YC

X2
LD W 3 OUT Y 00C
Inputs device identifier.
X 4 LD X

MRD W 3 OUT Y 00C


Inputs device address.
2 4 LD X 002

W 4 LD X 002
GO Stores instruction.
5 NOP

X0 X1 YC
OUT W 4 LD X 002
Inputs instruction word.
YC
C 5 OUT

X2 T0
TMR 500
ORI Inputs device identifier. W 4 LD X 002
T (timer) 5 OUT T

NOP Inputs device address. W 4 LD X 002


0 (timer No.). 5 OUT T 000

, W 5 OUT T 000
Scrolls to the next line.
SP

f e

3-9
3-3 Writing a Sequence Instruction

f e

<Write>

W 5 OUT T 000
K/H Specifies decimal number.
K

PLF NOP NOP Inputs setting W 5 OUT T 000


5 0 0 number. K 500

W K 500
GO Stores instruction.
7 NOP

X0 X1 YC LD W K 500
Inputs instruction word.
X 7 LD
YC

X2 T0
TMR 500
ORI W K 500
T0 Inputs device identifier.
T 7 LD T

NOP W K 500
Inputs device address.
0 7 LD T 000

W 7 LD T 000
GO Stores instruction.
8 NOP

X0 X1 YC
OUT W 7 LD T 000
Inputs instruction word.
YC
C 8 OUT

X2 T0
TMR 500
LDI W 7 LD T 000
T0 YD Inputs device address.
Y 8 OUT Y

h g

3-10
3-3 Writing a Sequence Instruction

h g

<Write>

ANB W 7 LD T 000
Inputs device address.
D 8 OUT Y 00D

W 8 OUT T 00D
GO Stores instruction.
9 NOP

X0 X1 YC LD W 8 OUT Y 00D
Inputs instruction word.
X 9 LD
YC

X2 T0
TMR 500
LD W 8 OUT Y 00D
T0 YD Inputs device identifier.
X 9 LD X

X3

* Counter count is input.


MPP W 8 OUT Y 00D
Inputs device address.
3 9 LD X 003

W 9 LD X 003
GO Stores instruction.
10 NOP

X0 X1 YC LD W 9 LD X 003
Inputs instruction word.
X 10 LD
YC

X2 T0
TMR 500
LD W 9 LD X 003
T0 YD Inputs device identifier.
X 10 LD X

X3

X4 RST W 9 LD X 003
Inputs device address.
4 10 LD X 004
* Counter reset is input.

j i

3-11
3-3 Writing a Sequence Instruction

j i

<Write>

W 10 LD X 004
GO Stores instruction.
11 NOP

X0 X1 YC OUT W 10 LD X 004
Inputs instruction word.
C 11 OUT
YC

X2 T0
TMR 500 Inputs device identifier.
OUT W 10 LD X 004
T0 YD
C (counter). 11 OUT C

X3 C0
CTR 10
X4 NOP Inputs device address. W 10 LD X 004
CRst
0 (counter No.). 11 OUT C 000

, W 11 OUT C 000
Scrolls to the next line.
SP

W 11 OUT C 000
K/H Specifies decimal number.
K

MPS NOP W 11 OUT C 000


Inputs setting value.
1 0 K 10

W K 10
GO Stores instruction.
13 NOP

X0 X1 YC

LD W K 10
YC Inputs instruction word.
X 13 LD
X2 T0
TMR 500
T0 YD

k
X3 C0
CTR 10
X4
CRst
C0

3-12
3-3 Writing a Sequence Instruction

<Write>

OUT NOP Inputs device identifier W K 10


C 0 and device address. 13 LD C 000

W 13 LD C 000
GO Stores instruction.
14 NOP

X0 X1 YC

YC OUT W 13 LD C 000
C 14 OUT
X2 T0
TMR 500
T0 YD
LDI ORB W 13 LD C 000
X3 C0
Y E 14 OUT Y 00E
CTR 10
X4
CRst
C0 YE W 14 OUT Y 00E
GO
15 NOP

END W 14 OUT Y 00E


15 END

W 15 END
GO
16 NOP

X0 X1 YC

YC

X2 T0
TMR 500
T0 YD

X3 C0
CTR 10
X4
CRst
C0 YE

END

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

X0 D0000*0 Step No. Ins. word Device


0
0 LD X0
D0000*0 1 OUT D00000
2 OUT D00002

<Key operation> <Screen>

LD LD NOP W 0 LD X 000
GO 1 NOP
X X 0

POINT

Data register 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
to specify bit in the register area.

3-14
3-3 Writing a Sequence Instruction

<Key operation> <Screen>

OUT W 0 LD X 000
Inputs instruction word.
C 1 OUT

ANB Inputs device identifier W 0 LD X 000


D (data register area). 1 OUT D

NOP W 0 LD X 000
0 1 OUT D0000
Inputs register word
address.
, W 0 LD X 000
SP 1 OUT D0000

NOP W 0 LD X 000
Inputs register bit address.
0 1 OUT D00000

W 1 OUT D00000
GO Stores Instruction.
3 NOP

OUT ANB NOP , W 1 OUT D00000


C D 0 SP 3 OUT D0000

MRD W 3 OUT D00002


GO
2 5 NOP

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

M0 Step No. Ins.word Device


100 CJMP H0 100 LD M0
101 CJ P0
X0 YB
103
~

202 P 0

X100 M100
200

202 JEND H0

<Key operation> <Screen>

In write mode
M0
LD W
Inputs instruction word.
X 100 LD

AND W
Inputs device identifier.
M 100 LD M

NOP W
Inputs device address.
0 100 LD M0000

100 LD M0000
GO Stores instruction.
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 n If a jump instruction is written while the PC is running, a program


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

3-16
3-3 Writing a Sequence Instruction

M0 W 100 LD M0000
CJMP H0 FNC
101 FNC
Input FNC No. of the CJ
instruction
NOP W 100 LD M0000
0 101 FNC 000

, W 101 CJ 000
Scrolls to the next line.
SP

Inputs the jump pointer W 101 CJ 000


P/I
identifier: P. P

NOP W 101 CJ 000


Inputs pointer No..
0 P 00

W P 00
GO Stores instruction.
103 NOP

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


M0
CJMP H0

Program to be jumped
W
P/I Inputs pointer identifier: P.
202 P
202 JEND H0

NOP W
Inputs pointer number.
0 202 P 00

GO Stores instruction.

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

00 to 03: Interrupt due to external input (X0 to X3)


SPB 04 to 0F: Reserved (vacant)
series 10 to 11: Interrupt due to high-speed counter matching
12 to 1B: Reserved (vacant)
1C to 1F: Fixed-cycle interrupt

00 to 07: Interrupt due to external input (X0 to X7)


NB 10 to 17: Interrupt due to high-speed counter matching
series 18 to 1B: Reserved (vacant)
1C to 1F: Fixed-cycle interrupt

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


NJ and NS 10 to 17: Interrupt due to option module (slots 0 to 7)
series 18 to 1B: Reserved (vacant)
1C to 1F: Fixed-cycle interrupt

Basic operation

P/I P/I Interrupt pointer No. GO

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. Ins. word Device


100 FNED
101 I 0200
Main routine
program 103 LD M0
104 MOV K0 D0
100 FEND 107 IRET

I NTR H0200
M0
MOV 0 D0 Interrupt
program
I RET

3-18
3-3 Writing a Sequence Instruction

<Key operation> <Screen>

W
FNC
100 FNC
Input Instruction FEND.
(Main routine program end)
MRD W
2 100 FNC 002

W 100 FEND 002


GO Stores instruction.
101 NOP

W 100 FEND 002


P/I
101 P

Inputs interrupt pointer identifier.

W 100 FEND 002


P/I
101 I

MRD W 100 FEND 002


Inputs interrupt pointer No..
2 101 I0 200

NOP W 100 FEND 002


0 Inputs fixed-cycle interrupt cycle. 101 I0200
(“00” for other than a fixed-cycle
interrupt)

NOP W 100 FEND 002


0 101 I0200

W 101 I0200
GO Stores pointer.
103 NOP

3-19
3-3 Writing a Sequence Instruction

<Key operation> <Screen>

LD AND NOP W 103 LD M0000


GO
X M 0 104 NOP

MRD NOP , W 104 MOV 020


FNC
2 0 SP

Input instruction MOV and proceed to the next line.

NOP , W 104 MOV ,


K/H
0 SP

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

ANB NOP W D0000


GO
D 0 107 NOP

Input decimal constant for device D and store it.

MPP W 107 I RET 03


FNC GO
3 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
D before the device identifier is specified.

Basic operation

ANB
[Instruction] key Device identifier Device address GO
D
Specifies direct input Input relay : X area or
and output. output relay: Y area
can be a specified.

<Ladder> <Mnemonic>

X0 YE Step No. Inst. word. Device


D D 0 LD DX0
2 OUT DYE
YF
4 SET DYF
SD
6 LD X1
X1 YF 7 RST DYF
RD

<Key operation> <Screen>


Write mode

LD W
Inputs instruction word.
X 0 LD

X0
ANB W
D
D 0 LD D
Input direct-input
device identifier.
LD W
X 0 LD DX

NOP W
Inputs device address.
0 0 LD DX 000

W 0 LD DX 000
GO Stores instruction.
2 NOP

3-21
3-3 Writing a Sequence Instruction

<Key operation> <Screen>

X0 YE
OUT W 0 LD DX 000
Inputs instruction word.
D D C 2 OUT

ANB W 0 LD DX 000
D 2 OUT D
Input direct-input
device identifier.

LDI W 0 LD DX 000
Y 2 OUT DY

ORB W 0 LD DX 000
Inputs device address.
E 2 OUT DY 00E

W 2 OUT DY 00E
GO Stores instruction.
4 NOP

SET ANB LDI W 4 SET DY 00F


GO
8 D Y F 6 NOP

Input direct SET instruction device

LD LD MPS W 6 LD X 001
GO
X X 1 7 NOP

RST ANB LDI W 7 RST DY 00F


GO
4 D Y F 9 NOP

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 Device address GO

Specifies the rising or


falling contact

<Ladder diagram> <Mnemonic notation>

X0 M0 Y6 Step No. Ins. word Device


0 0 LD X0
2 ORI Y5
Y5
4 AND M0
5 OUT Y6

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

<Key operation> <Screen>

X0 LD W
X 0 LD
Input instruction word.
( : Rising edge differentiation)

W
0 LD

LD W
Inputs device identifier.
X 0 LD X

NOP W
Inputs device address.
0 0 LD X 000

W 0 LD X 000
GO Stores instruction.
2 NOP

3-23
3-3 Writing a Sequence Instruction

<Key operation> <Screen>

X0 ORI W 0 LD X 000
T 2 ORI
Y5 Input instruction word.
( : Falling edge differentiation)
W 0 LD X 000
2 ORI

LDI W 0 LD X 000
Inputs device identifier.
Y 2 ORI Y

PLF W 0 LD X 000
Inputs device address.
5 2 ORI Y 005

W 2 ORI Y 005
GO Stores instruction.
4 NOP

AND AND NOP W 5 AND M0000


GO
M M 0 6 NOP

OUT LDI MCR W 6 OUT Y 006


GO
C Y 6 7 NOP

X0 M0 Y6

Y5

3-24
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 FNC No. (Device specification, etc.) GO

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 0 PROGRAM BRANCH 11 COMPARISON 2
1 COMPARISON 12 COMPARISON 3
2 TRANSFER 13 ARITH, LOGIC 2
3 ARITH, LOGICAL 14 FILE
4 DATA PROCESS 15 FLOAT 1
The group name of the function 5 ROTATION 16 FLOAT 2
6 STEP CONTROL 17 DATE, TIME
instruction is screen.
7 MESSAGE XFR 18 PULS OUTPUT
8 DATA 19 HANDY OPE.
9 DEBUG
A SFC1
B SFC2

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 027: MPX
021: DMOV 028: XFR
022: CML 029: DT
023: BMOV 02A: DCML
024: FMOV 02B: DXCH
025: XCH 02C: DFMOV
026: DMPX

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

FNC HELP FNC No. upper two digit FNC No. Lower one 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 Comparison Transfer Arithmetic Conversion Rotation Step Message Data Debug
flow instruction 1 instruction, and logic instruction instruction control instruction, instruction instruction
instruction etc. instructions 1 instruction etc.
Tens
Unit digit 00 01 02 03 04 05 06 07 08 09
digit

0 CJ LD= MOV ADD DECO RCR SC MSGT DATA B SLT


1 JMP LD< > DMOV SUB ENCO RCL MSGR DATA M SLTR
2 FEND LD> CML MUL SUM ROR OPDF STRA
3 IRET LD<= BMOV DIV BCD ROL STRAR
4 CALL AND= FMOV INC BIN SFTR
5 UMEXE AND< > XCH INCP DBCD SFTL
6 UMEND AND> DMPX DEC DBIN NRCR
7 UM AND<= MPX DECP DSUM NRCL
8 URET OR= XFR WAND ASCI NROR
9 LOOP OR< > DT WOR HEX NROL
A CONT OR> DCML WXOR SEC NSFR
B OR<= DXCH WXNR HMS NSFL
C DCMP DFMOV DADD DNRCR
D CMP DSUB DNRCL
E DMUL DNROR
F DDIV DNROL

Group name Comparison Comparison Arithmetic File Floating-point Floating-point Clock Pulse Convenience
instruction 2 instruction 3 and logic instruction instruction 1 instruction 2 operation output instruction
instructions 2 instruction instruction
Tens
Unit digit 10 11 12 13 14 15 16 17 18 19
digit
0 LDD= LD< DINC FFST ECMP EADD TCMP PLS1 RAMP
1 LDD< > LD>= DINCP FIFO EZCP ESUB TZCP DPLS1
2 LDD> AND< DDEC FILO EMUL TADD PLS2 PID
3 LDD<= AND>= DDECP EDIV TSUB DPLS2
4 ANDD= OR< DAND FLT ESQR TRD PWM1 ABSD
5 ANDD< > OR>= DOR DFLT TWR PWM2 INCD
6 ANDD> LDD< DXOR INT SIN PLSI MTR
7 ANDD<= LDD>= DXNR DINT COS DPLSI
8 ORD= ANDD< EBCD TAN PLSA DSW
9 ORD< > ANDD>= EBIN DPLSA SEGL
A ORD> ORD< ORG
B ORD<= ORD>= DORG
C ZCP
D DZCP
E
F

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

Instruction Instruction
FNC No. Name FNC No. Name
identifier identifier

Single sequence transfer


0A0 PRC Main process start instruction 0B0 SINGL
start instruction

Selection branch
0A1 E_PRC Process end instruction 0B1 D_SLC
start instruction

Selection confluent
0A2 M_END SFC main end 0B2 C_SLC
start instruction

0A3 SPRC Sub-process start instruction 0B3 D_SIM Parallel branch start instruction

Parallel confluent start


0A4 E_SPR Sub-process end instruction 0B4 C_SIM
instruction

0A5 Reserved 0B5 E_TRN Transfer end instruction

Transfer source step state read


0A6 Reserved 0B6 STL
instruction

Transfer source step state read


0A7 Reserved 0B7 STLC
instruction (CALL)

0A8 Reserved 0B8 SET Transfer instruction

0A9 ACEXE Action execution start instruction 0B9 SLCT Selection branch instruction

Selection confluent transfer


0AA ACFUN Action function start instruction 0BA JUNC
source step state read instruction

0AB E_AC Action end instruction 0BB Reserved

0AC CLOSE Process end 0BC SIMUL Parallel branch instruction

Parallel confluent source step


0AD CALLA Sub-process call 0BD SYNL state read instruction

Parallel confluent source step


0AE SRET Sub-process return 0BE SYNLC state read instruction (CALL)

0AF OUT Step jump instruction 0BF SYNC Parallel confluent instruction

3-27
3-4 Writing a Data Instruction

FNC No. list (3)


Function numbers supported by SPB series are listed below.

Group name Program Comparison Transfer Arithmetic Conversion Rotation Step Message Data Debug
flow instruction 1 instruction, and logic instruction instruction control instruction, instruction instruction
instruction etc. instructions 1 instruction etc.
Tens
Unit digit 00 01 02 03 04 05 06 07 08 09
digit

0 CJ LD= MOV ADD DECO RCR SC MSGT DATA B


1 JMP LD< > DMOV SUB ENCO RCL MSGR DATA M
2 FEND LD> CML MUL SUM ROR
3 IRET LD<= BMOV DIV BCD ROL
4 CALL AND= FMOV INC BIN SFTR
5 UMEXE AND< > XCH INCP DBCD SFTL
6 UMEND AND> DMPX DEC DBIN NRCR
7 UM AND<= MPX DECP DSUM NRCL
8 URET OR= XFR WAND ASCI NROR
9 LOOP OR< > DT WOR HEX NROL
A CONT OR> DCML WXOR SEC NSFR
B OR<= DXCH WXNR HMS NSFL
C DCMP DFMOV DADD DNRCR
D CMP DSUB DNRCL
E DMUL DNROR
F DDIV DNROL

Group name Comparison Comparison Arithmetic File Floating-point Floating-point Clock Pulse Convenience
instruction 2 instruction 3 and logic instruction instruction 1 instruction 2 operation output instruction
instructions 2 instruction instruction
Tens
Unit digit 10 11 12 13 14 15 16 17 18 19
digit
0 LDD= LD< DINC FFST ECMP EADD TCMP PLS1 RAMP
1 LDD< > LD>= DINCP FIFO EZCP ESUB TZCP DPLS1
2 LDD> AND< DDEC FILO EMUL TADD PLS2 PID
3 LDD<= AND>= DDECP EDIV TSUB DPLS2
4 ANDD= OR< DAND FLT ESQR TRD PWM1 ABSD
5 ANDD< > OR>= DOR DFLT TWR PWM2 INCD
6 ANDD> LDD< DXOR INT SIN PLSI MTR
7 ANDD<= LDD>= DXNR DINT COS DPLSI
8 ORD= ANDD< EBCD TAN PLSA DSW
9 ORD< > ANDD>= EBIN DPLSA SEGL
A ORD> ORD< ORG
B ORD<= ORD>= DORG
C ZCP
D DZCP
E
F

3-28
3-4 Writing a Data Instruction

FNC No. list (4)


Function numbers supported by NB0 series are listed below.

Group name Program Comparison Transfer Arithmetic Conversion Rotation Step Message Data Debug
flow instruction 1 instruction, and logic instruction instruction control instruction, instruction instruction
instruction etc. instructions 1 instruction etc.
Tens
Unit digit 00 01 02 03 04 05 06 07 08 09
digit
0 CJ LD= MOV ADD RCR SC
1 LD< > SUB RCL
2 LD>
3 LD<=
4 AND=
5 AND< >
6 AND>
7 AND<=
8 OR= WAND
9 OR< > WOR
A OR> WXOR
B OR<= WXNR
C
D
E
F

FNC No. list (5)


Function numbers supported by NBE series are listed below.

Group name Program Comparison Transfer Arithmetic Conversion Rotation Step Message Data Debug
flow instruction 1 instruction, and logic instruction instruction control instruction, instruction instruction
instruction etc. instructions 1 instruction etc.
Tens
Unit digit 00 01 02 03 04 05 06 07 08 09
digit
0 CJ MOV ADD RCR SC
1 JMP SUB RCL
2 FEND
3 IRET
4 CALL
5 UMEXE
6 UMEND
7 UM
8 URET
9
A
B
C
D
E
F

3-29
3-4 Writing a Data Instruction

FNC No. list (6)


Function numbers supported by NB -P/NB3 series are listed below.
Group name Program Comparison Transfer Arithmetic Conversion Rotation Step Message Data Debug
flow instruction 1 instruction, and logic instruction instruction control instruction, instruction instruction
instruction etc. instruction 1 instruction etc.
Tens
Unit digit 00 01 02 03 04 05 06 07 08 09
digit
0 CJ LD= MOV ADD DECO RCR
1 JMP LD< > SUB ENCO RCL
2 FEND LD> CML MUL SUM
3 IRET LD<= BMOV DIV BCD
4 CALL AND= FMOV INC BIN
5 UMEXE AND< > XCH INCP
6 UMEND AND> DMPX DEC
7 UM AND<= MPX DECP
8 URET OR= WAND
9 OR< > WOR
A OR> WXOR
B OR<= WXNR
C
D
E
F

FNC No. list (7)


Function numbers supported by NB U series are listed below.
Group name Program Comparison Transfer Arithmetic Conversion Rotation Step Message Data Debug
flow instruction 1 instruction, and logic instruction instruction control instruction, instruction instruction
instruction etc. instruction 1 instruction etc.
Tens
Unit digit 00 01 02 03 04 05 06 07 08 09
digit
0 CJ LD= MOV ADD DECO RCR SC
1 JMP LD< > DMOV SUB ENCO RCL
2 FEND LD> CML MUL SUM ROR
3 IRET LD<= BMOV DIV BCD ROL
4 CALL AND= FMOV INC BIN SFTR
5 UMEXE AND< > XCH INCP DBCD SFTL
6 UMEND AND> DMPX DEC DBIN NRCR
7 UM AND<= MPX DECP NRCL
8 URET OR= XFR WAND NROR
9 OR< > DT WOR NROL
A OR> WXOR NSFR
B OR<= WXNR NSFL
C DCMP DADD
D DSUB
E
F

3-30
3-4 Writing a Data Instruction

FNC No. list (8)


Function numbers supported by NJ/NS series are listed below.
Group name Program Comparison Transfer Arithmetic Conversion Rotation Step Message Data Debug
flow instruction 1 instruction, and logic instruction instruction control instruction, instruction instruction
instruction etc. instructions 1 instruction etc.
Tens
Unit digit 00 01 02 03 04 05 06 07 08 09
digit
0 CJ LD= MOV ADD DECO RCR MSGT DATA B SLT
1 JMP LD< > DMOV SUB ENCO RCL MSGR DATA M SLTR
2 FEND LD> CML MUL SUM OPDF STRA
3 IRET LD<= BMOV DIV BCD STRAR
4 CALL AND= FMOV INC BIN
5 UMEXE AND< > XCH INCP
6 UMEND AND> DMPX DEC
7 UM AND<= MPX DECP
8 URET OR= WAND
9 OR< > WOR
A OR> WXOR
B OR<= WXNR
C
D
E
F

3-31
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 Y1F Step No. Ins. word Device
= WX1 30 0 LD X30
1 AND= WX1 K30
4 OR> WY0 WM1
> WY0 WM1
7 OUT Y1F
8 END

The key operation is given below.

<Key operation> <Screen>

(Initial screen)
N SERIES HANDY LOADER
NW0H-NE V .

RD R
WR 0 NOP

Sets write mode.

RD W
WR 0 NOP

X30 LD W
Inputs instruction word.
X 0 LD

LD Inputs device identifier.


W
X 0 LD X

MPP Inputs device address.


W
3 0 LD X 003

NOP W
0 0 LD X 030

a b

3-32
3-4 Writing a Data Instruction

a b

W 0 LD X 030
GO Stores instruction.
1 NOP

X30 W 0 LD X 030
= WX1 30 FNC
1 FNC

NOP W 0 LD X 030
0 1 FNC 000

Inputs data instruction FNC No..

MPS W 0 LD X 030
1 1 FNC 001

RST W 0 LD X 030
4 1 FNC 014

, W 1 AND= 014
Scrolls to the next line.
SP

W 1 AND= 014
W
Inputs device identifier of word area.

LD W 1 AND= 014
X WX

MPS Inputs device address W 1 AND= 014


1 of word area. WX 01

, W 1 AND= ,
Scrolls to the next line.
SP

c d

3-33
3-4 Writing a Data Instruction

c d

W 1 AND= ,
K/H
K

MPP W 1 AND= ,
Specify decimal constant.
3 K 3

NOP W 1 AND= ,
0 K 30

W K 30
GO Stores instruction.
4 NOP

X30 W K 30
= WX1 30 FNC
4 FNC

> WY0 WM1

NOP W K 30
0 4 FNC 000

Inputs data instruction FNC No..

MPS W K 30
1 4 FNC 001

MC W K 30
A 4 FNC 01A

, W 4 OR> 01A
Scrolls to the next line.
SP

e f

3-34
3-4 Writing a Data Instruction

e f

W 4 OR> 0 1A
W W
Inputs device identifier
of word area.

LDI W 4 OR> 01A


Y WY

NOP Inputs device address W 4 OR> 01A


0 of word area. WY 00

, W 4 OR> ,
Scrolls to the next line.
SP

W 4 OR> ,
W W
Inputs device identifier
of word area.

AND W 4 OR> ,
M WM

MPS Inputs device address W 4 OR> ,


1 of word area. WM001

W WM001
GO Stores instruction.
7 NOP

X30 Y1F
OUT W WM000
= WX1 30 Inputs instruction word.
C 7 OUT

> WY0 WM1

LDI W WM001
Inputs device identifier.
Y 7 OUT Y

g h

3-35
3-4 Writing a Data Instruction

g h

MPS W W M 0 01
1 7 OUT Y 001

Inputs device address.

W W M 0 01
F 7 OUT Y 01F

W 7 OUT Y 01F
GO Stores instruction.
8 NOP

END W 7 OUT Y 01F


Inputs instruction word.
8 END

W 8 END
GO Stores instruction.
9 NOP

X30 Y1F
= WX1 30

> WY0 WM1

END

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

<Ladder diagram> <Mnemonic notation>


X30 Step No. Ins. word Device
XFR WM0000H WL0001H 0 LD X30
1 XFR WM000H
4 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:

F 8 7 0
WM0

WL1

<Key operation> <Screen>

W 0 LD X 030
FNC Inputs data instruction FNC No.
1 FNC

NOP W 0 LD X 030
0 1 FNC 000

MRD W 0 LD X 030
2 1 FNC 002

SET W 0 LD X 030
8 1 FNC 028

, W 1 XFR 028
Scrolls to the next line.
SP

W 1 XFR 028
Input device identifier of word area.
W W L

a b

3-37
3-4 Writing a Data Instruction

a b

AND W 1 XFR 028


M WM L

NOP W 1 XFR 028


Inputs device address of word area.
0 WM000L

W 1 XFR 028
HELP Select between H and L.
WM000H

, W 1 XFR ’
Scrolls to the next line.
SP

W 1 XFR ’
Inputs device identifier of word area.
W W L

OR W 1 XFR ’
L WL L

MPS W 1 XFR ’
Inputs device address of word area.
1 WL0 0 1 L

W 1 XFR ’
HELP Select between H and L.
WL001 H

W WL 0 0 1 H
GO Stores instruction.
4 NOP

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


X30 Step No. Ins. word Device
E+ D10 -1.2345E-12 D20 0 LD X30
1 EADD D10 -1.2345E-12 D20
6 END
Example of inputting the
floating point instruction.

<Key operation> <Screen>

W 0 LD X 0 3 0
1 NOP

MPS MCR NOP , W 1 EADD 1 6 0


FNC
1 6 0 SP

ANB MPS NOP , W 1 EADD ,


D 1 0 SP

W 1 EADD ,
Select a floating point input data.
F E + 0 0

MPS W 1 EADD ,
1 1. E + 0 0

MRD MPP RST PLF W 1 EADD ,


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

W 1 EADD ,
– Switch the +/-.
-1. 2 3 4 5 E + 0 0

ORB Switch the input of the mantissa W 1 EADD ,


E part or the exponent part. -1. 2 3 4 5 E + 0 0

a b

3-39
3-4 Writing a Data Instruction

a b

MPS MRD W 1 EADD ,


1 2 -1. 2 3 4 5 E + 1 2

W 1 EADD ,
– Switch the +/-.
-1. 2 3 4 5 E - 1 2

, W 1 EADD , ,
SP

ANB MRD NOP W D0020


GO
D 2 0 6 NOP

* The number of input digits is the mantissa part six digits, and exponent part two digits.
ORB ORB
Input it again pushing , key.
E 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> <Mnemonic notation>


X0 M1 M0 Y4 Step No. Ins. word Device
0 0 LD X0

Y4 Y5 1 MPS
2 ANI M1
3 MPS
Y5 Y6 4 ANI M0
5 OUT Y4
Y6 6 MPP
MOV -1 WY2 7 AND Y4
8 MPS
9 OUT Y5
18 END 10 MPP
11 AND Y5
12 OUT Y6
13 MPP
14 AND Y6
15 MOV K-1 WY2
18 END

3-41
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
Y6 Y5
MOV -1 WY2

END

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

W 6 MPP
7 AND Y4

ANI 6 MPP
Inputs new instruction word. 7 ANI
S

LDI Inputs new device identifier.


6 MPP
Y 7 ANI Y

PLF 6 MPP
Inputs new device address. 7 ANI Y 005
5

Stores instruction. 7 ANI Y 005


GO 8 MPS
(change completed)

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

Y6 Change decimal constant to


hexadecimal constant.
Y6
MOV -1 WY2 “-1” HFFFF

END

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

15 MOV 020
K/H K-1

Specify hexadecimal constant.

15 MOV 020
K/H H

Sets hexadecimal 15 MOV 020


F number “FFFF”. H FFFF
(Press four times)

Stores values. 15 MOV


GO (change completed) ’ WY 02

3-43
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
INS
Press 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
Screen before insertion
STEP B INSTRUCTION B

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>
X10 M23 Step No. Ins. word Device
49 49 LD X10
50 OUT M23
51 END
51 END

Insert instruction.

Program 2)
<Ladder diagram> <Mnemonic notation>
X10 X12 M23 Step No. Ins. word Device
49 49 LD X10
50 AND X12
52 END 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> <Screen>


50
INS
STEP STEP No. GO
DEL
Either upper or
lower key Sets insert Reads the next instruction step to be inserted. I
operation gives mode. 50 OUT M0023
the same result.
50
INS
STEP STEP No. GO
DEL

Reads the next step to be inserted. Sets insert


mode.

AND LD MPS MRD I 50 AND X 012


GO 51 OUT M0023
M X 1 2

Note

Final step of the CPU program memory for each type:


SPB Step 3965
(NW0P20/30)
SPB Step 8061 Wait
(NW0P40/60)
NB0 Step 319
Insert
NB0 U Step 999
NB-E Step 999
(NB2-P24/36, NB2U24/36)
NB- Step 8061 Final
(NB other than the aboves) instruction
NB3 Step 3965
NJ (A8 type) Step 8061
NJ (E4 type) Step 3965
NJ (B16 type) Step 15869 Program memory
NJ (B32 type) Step 32637
NS (32 type) Step 32637
NS (64 type) Step 65405
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 key twice.
DEL

2) Press the or key or read step to display step to be deleted.

D STEP C INSTRUCTION C
3) Press the GO key to execute deletion.
STEP D INSTRUCTION D

“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> <Mnemonic notation>


X10 X12 M23 Step No. Ins. word Device
49
49 LD X10
50 AND X12
52 END 51 OUT M23
52 END

Delete this instruction.

Program 2)
<Ladder diagram> <Mnemonic notation>
X10 M23
49 Step No. Ins. word Device
49 LD X10
50 OUT M23
51 END 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> <Screen>

INS INS PLF NOP


STEP GO
DEL DEL 5 0
Either upper
or lower key Set delete Read the instruction step to be
operation mode. deleted.
gives the
same result.
PLF NOP INS INS D
STEP GO 50 AND X 012
5 0 DEL DEL

D
GO 50 OUT M0023

Press GO 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

INS
1) Press the key twice.
DEL

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

3) Input the final step of the program range to be deleted. STEP STEP NO. GO
SP

3-47
3-7 Deleting an Instruction

Example: Changing program 1) to program 2).

Program 1)

<Ladder diagram> <Mnemonic notation>


X0 YC Step No. Ins. word Device
0
0 LD X000
X1 X2 YD 1 OUT Y00C
2 2 LDI X001
Delete here. 3 ANI X002
4 OUT Y00D
5 END 5 END

Program 2)
<Ladder diagram> <Mnemonic notation>
X0 YC Step No. Ins. word Device
0 0 LD X000
1 OUT Y00C
2 END 2 END

<Key operation> <Screen>


2
INS INS D 1 OUT Y 00C
STEP Step No.
AREA 2
DEL DEL SP

Set delete mode. Deletion range first step.

4
Performing D 1 OUT Y 00C
STEP Step No. GO deletion. AREA 2 4

Deletion range end step. The above message is


displayed while the CPU
performs deletion.

Deletion D
processing
completes. 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>


X0 Y10 Step No. Ins. word Device
0
0 LD X000
X1 X3 Y11 1 OUT Y010
2 2 LD X001
Change here to NOP 3 AND X003
X2 Y12 4 OUT Y011
5
5 LD X002
6 OUT Y012

END 7 END

Program 2)
<Ladder diagram> <Mnemonic notation>

X0 Y10 Step No. Ins. word Device


0 0 LD X000
X2 Y12
1 OUT Y010
5
2 NOP
3 NOP
END
4 NOP
5 LD X002
6 OUT Y012
7 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,
RD
using or key. (Set “WRITE mode” using WR
W 1 OUT Y 010
key.) 2 LD X 001

NOP
K/H
0 W 1 OUT Y 010
2 NOPK

RST
GO
4 W
2 NOP

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 <Screen>

INS INS NOP D NOP DELETE


GO
DEL DEL 0

Set delete mode Execute NOP deletion. The above screen appears
during NOP deletion.

D
0 LD X 000
Example: When NOP deletion is executed, program 1) changes to
program 2). Step 0 appears when
NOP deletioncompletes.

Program 1)
<Ladder diagram> <Mnemonic notation>
X0 YC Step No. Ins. word Device
0
0 LD X000
2 NOP 1 OUT Y00C
3 NOP 2 NOP
Deleting this part. 3 NOP
4 NOP
4 NOP
5 END 5 END

Program 2)
<Ladder diagram> <Mnemonic>
X0 YC Step No. Ins. word Device
0 0 LD X000
1 OUT Y00C
2 END 2 END

3-50
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> <Screen>

RD RD NOP MC ALL CLEAR ?


GO OK [GO]
WR WR 0 A

Performs all clear.

W
0 NOP
GO

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. P
NO P
All clear of the program memory also results in writing NOP instructions in all steps. NO

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


RD INS
Press the mode key or at the initial screen after power has been turned on to make the Handy Loader read
WR DEL
step 0.

Basic operation

On the initial screen


RD
Press to read step 0 in read mode.
WR
RD RD
Press to read step 0 in write mode.
WR WR

INS
Press to read step 0 in insert mode.
DEL
INS INS
Press to read step 0 in delete mode.
DEL DEL

* Reading a program step is enabled in any mode: “Read”, “Write”, “Insert”, or “Delete”.

RD INS
Press the mode key WR
or 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.

M T 000 K 0 RD R
K 5000 WR 0 LD X 000

INS I
DEL 0 LD X 000

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 Specifies mode. R
WR (Step 0 appears.) 0 LDI X 000

R 0 LDI X 000
Reads step 1.
1 AND X 005

R 1 AND X 005
Reads step 2.
2 OUT Y 00C

Return to step 1. R 0 LDI X 000


1 AND X 005

3-53
3-8 Reading a Program

(2) Reading any step


Any step can be read from program memory.

Basic operation

STEP Step No. GO

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

<Key operation> <Screen>

SET NOP MCR MPS R


STEP GO
8 0 6 1 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 LD X 000
1 AND X 001

If the following key operation is made;

MPP PLS MCR MCR R


STEP GO
3 9 6 6 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 MEMORY
HELP 0-3965

Press HELP or CLR key to return to the previous screen.

3-54
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
Device identifier Device address GO
WR SP

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

<Ladder diagram>

X0 YC <Mnemonic notation>
0
Step No. Ins. word Device
X2
0 LD X0
1 OR X2
X0 M1 YE
2 OUT YC
3
3 LDI X0
M0
4 OR M0
5 AND M1
X0 YF
6 OUT YE
7 LD X0
X1
8 ORI X1
9 OUT YF
10 END
END

The device X0 is read out sequentially from step 0.

3-55
3-8 Reading a Program

<Key operation> <Screen>


In read mode

R
Starts read out of device.
SP DVC

LD R
Inputs device identifier.
X DVC X

NOP R
Inputs device address.
0 DVC X 000

Searches for device, reading from step 0. R


GO (First found at step 0) 0 LD X 000

Continues to search from the next step. R


GO (Found at step 3) 3 LDI X 000

Continues to search from the next step. R


GO (Found at step 7) 7 LD X 000

Continues to search from the next step. R


GO In this example, the subsequent steps do not CAN ’ T FIND PRGM
contain the device being searched for.
Therefore, when the final step of the program
memory is reached, the message
“CAN’T FIND PROGM” appears.

Press CLR to return to the previous screen.

3-56
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
[Instruction] key Device GO
WR

(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. Ins. word Device
X0 YC
0 0 LDI X0
X2 1 ORI X2
2 OUT YC

X3 YE 3 LD X3
4 ORI M0
3
M0 5 ORI X2
6 OUT YE

X2 7 LDI X1
8 ORI X2

X1 YF 9 OUT YF
7 10 END

X2

The instruction ORI X2 is read out.


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

3-57
3-8 Reading a Program

<Key operation> <Screen>


In read mode

ORI R
Inputs instruction word.
T INS . ORI

LD R
Inputs device identifier.
X INS . ORI X

MRD R
Inputs device address.
2 INS . ORI X 002

Searches for instruction, reading form step 0. R


GO (First, found at step 1) 1 ORI X 002

Searches from the step after the step read R


GO at the previous screen. 5 ORI X 002

Searches from the step after the step read R


GO at the previous screen. 8 ORI X 002

Searches from the step after the step read R


GO at the previous screen.
CAN ’ T FIND PRGM
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
“CAN’T FIND PRGM” appears.

Press CLR to return to the previous screen.

3-58
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. Ins. word Device
MOV 0 WM10 0 LD X0
X1 1 MOV K0 WM10

MOV -1 WM11 4 LD X1
5 MOV K-1 WM11

<Key operation> <Screen>


In read mode

R
FNC
INS . FN C

Input data instruction FNC No..

MRD NOP R
2 0 INS . FNC 020

R
GO Searches for instruction word from step 0.
1 MOV 020

Pressing the or keys to go to R 1 MOV 020


the next or previous step.

R
GO Continues to search from the next step.
5 MOV 020

If the subsequent steps do not contain instruction R


GO
being searched for, the message appears. CAN ’ T FIND PRGM

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

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

R
P/I Inputs jump instruction pointer P.
POINTER P

MPS R
Inputs pointer No..
1 POINTER P 0 1

R
GO Executes search to read out that step.
10 P 0 1

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

R
P/I
POINTER P

Input interrupt program pointer identifier.

R
P/I
POINTER I

Input pointer number and


MPS NOP NOP fixed-cycle interrupt cycle. R
1 0 0 Input “00” for interrupt other POINTER I 0 1 0 0
than fixed-cycle.

R
GO Executes the search.
20 I 0 1 0 0

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 Loader’s monitor function allows it to display the ON/OFF status of a program’s 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.
<Ladder diagram> <Mnemonic notation>

X0 Y3 Step No. Ins. word Device


( )
0 LD X0
X1
1 OR X1
2 OUT Y3
END
3 END

With the above program, Y3 conductivity check is performed.

Basic operation
<Screen>
MNT
STEP STEP No. GO Step No. 2 is read.
TEST
Either upper or
M
lower key Sets monitor Read step No. of a program for which 2 OUT Y003
operation gives mode. a conductivity check is to be performed.
the same Blank : OFF
Monitor : ON
result.
mode
MNT
STEP STEP No. GO
TEST

Read step No. of a program for which Sets monitor


a conductivity check is to be performed. mode.

To specify a step from any position, press STEP STEP No. GO

Press or to scroll the screen to adjacent steps.

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


M 0 LD X 000
press key.
1 OR X 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 ,
Device identifier Device address GO
TEST SP

Device X000 is read out.

MNT , LD NOP Monitor M X 000


GO mode
TEST SP X 0
Blank : OFF
: ON

Press or to scroll the screen to adjacent steps.

<Key operation>

M X 000 X 001

M X 000 X 001
X 0 02

M X 000 X 001
X 002 X 003

* 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 X 002 X 003
X 004

M X 002 X 003
X 004 X 005

4-2
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 6 5 4 3 2 1 0

D10

Monitoring here.
D 10 5
MNT , ,
Device identifier Word address Bit address GO
TEST SP SP

M D00105

Press or 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 E D C B A 9 8 7 6 5 4 3 2 1 0
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
-2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2

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
4-1 Monitoring

(3) Monitoring a word device

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


before the device identifier.

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


<Key operation> <Screen>

MNT , AND MPS NOP M W M 0 1 0 K0


GO
TEST SP W M 1 0

Word area is monitored in decimal.

Input a register area without entering before the device identifier.


W

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

<Key operation> <Screen>

MNT , ANB MPS NOP M D 0 0 1 0 K5


GO
TEST SP D 1 0

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 D0010 H0005

Pressing HELP switches between decimal and hexadecimal display modes.

4-4
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 high-
speed 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 Device
M300
X D0 D1 D10 LD M300
MUL D0 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.

D0 D1 D11 D10
1234 X 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 E D C B A 9 8 7 6 5 4 3 2 1 0
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
-2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
One numeric data is
D10 expressed by two
F E D C B A 9 8 7 6 5 4 3 2 1 0 word devices.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2

4-5
4-1 Monitoring

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

MNT ,
Sets device monitoring mode. M
TEST SP

M
HELP Specifies 32-bit data monitoring.

ANB AND STR Inputs device M D0010


D 1 0 (for lower 16 bits.)

Upper 16-bit device. M D0011 D0010 Lower 16-bit device.


GO K 69104

Press HELP 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 D10 is monitored:
Press to monitor 32-bit data in D 0 F D 0 E , or press to monitor 32-bit data in D 1 3 D1 2 .

M D 0 0 0 F D000E M D000F D000E


K 233832448 HELP H0DF00000

M D0011 D0010 M D0011 D0010


K 69104 HELP H 0 0 010DF0

M D0013 D0012 M D0013 D0012


K 1 HELP H 0 0 0 0 0 0 0 1

4-6
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> <Screen>

MNT , ANB
HELP
TEST SP D M D 0 0 1 1 D0010
K 983815946
MPS NOP
GO
1 0
Call D10 and D11.

HELP Display the hexadecimal number. M D 0 0 1 1 D0010


H 3 A A 3 D7 0 A

It becomes a display of the floating M D 0 0 1 1 D0010


F point data.
1.2 5 0 0 0 E - 0 3

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 Timer device address GO
TEST SP

M T 000 K 1 55 M T 000 K 2 0 00
K 20 0 0 K 2 000
Timer times up.
Timer setting value Timer setting value
Timer current value Timer current value
Timer-up contact

Counter instruction

MNT ,
Counter device identifier Counter device address GO
TEST SP

M C 000 K 2 M C 000 K 1 00
K 100 K 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 K0
NO 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.

T T 001 K0
K 500 WM000

4-8
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 ,
Device GO
TEST SP

Sets monitor Read out the device to be


mode. forcibly turned on and off.

Key operation of device monitoring

MNT
SET Forced ON
TEST
8
Sets test mode.
RST
Forced OFF
4

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> <Screen>

MNT , AND NOP M M0 0 0 0


GO
TEST SP M 0

MNT SET T ‘ M0 0 0 0
TEST 8

* When this key operation is applied to a bit device X instead of M0, it securely
T X 00 1
turns X 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
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.


The forced ON/OFF function mentioned previously is timed at 1)
Seizing input signals
PC internal processing.
Bit device: X1 in the example on the previous page is assigned to the
input relay area. The device forcibly turned on by timing 1) seizes the
1) PC internal processing
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),
2) Executing instructions even if is forcibly turned on or off.
1 scan in program memory

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)
X1 M0000
( )

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

X2 C0
[ CTR 1 ]
X3
[ CRst ]

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 GO
TEST SP

Monitoring the word device


to be set or changed.

MNT ,
K/H Decimal number
TEST SP

Sets data setting mode.

K/H K/H Hexadecimal number

Note: Press HELP 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.

<Key operation> <Screen>

MNT , ANB NOP M D0000 K0


GO
TEST SP D 0

Monitor data register: D0

MNT a, T D0000 K0
TEST SP

Set numeric data setting mode


(in decimal mode.)

K/H K/H GO
F F F F

Change to hexadecimal data Input hexadecimal numbers.


mode.

T D0000 H FFFF

T D0000 K-1

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.

<Ladder diagram> <Mnemonic notation>


Ins. word Device
M300
/ D0 D2 D10 LD M300
DIV D0 D2 D10

D1 D0 D2 D11 D10
/ 1234 Quotient

D13 D12
32-bit data can be set. Remainder

Numeric data is expressed by 2 s complement.


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

D1
F E D C B A 9 8 7 6 5 4 3 2 1 0
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
-2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
One numeric data
D0 is expressed by
F E D C B A 9 8 7 6 5 4 3 2 1 0 two word devices.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2

4-13
4-1 Monitoring

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

MNT
TEST M
Set device monitoring mode.

SP

M
HELP Specifies 32-bit monitoring.

ANB NOP M D0 000


Input device (lower 16-bit).
D 0

GO
M D0001 D0 000
Sets test mode.
K0

MNT
TEST T D0001 D0 0 00
Upper 16-bit device Lower 16-bit device
K0

, MPS MRD MPP RST NOP NOP NOP NOP


K/H GO
SP 1 2 3 4 0 0 0 0

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 to display adjacent devices.

4-14
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 Devise GO
TEST SP F

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

Basic operation
MNT ,
Decimal number -
TEST SP

Set current data setting mode. Input the mantissa part. (Change the sign.)

ORB
Hexadecimal number - GO
E

Change the input part Input the exponent part. (Change the sign.)
from the mantissa part to
the exponent part.

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

MNT , ANB MPS


HELP
TEST SP D 1

NOP M D00 11 D0 010


GO
0 F 0. 0 0 000E+00

Monitor D10, D11.

MNT , T D 0 01 1 D0 010
TEST SP 0. 0 0 0 0 0 E + 0 0

Change the display to the test mode.

MRD MPP RST ORB


2 3 4 E

PLF T D0011 D 0 0 10
- GO
5 2. 3 4 0 0 0E -05

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

4-15
4-1 Monitoring

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

Basic operation

MNT ,
Timer or counter number GO
TEST SP

Monitor the timer or counter to change its current value.

MNT ,
K/H Decimal number GO
TEST SP

Set current data setting mode.

K/H K/H Hexadecimal number GO

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 NOP M T 000 K 0


GO
TEST SP T 0 K 5 00

Setting value of timer T0


Monitor T0.

MNT , M T 000 K 0
TEST SP K 500

Set the current data


setting mode.

PLS PLS M T 000 K 99


K/H GO
9 9 K 500

Input decimal 99 .

4-16
4-1 Monitoring

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

Basic operation

MNT ,
Timer or counter number GO
TEST SP

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

MNT , ,
K/H Decimal number GO
TEST SP SP

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 NOP M T 000 K 0


GO
TEST SP T 0 K 500

Setting value of timer T0


Monitor T0.

MNT , , T T 000 K 0
TEST SP SP K 500

Set data setting mode (setting value


area specification mode).

PLS PLS PLS T T 000 K 0


K/H GO
9 9 9 K 999

Input a new value, decimal “999”.

4-17
4-1 Monitoring

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

Basic operation

MNT ,
Timer or counter address GO
TEST SP

Monitor timer or counter to change its setting value area.

MNT , ,
Word device to store setting value GO
TEST SP SP

Set data setting mode Input word device to perform indirect specification.
(setting value area
specification mode).

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 NOP M T 000 K 0


GO
TEST SP T 0 K 500

Setting value of timer T0


Monitor T0.

MNT , , T T 000 K 0
TEST SP SP K 500

Set data setting mode (setting value


area specification mode).

Current value of T0

AND NOP T T 000 K 0


GO
W M 0 K 0 WM 0 0 0

T0 setting value

4-18
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>

Initial screen after power on. HANDY LOADER


PC is running. NW0H —NE V .

AUXILIARY
Sets auxiliary mode. AUX 1 RUN / S T O P SW

Selects the PC start/stop function. PC STOP


(Makes the PC stop operation available.) GO OK [GO]

PC STOP
Stops the PC. GO COMPLETION

* AUXILIARY
Returns to the previous screen. CLR 1 R U N /S TOP S W

Selects the PC start/stop function. PC START


(Starts up the PC.)
GO
OK [GO]

PC START
Starts the PC. GO
EXECUTING

After this, the function is executed alternately. PC START


COMPLETION

RD INS MNT
* Press AUX or instead of CLR key to set each mode.
WR DEL TEST

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 AUXILIARY


to “2 PROGRAM CHECK”. AUX 2 PROGRAM CHECK

PROGRAM CHECK
Executes program check.
GO EXECUTING

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

PROGRAM CHECK PROGRAM CHECK


1 ERR COD 20 NO ERROR

Error code (instruction RAS)


Initial step No. containing program error

If there are multiple errors, press and to display them. Press to display any program error at a subsequent
step, or press 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)
MC and MCR errors
24 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 Contents NB0 NB NJ NS
RAS code

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
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 USER’S MANUAL of PC’s (SPB-, NS-, NJ-, and NB-series).

<Key operation> <Screen>

AUXILIARY
AUX
3 PARAMETER

Set auxiliary mode and move


to “3 PARAMETER”.

PARAMETER
GO

Selects parameter setting.

MRD PARAMETER 02
GO
2 H0000

Calls the parameter address to be set.

RET INV PARAMETER 02


GO
7 B 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 I/O module address assignment (NJ- and NS-series)
Battery backup error monitoring Number of occupied points of I/O module (NJ- and NS-series)
Data latch clearance RS-232C port setting (NS-series)
Communication adapter setting (SPB-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 user’s
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 0: No file register N x 256 words,
(1 word) N: 00 to 1FH (0 to 32)

01H User watchdog timer 0: 250ms N x 10ms,


(1 word) N: 0 to 19H (0 to 25)
(0: 250ms)

02H Fixed-cycle scan time 0: Normal scan N x 1ms,


(1 word) N: 0 to FFH (0 to 255)
(0: Normal scan)
PC operation mode

03H Backup battery 0: Monitor “Monitor battery error” or “Do not monitor battery error”
error monitoring battery error
(2 bit)

Data latch clear 0: Do not clear “Clear” or “Do not clear”


(3 bit)

System stop at 0: No stop “No stop” or “Stop”


nonfatal error(4 bit)
I/O status latch 0: Turn OFF “Turn OFF outputs and refresh inputs” or “Stop data memory and output
(5 bit) outputs and latches”
refresh inputs
Built-in flash memory 0: Indicate “Indicate” or “Do not indicate”
mismatch indication(7 bit)
04H Remote RUN/STOP 0: No remote “No remote RUN/STOP” or “Remote RUN/STOP”
(1 word) RUN/STOP

05H Not used

06H Relay/register latch 0: Not specified “Not specified” or “Specified”


07H range (3 words)
08H

09H Not used


0AH
0BH

0CH High-speed 0: Not specified Whether or not to use high-speed counter and the mode of high-speed counter
0D counter can be specified.

0EH Not used

0FH Input filtering OFF to ON: 3ms Input filtering time can be specified in word units.
to time ON to OFF: 3ms
1EH

1FH Not used


to
4FH
50H Communication adapter Loader Operation mode, character structure, station No. and structure registration
to communication are specified.
53H mode

* Please refer to the user’s 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 0: No file register N x 256 words, N x 256 words, N x 256 words,
A8 N: 00 to 1FH (0 to 31)
(1 word) N: 0 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)
01H User watchdog timer 0: 250ms N x 10ms, Nx 10ms,
(1 word) N: 0 to 19H (0 to 25) N: 0 to FFH (0 to 255)
(0: 250ms) (0: 2560ms)
02H Fixed-cycle scanning time 0: Normal scan N x 1ms
(1 word) N: 0 to FFH(0 to 255)
(0: Normal scan)
PC operation mode

03H Number of occupied 0: 64 points 64 points (32I+32O) or 16 points (16O)


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

EEPROM operation 0: Enables Enables EEPROM writing or Disables EEPROM writing * (To set an operation
mode EEPROM writing mode when an EEPROM memory cassette is used as the program memory.)

Backup battery error 0: Monitors Monitors battery error or


monitoring battery error 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 0: No stop No stop or Stop
nonfatal fault * (Whether or not the PC is stopped when a nonfatal fault occurs can be specified.)

I/O status latch 0: Turn OFF Turn off outputs and refresh inputs , or Stop data memory hold and Stop
0: Does not clear outputs and output hold
refresh inputs
04H Remote RUN 0: No remote RUN No remote RUN or Remote RUN , X0 to X1FF
(1 word) * (An arbitrary external input can be specified as the input signal to start the PC
(RUN contact).)

05H Remote STOP 0: No remote No remote STOP or Remote STOP , X0 to X1FF


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

06H Relay/register latch range 0: Not specified Not specified or Specified (Areas M, L, and D)
to (4 words) * (Memory backup can be set for a device that does not have backup, or memory
backup for a device can be cancelled.)
09H

0AH
Not used.
0BH

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

5-7
5-3 Parameter Setting

Setting range
Address Item Default
NB NJ NS
0CH Use of high- 0: Not specified Counters 0 to 7 are used or
speed counter not used.
Not used.
built in the NB-
series

0DH Operation mode 0: 0/1:


to of high-speed High-speed High-speed/low-speed
0EH counter built in response response Not used.
the NB-series Supporting Two-phase operation/one-
two-phase phase
No auto reset No auto reset/auto reset
0FH Digital input NB-series Time setting is made in points Time setting is made in 1 module unit (in the unit of 200)
to signal filtering OFF ON: 3ms for an input module installed for each of the input modules.
27H time ON OFF: 10ms in the basic unit.
NJ- and NS-series
OFF ON: 10ms
ON OFF: 10ms

28H Digital input Time setting is made in words


to signal filtering for an input module installed
2EH time in the expansion unit.

2FH I/O module 0: Automatic The method of I/O module address assignment can be
address assignment and selected;
assignment unused slot. Automatic assignment or arbitrary assignment.
mode Not used. The number of points occupied by unused slots can also
NJ-series : 16 points be specified;
NS-series: 32 points NJ-series : 16 points or 0 point
NS-series: 32 points or 0 point

30H Number of 0: No arbitrary I/O module, optional module, the number of I/O module
to occupied I/O assignment points, and the number of optional module points can be
40H module points for Not used. specified for each slot.
arbitrary
assignment

50H RS-232C port Baud rate: 2400 Baud rate setting


setting (only B Stop bit: 1 Stop bit setting
Not used. Not used.
type CPU is Character length: 7 Character length setting
effective) Parity bit: None Parity bit setting

* 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
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
4 PASSWORD

Set auxiliary mode to move to “4 PASSWORD”.

GO PASSWORD
1 SET
Selects password.

GO PASSWORD SET

Selects 1 SET (registration).

NOP NOP NOP NOP PASSWORD SET


GO Executes.
0 0 0 0 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 GO key, the COMPLETION


message will not appear.

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

HANDY LOADER
GO Executes.
NW0H-NE V .

The subsequent operation is identical to that for normal operation.

5-4-3 Canceling a password

AUXILIARY
AUX
4 PASSWORD
Set auxiliary mode to move to 4 PASSWORD .

PASSWORD
GO
2 CANCEL
Move to an item of deleting a password.

PASSWORD CANCEL
GO
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.)

, , KEY IN PASSWORD
SP SP

Press eight times.

PC ALL CLEAR ?
GO
OK [GO]

5-10
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.

AUX AUXILIARY
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 MESSAGE
If there is no message to be displayed, the above screen appears.
A message, if any, appears in the lower row. USER 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 8 7 0
D 8 0 3 8 (2) (1)
D 8 0 3 9 (4) (3)
D 8 0 3 A (6) (5)
The PC automatically D 8 0 3 B (8) (7)
writes any system
message in this area. 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 Message display SPB-series System Special Other Check
method RAS relay special timing
code relay(s)
Normal running No error found during M8000
Normal stop self-diagnosis

Processor power Power voltage dropped 11 · At power off


shutdown
User program check sum error PROGRAM MEM ERR 21 · At power on
User RAM error Parameter check sum error PRMTR MEM ERROR 26 M8001 M8030 · At start-up
File check sum error FILE RGTR ERR 27 · During running
Compile check sum error COMPILE MEM ERR 23
Power failure Keep relay data not held LATCH DATA ERROR 29 M8001 M8021 · At power on
hold error
Memory card Sum check error MEMCARD DATA ERR 2A M8001 M8038 · At power on
error PC type code unmatched MEMCARD MISMATCH 2F M8001 M8038 · At power on
Memory card write check MEMCARD WRT ERR 2D M8001 M8038 ·During memory card writing
Battery error Voltage drop M8028 · At power on
Battery loose M8029 · Constantly
Operation and User WDT up WDT UP 35 M8001 M8020 · During running
monitoring

User nonfatal User nonfatal fault relay on USER S MINOR FLT 37 M8001 M8026 · During running
fault M8010~M802F

User fatal fault User fatal fault relay on USER S MAJOR FLT 36 M8001 M8027 · During running
M8130~M814F

I/O collation error Configuration data inconsistent EXPNDER DISCONN 45 M8001 M8033 · Constantly
User program Program check for circuit error, PROGRAM ERROR According to M8001 M8032 · With the loader at
error syntax error,etc. instruction *1 start-up (program
RAS code check)
CPU error System WDT up · Constantly

System RAM Read and write enable check · At power on


error

Built-in flash Sum check of built-in flash memory FLASH MEM ERR 51 M8001 M8039 · At power on
memory error Write check of built-in flash memory FLASH MEM W ERR 52 M8001 M8039 ·During built-in flash writing

Disconnected or Disconnected or added COM ADPT DISCONN 4E M8001 M8037 · Constantly


added communication communication adapter during
adapter operation

Simplified CPU link Disconnected station detected or CPU LINK CFG ERR 4F M8001 M802C · Constantly
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
5-5 Message Display

2) FLEX-N series

Check content and Message display System Special Other Check


Item RAS relay special timing
method NB NJ/NS code relay(s)
Normal running No error found during M8000
Normal stop self-diagnosis

Processor power Power voltage dropped 11 · Constantly


shutdown

Expansion power Expansion unit power not EXPNDER PWR DOWN 15 M8001 · Constantly
shutdown normally supplied

24V DC error 24V DC power output short- AUX PWR SPLY FLT 16 M8001 M8025 · Constantly
circuited or overcurrent

User RAM error User program check sum error PROGRAM MEM ERROR 21 M8001 · At power on
Parameter check sum error PRMTR MEM ERROR 26 M8001 · At start-up
File check sum error FILE RGTR ERROR 27 M8001 · During running
User macro check sum error USER MACRO ERROR 28 M8001

Power failure hold Keep relay data not held LATCH DATA ERROR 29 M8001 M8021 · At power on
error

Memory cassette Sum check error CST DATA ERROR 2A M8001 · At power on
error PC type code unmatched MEM CST MISMATCH 2F M8001

Battery error Voltage drop (Note: 2) BATTERY ERROR 22 M8001 M8028 · Constantly
Battery loose BAT NOT CONNTED 25 M8029

Operation and User WDT up WDT UP WDT UP 35 M8001 M8020 · During running
monitoring

User nonfatal fault User nonfatal fault relay on USER S MINOR FLT USER S MINOR FLT 37 M8001 M8010 to · During running
M802F

User fatal fault User fatal fault relay on USER S MAJOR FLT USER S MAJOR FLT 36 M8001 M8030 to · During running
M804F

Blown output fuse Blown output fuse detecting FUSE FAULT 44 M8001 M8080 to · Constantly
M8022 M80BF

I/O verify error Configuration data inconsistent EXPNDER DISCONN 45 M8001/M8032 M8040 to · Constantly
M807F
Expansion unit Expansion unit disconnect EXPNDER DISCONN 45 M8001 M8023 · Constantly
disconnect during running

I/O area Number of I/O points of I/O I/O POINT OVER 46 M8001 · At power on
exceeded module exceed the maximum

Expansion unit Expansion unit I/O area exceeded I/O POINT OVER 46 M8001 · At power on
code setting
error Expansion unit I/O area overlap I/O AREA OVERLAP 4A · At power on

Number of NB expansion units exceed 3 EXPANDERS OVER 4B M8001 · At power on


expansion units and special units exceed 4
exceeded

Module error I/O slot mounting module error I/O MODULE FAULT 47 M8001/M8024 · Constantly
other than error code 44 or 45 OPTION MDL ERROR 48 M8001 M80C0 to M80FF
Mounting position hand shake OPTION WDT UP 49 M8001
error

User program error Program check for circuit error, PROGRAM ERROR ERROR IN STEP According to M8001 · With the loader
syntax error, etc. instruction (Note: 3) at start-up
RAS code (program check)

CPU error System WDT up · Constantly

System RAM error Read and write enable check · At power on

Loader Error occurred during loader · At loader


communication communication communication
error

COM Error in communication port · At COM


communication communication
error

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 0
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 5 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 0010 0011 0100 0101 0110 0111 1010 1011 1100 1101 1110 1111
0 2 3 4 5 6 7 A B C D E F

**** 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
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 00
H 0 000
Set the file register by setting parameter (file register).

MPS
GO GO GO
1 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.

R0 H3058
R1 H7E20
R2 H6F20
R3 H206E
X0 on
R4 H2020
R5 H2020
R6 H2020
R7 H2020
R8 H3058
R9 H7E20
RA H6F20
RB H6666
X0 off
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 ON X0 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 M8130 to M814F


(running stopped)

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 Remarks
Total number Latest RAS · Total number of errors: 00 to FF
0 of errors position · Latest RAS position: Indicates address (No.) where the latest RAS
1 Minute Second is stored. (If no RAS is stored, 0 is indicated.)
· The time of error occurrence is also stored. An error is stored using
2 Day Hour four words.
SPB 3 Year Month The model without the calendar function stores 0 .
· The PC itself writes up to 60 errors for each error occurrence in the
4 Error code (system RAS code) system RAS area.
5 If memory overflows, memory is overwritten from address 1,
enabling the latest 60 errors to be stored.
F0

0 Total number Latest RAS · Total number of errors: Countable from 00 to FFH (0 to 255).
of errors position Returns to 00 after FF
1 Error code (system RAS code) Latest RAS position: Indicates address (No.) where the latest RAS
2 is stored. (If no RAS is stored, 0 is indicated.)
· The PC itself stores up to 7 errors into the address No. 1 and
NB0 3 followed Nos for each error occurrence.
4 If the address No. F is occupied by the error code, the processing
5 returns to address No. 1 and the latest 7 errors are stored.
6
7
Total number Latest RAS · Total number of errors: 00 to FF
0
of errors position · Latest RAS position: Indicates address (No.) where the latest RAS
Error code (system RAS code) is stored. (If no RAS is stored, 0 is indicated.)
1
Hexadecimal

2 · An error code is system RAS code. (See Section 5-11.)


3 · The PC itself writes up to 60 errors for each error occurrence.
NB If memory overflows, memory is overwritten from 1, enabling the
4
latest 15 errors to be stored.
D
E
F
0 Total number Latest RAS · Total number of errors: 00 to FF
of errors position · Latest RAS position: Indicates address (No.) where the latest RAS
1 Minute Second is stored. (If no RAS is stored, 0 is indicated.)
· The time of error occurrence is also stored. An error is stored using
2 Day Hour four words.
NJ/NS
3 Year Month · The PC itself writes up to 60 errors for each error occurrence.
If memory overflows, memory is overwritten from 1, enabling the
4 Error code (system RAS code) latest 60 errors to be stored.
5
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> <Screen>

AUXILIARY
AUX GO
6 RAS

(Press five times)

Set auxiliary mode to move to 6 RAS . RA S


1 SYSTEM RA S

SYSTEM RAS
GO

Input address (0 to F0) of the NOP SYSTEM RA S 00


system RAS to be monitored. 0

Call the system RAS address 0 . S Y S TE M R AS 00


GO
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 In the NJ/NS-series, the date and time SYSTEM RA S 01
address 1 . of error occurrence are stored. 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
6 R AS

Press five times


Set auxiliary mode to move to 6 RAS . RAS
1 SYSTEM RAS

RAS
Moves to 2 INSTR RAS . GO
2 I N S T R RAS

I N S T R RAS
Monitors the instruction RAS area. GO
1 E R R COD 20

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 .

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

Program check Instruction RAS memory

Program memory First error occurrence step and


instruction RAS code

Second error occurrence step and


Error 1)
instruction RAS code

Third error occurrence step and


Error 2)
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 Contents Remarks


to store

0 Number of error 0 to 6 Indicates the number of errors.


1 Word 1 and 2 Error code/Error occurrence step • Errors are stored by CPU.
Storing order

• Checking stops when 6 groups of errors occur.


2 Word 3 and 4 Error code/Error occurrence step
The contents are updated each time the program check is
3 Word 5 and 6 Error code/Error occurrence step performed with the Handy Loader.
Note:
4 Word 7 and 8 Error code/Error occurrence step • The PC cannot run until no error is found.

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 First word

Error occurrence step Second word

5-21
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
6 RAS

Five times

Set auxiliary mode to move to 6 RAS .

RA S
GO
3 SYSTEM RAS CLR

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

SYSTEM RAS CLR


GO 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
6 RAS

Five times

Set auxiliary mode to move to 6 RAS .


Moves to optional RAS.

RAS
GO
4 OPTION R AS

OPTION RAS
GO Inputs optional RAS area address.

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 NOP NOP Monitor RAS in address 00 of OPTION RA S 100


GO the first slot optional module.
1 0 0 1234
Four digits in hexadecimal
Display adjacent RAS by
(Address+1) OPTION R AS 101
pressing and keys.
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 Processor
from: memory card program memory
Transferred to:
Flash
memory card
Processor
program memory
Internal X
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 PCRAM FLASH

MEM CST XFR Copies the PC program memory contents to the


1 PCRAM FLASH flash memory card.

MEM CST XFR Copies the flash memory card contents to the PC
2 PCRAM FLASH program memory.

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

<1. PCRAM FLASH>


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

MEM CST XFR


1 PCRAM FLASH

GO Selects 1 PCRAM 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 PCRAM FLASH

GO Selects 2 PCRAM 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 PCRAM : FLASH

GO 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 EEPROM memory EPROM memory Processor program


from:
Transferred to: cassette cassette memory

EEPROM
memory cassette
EPROM
x
memory cassette

Processor program
memory

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

Memory EPROM EEPROM


cassette
N-MP1 N-MP4 N-MP8 N-MP16 N-MP32 N-MP64 N-ME1 N-ME4 N-ME8 N-ME32
CPU type NN-MBP1 NN-MBP4 NN-MBP8 NN-MBE1 NN-MBE4 NN-MBE8

NB-E x x x
NB-series x x x
NJ-CPU-A8 x
NJ-CPU-E4 Memory cassette cannot be mounted.

NJ-CPU-B16

NJ-CPU-B32

NS-A (B)32 x
NS-A (B)64 x
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 F E D C B A 9 8 7 6 5 4 3 2 1 0

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.
In this case, the EEPROM operation is identical to that when EPROM is mounted.
OFF

OFF
WRITE PROTECT

WRITE PROTECT
-

-
ON

ON
4KW

4KW
EEPROM

EEPROM

Protect switch ON (wire disabled) 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 Mount the memory cassette on the PC.


Step 2 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 1 2 3
C D E F

Cover

Cover

Memory cassette
holder

Memory cassette
0 1 2 3 holder
C D EF

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 Stop the PC using the Handy Loader. (See Section 5-1)
(If the PC is running, transfer/verification is not executed.)
Step 4 Perform the following key operation with the Handy Loader.

AUXILIARY
AUX
7 MEM CST XFR

6 times

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

MEM CST XFR


GO
1 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


MEM CST XFR memory.
1 PCRAM EPROM

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

PCRAM EPROM
GO
OK [GO]

Select 1 PCRAM EPROM .

PCRAM EPROM
GO
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


1 PCRAM EEPROM the EEPROM.

MEM CST XFR Copies the EEPROM contents to the PC program


2 PCRAM EEPROM memory.

MEM CST XFR Collates the PC program memory contents with


3 PCRAM : EEPROM the EEPROM contents.

<1. PCRAM EEPROM>


Copies the PC program memory contents to the EEPROM.

MEM CST XFR


1 PCRAM EEPROM

PCRAM EEPROM
GO
OK [GO]

Selects “1 PCRAM EEPROM”

PCRAM EEPROM
GO
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 EEPROM

PCRAM EEPROM
GO
OK [GO]

Selects 2 PCRAM EEPROM

PCRAM EEPROM
GO
EXECUTING

PCRAM EEPROM
COMPLETION

<3. PCRAM : EEPROM>

MEM CST XFR


3 PCRAM : EEPROM

PCRAM : EEPROM
GO
OK [GO]

Selects 3 PCRAM : EEPROM .

PCRAM : EEPROM
GO
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 MEM CST XFR
on the right appears: 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:
F E D C B A 9 8 7 6 5 4 3 2 1 0 ¥ 0: When power is turned on, the contents of EEPROM
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 Bit 1 of PCRAM EEPROM EEPROM overwrite Transfer with the loader
WRITE PROTECT parameter copy at power on at program write auxiliary function
switch 03H mode
Remarks
RAM EEPROM
EEPROM RAM

EEPROM is also This setting is made when EEPROM is


0 Copy overwritten when Enabled Enabled used as a nonvolatile RAM.
RAM is overwritten
OFF
Only RAM overwritten; This switch is useful for changing
1 No copy EEPROM overwrite Enabled Enabled a program at commissioning.
disabled (After a program is completed, it is
transferred from PC RAM to EEPROM.)
RAM and EEPROM This switch is set for using an
0 overwrite are EEPROM as ROM.
ON Copy Disabled Enabled
1 disabled

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


PC containing a program Turn off the WRITE PROTECT switch.
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.

Memory contents
NB

EEPROM cassette containing no program


PC in which the program Turn off the WRITE PROTECT switch.
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
1 RUN/STOP SW

(Press seven AUXILIARY


times.) 8 DEVICE CONV

DEVICE CONV
GO

Selects device conversion.

LD DEVICE CONV Available device identifiers:


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

Inputs the device identifier of a Specify by bits.


device whose address should be
changed.
MPS MRD DEVICE CONV Device conversion can be executed only with the
GO X0 1 2 X
same device identifier.
1 2
Input its address.

MPP RST DEVICE CONV


Input its address.
3 4 X0 1 2 X 034

DEVICE CONV
GO Press CLR to return to the initial screen.
X0 1 2 X 034

DEVICE CONV
COMPLETION

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

X12 M20 X34 M20

X20 X20

M20 X12 M25 M20 X34 M25

X12 X34

5-38
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.) 9 MEMORY CLEAR

Set auxiliary mode to move to 9 MEMORY CLEAR .

MEMORY CLEAR
GO 1 PARAMETER CLR

Selects MEMORY CLEAR .

MEMORY CLEAR
Clears parameter.
1 PARAMETER CLR

MEMORY C L E A R
Clears program.
2 PROGRAM CLR

MEMORY CLEAR
Clears data.
3 DATA CLR

MEMORY CLEAR Clears parameter, program


4 ALL CLR and data memory area.

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.

AUXILIARY
AUX (Press eight times.)
9 MEMORY CLEAR

MEMORY CLEAR
Selects 1 PARAMETER CLR . GO
1 PARAMETER CLR

PARAMETER CLR
GO
OK [GO]

PARAMETER CLR
GO
EXECUTING

PARAMETER CLR
COMPLETION

<2. PROGRAM CLEAR>


Clears program memory

AUXILIARY
AUX (Press eight times.)
9 MEMORY CLEAR

Selects 2 PROGRAM MEMORY CLEAR


CLR .
GO
2 PROGRAM CLR

PROGRAM CLR
GO
OK [GO]

PROGRAM CLR
GO
EXECUTING

PROGRAM CLR
COMPLETION

5-40
5-9 Memory Clear

<3. DATA CLEAR>


Clears data memory.

AUXILIARY
AUX (Press eight times.)
9 MEMORY CLEAR
Move to 3 Data Clear.

MEMORY CLEAR
GO
3 DATA CLR

Selects 3 DATA CLR .

DATA CLR
GO
OK [GO]

DATA CLR
GO
EXECUTING

DATA CLR
COMPLETION

<4. ALL CLEAR>


Clears parameters, program, and data area.

AUXILIARY
AUX (Press eight times.)
9 MEMORY CLEAR

MEMORY CLEAR
GO
4 ALL CLR

ALL CLR
GO
OK [GO]
Selects 4 ALL CLR .

ALL CLR
GO
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 AUXILIARY


AUX times.) 10 CALENDAR SET
Set auxiliary mode to move to 10
CALENDAR SET.

Selects CALENDAR SET Reads contents from the special register calendar
CALENDAR SET. GO area for display. (BCD)
1 YEAR

Reads each item. CALENDAR SET


To change a (Press key to display the previous item.)
setting, input two 2 MONTH
digits decimal
numbers for that
item.
CALENDAR SET
3 DAY
For example, to use the minute item, select
5 MINUTE and input two digits decimal
CALENDAR SET numbers.

4 HOUR
PLF PLF
GO
5 5

CALENDAR SET CALENDAR SET


5 MINUTE 5 MINUTE 55

CALENDAR SET
(Same for other items)
6 SECOND
(Setting is not change unless GO is pressed.)

Finishes inputs CALENDAR SET


Set a day of the week by
of all items. 7 DAY OF WEEK
inputting numbers as follows:
00: Sunday
01: Monday
CALENDAR SET 02: Tuesday
03: Wednesday
OK [GO]
04: Thursday
05: Friday
06: Saturday
CALENDAR SET
Executes. GO 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.)

BUZZER OFF ON OFF: Displays OFF


GO 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.
N

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)

PROM writer or EEPROM Figure 2


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
AUX (Press 11 times.)
12 MODULE

Set auxiliary mode to move to 12 MODULE .

PROM WRITER
GO
OK [GO]

Recognise the module is PROM writer.

MEM CASSETTE TYP


GO or
1 N - MP 1

Move to MEMORY CASSETTE type.

The following 11 memory cassette types are available:

Memory cassette type Memory IC type


1 N-MP1 (NN-MBP1) EPROM type
2 N-MP8 (NN-MBP4) Memory cassette
3 N-MP8 (NN-MBP8, NB9VMPU-08)
4 N-MP16
5 N-MP32
6 N-MP64
7 N-ME1 (NN-MBE1) EEPROM type
8 N-ME4 (NN-MBE4, NB9VMEU-04) Memory cassette
9 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
1 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


ÆTransfers data from the PC program memory (RAM) to the
PROM WRITER
EPROM (writes data into EPROM).
1 PC EPROM

PROM WRITER ÆTransfers data from the EPROM to the PC program memory

2 PC EPROM (in the same way as when power is turned on while the
EPROM is mounted on the PC).

PROM WRITER ÆVerifies the PC program memory contents with the EPROM

3 PC: EPROM contents.

PROM WRITER Æ Checks whether the EPROM is write enabled.

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
1 PC EPROM

PC EPROM
GO OK [G O]

PC EPROM
GO
COMPLETION
Execute.

Note: If the EPROM cassette already contains data, PC EPROM


WRITE ERROR appears and data transfer is
disabled. WRITE ERROR

<2. PC EPROM>
Copies the EPROM memory cassette contents to the PC program memory.

PROM WRITER
2 PC EPROM

PC EPROM
GO OK [G O]

GO PC EPROM
COMPLETION
Execute.

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


PC RUNNING

5-48
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 OK [G O]

When the program memory


contents conform with the PC : EPROM
GO EPROM memory cassette COMPLETION
contents:
Execute.

When the program memory


contents do not conform PC : EPRO M
with the EPROM memory VERIFY ERROR
cassette contents:

Note: If the memory cassette contents are faulty, PC : EPROM


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

<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 BLANK CHECK

When the EPROM cassette


BLANK CHECK
GO contents are deleted:
COMPLETION

When a program is written


in the EPROM cassette:
BLANK CHECK
BLANK ERROR

5-49
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.

Æ Transfers data from the PC program memory (RAM)


PROM WRITER
to the EEROM (writes data into EEPROM).
1 PC EEPROM

Æ Transfers data from the EEPROM to the PC program


PROM W R I T E R
memory (in the same way as when power is turned on
2 PC EEPROM
with the EEPROM mounted on the PC).

Æ Verifies the processor program memory contents


PROM WRITER
with the EEPROM contents.
3 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 EEPROM

PC EEPROM
GO OK [GO ]

PC EEPROM
GO
COMPLETION
Execute.

Note: When the WRITE PROTECT switch of the EEPROM memory PC EEPROM
cassette is turned on, WRITE ERROR appears and data 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 EEPROM

PC EEPROM
GO OK [GO ]

PC EEPROM
GO
COMPLETION
Execute.

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


PC RUNNING

5-51
5-12 Modules (Expansion Function)

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

<Screen>

PROM WRITER
3 PC :EEPROM

PC : EEPROM
GO OK [GO]

When the PC program memory


PC : EEPROM
contents conform with the EEPROM
GO COMPLETION
memory cassette contents:
Execute.

When the PC program memory


contents do not conform with the
PC : EEPROM
EEPROM memory cassette contents: VERIFY ERROR

Note: If the memory cassette contents are faulty,


PC : EEPROM
MEM CASSETTE ERR appears.
MEM C A S S E T T E ERR
The write data again.

5-52
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 Application to NB0-series

PROM writer x

EEPROM read/write unit x

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 The program read from the memory cassette to the PC Memory cassette PC
(PROGRAM ERROR) contains a syntax error.

Cassette not mounted Memory cassette is not plugged into the ROM writer. PROM writer all processing
(CST NOT LOADED Memory cassette has come off during processing.

Cassette type not matched Memory cassette type selection error. PC Memory cassette
(CST MISMATCH) 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.

Blank error (BLANK ERROR) EPROM memory cassette contents are not yet deleted. BLANK CHECK

Write error Data cannot be written into memory cassette. Memory cassette PC
(WRITE ERROR) (EPROM fault, or EEPROM WRITE PROTECT switch ON)

Insufficient cassette capacity Total memory requirement of PC program, user macro, and PC Memory cassette
(CST CAP SHORT) R areas exceeded the memory cassette capacity.

Insufficient PC capacity Total memory requirement of memory cassette program, user Memory cassette PC
(PC CAP SHORT) macro, and R areas exceeded the PC program capacity.

Memory cassette error Data in memory cassette is destroyed. EPROM PC


(MEM CASSETTE ERR) EPROM : PC
BLANK CHECK

Verification error Data in the PC does not conform with PROM data. PROM : PC
(VERIFY ERROR)

PC running PC is running while data is transferred to the PC. PROM PC


(PC RUNNING)

Loader type not matched Loader manufacturer type does not match the PROM PROM PC
(LDR MISMATCH) internal data manufacturer type.

Module not connected PROM writer or audio CMT is not connected. GO key pressed at 12 MODULE
(MDL NOT CONNTED)

5-54
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 NP-
link module or an ME-NET module.

NP-link module
on Slot 4
This setting is for communication between the
Handy Loader and a PC (linked by
communication modules) other than that
connected to the Handy Loader.
Sta. No. 2 PC 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. AUXILIARY


AUX SET . 13 PC NO . SET

PC NO . SET
GO 1 SLOT N O .

Input slot No..

RST PC NO . SET
4 2 PC STA NO.

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

MRD PC NO . SET
(PC Sta. No. = 2)
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

Set auxiliary mode to move to the 14 TRANSFER . AUXILIARY


AUX 14 TRANSFER

Display the storage area. TRANSFER AREA


GO 1 AREA1

TRANSFER AREA
Display the storage area (AREA 1).
1 AREA1

TRANSFER AREA Display the storage area (AREA 2).


2 AREA2

TRANSFER AREA
1 AREA1

Display the transfer mode. TRANSFER


GO 1 PC LOADER

• Menu display

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


1 PC LOADER

TRANSFER Copies the program in the memory in Handy Loader


2 PC LOADER to the PC.

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 LOADER

PC LOADER (AREA 1)
GO
OK [GO]

Confirms the area to the storage destination.

PC LOADER (AREA 1)
GO
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 LOADER

PC LOADER (AREA 1)
GO
OK [GO]
Confirms the transfer origin.
Except the SPB

GO PC LOADER (AREA 1) series.


EXECUTING

PCRAM PCFLASH
OK [GO]

GO PCRAM PCFLASH CLR


Copies the PC program to the internal memory. EXECUTING

Push the CLR key when you do not transfer.

PC LOADER (AREA1)
COMPLETION

PC LOADER (AREA1)
PC RUNNING

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

5-57
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 (AREA1)
GO
OK [GO]

Confirms the area of the collation origin.

PC : LOADER (AREA1)
GO
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

GO ERASE (AREA1)
OK [GO]

Confirms the erase area.

GO ERASE (AREA1)
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 PC
(PC RUNNING)

Verification error Data in the PC does not conform with Handy Loader. Loader: PC

(VERIFY ERROR)

Blank error Memory in Handy Loader are not yet deleted. PC Loader
(BLANK ERROR)

Write error Data cannot be written into memory in Handy Loader. PC Loader
(WRITE ERROR)

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


(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.
Standard user macro library
FUJI Custom-made user macros.
ELECTRIC

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

As user macro call instruction during execution of program main


routine.
Main User macro call part
routine Executes the specified user macro when CALL is executed.
program

FEND 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 1) User created macro instruction


Program consists of N-series
2) Standard macros supplied
instructions
by FUJI (N-series instruction
END type)

Program consists of assembly


language 3) Standard macros supplied
by FUJI (assembly language
type)
File register area

6-2
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 CALL UM (FNC04)*

RST ,
FNC User macro number
Word input processing 4 SP

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.
Bit input processing
User macro call part

Bit output processing

(before execution)

User macro execution part start UMEXE (FNC05)*

PLF
Word output processing FNC GO
5
(after execution) 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)*

MCR
FNC GO
6

User macro execution part start UM (FNC07)*


User macro execution part

RET ,
FNC User macro number
7 SP
Instructions executed

User macro execution part end URET (FNC08)*

SET
FNC GO
8

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

6-3
Appendix

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

Instruction List
(1) Basic instruction
1) Contact instructions : Usable, : Unusable
Instruction Symbol FNC No. Function No. of PC type
steps NS/NJ NB NBE NB0 SPB

1
LD — Specifies NO contact from bus
2

LD — Specifies NO contact from bus 2


(rising edge differential)

— Specifies NO contact from bus 2


LD
(falling edge differential)

— Specifies NO contact from bus 2


LDD D
(direct input)

1
LDI — Specifies NC contact from bus
2

— Specifies NC contact from bus 2


LDI
(rising edge differential)

Specifies NC contact from bus


LDI — 2
(falling edge differential)

Specifies NC contact from bus


LDID D — 2
(direct input)

1
AND — Connects NO contact in series
2

AND — Connects NO contact in series 2


(rising edge differential)

— Connects NO contact in series 2


AND
(falling edge differential)

— Connects NO contact in series 2


ANDD D
(direct input)

1
ANI — Connects NC contact in series
2

ANI — Connects NC contact in series 2


(rising edge differential)

— Connects NC contact in series 2


ANI
(falling edge differential)

Connects NC contact in series 2


ANID D —
(direct input)

1
OR — Connects NO contact in parallel
2
Connects NO contact in parallel 2
OR —
(rising edge differential)

Connects NO contact in parallel


OR — 2
(falling edge differential)

Connects NO contact in parallel


ORD D — 2
(direct input)

App.-1
Appendix

(Continued) : Usable, : Unusable

Instruction Symbol FNC No. Function No. of PC type


steps NS/NJ NB NBE NB0 SPB

1
ORI – Connects NC contact in parallel
2
Connects NC contact in parallel 2
ORI –
(rising edge differential)

Connects NC contact in parallel


ORI – 2
(falling edge differential)

Connects NC contact in parallel


ORID D – 2
(direct input)

2) Connection instructions : Usable, : Unusable


Instruction Symbol FNC No. Function No. of PC type
steps NS/NJ NB NBE NB0 SPB

ANB – Connects logical block in series 1

ORB – Connects logical block in parallel 1

Not marked in a
MPS – Writes operation result into register 1
ladder diagram

Not marked in a
MRD – Reads operation result from register 1
ladder diagram

Not marked in a 1
MPP – Reads and resets operation result
ladder diagram

3) Output instructions : Usable, : Unusable


Instruction Symbol FNC No. Function No. of PC type
steps NS/NJ NB NBE NB0 SPB

1
OUT – Output from device
2

OUTD D – Output from device (direct output) 2

1
SET S – Sets device
2

SETD SD – Sets device (direct output) 2

Bits specified 1
RST R – Resets bits
2
Words specified
*
RST D – Resets word device 2

RSTD RD – Resets device (direct output) 2

Generates one scan pulse on the


PLS – 2
rising edge
Generates one scan pulse on the
PLF – 2
falling edge

App.-2
Appendix

4) Master control : Usable, : Unusable

Instruction Symbol FNC No. Function No. of PC type


steps NS/NJ NB NBE NB0 SPB

MC MC n D – Sets master control 2

MCR MCR n – Resets master control 1

5) Timer, counter : Usable, : Unusable


Instruction Symbol FNC No. Function No. of PC type
steps NS/NJ NB NBE NB0 SPB

T
OUTT TMR D – Connects incrementing timer 2

C
OUTC – Connects incrementing counter 2
CTR D

CRST

6) Others : Usable, : Unusable

Instruction Symbol FNC No. Function No. of PC type


steps NS/NJ NB NBE NB0 SPB

END End of Program – End of program 1

Not marked in a
NOP – No operation 1
ladder diagram

INV – Invert 1

7) Step control : Usable, : Unusable

Instruction Symbol FNC No. Function No. of PC type


steps NS/NJ NB NBE NB0 SPB

D
SC SC FNC060 Controls of the steps of internal relay L 3

Note) : For NB U type only.

App.-3
Appendix

(2) Application instruction


1) Transfer instructions : Usable, : Unusable
Instruction Symbol
Instruction Symbol FNCNo.
FNC No. Function No.of
No. Execution
of PC type time Reference
/Non-execution
steps NS/NJ NB
steps NBE page
NB0 SPB
time (µs)

MOV MOV S, D FNC020 Transfers from S to D 3

CML CML S, D FNC022 Inverts and transfers from S to D 3

XCH XCH D1, D2 FNC025 Exchanges D1 and D2 3

S1 D1
DMPX DMPX S1, D1, D2 FNC026 Distribution 4

S1 D
MPX MPX S1, S2, D FNC027 Extraction S1+S2 4

S D

n words n words
BMOV BMOV S, D, n FNC023 Block transfer 4

Block transfer S
FMOV FMOV S, D, n FNC024 4
(same data)

Byte (8-bit) transfer


XFR XFR S, D FNC028 3
S D
Digit transfer
DT DT S, D, n1, n2, n3 FNC029 5
S D

32-bit transfer 3
DMOV DMOV S, D FNC021 S D
S+1 D+1 4

Transfers from S to D
DCML DCML S, D FNC02A 4
(32 bits)

DXCH DXCH D1, D2 FNC02B Exchanges between S and D 3


(32 bits)
2n words

Transfers S D
2 words

4
DFMOV DFMOV S, D, n FNC02C same data block
(32 bits) 5

MSGT MSGT n1, n2, n3, D FNC070 Transfers message 5

MSGR MSGR n1, n2, n3, D FNC071 Receives message 5

OPD OPDF n1, n2, n3 FNC072 Option module parameter settin 4

Note) : For NB U type only.

App.-4
Appendix

2) Comparison instructions : Usable, : Unusable


Instruction Symbol FNC No. Function No. of PC type
steps NS/NJ NB NBE NB0 SPB

LD= = S1, S2 FNC010 ON if S1 = S2 3

LD<> <> S1, S2 FNC011 ON if S1 = S2 3

AND= = S1, S2 FNC014 ON if S1 = S2 3

AND<> <> S1, S2 FNC015 ON if S1 = S2 3

OR= = S1, S2 FNC018 ON if S1 = S2 3

OR<> <> S1, S2 FNC019 ON if S1 = S2 3

LD> > S1, S2 FNC012 ON if S1 > S2 3

LD<= <= S1, S2 FNC013 ON if S1 <= S2 3

AND> > S1, S2 FNC016 ON if S1 > S2 3

AND<= <= S1, S2 FNC017 ON if S1 <= S2 3

OR> > S1, S2 FNC01A ON if S1 > S2 3

OR<= <= S1, S2 FNC01B ON if S1 <= S2 3

LD< < S1, S2 FNC120 ON if S1 < S2 3

LD>= >= S1, S2 FNC121 ON if S1 >= S2 3

AND< < S1, S2 FNC122 ON if S1 < S2 3

AND>= >= S1, S2 FNC123 ON if S1 >= S2 3

OR< < S1, S2 FNC124 ON if S1 < S2 3

OR>= >= S1, S2 FNC125 ON if S1 >= S2 3

3
LDD= D= S1, S2 FNC110 ON if S1 = S2 (32-bit)
4
3
LDD<> D<> S1, S2 FNC111 ON if S1 = S2 (32-bit)
4

App.-5
Appendix

(Continued) : Usable, : Unusable


Instruction
Instruction Symbol
Symbol FNC
FNCNo.
No. Function
Function No.
No. Execution
ofof PC type time Reference
steps /Non-execution
steps NS/NJ NB NBE page
NB0 SPB
time (µs)
3
ANDD= D = S1, S2 FNC114 ON if S1 = S2 (32-bit)
4
3
ANDD<> D <> S1, S2 FNC115 ON if S1 = S2 (32-bit)
4
3
ORD= D = S1, S2 FNC118 ON if S1 = S2 (32-bit)
4
3
ORD<> D <> S1, S2 FNC119 ON if S1 = S2 (32-bit)
4
3
LDD> D > S1, S2 FNC112 ON if S1 > S2 (32-bit)
4
3
LDD<= D <= S1, S2 FNC113 ON if S1 <= S2 (32-bit)
4
3
ANDD> D > S1, S2 FNC116 ON if S1 > S2 (32-bit)
4
3
ANDD<= D <= S1, S2 FNC117 ON if S1 <= S2 (32-bit)
4
3
ORD> D > S1, S2 FNC11A ON if S1 > S2 (32-bit)
4
3
ORD<= D <= S1, S2 FNC11B ON if S1 <= S2 (32-bit)
4
3
LDD< D < S1, S2 FNC126 ON if S1 < S2 (32-bit)
4
3
LDD>= D >= S1, S2 FNC127 ON if S1 >= S2 (32-bit)
4
3
ANDD< D < S1, S2 FNC128 ON if S1 < S2 (32-bit)
4
3
ANDD>= D >= S1, S2 FNC129 ON if S1 >= S2 (32-bit)
4
3
ORD< D < S1, S2 FNC12A ON if S1 < S2 (32-bit)
4
3
ORD>= D >= S1, S2 FNC12B ON if S1 >= S2 (32-bit)
4
16-bit comparison M81FD M81FE 3
CMP CMP S1, S2 FNC01D
(S1) > (S2) OFF OFF
(S1) = (S2) ON OFF
(S1) < (S2) OFF ON
32-bit comparison M81FD M81FE 3
DCMP DCMP S1, S2 FNC01C
(S1,S1+1) > (S2,S2+1) OFF OFF
(S1,S1+1) = (S2,S2+1) ON OFF 4
(S1,S1+1) < (S2,S2+1) OFF ON

Note) : For NB U type only.

App.-6
Appendix

(Continued) : Usable, : Unusable

Instruction Symbol FNC No. Function No. of PC type


steps NS/NJ NB NBE NB0 SPB

16-bit band comparison M81FC M81FD M81FE


ZCP ZCMP S1, S2, S FNC12C 4
(S1) > (S) ON OFF OFF
(S1) <= (S) <= (S2) OFF ON OFF
(S) < (S2) OFF OFF ON
32-bit band comparison M81FC M81FD M81FE
DZCP DZCMP S1, S2, S FNC12D 4
(S1,+1) > (S,+1) ON OFF OFF
(S1,+1) <= (S,+1) <= (S2,+1) OFF ON OFF
6
(S,+1) > (S2,+1) OFF OFF ON

3) Arithmetic instructions : Usable, : Unusable


Instruction Symbol FNC No. Function No. of PC type
steps NS/NJ NB NBE NB0 SPB

Signed addition (16-bit)


ADD (+) + S1, S2, D FNC030 4
S1+S2 D

Signed subtraction (16-bit)


SUB ( - ) - S1, S2, D FNC031 4
S1 - S2 D

Signed addition (32-bit) 4


DADD (+) D+ S1, S2, D FNC03C
(S1,S1+1) + (S2, S2+1) (D, D+1) 5
Signed subtraction (32-bit) 4
DSUB ( - ) D - S1, S2, D FNC03D
(S1,S1+1) + (S2, S2+1) (D, D+1) 5
Signed multiplication (16-bit)
MUL (x) x S1, S2, D FNC032 4
S1x S2 (D+1, D)
Quotient
Signed division (16-bit) (D+1, D) 4
DIV (/) / S1, S2, D FNC033 Remainder
(S1+1, S1) / (S2) (D+3, D+2) 5
Increment (16-bit)
INC +1 D FNC034 2
D+1 D

Increment pulse (16-bit)


INCP +1P D FNC035 2
D+1 D

Decrement (16-bit)
DEC -1 D FNC036 2
D-1 D

- 1P D
Decrement pulse (16-bit)
DECP FNC037 2
D-1 D
Signed multiplication (32-bit) 4
DMUL D x S1, S2, D FNC03E (S1+1, S1) x (S2+1, S2)
(D+3, D+2, D+1, D) 5
Signed division (32-bit) 4
DDIV D / S1, S2, D FNC03F (S1+1, S1) / (S2+1, S2) Quotient
(D+1,D), Remainder (D+3, D+2) 5

D+1 D
Increment (32-bit)
DINC FNC130 2
D+1 D

D+1P D
Increment pulse (32-bit)
DINCP FNC131 2
D+1 D

Note) : For NB U type only.

App.-7
Appendix

(Continued) : Usable, : Unusable


Instruction Symbol FNC No. Function No. of PC type
steps NS/NJ NB NBE NB0 SPB

DDEC D-1 D FNC132 Decrement (32-bit) 2


D-1 D

DDECP D-1P D FNC133 Decrement pulse (32-bit) 2


D-1 D

4) Conversion instructions : Usable, : Unusable

Instruction Symbol FNC No. Function No. of PC type


steps NS/NJ NB NBE NB0 SPB

DECO DECO S, D FNC040 Decoding (4 to 16) 3

ENCO ENCO S, D FNC041 Encoding (16 to 4) 3

SUM SUM S, D FNC042 Count on bit 3

BCD BCD S, D FNC043 Binary to BCD conversion (16-bit) 3

BIN BIN S, D FNC044 BCD to Binary conversion (16-bit) 3

DBCD DBCD S, D FNC045 Binary to BCD conversion (32-bit) 3

DBIN DBIN S, D FNC046 BCD to binary conversion (32-bit) 3

DSUM DSUM S, D FNC047 Count ON-bits (32 bit) 3

ASCI ASCI S, D, n FNC048 HEX to ASCII conversion 4

HEX HEX S, D, n FNC049 ASCII to HEX conversion 4

SEC S, D
HMS (hours/minutes/seconds) to
SEC FNC04A 3
SEC (seconds) conversion

SEC (seconds) to HMS


HMS HMS S, D FNC04B 3
(hours/minutes/seconds)

Note) : For NB U type only.

App.-8
Appendix

5) Logic instructions : Usable, : Unusable

Instruction Symbol FNC No. Function No. of PC type


steps NS/NJ NB NBE NB0 SPB

WAND AND S1, S2, D FNC038 (S1) AND (S2) D 4

WOR OR, S1 S2, D FNC039 (S1) OR (S2) D 4

WXOR XOR S1, S2, D FNC03A (S1) EOR (S2) D 4

WXNR XNR S1, S2, D FNC03B (S1) EOR (S2) D 4

(S1) AND (S2) D 4


DAND DAND S1, S2, D FNC134
(32-bit) 5
(S1) OR (S2) D 4
DOR DOR S1, S2, D FNC135
(32-bit) 5
(S1) EOR (S2) D 4
DXOR DXOR S1, S2, D FNC136
(32-bit) 5

(S1) EOR (S2) D 4


DXNR DXNR S1, S2, D FNC137
(32-bit) 5

App.-9
Appendix

6) Program instructions : Usable, : Unusable

Instruction Symbol FNC No. Function No. of PC type


steps NS/NJ NB NBE NB0 SPB

FEND FEND FNC002 End of main program 1

CALL CALL UM FNC004 Calls user macro command 2

UMEXE UM EXE FNC005 Activates user macrocommand executor 1

UMEND UM END FNC006 End of called macrocommand 2

UM UM FNC007 Head of user macrocommand executor 5

URET URET FNC008 End of user macrocommand executor 1

JMP JMP n FNC001 Unconditional jump 2

CJ CJMP n FNC000 Conditional jump 2

P JEND n - Pointer n: 0 to FF 2

I INTR n - Interrupt pointer 2

IRET IRET FNC003 End of interrupt program 1

LOOP LOOP N FNC009 Iteration starting step 2

CONT CONTINUE FNC00A Iteration ending step 1

App.-10
Appendix

7) Rotation and shift : Usable, : Unusable

Instruction Symbol FNC No. Function No. of PC type


steps NS/NJ NB NBE NB0 SPB

RCR RCR D FNC050 Right rotation of 16-bit data (carry) 2

RCL RCL D FNC051 Left rotation of 16-bit data (carry) 2

ROR ROR D FNC052 Right rotation of 16-bit data (no carry) 2

ROL ROL D FNC053 Left rotation of 16-bit data (no carry) 2

NRCR NRCR D, n FNC056 N-bit right rotation of 16-bit data (carry) 3

NRCL NRCL D, n FNC057 N-bit left rotation of 16-bit data (carry) 3

NROR NROR D, n FNC058 N-bit right rotation of 16-bit data (no carry) 3

NROL NROL D, n FNC059 N-bit left rotation of 16-bit data (no carry) 3

SFTR SFTR D FNC054 1-bit right shift of 16-bit data 2

SFTL SFTL D FNC055 1-bit left shift of 16-bit data 2

NSFR NSFR D, n FNC05A N-bit right shift of 16-bit data 3

NSFL NSFL D, n FNC05B N-bit left shift of 16-bit data 3

n-bit right shift of 32-bit data


DNRCR DNRCR D, n FNC05C 3
(carry)

n-bit left rotation of 32-bit data


DNRCL DNRCL D, n FNC05D 3
(carry)

n-bit right shift of 32-bit data


DNROR DNROR D, n FNC05E 3
(no carry)

n-bit left rotation of 32-bit data


DNROL DNROL D, n FNC05F 3
(no carry)

8) File : Usable, : Unusable


Instruction Symbol FNC No. Function No. of PC type
steps NS/NJ NB NBE NB0 SPB

FFST FFST S, D1, D2, n FNC140 Stores a file 5

FIFO FIFO S1, S2, D, n FNC141 First-in first-out control 5

FILO FILO S1, S2, D, n FNC142 First-in last-out control 5

App.-11
Appendix

9) Floating points : Usable, : Unusable

Instruction Symbol FNC No. Function No. of PC type


steps NS/NJ NB NBE NB0 SPB

Compare 32 bits M81FD M81FE


ECMP ECMP S1, S2 FNC150 3
S1 > S2 OFF OFF
S1 = S2 ON OFF
4
S1 < S2 OFF ON
Compare band M81FC M81FD M81FE
EZCP EZCP S1, S2, S FNC151 4
S1 > S ON OFF OFF
S1 <= S <= S2 OFF ON OFF
6
S > S2 OFF OFF ON
Binary integer to binary floating-point
FLT FLT S, D FNC154 3
conversion

Binary integer to binary floating-point 3


DFLT DFLT S, D FNC155
conversion (32 bit) 4
Binary floating-point to binary integer
INT INT S, D FNC156 conversion 3

DINT DINT S, D FNC157 Binary floating-point to binary integer


3
conversion (32 bit)

Binary floating-point to BCD floating-


EBCD EBCD S, D FNC158 3
point conversion (32 bit)

BCD floating-point to binary floating-


EBIN EBIN S, D FNC159 3
point conversion (32 bit)

Binary floating-point addition: 4


EADD E+ S1, S2, D FNC160
S1+S2 D 5
Binary floating-point subtraction: 4
ESUB E– S1, S2, D FNC161
S1- S2 D 5
Binary floating-point multiplication: 4
EMUL Ex S1, S2, D FNC162
S1xS2 D 5
Binary floating-point division: 4
EDIV E/ S1, S2, D FNC163
S1/S2 D 5
Binary floating-point square root: 3
ESQR ESQR S, D FNC164
S D 4
Floating-point sine calculation:
SIN SIN S, D FNC166 3
SIN S D

COS COS S, D FNC167 Floating-point cosine calculation: 3


COS S D

Floating-point tangent calculation: 3


TAN TAN S, D FNC168
TAN S D

App.-12
Appendix

10) Clock operation : Usable, : Unusable

Instruction Symbol FNC No. Function No. of PC type


steps NS/NJ NB NBE NB0 SPB

Comparison M81FD M81FE


TCMP TCMP S1, S2, S3, S FNC170 5
(S1, S2, S3) > S OFF OFF
(S1, S2, S3) = S ON OFF
(S1, S2, S3) < S OFF ON
Band comparison M81FC M81FD M81FE
TZCP TZCP S1, S2, S FNC171 4
S1 > S ON OFF OFF
S1 <= S <= S2 OFF ON OFF
S < S2 OFF OFF ON
Clock data addition:
TADD TADD S1, S2, D FNC172 4
S1+S2 D

Clock data subtraction:


TSUB TSUB S1, S2, D FNC173 4
S1- S2 D

TRD TRD D FNC174 Clock data read 2

TWR TWR D FNC175 Clock data write 2

11) Others : Usable, : Unusable


Instruction Symbol FNC No. Function No. of PC type
steps NS/NJ NB NBE NB0 SPB

Not marked in a Data instruction


DATA B ladder diagram FNC 080 2
(direct specification)
Not marked in a Data instruction
DATA M ladder diagram FNC 081 (indirect specification) 2

SLT SLT FNC 090 Status latch setting 1

SLTR SLTR FNC 091 Status latch reset 1

STRA STRA FNC 092 Sampling trace setting 1

STRA R STRA R FNC 093 Sampling trace reset 1

App.-13
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

You might also like