Professional Documents
Culture Documents
FLEX-PC Handy Loader (For SPB) - FEH402 PDF
FLEX-PC Handy Loader (For SPB) - FEH402 PDF
Handy Loader
USER'S MANUAL
Type: NW0H-NE
FEH402
Preface
This User’s Manual explains the specifications of the PC Card Interface modules. Read this manual carefully to ensure
correct operation.
When using modules or peripheral devices, be sure to read the corresponding user’s manuals listed below.
1. Appearance
Make sure that outer package is neither damaged nor cracked.
2. Accessories
(1) Loader cable (NB-EC0100)
(2) Users manual (this manual)
This user’s manual explains the specifications, operation, and programming method of the Handy Loader, which is for use
with FLEX-PC N and SPB series PLC.
When using the Handy Loader, refer to the following manuals, as necessary:
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
Preface
Safety Precautions
Revisions
Contents
Page
Appendix ...................................................................................................App.-1
Section 1 General
Page
1-1 Overview ...................................................................................................................... 1-1
The Handy Loader is a programming tool that, when connected to a FLEX-PC N series PC and SPB-series PC, can
access the PC memory.
It provides the following operations.
Item Programming tool
Writing a program Writing sequence and data instructions
Inserting an instructions Adding or inserting sequence and data instructions
Deleting an instruction Deleting a sequence instruction or a data instruction
Deleting program within a specified range
Program memory clear at a time
Reading a program Reading with a step number or a device identifier
Reading a sequence instruction or a data instruction
Monitoring a program Check continuity
Monitoring a bit device or a word device
Monitoring a timer or a counter
Testing Forced bit ON/OFF
Changing data of a word device
Changing the current/setting value of timer or counter
Auxiliary function PC diagnosis
Parameter setting
Transfer between PC memory and memory cassette
Transfer between PC memory and memory in loader
1-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.
The two plugs on the both ends of the loader cable is the same ones. Either plug can be connected to a PC or the Handy
Loader.
Modular connector
1-2
1-4 Notes on Using the Handy Loader
(1) Be sure to transfer any program you have created to memory cassette or cassette tape in order to store it.
The EEPROM memory cassette which has been inserted into the PC, is operable if only the Handy Loader is
connected to the PC.
Transferring a program to the EPROM memory cassette requires a PROM writer (N-HLD-PRW), a peripheral device.
See, 5-7-2 Data transfer to/from the memory cassette on the processor and 5-12 Modules for details.
Note: The PROM writer can be attached to and used with either EEPROM or EPROM memory cassette.
An EEPROM read/write unit, which can be used with only an EEPROM memory cassette, is also available.
Memory cassette
Type: N-MP , NN-MBP
N-ME , NN-MBE
PROM writer
Type: N-HLD-PRW
EEPROM read/write unit
Type: NN-HLD-EERW
Handy loader
Type: NW0H-NE
1-3
1-4 Notes on Using the Handy Loader
1-4
Section 2 Specifications
Page
2-1 General Specifications ............................................................................................... 2-1
2-1
2-3 Outside Specifications
5) Modular jack 6) Hanger hole 1) LCD display 2) LCD contrast adjustment screw
NW0H
RD INS MNT
AUX
WR DEL TEST
LD AND OR
HELP CLR
X M L R
LDI ANI ORI ,
FNC
Y S T W SP
OUT ANB ORB
P/I STEP
C D E F
SET PLS MC INV
K/H
8 9 A B
RST PLF MCR RET
-
4 5 6 7
NOP MPS MRD MPP END
GO
0 1 2 3
3) Operation keypad
Attaching holes to a PC
(NB series only)
1) LCD display
A back-lit liquid crystal display (LCD) (16 characters x 2 lines) displays programs, data, and various messages.
2) LCD contrast adjustment screw
Adjust the LCD contrast by turning this with a Phillips screwdriver.
2-2
2-3 Outside Specifications
3) Operation keys
Used for programming and monitoring. Consists of a sheet keyboard with an electronic buzzer at the touch of click.
Key functions
RD INS MNT
RD INS MNT Mode keys: AUX determine the Handy Loader operation mode.
AUX
WR DEL TEST WR DEL TEST
LD AND OR
HELP CLR
X M L R
LDI ANI ORI ,
FNC
Y S T W SP
HELP key:
OUT ANB ORB
P/I STEP
C D E F
SET PLS MC INV Used to display the number of PC program steps and data instruction number list,
K/H
8 9 A B and to switch numeric data display between hexadecimal and decimal.
RST PLF MCR RET
4 5 6 7
-
NOP MPS MRD MPP END
GO
0 1 2 3
,
key : Used to input data instructions, to monitor devices, and to process bits in the register area.
SP
P/I key : Used for pointer instructions (jump instruction and specification of an interrupt program jump destination.)
K: Specifies decimal.
K/H key : Used to input a constant.
H: Specifies hexadecimal.
CLR
Other keys : Used to input instruction words, devices, addresses, and numeric values.
2-3
2-3 Outside Specifications
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 Outside Specifications
2-3-2 Dimensions
90 35
¿8
NW0H
RD INS MNT
AUX
WR DEL TEST
148
LD AND OR
HELP CLR
X M L R
LDI ANI ORI ,
FNC
Y S T W SP
OUT ANB ORB
P/I STEP
C D E F
SET PLS MC INV
K/H
8 9 A B
RST PLF MCR RET
4 5 6 7 -
NOP MPS MRD MPP END
GO
0 1 2 3
82 25
2-3-3 Accessories
2-5
2-4 Functions
Operation mode
Item
Operating Stopped
Programming Functions
Instruction write
Write
Monitor / Test
Device monitor
Timer/counter current value monitor
Compulsive ON/OFF
Device data change
Timer/counter current value/setting change
Processor activation/deactivation
Auxiliary Functions
Program check -
Parameter setting *
Password
Message display
RAS
Data transfer to memory cassette -
Device change -
Memory clear
Calendar setting
Buzzer ON/OFF
Module (extended adapter function)
PC No. setting (communication module)
User program save to handy loader internal memory
: Possible
: Transfer to CPU is not possible
* Some parameter settings are recognised after the power is turned OFF and back ON.
2-6
2-5 Initial Screen for Connecting to PC
HANDY LOADER
HW0H-NE V .
SYSTEM MESSAGE
Error message appears.
Press the AUX key and mode selection keys to display each function.
KEY IN PASSWORD
Password input wait status
After typing a password, press the G O key to display the initial screen.
KEY IN PASSWORD
PASSWORD ERROR
Note
,
To delete a program and password when the password is not known, press the SP key eight times and then
press GO .
The following screen appears.
PC ALL CLEAR ?
OK [GO]
To execute, press GO .
The initial screen will appear.
2-7
2-6 Key Operation Reference List
Key operation for each function of the Handy Loader is listed below. For the details on the actual operation, see Chapter 3 to 5.
First
Read RD
3-52
WR
Step No.
STEP (Step No.) GO 3-54
Device search RD ,
SP
[Device identifier] [Device address] GO 3-55
WR
To search again
press GO
Instruction search RD
WR
[Instruction [Device identifier] [Device address] GO
3-57
word] Instruction requiring no device
To search again
press GO
CLR
Insertion INS
DEL
[Program input] GO 3-44
Auxiliary menu screen AUX [Select the subsequent auxiliary function menu]
2-8
2-6 Key Operation Reference List
2) Change
(New Parameter value) GO
(Displays the
previous address)
(Displays the
next address)
GO GO CLR CLR
GO (System message)
(User message)
2-9
2-6 Key Operation Reference List
Auxiliary 6. RAS < 6 RAS screen > GO [Go to (1) to (4)] 5-18
(1) System RAS
System RAS System RAS
GO GO CLR
address input display
(2) Instruction RAS
Instruction Next RAS
GO
RAS display display
(3) System RAS clear
GO GO
(Address area) GO
GO GO
9. Memory clear < 9 MEMORY CLEAR screen > GO [ Go to (1), (2), (3), or (4) ] 5-39
1) Parameter clear
GO GO CLR CLR
3) Data clear
GO GO
GO GO
2-10
2-6 Key Operation Reference List
(Hour setting)
(Minute setting)
(Second setting)
GO
2-11
2-6 Key Operation Reference List
GO ( or select a area GO
(1) PC Loader
(3) Verification
GO GO
GO GO
2-12
Section 3 Programming Functions
Page
3-1 Programming Modes .................................................................................................. 3-1
(1) SPB-series
The destination of writing the program is internal RAM of PC.
Use “Memory cassette transfer function” when you make the destination of writing the program a internal flash memory
and a flash memory card.
PC
PC
(2) N-series
If the PC does not not have a memory cassette attached, any program created is written to the PC’s internal RAM; and
if a memory cassette is attached, the program can be written to both the RAM and the memory cassette.
However, no program cannot be written to an EPROM memory cassette. Even if an EEPROM write cassette is used,
writing is disabled while the write protect switch is on.
It is also possible to transfer a program between the PC internal RAM and PC memory cassette by key operation on the
Handy Loader.
Handy Loader PC
Memory
cassette
3-1
3-1 Programming Modes
Write ......... Writes a new program, overwrites a previous program, adds instructions,
and writes multiple NOP instructions at a time (all clear).
Insert ......... Add instructions to a program to increment the subsequent step numbers.
Delete ......... Deletes instructions specified in a program and decrements the preceding
step numbers.
Also deletes multiple NOP instructions at a time within a specified range,
and deletes instructions and pointers.
3-2
3-1 Programming Modes
Device identifier
Step No. (decimal)
Mode indicator R
R : Read mode 10 LD X 000
W : Write mode
Up to four digit
I : Insert mode Device address
Up to five digit
D : Delete mode
Instruction word
Press the following mode keys to set each programming mode as follows:
RD
Press the key to set “Read mode”.
WR
RD RD
Press the key to set “Write mode”.
WR WR
RD
(Either the “Read mode” or “Write mode” is displayed alternatively each time the key is pressed.)
WR
INS
Press the key to set “Insert mode”.
DEL
INS INS
Press the key to set “Delete mode”.
DEL DEL
INS
(Either the “Insert mode” or “Delete mode” is displayed alternatively each time the key is pressed.)
DEL
3-3
3-2 Writing a Program
This section explains the basic operation of writing a program using the Handy Loader.
Three basic patterns are provided according to the instruction type to be written.
Basicoperation
Basic operation
,
FNC FNC No.
SP
*2
,
Device identifier Device address Device identifier Device address
SP
3-4
3-3 Writing a Sequence Instruction
LD
Device identifier Device address
X
OUT ORI
Timer number
C T
GO
3-5
3-3 Writing a Sequence Instruction
LD
Device identifier Device address
X
LD
Device identifier Device address
X
,
Press to go to the next line.
SP
GO
Note
The range of the setting value of the timer and counter instructions is 1 to 32767.
If a value outside this range is input, a message “SETTING ERROR” is displayed.
<Key operation> <Screen>
W 4 OUT C 000
K/H
K —
W 4 OUT C 000
(Value outside the range) GO
SETTING ERROR
W 4 OUT C 000
CLR Returns to the setting value input screen.
—
3-6
3-3 Writing a Sequence Instruction
<Write>
(1) Power start-up HANDY LOADER
(Initial screen) NW0H-NE V .
RD R
Sets read mode.
WR 0 NOP
RD W
Sets write mode.
WR 0 NOP
X0 LD W
Inputs instruction word.
X 0 LD
LD W
Inputs device identifier.
X 0 LD X
NOP W
Inputs device address.
0 0 LD X 000
W 0 LD X 000
GO Stores instruction.
1 NOP
OR W 0 LD X 000
X0 Inputs instruction word.
L 1 OR
YC
LDI W 0 LD X 000
Inputs device identifier.
Y 1 OR Y
b a
3-7
3-3 Writing a Sequence Instruction
b a
<Write>
OUT W 0 LD X 000
Inputs device address.
C 1 OR Y 00C
W 1 OR Y 00C
GO Stores instruction.
2 NOP
ANI W 1 OR Y 00C
X0 X1 Inputs instruction word.
S 2 ANI
YC
LD W 1 OR Y 00C
Inputs device identifier.
X 2 ANI X
MPS W 1 OR Y 00C
Inputs device address.
1 2 ANI X 001
W 2 ANI X 001
GO Stores instruction.
3 NOP
d c
3-8
3-3 Writing a Sequence Instruction
d c
<Write>
W 3 OUT X 00C
GO Stores instruction.
4 NOP
X0 X1 YC LD W 3 OUT Y 00C
Inputs instruction word.
X 4 LD
YC
X2
LD W 3 OUT Y 00C
Inputs device identifier.
X 4 LD X
W 4 LD X 002
GO Stores instruction.
5 NOP
X0 X1 YC
OUT W 4 LD X 002
Inputs instruction word.
YC
C 5 OUT
X2 T0
TMR 500
ORI Inputs device identifier. W 4 LD X 002
T (timer) 5 OUT T
, W 5 OUT T 000
Scrolls to the next line.
SP
f e
3-9
3-3 Writing a Sequence Instruction
f e
<Write>
W 5 OUT T 000
K/H Specifies decimal number.
K
W K 500
GO Stores instruction.
7 NOP
X0 X1 YC LD W K 500
Inputs instruction word.
X 7 LD
YC
X2 T0
TMR 500
ORI W K 500
T0 Inputs device identifier.
T 7 LD T
NOP W K 500
Inputs device address.
0 7 LD T 000
W 7 LD T 000
GO Stores instruction.
8 NOP
X0 X1 YC
OUT W 7 LD T 000
Inputs instruction word.
YC
C 8 OUT
X2 T0
TMR 500
LDI W 7 LD T 000
T0 YD Inputs device address.
Y 8 OUT Y
h g
3-10
3-3 Writing a Sequence Instruction
h g
<Write>
ANB W 7 LD T 000
Inputs device address.
D 8 OUT Y 00D
W 8 OUT T 00D
GO Stores instruction.
9 NOP
X0 X1 YC LD W 8 OUT Y 00D
Inputs instruction word.
X 9 LD
YC
X2 T0
TMR 500
LD W 8 OUT Y 00D
T0 YD Inputs device identifier.
X 9 LD X
X3
W 9 LD X 003
GO Stores instruction.
10 NOP
X0 X1 YC LD W 9 LD X 003
Inputs instruction word.
X 10 LD
YC
X2 T0
TMR 500
LD W 9 LD X 003
T0 YD Inputs device identifier.
X 10 LD X
X3
X4 RST W 9 LD X 003
Inputs device address.
4 10 LD X 004
* Counter reset is input.
j i
3-11
3-3 Writing a Sequence Instruction
j i
<Write>
W 10 LD X 004
GO Stores instruction.
11 NOP
X0 X1 YC OUT W 10 LD X 004
Inputs instruction word.
C 11 OUT
YC
X2 T0
TMR 500 Inputs device identifier.
OUT W 10 LD X 004
T0 YD
C (counter). 11 OUT C
X3 C0
CTR 10
X4 NOP Inputs device address. W 10 LD X 004
CRst
0 (counter No.). 11 OUT C 000
, W 11 OUT C 000
Scrolls to the next line.
SP
W 11 OUT C 000
K/H Specifies decimal number.
K
W K 10
GO Stores instruction.
13 NOP
X0 X1 YC
LD W K 10
YC Inputs instruction word.
X 13 LD
X2 T0
TMR 500
T0 YD
k
X3 C0
CTR 10
X4
CRst
C0
3-12
3-3 Writing a Sequence Instruction
<Write>
W 13 LD C 000
GO Stores instruction.
14 NOP
X0 X1 YC
YC OUT W 13 LD C 000
C 14 OUT
X2 T0
TMR 500
T0 YD
LDI ORB W 13 LD C 000
X3 C0
Y E 14 OUT Y 00E
CTR 10
X4
CRst
C0 YE W 14 OUT Y 00E
GO
15 NOP
W 15 END
GO
16 NOP
X0 X1 YC
YC
X2 T0
TMR 500
T0 YD
X3 C0
CTR 10
X4
CRst
C0 YE
END
3-13
3-3 Writing a Sequence Instruction
Example: If X0 is turned on, numeric data “5” is set in the data register D0.
LD LD NOP W 0 LD X 000
GO 1 NOP
X X 0
POINT
D0000.2
D0000.0
,
* Press SP
to specify bit in the register area.
3-14
3-3 Writing a Sequence Instruction
OUT W 0 LD X 000
Inputs instruction word.
C 1 OUT
NOP W 0 LD X 000
0 1 OUT D0000
Inputs register word
address.
, W 0 LD X 000
SP 1 OUT D0000
NOP W 0 LD X 000
Inputs register bit address.
0 1 OUT D00000
W 1 OUT D00000
GO Stores Instruction.
3 NOP
3-15
3-3 Writing a Sequence Instruction
202 P 0
X100 M100
200
202 JEND H0
In write mode
M0
LD W
Inputs instruction word.
X 100 LD
AND W
Inputs device identifier.
M 100 LD M
NOP W
Inputs device address.
0 100 LD M0000
100 LD M0000
GO Stores instruction.
101 NOP
Note
3-16
3-3 Writing a Sequence Instruction
M0 W 100 LD M0000
CJMP H0 FNC
101 FNC
Input FNC No. of the CJ
instruction
NOP W 100 LD M0000
0 101 FNC 000
, W 101 CJ 000
Scrolls to the next line.
SP
W P 00
GO Stores instruction.
103 NOP
Program to be jumped
W
P/I Inputs pointer identifier: P.
202 P
202 JEND H0
NOP W
Inputs pointer number.
0 202 P 00
GO Stores instruction.
3-17
3-3 Writing a Sequence Instruction
Basic operation
The mnemonic notation on the right is used when the Handy Loader creates a ladder diagram below.
The key operation is given below.
I NTR H0200
M0
MOV 0 D0 Interrupt
program
I RET
3-18
3-3 Writing a Sequence Instruction
W
FNC
100 FNC
Input Instruction FEND.
(Main routine program end)
MRD W
2 100 FNC 002
W 101 I0200
GO Stores pointer.
103 NOP
3-19
3-3 Writing a Sequence Instruction
Input decimal constant for device S and proceed to the next line.
Note
An interrupt program does not work unless the pointer “I” and the IRET instruction are provided.
Stop the PC while writing an interrupt program. If an interrupt program is written
I NTR H
while the PC (or set it in the TERM mode for the NJ or NS series) is running,
Interrupt program a syntax error may occur, causing the PC stop.
If this occurs, continue writing the interrupt program, and then turn on the power
I RET again after completing the program.
3-20
3-3 Writing a Sequence Instruction
Basic operation
ANB
[Instruction] key Device identifier Device address GO
D
Specifies direct input Input relay : X area or
and output. output relay: Y area
can be a specified.
<Ladder> <Mnemonic>
LD W
Inputs instruction word.
X 0 LD
X0
ANB W
D
D 0 LD D
Input direct-input
device identifier.
LD W
X 0 LD DX
NOP W
Inputs device address.
0 0 LD DX 000
W 0 LD DX 000
GO Stores instruction.
2 NOP
3-21
3-3 Writing a Sequence Instruction
X0 YE
OUT W 0 LD DX 000
Inputs instruction word.
D D C 2 OUT
ANB W 0 LD DX 000
D 2 OUT D
Input direct-input
device identifier.
LDI W 0 LD DX 000
Y 2 OUT DY
ORB W 0 LD DX 000
Inputs device address.
E 2 OUT DY 00E
W 2 OUT DY 00E
GO Stores instruction.
4 NOP
LD LD MPS W 6 LD X 001
GO
X X 1 7 NOP
3-22
3-3 Writing a Sequence Instruction
Basic operation
N o t e : The differential contact instruction cannot be used for NB-0, NB-E (NB2-P24/36, NB2U24/36).
X0 LD W
X 0 LD
Input instruction word.
( : Rising edge differentiation)
W
0 LD
LD W
Inputs device identifier.
X 0 LD X
NOP W
Inputs device address.
0 0 LD X 000
W 0 LD X 000
GO Stores instruction.
2 NOP
3-23
3-3 Writing a Sequence Instruction
X0 ORI W 0 LD X 000
T 2 ORI
Y5 Input instruction word.
( : Falling edge differentiation)
W 0 LD X 000
2 ORI
LDI W 0 LD X 000
Inputs device identifier.
Y 2 ORI Y
PLF W 0 LD X 000
Inputs device address.
5 2 ORI Y 005
W 2 ORI Y 005
GO Stores instruction.
4 NOP
X0 M0 Y6
Y5
3-24
3-4 Writing a Data Instruction
When a data instruction is read or written by the Handy Loader, it is processed according to the FNC No. (for FNC No., see
the table on the next page or Appendix.)
Basic operation
Writing is enabled while the data instruction FNC No. is being checked.
<Screen>
FNC HELP 0 PROGRAM BRANCH 11 COMPARISON 2
1 COMPARISON 12 COMPARISON 3
2 TRANSFER 13 ARITH, LOGIC 2
3 ARITH, LOGICAL 14 FILE
4 DATA PROCESS 15 FLOAT 1
The group name of the function 5 ROTATION 16 FLOAT 2
6 STEP CONTROL 17 DATE, TIME
instruction is screen.
7 MESSAGE XFR 18 PULS OUTPUT
8 DATA 19 HANDY OPE.
9 DEBUG
A SFC1
B SFC2
FNC HELP FNC No. upper two digit FNC No. Lower one digit
3-25
3-4 Writing a Data Instruction
FNC
Unit digit (Lower one digit)
Tens digit
(Upper two digit)
Hundreds digit
Group name Program Comparison Transfer Arithmetic Conversion Rotation Step Message Data Debug
flow instruction 1 instruction, and logic instruction instruction control instruction, instruction instruction
instruction etc. instructions 1 instruction etc.
Tens
Unit digit 00 01 02 03 04 05 06 07 08 09
digit
Group name Comparison Comparison Arithmetic File Floating-point Floating-point Clock Pulse Convenience
instruction 2 instruction 3 and logic instruction instruction 1 instruction 2 operation output instruction
instructions 2 instruction instruction
Tens
Unit digit 10 11 12 13 14 15 16 17 18 19
digit
0 LDD= LD< DINC FFST ECMP EADD TCMP PLS1 RAMP
1 LDD< > LD>= DINCP FIFO EZCP ESUB TZCP DPLS1
2 LDD> AND< DDEC FILO EMUL TADD PLS2 PID
3 LDD<= AND>= DDECP EDIV TSUB DPLS2
4 ANDD= OR< DAND FLT ESQR TRD PWM1 ABSD
5 ANDD< > OR>= DOR DFLT TWR PWM2 INCD
6 ANDD> LDD< DXOR INT SIN PLSI MTR
7 ANDD<= LDD>= DXNR DINT COS DPLSI
8 ORD= ANDD< EBCD TAN PLSA DSW
9 ORD< > ANDD>= EBIN DPLSA SEGL
A ORD> ORD< ORG
B ORD<= ORD>= DORG
C ZCP
D DZCP
E
F
3-26
3-4 Writing a Data Instruction
Instruction Instruction
FNC No. Name FNC No. Name
identifier identifier
Selection branch
0A1 E_PRC Process end instruction 0B1 D_SLC
start instruction
Selection confluent
0A2 M_END SFC main end 0B2 C_SLC
start instruction
0A3 SPRC Sub-process start instruction 0B3 D_SIM Parallel branch start instruction
0A9 ACEXE Action execution start instruction 0B9 SLCT Selection branch instruction
0AF OUT Step jump instruction 0BF SYNC Parallel confluent instruction
3-27
3-4 Writing a Data Instruction
Group name Program Comparison Transfer Arithmetic Conversion Rotation Step Message Data Debug
flow instruction 1 instruction, and logic instruction instruction control instruction, instruction instruction
instruction etc. instructions 1 instruction etc.
Tens
Unit digit 00 01 02 03 04 05 06 07 08 09
digit
Group name Comparison Comparison Arithmetic File Floating-point Floating-point Clock Pulse Convenience
instruction 2 instruction 3 and logic instruction instruction 1 instruction 2 operation output instruction
instructions 2 instruction instruction
Tens
Unit digit 10 11 12 13 14 15 16 17 18 19
digit
0 LDD= LD< DINC FFST ECMP EADD TCMP PLS1 RAMP
1 LDD< > LD>= DINCP FIFO EZCP ESUB TZCP DPLS1
2 LDD> AND< DDEC FILO EMUL TADD PLS2 PID
3 LDD<= AND>= DDECP EDIV TSUB DPLS2
4 ANDD= OR< DAND FLT ESQR TRD PWM1 ABSD
5 ANDD< > OR>= DOR DFLT TWR PWM2 INCD
6 ANDD> LDD< DXOR INT SIN PLSI MTR
7 ANDD<= LDD>= DXNR DINT COS DPLSI
8 ORD= ANDD< EBCD TAN PLSA DSW
9 ORD< > ANDD>= EBIN DPLSA SEGL
A ORD> ORD< ORG
B ORD<= ORD>= DORG
C ZCP
D DZCP
E
F
3-28
3-4 Writing a Data Instruction
Group name Program Comparison Transfer Arithmetic Conversion Rotation Step Message Data Debug
flow instruction 1 instruction, and logic instruction instruction control instruction, instruction instruction
instruction etc. instructions 1 instruction etc.
Tens
Unit digit 00 01 02 03 04 05 06 07 08 09
digit
0 CJ LD= MOV ADD RCR SC
1 LD< > SUB RCL
2 LD>
3 LD<=
4 AND=
5 AND< >
6 AND>
7 AND<=
8 OR= WAND
9 OR< > WOR
A OR> WXOR
B OR<= WXNR
C
D
E
F
Group name Program Comparison Transfer Arithmetic Conversion Rotation Step Message Data Debug
flow instruction 1 instruction, and logic instruction instruction control instruction, instruction instruction
instruction etc. instructions 1 instruction etc.
Tens
Unit digit 00 01 02 03 04 05 06 07 08 09
digit
0 CJ MOV ADD RCR SC
1 JMP SUB RCL
2 FEND
3 IRET
4 CALL
5 UMEXE
6 UMEND
7 UM
8 URET
9
A
B
C
D
E
F
3-29
3-4 Writing a Data Instruction
3-30
3-4 Writing a Data Instruction
3-31
3-4 Writing a Data Instruction
(Initial screen)
N SERIES HANDY LOADER
NW0H-NE V .
RD R
WR 0 NOP
RD W
WR 0 NOP
X30 LD W
Inputs instruction word.
X 0 LD
NOP W
0 0 LD X 030
a b
3-32
3-4 Writing a Data Instruction
a b
W 0 LD X 030
GO Stores instruction.
1 NOP
X30 W 0 LD X 030
= WX1 30 FNC
1 FNC
NOP W 0 LD X 030
0 1 FNC 000
MPS W 0 LD X 030
1 1 FNC 001
RST W 0 LD X 030
4 1 FNC 014
, W 1 AND= 014
Scrolls to the next line.
SP
W 1 AND= 014
W
Inputs device identifier of word area.
LD W 1 AND= 014
X WX
, W 1 AND= ,
Scrolls to the next line.
SP
c d
3-33
3-4 Writing a Data Instruction
c d
W 1 AND= ,
K/H
K
MPP W 1 AND= ,
Specify decimal constant.
3 K 3
NOP W 1 AND= ,
0 K 30
W K 30
GO Stores instruction.
4 NOP
X30 W K 30
= WX1 30 FNC
4 FNC
NOP W K 30
0 4 FNC 000
MPS W K 30
1 4 FNC 001
MC W K 30
A 4 FNC 01A
, W 4 OR> 01A
Scrolls to the next line.
SP
e f
3-34
3-4 Writing a Data Instruction
e f
W 4 OR> 0 1A
W W
Inputs device identifier
of word area.
, W 4 OR> ,
Scrolls to the next line.
SP
W 4 OR> ,
W W
Inputs device identifier
of word area.
AND W 4 OR> ,
M WM
W WM001
GO Stores instruction.
7 NOP
X30 Y1F
OUT W WM000
= WX1 30 Inputs instruction word.
C 7 OUT
LDI W WM001
Inputs device identifier.
Y 7 OUT Y
g h
3-35
3-4 Writing a Data Instruction
g h
MPS W W M 0 01
1 7 OUT Y 001
W W M 0 01
F 7 OUT Y 01F
W 7 OUT Y 01F
GO Stores instruction.
8 NOP
W 8 END
GO Stores instruction.
9 NOP
X30 Y1F
= WX1 30
END
3-36
3-4 Writing a Data Instruction
The XFR instruction is to transfer of the eight high- or low-order bits of the transfer source to the eight high- or low-order
bits of the transfer destination. Selection between high and low can be made with HELP key (H for high and L for low).
For example, transfer of data the eight high-order bits of WM0 to those of WL1 is done as follows:
F 8 7 0
WM0
WL1
W 0 LD X 030
FNC Inputs data instruction FNC No.
1 FNC
NOP W 0 LD X 030
0 1 FNC 000
MRD W 0 LD X 030
2 1 FNC 002
SET W 0 LD X 030
8 1 FNC 028
, W 1 XFR 028
Scrolls to the next line.
SP
W 1 XFR 028
Input device identifier of word area.
W W L
a b
3-37
3-4 Writing a Data Instruction
a b
W 1 XFR 028
HELP Select between H and L.
WM000H
, W 1 XFR ’
Scrolls to the next line.
SP
W 1 XFR ’
Inputs device identifier of word area.
W W L
OR W 1 XFR ’
L WL L
MPS W 1 XFR ’
Inputs device address of word area.
1 WL0 0 1 L
W 1 XFR ’
HELP Select between H and L.
WL001 H
W WL 0 0 1 H
GO Stores instruction.
4 NOP
3-38
3-4 Writing a Data Instruction
W 0 LD X 0 3 0
1 NOP
W 1 EADD ,
Select a floating point input data.
F E + 0 0
MPS W 1 EADD ,
1 1. E + 0 0
W 1 EADD ,
– Switch the +/-.
-1. 2 3 4 5 E + 0 0
a b
3-39
3-4 Writing a Data Instruction
a b
W 1 EADD ,
– Switch the +/-.
-1. 2 3 4 5 E - 1 2
, W 1 EADD , ,
SP
* The number of input digits is the mantissa part six digits, and exponent part two digits.
ORB ORB
Input it again pushing , key.
E E
3-40
3-5 Changing an Instruction
Y4 Y5 1 MPS
2 ANI M1
3 MPS
Y5 Y6 4 ANI M0
5 OUT Y4
Y6 6 MPP
MOV -1 WY2 7 AND Y4
8 MPS
9 OUT Y5
18 END 10 MPP
11 AND Y5
12 OUT Y6
13 MPP
14 AND Y6
15 MOV K-1 WY2
18 END
3-41
3-5 Programming Modes
X0 M1 M0 Y4
Y4 Y5
Y5 Y6
Change to
Y6 Y5
MOV -1 WY2
END
W 6 MPP
7 AND Y4
ANI 6 MPP
Inputs new instruction word. 7 ANI
S
PLF 6 MPP
Inputs new device address. 7 ANI Y 005
5
3-42
3-5 Programming Modes
X0 M1 M0 Y4
Y5 Y5
END
15 MOV 020
K/H K-1
15 MOV 020
K/H H
3-43
3-6 Inserting an Instruction
Sequence instructions and data instructions can be added to a program and the subsequent step numbers incremented. In
this case, perform the same operation as for writing in insert mode.
Basic operation
Insert mode
INS
Press key to perform the same operation as for usual program writing.
DEL
Insert an instruction into a step displayed on the screen with the Handy Loader.
I STEP A INSTRUCTION A
Screen before insertion
STEP B INSTRUCTION B
Program 1)
<Ladder diagram> <Mnemonic notation>
X10 M23 Step No. Ins. word Device
49 49 LD X10
50 OUT M23
51 END
51 END
Insert instruction.
Program 2)
<Ladder diagram> <Mnemonic notation>
X10 X12 M23 Step No. Ins. word Device
49 49 LD X10
50 AND X12
52 END 51 OUT M23
52 END
3-44
3-6 Inserting an Instruction
Note
3-45
3-7 Deleting an Instruction
Sequence and data instructions can be deleted from a program and the subsequent step numbers decremented. In this
case, operation is made in delete mode.
Basic operation
Delete mode
INS
1) Press the key twice.
DEL
D STEP C INSTRUCTION C
3) Press the GO key to execute deletion.
STEP D INSTRUCTION D
Program 1)
Program 2)
<Ladder diagram> <Mnemonic notation>
X10 M23
49 Step No. Ins. word Device
49 LD X10
50 OUT M23
51 END 51 END
3-46
3-7 Deleting an Instruction
D
GO 50 OUT M0023
Basic operation
INS
1) Press the key twice.
DEL
2) Input the first step of the program range to be deleted. STEP STEP NO.
3) Input the final step of the program range to be deleted. STEP STEP NO. GO
SP
3-47
3-7 Deleting an Instruction
Program 1)
Program 2)
<Ladder diagram> <Mnemonic notation>
X0 YC Step No. Ins. word Device
0 0 LD X000
1 OUT Y00C
2 END 2 END
4
Performing D 1 OUT Y 00C
STEP Step No. GO deletion. AREA 2 4
Deletion D
processing
completes. 2 END
As the deletion processing
by the CPU completes,
the instruction which had
been next to the deletion
range end step moves up
to the step which had been
the deletion range first step.
3-48
3-7 Deleting an Instruction
Program 1)
END 7 END
Program 2)
<Ladder diagram> <Mnemonic notation>
NOP
K/H
0 W 1 OUT Y 010
2 NOPK
RST
GO
4 W
2 NOP
3-49
3-7 Deleting an Instruction
This operation can be executed regardless of step displayed on the Handy Loader.
Set delete mode Execute NOP deletion. The above screen appears
during NOP deletion.
D
0 LD X 000
Example: When NOP deletion is executed, program 1) changes to
program 2). Step 0 appears when
NOP deletioncompletes.
Program 1)
<Ladder diagram> <Mnemonic notation>
X0 YC Step No. Ins. word Device
0
0 LD X000
2 NOP 1 OUT Y00C
3 NOP 2 NOP
Deleting this part. 3 NOP
4 NOP
4 NOP
5 END 5 END
Program 2)
<Ladder diagram> <Mnemonic>
X0 YC Step No. Ins. word Device
0 0 LD X000
1 OUT Y00C
2 END 2 END
3-50
3-7 Deleting an Instruction
3-7-5 Writing NOP instructions at one time (program memory all clear)
NOP instructions are written in all steps of program memory.
W
0 NOP
GO
Note: The same result is also obtained when the program clear is executed in memory clear of the auxiliary function.
Program memory
Program memory is the memory which contains an instruction procedure executed by Program memory
the CPU. When any program is not yet written in this memory (that is, immediately after
a customer purchased a product), NOP instructions are written in all steps in the
program memory. P
NO P
All clear of the program memory also results in writing NOP instructions in all steps. NO
3-51
3-8 Reading a Program
This section describes the basic operation of using the Handy Loader to read a program and search for an instruction.
Basic operation
INS
Press to read step 0 in insert mode.
DEL
INS INS
Press to read step 0 in delete mode.
DEL DEL
* Reading a program step is enabled in any mode: “Read”, “Write”, “Insert”, or “Delete”.
RD INS
Press the mode key WR
or DEL
after the data check is finished in the monitor mode or the data setting is completed
in an auxiliary function, to make the Handy Loader read step 0.
M T 000 K 0 RD R
K 5000 WR 0 LD X 000
INS I
DEL 0 LD X 000
3-52
3-8 Reading a Program
Basic operation
RD Specifies mode. R
WR (Step 0 appears.) 0 LDI X 000
R 0 LDI X 000
Reads step 1.
1 AND X 005
R 1 AND X 005
Reads step 2.
2 OUT Y 00C
3-53
3-8 Reading a Program
Basic operation
Note
If an attempt is made to read a step exceeding the program memory, the message “STEP OVER ERROR” appears.
Example: Suppose that you are programming using NW0P30 series PC. Effective steps for NW0P30 are 0 to 3965.
The current screen is;
R 0 LD X 000
1 AND X 001
Press the HELP key to display the number of steps in the PC program memory.
PROGRAM MEMORY
HELP 0-3965
3-54
3-8 Reading a Program
Basic operation
RD
Device identifier Device address GO
WR SP
The key operation to read the device “X0” in the following program is given below:
<Ladder diagram>
X0 YC <Mnemonic notation>
0
Step No. Ins. word Device
X2
0 LD X0
1 OR X2
X0 M1 YE
2 OUT YC
3
3 LDI X0
M0
4 OR M0
5 AND M1
X0 YF
6 OUT YE
7 LD X0
X1
8 ORI X1
9 OUT YF
10 END
END
3-55
3-8 Reading a Program
R
Starts read out of device.
SP DVC
LD R
Inputs device identifier.
X DVC X
NOP R
Inputs device address.
0 DVC X 000
3-56
3-8 Reading a Program
Basic operation
RD
[Instruction] key Device GO
WR
X3 YE 3 LD X3
4 ORI M0
3
M0 5 ORI X2
6 OUT YE
X2 7 LDI X1
8 ORI X2
X1 YF 9 OUT YF
7 10 END
X2
3-57
3-8 Reading a Program
ORI R
Inputs instruction word.
T INS . ORI
LD R
Inputs device identifier.
X INS . ORI X
MRD R
Inputs device address.
2 INS . ORI X 002
3-58
3-8 Reading a Program
MOV -1 WM11 4 LD X1
5 MOV K-1 WM11
R
FNC
INS . FN C
MRD NOP R
2 0 INS . FNC 020
R
GO Searches for instruction word from step 0.
1 MOV 020
R
GO Continues to search from the next step.
5 MOV 020
3-59
3-8 Reading a Program
In read mode
R
P/I Inputs jump instruction pointer P.
POINTER P
MPS R
Inputs pointer No..
1 POINTER P 0 1
R
GO Executes search to read out that step.
10 P 0 1
R
P/I
POINTER P
R
P/I
POINTER I
R
GO Executes the search.
20 I 0 1 0 0
3-60
Section 4 Monitor and Test Functions
Page
4-1 Monitoring ................................................................................................................... 4-1
4-1-1 Conductivity check ................................................................................................................ 4-1
4-1-2 Monitoring devices ................................................................................................................ 4-2
(1) Monitoring bit device X0 ......................................................................................................................... 4-2
(2) Bit-wise monitoring of register areas ...................................................................................................... 4-3
(3) Monitoring a word device ........................................................................................................................ 4-4
(4) Monitoring a 32-bit word device .............................................................................................................. 4-5
(5) Monitoring of floating-point ..................................................................................................................... 4-7
4-1-3 Monitoring a timer or counter ................................................................................................ 4-8
Basic operation
<Screen>
MNT
STEP STEP No. GO Step No. 2 is read.
TEST
Either upper or
M
lower key Sets monitor Read step No. of a program for which 2 OUT Y003
operation gives mode. a conductivity check is to be performed.
the same Blank : OFF
Monitor : ON
result.
mode
MNT
STEP STEP No. GO
TEST
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
Basic operation
MNT ,
Device identifier Device address GO
TEST SP
<Key operation>
M X 000 X 001
M X 000 X 001
X 0 02
M X 000 X 001
X 002 X 003
* Up to four bit devices (except up to two for the data register and only one
for the timer or counter) can be monitored on a single screen.
M X 002 X 003
X 004
M X 002 X 003
X 004 X 005
4-2
4-1 Monitoring
F F D C B A 9 8 7 6 5 4 3 2 1 0
D10
Monitoring here.
D 10 5
MNT , ,
Device identifier Word address Bit address GO
TEST SP SP
M D00105
Even if all the data memory areas (areas X, M, and D, etc.) of consist of bit data, it is possible to process the data as
word data (in 16 bits unit). Bit data are weighted (numeric value) in a word device as follows:
F E D C B A 9 8 7 6 5 4 3 2 1 0
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
-2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
In the above example, when bit 5 of D10 is turned on, word data of D10 is 25=32.
4-3
4-1 Monitoring
The Handy Loader monitors a word area to display data in decimal. To display data in hexadecimal, press HELP
while decimal data is being displayed.
In the above example, press HELP to display data in the D10 area in hexadecimal.
M D0010 H0005
4-4
4-1 Monitoring
D0 16-bit data is multiplied by D1 16-bit data and the results stored in the 32-bit data area consisting of D10 and D11.
D0 D1 D11 D10
1234 X 56 69104
Numeric data is expressed by 2 s complement. When data is expressed as 32-bit data, the weighting is as follows:
D11
F E D C B A 9 8 7 6 5 4 3 2 1 0
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
-2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
One numeric data is
D10 expressed by two
F E D C B A 9 8 7 6 5 4 3 2 1 0 word devices.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
4-5
4-1 Monitoring
Perform the key operation below to monitor the multiplication results on the previous page.
MNT ,
Sets device monitoring mode. M
TEST SP
M
HELP Specifies 32-bit data monitoring.
4-6
4-1 Monitoring
MNT , ANB
HELP
TEST SP D M D 0 0 1 1 D0010
K 983815946
MPS NOP
GO
1 0
Call D10 and D11.
4-7
4-1 Monitoring
Setting values, current values, and time-up contacts ON/OFF statuses of the timer and counter can be monitored.
MNT ,
Timer device identifier Timer device address GO
TEST SP
M T 000 K 1 55 M T 000 K 2 0 00
K 20 0 0 K 2 000
Timer times up.
Timer setting value Timer setting value
Timer current value Timer current value
Timer-up contact
Counter instruction
MNT ,
Counter device identifier Counter device address GO
TEST SP
M C 000 K 2 M C 000 K 1 00
K 100 K 1 00
Counter count-up.
Counter setting value Counter setting value
Counter current value Counter current value
Count-up contact
Timers and counters that are not used in a program are not provided with settings. If an attempt is made to monitor
such timer or counter, a message NO SETTING appears.
It takes time to display the above message because the entire program memory area is searched for setting values
that do not actually exist.
M T010 K0
NO SETTING
The setting value of a timer or counter instruction can be indirectly specified. If an attempt is made to monitor such
timer counter, the following screen appears.
T T 001 K0
K 500 WM000
4-8
4-2 Test
The test function allows the Handy Loader to forcibly turn on and off the PC data memory contents.
Note: When using the test function, read out the device in monitor mode to enter test mode.
Basic operation
MNT ,
Device GO
TEST SP
MNT
SET Forced ON
TEST
8
Sets test mode.
RST
Forced OFF
4
Note: the forced ON/OFF function is effective only for devices marked by on the screen,
Example: Perform the key operation below to turn on M0 forcibly.
MNT SET T ‘ M0 0 0 0
TEST 8
* When this key operation is applied to a bit device X instead of M0, it securely
T X 00 1
turns X forcibly on.
At that time, ON status is not displayed on the loader screen and the input LED
lamp X on the PC is not lit. For this reason, see the PC processing on the
next page.
4-9
4-1 Monitoring
PC processing
The PC executes various types of instructions in the program memory sequentially from the first step, seizes input
signals from input terminals, writes instruction execution results in memory as output signals, and performs internal
processing, such as communication and self-diagnosis etc.
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.
X0 Y10
)S)
X1 M0000
( )
X2 C0
[ CTR 1 ]
X3
[ CRst ]
Basic operation
MNT ,
Device GO
TEST SP
MNT ,
K/H Decimal number
TEST SP
Note: Press HELP to switch to numeric data display mode for word device.
If decimal mode is set, a setting in hexadecimal is converted to decimal, and decimal data is displayed.
4-11
4-1 Monitoring
MNT a, T D0000 K0
TEST SP
K/H K/H GO
F F F F
T D0000 H FFFF
T D0000 K-1
4-12
4-1 Monitoring
D1 D0 D2 D11 D10
/ 1234 Quotient
D13 D12
32-bit data can be set. Remainder
D1
F E D C B A 9 8 7 6 5 4 3 2 1 0
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
-2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
One numeric data
D0 is expressed by
F E D C B A 9 8 7 6 5 4 3 2 1 0 two word devices.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
4-13
4-1 Monitoring
Follow the key operation below to set dividend for the division instruction on the previous page.
MNT
TEST M
Set device monitoring mode.
SP
M
HELP Specifies 32-bit monitoring.
GO
M D0001 D0 000
Sets test mode.
K0
MNT
TEST T D0001 D0 0 00
Upper 16-bit device Lower 16-bit device
K0
4-14
4-1 Monitoring
Basic operation
MNT ,
HELP Devise GO
TEST SP F
Basic operation
MNT ,
Decimal number -
TEST SP
Set current data setting mode. Input the mantissa part. (Change the sign.)
ORB
Hexadecimal number - GO
E
Change the input part Input the exponent part. (Change the sign.)
from the mantissa part to
the exponent part.
Example) Data register: Change the current value of D10 and D11.
MNT , T D 0 01 1 D0 010
TEST SP 0. 0 0 0 0 0 E + 0 0
PLF T D0011 D 0 0 10
- GO
5 2. 3 4 0 0 0E -05
4-15
4-1 Monitoring
Basic operation
MNT ,
Timer or counter number GO
TEST SP
MNT ,
K/H Decimal number GO
TEST SP
Note: For timer/counter numeric data, hexadecimal display mode is not available. (Even if HELP is pressed, display remains in decimal.)
Even if data is set in hexadecimal, it is displayed in decimal.
Example: Perform the key operation below to change timer: T0 setting value to decimal number 99 .
MNT , M T 000 K 0
TEST SP K 500
Input decimal 99 .
4-16
4-1 Monitoring
Basic operation
MNT ,
Timer or counter number GO
TEST SP
MNT , ,
K/H Decimal number GO
TEST SP SP
Note: For timer/counter numeric data, hexadecimal display mode is not available. (Even if HELP is pressed, display remains in decimal.)
Even if data is set in hexadecimal, it is displayed in decimal.
Note: An identical key operation applies also when the timer/counter setting value is indirectly specified. (see the next page.).
Example: Perform the key operation below to change timer: T0 setting value to decimal “999”.
MNT , , T T 000 K 0
TEST SP SP K 500
4-17
4-1 Monitoring
4-2-7 Changing the setting value area of timer/counter using indirect setting
The N-series PC’s timer/counter instruction can specify any word device as a setting value. (Indirect specification)
Basic operation
MNT ,
Timer or counter address GO
TEST SP
MNT , ,
Word device to store setting value GO
TEST SP SP
Set data setting mode Input word device to perform indirect specification.
(setting value area
specification mode).
Note: When a timer/counter setting value is indirectly specified, the setting value (numeric data) is changed by changing
the numeric value of the word device in the setting value area.
Example) Perform the key operation below to specify word device: WM0 in the setting value area of timer T0.
MNT , , T T 000 K 0
TEST SP SP K 500
Current value of T0
T0 setting value
4-18
Section 5 Auxiliary Function
Page
5-1 PC Start/Stop ............................................................................................................... 5-1
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.
AUXILIARY
Sets auxiliary mode. AUX 1 RUN / S T O P SW
PC STOP
Stops the PC. GO COMPLETION
* AUXILIARY
Returns to the previous screen. CLR 1 R U N /S TOP S W
PC START
Starts the PC. GO
EXECUTING
RD INS MNT
* Press AUX or instead of CLR key to set each mode.
WR DEL TEST
Note
When making use of this start/stop function for the NJ or NS series, be sure to set the key switch of CPU module
in the TERM position.
5-1
5-2 Program Check
Be sure to stop the PC before checking a program. (Perform the operation on the previous page to stop the PC.)
A following message appears on the Handy Loader if the program check is executed while the PC is running:
PROGRAM CHECK
PC RUNNING
PROGRAM CHECK
Executes program check.
GO EXECUTING
..................................
Yes.
Program error?
There is an error
in the program.
No.
User program
contains no error.
If there are multiple errors, press and to display them. Press to display any program error at a subsequent
step, or press to display any program error at a preceding step. Up to six program errors can be stored in memory.
5-2
5-2 Program Check
The following table lists error codes that may be stored in the instruction RAS area and their contents.
Note that these error codes are independent of the codes that may be stored in the system RAS area.
1) SPB-series
5-3
5-2 Program Check
2) FLEX-N series
Instruction Contents NB0 NB NJ NS
RAS code
00 Normal
01 A nonexecutable instruction is found. Instructions for upper-level models or
reserved for future use are nonexecutable.
02 The type or size of an operand is out of the valid range. The operands of the
instructions for upper-level models are specified.
07 The same address is used in both an input relay X** and output relay Y** in a
program. (For example, X000 and Y000 are found.)
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
23 Too many ANB or ORB instructions are specified, and a stack error results.
(Max. 8 rows)
5-4
5-3 Parameter Setting
Parameters are set for using expanded functions in addition to the standard functions.
Parameters are assigned to the PC memory area according to the PC type. This section explains how to set parameters
using the Handy Loader.
For the details of each parameter, see the SOFTWARE USER’S MANUAL of PC’s (SPB-, NS-, NJ-, and NB-series).
AUXILIARY
AUX
3 PARAMETER
PARAMETER
GO
MRD PARAMETER 02
GO
2 H0000
GO GO Executes.
PARAMETER SET
COMPLETION
* Press the or key to scroll numeral of the parameter address.
Notes
Some parameters are effective as soon as they are set, while others require power to be reset or PC to be restarted
(RUN STOP RUN) before becoming effective.
5-5
5-3 Parameter Setting
Parameters
Parameters enable the PC to be used flexibly for a variety of purposes. The PC can be used without the user setting
parameters (the defaults are in effect). However, if the default settings of the parameters do not meet the user’s
requirements, the user may specify different parameters.
Parameters can be set by using a program loader. The following table lists the parameters of the PC.
(1) SPB-series
Address Item Default Setting range
00H File register capacity 0: No file register N x 256 words,
(1 word) N: 00 to 1FH (0 to 32)
03H Backup battery 0: Monitor “Monitor battery error” or “Do not monitor battery error”
error monitoring battery error
(2 bit)
0CH High-speed 0: Not specified Whether or not to use high-speed counter and the mode of high-speed counter
0D counter can be specified.
0FH Input filtering OFF to ON: 3ms Input filtering time can be specified in word units.
to time ON to OFF: 3ms
1EH
* Please refer to the user’s manual <FEH400 Section 4-3 Parameter Setting> for the set method.
5-6
5-3 Parameter Setting
(2) N-series
Setting range
Address Item Default
NB NJ NS
00H File register capacity 0: No file register N x 256 words, N x 256 words, N x 256 words,
A8 N: 00 to 1FH (0 to 31)
(1 word) N: 0 to 1FH (0 to 31) E4 N: 00 to 0FH (0 to 15) A64, B64 N: 0 to 80H (0 to 128)
B16 N: 00 to 3DH (0 to 61) A32, B32 N: 00 to 7FH (0 to 127)
01H User watchdog timer 0: 250ms N x 10ms, Nx 10ms,
(1 word) N: 0 to 19H (0 to 25) N: 0 to FFH (0 to 255)
(0: 250ms) (0: 2560ms)
02H Fixed-cycle scanning time 0: Normal scan N x 1ms
(1 word) N: 0 to FFH(0 to 255)
(0: Normal scan)
PC operation mode
EEPROM operation 0: Enables Enables EEPROM writing or Disables EEPROM writing * (To set an operation
mode EEPROM writing mode when an EEPROM memory cassette is used as the program memory.)
I/O status latch 0: Turn OFF Turn off outputs and refresh inputs , or Stop data memory hold and Stop
0: Does not clear outputs and output hold
refresh inputs
04H Remote RUN 0: No remote RUN No remote RUN or Remote RUN , X0 to X1FF
(1 word) * (An arbitrary external input can be specified as the input signal to start the PC
(RUN contact).)
06H Relay/register latch range 0: Not specified Not specified or Specified (Areas M, L, and D)
to (4 words) * (Memory backup can be set for a device that does not have backup, or memory
backup for a device can be cancelled.)
09H
0AH
Not used.
0BH
* For setting of EEPROM operation mode, refer to the chapter for the memory cassette.
5-7
5-3 Parameter Setting
Setting range
Address Item Default
NB NJ NS
0CH Use of high- 0: Not specified Counters 0 to 7 are used or
speed counter not used.
Not used.
built in the NB-
series
2FH I/O module 0: Automatic The method of I/O module address assignment can be
address assignment and selected;
assignment unused slot. Automatic assignment or arbitrary assignment.
mode Not used. The number of points occupied by unused slots can also
NJ-series : 16 points be specified;
NS-series: 32 points NJ-series : 16 points or 0 point
NS-series: 32 points or 0 point
30H Number of 0: No arbitrary I/O module, optional module, the number of I/O module
to occupied I/O assignment points, and the number of optional module points can be
40H module points for Not used. specified for each slot.
arbitrary
assignment
* 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.
AUXI L I A R Y
AUX
4 PASSWORD
GO PASSWORD
1 SET
Selects password.
GO PASSWORD SET
Note
PASSWORD SET
The password registration is rejected.
11
5-9
5-4 Password
KEY IN PASSWORD
Initial screen
HANDY LOADER
GO Executes.
NW0H-NE V .
AUXILIARY
AUX
4 PASSWORD
Set auxiliary mode to move to 4 PASSWORD .
PASSWORD
GO
2 CANCEL
Move to an item of deleting a password.
PASSWORD CANCEL
GO
COMPLETION
Executes password deletion.
, , KEY IN PASSWORD
SP SP
PC ALL CLEAR ?
GO
OK [GO]
5-10
5-5 Message Display
AUX AUXILIARY
5 SYSTEM MESSAGE
Set auxiliary mode to move to 5 MSG DISPLAY and executes. <When there is no message>
SYSTEM MESSAGE
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
(1) (2) (3) (4) (5) (6) (7) (8) (9) (10) (11) (12) (13) (14) (15) (16)
5-11
5-5 Message Display
User nonfatal User nonfatal fault relay on USER S MINOR FLT 37 M8001 M8026 · During running
fault M8010~M802F
User fatal fault User fatal fault relay on USER S MAJOR FLT 36 M8001 M8027 · During running
M8130~M814F
I/O collation error Configuration data inconsistent EXPNDER DISCONN 45 M8001 M8033 · Constantly
User program Program check for circuit error, PROGRAM ERROR According to M8001 M8032 · With the loader at
error syntax error,etc. instruction *1 start-up (program
RAS code check)
CPU error System WDT up · Constantly
Built-in flash Sum check of built-in flash memory FLASH MEM ERR 51 M8001 M8039 · At power on
memory error Write check of built-in flash memory FLASH MEM W ERR 52 M8001 M8039 ·During built-in flash writing
Simplified CPU link Disconnected station detected or CPU LINK CFG ERR 4F M8001 M802C · Constantly
structure error structure registered station not yet
connected during simplified CPU
link communication
*1) Please refer to the <Instruction RAS Code List (Page 5-3)> for the Instruction RAS Code .
5-12
5-5 Message Display
2) FLEX-N series
Expansion power Expansion unit power not EXPNDER PWR DOWN 15 M8001 · Constantly
shutdown normally supplied
24V DC error 24V DC power output short- AUX PWR SPLY FLT 16 M8001 M8025 · Constantly
circuited or overcurrent
User RAM error User program check sum error PROGRAM MEM ERROR 21 M8001 · At power on
Parameter check sum error PRMTR MEM ERROR 26 M8001 · At start-up
File check sum error FILE RGTR ERROR 27 M8001 · During running
User macro check sum error USER MACRO ERROR 28 M8001
Power failure hold Keep relay data not held LATCH DATA ERROR 29 M8001 M8021 · At power on
error
Memory cassette Sum check error CST DATA ERROR 2A M8001 · At power on
error PC type code unmatched MEM CST MISMATCH 2F M8001
Battery error Voltage drop (Note: 2) BATTERY ERROR 22 M8001 M8028 · Constantly
Battery loose BAT NOT CONNTED 25 M8029
Operation and User WDT up WDT UP WDT UP 35 M8001 M8020 · During running
monitoring
User nonfatal fault User nonfatal fault relay on USER S MINOR FLT USER S MINOR FLT 37 M8001 M8010 to · During running
M802F
User fatal fault User fatal fault relay on USER S MAJOR FLT USER S MAJOR FLT 36 M8001 M8030 to · During running
M804F
Blown output fuse Blown output fuse detecting FUSE FAULT 44 M8001 M8080 to · Constantly
M8022 M80BF
I/O verify error Configuration data inconsistent EXPNDER DISCONN 45 M8001/M8032 M8040 to · Constantly
M807F
Expansion unit Expansion unit disconnect EXPNDER DISCONN 45 M8001 M8023 · Constantly
disconnect during running
I/O area Number of I/O points of I/O I/O POINT OVER 46 M8001 · At power on
exceeded module exceed the maximum
Expansion unit Expansion unit I/O area exceeded I/O POINT OVER 46 M8001 · At power on
code setting
error Expansion unit I/O area overlap I/O AREA OVERLAP 4A · At power on
Module error I/O slot mounting module error I/O MODULE FAULT 47 M8001/M8024 · Constantly
other than error code 44 or 45 OPTION MDL ERROR 48 M8001 M80C0 to M80FF
Mounting position hand shake OPTION WDT UP 49 M8001
error
User program error Program check for circuit error, PROGRAM ERROR ERROR IN STEP According to M8001 · With the loader
syntax error, etc. instruction (Note: 3) at start-up
RAS code (program check)
5-13
5-5 Message Display
<Screen>
USER MESSAGE
(1) (2) (3) (4) (5) (6) (7) (8) (9) (10) (11) (12) (13) (14) (15) (16)
<Key operation>
AUXILIARY
AUX 5 MSG DISPLAY
SYSTEM MESSAGE
GO
USER MESSAGE
Note: If there are no system messages (no errors have occurred), SYSTEM MESSAGE does not appear but USER MESSAGE
only appears.
5-14
5-5 Message Display
0000 0010 0011 0100 0101 0110 0111 1010 1011 1100 1101 1110 1111
0 2 3 4 5 6 7 A B C D E F
**** 0000
0
**** 0001
1
**** 0010
2
**** 0011
3
**** 0100
4
**** 0101
5
**** 0110
6
**** 0111
7
**** 1000
8
**** 1001
9
**** 1010
A
**** 1011
B
**** 1100
C
**** 1101
D
**** 1110
E
**** 1111
F
5-15
5-5 Message Display
AUX GO GO
PARAMETER 00
H 0 000
Set the file register by setting parameter (file register).
MPS
GO GO GO
1 PARAMETER SET
COMPLETION
Secures the file register area as 256 words (R0 to RFF).
User message display data is written in the file register area R0 to RF.
R0 H3058
R1 H7E20
R2 H6F20
R3 H206E
X0 on
R4 H2020
R5 H2020
R6 H2020
R7 H2020
R8 H3058
R9 H7E20
RA H6F20
RB H6666
X0 off
RC H2020
RD H2020
RE H2020
RF H2020
5-16
5-5 Message Display
Display program (Use the block transfer BMOV instruction to read a data from the file area.)
X0
BMOV R0 : D8030 : K8
X0
BMOV R8 : D8030 : K8
Note: The NB0 and NBE (NB2-P24/36, NB2U24/36) types do not support the file register and block transfer (BMOV) instruction.
Use the MOV instruction in another memory area.
AUX GO
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.
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.
0 Total number Latest RAS · Total number of errors: Countable from 00 to FFH (0 to 255).
of errors position Returns to 00 after FF
1 Error code (system RAS code) Latest RAS position: Indicates address (No.) where the latest RAS
2 is stored. (If no RAS is stored, 0 is indicated.)
· The PC itself stores up to 7 errors into the address No. 1 and
NB0 3 followed Nos for each error occurrence.
4 If the address No. F is occupied by the error code, the processing
5 returns to address No. 1 and the latest 7 errors are stored.
6
7
Total number Latest RAS · Total number of errors: 00 to FF
0
of errors position · Latest RAS position: Indicates address (No.) where the latest RAS
Error code (system RAS code) is stored. (If no RAS is stored, 0 is indicated.)
1
Hexadecimal
F0
5-18
5-6 RAS
AUXILIARY
AUX GO
6 RAS
SYSTEM RAS
GO
• Five errors occurred and their RAS code are stored in RAS address 1 to 5.
• In this address, the RAS code of the last generated error is stored.
Call the system RAS In the NJ/NS-series, the date and time SYSTEM RA S 01
address 1 . of error occurrence are stored. 0011
Note: Even when the PC function normally, the system RAS area holds data in case of service interruption, retaining RAS
information for the previous error.
In addition, the PC itself recognizes the power voltage drop when the PC power is turned off as an error, and stores
the system code “11” . Thus, RAS code “11” is stored each time the power is turned off.
Rated
voltage
Power voltage
drop is recognized.
PC
Power off
5-19
5-6 RAS
AUXILIARY
AUX
6 R AS
RAS
Moves to 2 INSTR RAS . GO
2 I N S T R RAS
I N S T R RAS
Monitors the instruction RAS area. GO
1 E R R COD 20
5-20
5-6 RAS
The instruction RAS is stored after program check is performed. The PC starts program check from the first program step.
Errors, if any, are stored sequentially. If the number of errors reaches six, no further errors are stored. This error
information is retained in case of interruption of service, and memory contents are renewed when program check is
performed again.
• Contents of instruction RAS area (store error codes and error occurrence step)
5-21
5-6 RAS
AUXILIARY
AUX
6 RAS
Five times
RA S
GO
3 SYSTEM RAS CLR
5-22
5-6 RAS
AUXILIARY
AUX
6 RAS
Five times
RAS
GO
4 OPTION R AS
OPTION RAS
GO Inputs optional RAS area address.
Optional RAS area addresses are assigned within a range from 000 to 7FF.
7 FF
The lower two digits indicate the optional RAS area address.
The highest digit indicates the slot position of the option module.
Note:
There is no units which are provided with optional RAS area in NB series. If an attempt to perform optional RAS code
diagnosis, the screen below appears.
OPTION RA S
PARAMETER ERR
5-23
5-7 Data Transfer to/from the Memory Card or Memory Cassette
on the Processor
The memory cassette and internal memory can be used to save the program in SPB series.
(1) When there is no flash memory card (Transfer to internal flash memory)
AUXILIARY
7 MEM CST XFR
GO
MEM CST XFR
1 PCRAM PCFLASH
GO
PCRAM PCFLASH
OK [GO]
GO
PCRAM PCFLASH
EXECUTING
PCRAM PCFLASH
COMPLETION
5-24
5-7 Data Transfer to/from the Memory Card or Memory Cassette
on the Processor
MEM CST XFR Copies the flash memory card contents to the PC
2 PCRAM FLASH program memory.
MEM CST XFR Verifies the PC program memory contents with the
3 PCRAM : FLASH flash memory card.
PCRAM FLASH
OK [GO]
GO
PCRAM FLASH
EXECUTING
PCRAM FLASH
COMPLETION
5-25
5-7 Data Transfer to/from the Memory Card or Memory Cassette
on the Processor
PCRAM FLASH
OK [GO]
GO
PCRAM FLASH
EXECUTING
PCRAM FLASH
COMPLETION
Verifies the PC program memory contents with the flash memory card.
PCRAM : FLASH
OK [GO]
GO
PCRAM : FLASH
EXECUTING
PCRAM : FLASH
COMPLETION
5-26
5-7 Data Transfer to/from the Memory Card or Memory Cassette
on the Processor
EEPROM
memory cassette
EPROM
x
memory cassette
Processor program
memory
The following memory cassette are available for each FLEX-PC N-series PC:
NB-E x x x
NB-series x x x
NJ-CPU-A8 x
NJ-CPU-E4 Memory cassette cannot be mounted.
NJ-CPU-B16
NJ-CPU-B32
NS-A (B)32 x
NS-A (B)64 x
NB0 Memory cassette cannot be mounted.
: Usable
x : Unusable
: Unusable within the capacity of memory cassette
5-27
5-7 Data Transfer to/from the Memory Card or Memory Cassette
on the Processor
Note: The processor program memory is overwritten and the contents it held before power was turned on are lost.
1) EPROM cassette
If the processor is provided with an EPROM cassette and the power is turned on, ROM operation starts.
2) EEPROM cassette
Setting can be made for the EEPROM cassette so that ROM operation is not provided even if the power is turned on while
the EEPROM mounted on the processor.
Whether or not ROM operation is provided with the EEPROM cassette mounted is determined with the ON/OFF state of the
EEPROM protect switch and PC processor parameter memory 03H.
Parameter F E D C B A 9 8 7 6 5 4 3 2 1 0
03H
OFF
WRITE PROTECT
WRITE PROTECT
-
-
ON
ON
4KW
4KW
EEPROM
EEPROM
5-28
5-7 Data Transfer to/from the Memory Card or Memory Cassette
on the Processor
Conclusion
Setting to provide no ROM operation can be made for the EEPROM cassette.
When the protect switch is off (write enabled), parameter 03H bit 1 is set.
5-29
5-7 Data Transfer to/from the Memory Card or Memory Cassette
on the Processor
(2) Transfer and verification in the memory cassette and the processor program memory
The program and parameter are stored in the memory cassette. Data is not stored.
Note: The file register areas uses the program memory area, thus allowing data to be stored in the memory cassette.
Install the memory cassette before turning on power. The PC recognizes that a memory cassette is mounted when
power is turned on. The PC does not recognizes a memory cassette if it is mounted after power is turned on.
CPU-A8
RUN
EPR
BAT
Cover
0 1 2 3
C D E F
Cover
Cover
Memory cassette
holder
Memory cassette
0 1 2 3 holder
C D EF
Memory cassette
Cover
Memory cassette
Memory cassette Cover
5-30
5-7 Data Transfer to/from the Memory Card or Memory Cassette
on the Processor
Step 3 Stop the PC using the Handy Loader. (See Section 5-1)
(If the PC is running, transfer/verification is not executed.)
Step 4 Perform the following key operation with the Handy Loader.
AUXILIARY
AUX
7 MEM CST XFR
6 times
2 PCRAM : EPROM Collates the EPROM contents with the processor program
memory contents.
Note
A program cannot be written to the EPROM cassette by Handy Loader operation only.
A PROM writer is necessary for copying the PC RAM contents to the EPROM memory cassette. (See Section 5-12.)
5-31
5-7 Data Transfer to/from the Memory Card or Memory Cassette
on the Processor
PCRAM EPROM
GO
OK [GO]
PCRAM EPROM
GO
EXECUTING
PCRAM EPROM
COMPLETION
PCRAM : EPROM
GO
OK [GO]
PCRAM : EPROM
COMPLETION
5-32
5-7 Data Transfer to/from the Memory Card or Memory Cassette
on the Processor
The following operations are enabled when an EPROM is mounted on the PC.
1. PCRAM EPROM
2. PCRAM : EPROM
When an EPROM is mounted on the processor, writing to the program memory is disabled and the following message
appears:
MEMORY WR ERROR
To change the PC RAM contents, write data only after removing the EPROM.
To change the EPROM contents, first change the PC RAM contents, then delete the EPROM contents with a ROM
eraser, and finally write data with the PROM writer.
5-33
5-7 Data Transfer to/from the Memory Card or Memory Cassette
on the Processor
PCRAM EEPROM
GO
OK [GO]
PCRAM EEPROM
GO
EXECUTING
PCRAM EEPROM
COMPLETION
5-34
5-7 Data Transfer to/from the Memory Card or Memory Cassette
on the Processor
PCRAM EEPROM
GO
OK [GO]
PCRAM EEPROM
GO
EXECUTING
PCRAM EEPROM
COMPLETION
PCRAM : EEPROM
GO
OK [GO]
PCRAM : EEPROM
GO
EXECUTING
PCRAM : EEPROM
COMPLETION
5-35
5-7 Data Transfer to/from the Memory Card or Memory Cassette
on the Processor
The following operations are enabled when an EEPROM is mounted on the PC.
1. PCRAM EEPROM
2. PCRAM EEPROM
3. PCRAM : EEPROM
Be sure to stop the PC before the above operations. (See Section 5-1.)
The parameter which determines the usage of the EEPROM is assigned to the parameter address 03H.
The meanings of the parameter are as follows:
F E D C B A 9 8 7 6 5 4 3 2 1 0 ¥ 0: When power is turned on, the contents of EEPROM
is copied to RAM.
03H ¥ 1: When power is turned on, the contents of EEPROM
is not
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.
W
MEM WRITE ERROR
5-36
5-7 Data Transfer to/from the Memory Card or Memory Cassette
on the Processor
Memory contents
NB
Memory contents
NB
5-37
5-8 Device Conversion
This function is to change addresses of devices within a PC. The device address of a specific device used in the PC
program is changed. Execute this function after stopping the PC.
This function is disabled while the processor is running.
<Key operation>
AUXILIARY
AUX
1 RUN/STOP SW
DEVICE CONV
GO
DEVICE CONV
GO Press CLR to return to the initial screen.
X0 1 2 X 034
DEVICE CONV
COMPLETION
The above operation changes all X12 used in the program to X34.
X20 X20
X12 X34
5-38
5-9 Memory Clear
Memory Clear clears the contents of the processor memory (program memory, parameter memory, and data memory).
AUXILIARY
AUX (Press eight times.) 9 MEMORY CLEAR
MEMORY CLEAR
GO 1 PARAMETER CLR
MEMORY CLEAR
Clears parameter.
1 PARAMETER CLR
MEMORY C L E A R
Clears program.
2 PROGRAM CLR
MEMORY CLEAR
Clears data.
3 DATA CLR
5-39
5-9 Memory Clear
AUXILIARY
AUX (Press eight times.)
9 MEMORY CLEAR
MEMORY CLEAR
Selects 1 PARAMETER CLR . GO
1 PARAMETER CLR
PARAMETER CLR
GO
OK [GO]
PARAMETER CLR
GO
EXECUTING
PARAMETER CLR
COMPLETION
AUXILIARY
AUX (Press eight times.)
9 MEMORY CLEAR
PROGRAM CLR
GO
OK [GO]
PROGRAM CLR
GO
EXECUTING
PROGRAM CLR
COMPLETION
5-40
5-9 Memory Clear
AUXILIARY
AUX (Press eight times.)
9 MEMORY CLEAR
Move to 3 Data Clear.
MEMORY CLEAR
GO
3 DATA CLR
DATA CLR
GO
OK [GO]
DATA CLR
GO
EXECUTING
DATA CLR
COMPLETION
AUXILIARY
AUX (Press eight times.)
9 MEMORY CLEAR
MEMORY CLEAR
GO
4 ALL CLR
ALL CLR
GO
OK [GO]
Selects 4 ALL CLR .
ALL CLR
GO
EXECUTING
ALL CLR
COMPLETION
5-41
5-10 Calendar Setting
For a PC provided with a calendar function, the set data can be changed.
Selects CALENDAR SET Reads contents from the special register calendar
CALENDAR SET. GO area for display. (BCD)
1 YEAR
4 HOUR
PLF PLF
GO
5 5
CALENDAR SET
(Same for other items)
6 SECOND
(Setting is not change unless GO is pressed.)
5-42
5-11 Buzzer ON/OFF
AUXILIARY
AUX
11 BUZZER ON /OFF
(Press 10 times.)
5-43
5-12 Modules (Expansion Function)
A program that has been written in the Handy Loader can be stored in a memory cassette using an expansion module
(with read, write, and verify functions) of the Handy Loader.
EPROMs cannot be used for storing a program in NB0-series PC.
Note: Storing a program in an EEPROM cassette or a RAM memory cassette can also be performed without using the
expansion module. (See “5-7-2 Transfer and verification in the memory cassette and the processor program
memory”.)
4)
3)
5-44
5-12 Modules (Expansion Function)
Step 1 Remove the cover from the Handy Loader expansion interface connector. (Figure 1)
Step 2 Insert the connector 4) for the Handy Loader in the Handy Loader. (Figure 2)
Step 3 Secure the PROM writer or EEPROM read/write unit to the Handy Loader by
tightening the screw attached. (Figure 2)
Step 4 Open the memory cassette connector cover 2) of the PROM writer or
EEPROM read/write unit to insert the memory cassette. (Figure 3)
Figure 1
Screw
Memory cassette
(EPROM or EEPROM)
Figure 3
5-45
5-12 Modules (Expansion Function)
AUXILIARY
AUX (Press 11 times.)
12 MODULE
PROM WRITER
GO
OK [GO]
Specify the same memory cassette type as the memory cassette being inserted. If the wrong type is specified, Memory
cassette error appears and the program may not be transferred correctly.
Note: The EPROM memory cassette cannot be used in the EEPROM read/write unit.
PROM writer cannot be used for NB0 series.
PROM WRITER
GO
1 PC EPROM
Select one of the memory cassette types. The PROM writer function menu list then appears.
5-46
5-12 Modules (Expansion Function)
PROM WRITER ÆTransfers data from the EPROM to the PC program memory
2 PC EPROM (in the same way as when power is turned on while the
EPROM is mounted on the PC).
PROM WRITER ÆVerifies the PC program memory contents with the EPROM
4 BL A N K CHECK
Note: When an EEPROM read/write unit is used, operation of the EPROM memory cassette is disabled and the
EPROM memory cassette type cannot be selected.
5-47
5-12 Modules (Expansion Function)
<1. PC EPROM>
Copies the PC program memory contents to an EPROM memory cassette.
<Screen>
PROM WRITER
1 PC EPROM
PC EPROM
GO OK [G O]
PC EPROM
GO
COMPLETION
Execute.
<2. PC EPROM>
Copies the EPROM memory cassette contents to the PC program memory.
PROM WRITER
2 PC EPROM
PC EPROM
GO OK [G O]
GO PC EPROM
COMPLETION
Execute.
5-48
5-12 Modules (Expansion Function)
<3. PC : EPROM>
Verifies the PC program memory contents with the EPROM memory cassette contents.
<Screen>
PROM WRITER
3 PC : EPROM
PC : EPROM
GO OK [G O]
PROM W R I T E R
4 BLANK CHECK
5-49
5-12 Modules (Expansion Function)
If data is written repeatedly, written data may not be deleted from the EPROM or EEPROM. Write a program only
after thoroughly checking it.
Changing EEPROM contents takes much more time than changing RAM contents.
5-50
5-12 Modules (Expansion Function)
<1. PC EEPROM>
Copies the PC program memory contents to an EEPROM memory cassette.
<Screen>
PROM W R I T E R
1 PC EEPROM
PC EEPROM
GO OK [GO ]
PC EEPROM
GO
COMPLETION
Execute.
Note: When the WRITE PROTECT switch of the EEPROM memory PC EEPROM
cassette is turned on, WRITE ERROR appears and data W R I T E ERROR
transfer is disabled.
<2. PC EEPROM>
Copies the EEPROM memory cassette contents to the PC program memory.
PROM W R I T E R
2 PC EEPROM
PC EEPROM
GO OK [GO ]
PC EEPROM
GO
COMPLETION
Execute.
5-51
5-12 Modules (Expansion Function)
<3. PC : EEPROM>
Verifies the PC program memory contents with the EEPROM memory cassette contents.
<Screen>
PROM WRITER
3 PC :EEPROM
PC : EEPROM
GO OK [GO]
5-52
5-12 Modules (Expansion Function)
The PROM writer (N-HLD-PRW) and EEPROM read/write unit (NN-HLD-EERW) have the following functions:
PROM writer x
The EEPROM read/write unit is required for data transfer between an NB0-series PC and an EEPROM memory
cassette.
A memory cassette cannot be mounted on NB0-series.
A program created by NB0 can be transferred to another PC or a program stored in a memory cassette can be
transferred to the NB0-series, by using a setup as shown below.
Handy Loader
5-53
5-12 Modules (Expansion Function)
Program error The program read from the memory cassette to the PC Memory cassette PC
(PROGRAM ERROR) contains a syntax error.
Cassette not mounted Memory cassette is not plugged into the ROM writer. PROM writer all processing
(CST NOT LOADED Memory cassette has come off during processing.
Cassette type not matched Memory cassette type selection error. PC Memory cassette
(CST MISMATCH) i Selection error for EEPROM and EPROM
ii Selection error for EPROM 256K product and 1M product,
and EEPROM 64K product and 256K product
iii RAM is installed.
Blank error (BLANK ERROR) EPROM memory cassette contents are not yet deleted. BLANK CHECK
Write error Data cannot be written into memory cassette. Memory cassette PC
(WRITE ERROR) (EPROM fault, or EEPROM WRITE PROTECT switch ON)
Insufficient cassette capacity Total memory requirement of PC program, user macro, and PC Memory cassette
(CST CAP SHORT) R areas exceeded the memory cassette capacity.
Insufficient PC capacity Total memory requirement of memory cassette program, user Memory cassette PC
(PC CAP SHORT) macro, and R areas exceeded the PC program capacity.
Verification error Data in the PC does not conform with PROM data. PROM : PC
(VERIFY ERROR)
Loader type not matched Loader manufacturer type does not match the PROM PROM PC
(LDR MISMATCH) internal data manufacturer type.
Module not connected PROM writer or audio CMT is not connected. GO key pressed at 12 MODULE
(MDL NOT CONNTED)
5-54
5-13 Setting the PC Station Number
The NS-series and NJ-series provide data communication between PCs using a communication module such as an NP-
link module or an ME-NET module.
NP-link module
on Slot 4
This setting is for communication between the
Handy Loader and a PC (linked by
communication modules) other than that
connected to the Handy Loader.
Sta. No. 2 PC The Station number (Sta. No.) is set with the
following procedure:
1) Register a slot number in which the
communication module is mounted.
2) Set the Sta. No. of the PC to be
communicated with, using the Handy Loader.
NP-link module
on Slot 4
NP-link
cable
Sta. No. 1 PC
Perform the key operation below to enable the Handy Loader to communicate with Sta. No. 2 PC, given the above system
configuration.
PC NO . SET
GO 1 SLOT N O .
RST PC NO . SET
4 2 PC STA NO.
MRD PC NO . SET
(PC Sta. No. = 2)
2 OK [G O]
PC NO . SET
GO
COMPLETION
5-55
5-14 User Program Storage in Memory in Handy Loader
Two memories by which the user program is stored are built in Handy Loader. The user program writing, the reading and
the collation operation can be done to the memory.
TRANSFER AREA
Display the storage area (AREA 1).
1 AREA1
TRANSFER AREA
1 AREA1
• Menu display
5-56
5-14 User Program Storage in Memory in Handy Loader
<1. PC Loader>
Copies the PC program to the memory in Handy Loader.
(The operation is the same also in area 2.)
TRANSFER
1 PC LOADER
PC LOADER (AREA 1)
GO
OK [GO]
PC LOADER (AREA 1)
GO
EXECUTING
PC LOADER (AREA 1)
COMPLETION
TRANSFER
2 PC LOADER
PC LOADER (AREA 1)
GO
OK [GO]
Confirms the transfer origin.
Except the SPB
PCRAM PCFLASH
OK [GO]
PC LOADER (AREA1)
COMPLETION
PC LOADER (AREA1)
PC RUNNING
5-57
5-14 User Program Storage in Memory in Handy Loader
<3. PC : LOADER>
Verifies the program in Handy Loader and the program in the PC.
(The operation is the same also in area 2.)
TRANSFER
3 PC : LOADER
PC : LOADER (AREA1)
GO
OK [GO]
PC : LOADER (AREA1)
GO
EXECUTING
PC : LOADER (AREA1)
COMPLETION
VERIFY ERROR
(Verification error in the parameter part)
PARAMETER
Error address (HEX)
VERIFY ERROR
(Verification error in the program part)
PROGRAM
Error step (DEC)
Erases the memory in Handy Loader. (The operation is the same also in area 2.)
TRANSFER
4 ERASE
GO ERASE (AREA1)
OK [GO]
GO ERASE (AREA1)
COMPLETION
* Transfer the PC program to the memory in Handy Loader after erasing the memory in Handy Loader.
5-58
5-14 User Program Storage in Memory in Handy Loader
Verification error Data in the PC does not conform with Handy Loader. Loader: PC
(VERIFY ERROR)
Blank error Memory in Handy Loader are not yet deleted. PC Loader
(BLANK ERROR)
Write error Data cannot be written into memory in Handy Loader. PC Loader
(WRITE ERROR)
( ): Message on LCD
5-59
Section 6 User Macrocommands
Page
6-1 Handling User Macros ................................................................................................ 6-1
6-1-1 Using the Handy Loader (NW0H-NE) ................................................................................... 6-1
6-1-2 Notes on using the Handy Loader ........................................................................................ 6-1
Supplied by
manufacturer.
Standard user macro library
FUJI Custom-made user macros.
ELECTRIC
6-1
6-2 User Macro Configuration
PC program area
6-2
6-2 User Macro Configuration
RST ,
FNC User macro number
Word input processing 4 SP
(before execution) Data that can be processed and calculated by user macros is limited to that
in the dedicated data area. Required data is passed to this area.
Bit input processing
User macro call part
(before execution)
PLF
Word output processing FNC GO
5
(after execution) Processing and calculation results of user macros are output to the dedicated
data area. Output data is passed to the normal area used by the main routine.
Bit output processing
(after execution)
MCR
FNC GO
6
RET ,
FNC User macro number
7 SP
Instructions executed
SET
FNC GO
8
* Instruction words related to user macros are input by FNC No. in the same way as other data instructions.
6-3
Appendix
Page
(1) Basic instruction ................................................................................................................................ App.-1
(2) Application instruction ....................................................................................................................... App.-4
Appendix
Instruction List
(1) Basic instruction
1) Contact instructions : Usable, : Unusable
Instruction Symbol FNC No. Function No. of PC type
steps NS/NJ NB NBE NB0 SPB
1
LD — Specifies NO contact from bus
2
1
LDI — Specifies NC contact from bus
2
1
AND — Connects NO contact in series
2
1
ANI — Connects NC contact in series
2
1
OR — Connects NO contact in parallel
2
Connects NO contact in parallel 2
OR —
(rising edge differential)
App.-1
Appendix
1
ORI – Connects NC contact in parallel
2
Connects NC contact in parallel 2
ORI –
(rising edge differential)
Not marked in a
MPS – Writes operation result into register 1
ladder diagram
Not marked in a
MRD – Reads operation result from register 1
ladder diagram
Not marked in a 1
MPP – Reads and resets operation result
ladder diagram
1
OUT – Output from device
2
1
SET S – Sets device
2
Bits specified 1
RST R – Resets bits
2
Words specified
*
RST D – Resets word device 2
App.-2
Appendix
T
OUTT TMR D – Connects incrementing timer 2
C
OUTC – Connects incrementing counter 2
CTR D
CRST
Not marked in a
NOP – No operation 1
ladder diagram
INV – Invert 1
D
SC SC FNC060 Controls of the steps of internal relay L 3
App.-3
Appendix
S1 D1
DMPX DMPX S1, D1, D2 FNC026 Distribution 4
S1 D
MPX MPX S1, S2, D FNC027 Extraction S1+S2 4
S D
n words n words
BMOV BMOV S, D, n FNC023 Block transfer 4
Block transfer S
FMOV FMOV S, D, n FNC024 4
(same data)
32-bit transfer 3
DMOV DMOV S, D FNC021 S D
S+1 D+1 4
Transfers from S to D
DCML DCML S, D FNC02A 4
(32 bits)
Transfers S D
2 words
4
DFMOV DFMOV S, D, n FNC02C same data block
(32 bits) 5
App.-4
Appendix
3
LDD= D= S1, S2 FNC110 ON if S1 = S2 (32-bit)
4
3
LDD<> D<> S1, S2 FNC111 ON if S1 = S2 (32-bit)
4
App.-5
Appendix
App.-6
Appendix
Decrement (16-bit)
DEC -1 D FNC036 2
D-1 D
- 1P D
Decrement pulse (16-bit)
DECP FNC037 2
D-1 D
Signed multiplication (32-bit) 4
DMUL D x S1, S2, D FNC03E (S1+1, S1) x (S2+1, S2)
(D+3, D+2, D+1, D) 5
Signed division (32-bit) 4
DDIV D / S1, S2, D FNC03F (S1+1, S1) / (S2+1, S2) Quotient
(D+1,D), Remainder (D+3, D+2) 5
D+1 D
Increment (32-bit)
DINC FNC130 2
D+1 D
D+1P D
Increment pulse (32-bit)
DINCP FNC131 2
D+1 D
App.-7
Appendix
SEC S, D
HMS (hours/minutes/seconds) to
SEC FNC04A 3
SEC (seconds) conversion
App.-8
Appendix
App.-9
Appendix
P JEND n - Pointer n: 0 to FF 2
App.-10
Appendix
NROR NROR D, n FNC058 N-bit right rotation of 16-bit data (no carry) 3
NROL NROL D, n FNC059 N-bit left rotation of 16-bit data (no carry) 3
App.-11
Appendix
App.-12
Appendix
App.-13
Gate City Ohsaki, East Tower,
11-2, Osaki 1-chome, Shinagawa-ku, Tokyo 141-0032, Japan
E-mail: micrex-sx@fujielectric.co.jp
URL: http://www.fujielectric.com/
Materials covered in this document are subject to revision due to the modification of the product. Issued as FE consolidated edition, June 2011