Professional Documents
Culture Documents
Handy Loader
USER'S MANUAL
Type: NW0H-NE
FEH402
Preface
This Users Manual explains the specifications of the PC Card Interface modules. Read this manual carefully to ensure
correct operation.
When using modules or peripheral devices, be sure to read the corresponding users manuals listed below.
1. Appearance
Make sure that outer package is neither damaged nor cracked.
2. Accessories
(1) Loader cable (NB-EC0100)
(2) Users manual (this manual)
This users manual explains the specifications, operation, and programming method of the Handy Loader, which is for use
with FLEX-PC N and SPB series PLC.
When using the Handy Loader, refer to the following manuals, as necessary:
Title
Manual No.
Contents
FEH401
FEH400
NB0 series
FEH503
FEH504
FEH510
FEH509
NB series <Software>
FEH512
FEH518
NJ series <Hardware>
FEH520
NJ series <Software>
FEH500
NS series <Hardware>
FEH550
NS series <Software>
FEH501
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
Printed on
*Manual No.
Revision contents
Sep. 2001
FEH402
First edition
Contents
Preface
Safety Precautions
Revisions
Contents
Page
Overview ..........................................................................................................................................
Applicable PCs ...............................................................................................................................
Connection to PC ...........................................................................................................................
Notes on Using the Handy Loader ...............................................................................................
1-1
1-1
1-2
1-3
Contents
PC Start/Stop ..................................................................................................................................
Program Check ...............................................................................................................................
Parameter Setting ...........................................................................................................................
Password .........................................................................................................................................
5-1
5-2
5-5
5-9
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-38
5-39
5-42
5-43
5-44
Contents
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
Inserting an instructions
Deleting an instruction
Reading a program
Monitoring a program
Check continuity
Monitoring a bit device or a word device
Monitoring a timer or a counter
Testing
Auxiliary function
PC diagnosis
Parameter setting
Transfer between PC memory and memory cassette
Transfer between PC memory and memory in loader
NB0 series
NB0-P14, NB0-P24
NB0U14, NB0U24
NB series
(NB -P/E)
NB series
(NB -U/W)
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) Be sure to transfer any program you have created to memory cassette or cassette tape in order to store it.
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
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
Section 2 Specifications
2-1 General Specifications
Item
Physical conditions
Mechanical conditions
Installation conditions
Specification
Operating temperature
0 to +55C
Storage temperature
-20 to +70C
Relative humidity
Dust
Corrosive gas
Vibration
Shock
JIS C 0041
malfunction shock 147m/s2, endurance shock 294m/s2,
2 times in 3 axis directions
Cooling
Self cooling
Approx. 200g
Dimensions
Specification
Display
Keyboard
Peripheral devices
Communication with PC
RS-422
2-1
5) Modular jack
1) LCD display
6) Hanger hole
N
NW0H
RD
INS
MNT
AUX
TEST
WR DEL
LD
X
AND
M
OR
L
LDI
Y
ANI
S
ORI
T
HELP CLR
,
W
F
SET
8
PLS
9
RST
4
INV
B
FNC
P/I
SP
STEP
K/H
-
GO
3) Operation keypad
Attaching holes to a PC
(NB series only)
1) LCD display
A back-lit liquid crystal display (LCD) (16 characters x 2 lines) displays programs, data, and various messages.
2) LCD contrast adjustment screw
Adjust the LCD contrast by turning this with a Phillips screwdriver.
2-2
3) Operation keys
Used for programming and monitoring. Consists of a sheet keyboard with an electronic buzzer at the touch of click.
Key functions
RD
INS MNT
AUX
WR DEL TEST
LD
X
AND
M
OR
L
LDI
Y
ANI
S
ORI
T
HELP
RD
WR
INS
DEL
MNT
TEST
CLR
,
FNC
P/I
SET
8
PLS
9
RST
4
INV
B
SP
HELP key:
STEP
Used to display the number of PC program steps and data instruction number list,
and to switch numeric data display between hexadecimal and decimal.
K/H
FNC
Mode keys:
GO
,
SP
P/I
STEP
K/H
key : Used to input data instructions, to monitor devices, and to process bits in the register area.
key : Used for pointer instructions (jump instruction and specification of an interrupt program jump destination.)
K: Specifies decimal.
H: Specifies hexadecimal.
GO
CLR
Other keys
2-3
PROM writer
EEPROM read /write unit
Screw
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-2 Dimensions
35
90
8
RD
WR
INS
DEL
LD
X
AND
M
OR
L
LDI
Y
ANI
S
ORI
T
HELP CLR
MNT
AUX
TEST
148
NW0H
FNC
SET
8
PLS
9
RST
4
INV
B
P/I
SP
STEP
K/H
GO
25
82
2-3-3 Accessories
Length
Remarks
NB-EC0030
300mm
Straight cord
NB-EC0050
500mm
Straight cord
NB-EC0100
1000mm
NB-EC0200
2000mm
Straight cord
N-HLD-C2
2000mm
Curled cord
2-5
2-4 Functions
Operation mode
Item
Operating
Stopped
Write
Programming Functions
Instruction write
Device change (contact change)
Instruction work insert, delete, change
Designated program range delete
-
Read
Monitor / Test
Continuity check
Device monitor
Timer/counter current value monitor
Compulsive ON/OFF
Device data change
Timer/counter current value/setting change
Auxiliary Functions
Processor activation/deactivation
-
Program check
Parameter setting
Password
Message display
RAS
Data transfer to memory cassette
Device change
Memory clear
Calendar setting
Buzzer ON/OFF
Module (extended adapter function)
PC No. setting (communication module)
User program save to handy loader internal memory
: Possible
: Transfer to CPU is not possible
* Some parameter settings are recognised after the power is turned OFF and back ON.
2-6
HANDY LOADER
HW0H-NE
V .
SYSTEM MESSAGE
Error message appears.
Press the
CLR
Press the
AUX
KEY IN PASSWORD
Password input wait status
After typing a password, press the G O key to display the initial screen.
If the password is wrong, the following message appears:
KEY IN PASSWORD
PASSWORD ERROR
Press CLR to return to the password input wait status display.
Note
To delete a program and password when the password is not known, press the
press
GO
PC ALL CLEAR ?
OK
[GO]
To execute, press
GO
2-7
,
SP
Key operation for each function of the Handy Loader is listed below. For the details on the actual operation, see Chapter 3 to 5.
Page
Key operation
First
3-52
RD
WR
Step No.
STEP
Device search
RD
WR
(Step No.)
3-54
GO
[Device identifier]
SP
[Device address]
GO
3-55
To search again
press GO
Instruction search
RD
WR
[Instruction
word]
[Device identifier]
[Device address]
GO
3-57
To search again
press GO
Conductivity check
MNT
TEST
Write
STEP
RD
WR
RD
WR
RD
WR
RD
WR
[Step No.]
NOP
0
[Instruction
word]
GO
MC
A
4-1
GO
[Device
identifier]
3-51
GO
[Device
identifier]
GO
3-4
CLR
Insertion
INS
DEL
Delete
Monitor
and
Test
[Program input]
INS
INS
DEL
DEL
MNT
TEST
SP
MNT
TEST
,
SP
3-44
GO
GO
WORD DEVICE
MNT
TEST
GO
3-46
GO
SET
8
: Forced ON
RST
4
: Forced OFF
MNT
4-11
TEST
,
SP
AUX
K/H
K/H
NUMERIC VALUE
2-8
4-9
GO
Item
Auxiliary
Page
Key operation
1. PC run/stop
GO
5-1
(Return to the auxiliary menu 1.)
CLR
5-2
No error
GO
CLR
3. Parameter
Return to the
auxiliary menu 2.
(Next
error)
Error
5-5
1) Reading
(Parameter area address)
GO
GO
2) Change
(New Parameter value)
GO
(Displays the
previous address)
(Displays the
next address)
GO
GO
CLR
CLR
Return to address
input screen
4. password
Return to the
auxiliary menu 3.
5-9
GO
(1) To register:
(Password)
GO
GO
(2) To delete:
GO
5. Message display
(System message)
(User message)
CLR
2-9
CLR
CLR
Return to the
auxiliary menu 4.
5-11
Item
Auxiliary
Page
Key operation
6. RAS
GO
5-18
System RAS
address input
GO
System RAS
display
CLR
GO
Next RAS
display
GO
Display from
address 000
(Address area)
[
7. Memory
Cassette
Transfer
CLR
9. Memory clear
GO
5-24
or
GO
8. Converting
a Device
Address
CLR
selects a function.)
GO
CLR
CLR
5-38
Conversion source
device address
GO
CLR
CLR
GO
New device
address
GO
1) Parameter clear
GO
GO
CLR
2) Program clear
GO
GO
3) Data clear
GO
GO
2-10
CLR
GO
5-39
Item
Auxiliary
Page
Key operation
10. Calender
setting
5-42
CLR
(Year setting)
(Month setting)
(Day setting)
(Hour setting)
(Minute setting)
(Second setting)
(Day of the week setting)
GO
5-43
CLR
5-44
GO
(Press
or
GO
(Press
or
GO
13. Setting PC
Station No.
GO
CLR
CLR
CLR
GO
CLR
2-11
5-55
Item
Auxiliary
14. Transfer
Key operation
Page
5-56
GO
(1) PC
or
select a area
GO
Loader
GO
(2) Loader
GO
CLR
GO
(3) Verification
GO
GO
2-12
CLR
Return to the
auxiliary menu
14.
PC
GO
CLR
GO
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
PC
Internal
Flash
Memory
Handy Loader
Key
operation
Programming
RAM
Memory
card
PC
Handy Loader
Key
operation
Transfer
Transfer instruction
command
Internal
Flash
Memory
RAM
Transfer
Memory
card
(2) N-series
If the PC does not not have a memory cassette attached, any program created is written to the PCs internal RAM; and
if a memory cassette is attached, the program can be written to both the RAM and the memory cassette.
However, no program cannot be written to an EPROM memory cassette. Even if an EEPROM write cassette is used,
writing is disabled while the write protect switch is on.
It is also possible to transfer a program between the PC internal RAM and PC memory cassette by key operation on the
Handy Loader.
Handy Loader
Programming
Internal
RAM
Memory
cassette
3-1
Transfer
Key
operation
PC
Programming
Read
......... Reads a program from memory. Four read specifications are available:
step, instruction, device, and pointer.
Write
Insert
Delete
Mode indicator
0 LD
1 OUT
X000
Y010
3-2
Device identifier
R : Read mode
W : Write mode
10
LD
000
Up to four digit
Device address
I : Insert mode
D : Delete mode
Up to five digit
Instruction word
Press the following mode keys to set each programming mode as follows:
Press the
RD
WR
Press the
RD
WR
RD
WR
(Either the Read mode or Write mode is displayed alternatively each time the
RD
key is pressed.)
WR
Press the
Press the
INS
DEL
INS
DEL
INS
DEL
(Either the Insert mode or Delete mode is displayed alternatively each time the
INS
DEL
3-3
key is pressed.)
This section explains the basic operation of writing a program using the Handy Loader.
Three basic patterns are provided according to the instruction type to be written.
Basicoperation
operation
Basic
[Write mode]
[Instruction] key
GO
FNC
FNC No.
[Write mode]
[Instruction] key
Device identifier
,
FNC
FNC No.
Device address
GO
SP
[Write mode]
[Instruction] key
,
FNC
FNC No.
SP
*2
Device identifier
Device address
FNC
,
SP
3-4
,
SP
Device identifier
Device address
<Mnemonic notation>
YC
X1
Step No.
0
YC
T0
TMR
X2
4
500
YD
T0
7
C0
CTR
X3
9
10
X4
CRst
YE
C0
0
1
2
3
4
5
7
8
9
10
11
13
14
15
13
LD
X
Device identifier
Device address
ORI
T
OUT
C
Timer number
,
SP
K/H
Device identifier
Device address
GO
3-5
LD
OR
ANI
OUT
LD
OUT
LD
OUT
LD
LD
OUT
LD
OUT
END
X0
YC
X1
YC
X2
T0
T0
YD
X3
X4
C0
C0
YE
K500
K10
LD
X
Device identifier
Device address
LD
X
Device identifier
Device address
OUT
C
OUT
C
Counter number
,
Press
SP
K/H
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.
<Screen>
<Key operation>
OUT
C
OUT
C
NOP
0
OUT
OUT
C
K
GO
000
K/H
CLR
SP
OUT
000
000
SETTING ERROR
OUT
3-6
000
<Key operation>
<Write>
<Screen>
HANDY LOADER
NW0H-NE
(Initial screen)
RD
WR
RD
WR
X0
X0
LD
X
LD
X
NOP
0
GO
Stores instruction.
OR
L
LDI
Y
R
0 NOP
W
0 NOP
W
0 LD
W
0 LD
LD
X 000
0 LD
X 000
1 NOP
LD
OR
X 000
YC
0 LD
X 000
1 OR
3-7
b
<Write>
OUT
C
X0
X1
GO
Stores instruction.
ANI
S
LD
X
MPS
1
LD
X 000
OR
Y 00C
OR
Y 00C
NOP
OR
ANI
OR
Y 00C
YC
GO
X0
X1
YC
Stores instruction.
OUT
C
LDI
Y
OUT
C
Y 00C
2 ANI
OR
Y 00C
ANI
X 001
ANI
X 001
NOP
ANI
OUT
ANI
X 001
OUT
ANI
X 001
OUT
Y 00C
X 001
YC
3-8
d
<Write>
X0
YC
X1
GO
Stores instruction.
LD
X
LD
X
MRD
2
OUT
NOP
X 00C
OUT
LD
OUT
Y 00C
LD
OUT
Y 00C
LD
X 002
X 002
Y 00C
YC
X2
GO
X0
X1
YC
YC
X2
T0
TMR
500
Stores instruction.
OUT
C
ORI
T
NOP
0
,
SP
LD
NOP
LD
OUT
LD
X 002
OUT
LD
X 002
OUT
T 000
OUT
T 000
X 002
3-9
f
<Write>
K/H
PLF
5
X0
YC
X1
YC
X2
T0
TMR
500
T0
YC
X1
YC
X2
T0
T0
TMR
500
YD
NOP NOP
0
0
Inputs setting
OUT
Stores instruction.
LD
X
ORI
T
NOP
0
Stores instruction.
OUT
C
LDI
Y
OUT
3-10
T 000
K
W
7
NOP
K 500
7
LD
LD
LD
T 000
LD
T 000
NOP
LD
OUT
LD
T 000
OUT
K 500
T
500
K 500
K 500
T 000
T 000
K
number.
GO
GO
X0
h
<Write>
ANB
D
X0
YC
X1
YC
X2
T0
TMR
500
YD
T0
GO
Stores instruction.
LD
X
LD
X
MPP
3
LD
T 000
OUT
Y 00D
OUT
T 00D
NOP
OUT
LD
Y 00D
OUT
Y 00D
LD
OUT
Y 00D
LD
X 003
LD
X 003
X3
X0
X1
YC
YC
X2
T0
TMR
500
YD
T0
GO
Stores instruction.
LD
X
LD
X
RST
4
9
10
NOP
LD
10
LD
X 003
LD
X 003
10
LD
LD
X 003
10
LD
X 004
X3
X4
3-11
j
<Write>
GO
X0
YC
X1
YC
X2
T0
TMR
500
YD
T0
X3
C0
CTR
OUT
C
Stores instruction.
OUT
C
NOP
0
CRst
SP
K/H
NOP
10
LD
11
OUT
10
LD
X 004
11
OUT
10
LD
X 004
11
OUT
C 000
11
OUT
C 000
11
OUT
(counter No.).
MPS NOP
1
0
X 004
X 004
GO
Stores instruction.
LD
X
C 000
K
11
OUT
C 000
K
W
13
10
10
10
NOP
YC
X1
YC
T0
TMR
W
13
LD
500
YD
T0
X3
LD
(counter).
X2
10
11
10
X4
X0
C0
CTR
k
10
X4
CRst
C0
3-12
k
<Write>
OUT NOP
0
C
GO
X0
Stores instruction.
K 10
13
LD
C 000
13
LD
C 000
14
NOP
13
LD
14
OUT
13
LD
C 000
14
OUT
Y 00E
14
OUT
Y 00E
15
NOP
14
OUT
15
END
YC
X1
OUT
C
YC
X2
T0
TMR
C 000
500
YD
T0
X3
C0
CTR
10
LDI
Y
ORB
E
X4
CRst
YE
C0
GO
END
GO
X0
YC
X1
YC
X2
T0
TMR
T0
X3
500
YD
C0
CTR
10
X4
CRst
C0
YE
END
3-13
15
END
16
NOP
Y 00E
<Ladder diagram>
<Mnemonic notation>
D0000*0
X0
Step No.
0
D0000*0
Ins. word
LD
OUT
D00000
OUT
D00002
<Key operation>
LD
X
LD
X
NOP
0
GO
Bit address
F E D C B A 9 8 7 6 5 4 3 2 1 0
D0000
D0000.2
D0000.0
* Press
,
SP
X0
<Screen>
POINT
Data register
Device
3-14
LD
NOP
X 000
<Key operation>
<Screen>
OUT
C
ANB
D
NOP
0
LD
OUT
X 000
LD
OUT
LD
OUT
LD
OUT
LD
OUT
D00000
OUT
D00000
NOP
OUT
D00000
OUT
D0000
OUT
D00002
NOP
X 000
D
X 000
D0000
SP
NOP
0
GO
OUT
C
Stores Instruction.
ANB
D
NOP
0
SP
MRD
2
GO
3-15
X 000
D0000
X 000
<Ladder diagram>
<Mnemonic notation>
Step No.
M0
CJMP
100
H0
Ins.word
Device
100
LD
M0
101
CJ
P0
202
YB
X0
103
M100
X100
200
202
JEND
H0
<Key operation>
<Screen>
In write mode
M0
LD
X
AND
M
NOP
0
GO
Stores instruction.
W
100
LD
100
LD
100
LD
M0000
100
LD
M0000
101
NOP
Note
A jump instruction does not work unless a jump pointer P
is provided.
To write a jump instruction, stop the PC (or set it in the TERM mode for the NJ or NS series).
CJMP
Program to be skipped
with a jump instruction
JEND
3-16
M0
CJMP
H0
FNC
100
LD
101
FNC
M0000
100
LD
101
FNC
000
101
CJ
000
101
CJ
NOP
0
,
SP
P/I
GO
Stores instruction.
000
P
identifier: P.
NOP
0
M0000
101
CJ
000
P 00
P
103
00
NOP
H0
Program to be jumped
P/I
202
JEND
H0
NOP
0
GO
Stores instruction.
3-17
202
202
W
00
SPB
series
00 to 03:
04 to 0F:
10 to 11:
12 to 1B:
1C to 1F:
NB
series
00 to 07:
10 to 17:
18 to 1B:
1C to 1F:
NJ and NS
series
00 to 0F:
10 to 17:
18 to 1B:
1C to 1F:
Basic operation
P/I
P/I
GO
The mnemonic notation on the right is used when the Handy Loader creates a ladder diagram below.
The key operation is given below.
<Ladder diagram>
<Mnemonic notation>
Step No.
100
Main routine
program
FEND
100
I NTR
H0200
M0
MOV
0
I RET
D0
Interrupt
program
3-18
Ins. word
Device
FNED
101
0200
103
LD
M0
104
MOV
K0
107
IRET
D0
<Key operation>
<Screen>
FNC
100
FNC
100
FNC
002
100
FEND
002
101
NOP
100
FEND
MRD
2
GO
Stores instruction.
P/I
101
002
P
P/I
MRD
2
NOP
0
FEND
100
W
Inputs fixed-cycle interrupt cycle.
(00 for other than a fixed-cycle
interrupt)
FEND
100
FEND
002
I0200
FEND
002
101
I0200
101
I0200
103
3-19
002
I0 200
101
Stores pointer.
100
002
I
101
NOP
0
GO
100
101
NOP
<Key operation>
LD
X
AND
M
NOP
0
FNC
MRD
2
NOP
0
<Screen>
GO
103
LD
104
NOP
104
MOV
104
MOV
M0000
020
SP
K/H
NOP
0
SP
Input decimal constant for device S and proceed to the next line.
ANB
D
NOP
0
GO
D0000
107
NOP
FNC
MPP
3
GO
107
I RET
03
NOP
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
I RET
3-20
ANB
[Instruction] key
Device identifier
GO
Device address
and output.
<Ladder>
X0
D
<Mnemonic>
Step No.
YE
D
YF
SD
X1
YF
RD
LD
DX0
OUT
DYE
SET
DYF
LD
X1
RST
DYF
<Key operation>
<Screen>
Write mode
LD
X
X0
D
ANB
D
W
0
LD
LD
LD
DX
LD
DX
000
LD
DX
000
NOP
W
Input direct-input
device identifier.
LD
X
NOP
0
GO
Stores instruction.
3-21
<Key operation>
OUT
C
YE
D
X0
D
<Screen>
ANB
D
LD
DX
000
OUT
LD
DX
000
OUT
LD
DX
OUT
DY
LD
DX
000
OUT
DY
00E
OUT
DY
00E
NOP
SET
DY
00F
NOP
LD
001
NOP
RST
DY
00F
NOP
Input direct-input
device identifier.
LDI
Y
ORB
E
GO
SET
8
ANB
D
LDI
Y
Stores instruction.
GO
000
LD
X
LD
X
MPS
1
RST
4
ANB
D
LDI
Y
GO
GO
3-22
[Instruction] key
Device identifier
GO
Device address
<Ladder diagram>
X0
M0
<Mnemonic notation>
Step No.
Y6
0
Y5
LD
ORI
Y5
AND
M0
OUT
Y6
X0
N o t e : The differential contact instruction cannot be used for NB-0, NB-E (NB2-P24/36, NB2U24/36).
<Key operation>
X0
<Screen>
LD
X
W
0
LD
LD
LD
LD
000
LD
000
NOP
LD
X
NOP
0
GO
Stores instruction.
3-23
<Key operation>
<Screen>
ORI
T
X0
LD
ORI
X 000
LD
ORI
LD
X 000
ORI
LD
X 000
ORI
Y 005
ORI
Y 005
NOP
AND
NOP
OUT
NOP
Y5
LDI
Y
PLF
5
GO
Stores instruction.
AND
M
AND
M
NOP
0
GO
OUT
C
LDI
Y
MCR
6
GO
X0
M0
Y6
Y5
3-24
X 000
M0000
Y 006
When a data instruction is read or written by the Handy Loader, it is processed according to the FNC No. (for FNC No., see
the table on the next page or Appendix.)
Basic operation
FNC
GO
FNC No.
FNC020
BIN
FNC044
FNC
HELP
0
1
2
3
4
5
6
7
8
9
A
B
PROGRAM BRANCH
COMPARISON
TRANSFER
ARITH, LOGICAL
DATA PROCESS
ROTATION
STEP CONTROL
MESSAGE XFR
DATA
DEBUG
SFC1
SFC2
11
12
13
14
15
16
17
18
19
COMPARISON 2
COMPARISON 3
ARITH, LOGIC 2
FILE
FLOAT 1
FLOAT 2
DATE, TIME
PULS OUTPUT
HANDY OPE.
FNC
HELP
020: MOV
021: DMOV
022: CML
023: BMOV
024: FMOV
025: XCH
026: DMPX
027: MPX
028: XFR
029: DT
02A: DCML
02B: DXCH
02C: DFMOV
FNC
HELP
3-25
Tens digit
Hundreds digit
Group name
Program
flow
instruction
Tens
digit
Unit
digit
00
Comparison Transfer
instruction 1 instruction,
etc.
01
02
03
04
Step
control
instruction
Message
instruction,
etc.
Data
instruction
Debug
instruction
06
07
08
09
05
CJ
LD=
MOV
ADD
DECO
RCR
MSGT
DATA B
SLT
JMP
LD< >
DMOV
SUB
ENCO
RCL
MSGR
DATA M
SLTR
FEND
LD>
CML
MUL
SUM
ROR
OPDF
IRET
LD<=
BMOV
DIV
BCD
ROL
CALL
AND=
FMOV
INC
BIN
SFTR
UMEXE
AND< >
XCH
INCP
DBCD
SFTL
UMEND
AND>
DMPX
DEC
DBIN
NRCR
UM
AND<=
MPX
DECP
DSUM
NRCL
URET
OR=
XFR
WAND
ASCI
NROR
LOOP
OR< >
DT
WOR
HEX
NROL
CONT
OR>
DCML
WXOR
SEC
NSFR
OR<=
DXCH
WXNR
HMS
NSFL
DCMP
DFMOV
DADD
DNRCR
CMP
DSUB
DNRCL
DMUL
DNROR
DDIV
DNROL
Group name
Tens
digit
Unit
digit
10
Comparison
instruction 2
Comparison
instruction 3
11
12
Arithmetic File
and logic
instruction
instructions 2
13
SC
STRAR
14
STRA
15
16
17
Pulse
output
instruction
Convenience
instruction
18
19
RAMP
LDD=
LD<
DINC
FFST
ECMP
EADD
TCMP
PLS1
LDD< >
LD>=
DINCP
FIFO
EZCP
ESUB
TZCP
DPLS1
LDD>
AND<
DDEC
FILO
EMUL
TADD
PLS2
LDD<=
AND>=
DDECP
EDIV
TSUB
DPLS2
ANDD=
OR<
DAND
FLT
ESQR
TRD
PWM1
ABSD
ANDD< >
OR>=
DOR
DFLT
TWR
PWM2
INCD
ANDD>
LDD<
DXOR
INT
SIN
PLSI
MTR
ANDD<=
LDD>=
DXNR
DINT
COS
DPLSI
ORD=
ANDD<
EBCD
TAN
PLSA
DSW
ORD< >
ANDD>=
EBIN
DPLSA
SEGL
ORD>
ORD<
ORG
ORD<=
ORD>=
DORG
ZCP
DZCP
E
F
3-26
PID
Instruction
identifier
Name
FNC No.
Instruction
identifier
Name
0A0
PRC
0B0
SINGL
0A1
E_PRC
0B1
D_SLC
Selection branch
start instruction
0A2
M_END
0B2
C_SLC
Selection confluent
start instruction
0A3
SPRC
0B3
D_SIM
0A4
E_SPR
0B4
C_SIM
0A5
Reserved
0B5
E_TRN
0A6
Reserved
0B6
STL
0A7
Reserved
0B7
STLC
0A8
Reserved
0B8
SET
Transfer instruction
0A9
ACEXE
0B9
SLCT
0AA
ACFUN
0BA
JUNC
0AB
E_AC
0BB
0AC
CLOSE
Process end
0BC
SIMUL
0AD
CALLA
Sub-process call
0BD
SYNL
0AE
SRET
Sub-process return
0BE
SYNLC
0AF
OUT
0BF
SYNC
3-27
Reserved
Program
flow
instruction
Tens
digit
Unit
digit
00
Comparison Transfer
Arithmetic
Conversion Rotation
instruction 1 instruction, and logic
instruction instruction
instructions 1
etc.
01
02
03
04
CJ
LD=
MOV
ADD
DECO
RCR
JMP
LD< >
DMOV
SUB
ENCO
RCL
FEND
LD>
CML
MUL
SUM
ROR
IRET
LD<=
BMOV
DIV
BCD
ROL
CALL
AND=
FMOV
INC
BIN
SFTR
UMEXE
AND< >
XCH
INCP
DBCD
SFTL
UMEND
AND>
DMPX
DEC
DBIN
NRCR
UM
AND<=
MPX
DECP
DSUM
NRCL
URET
OR=
XFR
WAND
ASCI
NROR
LOOP
OR< >
DT
WOR
HEX
NROL
CONT
OR>
DCML
WXOR
SEC
NSFR
OR<=
DXCH
WXNR
HMS
NSFL
DCMP
DFMOV
DADD
DNRCR
CMP
DSUB
DNRCL
DMUL
DNROR
DDIV
DNROL
Data
instruction
Debug
instruction
06
07
08
09
SC
MSGT
DATA B
MSGR
DATA M
Group name
Tens
digit
Message
instruction,
etc.
05
Unit
digit
Step
control
instruction
10
11
12
13
14
15
16
17
Pulse
output
instruction
Convenience
instruction
18
19
RAMP
LDD=
LD<
DINC
FFST
ECMP
EADD
TCMP
PLS1
LDD< >
LD>=
DINCP
FIFO
EZCP
ESUB
TZCP
DPLS1
LDD>
AND<
DDEC
FILO
EMUL
TADD
PLS2
LDD<=
AND>=
DDECP
EDIV
TSUB
DPLS2
ANDD=
OR<
DAND
FLT
ESQR
TRD
PWM1
ABSD
ANDD< >
OR>=
DOR
DFLT
TWR
PWM2
INCD
ANDD>
LDD<
DXOR
INT
SIN
PLSI
MTR
ANDD<=
LDD>=
DXNR
DINT
COS
DPLSI
ORD=
ANDD<
EBCD
TAN
PLSA
DSW
ORD< >
ANDD>=
EBIN
DPLSA
SEGL
ORD>
ORD<
ORG
ORD<=
ORD>=
DORG
ZCP
DZCP
E
F
3-28
PID
Program
flow
instruction
Tens
digit
Unit
digit
00
CJ
Comparison Transfer
Conversion Rotation
Arithmetic
instruction 1 instruction, and logic
instruction instruction
instructions 1
etc.
01
LD=
02
MOV
03
04
Step
control
instruction
Message
instruction,
etc.
Data
instruction
Debug
instruction
06
07
08
09
Rotation
instruction
Step
control
instruction
Message
instruction,
etc.
Data
instruction
Debug
instruction
05
06
07
08
09
05
ADD
RCR
SUB
RCL
LD< >
LD>
LD<=
AND=
AND< >
AND>
AND<=
OR=
WAND
OR< >
WOR
OR>
WXOR
OR<=
WXNR
SC
C
D
E
F
Program Comparison
instruction 1
flow
instruction
Tens
digit
Unit
digit
00
CJ
JMP
FEND
IRET
CALL
UMEXE
UMEND
UM
URET
01
Transfer
Conversion
Arithmetic
instruction, and logic
instruction
etc.
instructions 1
02
MOV
03
04
ADD
RCR
SUB
RCL
9
A
B
C
D
E
F
3-29
SC
Program
flow
instruction
Tens
digit
Unit
digit
00
Conversion
Arithmetic
Comparison Transfer
instruction
instruction 1 instruction, and logic
instruction 1
etc.
01
02
03
04
Rotation
instruction
Step
control
instruction
05
06
ADD
DECO
RCR
SUB
ENCO
RCL
CML
MUL
SUM
LD<=
BMOV
DIV
BCD
AND=
FMOV
INC
BIN
UMEXE
AND< >
XCH
INCP
UMEND
AND>
DMPX
DEC
UM
AND<=
MPX
DECP
URET
OR=
WAND
OR< >
WOR
OR>
WXOR
OR<=
WXNR
CJ
LD=
JMP
LD< >
FEND
LD>
IRET
CALL
MOV
Data
Message
instruction, instruction
etc.
07
08
Debug
instruction
09
C
D
E
F
Program
flow
instruction
Tens
digit
Unit
digit
00
Conversion
Arithmetic
Comparison Transfer
instruction
instruction 1 instruction, and logic
instruction 1
etc.
01
02
03
04
Rotation
instruction
Step
control
instruction
05
06
CJ
LD=
MOV
ADD
DECO
RCR
JMP
LD< >
DMOV
SUB
ENCO
RCL
FEND
LD>
CML
MUL
SUM
ROR
IRET
LD<=
BMOV
DIV
BCD
ROL
CALL
AND=
FMOV
INC
BIN
SFTR
UMEXE
AND< >
XCH
INCP
DBCD
SFTL
UMEND
AND>
DMPX
DEC
DBIN
NRCR
UM
AND<=
MPX
DECP
NRCL
URET
OR=
XFR
WAND
NROR
OR< >
DT
WOR
NROL
OR>
WXOR
NSFR
OR<=
WXNR
NSFL
DCMP
DADD
DSUB
E
F
3-30
SC
Data
Message
instruction, instruction
etc.
07
08
Debug
instruction
09
Program Comparison
instruction 1
flow
instruction
Tens
digit
Unit
digit
00
01
Transfer Arithmetic
Conversion
instruction, and logic
instruction
instructions 1
etc.
02
03
04
Rotation
instruction
Step
control
instruction
Message
instruction,
etc.
Data
instruction
Debug
instruction
05
06
07
08
09
CJ
LD=
MOV
ADD
DECO
RCR
MSGT
DATA B
SLT
JMP
LD< >
DMOV
SUB
ENCO
RCL
MSGR
DATA M
SLTR
FEND
LD>
CML
MUL
SUM
IRET
LD<=
BMOV
DIV
BCD
CALL
AND=
FMOV
INC
BIN
UMEXE
AND< >
XCH
INCP
UMEND
AND>
DMPX
DEC
UM
AND<=
MPX
DECP
URET
OR=
WAND
OR< >
WOR
OR>
WXOR
OR<=
WXNR
C
D
E
F
3-31
OPDF
STRA
STRAR
<Ladder diagram>
<Mnemonic notation>
X30
Step No.
Y1F
=
>
WX1
WY0
30
WM1
LD
X30
AND=
WX1
K30
OR>
WY0
WM1
OUT
Y1F
END
<Key operation>
<Screen>
(Initial screen)
RD
V .
WR
NOP
NOP
LD
LD
LD
003
LD
030
WR
X30
LD
X
LD
X
MPP
3
NOP
0
3-32
GO
Stores instruction.
X30
=
WX1
30
FNC
NOP
0
LD
NOP
LD
FNC
LD
FNC
030
030
030
000
MPS
1
RST
4
,
SP
LD
FNC
030
LD
FNC
014
AND=
014
AND=
014
AND=
001
030
W
Inputs device identifier of word area.
LD
X
MPS
1
,
SP
014
WX
AND=
AND=
3-33
014
WX
01
K/H
MPP
3
>
WY0
30
1 AND=
1 AND=
Stores instruction.
X30
= WX1
NOP
0
GO
1 AND=
30
30
30
4 NOP
FNC
30
4 FNC
WM1
NOP
0
W
4 FNC
000
MPS
1
MC
A
4 FNC
,
SP
001
30
4 FNC
01A
4 OR>
01A
3-34
30
OR>
0 1A
W
LDI
Y
NOP
0
OR>
01A
WY
,
SP
OR>
01A
WY
OR>
OR>
00
W
Inputs device identifier
of word area.
AND
M
MPS
1
GO
Y1F
X30
=
>
WX1
WY0
30
OR>
,
WM
Stores instruction.
OUT
C
LDI
Y
OR>
,
WM001
WM001
7
NOP
OUT
OUT
WM000
WM1
WM001
3-35
MPS
1
W M 0 01
7
OUT
001
OUT
01F
01F
01F
GO
END
GO
Stores instruction.
Y1F
X30
=
>
Stores instruction.
WY0
WX1
30
WM1
END
3-36
W M 0 01
OUT
NOP
OUT
END
END
NOP
<Mnemonic notation>
<Ladder diagram>
Step No.
X30
XFR WM0000H WL0001H
LD
X30
XFR
WM000H
END
The XFR instruction is to transfer of the eight high- or low-order bits of the transfer source to the eight high- or low-order
bits of the transfer destination. Selection between high and low can be made with
HELP
For example, transfer of data the eight high-order bits of WM0 to those of WL1 is done as follows:
WM0
WL1
<Key operation>
FNC
<Screen>
NOP
0
MRD
2
SET
8
,
SP
LD
FNC
LD
FNC
3-37
030
030
000
LD
FNC
LD
FNC
028
XFR
028
XFR
028
030
002
030
AND
M
HELP
OR
L
028
XFR
028
XFR
028
WM000H
XFR
XFR
XFR
WL
HELP
Stores instruction.
WM000L
MPS
1
GO
XFR
WM
NOP
0
SP
XFR
WL0 0 1 L
XFR
WL001 H
WL 0 0 1 H
4
3-38
NOP
<Ladder diagram>
<Mnemonic notation>
Step No.
X30
E+ D10 -1.2345E-12 D20
LD
X30
EADD
D10
END
-1.2345E-12
D20
<Key operation>
<Screen>
W
FNC
NOP
EADD
EADD
EADD
0 3 0
1 6 0
SP
E + 0 0
EADD
,
1. E + 0 0
ORB
E
LD
SP
MPS
1
PLF
5
EADD ,
1. 2 3 4 5 E + 0 0
EADD ,
-1. 2 3 4 5 E + 0 0
EADD ,
-1. 2 3 4 5 E + 0 0
a
3-39
MPS MRD
1
2
EADD
-1. 2 3 4 5 E + 1 2
EADD
-1. 2 3 4 5 E - 1 2
EADD
NOP
, ,
SP
GO
D0020
* The number of input digits is the mantissa part six digits, and exponent part two digits.
Input it again pushing
ORB
,
E
ORB
key.
E
3-40
<Ladder diagram>
X0
M1
<Mnemonic notation>
Y4
M0
Step No.
0
Y4
Y5
Y5
Y6
Y6
MOV -1
18
WY2
END
3-41
Ins. word
LD
MPS
ANI
MPS
Device
X0
M1
ANI
M0
OUT
Y4
MPP
AND
MPS
Y4
OUT
10
MPP
11
AND
Y5
12
OUT
Y6
13
MPP
Y5
14
AND
Y6
15
MOV
K-1
18
END
WY2
M1
M0
Y4
Y4
Y5
Y5
Y6
Change to
Y5
Y6
MOV -1 WY2
END
Press
or
6
7
MPP
AND
Y4
ANI
S
6
7
MPP
ANI
LDI
Y
6
7
MPP
ANI
PLF
5
6
7
MPP
ANI
005
GO
Stores instruction.
(change completed)
7
8
ANI
MPS
005
3-42
M1
M0
Y4
Y5
Y5
Y6
Y6
MOV -1 WY2
-1
HFFFF
END
Press
or
K/H
15
MOV
15
MOV
020
K-1
K/H
020
H
Sets hexadecimal
number FFFF.
15
MOV
15
MOV
020
H FFFF
GO
Stores values.
(change completed)
3-43
WY 02
Sequence instructions and data instructions can be added to a program and the subsequent step numbers incremented. In
this case, perform the same operation as for writing in insert mode.
Basic operation
Insert mode
Press
INS
STEP A
INSTRUCTION A
STEP B
INSTRUCTION B
<Mnemonic notation>
M23
X10
Step No.
49
END
51
49
LD
X10
50
OUT
M23
51
END
Insert instruction.
Program 2)
<Ladder diagram>
X10
X12
<Mnemonic notation>
M23
Step No.
49
52
END
49
LD
50
AND
X10
X12
51
OUT
M23
52
END
3-44
<Key operation>
50
INS
DEL
Either upper or
lower key
operation gives
the same result.
Sets insert
mode.
STEP
<Screen>
GO
STEP No.
I
50
OUT
M0023
50
51
AND
OUT
X 012
M0023
50
STEP
GO
STEP No.
LD
X
MPS
1
DEL
Sets insert
mode.
AND
M
INS
MRD
2
GO
Note
Final step of the CPU program memory for each type:
SPB
Step 3965
(NW0P20/30)
SPB
Step 8061
(NW0P40/60)
NB0
Step 319
NB0 U
Step 999
NB-E
Step 999
(NB2-P24/36, NB2U24/36)
NBStep 8061
(NB other than the aboves)
NB3
Step 3965
NJ (A8 type)
Step 8061
NJ (E4 type)
Step 3965
NJ (B16 type)
Step 15869
NJ (B32 type)
Step 32637
NS (32 type)
Step 32637
NS (64 type)
Step 65405
Wait
Insert
Final
instruction
Program memory
If an attempt is made to insert an instruction when the above final step contains an instruction, a message
MEMORY OVER appears and insertion is not executed. Take care to avoid this error.
3-45
Sequence and data instructions can be deleted from a program and the subsequent step numbers decremented. In this
case, operation is made in delete mode.
Basic operation
Delete mode
INS
1) Press the
DEL
2) Press the
3) Press the
key twice.
or
GO
STEP C
INSTRUCTION C
STEP D
INSTRUCTION D
<Mnemonic notation>
M23
X12
Step No.
49
END
52
49
LD
50
AND
X10
X12
51
OUT
M23
52
END
Program 2)
<Ladder diagram>
Step No.
49
51
<Mnemonic notation>
M23
X10
END
49
LD
X10
50
OUT
M23
51
END
3-46
INS
INS
DEL
DEL
Either upper
or lower key
operation
gives the
same result.
Set delete
mode.
PLF
5
STEP
STEP
PLF
5
<Screen>
NOP
0
GO
NOP
0
GO
INS
INS
GO
50
AND
50
OUT
M0023
INS
DEL
012
GO
Press
DEL
DEL
key twice.
3-47
STEP
SP
STEP NO.
STEP
STEP NO.
GO
Program 1)
<Ladder diagram>
<Mnemonic notation>
YC
X0
Step No.
0
X1
X2
YD
Delete here.
5
END
LD
X000
OUT
Y00C
LDI
X001
ANI
X002
OUT
Y00D
END
Program 2)
<Ladder diagram>
<Mnemonic notation>
YC
X0
Step No.
END
LD
X000
OUT
Y00C
END
<Key operation>
<Screen>
2
INS
DEL
INS
STEP
DEL
Step No.
SP
D
1
AREA
OUT
D
1
AREA
OUT
00C
00C
4
STEP
Step No.
Performing
deletion.
GO
Deletion
processing
completes.
D
2
END
As the deletion processing
by the CPU completes,
the instruction which had
been next to the deletion
range end step moves up
to the step which had been
the deletion range first step.
Program 1)
<Ladder diagram>
<Mnemonic notation>
Y10
X0
Step No.
0
X1
X3
Y11
Y12
END
Ins. word
Device
LD
X000
OUT
Y010
LD
X001
AND
X003
OUT
Y011
LD
X002
OUT
Y012
END
Program 2)
<Ladder diagram>
<Mnemonic notation>
Y10
X0
Step No.
0
Y12
X2
5
END
LD
X000
OUT
Y010
NOP
NOP
NOP
LD
X002
OUT
Y012
END
<Key operation>
<Screen>
or
RD
WR
1
2
OUT
LD
Y
X
010
001
1
2
OUT
NOPK
010
NOP
key.)
NOP
0
K/H
RST
4
GO
3-49
This operation can be executed regardless of step displayed on the Handy Loader.
Note: NOP cannot be deleted while running PC.
Basic operation
INS
DEL
INS
DEL
<Screen>
NOP
0
GO
NOP
DELETE
D
0
LD
<Mnemonic notation>
YC
X0
Step No.
0
2
NOP
NOP
NOP
END
Ins. word
Device
LD
X000
OUT
Y00C
NOP
NOP
NOP
END
Program 2)
<Ladder diagram>
<Mnemonic>
YC
X0
Step No.
END
3-50
000
Program 1)
<Ladder diagram>
LD
X000
OUT
Y00C
END
3-7-5 Writing NOP instructions at one time (program memory all clear)
NOP instructions are written in all steps of program memory.
<Key operation>
RD
WR
RD
NOP
0
WR
<Screen>
MC
A
GO
ALL
CLEAR ?
OK
[GO]
GO
NOP
Note: The same result is also obtained when the program clear is executed in memory clear of the auxiliary function.
Program memory
Program memory is the memory which contains an instruction procedure executed by
Program memory
the CPU. When any program is not yet written in this memory (that is, immediately after
a customer purchased a product), NOP instructions are written in all steps in the
program memory.
All clear of the program memory also results in writing NOP instructions in all steps.
3-51
P
NO P
NO
This section describes the basic operation of using the Handy Loader to read a program and search for an instruction.
RD
WR
INS
or
DEL
at the initial screen after power has been turned on to make the Handy Loader read
Basic operation
On the initial screen
Press
Press
Press
Press
RD
WR
RD
RD
WR
INS
DEL
WR
INS
INS
DEL
DEL
* Reading a program step is enabled in any mode: Read, Write, Insert, or Delete.
Press the mode key
RD
WR
or
INS
DEL
after the data check is finished in the monitor mode or the data setting is completed
000
K 0
K 5000
RD
WR
INS
LD
000
LD
000
DEL
3-52
Basic operation
Press the
Press the
<Screen>
(Initial screen)
RD
WR
Specifies mode.
(Step 0 appears.)
Reads step 1.
Reads step 2.
Return to step 1.
3-53
LDI
X 000
0
1
LDI
AND
X 000
X 005
1
2
AND
OUT
X 005
Y 00C
0
1
LDI
AND
X 000
X 005
Basic operation
STEP
GO
Step No.
NOP
0
SET
8
STEP
MCR
6
<Screen>
MPS
1
GO
R
8061
NOP
Note
If an attempt is made to read a step exceeding the program memory, the message STEP OVER ERROR appears.
Example: Suppose that you are programming using NW0P30 series PC. Effective steps for NW0P30 are 0 to 3965.
The current screen is;
R
0
1
LD
AND
X
X
000
001
STEP
PLS
9
MPP
3
MCR
6
MCR
6
GO
R
STEP OVER ERROR
HELP
Press
HELP
or
CLR
3-54
MEMORY
0-3965
Basic operation
RD
WR
Device identifier
SP
GO
Device address
The key operation to read the device X0 in the following program is given below:
<Ladder diagram>
YC
X0
0
Step No.
X2
X0
<Mnemonic notation>
M1
YE
3
M0
YF
X0
X1
END
LD
OR
X0
X2
OUT
YC
LDI
X0
OR
M0
AND
M1
OUT
YE
LD
X0
ORI
X1
OUT
YF
10
END
3-55
<Key operation>
<Screen>
In read mode
SP
LD
X
NOP
0
DVC
R
DVC
DVC
000
GO
GO
GO
GO
3-56
LD
000
LDI
000
LD
000
FIND
PRGM
CAN T
Basic operation
RD
WR
GO
Device
[Instruction] key
<Mnemonic notation>
Step No.
YC
X0
0
X2
YE
X3
3
M0
X2
YF
X1
7
LDI
ORI
X0
X2
OUT
YC
LD
X3
ORI
M0
ORI
X2
OUT
YE
LDI
X1
ORI
X2
OUT
YF
10
END
X2
10
END
3-57
<Key operation>
<Screen>
In read mode
ORI
T
LD
X
MRD
2
R
INS .
ORI
INS .
ORI
ORI
X 002
ORI
X 002
ORI
X 002
ORI
X 002
FIND
PRGM
R
INS .
GO
GO
GO
GO
3-58
CAN T
<Ladder diagram>
<Mnemonic notation>
X0
Step No.
MOV 0
WM10
X1
MOV -1
WM11
LD
X0
MOV
K0
LD
X1
MOV
K-1
<Key operation>
WM10
WM11
<Screen>
In read mode
R
FNC
INS .
FN C
INS .
FNC
020
MOV
020
MOV
020
MOV
020
MRD
2
GO
NOP
0
Pressing the
or
keys to go to
GO
GO
R
CAN T
3-59
FIND
PRGM
<Screen>
In read mode
P/I
MPS
1
GO
POINTER
POINTER
0 1
0 1
10
<Screen>
P/I
POINTER
POINTER
POINTER
I 0 1 0 0
20
I 0 1 0 0
P/I
MPS
1
GO
NOP
0
NOP
0
3-60
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
<Ladder diagram>
X0
Y3
Ins. word
Device
LD
X0
OR
X1
OUT
Y3
END
Step No.
X1
END
STEP
GO
STEP No.
M
Sets monitor
mode.
GO
STEP No.
OUT
STEP
Y003
Blank : OFF
: ON
Monitor
mode
STEP
Press
MNT
TEST
Sets monitor
mode.
STEP No.
GO
key.
LD
000
OR
001
Note
When timer and counter instructions are being monitored by a conductivity check, it appears that those instructions
result in the same operation as the normal OUT instruction. (The instructions are synchronised with condition
contacts.)
4-1
4-1 Monitoring
MNT
SP
TEST
Device identifier
Device address
GO
MNT
SP
TEST
LD
X
NOP
0
Monitor
mode
GO
000
Blank : OFF
: ON
Press
or
<Key operation>
000
001
000
001
0 02
000
001
002
003
002
003
004
* Up to four bit devices (except up to two for the data register and only one
for the timer or counter) can be monitored on a single screen.
M
4-2
002
003
004
005
4-1 Monitoring
8 7
4 3
2 1
D10
Monitoring here.
10
Device identifier
Word address
MNT
SP
TEST
Press
or
GO
Bit address
SP
D00105
F
-2
15
E
2
14
D
2
13
C
2
12
B
2
11
A
10
9
2
8
9
7
8
6
7
5
6
4
5
In the above example, when bit 5 of D10 is turned on, word data of D10 is 25=32.
4-3
3
4
2
3
1
2
0
1
4-1 Monitoring
<Key operation>
MNT
SP
TEST
AND
M
MPS
1
NOP
0
GO
W M 0 1 0
K0
<Key operation>
MNT
SP
TEST
ANB
D
MPS
1
NOP
0
D 0 0 1 0
GO
Word area is monitored in decimal.
Pressing
HELP
4-4
D0010
H0005
K5
4-1 Monitoring
<Ladder diagram>
<Mnemonic notation>
Ins. word
M300
Device
LD
M300
MUL
D0
X D0 D1 D10
D1
D10
D1
D0
1234
D11
D10
56
69104
Numeric data is expressed by 2 s complement. When data is expressed as 32-bit data, the weighting is as follows:
D11
F
-2
31
E
2
30
D
2
29
C
2
28
B
2
27
A
26
9
2
25
8
2
24
23
22
21
20
19
2
2
18
17
16
D10
F
2
15
E
2
14
D
2
13
C
2
12
B
2
11
A
2
10
9
2
8
2
expressed by two
7
8
6
7
5
6
4
5
4-5
3
4
2
2
1
2
0
1
word devices.
0
4-1 Monitoring
Perform the key operation below to monitor the multiplication results on the previous page.
MNT
TEST
HELP
STR
0
Inputs device
D0010
GO
HELP
ANB AND
D
1
Press
SP
D0011
D0010
K 69104
or
D10
is monitored:
D 0 0 0 F
D000E
K
233832448
D0011
K
D0013
D000F
D000E
H0DF00000
D0011
D0010
H 0 0 010DF0
D0013
D0012
H 0 0 0 0 0 0 0 1
HELP
D0010
69104
HELP
D0012
K 1
HELP
4-6
D1 2 .
4-1 Monitoring
TEST
SP
MPS
1
NOP
0
HELP
<Screen>
ANB
D
D 0 0 1 1
D0010
K 983815946
D 0 0 1 1
D0010
H 3 A A 3 D7 0 A
D 0 0 1 1
D0010
1.2 5 0 0 0 E - 0 3
GO
Call D10 and D11.
HELP
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
SP
TEST
000
K
K
GO
1 55
T 000
20 0 0
2 0 00
2 000
Counter instruction
MNT
TEST
SP
000
K
K
2
100
GO
000
1 00
1 00
Counter count-up.
Counter setting value
T010
NO
K0
SETTING
001
K0
K 500
4-8
WM000
4-2 Test
The test function allows the Handy Loader to forcibly turn on and off the PC data memory contents.
Note: When using the test function, read out the device in monitor mode to enter test mode.
MNT
SP
TEST
Device
GO
Sets monitor
mode.
MNT
TEST
Sets test mode.
SET
8
Forced ON
RST
4
Forced OFF
Note: the forced ON/OFF function is effective only for devices marked by
on the screen,
<Key operation>
MNT
SP
TEST
MNT
TEST
AND
M
<Screen>
NOP
0
SET
8
GO
forcibly on.
At that time, ON status is not displayed on the loader screen and the input LED
lamp X
on the PC is not lit. For this reason, see the PC processing on the
next page.
4-9
M0 0 0 0
M0 0 0 0
X 00 1
4-1 Monitoring
PC processing
The PC executes various types of instructions in the program memory sequentially from the first step, seizes input
signals from input terminals, writes instruction execution results in memory as output signals, and performs internal
processing, such as communication and self-diagnosis etc.
The PC repeats the above processing cycle.
Seizing input signals
1) PC internal processing
input relay area. The device forcibly turned on by timing 1) seizes the
real input signal (the signal from an input device connected to the
PC) by timing 4) in the same scan.
In this case, the contents of the device forcibly turned on are
rewritten instantaneously.
In addition to the input relay area, devices connected to input device
is rewritten in the next scan upon seizing input signals by timing 4),
1 scan
2) Executing instructions
in program memory
4) Seizing input
processing
1) PC internal processing
2) Executing instructions
in program memory
4-10
4-1 Monitoring
In this way, the forced ON/OFF function is effective only for a moment before device is rewritten by a program. Using this
function for the input contact of the SET or RST instruction causes the same operation as if the input devices are actually
connected to the PC input terminal and operated.
Example: In the following program, turning forcibly X0 causes y10 to be on.
X0
Y10
)S)
M0000
(
)
X1
X2
C0
[ CTR
1 ]
[ CRst
X3
MNT
Device
SP
TEST
GO
MNT
SP
TEST
K/H
Decimal number
K/H
Note: Press
HELP
K/H
Hexadecimal number
If decimal mode is set, a setting in hexadecimal is converted to decimal, and decimal data is displayed.
4-11
4-1 Monitoring
<Key operation>
MNT
ANB
D
SP
TEST
NOP
0
GO
D0000
K0
D0000
K0
D0000
H FFFF
D0000
K-1
MNT
TEST
a,
SP
K/H
K/H
GO
4-12
4-1 Monitoring
<Mnemonic notation>
<Ladder diagram>
Ins. word
M300
/ D0 D2 D10
D1
Device
LD
M300
DIV
D0
D2
D0
/
D2
D10
D11
D10
D13
D12
Quotient
1234
Remainder
-2
31
30
29
28
27
26
25
24
23
22
21
20
19
2
18
17
16
D0
F
15
14
D
13
12
11
10
is expressed by
7
8
6
7
5
6
4
5
4-13
3
4
1
2
0
1
4-1 Monitoring
Follow the key operation below to set dividend for the division instruction on the previous page.
MNT
TEST
SP
HELP
ANB NOP
D
0
GO
D0 000
D0001
D0 000
K0
MNT
TEST
,
SP
K/H
D0001
K0
or
D0 0 00
4-14
GO
4-1 Monitoring
MNT
HELP
SP
TEST
GO
Devise
MNT
Decimal number
SP
TEST
ORB
E
Hexadecimal number
GO
Example) Data register: Change the current value of D10 and D11.
MNT
TEST
NOP
0
ANB
D
HELP
SP
MPS
1
M
GO
D00 11
0.
D0 010
0 0 000E+00
MNT
D0 010
0. 0 0 0 0 0 E + 0 0
SP
TEST
D 0 01 1
MRD
2
MPP
3
-
ORB
E
RST
4
PLF
5
GO
D0011
2.
4-15
D 0 0 10
3 4 0 0 0E -05
4-1 Monitoring
MNT
GO
SP
TEST
MNT
SP
TEST
K/H
Decimal number
K/H
K/H
GO
GO
Hexadecimal number
Note: For timer/counter numeric data, hexadecimal display mode is not available. (Even if
HELP
Example: Perform the key operation below to change timer: T0 setting value to decimal number 99 .
MNT
ORI
T
SP
TEST
NOP
0
GO
TEST
000
K 0
K
5 00
Monitor T0.
MNT
000
K 0
SP
500
K/H
PLS
9
PLS
9
GO
000
K 99
K
Input decimal 99 .
4-16
500
4-1 Monitoring
MNT
SP
TEST
GO
MNT
TEST
SP
SP
K/H
Decimal number
GO
Note: For timer/counter numeric data, hexadecimal display mode is not available. (Even if
HELP
Example: Perform the key operation below to change timer: T0 setting value to decimal 999.
MNT
ORI
T
SP
TEST
NOP
0
GO
TEST
000
K
K
500
Monitor T0.
MNT
SP
SP
000
K
K
500
K/H
PLS
9
PLS
9
PLS
9
GO
4-17
000
K
K
999
4-1 Monitoring
4-2-7 Changing the setting value area of timer/counter using indirect setting
The N-series PCs timer/counter instruction can specify any word device as a setting value. (Indirect specification)
Basic operation
MNT
GO
SP
TEST
SP
SP
MNT
TEST
GO
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.
MNT
ORI
T
SP
TEST
NOP
0
GO
TEST
000
K
K
500
Monitor T0.
MNT
SP
SP
000
K
K
500
AND
M
NOP
0
GO
000
K
T0 setting value
4-18
K
0
WM 0 0 0
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-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
The PC starts running when it is powered on. The Handy Loader allows starting and stopping of a connected PC. If the PC
start/stop function is executed on the Handy Loader while the PC is running, the PC stops; and if the function executed
while the PC is stopped, the PC starts up.
<Key operation>
<Screen>
HANDY LOADER
NW0H NE
AUX
GO
GO
1 RUN / S T O P SW
GO
GO
STOP
OK
PC
[GO]
STOP
COMPLETION
AUXILIARY
CLR
AUXILIARY
PC
R U N /S TOP S W
PC START
OK
PC
[GO]
START
EXECUTING
PC
START
COMPLETION
* Press
AUX
RD
WR
INS
DEL
or
MNT
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
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
AUXILIARY
AUX
PROGRAM CHECK
PROGRAM CHECK
GO
EXECUTING
..................................
Yes.
Program error?
There is an error
in the program.
No.
User program
contains no error.
PROGRAM CHECK
1
ERR COD
PROGRAM CHECK
20
NO ERROR
and
to display any program error at a preceding step. Up to six program errors can be stored in memory.
5-2
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
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
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
23
24
FF
The data for the result of compilation exceeds the compile area.
5-3
2) FLEX-N series
Instruction
RAS code
Contents
NB0
00
Normal
01
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
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
20
23
Too many ANB or ORB instructions are specified, and a stack error results.
(Max. 8 rows)
24
5-4
NB
NJ
NS
Parameters are set for using expanded functions in addition to the standard functions.
Parameters are assigned to the PC memory area according to the PC type. This section explains how to set parameters
using the Handy Loader.
For the details of each parameter, see the SOFTWARE USERS MANUAL of PCs (SPB-, NS-, NJ-, and NB-series).
<Key operation>
<Screen>
AUXILIARY
AUX
PARAMETER
GO
Selects parameter setting.
MRD
2
PARAMETER
GO
02
H0000
RET
7
INV
B
PARAMETER
GO
02
H007B
GO
GO
Executes.
PARAMETER SET
COMPLETION
* Press the
or
Notes
Some parameters are effective as soon as they are set, while others require power to be reset or PC to be restarted
(RUN
STOP
RUN) before becoming effective.
Parameters that require power reset:
EEPROM operation mode
Battery backup error monitoring
Data latch clearance
Communication adapter setting (SPB-series)
5-5
Parameters
Parameters enable the PC to be used flexibly for a variety of purposes. The PC can be used without the user setting
parameters (the defaults are in effect). However, if the default settings of the parameters do not meet the users
requirements, the user may specify different parameters.
Parameters can be set by using a program loader. The following table lists the parameters of the PC.
(1) SPB-series
Address Item
Default
Setting range
00H
01H
0: 250ms
N x 10ms,
N: 0 to 19H (0 to 25)
(0: 250ms)
02H
0: Normal scan
N x 1ms,
N: 0 to FFH (0 to 255)
(0: Normal scan)
03H
PC operation mode
Backup battery
error monitoring
(2 bit)
0: Monitor
battery error
0: Do not clear
System stop at
nonfatal error(4 bit)
0: No stop
No stop or Stop
0: Turn OFF
outputs and
refresh inputs
Turn OFF outputs and refresh inputs or Stop data memory and output
latches
Remote RUN/STOP
(1 word)
05H
Not used
06H
07H
08H
Relay/register latch
range (3 words)
09H
0AH
0BH
Not used
0CH
0D
High-speed
counter
0EH
Not used
0FH
to
1EH
Input filtering
time
1FH
to
4FH
Not used
50H
to
53H
Communication adapter
0: No remote
RUN/STOP
0: Not specified
0: Not specified
Whether or not to use high-speed counter and the mode of high-speed counter
can be specified.
Loader
communication
mode
* Please refer to the users manual <FEH400 Section 4-3 Parameter Setting> for the set method.
5-6
(2) N-series
Setting range
Address Item
Default
NB
NJ
NS
00H
01H
0: 250ms
02H
N x 1ms
N: 0 to FFH(0 to 255)
(0: Normal scan)
03H
PC operation mode
N x 256 words,
N x 256 words,
A8 N: 00 to 1FH (0 to 31)
E4 N: 00 to 0FH (0 to 15) A64, B64 N: 0 to 80H (0 to 128)
B16 N: 00 to 3DH (0 to 61) A32, B32 N: 00 to 7FH (0 to 127)
Nx 10ms,
N: 0 to FFH (0 to 255)
(0: 2560ms)
N x 10ms,
N: 0 to 19H (0 to 25)
(0: 250ms)
Number of occupied
I/O points of option
module
0: 64 points
(32I+32O)
EEPROM operation
mode
0: Enables
EEPROM writing
0: Monitors
battery error
0: Do not clear
System stop at
nonfatal fault
0: No stop
No stop or Stop
* (Whether or not the PC is stopped when a nonfatal fault occurs can be specified.)
0: Turn OFF
outputs and
refresh inputs
Turn off outputs and refresh inputs , or Stop data memory hold and Stop
output hold
04H
Remote RUN
(1 word)
0: No remote RUN
05H
Remote STOP
(1 word)
0: No remote
STOP
06H
to
09H
0AH
0BH
Not used.
* For setting of EEPROM operation mode, refer to the chapter for the memory cassette.
5-7
Address Item
Default
Setting range
NB
0CH
0: Not specified
NJ
0DH
to
0EH
Operation mode 0:
of high-speed
High-speed
counter built in
response
the NB-series
Supporting
two-phase
No auto reset
0FH
to
27H
Digital input
signal filtering
time
28H
to
2EH
Digital input
signal filtering
time
2FH
I/O module
address
assignment
mode
0/1:
High-speed/low-speed
response
Two-phase operation/onephase
No auto reset/auto reset
Not used.
NJ-series : 16 points
NS-series: 32 points
Number of
0: No arbitrary
occupied I/O
assignment
module points for
arbitrary
assignment
50H
RS-232C port
setting (only B
type CPU is
effective)
Not used.
Not used.
0: Automatic
assignment and
unused slot.
30H
to
40H
NS
Not used.
Not used.
* Please refer to the following user s manual for the set method.
(1) NB series Software <LEH923> 4-5 Parameter setting
(2) NJ series Software <LEH925> 3-4 Parameter
(3) NS series Software <LEH927> 3-4 Parameter
5-8
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.
<Key operation>
<Screen>
AUXI L I A R Y
AUX
PASSWORD
PASSWORD
GO
SET
Selects password.
PASSWORD SET
GO
Selects 1 SET (registration).
NOP
0
NOP
0
NOP
0
NOP
0
GO
Executes.
PASSWORD SET
COMPLETION
Note
The password must be decimal 4 digits. Passwords of 1, 2, or 3 digits are invalid.
PASSWORD SET
5-9
GO
5-4 Password
Initial screen
KEY IN PASSWORD
0612
GO
Executes.
HANDY LOADER
V .
NW0H-NE
AUX
PASSWORD
PASSWORD
GO
CANCEL
PASSWORD
GO
CANCEL
COMPLETION
,
SP
SP
KEY IN PASSWORD
PC ALL CLEAR ?
GO
OK
5-10
[GO]
AUXILIARY
AUX
5 SYSTEM MESSAGE
Set auxiliary mode to move to 5 MSG DISPLAY and executes.
GO
USER
MESSAGE
PROGRAM
ERR
System messages are stored by the PC in the special relay area D8038 to D803F.
If multiple errors occur, the system message for only the last generated error is displayed. A system message list is given
on the next page.
System message area
F
The PC automatically
writes any system
message in this area.
8 7
D 8 0 3 8
(2)
(1)
D 8 0 3 9
(4)
(3)
D 8 0 3 A
(6)
(5)
D 8 0 3 B
(8)
(7)
D 8 0 3 C
(10)
(9)
D 8 0 3 D
(12)
(11)
D 8 0 3 E
(14)
(13)
D 8 0 3 F
(16)
(15)
System message
(1) (2) (3) (4) (5) (6) (7) (8) (9) (10) (11) (12) (13) (14) (15) (16)
5-11
Normal running
Normal stop
System Special
RAS
relay
code
M8000
11
21
26
27
23
Power failure
hold error
Memory card
error
Other
Check
special timing
relay(s)
At power off
M8001
M8030
At power on
At start-up
During running
29
M8001
M8021
At power on
2A
2F
M8001
M8001
M8038
M8038
At power on
2D
M8001
M8038
Battery error
Voltage drop
Battery loose
Operation and
monitoring
User WDT up
WDT UP
35
User nonfatal
fault
At power on
During memory card writing
M8028
M8029
At power on
Constantly
M8001
M8020
During running
37
M8001
M8026
M8010~M802F
During running
36
M8001
M8027
M8130~M814F
During running
45
M8001
M8033
Constantly
User program
error
According to
instruction
RAS code
M8001
*1
M8032
CPU error
System WDT up
Constantly
System RAM
error
At power on
Built-in flash
51
M8001
M8039
memory error
52
M8001
M8039
4E
M8001
M8037
Constantly
4F
M8001
M802C
Constantly
Disconnected or
Disconnected or added
added communication communication adapter during
adapter
operation
PROGRAM ERROR
Simplified CPU link Disconnected station detected or CPU LINK CFG ERR
structure error
structure registered station not yet
connected during simplified CPU
link communication
*1) Please refer to the <Instruction RAS Code List (Page 5-3)> for the Instruction RAS Code .
5-12
At power on
During built-in flash writing
2) FLEX-N series
Item
Normal running
Normal stop
Processor power
shutdown
Message display
NB
NJ/NS
System
RAS
code
Special
relay
Check
Other
special timing
relay(s)
M8000
11
Constantly
Constantly
15
M8001
24V DC error
16
M8001
21
26
27
28
M8001
M8001
M8001
M8001
29
M8001
2A
2F
M8001
M8001
BATTERY ERROR
BAT NOT CONNTED
22
25
M8001
M8028
M8029
Constantly
WDT UP
WDT UP
35
M8001
M8020
During running
37
M8001
M8010 to
M802F
During running
36
M8001
M8030 to
M804F
During running
FUSE FAULT
44
M8001
M8022
M8080 to
M80BF
Constantly
EXPNDER DISCONN
45
Constantly
Expansion unit
disconnect
45
M8001/M8032 M8040 to
M807F
M8001
M8023
Constantly
I/O area
exceeded
46
M8001
At power on
Expansion unit
code setting
error
46
M8001
At power on
4A
Number of
expansion units
exceeded
EXPANDERS OVER
4B
M8001
Module error
47
48
49
M8001/M8024
M8001
M8001
Battery error
Voltage drop
Battery loose
Operation and
monitoring
User WDT up
(Note: 2)
EXPNDER DISCONN
PROGRAM ERROR
ERROR IN STEP
According to
instruction
RAS code
CPU error
M8025
Constantly
At power on
At start-up
During running
M8021
At power on
At power on
At power on
M8001
(Note: 3)
At power on
Constantly
M80C0 to M80FF
System WDT up
At power on
Loader
communication
error
At loader
communication
COM
communication
error
At COM
communication
5-13
8 7
D 8 0 3 0
(2)
(1)
D 8 0 3 1
(4)
(3)
D 8 0 3 2
(6)
(5)
D 8 0 3 3
(8)
(7)
D 8 0 3 4
(10)
(9)
D 8 0 3 5
(12)
(11)
D 8 0 3 6
(14)
(13)
D 8 0 3 7
(16)
(15)
<Screen>
USER MESSAGE
(1) (2) (3) (4) (5) (6) (7) (8) (9) (10) (11) (12) (13) (14) (15) (16)
<Key operation>
AUXILIARY
AUX
MSG DISPLAY
SYSTEM MESSAGE
GO
Displays a system message.
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
0010
2
0011
3
0100
4
0101
5
**** 0000
0
**** 0001
1
**** 0010
2
**** 0011
3
**** 0100
4
**** 0101
5
**** 0110
6
**** 0111
7
**** 1000
8
**** 1001
9
**** 1010
A
**** 1011
B
**** 1100
C
**** 1101
D
**** 1110
E
**** 1111
F
5-15
0110
6
0111
7
1010
A
1011
B
1100
C
1101
D
1110
E
1111
F
AUX
GO
GO
PARAMETER
MPS
1
GO
GO
GO
PARAMETER SET
COMPLETION
User message display data is written in the file register area R0 to RF.
X0
X0
on
off
00
H 0 000
R0
H3058
R1
H7E20
R2
H6F20
R3
H206E
R4
H2020
R5
H2020
R6
H2020
R7
H2020
R8
H3058
R9
H7E20
RA
H6F20
RB
H6666
RC
H2020
RD
H2020
RE
H2020
RF
H2020
5-16
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.
AUX
GO
X0: ON
X0: OFF
USER MESSAGE
USER MESSAGE
X0
X0
ON
OFF
Note: A screen displaying a message is not switched to even if display data (D8030 to D80377) changes. To monitor a
switched screen, the key operation for displaying a user message must be performed again. Turn X0 input on or off,
and after the key operation above, perform the key operation below to display a new message.
CLR
GO
The user program enables to generate fatal and nonfatal faults. At such time, the cause of the error can be easily checked by
checking the displayed user message.
Name
M8130 to M814F
5-17
5-6 RAS
The following types of RAS are provided: system RAS for PC self-diagnosis and external fault diagnosis; instruction RAS
for user instruction diagnosis; and optional RAS for areas possessed by specific optional modules. The PC determines
whether to start or stop itself upon receiving the RAS results.
Contents
Latest RAS
position
Total number
of errors
Minute
Day
Hour
Year
Month
SPB
Remarks
Second
F0
Latest RAS
position
Total number
of errors
2
3
4
NB0
5
6
7
NB
Hexadecimal
0
1
2
3
4
Latest RAS
position
D
E
F
0
NJ/NS
Total number
of errors
Latest RAS
position
Total number
of errors
Minute
Second
Day
Hour
Year
Month
4
5
6
F0
5-18
5-6 RAS
AUX
<Screen>
AUXILIARY
GO
RAS
RA S
GO
NOP
0
GO
SYSTEM
RA S
SYSTEM
RAS
SYSTEM
RA S
S Y S TE M
R AS
00
00
0505
Five errors occurred and their RAS code are stored in RAS address 1 to 5.
In this address, the RAS code of the last generated error is stored.
SYSTEM
RA S
01
0011
Note: Even when the PC function normally, the system RAS area holds data in case of service interruption, retaining RAS
information for the previous error.
In addition, the PC itself recognizes the power voltage drop when the PC power is turned off as an error, and stores
the system code 11 . Thus, RAS code 11 is stored each time the power is turned off.
Voltage
Rated
voltage
Power voltage
drop is recognized.
PC
Power off
5-19
5-6 RAS
AUXILIARY
AUX
R AS
RAS
1
I N S T R RAS
I N S T R RAS
GO
1 E R R COD
or
RAS
RAS
GO
SYSTEM
5-20
20
5-6 RAS
The instruction RAS is stored after program check is performed. The PC starts program check from the first program step.
Errors, if any, are stored sequentially. If the number of errors reaches six, no further errors are stored. This error
information is retained in case of interruption of service, and memory contents are renewed when program check is
performed again.
Program check
Program memory
Error 1)
Error 2)
Error 3)
Contents of instruction RAS area (store error codes and error occurrence step)
Group
Place
to store
Storing order
Contents
Remarks
Number of error 0 to 6
1 Word 1 and 2
2 Word 3 and 4
3 Word 5 and 6
4 Word 7 and 8
Note:
5 Word 9 and A Error code/Error occurrence step
6 Word B and C Error code/Error occurrence step
First word
Second word
5-21
5-6 RAS
AUXILIARY
AUX
RAS
Five times
Set auxiliary mode to move to 6 RAS .
RA S
GO
GO
GO
COMPLETION
5-22
5-6 RAS
AUXILIARY
AUX
RAS
Five times
Set auxiliary mode to move to 6 RAS .
Moves to optional RAS.
RAS
GO
GO
OPTION
OPTION
R AS
RAS
Optional RAS area addresses are assigned within a range from 000 to 7FF.
7 FF
The lower two digits indicate the optional RAS area address.
The highest digit indicates the slot position of the option module.
MPS
1
NOP
0
NOP
0
GO
OPTION RA S
100
1234
and
keys.
OPTION R AS
101
5678
Note:
There is no units which are provided with optional RAS area in NB series. If an attempt to perform optional RAS code
diagnosis, the screen below appears.
OPTION RA S
PARAMETER ERR
The memory cassette and internal memory can be used to save the program in SPB series.
20/30 points unit
Transferred
Processor
from: program memory
Transferred to:
Internal
flash memory
40/60 points unit
Transferred
Flash
from: memory card
Transferred to:
Flash
memory card
Processor
program memory
Processor
program memory
Internal
flash memory
(1) When there is no flash memory card (Transfer to internal flash memory)
AUXILIARY
7
GO
MEM CST XFR
1
PCRAM
PCFLASH
GO
PCRAM
PCFLASH
OK
[GO]
GO
PCRAM
PCFLASH
EXECUTING
PCRAM
PCFLASH
COMPLETION
5-24
AUXILIARY
7
GO
<1. PCRAM
PCRAM
FLASH
PCRAM
FLASH
program memory.
PCRAM
FLASH
PCRAM : FLASH
FLASH>
GO
Selects 1 PCRAM
FLASH
FLASH .
PCRAM
FLASH
OK
[GO]
GO
PCRAM
FLASH
EXECUTING
PCRAM
FLASH
COMPLETION
5-25
<2. PCRAM
FLASH>
GO
Selects 2 PCRAM
PCRAM
FLASH
FLASH .
PCRAM
FLASH
OK
[GO]
GO
PCRAM
FLASH
EXECUTING
PCRAM
FLASH
COMPLETION
GO
PCRAM : FLASH
[GO]
GO
PCRAM : FLASH
EXECUTING
PCRAM : FLASH
COMPLETION
5-26
EEPROM memory
EPROM memory
Processor program
cassette
cassette
memory
EEPROM
memory cassette
EPROM
memory cassette
Processor program
memory
The following memory cassette are available for each FLEX-PC N-series PC:
Memory
cassette
CPU type
EEPROM
EPROM
N-MP1
NN-MBP1
N-MP4
NN-MBP4
N-MP8
NN-MBP8
N-MP16
N-MP32
N-MP64
N-ME1
NN-MBE1
N-ME4
NN-MBE4
N-ME8
NN-MBE8
N-ME32
NB-E
NB-series
x
x
NJ-CPU-A8
NJ-CPU-E4
NJ-CPU-B16
NJ-CPU-B32
NS-A (B)32
NS-A (B)64
NB0
: Usable
x : Unusable
: Unusable within the capacity of memory cassette
5-27
Parameter
03H
OFF
ON
WRITE PROTECT
EEPROM
4KW
OFF
ON
EEPROM
4KW
WRITE PROTECT
In this case, the EEPROM operation is identical to that when EPROM is mounted.
5-28
(H03=0000)
5-29
(2) Transfer and verification in the memory cassette and the processor program memory
The program and parameter are stored in the memory cassette. Data is not stored.
Note: The file register areas uses the program memory area, thus allowing data to be stored in the memory cassette.
Install the memory cassette before turning on power. The PC recognizes that a memory cassette is mounted when
power is turned on. The PC does not recognizes a memory cassette if it is mounted after power is turned on.
Step 1
Step 2
CPU-A8
RUN
EPR
BAT
Cover
0
C
Cover
Cover
Memory cassette
holder
0 1
2 3
EF
Memory cassette
holder
Memory cassette
Cover
Memory cassette
Memory cassette
Cover
5-30
Step 3
Step 4
AUXILIARY
AUX
6 times
Set auxiliary mode to move to the 7 MEM CS XFR .
GO
PCRAM
EPROM
PCRAM
EPROM
PCRAM : EPROM
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
<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.)
PCRAM
GO
Select 1 PCRAM
PCRAM
EPROM
EPROM
OK
[GO]
EPROM .
PCRAM
GO
EPROM
EXECUTING
PCRAM
EPROM
COMPLETION
PCRAM : EPROM
PCRAM : EPROM
GO
OK
[GO]
PCRAM : EPROM
COMPLETION
5-32
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
the EEPROM.
PCRAM
EEPROM
memory.
PCRAM
EEPROM
PCRAM : EEPROM
<1. PCRAM
EEPROM>
Copies the PC program memory contents to the EEPROM.
PCRAM
GO
Selects 1 PCRAM
GO
PCRAM
EEPROM
EEPROM
OK
[GO]
EEPROM
PCRAM
EEPROM
EXECUTING
PCRAM
EEPROM
COMPLETION
5-34
<2. PCRAM
EEPROM>
PCRAM
GO
Selects 2 PCRAM
PCRAM
EEPROM
EEPROM
OK
[GO]
EEPROM
GO
PCRAM
EEPROM
EXECUTING
PCRAM
EEPROM
COMPLETION
MEM CST
3
GO
XFR
PCRAM : EEPROM
PCRAM : EEPROM
OK
[GO]
GO
PCRAM : EEPROM
EXECUTING
PCRAM : EEPROM
COMPLETION
5-35
EEPROM
2. PCRAM
EEPROM
3. PCRAM : EEPROM
Be sure to stop the PC before the above operations. (See Section 5-1.)
If the above operations are performed
while the PC is running, the message
on the right appears:
The parameter which determines the usage of the EEPROM is assigned to the parameter address 03H.
The meanings of the parameter are as follows:
0: When power is turned on, the contents of EEPROM
F E D C B A 9 8 7 6 5 4 3 2 1 0
is copied to RAM.
03H
1) The parameter determines the operation of the PC when the EEPROM is used for program memory.
The EEPROM operation is divided into three types according to settings of the parameter and WRITE
PROTECT switch which is provided on the EEPROM cassette.
EEPROM write enabled is set by default.
2) EEPROM operation list
EEPROM cassette
WRITE PROTECT
switch
Bit 1 of
parameter
03H
PCRAM
EEPROM
copy at power on
RAM
Copy
EEPROM is also
overwritten when
RAM is overwritten
Enabled
Enabled
No copy
Enabled
Enabled
Copy
Disabled
Enabled
OFF
ON
0
1
W
MEM WRITE ERROR
5-36
Memory contents
NB
PC containing a program
Set parameter H03 to 0002.
NB
Memory contents
5-37
This function is to change addresses of devices within a PC. The device address of a specific device used in the PC
program is changed. Execute this function after stopping the PC.
This function is disabled while the processor is running.
<Key operation>
AUXILIARY
AUX
RUN/STOP
SW
AUXILIARY
(Press seven
times.)
GO
DEVICE
CONV
DEVICE
CONV
DEVICE
CONV
LD
X
Specify by bits.
MPS MRD
1
2
DEVICE
GO
X0 1 2
CONV
MPP
3
DEVICE
RST
4
X0 1 2
DEVICE
GO
X0 1 2
DEVICE
CONV
034
CONV
X
034
CONV
COMPLETION
The above operation changes all X12 used in the program to X34.
X12
M20
X34
X20
M20
M20
X20
X12
M25
M20
X12
X34
5-38
X34
M25
Memory Clear clears the contents of the processor memory (program memory, parameter memory, and data memory).
AUXILIARY
AUX
MEMORY CLEAR
MEMORY CLEAR
GO
PARAMETER CLR
MEMORY CLEAR
1
Clears parameter.
PARAMETER CLR
MEMORY C L E A R
2
PROGRAM CLR
MEMORY CLEAR
3
Clears data.
DATA CLR
MEMORY CLEAR
4
ALL
Clears program.
CLR
5-39
AUX
AUXILIARY
9
MEMORY
GO
CLEAR
MEMORY
CLEAR
PARAMETER
PARAMETER
GO
OK
CLR
[GO]
PARAMETER
GO
CLR
CLR
EXECUTING
PARAMETER
CLR
COMPLETION
AUX
Selects 2 PROGRAM
CLR .
AUXILIARY
9
MEMORY
GO
CLEAR
CLR
OK
PROGRAM
GO
CLR
PROGRAM
PROGRAM
GO
CLEAR
MEMORY
[GO]
CLR
EXECUTING
PROGRAM
CLR
COMPLETION
5-40
AUX
AUXILIARY
9
MEMORY
CLEAR
MEMORY
GO
CLEAR
DATA
CLR
DATA
GO
CLR
OK
DATA
GO
[GO]
CLR
EXECUTING
DATA
CLR
COMPLETION
AUX
AUXILIARY
9
MEMORY
MEMORY
GO
ALL
ALL
GO
CLEAR
CLR
CLR
OK
ALL
GO
CLEAR
[GO]
CLR
EXECUTING
ALL
CLR
COMPLETION
5-41
For a PC provided with a calendar function, the set data can be changed.
PC type
Calendar function
SPB-series
NB0/NB/NB3-series
Not provided
NJ-CPU-E4
Not provided
NJ-CPU-A8
Provided
NJ-CPU-B16
Provided
NJ-CPU-B32
Provided
NS-series
Provided
(Press nine
times.)
AUX
AUXILIARY
10
CALENDAR
SET
GO
CALENDAR
1
CALENDAR
2
SET
(Press
MONTH
CALENDAR
3
SET
YEAR
SET
DAY
For example, to use the minute item, select
CALENDAR
SET
4 HOUR
PLF
5
CALENDAR
5
GO
CALENDAR
MINUTE
CALENDAR
6
SET
PLF
5
SET
SET
MINUTE
55
SECOND
(Setting is not change unless GO is pressed.)
CALENDAR
Finishes inputs
of all items.
CALENDAR
OK
Executes.
GO
SET
Set a day of the week by
inputting numbers as follows:
00: Sunday
01: Monday
02: Tuesday
03: Wednesday
04: Thursday
05: Friday
06: Saturday
DAY OF WEEK
CALENDAR
SET
[GO]
SET
COMPLETION
5-42
AUX
11 BUZZER
ON /OFF
(Press 10 times.)
GO
BUZZER OFF
ON
COMPLETION
OFF
ON : Displays ON
5-43
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.)
Remarks
Memory cassette
EEPROM cassette
2)
4)
3)
5-44
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
Figure 1
Screw
Memory cassette
(EPROM or EEPROM)
Figure 2
Figure 3
5-45
(Press 11 times.)
AUX
12
MODULE
PROM WRITER
GO
OK
[GO]
GO
MEM
or
CASSETTE
TYP
N - MP 1
Memory IC type
N-MP1
(NN-MBP1)
EPROM type
N-MP8
(NN-MBP4)
Memory cassette
N-MP8
(NN-MBP8, NB9VMPU-08)
N-MP16
N-MP32
N-MP64
N-ME1
(NN-MBE1)
EEPROM type
N-ME4
(NN-MBE4, NB9VMEU-04)
Memory cassette
N-ME8
(NN-MBE8, NB9VMEU-08)
10
N-ME16
11
N-ME32
Specify the same memory cassette type as the memory cassette being inserted. If the wrong type is specified, Memory
cassette error appears and the program may not be transferred correctly.
Note: The EPROM memory cassette cannot be used in the EEPROM read/write unit.
PROM writer cannot be used for NB0 series.
PROM WRITER
GO
PC
EPROM
Select one of the memory cassette types. The PROM writer function menu list then appears.
5-46
PROM
WRITER
EPROM
PC
PROM WRITER
2
PC
EPROM
PROM WRITER
3
contents.
PC: EPROM
PROM WRITER
4
BL A N K
CHECK
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
<1. PC
EPROM>
Copies the PC program memory contents to an EPROM memory cassette.
<Screen>
PROM
WRITER
EPROM
PC
PC
EPROM
GO
OK
PC
GO
[G O]
EPROM
COMPLETION
Execute.
Note: If the EPROM cassette already contains data,
WRITE ERROR appears and data transfer is
disabled.
<2. PC
PC
EPROM
WRITE ERROR
EPROM>
WRITER
EPROM
PC
GO
PC
EPROM
OK
PC
GO
[G O]
EPROM
COMPLETION
Execute.
Note: This function cannot be executed while the PC is running.
5-48
PC
EPROM
PC
RUNNING
<3. PC : EPROM>
Verifies the PC program memory contents with the EPROM memory cassette contents.
<Screen>
PROM WRITER
3 PC : EPROM
PC : EPROM
GO
GO
Execute.
OK
[G O]
PC : EPROM
COMPLETION
PC : EPRO M
VERIFY
ERROR
PC : EPROM
MEM CASSETTE
ERR
PROM W R I T E R
4
GO
BLANK CHECK
BLANK
CHECK
COMPLETION
5-49
BLANK
CHECK
BLANK
ERROR
PROM
1
PC
WRITER
EEPROM
PROM W R I T E R
2
PC
EEPROM
PROM
3
WRITER
PC : EPROM
5-50
<1. PC
EEPROM>
Copies the PC program memory contents to an EEPROM memory cassette.
<Screen>
PROM W R I T E R
1
PC
PC
EEPROM
EEPROM
GO
OK
PC
GO
[GO ]
EEPROM
COMPLETION
Execute.
Note: When the WRITE PROTECT switch of the EEPROM memory
cassette is turned on, WRITE ERROR appears and data
PC
EEPROM
W R I T E ERROR
transfer is disabled.
<2. PC
EEPROM>
PROM W R I T E R
2
PC
GO
PC
EEPROM
EEPROM
OK
PC
GO
[GO ]
EEPROM
COMPLETION
Execute.
Note: This function cannot be executed while the PC is running.
5-51
PC
EEPROM
PC
RUNNING
<3. PC : EEPROM>
Verifies the PC program memory contents with the EEPROM memory cassette contents.
<Screen>
PROM
3
WRITER
PC :EEPROM
PC : EEPROM
GO
GO
OK
[GO]
PC : EEPROM
COMPLETION
Execute.
When the PC program memory
contents do not conform with the
EEPROM memory cassette contents:
PC : EEPROM
VERIFY
ERROR
PC : EEPROM
MEM C A S S E T T E
5-52
ERR
PROM writer
Application to NB0-series
The EEPROM read/write unit is required for data transfer between an NB0-series PC and an EEPROM memory
cassette.
A memory cassette cannot be mounted on NB0-series.
A program created by NB0 can be transferred to another PC or a program stored in a memory cassette can be
transferred to the NB0-series, by using a setup as shown below.
Handy Loader
5-53
Cause of error
Time to occur
Program error
(PROGRAM ERROR)
Memory cassette
PC
BLANK CHECK
Write error
(WRITE ERROR)
Memory cassette
PC
Insufficient PC capacity
(PC CAP SHORT)
Memory cassette
EPROM
PC
EPROM : PC
BLANK CHECK
Verification error
(VERIFY ERROR)
PROM : PC
PC running
(PC RUNNING)
PROM
PC
PROM
PC
5-54
PC
Memory cassette
PC
Memory cassette
PC
The NS-series and NJ-series provide data communication between PCs using a communication module such as an NPlink module or an ME-NET module.
NP-link module
on Slot 4
Sta. No. 2 PC
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.
AUX
AUXILIARY
13
PC NO .
SET
PC NO . SET
GO
1 SLOT N O .
Input slot No..
PC NO . SET
RST
4
2 PC
STA NO.
MRD
2
PC NO . SET
OK
[G O]
PC NO . SET
GO
COMPLETION
5-55
Two memories by which the user program is stored are built in Handy Loader. The user program writing, the reading and
the collation operation can be done to the memory.
(1) Key operation
AUX
AUXILIARY
14
TRANSFER AREA
GO
TRANSFER AREA
1
AREA1
AREA1
TRANSFER AREA
2
TRANSFER
AREA2
TRANSFER AREA
1 AREA1
TRANSFER
GO
1 PC
LOADER
Menu display
TRANSFER
1 PC
LOADER
TRANSFER
2 PC
to the PC.
LOADER
TRANSFER
3 PC : LOADER
in Handy Loader
TRANSFER
4 ERASE
5-56
<1. PC
Loader>
TRANSFER
1 PC
PC
GO
LOADER
LOADER (AREA 1)
OK
[GO]
PC
GO
LOADER (AREA 1)
EXECUTING
PC
LOADER (AREA 1)
COMPLETION
TRANSFER
2 PC
GO
PC
LOADER
LOADER
OK
(AREA 1)
[GO]
GO
PC
LOADER
(AREA 1)
EXECUTING
PCRAM
PCFLASH
OK
GO
Copies the PC program to the internal memory.
PCRAM
[GO]
PCFLASH
EXECUTING
PC
LOADER
(AREA1)
COMPLETION
PC
LOADER
PC
RUNNING
5-57
(AREA1)
CLR
<3. PC : LOADER>
Verifies the program in Handy Loader and the program in the PC.
(The operation is the same also in area 2.)
TRANSFER
3
PC : LOADER
PC : LOADER
GO
(AREA1)
OK
[GO]
PC : LOADER
GO
(AREA1)
EXECUTING
PC : LOADER
(AREA1)
COMPLETION
VERIFY ERROR
PARAMETER
Error address (HEX)
VERIFY ERROR
PROGRAM
Error step (DEC)
Erases the memory in Handy Loader. (The operation is the same also in area 2.)
TRANSFER
4 ERASE
ERASE (AREA1)
GO
OK
[GO]
ERASE (AREA1)
GO
COMPLETION
* Transfer the PC program to the memory in Handy Loader after erasing the memory in Handy Loader.
5-58
Error message
Cause of error
Time to occur
PC running
Loader
Loader: PC
PC
Loader
PC
Loader
Insufficient PC capacity
Loader
PC
Loader
PC
PC
(PC RUNNING)
Verification error
(VERIFY ERROR)
Blank error
(BLANK ERROR)
Write error
(WRITE ERROR)
Loader : PC
( ): Message on LCD
5-59
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
FUJI
ELECTRIC
6-1
Main
routine
program
FEND
FEND
Program consists of N-series
instructions
END
Program consists of assembly
language
File register area
6-2
CALL UM (FNC04)*
FNC
RST
4
,
SP
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.
UMEXE (FNC05)*
FNC
PLF
5
GO
Processing and calculation results of user macros are output to the dedicated
data area. Output data is passed to the normal area used by the main routine.
UMEND (FNC06)*
FNC
MCR
6
GO
UM (FNC07)*
FNC
RET
7
,
SP
Instructions executed
URET (FNC08)*
FNC
SET
8
GO
* Instruction words related to user macros are input by FNC No. in the same way as other data instructions.
6-3
Appendix
Page
(1) Basic instruction ................................................................................................................................ App.-1
(2) Application instruction ....................................................................................................................... App.-4
Appendix
Instruction List
(1) Basic instruction
1) Contact instructions
Instruction
Symbol
: Usable,
FNC No.
Function
No. of
steps
1
LD
LD
LD
LDD
LDI
1
2
LDI
LDI
AND
AND
AND
ANI
ANI
ANI
OR
OR
OR
LDID
ANDD
ANID
ORD
1
2
1
2
1
2
App.-1
Unusable
PC type
NS/NJ
NB
NBE
NB0
SPB
Appendix
(Continued)
Instruction
: Usable,
Symbol
FNC No.
Function
No. of
steps
ORI
ORI
Symbol
FNC No.
Function
No. of
steps
ORB
MPS
Not marked in a
ladder diagram
MRD
Not marked in a
ladder diagram
MPP
Not marked in a
ladder diagram
Symbol
FNC No.
OUT
Function
No. of
steps
1
2
OUTD
SET
Sets device
SETD
SD
Resets bits
*
Resets word device
RD
PLS
PLF
Words specified
RSTD
2
1
2
Bits specified
RST
2
1
2
App.-2
NBE
NB0
SPB
Unusable
PC type
NS/NJ NB
: Usable,
3) Output instructions
RST
NS/NJ NB
: Usable,
ANB
Instruction
PC type
2) Connection instructions
Instruction
Unusable
ORI
ORID
NBE
NB0
SPB
Unusable
PC type
NS/NJ
NB
NBE
NB0
SPB
Appendix
4) Master control
Instruction
: Usable,
Symbol
FNC No.
Function
No. of
steps
MC
MC n D
MCR
MCR n
5) Timer, counter
Instruction
FNC No.
Function
No. of
steps
OUTT
T
TMR D
OUTC
C
CTR D
Unusable
PC type
NS/NJ
NB
: Usable,
Symbol
NBE
NB0
SPB
Unusable
PC type
NS/NJ
NB
NBE
NB0
SPB
CRST
6) Others
Instruction
: Usable,
Symbol
FNC No.
Function
No. of
steps
END
End of Program
End of program
NOP
Not marked in a
ladder diagram
No operation
Invert
INV
7) Step control
Instruction
D
SC
SC
Note)
FNC No.
: For NB
FNC060
Function
No. of
steps
U type only.
App.-3
Unusable
PC type
NS/NJ
NB
: Usable,
Symbol
NBE
NB0
SPB
Unusable
PC type
NS/NJ
NB
NBE
NB0
SPB
Appendix
1) Transfer instructions
Instruction Symbol
Symbol
Instruction
: Usable,
FNCNo.
No. Function
FNC
MOV
MOV S, D
FNC020
Transfers from S to D
CML
CML S, D
FNC022
XCH
XCH D1, D2
FNC025
Exchanges D1 and D2
DMPX
FNC026
Distribution
MPX
FNC027
Extraction
BMOV
BMOV S, D, n
FNC023
Block transfer
FMOV
FMOV S, D, n
FNC024
Block transfer
(same data)
XFR S, D
FNC028
D1
S1
S1
S1+S2
4
D
n words n words
3
S
Digit transfer
FNC029
DT
DT S, D, n1, n2, n3
DMOV
DMOV S, D
DCML
DCML S, D
FNC02A
Transfers from S to D
(32 bits)
DXCH
DXCH D1, D2
FNC02B
DFMOV S, D, n
FNC02C
S
Transfers
same data block
(32 bits)
32-bit transfer
S
S+1
D
D+1
2n words
2 words
DFMOV
FNC021
4
5
MSGT
FNC070
Transfers message
MSGR
FNC071
Receives message
FNC072
OPD
Note)
: For NB
Unusable
Execution
type time Reference
No.of
of PC
No.
/Non-execution
steps NS/NJ NB
steps
NBE page
NB0
SPB
time (s)
U type only.
App.-4
Appendix
2) Comparison instructions
Instruction
Symbol
: Usable,
FNC No.
Function
No. of
steps
S1, S2
FNC010
ON if S1 = S2
LD<>
<>
S1, S2
FNC011
ON if S1 = S2
AND=
S1, S2
FNC014
ON if S1 = S2
<> S1, S2
FNC015
ON if S1 = S2
S1, S2
FNC018
ON if S1 = S2
<> S1, S2
FNC019
ON if S1 = S2
>
S1, S2
FNC012
ON if S1 > S2
LD<=
<= S1, S2
FNC013
ON if S1 <= S2
AND>
> S1, S2
FNC016
ON if S1 > S2
AND<=
<= S1, S2
FNC017
ON if S1 <= S2
>
S1, S2
FNC01A
ON if S1 > S2
<= S1, S2
FNC01B
ON if S1 <= S2
<
S1, S2
FNC120
ON if S1 < S2
LD>=
>= S1, S2
FNC121
ON if S1 >= S2
AND<
<
S1, S2
FNC122
ON if S1 < S2
>= S1, S2
FNC123
ON if S1 >= S2
<
S1, S2
FNC124
ON if S1 < S2
OR>=
>= S1, S2
FNC125
ON if S1 >= S2
LDD=
D= S1, S2
FNC110
ON if S1 = S2 (32-bit)
LDD<>
D<> S1, S2
FNC111
ON if S1 = S2 (32-bit)
LD=
AND<>
OR=
OR<>
LD>
OR>
OR<=
LD<
AND>=
OR<
3
4
3
4
App.-5
Unusable
PC type
NS/NJ NB
NBE
NB0
SPB
Appendix
(Continued)
: Usable,
Instruction
Instruction Symbol
Symbol
Execution
type time
No.
ofof PC
No.
/Non-execution
steps
NBE
steps NS/NJ NB
FNC
No.
FNC
No. Function
Function
time (s)
ANDD=
D = S1, S2
FNC114
ON if S1 = S2 (32-bit)
ANDD<>
D <> S1, S2
FNC115
ON if S1 = S2 (32-bit)
ORD=
D = S1, S2
FNC118
ON if S1 = S2 (32-bit)
ORD<>
D <> S1, S2
FNC119
ON if S1 = S2 (32-bit)
LDD>
D > S1, S2
FNC112
ON if S1 > S2 (32-bit)
LDD<=
D <= S1, S2
FNC113
ON if S1 <= S2 (32-bit)
ANDD>
D > S1, S2
FNC116
ON if S1 > S2 (32-bit)
ANDD<=
D <= S1, S2
FNC117
ON if S1 <= S2 (32-bit)
ORD>
D > S1, S2
FNC11A
ON if S1 > S2 (32-bit)
ORD<=
D <= S1, S2
FNC11B
ON if S1 <= S2 (32-bit)
LDD<
D < S1, S2
FNC126
ON if S1 < S2 (32-bit)
LDD>=
D >= S1, S2
FNC127
ON if S1 >= S2 (32-bit)
ANDD<
D < S1, S2
FNC128
ON if S1 < S2 (32-bit)
ANDD>=
D >= S1, S2
FNC129
ON if S1 >= S2 (32-bit)
ORD<
D < S1, S2
FNC12A
ON if S1 < S2 (32-bit)
ORD>=
D >= S1, S2
FNC12B
ON if S1 >= S2 (32-bit)
CMP
CMP S1, S2
DCMP
Note)
: For NB
DCMP S1, S2
FNC01D
FNC01C
3
4
3
4
3
4
3
4
3
4
3
4
3
4
3
4
3
4
3
4
3
4
3
4
3
4
3
4
3
4
3
4
M81FE
OFF
OFF
(S1) = (S2)
ON
OFF
OFF
ON
M81FE
OFF
OFF
(S1,S1+1) = (S2,S2+1)
ON
OFF
OFF
ON
U type only.
App.-6
Unusable
Reference
NB0
SPB
page
Appendix
(Continued)
Instruction
: Usable,
Symbol
ZCP
FNC No.
DZCP
FNC12C
FNC12D
Function
No. of
steps
ON
OFF
OFF
OFF
ON
OFF
OFF
OFF
ON
ON
OFF
OFF
OFF
ON
OFF
OFF
ON
Function
No. of
steps
+ S1, S2, D
FNC030
SUB ( - )
- S1, S2, D
FNC031
DADD (+)
D+ S1, S2, D
FNC03C
FNC03D
4
(D, D+1)
MUL (x)
x S1, S2, D
FNC032
DIV (/)
/ S1, S2, D
FNC033
5
4
Quotient
(D+1, D)
Remainder
(D+3, D+2)
4
5
INC
+1
FNC034
Increment (16-bit)
D+1 D
INCP
+1P
FNC035
DEC
-1
FNC036
Decrement (16-bit)
D-1 D
DECP
- 1P
FNC037
DMUL
D x S1, S2, D
DDIV
D / S1, S2, D
DINC
D+1
FNC130
Increment (32-bit)
D+1 D
DINCP
D+1P
FNC131
Note)
: For NB
FNC03E
FNC03F
NBE
NB0
SPB
: Usable,
FNC No.
D - S1, S2, D
NB
ADD (+)
DSUB ( - )
PC type
NS/NJ
3) Arithmetic instructions
Symbol
Unusable
Instruction
U type only.
App.-7
5
4
5
Unusable
PC type
NS/NJ NB
NBE
NB0
SPB
Appendix
(Continued)
Instruction
: Usable,
Symbol
FNC No.
Function
No. of
steps
DDEC
D-1
FNC132
Decrement (32-bit)
D-1 D
DDECP
D-1P
FNC133
4) Conversion instructions
Instruction
Symbol
Function
No. of
steps
DECO
DECO S, D
FNC040
Decoding (4 to 16)
ENCO
ENCO S, D
FNC041
Encoding (16 to 4)
SUM
SUM S, D
FNC042
Count on bit
BCD
BCD S, D
FNC043
BIN
BIN S, D
FNC044
DBCD
DBCD S, D
FNC045
DBIN
DBIN S, D
FNC046
DSUM
DSUM S, D
FNC047
ASCI
ASCI S, D, n
FNC048
HEX
HEX S, D, n
FNC049
SEC
SEC S, D
FNC04A
HMS (hours/minutes/seconds) to
SEC (seconds) conversion
HMS
HMS S, D
FNC04B
Note)
: For NB
U type only.
App.-8
Unusable
PC type
NS/NJ
NB
: Usable,
FNC No.
NBE
NB0
SPB
Unusable
PC type
NS/NJ
NB
NBE
NB0
SPB
Appendix
5) Logic instructions
Instruction
Symbol
: Usable,
FNC No.
Function
No. of
steps
WAND
FNC038
WOR
OR, S1 S2, D
FNC039
(S1) OR (S2)
WXOR
FNC03A
WXNR
FNC03B
DAND
FNC134
DOR
DXOR
DXNR
FNC135
FNC136
FNC137
(S1) OR (S2)
(32-bit)
5
D
4
5
4
5
App.-9
4
5
Unusable
PC type
NS/NJ NB
NBE
NB0
SPB
Appendix
6) Program instructions
Instruction
Symbol
FEND
: Usable,
FNC No.
FEND
Function
No. of
steps
FNC002
CALL
CALL UM
FNC004
UMEXE
UM EXE
FNC005
UMEND
UM END
FNC006
UM
FNC007
URET
URET
FNC008
JMP
JMP
FNC001
Unconditional jump
CJMP n
FNC000
Conditional jump
UM
CJ
JEND n
Pointer n: 0 to FF
INTR n
Interrupt pointer
IRET
IRET
FNC003
LOOP
LOOP N
FNC009
CONT
CONTINUE
FNC00A
App.-10
Unusable
PC type
NS/NJ NB
NBE
NB0
SPB
Appendix
Symbol
: Usable,
FNC No.
Function
No. of
steps
RCR
RCR D
FNC050
RCL
RCL D
FNC051
ROR
ROR D
FNC052
ROL
ROL D
FNC053
NRCR
NRCR D, n
FNC056
NRCL
NRCL D, n
FNC057
NROR
NROR D, n
FNC058
NROL
NROL D, n
FNC059
SFTR
SFTR D
FNC054
SFTL
SFTL D
FNC055
NSFR
NSFR D, n
FNC05A
NSFL
NSFL D, n
FNC05B
DNRCR
DNRCR D, n
FNC05C
DNRCL
DNRCL D, n
FNC05D
DNROR
DNROR D, n
FNC05E
DNROL
DNROL D, n
FNC05F
8) File
Instruction
FNC No.
Function
No. of
steps
FFST
FNC140
Stores a file
FIFO
FNC141
FILO
FNC142
App.-11
Unusable
PC type
NS/NJ NB
: Usable,
Symbol
NBE
NB0
SPB
Unusable
PC type
NS/NJ
NB
NBE
NB0
SPB
Appendix
9) Floating points
Instruction
ECMP
EZCP
: Usable,
Symbol
ECMP S1, S2
FNC No.
FNC150
FNC151
Function
No. of
steps
M81FE
S1 > S2
OFF
OFF
S1 = S2
ON
OFF
S1 < S2
OFF
ON
Compare band
S1 > S
ON
OFF
OFF
S1 <= S <= S2
OFF
ON
OFF
S > S2
OFF
OFF
ON
FLT
FLT S, D
FNC154
DFLT
DFLT S, D
FNC155
INT
INT S, D
FNC156
DINT
DINT S, D
FNC157
EBCD
EBCD S, D
FNC158
EBIN
EBIN S, D
FNC159
EADD
E+ S1, S2, D
FNC160
ESUB
E S1, S2, D
FNC161
EMUL
Ex S1, S2, D
FNC162
EDIV
E/ S1, S2, D
FNC163
ESQR
ESQR S, D
FNC164
3
4
SIN
SIN S, D
FNC166
COS
COS S, D
FNC167
TAN
TAN S, D
FNC168
App.-12
Unusable
PC type
NS/NJ NB
NBE
NB0
SPB
Appendix
TCMP
TZCP
Symbol
: Usable,
FNC No.
FNC170
FNC171
Function
No. of
steps
M81FD
M81FE
OFF
OFF
ON
OFF
OFF
ON
Comparison
ON
OFF
OFF
S1 <= S <= S2
OFF
ON
OFF
S < S2
OFF
OFF
ON
FNC172
TSUB
FNC173
TRD
TRD D
FNC174
TWR
TWR D
FNC175
11) Others
: Usable,
FNC No.
Function
No. of
steps
DATA B
Not marked in a
ladder diagram
FNC 080
Data instruction
(direct specification)
DATA M
Not marked in a
ladder diagram
FNC 081
Data instruction
(indirect specification)
SLT
FNC 090
SLTR
SLTR
FNC 091
STRA
STRA
FNC 092
STRA R
FNC 093
SLT
STRA R
PC type
NS/NJ NB
App.-13
NBE
NB0
SPB
Symbol
Unusable
TADD
Instruction
Unusable
PC type
NS/NJ NB
NBE
NB0
SPB
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.