To ensure that the equipment described by this manual. As well as all equipment connected to and used
with it, operate satisfactorily and safely, all applicable local and national codes that apply to installing and
operating the equipment must be followed. Since codes can vary geographically and can change with
time, it is the user’s responsibility to determine which standard and codes apply, and to comply with
them.
FAILURE TO COMPLY WITH APPLICABLE CODES AND STANDARDS CAN RESULT IN
DAMAGE TO EQUIPMENT AND / OR SERIOUS INJURY TO PERSONNEL.
INSTALL EMERGENCY POWER STOP SWITCH WHICH OPERATES INDEPENDENTLY OF
THE PROGRAMMABLE CONTROLLER TO PROTECT THE EQUIPMENT AND / OR
PERSONNEL IN CASE OF THE CONTROLLER MALFUNCTION.
Personnel who are to install and operate the equipment should carefully study this manual and any
others referred to by it prior to installation and / or operation of the equipment. Hitachi, Ltd. constantly
strives to improve its products, and the equipment and the manual(s) that describe it may be different
from those already in your possession.
If you have any questions regarding the installation and operation of the equipment, or if more
information is desired, contact your local Authorized Distributor or Hitachi, Ltd.
IMPORTANT
THIS EQUIPMENT GENERATES, USES, AND CAN RADIATE RADIO FREQUENCY ENERGY AND, IF
NOT INSTALLED AND USED IN ACCORDANCE WITH THE INSTRUCTION MANUAL, MAY CAUSE
INTERFERENCE TO RADIO COMMUNICATIONS. AS TEMPORARILY PERMITTED BY REGULATION,
IT HAS NOT BEEN TESTED FOR COMPLIANCE WITH THE LIMITS FOR CLASS A COMPUTING
DEVICES PURSUANT TO SUBPART J OF PART 15 OF FCC RULES, WHICH ARE DESIGNED TO
PROVIDE REASONABLE PROTECTION AGAINST SUCH INTERFERENCE.
OPERATION OF THIS EQUIPMENT IN A RESIDENTIAL AREA IS LIKELY TO CAUSE INTERFERENCE
IN WHICH CASE THE USER, AT HIS OWN EXPENSE, WILL BE REQUIRED TO TAKE WHATEVER
MEASURES MAY BE REQUIRED TO CORRECT THE INTERFERENCE.
LIMITED WARRANTY AND IMITATION OF LIABILITY
Hitachi, Ltd. (Hitachi) warrants to the original purchaser that the programmable controller (PLC)
manufactured by Hitachi is free from defects in material and workmanship under normal use and
service. The obligation of Hitachi under this warranty shall be limited to the repair or exchange of any
part or parts which may prove defective under normal use and service within eighteen (18) months from
the date of manufacture or twelve (12) months from the date of installation by the original purchaser
which ever occurs first, such defect to be disclosed to the satisfaction of Hitachi after examination by
Hitachi of the allegedly defective part or parts. This warranty in expressly in lieu of all other warranties
expressed or implied including the warranties of merchantability and fitness for use and of all other
obligations or liabilities and Hitachi neither assumes, nor authorizes any other person to assume for
Hitachi, any other liability in connection with the sale of this PLC. This warranty shall not apply to this
PLC or any part hereof which has been subject to accident, negligence, alteration, abuse, or misuse.
Hitachi makes no warranty whatsoever in respect to accessories or parts not supplied by Hitachi. The
term "original purchaser", as used in this warranty, shall be deemed to mean that person for whom the
PLC in originally installed.
In no event, whether as a result of breach of contract, warranty, tort (including negligence) or otherwise,
shall Hitachi or its suppliers be liable for any special, consequential, incidental or penal damages
Including, but not limited to, loss of profit or revenues, loss of use of the products or any associated
equipment, damage to associated equipment, cost of capital, cost of substitute products, facilities,
services or replacement power, down time costs, or claims of original purchaser’s customers for such
damages.
To obtain warranty service, return the product to your distributor, or send it with a description of the
problem, proof of purchase, post paid, insured, and in a suitable package to:
Quality Assurance Dep.
Hitachi Industrial Equipment Systems Co., Ltd.
46-1, Ooaza-Tomioka Nakajo-machi
Kitakanbara-gun, Niigata-ken
959-2608JAPAN
Copyright 2000 by Hitachi Industrial Equipment Systems Co., Ltd.
All Rights reserved - Printed in Japan
The information and/or drawings set forth in this document and all rights in and to inventions disclosed herein and
patents which might be granted thereon disclosing or employing and the materials, techniques or apparatus described
herein are the exclusive property of Hitachi, Ltd.
No copies of the information or drawings shall be made without the prior consent of Hitachi, Ltd.
Hitachi, Ltd. provides customer assistance in varied technical areas. Since Hitachi does not posses full access to data
concerning all of the uses and applications of customer‘s products, responsibility is assumed by Hitachi neither for
customer product design nor for any infringements of patents or rights of others which may result from Hitachi
assistance.
The specifications and descriptions contained in this manual were accurate at the time they were approved for printing.
Since Hitachi, Ltd. Incorporated constantly strives to improve all its products, we reserve the right to make changes to
equipment and/or manuals at any time without notice and without incurring any obligation other than as noted in this
manual.
Hitachi, Ltd. assumes no responsibility for errors that may appear in this manual.
As the product works with user program and Hitachi, Ltd. cannot test all combination of user program components, it is
assumed that a bug or bugs may happen unintentionally. If it is happened: please inform the fact to Hitachi, Ltd. or its
representative. Hitachi will try to find the reason as much as possible and inform the countermeasure when obtained.
Nevertheless Hitachi, Ltd. intends to make products with enough reliability, the product has possibility to be damaged at
any time. Therefore personnel who are to install and operate the equipment has to prepare with the counter-measure such
as power off switch can be operated independently of the controller. Otherwise, it can result in damage to equipment
and/or serious injury to personnel.
Safety Precautions
Read this manual and attached documents thoroughly before installing and operating this unit, and performing
maintenance or inspection of this unit in order to use the unit correctly. Be sure to use this unit after acquiring adequate
knowledge of the unit, all safety information, and all precautionary information. Also, be sure to deliver this manual to
the person in charge of maintenance.
Safety caution items are classified as “Danger” and “Caution” in this document.
DANGER
CAUTION
However, depending on the situation, items marked with may result in major accidents.
Both of these items contain important safety information, so be sure to follow them closely.
Icons for prohibited items and required items are shown below:
: Indicates a prohibited item (item that cannot be performed). For example, when open flames are prohibited,
is shown.
: Indicates a required item (item that must be performed). For example, when grounding must be performed,
is shown.
: Cases in which, if handled incorrectly, a dangerous situation may occur, resulting in
possible death or severe injury.
: Cases in which, if handled incorrectly, a dangerous situation may occur, resulting in
possible minor to medium injury to the body, or only mechanical failure.
CAUTION
1. Installation
CAUTION
• Use this product in an environment as described in the catalogue and this document.
If this product is used in an environment subject to high temperature, high humidity, excessive dust, corrosive
gases, vibration or shock, it may result in an electric shock, fire or malfunction.
• Installation this product according to the instructions in this manual.
If installation is not performed correctly, it may result in falling, malfunction, or an operational error of the unit.
• Never allow foreign objects such as wire chips to enter the unit.
They may cause a fire, malfunction, or failure.
2. Wiring
REQUIRED
• Always perform grounding (FE terminal).
If grounding is not performed, there is a risk of an electric shock or malfunction.
CAUTION
• Connect a power supply that meets the rating.
If a power supply that does not meet the rating is connected, it may result in a fire.
• Any wiring operation should only be performed by a qualified technician.
If wiring is performed incorrectly, it may result in a fire, failure, or electric shock.
3. Precautions When Using the Unit
DANGER
• Never touch the terminals while the power is on.
There is a risk of an electric shock.
• Configure the emergency stop circuit, interlock circuit and other related circuits external to the programmable
controller (referred to as the PLC in this document).
Otherwise, a failure in the PLC may damage the equipment or result in a serious accident.
Never interlock the unit with the external load via the relay drive power supply of the relay output module.
CAUTION
• Before performing program change, forced output, run, stop and other operations while the unit is in operation, be
sure to check the validity of the applicable operation and safety.
An operation error may damage the equipment or result in a serious accident.
• Be sure to power on the unit according to the designated power-on sequence.
Otherwise, an erroneous operation may damage the equipment or result in a serious accident.
4. Maintenance
DANGER
• Never connect the
short circuit the battery.
There is a risk of an explosion or fire.
and of the battery in reverse. Also, never charge, disassemble, heat, place in fire, or
PROHIBITED
• Never disassemble or modify the unit.
These actions may result in a fire, malfunction, or failure.
CAUTION
• Be sure to turn off the power supply before removing or attaching the module/unit.
Otherwise, it may result in an electric shock, malfunction, or failure.
Revision History
No.Description of RevisionDate of RevisionManual Number
1Appendix-1 Instruction Support
FUN92 to 96 of H-4010
{ -> ×.
2000/11NJI-350 (X)
Appendix-2 Task code H28
Corrected explanation of Timer counter number.
2Postscript of battery error detection. (3.2 chapters item
2000/12NJI-350A (X)
number 26, 15 chapters (4) )
Correct a description of digital filter . (8.7 chapters)
Addition of appendix 3.
328 points expansion units added.
2003/10NJI-350B (X)
Analog expansion module added.
Circuit diagram added in chapter 3
FUN 5, TRNS/RECV command added in chapter 5.
Table of Contents
Chapter 1Features ..................................................................................................................................... 1-1 to 1-2
Chapter 2System Overview....................................................................................................................... 2-1 to 2-2
Chapter 3Function and Performance Specifications ...............................................................................3-1 to 3-14
Chapter 7Programming............................................................................................................................. 7-1 to 7-8
7.1Memory Size and Memory Assignment ................................................................................... 7-1
12.4Bit Special Internal Output Area............................................................................................ 12-5
12.5Word Special Internal Output Area........................................................................................ 12-9
Chapter 13Troubleshooting ..................................................................................................................13-1 to 13-16
13.1Error Display and Actions...................................................................................................... 13-1
13.2Checklist when Abnormality Occurred .................................................................................. 13-5
13.3Procedures to Solve Abnormality .......................................................................................... 13-6
Chapter 14Operation Examples............................................................................................................ 14-1 to 14-16
Chapter 15Daily and Periodic Inspections.............................................................................................. 15-1 to 15-2
Appendix 1H-Series Instruction Support Comparison Chart.................................................................................A-1
The MICRO-EH is a multifunctional all-in-one type PLC that contains all necessary parts—a power supply and
CPU parts as well as I/O units--within one unit.
Three sizes of PLCs are available: 10, 14, and 28 points. A type with 23 points plus three points of analog I/O
having the same size as the 28-point PLC is also available. Moreover, for PLCs with more than 14 points, it is
possible to install additional 14 or 28 point expansion units up to four units. Thus, the MICRO-EH can control a
wide range of systems from small to medium size.
2. Simplified positioning by counter inputs and pulse train outputs
The function of inputs/outputs can be selected from four modes. By selecting a mode, inputs/outputs that are used as
normal inputs/outputs can be set as counter inputs and pulse train outputs. Through a combination of these special
inputs/outputs, it is possible to control positioning without using special modules.
3. Simplified instrument system by analog integration
For the 23-point PLC, there are two points of analog input and one point of analog output for which both current
and voltage can be selected. High performance analog channels, with a resolution of 12 bits and an overall accuracy
of ±1 % or less, can be used without requiring special settings of the channels; thus, a simplified instrument system
can easily be implemented.
4. Superior upward compatibility
The MICRO-EH has been developed as a part of the EH/H series family.
Debugging and programming can be performed using the same concept as for the EH/H series.
In addition, the MICRO-EH software property can effectively be applied to the EH/H series for future system
expansion.
Chapter 1 Features
5. Easy maintenance through removable terminal blocks and installation on a DIN rail
All models of the MICRO-EH series support the DIN rail so that the PLC can easily be mounted and dismounted. In
addition, the I/O section of the 14-point PLC or more utilizes a removable terminal block. Thus, erroneous and
faulty wiring that may occur when connecting to external devices can be reduced.
6. Remote maintenance through modem connection
Communication with remote sites can be performed via dial-up line by connecting a modem to port 1 on the 14point PLC or more of the MICRO-EH series. It is possible to monitor and manage remote systems from an office or
monitor room.
7. Easily adjustable potentiometer
The 14-point PLC or more of the MICRO-EH series supports two potentiometers.
By using these potentiometers, it is possible to rewrite internal output values in real-time by one driver without using
peripheral devices. Since the resolution of the potentiometer is 10 bits, it is possible to set any value from 0 to 3FFH.
To obtain stable analog values of the potentiometers, it is possible to sample 1 to 40 analog values of the
potentiometers and average them.
8. Maintaining programs without a battery
It is possible to retain user programs in case of out-of battery or no battery, since FLASH memory is used as the
backup memory for the user programs. However, a battery is necessary for data memory backup. (See the Notes in
Chapter 7.1 for a list of precautionary details.)
9. Support for various programming languages
The MICRO-EH supports “Pro-H,” the programming software that allows creating programs in five programming
languages regulated in IEC1131-3. This means that customers who have learned languages other than Ladder can
easily create programs with this programming software.
10. Compliant with overseas specifications as standard
All types of MICRO-EH PLCs have obtained the CE mark, C-TICK and UL. Therefore, systems in which these
PLCs are installed can be exported without requiring any modification.
1-1
MEMO
Chapter 1 Features
1-2
Chapter 2System Overview
This chapter describes the system configuration of the MICRO-EH.
The MICRO-EH is an all-in-one type programmable controller, and has the following system configuration.
1] Basic unit
Figure 2.1 10-point type system configuration diagram
Chapter 2 System Overview
1] Basic unit
2] Expansion unit2] Expansion unit2] Expansion unit2] Expansion unit
Figure 2.2 14-point type system configuration diagram
2-1
[1] Basic unit
Chapter 2 System Overview
[2] Expansion unit
[3] Expansion cable
[2] Expansion unit[2] Expansion unit
[3] Expansion cable[3] Expansion cable
[3] Expansion cable
[2] Expansion unit
Figure 2.3 23,28-point type system configuration diagram
No restriction for combination of 14,23,28 points, and basic/expansion unit.
14 points basic unit can handle any type of expansion units, and 23/28 points basic unit as well.
No.Device nameDescription
1]Basic unitCalculates, imports inputs, and controls outputs according to the contents of user programs.
2]Expansion unit14 points digital unit, 4 in/2 out analog unit
3]Expansion cableCable for connecting the basic unit and expansion unit, or between expansion units.
2-2
Chapter 3 Function and Performance Specifications
Chapter 3Function and Performance
Specifications
3.1General Specifications
ItemSpecification
Power supply typeACDC
Power voltage100/110/120 V AC (50/60 Hz),
200/220/240 V AC (50/60 Hz)
Power voltage fluctuation
range
Current consumptionPlease refer to 4.7, “Weights and Power Consumption.”
Allowable momentary power
failure
Operating ambient temp.
Storage ambient temp.
Operating ambient humidity5 to 95 % RH (no condensation)
Storage ambient humidity5 to 95 % RH (no condensation)
Vibration proofConforms to JIS C 0911
Noise resistance
Supported standardsConforms with UL, CE markings and C-TICK
Insulation resistance
Dielectric withstand voltage1,500 V AC for one minute between the AC external terminal and the protection earth (PE)
GroundingClass D dedicated grounding (grounded by a power supply module)
Environment usedNo corrosive gases and no excessive dirt
StructureAttached on an open wall
CoolingNatural air cooling
{ Based on NEMA ICS 3-304
{ Static noise: 3,000 V at metal exposed area
{ Conforms with EN50081-2 and EN50082-2
20 MΩ or more between the AC external terminal and the protection earth (PE) terminal (based
85 to 264 V AC wide range19.2 to 30 V DC
19.2 to 30 V DC: For a momentary power
failure of less than 10 ms,
operation continues
failure of less than 20 ms,
operation continues
0 to 55 °C
-10 to 75 °C
(Noise created by the noise simulator is applied across the power supply module's input
terminals. This is determined by our measuring method.)
on 500 V DC mega)
terminal
24 V DC
failure of less than 10 ms,
operation continues
3-1
Chapter 3 Function and Performance Specifications
3.2Function Specifications
The functions available in the MICRO-EH are described in the table below.
No.ItemDescription
1Basic functionsThe following functions can be executed when constructing a system using the PLC.
1] An input signal is received from the control object, operations are performed according to
the contents of the program created by the user and the results are output as an output signal.
Also, operation results and progress information can be retained in the internal output area.
2] Power is supplied to the main module, system starts to run, and the operation described
above is performed continuously until the power is shut down or the system stops running.
3] The information retained internally can be extracted by a device connected externally or can
be set in other information. Also, this information is initialized at the time the system starts
running, but it can also be retained depending on the user settings.
4] Operating status can be confirmed with the LED display of each unit or with an external
device that has been connected.
2Setting and displayThe following have been provided for the user to set or confirm various types of operation
status:
1] DIP switch (basic unit)
This specifies the CPU communication function setting and operation mode, etc. (except for
10-point type)
2] RUN switch (basic unit)
It can instruct to run and stop. (external input for 10-point type)
3] LED display (basic unit and expansion unit)
Indicates the power system status, operating status and I/O operation status.
4] Communication connector (basic unit)
This can connect external devices using RS-232C, RS-485, RS-422. (only the 23-point and
28-point types with RS-485, RS-422)
5] Expansion connector (basic unit and expansion unit)
This allows installation of additional input/output. (except for 10-point type)
6] Terminal block (basic unit and expansion unit)
This performs the connections for supplying power, and for handling signals with the
control object.
3Number of I/O points The number of points that can be controlled with respect to the control object is as follows:
1] External inputs/outputs
The number of points that can be use for external inputs/outputs differs depending on the
basic unit. The 10-point type cannot expand the inputs/outputs. For the 14-point, 23-point
and 28-point types, a maximum of 4 expansion units can be connected. The I/O numbers for
inputs are indicated by X, WX, DX and outputs are indicated by Y, WY, DY.
2] Internal outputs
These are areas for temporarily storing information. The I/O numbers include M, WM, DM,
R, WR, DR.
3] A timer counter is provided internally.
4] Array (corresponding to a substitution statement only)
An array of I/O numbers can be expressed by enclosing by parentheses.
4User program
memory
The program in which the control contents have been described can be stored. This FLASH
memory resides in the basic unit.
1] The contents of this memory will be maintained even if the power is shut off. Because of
this, it is necessary to initialize the memory since it may have undefined after the unit is
purchased.
2] Programming is done using peripheral units such as programming software (LADDER
EDITOR) for the H-series programmable controllers.
3] The instructions that can be used are those designated by the H-series ladder. See the list of
instructions for details.
4] A battery is not required to retain the contents of the user program. Always save the created
programs to a floppy disk just in case an unexpected problem occurs.
3-2
Chapter 3 Function and Performance Specifications
No.ItemDescription
5Control methodWith the PLC, the user programs are converted in batch at operation startup, and the programs
after conversion will be executed in order as they are read one by one.
1] The method used for data I/O is that after the I/O data (information) is scanned (execution
from the head of the program to the end), it is updated in group. If refresh of external I/O is
required during scanning (refresh method), use the refresh instruction.
2] Apart from the program that will be normally executed, a periodic scan program which
interrupts the normal program at a fixed time intervals and is executed, can be created. The
time intervals are 10 ms, 20 ms and 40 ms.
3] The user programs are executed from the head of the program to the end, and are once again
repeated after performing the system processing that updates the lapsed timer value,
refreshes I/O, and performs communication with peripheral units.
6Run/stop controlRunning and stopping the PLC is normally performed by the user.
1] Turn on the RUN switch to start operation for the 14-point type or higher. Turn this switch
off to stop operation.
For the 10-point type, turn on the RUN input terminal to start operation. Turn it off to stop
operation.
2] The start and stop operations can be performed with designated external inputs or internal
outputs by designating the operation control inputs with a programming unit.
3] Apart from the operation described above, if a malfunction is detected in the system while it
is running, operation stops and the outputs are aborted (OFF).
4] If the power is shut off and then turned back on while the system is running, operation starts.
When the power shuts off, turn off the power to the PLC, then shut off the external input
power. When turning the power back on, turn on the external input power before turning on
the power to the PLC.
5] When starting operation, do so after clearing internal information which is not designated
for storage during power failure. When stopping operation, leave the internal information as
is, turn off the outputs and then stop the operation.
6] When the power has been cut off for longer than the time allowed for the momentary power
failure, then depending on the system load status, either operation continues or the system
perceives that a power shut off has occurred and restarts operation. To resume operation
securely, have the power remain off for 1 minute or longer.
7Operation parameters Each type of condition for operating the PLC can be set. The possible settings for operation
when an error occurs are provided below.
1] Operation may be continued when I/O information does not match.
2] Overload check time can be set. The initial value is 100 ms and the module stops when the
time for one scan takes longer than the set overload check time. (overload error)
3] Operation may be continued when an overload error occurs.
4] When a power failure (power shutoff) occurs, the internal output area for retaining
information and the timer counter range can be designated.
And, the setting below is possible.
1] The name of the user program can be registered.
2] A password can be set up so that the third party cannot reference the program.
3] It is necessary to register the type of I/O module used as an I/O assignment table. In order to
create this I/O assignment table, the types of I/O modules that are connected can be read.
8Change while in
operation
A part of a program can be modified during operation.
1] If a modification is made with a programming unit and a change is performed while in
operation, the user program in the CPU is changed and the altered program is switched
internally at the end of scanning, and operation continues with the new program.
2] When a control instruction is included in the modification to the program, make the changes
after first performing the control instruction change procedure in the programming unit to
check for safety.
3] Until operation starts to continue with the new program, a pause [halt period] occurs when
the module does not run. External input information is not being received during this time,
so leave a sufficient time for executing a change while in operation.
3-3
Chapter 3 Function and Performance Specifications
No.ItemDescription
9Forced set/resetForced set and forced reset of the designated I/O can be performed from the programming unit
connected to the CPU module.
10Forced outputOutput can be forced with respect to the designated I/O number from the programming unit
connected to the CPU module. For I/O that is not designated, outputs are shut off.
11Calendar clock
function
(only for 23- and 28point types)
12Dedicated portThis is a communication port with dedicated protocol for the H-series. The communication
13General purpose port General purpose port function is supported from software version H0130 (WRF051=H0130) or
14Modem controlA modem can be used to connect externally. It becomes operable when data receives from the
15Self-diagnosisSelf-diagnostic tests for the following items are performed:
16Abnormal handlingWhen a problem occurs, the error code that indicates the error description is output to special
17Task codeBy combining individual task codes, the following functions can be achieved by the programs in
18InstructionProgramming can be performed for various purposes and usage by combining Ladder and the
19High-speed counterThe external input of the basic unit can be used as a high-speed counter by specifying it as a
23-point and 28-point types have the calendar clock function.
1] The year, month, date, day of the week, hour, minute and second can be set.
2] There is a function for making adjustments in 30-second units.
3] When a battery is not installed, the calendar clock information is not retained when power
goes off. The calendar clock must be reset. (The battery is an optional. Purchase separately.)
command called the task code is defined in the port.
1] A programming unit can be connected. (However, the command language programmer
PGM-CHH and the portable graph programmer PGM-GPH cannot be used.)
2] Port 1 and port 2 can be used as dedicated ports. Transmission speed, etc. can be switched
using the DIP switch. (Port 2 is supported only by the 23-point and 28-point type models.)
newer. This function enables serial communication to any standard devices like bar code reader
by using TRNS/RECV command in user program.
external media, and task code communication can afterward be performed.
Port 1 can be assigned for this function by switching the DIP switch. (The 10-point type is not
supported.)
1] Microcomputer check
2] System program area check
3] Memory check
4] User program check
5] Internal output area check
6] Mounted I/O check
internal output WRF000 as a hexadecimal value. Also, errors are notified to the external devices
through the OK LED. If the error level is high, the CPU stops operation, but depending on the
error, the operation may be continued using the user settings.
If multiple errors occur, the error code with higher error severity is set. The detailed information
is also set to the special internal output. Also, this information is always recorded in the power
failure memory, so the information can be referenced even after the power is cut off. (However,
a battery is required.) The clearing of the error information can be conducted by turning on
R7EC.
the host computer:
1] CPU control (RUN/STOP control of CPU, occupy/release, CPU status read, etc.)
2] I/O control (various types of monitoring)
3] Memory write (all clear, batch transfer, etc.)
4] Memory read (reading of programs, etc.)
5] Response (various responses from CPU)
instruction language.
counter input. The following can be set.
1] Single-phase counter, 2 channels
2] Single-phase counter, 4 channels (For the 10-point type, it is single-phase, 3 channels.)
3] Two-phase counter 1 channel, single-phase counter 1 channel (For the 10-point type, it is
two-phase, 1 channel.)
The functions include a count operation (up/down, leading/trailing), coincidence output control,
preset by preloaded input, and count value reading by strobe input.
3-4
Chapter 3 Function and Performance Specifications
No.ItemDescription
20Interrupt inputThe external input of the basic unit can be specified for interrupt input. With the interrupt input,
the corresponding interrupt program can be executed.
21PWM outputThe external output of the basic unit can be specified for pulse width modulated output. In this
case, pulses are output at the specified frequency with a duty between 0 and 100 %. A maximum
of 4 points, including the pulse array output, can be set.
22Pulse train outputThe external output of the basic unit can be specified for pulse output. In this case, pulses are
output at the specified frequency with a duty between 30 and 70 %. A maximum of four points,
including the pulse output, can be set.
23Analogue inputThe analogue input function is available in the 23-point type and analog exp. unit. The
resolution is 12 bits and it can be used by either selecting a current input between 0 and 20 mA
or a voltage input between 0 and 10 V.
24Analogue outputThe analogue output function is available in the 23-point type and analog exp. unit. The
resolution is 12 bits and it can be used by either selecting a current output between 0 and 20 mA
or a voltage output between 0 and 10 V.
25Potentiometer14-point, 23-point, and 28-point types have two potentiometers, with which setting values etc.
can be changed without using the programming units.
26BatteryA dedicated battery can be installed in the 23-point and 28-point types so that data in the data
memory can be maintained even when the power supply to the main unit is shut off. In addition,
the data of the calendar clock in the 23-point and 28-poins types can be maintained. The battery
is an optional (model EH-MBAT).
Please refer to Chapter 15 (4) Life of the battery.
Note: There are functions supported by H series that are not supported by this PLC (debug, trace, force, and simulation functions).
3-5
Chapter 3 Function and Performance Specifications
3.3Performance Specifications
3.3.1Calculation Specifications
The calculation specifications of the PLC are described below.
ModelName10-point type14-point type23/28-point type
Control
specifications
Operation
processing
specifications
Type
CPU
Processing system
Processing
speed
User program memory
Instruction
language
LadderBasic instructions
Basic instructions
Application instructions
Basic instructions
Arithmetic instructions
Application instructions
EH-D10DT
EH-D10DTP
EH-D10DR
39 types such as LD, LDI, AND, ANI, OR, ORI, ANB, ORB, OUT, MPS,
62 types (arithmetic, application, control, FUN command etc.)
*1: The same numbers cannot be used with the timer counter.
*2: Only timers numbered 0 to 63 can use 0.01 s for their timer base.
External
I/O
Internal
output
Timer
counter
Edge detection
Program system
Peripheral unit
Self-diagnosis
I/O processing system
Maximum number of
points
Bit
Word
Special
Bit/word shared
Number of points
Timer set value
Counter set value
Bit
Word
10 points126 points135 points140 points
0 to 65,535, timer base 0.01 s, 0.1 s, 1 s (0.01s has maximum 64 points *2)
Instruction language programmer and form graphic display programmer cannot
PLC error (LED display): Microcomputer error, watchdog timer error, memory
error, program error, system ROM/RAM error, scan time monitoring, battery
voltage low detection, etc.
62 types (arithmetic, application, control, FUN command etc.)
Refresh processing
1,984 points (R0 to R7BF)
4,096 words (WR0 to WRFFF)
64 points (R7C0 to R7FF)
512 words (WRF000 to WRF1FF)
16,384 points, 1,024 words (M0 to M3FFF, WM0 to WM3FF)
256 points (TD + CU) *1
1 to 65,535 times
512 points (DIF0 to DIF511: Decimal)
+ 512 points (DFN0 to DFN511: Decimal)
Instruction language, ladder diagram
Programming software
(LADDER EDITOR DOS version/Windows® version, Pro-H)
be used.
3-6
Chapter 3 Function and Performance Specifications
3.3.2Input Specifications
The input circuit consists of DC input and AC input, with the following specifications.
(1) DC input
ItemSpecificationCircuit diagram
Input voltage24 V DC
Allowable input voltage range0 to 30 V DC
Input impedance
Input current7.5 mA typical
ON voltage15 V DC (min) / 4.5 mA (max)Operating
voltage
Input lag
OFF voltage5 V DC (max) / 1.5 mA (max)
OFF → ON
ON → OFF
Basic unit : 0.5 to 20 ms (configurable)
Exp. unit : 0.5 ms or less
Basic unit : 0.5 to 20 ms (configurable)
Exp. unit : 0.5 ms or less
Input voltage100 to 120 V AC
Allowable input voltage range85 to 132 V AC
50 -5 % to 60 +5 % Hz
Input impedance
Input currentApprox. 7 mA RMS (100 V AC/60 Hz)
ON voltage80 V AC (min.) 4.5 mAOperating
voltage
Input lag
Number of input pointsSee Chapter 4.
Number of commonSee Chapter 4.
PolarityNone
Insulation systemPhotocoupler insulation
Input displayLED (green)
External connection14-, 28-point types: Removable type screw
*1: Delay by hardware only. Delay by digital filter (software filter) 0.5 to 20 ms is not included.
*2: Common terminals are separated each other.
OFF voltage30 V AC (max.) 2 mA
OFF → ON
ON → OFF
Approx. 14.6 kΩ (60 Hz)
Approx. 17.6 kΩ (50 Hz)
25 ms (max.) *1
30 ms (max.) *1
terminal block (M3)
0
1
C
Internal circuit
3-7
Chapter 3 Function and Performance Specifications
3.3.3Output Specifications
(1) DC output
(Y100 of EH-*23DRP/A23DRT/*28DRP/*28DRT)
ItemSpecificationCircuit diagram
TypeEH-A23DRT
EH-*28DRT
Y100 output specificationsTransistor output
(sink type)
EH-*23DRP
EH-*28DRP
Transistor output
(source type)
Rated load voltage24 / 12 / 5 V DC
24 V DC +20 %, -80 %
Minimum switching current1 mA
Leak current0.1 mA (max)
Maximum
load current
1 circuit0.75 A 24 V DC
0.5 A 12 V DC
0.25 A 5 V DC
1 common0.75 A
OFF → ON0.1 ms (max) 24 V DC 0.2 AOutput
response time
ON → OFF0.1 ms (max) 24 V DC 0.2 A
Number of output points1
Number of common1
Surge removing circuitNone
FuseNone
Insulation systemPhotocoupler insulation
Output displayLED (green)
External connectionRemovable type screw terminal block (M3)
External power supply *1
Not necessary30 to 16 V DC
to V terminal
Insulation1500 V or more (external-internal)
500 V or more (external-external)
Output voltage drop0.3 V DC (max)
*1: It is necessary to supply 16 to 30 V DC between the V and C terminals externally for the source type.
The sink type operates by load power supply only. See “4.6 Terminal Layout and Wiring” for the details.
Sink type (23/28DRT)
Internal circuit
Source type (23/28DRP)
Internal circuit
0
C0
V0
0
C0
3-8
Chapter 3 Function and Performance Specifications
(2) DC output: LCDC-Low Current
(All points of EH-D10DT/DTP, Y102-Y105 of EH-D14DT/DTP, Y102-Y109 of EH-D28DT/DTP,
Y*018-Y*021 of EH-D14EDT/D14EDTP)
ItemSpecification
Output specificationTransistor output
Sink type (EH-D**DT)
Rated load voltage24/12 V DC (+10 %, -15 %)
Minimum switching current1 mA
Leak current0.1 mA (max)
Maximum
load current
1 circuit0.75 A 24 V DC
0.5 A 12 V DC
Internal circuitInternal circuit
1 common3 A
OFF → ON0.1 ms (max) 24 V DC 0.2AOutput
response time
ON → OFF0.1 ms (max) 24 V DC 0.2A
Number of output pointsSee Chapter 4.
Number of commonSee Chapter 4.
Source type (EH-D**DTP)
Surge removing circuitNone
FuseNone
Insulation systemPhotocoupler insulation
Output displayLED (green)
Internal circuit
External connectionRemovable type screw terminal block (M3)
Externally supplied power *130 to 12 V DC
Insulation1500 V or more (external-internal)
500 V or more (external-external)
Output voltage drop0.3 V DC (max)
*1: It is necessary to supply 12 to 30 V DC between the V and C terminals externally. See “4.6 Terminal Layout and Wiring.”
Circuit diagram
V0
0
C0
V0
0
C0
(3) DC output: HCDC-High Current
Y100,Y101
(
Y*016, Y*017
of EH-D14DT/DTP,
of EH-D14EDT/D14EDTP)
ItemSpecification
Output specificationTransistor output
Rated load voltage24/12 V DC (+10 %, -15 %)
Minimum switching current1 mA
Leak current0.1 mA (max)
1 circuit1A 24 V DCMaximum
load current
1 common3 A
OFF → ON0.1 ms (max) 24 V DC 0.2AOutput
response time
ON → OFF0.1 ms (max) 24 V DC 0.2A
Number of output pointsSee Chapter 4.
Number of commonSee Chapter 4.
Surge removing circuitNone
FuseNone
Insulation systemPhotocoupler insulation
Output displayLED (green)
External connectionRemovable type screw terminal block (M3)
Externally supplied power *130 to 12 V DC
Insulation1500 V or more (external-internal)
Output voltage drop0.3 V DC (max)
*1: It is necessary to supply 12 to 30 V DC between the V and C terminals externally. See “4.6 Terminal Layout and Wiring.”
Y100, Y101, Y110, and Y111
500 V or more (external-external)
of EH-D28DT/DTP,
Circuit diagram
Sink type (EH-D**DT)
V0
Internal circuit
0
C0
Source type (EH-D**DTP)
V0
0
C0
3-9
Chapter 3 Function and Performance Specifications
(4) DC output (ESCP type): HCDC-High Current
(Y100,Y101 of EH-D14DTPS, Y100-Y103 of D28DTPS)
Y*016,Y*017 of EH-EDTPS, Y*016-Y*019 of EH-D28EDTPS)
ItemSpecification
Output specificationTransistor output
Rated load voltage24/12 V DC (+10 %, -15 %)
Minimum switching current10 mA
Leak current0.1 mA (max)
load current
1 circuit1 AMaximum
1 common3 A
Source type (EH-D**DTPS)
OFF → ON0.05 ms (max) 24 V DC 0.2AOutput
response time
ON → OFF0.05 ms (max) 24 V DC 0.2A
Number of output pointsSee Chapter 4.
Number of commonSee Chapter 4.
Surge removing circuitNone
FuseNone
Insulation systemPhotocoupler insulation
Output displayLED (green)
External connectionRemovable type screw terminal block (M3)
Externally supplied power *130 to 12 V DC
Insulation1500 V or more (external-internal)
500 V or more (external-external)
Output voltage drop0.3 V DC (max)
*1: It is necessary to supply 12 to 30 V DC between the V and C terminals externally. See “4.6 Terminal Layout and Wiring.”
Circuit diagram
V0
Internal circuit
0
C0
(5) DC output (ESCP type): LCDC-Low Current
(Y102-Y105 of EH-D14DTPS, Y104-Y111 of EH-D28DTPS
Y*018-Y*021
of EH-D14EDTPS,
ItemSpecification
Output specificationTransistor output
Rated load voltage24/12 V DC (+10 %, -15 %)
Minimum switching current10 mA
Leak current0.1 mA (max)
1 circuit0.7 AMaximum
load current
1 common3 A
OFF → ON0.5 ms (max) 24 V DC 0.2AOutput
response time
ON → OFF0.5 ms (max) 24 V DC 0.2A
Number of output pointsSee Chapter 4.
Number of commonSee Chapter 4.
Surge removing circuitNone
FuseNone
Insulation systemPhotocoupler insulation
Output displayLED (green)
External connectionRemovable type screw terminal block (M3)
Externally supplied power *130 to 12 V DC
Insulation1500 V or more (external-internal)
Output voltage drop0.3 V DC (max)
*1: It is necessary to supply 12 to 30 V DC between the V and C terminals externally. See “4.6 Terminal Layout and Wiring.”
Y*020-Y*027
of EH-D28EDTPS)
500 V or more (external-external)
Circuit diagram
Source type (EH-D**DTPS)
V0
Internal circuit
0
C0
3-10
Chapter 3 Function and Performance Specifications
(6) Relay output
ItemSpecificationCircuit diagram
Rated load voltage5 to 250 V AC, 5 to 30 V DC
Minimum switching current1 mA
1 circuit2 A (24 V DC, 240 V AC)Maximum
load current
Output
response time
Number of output pointsSee Chapter 4.
Number of commonSee Chapter 4.
Surge removing circuitNone
FuseNone
Insulation systemRelay insulation
Output displayLED (green)
External connectionRemovable type screw terminal block (M3)
Externally supplied power
(for driving the relays)
Contact life *120,000,000 times (mechanical)
Insulation1500 V or more (external-internal)
*1: Refer to the Life curve of relay contacts in Chapter 10 for the details.
1 common5 A
OFF → ON
ON → OFF
15 ms (max)
15 ms (max)
Not necessary
200,000 times (electrical: 2 A)
500 V or more (external-external)
0
Internal circuit
1
C
(7) AC output (SSR)
ItemSpecificationCircuit diagram
Output specificationTriac output
Rated voltage100/240 V AC
Output voltage100 –15 % to 240 +10 % V AC
50 –5 % to 60 +5 % Hz
1 circuit0.5 A 240 V ACMaximum
load current
Minimum load current100 mA
Maximum leakage current1.8 mA 115 V AC(max)
Maximum inrush current5 A (at 1 cycle or less)/point
Maximum
delay time
Output commonSee Chapter 4.
PolaritySee Chapter 4.
Insulation systemPhototriac insulation
Fuse *2Used
Surge removing circuitSunabar circuit + varistor
External connectionRemovable terminal block
Voltage drop1.5 V RMS (max)
Insulation1500 V or more (external-internal)
*2: It is necessary to repair the module if the load short-circuits and causes the fuse to melt.
Note that the fuse cannot be replaced by users.
1 common2 A
3.5 mA 230 V AC(max)
10 A (at 1 cycle or less)/common
Off → On
On → Off
1 ms or less
1 ms + 1/2 cycle or less
500 V or more (external-external)
Internal circuit
0
1
C
3-11
Chapter 3 Function and Performance Specifications
3.3.4High-Speed Counter Specifications
Single phaseTwo phase
Available inputX0, X2, X4, X6X0 and X2 in pair
Input voltageON15 V
OFF5 V
Count pulse width
Maximum count frequency10 kHz each channel
Count register16 bits
Coincidence outputAllowed
On/Off-presetAllowed
Upper/lower limit settingNot allowed
Preload/strobeAllowed
Since 10 points type does not have input X6, counter channel is up to 3 ch.
100 µs
3.3.5PWM Output/Pulse Train Output Specifications
23-point and 28-point type
Relay Output
Available outputsY100 (optional)Y100-Y103 (optional)
Load voltage5/12/24 V12/24 V
Minimum load current1 mA
PWM max. output frequency *12 kHz total channels
Pulse train max. output frequency *15 kHz total channels
Pulse acceleration/decelerationBy FUN 151.
*1: Relay outputs cannot keep up with high frequencies; these outputs should be used at the operating frequency upon confirmation.
10/14/28-point
Transistor Output
3.3.6Analogue Input Specifications
Module type23 points moduleAnalog exp. unit
Input channelWX30, WX31WX u01 - WX u04
(u : unit number)
Input range
Resolution12 bits
Accuracy±1 % of full scale
LinearityMax. +/-3 units
Current input impedance
Voltage input impedance
Input delay time20 ms
Channel to internal circuit insulationNot insulatedInsulated
Channel-to-channel insulationNot insulated
Input range0-1023 (H0-H3FF)
Resolution10 bits
Input filterBy user settings
Ch.1 : WRF03E, Ch.2 WRF03F
3.3.9Interrupt Input Specifications
Input that can be usedX1, X3, X5, X7 (by user settings)
ON15 VInput voltage
OFF5 V
3.3.10 Backup
(1)Battery
Data memory (retentive area) can be kept by EH-MBAT battery as below.
Battery life time (total power off time) [Hr] *
Guaranteed value (Min.) @55°CActual value (Max.) @25°C
9,00018,000
* Battery life time has been changed since Oct. 2002 production (MFG NO.02Jxx) due to hardware modification.
Battery can be mounted inside of front cover.
Battery is available only for 23-point and 28-point types.
If the calendar clock function is used with the 23-point or 28-point type, be sure to use the battery.
(2)Capacitor
14-point type: Data can be kept for 72 hours (at 25 °C) by the capacitor.
23 and 28-point types: Data can be kept for 24 hours (at 25 °C) by the capacitor.
Please note that data memory of 10 point type cannot be retained.
3.3.11 Expansion
•Up to 4 times of expansion units can be installed.
•14 points and 28 points digital units, and 4ch. input / 2 ch. output analog expansion units available.
•A cable with a length of up to 1 m can be used to connect between units.
•The total extension cable length can be up to 2 m (from the basic unit to the expansion unit at the end).
•The 10-point type unit cannot be expanded.
3-14
Chapter 3 Function and Performance Specifications
3.3.12 Clock Function
23-point and 28-point types have calendar function. This can be operated either by internal output area or task code.
* 10-point and 14-point types do not have this function.
(1)Reading the clock data
By turning on the read request (R7F8), the clock data is read out in the reading value area (WRF01B to WRF01F).
(2)Writing the clock data
By turning on the write request (R7F9), the clock data stored in writing value area (WRF01B to WRF01F) is written
to the current data area (WRF00B to WRF00F). If the data is wrong, error flag (R7BF) will turn on. If data is right,
clock data will be written and writing flag R7FB will turn off.
(3)Adjusting the clock data ± 30 seconds
By turning on the ± 30 seconds adjustment request (R7FA), one of the following operations is performed depending
on the second value:
•If the second digits are 00 to 29, the second digits are set to 00.
•If the second digits are 30 to 59, the minute is incremented by 1 and the second digits are set to 00.
(4)Special internal output definitions
•Operation bits
I/O numberNameDescription
R7F8Request to read calendar and
clock data
R7F9Request to write calendar and
clock data
R7FA
R7FBCalendar and clock setting data
Clock ± 30 seconds adjustment
request
error
Calendar and clock data is read out to
WRF01B-F01F.
Calendar and clock data in WRF01B-F01F is
written to the current data in WRF00B-F00F.
Sets the second digits of the RTC to 00.
Turns on when the setting data is abnormal.
•Current data monitor area : Current data of the clock given always (all BCD data).
I/O numberNameDescription
WRF00BYear4-digit year [yyyy]
WRF00CMonth and date[mmdd]
WRF00DDay of the week0 to 6 : Sunday to Saturday
WRF00EHour and minute[hhmm] (24-hour system).
WRF00FSecond[00ss]
•Reading/writing area : Clock data to be read or written.
(All BCD data)
I/O numberNameDescription
WRF01BYear4-digit year [yyyy]
WRF01CMonth and date[mmdd]
WRF01DDay of the week0 to 6 : Sunday to Saturday
WRF01EHour and minute[hhmm] (24-hour system).
WRF01FSecond[00ss]
Note 1: The day of the week data is expressed as follows.
The 24 V terminal at the input terminal part can supply current to external equipment (not for all units).
If this terminal is used as the power supply for the input part of this unit, the remaining can be used as power supply for the
sensors.
The following current (I) can be supplied as power supply for the sensors.
(1)EH-*14*** (14-point type basic unit)
EH-*14E*** (14-point type extension unit)
I = 350 mA – (7.5 mA x number of input points that are turned on at the same time)
(2)EH-A28DR* (28-point type basic unit)
EH-A23DR*** (23-point type basic unit)
I = 280 mA – (7.5 mA x number of input points that are turned on at the same time)
Note: HI-LADDER (attached to the GPCL01H) may also be used.
However, HL-GPCL and HI-LADDER cannot be used for the 10-point type.
and expansion unit
Conversion cable for
connecting peripheral units
Peripheral equipmentGPCB02HLength: 2 m, between CPU and graphic input unit
*: Required when connecting the MICRO-EH with PC98, IBM PC/AT compatible PC or other system using one of the cables
marked with **.
HL-GPCLLadder diagram/Instruction language editor LADDER EDITOR (for GPCL)
HL-PC3Ladder diagram/Instruction language editor LADDER EDITOR (for PC98
series) with CPU connection cable
HL-AT3ELadder diagram/Instruction language editor LADDER EDITOR (for PC/AT
compatible personal computer)
HLW-PC3Ladder diagram/Instruction language editor LADDER EDITOR (for Windows®
95/NT 4.0)
HLW-PC3ELadder diagram/Instruction language editor LADDER EDITOR (for Windows®
95/98/NT 4.0)
Pro-HHITACHI H-series PLC Programming Software According to IEC 61131-3 (for
Windows® 95/98/NT 4.0)
(3)Connection Cables
Table 4.3 List of connection cables
ProductFormSpecificationRemarks
EH-MCB10Length: 1 m (basic unit–exp. unit, exp. unit - exp. unit)Total 2 mCable for connecting basic unit
EH-MCB05Length: 0.5 m (basic unit–exp. unit, exp. unit - exp. unit)Total 2 m
EH-MCB01Length: 0.1 m (basic unit–exp. unit, exp. unit - exp. unit)Total 2 m
EH-RS05Length: 0.5 m*
GPCB05HLength: 5 m, between CPU and graphic input unit
GPCB15HLength: 15 m, between CPU and graphic input unit
CBPGBLength: 2 m, between graphic input unit and printer
LP100Length: 2 m, between graphic input unit and kanji printer
KBADPTHLength: 15 m, between graphic input unit and JIS keyboard
PCCB02HLength: 2 m, between CPU and PC98 series**
WPCB02HLength: 2 m, between CPU and PC98 series (25-pin)**
WVCB02HLength: 2 m, between CPU and DOS/V (9-pin)**
EH-VCB02Length: 2 m, between CPU (8P modular terminal) and DOS/V
(9-pin)
(4)Others
ModelUsageRemarks
EH-MBATLithium battery
4-2
4.210-Point Basic Unit
Chapter 4 Product lineup and wiring
Name and function of each part
9] Mounting hole
4] Serial port
8] Power terminal
5] RUN input
TypeEH-D10DT, EH-D10DTP, EH-
D10DR
6] Input terminals
1] POW LED
2] OK LED
3] RUN LED
7] Output terminals
10] DIN rail installation clip
No.ItemDetailed explanationRemarks
Explanation of operationOperations are performed according to the contents of the program created
by the user.
The programming unit connected to the CPU module communication port
writes and reads the user programs.
Memory is installed inside the CPU module in which the user programs and
internal output information are stored.
1]POW LEDLighting when the power is supplied.
2]OK LEDLighting at normal operation.See Chapter 12.
3]RUN LEDLighting at RUN status.
4]Serial port 1Serial port for connecting the peripheral units. Communication speed is
See Chapter 11.
fixed as 4800 bps.
The communication specification is set to port 1.
5]RUN inputExternal input to control the PLC’s RUN/STOP.
See Chapter 10.
When 24 V DC is loaded to the RUN terminal and common terminal (C),
the PLC is set to the RUN state.
6]Input terminalsTerminals for wiring the external input units.
One piece of AWG14 to AWG22 (2.1 to 0.36 mm
AWG16 to AWG22 (1.3 to 0.36 mm
2
) per terminal may be wired.
2
) or two pieces of
7]Output terminalsTerminals for connecting the external load. The wiring specification is the
See Chapter 10.
See Chapter 10.
same as for the input terminals.
8]Power terminalTerminal for connecting the power supply. The wiring specification is the
See Chapter 10.
same as for the input terminals.
9]Mounting holeUsed when installing the PLC directly on a board with screwsSee Chapter 10.
10]DIN rail
Used when installing the PLC on a DIN railSee Chapter 10.
installation clip
4-3
4.314-Point Basic Unit
Chapter 4 Product lineup and wiring
Name and function of each part
10] Terminal cover
11] Mounting hole
4] Serial port cover
TypeEH-*14***
5] Input terminals
1] POW LED
2] OK LED
3] RUN LED
8] Expansion
connector cover
9] DIP SW cover
6] Output terminals
12] DIN rail installation clip
7] Power terminal
No.ItemDetailed explanationRemarks
Explanation of operationOperations are performed according to the contents of the program created
by the user.
The programming unit connected to the CPU module communication port
writes and reads the user programs.
Memory is installed inside the CPU module in which the user programs and
internal output information are stored.
1]POW LEDLighting when the power is supplied.
2]OK LEDLighting at normal operation.See Chapter 12.
3]RUN LEDLighting at RUN status.
4]Serial port coverCover for the connector for connecting
peripheral units and the RUN switch.
When the cover is opened, the RUN switch,
STOP
RUN
VR1 VR2
See Chapters 8 and 11.
potentiometers (VR), and RS-232C serial port 1
(PORT 1) can be used.
The communication specification is set to port 1.
PORT1
5]Input terminalsTerminals for wiring the external input units.
Recommended terminals are shown in the
figure to the right.
One piece of AWG14 to AWG22 (2.1 to
0.36 mm
AWG22 (1.3 to 0.36 mm
2
) or two pieces of AWG16 to
2
) per terminal may
6
6
See Chapter 10.
(Mak e su re t hat the ter minals w ill not
disengage due to loose screws.)
(Recommended)
be wired.
6]Output terminalsTerminals for connecting the external load.
See Chapter 10.
The wiring specification is the same as for the input terminals.
7]Power terminalTerminal for connecting the power supply.
See Chapter 10.
The wiring specification is the same as for the input terminals.
8]Expansion coverCover for the expansion connectorSee Chapter 10.
9]DIP SW coverCover for the DIP switches
See Chapter 11.
When the cover is opened, the DIP switches are exposed. These DIP
switches are used to set the communication speed of serial port 1 and the
modem connection.
10]Terminal coverCover for terminals
11]Mounting holeUsed when installing the PLC with screwsSee Chapter 10.
12]DIN rail
Used when installing the PLC on a DIN railSee Chapter 10.
installation clip
4-4
4.423-Point and 28-Point Basic Unit
Chapter 4 Product lineup and wiring
Name and function of each part
Type
EH-*23***
EH-*28***
10] Terminal cover
13] RS-485 port cover
11] Mounting
hole
4] Serial port cover
5] Input terminals
1] POW LED
2] OK LED
3] RUN LED
8] Expansion
connector cover
9] DIP SW cover
6] Output terminals
12] DIN rail installation clip
7] Power terminal
No.ItemDetailed explanationRemarks
Explanation of operationOperations are performed according to the contents of the program created
by the user.
The programming unit connected to the CPU module communication port
writes and reads the user programs.
Memory is installed inside the CPU module in which the user programs and
internal output information are stored.
1]POW LEDLighting when the power is supplied.
2]OK LEDLighting at normal operation.See Chapter 12.
3]RUN LEDLighting at RUN status.
4]Serial port coverCover for the connector for connecting
peripheral units and the RUN switch.
When the cover is opened, the RUN switch,
STOP
RUN
VR1 VR2
See Chapters 8 and 11.
potentiometers (VR), and RS-232C serial port 1
(PORT 1) can be used.
The communication specification is set to port 1.
PORT1
5]Input terminalsTerminals for wiring the external input units.
Recommended terminals are shown in the figure
to the right.
One piece of AWG14 to AWG22 (2.1 to 0.36
2
mm
) or two pieces of AWG16 to AWG22 (1.3
to 0.36 mm
2
) per terminal may be wired.
6]Output terminalsTerminals for connecting the external load.
6
6
See Chapter 10.
(Mak e su re t hat the ter minals w ill not
disengage due to loose screws.)
(Recommended)
See Chapter 10.
The wiring specification is the same as for the input terminals.
7]Power terminalTerminal for connecting the power supply.
See Chapter 10.
The wiring specification is the same as for the input terminals.
8]Expansion coverCover for the expansion connectorSee Chapter 10.
9]DIP SW coverCover for the DIP switches and the backup battery storage unit.
See Chapter 11.
When the cover is opened, the DIP switches are exposed. These DIP
switches are used to set the communication speed of serial port 1 and the
modem connection.
10]Terminal coverCover for terminals
11]Mounting holeUsed when installing the PLC with screwsSee Chapter 10.
12]DIN rail
Used when installing the PLC on a DIN railSee Chapter 10.
installation clip
13]RS-485 port cover Cover for RS-485 port. It is connected with a D sub 15-pin female
See Chapter 11.
connector. The communication specification is set to port 2.
4-5
4.5Expansion Unit
Chapter 4 Product lineup and wiring
Name and function of each part
9] Terminal cover
10] Mounting
hole
3] Expansion connector cover
(left side)
TypeEH-*14ED** (same dimension as 14 pts. basic unit)
EH-*28ED** (same dimension as 28 pts. basic unit)
EH-*6EAN (same dimension as 14 pts. basic unit)
4] Input terminals
1] POW LED
2] OK LED
7] Expansion connector cover
(right side)
8] Dummy cover
5] Output terminals
11] DIN rail installation clip
6] Power terminal
Above picture is 14 points module
No.ItemDetailed explanationRemarks
Explanation of operationOperations are performed according to the contents of the program created
by the user.
The programming unit connected to the CPU module communication port
writes and reads the user program.
Memory is installed inside the CPU module in which the user program and
internal output information are stored.
1]POW LEDLighting when the power is supplied.
2]OK LEDLighting at normal operation.
3]Expansion cover
(Left side)
4]Input terminalsTerminals for wiring the external input units.
5]Output terminalsTerminals for connecting the external load. The wiring specification is the
Cover for expansion connector
Used when connecting to the expansion cable from the front unit.
Recommended terminals are shown in the figure
to the right.
One piece of AWG14 to AWG22 (2.1 to 0.36
2
mm
) or two pieces of AWG16 to AWG22 (1.3
to 0.36 mm
2
) per terminal may be wired.
See Chapter 10.
See Chapter 10.
6
6
(Mak e su re t hat the ter minals w ill not
disengage due to loose screws.)
(Recommended)
See Chapter 10.
same as for the input terminals.
6]Power terminalTerminal for connecting the power supply. The wiring specification is the
See Chapter 10.
same as for the input terminals.
7]Expansion cover
(Right side)
Cover for expansion connector
Used when connecting to the next unit.
See Chapter 10.
8]Dummy coverCover used as a dummy.
9]Terminal coverCover for terminals
10]Mounting holeUsed when installing the PLC with screwsSee Chapter 10.
11]DIN rail
Used when installing the PLC on a DIN railSee Chapter 10.
installation clip
4-6
4.6Terminal Layout and Wiring
10-point type
EH-D10DT, EH-D10DTP
* Since the DC input is bidirectional, it is possible to reverse the polarity of the power supply.
Chapter 4 Product lineup and wiring
Input power supply
24 V DC
54C032RUN10NC
In case of EH-D10DTP
V0C032124 V00 V
In case of EH-D10DT
Power supply
24V DC
EH-D10DR
* Since the DC input is bidirectional, it is possible to reverse the polarity of the power supply.
54C032RUN10NC
C0321024VNC0V
Power supply
24V DC
Load power supply
12/24V DC
Input power supply
24V DC
Load power supply
24V DC
100-240V AC
4-7
Chapter 4 Product lineup and wiring
14-point type
EH-A14DR, EH-D14DR
* Since the DC input is bidirectional, it is possible to reverse the polarity of the power supply.
Input power supply
24V DC
24+
0V2
AC
ACC00C1
1
3
4
6C1
0
C0
1
5
7
2
4C2
3
5
AC power supply
100-240V AC
0V
24V
DC power supply
24V DC
EH-A14EDR, EH-D14EDR
* Since the DC input is bidirectional, it is possible to reverse the polarity of the power supply.
Input power supply
24V DC
Input
Output
Load power supply
24V DC,
100-240V AC
AC power supply
100-240V AC
DC power supply
24V DC
24+
0V2
AC
ACC016C1
0V
24V
1
3
0
17
C0
18
4
5
20C2
19
6C1
7
21
Input
Output
Load power supply
24V DC,
100-240V AC
4-8
EH-A14AS
Chapter 4 Product lineup and wiring
Power supply for input
100-115V AC
24+
0V2
AC
AC0
1
3
4
6C1
0
NC
C0
1
C0
5
2
3
7
4C1
5
Power supply
100-240V AC
EH-D14DTP
* Since the DC input is bidirectional, it is possible to reverse the polarity of the power supply.
Power supply for input
24V DC
1
3
4
24+
00V2
0V
24V1
0
C0
NC
2
6C1
5
7
3
5C0
4
V0
Input
Output
Load power supply
100-240V AC
Input
Output
Power supply
24V DC
EH-D14DT
(The input wiring is the same as EH-D14DTP.)
0V
24V1
Power supply
24V DC
0
NC
Load power supply
12/24V DC
3
5C0
2
4
V0
Output
Load power supply
12/24V DC
4-9
Chapter 4 Product lineup and wiring
EH-D14EDTP
* Since the DC input is bidirectional, it is possible to reverse the polarity of the power supply.
24+
0V2
24V17
0
0V
Power supply
24V DC
EH-D14EDT
(The input wiring is the same as EH-D14EDTP.)
0V
24V17
Power supply
24V DC
1
16
16
3
C0
NC2019
18
NC2019
18
4
6C1
5
21C0
21C0
V0
V0
Input
7
Output
Load power supply
12/24V DC
Output
Load power supply
12/24V DC
4-10
Chapter 4 Product lineup and wiring
23-point type
EH-A23DRP
* Since the DC input is bidirectional, it is possible to reverse the polarity of the power supply.
Power supply for
input, 24V DC
24+
0V2
AC
ACC0
Power supply
100-240V AC
1
3
4
0
0
V0
C0
2
1
5
3
6C1
7
45
C1
TR output power supply
8
C21110IN1-
C2C4
9
6
7
C3
Load power supply
24V DC,
100-240V AC
16-30V DC
EH-A23DRTEH-D23DRP
(The input wiring is the same as EH-A23DRP.)
AC
ACC0
0
NC2
1
Output
0V
24V
12
0
8
IN1+
9
V02
C0
IN1JP
C5
ICVC
Analog output
1
IN2-
IN2JP
IN2+
IOVO
Input
Output
+
-
Output
Power supply
100-240V AC
Analog voltage input
IN1+
IN1-
IN1JP
IN2-
IN2+
TR output power supply
16-30V DC
IN2JP
Analog current input
IN1+
IN1-
IN2-
IN1JP
TR output power supply
16-30V DC
In case of analog current input, please set
the following value in WRF06E.
Set to “1” as a data error when the I/O number is exceeded or when the BCD was abnormal data, etc.
When there is no data error, it is set to “0.”
ERRError (special internal output R7F3)
Set to “1” when an error is generated when a control instruction and a special instruction are executed.
The error code is set in WRF015. When there are no errors, the previous status is maintained.
SDShift data (special internal output R7F2)
Performs shift-in of the contents of SD by the SHR or SHL instruction.
VOver flow (special internal output R7F1)
Indicates that a digit overflow has occurred and the signed data range is exceeded as a result of signed
data operations.
CCarry (special internal output R7F0)
Indicates the contents of digit increase due to addition, digit decrease due to subtraction, and shift-out
due to shifting.
zMaintains the previous status.
1]Set to “1” when there is an error in operation results. The previous status is maintained if there is no
error.
↕
Processing timeThis indicates the instruction processing time.
Changes according to the operation result.
The displayed value is an average. It varies depending on the parameter and data count with the
instructions used.
See the details on the instruction specifications for details.
5-1
The following lists the instructions.
1.Basic instructions (sequence instructions)
Ladder symbol
Item number
Classification
1LD Logical
2LDI Logical
3AND Logical AND Indicates a-contact series
Sequence instructions
4ANI Logical
Instruction
symbol
Instruction
operation start
negation
operation start
NAND
name
Process descriptions I/O types used
Indicates the
commencement of acontact operation.
Indicates the
commencement of bcontact operation.
connection.
Indicates b-contact series
connection.
X, Y
R0 to R7BF
M0 to M3FFF
TD, SS, CU, CT
Timer: 0 to 255
Counter: 0 to 255
DIF0 to DIF511
DFN0 to
DFN511
Chapter 5 Instruction Specifications
Process
R7F4
R7F3
R7F2
R7F1
DER ERR SD V C
zzzzz
time
R7F0
(µs)
MICRO-EH
0.91
0.8
Remarks
Steps
5OR Logical ORIndicates a-contact
6ORI Logical NOR Indicates b-contact
7NOT Logical NOT Reverses all operation
8DIFAND
DIFOR
9DFNAND
DFNOR
10OUT I/O outputIndicates an output coil. X, Y
11
SET
12
Leading edge
DIF
detection
DIF
Trailing edge
DFN
detection
DFN
SET I/O setIndicates set output.X, Y
RES I/O resetIndicates reset output.
parallel connection.
parallel connection.
results up to that point.
Indicates detection of the
input rise.
Indicates detection of the
input fall.
None
DIF0 to DIF511
(Decimal)
DFN0 to
DFN511
(Decimal)
R0 to R7BF
M0 to M3FFF
TD, SS, CU,
CTU, CTD, CL
Timer: 0 to 255
Counter: 0 to 255
R0 to R7BF
M0 to M3FFF
zzzzz
zzzzz
zzzzz
zzzzz
zzzzz
zzzzz
0.92
0.82
1.034Number
overlap not
allowed
1.234Number
overlap not
allowed
1.01
0.91
13
14
RES
MCS
MCR
MCS Set master
control
MCR Reset master
control
Indicates master control
set operation.
Indicates master control
reset operation.
5-2
MCS0 to MCS49
MCR0 to
MCR49
zzzzz
zzzzz
0.73 Number
overlap
allowed
0.72 Number
overlap
allowed
Item number
Classification
Ladder symbol
symbol
Instruction
Instruction
name
15MPSMPS Operation
result push
Process descriptionsI/O types used
Stores the previous
None
operation result.
Chapter 5 Instruction Specifications
Process
R7F4
R7F3
R7F2
R7F1
DER ERR SD V C
zzzzz
time
R7F0
(µ s)
MICRO-EH
—0
Remarks
Steps
16MRDMRD Operation
result read
17MPPMPP Operation
Sequence instructions
result pull
18ANB Logical
block serial
connection
19ORB Logical
block
parallel
connection
20[ ] Processing
box start
and end
21( ) Relational
box start
and end
2.Basic instructions (timer, counter)
Instruction
symbol
Instruction
OUTTDOn delay
timer
OUTSSSingle shot Indicates a single shot
OUTCUCounterIndicates a counter
OUT
Up of
CTU
up/down
counter
OUT
Down of
CTD
up/down
counter
OUTCLCounter
clear
Item number
Classification
22
Timer
23
24
Counter
25
26
27
Ladder symbol
TD
SS
CU
CTU
CTD
CL
name
Reads the stored operation
result and continues
operation.
Reads the stored operation
result, continues operation
and clears the stored result.
Indicates serial connection
None
between two logical blocks.
Indicates parallel
None0.71
connection between two
logical blocks.
Indicates start and end of a
None
process box.
Indicates start and end of a
None
comparison box.
Process descriptionsI/O types used
Indicates an on delay timer
operation.
TD0 to TD255
When 0.01 s, it is
possible to use
until 0 to 63.
SS0 to SS255
operation.
When 0.01 s, it is
possible to use 0
to 63.
CU0 to CU255
operation.
Indicates an up operation of
up-down counter.
Indicates a down operation
of up-down counter.
Indicates a clear operation
CTU0 to
CTU255
CTD0 to
CTD255
CL0 to CL255
for CU, RCU, CTU, CTD
and WDT.
zzzzz
zzzzz
zzzzz
R7F4
R7F3
R7F2
R7F1
DER ERR SD V C
zzzzz
zzzzz
zzzzz
zzzzz
zzzzz
zzzzz
—0
0.63
0.80
Process
time
R7F0
(µ s)
MICRO-EH
1.45 Number
1.45
1.45
1.45
1.43
0.91
Remarks
Steps
overlap not
allowed
5-3
3.Basic instructions (relational box)
Instruction
(s1==
s2)
AND
(s1==
s2)
Instruction
symbol
= Relational
box
Ladder symbol
Item number
Classification
28LD
s1
==
s2
Relational box
s1
==
s2
name
Process descriptionsI/O types used
When s1 = s2: Continuity
When s1 ≠ s2:
Noncontinuity
[Word]
WX, WY, WR,
WM,
Timer Counter
[Double word]
DX, DY, DR,
DM
Constant
Chapter 5 Instruction Specifications
Process
R7F4
R7F3
R7F2
R7F1
DER ERR SD V C
zzzzz
time
R7F0
(µ s)
MICRO-EH
275
35Lower
Remarks
Steps
*1
6
*2
7
Upper
8
case: W
case: DW
s1
==
s2
29LD
s1
S==
s2
s1
S==
s2
(s1==
s2)
(s1
S==
s2)
AND
(s1
S==
s2)
Signed =
Relational
box
When s1 = s2: Continuity
When s1 ≠ s2:
Noncontinuity
s1 and s2 are compared as
signed 32-bit binary.
DX, DY, DR,
DM
Constant
zzzzz
355
*2
6
7
8
OR
OR
s1
S==
s2
30LD
s1
<>
s2
s1
<>
s2
(s1
S==
s2)
(s1<
>s2)
AND
(s1<
>s2)
<>
Relational
box
When s1 = s2:
Noncontinuity
When s1 ≠ s2: Continuity
When s1 = s2:
Noncontinuity
When s1 ≠ s2: Continuity
s1 and s2 are compared as
signed 32-bit binary.
DX, DY, DR,
DM
Constant
zzzzz
34.55
*2
6
7
8
AND
s1
S<>
s2
(s1
S<>
s2)
OR
s1
S<>
s2
(s1
S<>
s2)
*1: In the case of word, it requires five steps for LD (s1s2) and AND (s1s2), and six steps for OR (s1s2).
*2: In the case of double word, for LD (s1s2) and AND (s1s2), it requires five steps when the combination of s1 and s2 is I/O
and I/O, six steps when the combination is either I/O and constant or constant and I/O, and seven steps when the combination
is constant and constant. For OR (s1s2), one step is added respectively.
5-4
Ladder symbol
Item number
Classification
32LD
Relational box
33LD
s1
<
s2
s1
<
s2
s1
<
s2
s1
S<
s2
s1
S<
s2
s1
S<
s2
(s1<
s2)
AND
(s1<
s2)
OR
(s1<
s2)
(s1
S<
s2)
AND
(s1
S<
s2)
OR
(s1
S<
s2)
symbol
Instruction
Instruction
name
< Relational
box
Signed <
Relational
box
Process descriptionsI/O types used
When s1 < s2: Continuity
When s1 ≥ s2:
Noncontinuity
When s1 ≤ s2: Continuity
When s1 > s2:
Noncontinuity
s1 and s2 are compared as
signed 32-bit binary.
DX, DY, DR,
DM
Constant
zzzzz
37.55
*2
6
7
8
AND
s1
S<=
s2
(s1
S<=
s2)
OR
s1
S<=
s2
(s1
S<=
s2)
*1: In the case of word, it requires five steps for LD (s1s2) and AND (s1s2), and six steps for OR (s1s2).
*2: In the case of double word, for LD (s1s2) and AND (s1s2), it requires five steps when the combination of s1 and s2 is I/O
and I/O, six steps when the combination is either I/O and constant or constant and I/O, and seven steps when the combination
is constant and constant. For OR (s1s2), one step is added respectively.
Converts the value of s into
BCD and stores it in I/O
number d. If the value of s
is an error, DER (R 7F4) =
1 is set.
19 BIN(d, s)
BCD →
Binary
conversion
Converts the value of s into
binary and stores it in I/O
number d. If the value of s
is an error, DER (R 7F4) =
1 is set.
20 DECO(d, s, n)DecodeDecodes the value indicated
by the least significant n
bits of s, and sets the bit
that corresponds to the
decoding result of the bit
row starting from I/O
number d, to 1.
21 ENCO(d, s, n)EncodeEncodes the bit location in
which 1 is set within the bit
row, which starts with I/O
number s and lasts for the
amount of nth power of 2,
and stores it in I/O number
d. If multiple bits that
contain 1 exist, the one
with the upper bit locations
will be encoded.
(word, double-word), stores
the number of bits that are
set to 1 in I/O number d.
Application instruction
23 SWAP(d)SwapSwaps the upper 8 bits and
the lower 8 bits of the value
(word) for I/O number d.
24 UNIT(d, s, n)UnitStores the lower 4 bit
values of the n words
starting with s in the lower
4 bits each of d (word).
25 DIST(d, s, n)DistributeExtracts the value of s
(word) in 4 bit units from
the least significant bits,
and sets them in the lower 4
bits of each word starting
with I/O number d (word).
The upper bits are set to 0.
Indicates the end of a
normal scan.
Re-executes normal scan
from the beginning of the
normal scan when s=1,
while the next instruction is
executed when s=0.
Jumps to LBL n of the
same No. n.
When s=1, jumps to the
LBL n of the same No.;
when s=0, executes the next
instruction.
destination of JMP or
CJMP of the same No.
location after the NEXT n
of the same No.; when s is
not 0, executes the next
instruction.
of the FOR n of the same
No. and jumps to FOR n.
Executes the SB n
subroutine of the same No.
n.
Indicates the start of No. n
subroutine.
Returns from subroutine.None
Port type switching from
dedicated port to general
purpose port
Refreshes all external I/O
ranges.
Refreshes only the input
range, output range or link
range.
d: WY10
s: WR, WM
t: R, M
d: WX0
s: WR, WM
t: R, M
s: WR,WM
s: WR,WM
s: WR,WM
R7F4
R7F3
R7F2
R7F1
DER ERR SD V C
zzzz
↕
zzzz
↕
R7F4
R7F3
R7F2
R7F1
DER ERR SD V C
zzzz
↕
zzzz
↕
zzzz
↕
Process
time
R7F0
(µ s)
MICRO-EH
803
803
Process
time
R7F0
(µ s)
MICRO-EH
1143
4323
2443
Remarks
Steps
Remarks
Steps
5-11
Ladder symbol
/
Item number
Classification
4 FUN 82 (s)
(SLREF (s))
symbol
Instruction
Instruction
name
I/O refresh
(any slot)
5 FUN 140 (s)High-speed
counter
operation
FUN instructions
control
6 FUN 141 (s)High-speed
counter
coincidence
output
control
7 FUN 142 (s)High-speed
counter upcount /
down-count
control
8 FUN 143 (s)High-speed
counter
current value
replacement
9 FUN 144 (s)High-speed
counter
current
value
reading
10 FUN 145 (s)High-speed
counter
current
value clear
11 FUN 146 (s)High-speed
counter
preset
12 FUN 147 (s)PWM
operation
control
13 FUN 148 (s)PWM
Frequency
on-duty
changes
14 FUN 149 (s)Pulse
output
control
15 FUN 150 (s)Pulse
frequency
output
setting
changes
16 FUN 151 (s)Pulse output
with
acceleration
deceleration
17 FUN 254 (s)
(BOXC (s))
18 FUN 255 (s)
(MEMC (s))
BOX
comment
Memo
comment
Process descriptionsI/O types used
Refreshes the I/O at the
s: WR, WM
designated slot.
Performs the starting and
s: WR, WM
stopping of the count
operation of the specified
counter.
Performs the enabling and
s: WR, WM
disabling of the coincidence
output of the specified
counter.
This controls the up-
s: WR, WM
count/down-count of the
specified counter. (Singlephase counters only)
The counter value of the
specified counter number
s: WR, WM
s+1: WR, WM
will be replaced by the data
stored in the replacement
value storage area.
This function reads the
count value of the specified
s: WR, WM
s+1: WR, WM
counter number and writes
it to the current value
storage range
Clears the count value of the
s: WR, WM
specified counter number.
The on-preset value and
off-preset value will be set
according to the preset
s: WR, WM
s+1: WR, WM
s+2: WR, WM
specifications in respect to
the specified counter
number.
Starts PWM output of the
s: WR, WM
specified PWM output
number.
Sets the frequency value
and the on-duty value of the
PWM output number
s: WR, WM
s+1: WR, WM
s+2: WR, WM
specified by the on-duty
value and the specified
frequency value.
Starts pulse output of the
s: WR, WM
specified pulse number and
the output is stopped when
the specified number of
pulses are output.
Pulse output is commenced
at the specified frequency.
Output is stopped when the
s: WR, WM
s+1: WR, WM
s+2: WR, WM
number of pulses specified
have been output.
Divides the time band and
frequency into 10 levels
and performs
acceleration/deceleration.
Starts the a-contact logical operation. Enters the continuity state when input is on.
LD n
Remark
Other
n
Starts the b-contact logical operation. Enters the continuity state when input is off.
LDI n
Notes
•Edge detection (DIF, DFN) cannot be used in respect to LDI.
•Pay close attention if the external output is to be monitored when counter input (coincidence output), PWM output or pulse
output is set with the PI/O function.
Y100
DIF1
WR0 = WR0 + 1
Y100 will not change while monitored. It will remain the same value previously set using functions such as
set/reset.
For example, if Y100 is off, the Y100 status will not change while being monitored and WRO will also remain
unchanged.
Program example
X00000
X00001
Y00100
Y00101
LD
OUT
LDI
OUT
X00000
Y00100
X00001
Y00101
Program description
•When input X00000 is on, output Y00100 is on; when off, the output is off.
•When input X00001 is off, output Y00101 is on; when on, the output is off.
5-14
Chapter 5 Instruction Specifications
Item numberBasic instructions-3, 4NameContact serial connection (AND, ANI)
Ladder formatCondition code
n
n
R7F4R7F3R7F2R7F1R7F0
DERERRSDVC
zzzzz
Instruction formatNumber of steps
ANDn
ANIn
ConditionSteps
BitWordDouble word
TD, SS,
Usable I/O
XYR,M
CU, CT WX WY
nI/O number{{{{
Function
n
Obtains AND of the previous operation result and the a-contact operation.
AND n
1
WR,
WM TC DX DY
Processing time (µs)
Average Maximum
0.8
←
DR,
DM
Constant
Remark
Other
AND n
ANI n
n
Obtains AND of the previous operation result and the b-contact operation.
ANI n
Notes
•Edge detection (DIF, DFN) cannot be used in respect to ANI.
•Pay close attention if the external output is to be monitored when counter input (coincidence output), PWM output, or pulse
output is set with the PI/O function.
R0
Y100 DI F1
WR0 = WR0 + 1
Y100 will not change when monitored. It will remain the same value previously set using functions such as
set/reset.
For example, if Y100 is off, the Y100 status will not change while being monitored and WRO will also remain unchanged.
Program example
LD
X00002
AND
X00002
X00003
R010
R011
Y00100
Y00101
OUT
LD
ANI
OUT
R010
Y00100
X00003
R011
Y00101
Program description
•When input X00002 and R010 are both on, output Y00100 is on and all others are off.
•When input X00003 is on and R011 is off, output Y00101 is on and all others are off.
This instruction is used to perform OR operation with respect to the logical operation blocks (dotted line area).
5-25
[
]
Chapter 5 Instruction Specifications
Item numberBasic instructions-20NameProcessing box start and end (PROCESSING BOX)
Ladder formatCondition code
R7F4R7F3R7F2R7F1R7F0
DERERRSDVC
zzzzz
Instruction formatNumber of steps
ConditionSteps
[ ]—3
BitWordDouble word
TD, SS,
Usable I/O
XYR,M
CU, CT WX WY
Function
•Indicates the start and end of the processing box.
Processing time (µs)
AverageMaximum
0.6
WR,
WM TC DX DY
DR,
DM
Constant
Remark
Other
X00001
WY0010=WX0000
LD X00001
[
WY0010=WX0000
]
•In the above example, the operation inside the processing box will be executed when input X00001 is on.
Parallel connection of processing box or coil is not allowed.
Not allowedAllowed
Not allowedAllowed
5-26
Chapter 5 Instruction Specifications
Item numberBasic instructions-21NameRelational box start and end (RELATIONAL BOX)
Ladder formatCondition code
R7F4R7F3R7F2R7F1R7F0
DERERRSDVC
zzzzz
Instruction formatNumber of steps
ConditionSteps
( )—0
BitWordDouble word
TD, SS,
Usable I/O
XYR,M
CU, CT WX WY
Function
•Indicates the start and end of the relational box.
Processing time (µs)
Average Maximum
0.8
WR,
WM TC DX DY
DR,
DM
Constant
Remark
Other
( )
z
5-27
Chapter 5 Instruction Specifications
Item numberBasic instructions-22NameOn delay timer (ON DELAY TIMER)
OUT TD n t s
Ladder formatCondition code
TD n
t x s
R7F4R7F3R7F2R7F1R7F0
DERERRSDVC
Processing time (µs)
Average Maximum
zzzzz
Instruction formatNumber of steps
1.4
ConditionSteps
OUT TD n t s
5
BitWordDouble word
Usable I/O
XYR,M
TD, SS,
CU, CT WX WY
WR,
WM TC DX DY
DR,
DM
Constant
nTimer number{ 0 to 255 (Decimal)
tTime base.01s, .1s, 1s
sSet value{{{{1 to 65535 (Decimal)
Function
Remark
Other
•The progress value is updated when the startup condition is on, and the coil turns on when the progress value is greater than
or equal to the set value.
•If the startup condition is turned off, the progress value is cleared and the coil turns off.
•The progress value is set in TC n and does not exceed 65535 (decimal).
•If the progress value is updated during RUN, the operation will be performed using the new progress value at that point.
•If an I/O is set for the set value, the set value can be changed during operation by changing the I/O value, since the set values
are updated during each scan.
Notes
•The .01s time base can only be used for timer numbers 0 to 63 (64 points).
•The .1 s and 1 s time bases can be used for all timer numbers (0 to 255).
•A maximum of 256 points can be used for the timers TD, SS, CU, CTU and CTD in total.
However, the same area as the counter is used. The timer numbers and counter numbers may not be overlapped.
Program example
X00000TD10
0.01S 12345
TD10R100
LDX00000
OUTTD10 0.01S 12345
LDTD10
OUTR100
•An example of a word I/O being used as the set value for the circuit shown above.
R7E3
X00000
TD10R100
WR0010=12345
TD10
0.01S WR0010
LDR7E3
[
WR0010=12345
]
LDX00000
OUTTD10 0.01S WR0010
LDTD10
OUTR100
5-28
Program description
[Time chart]
1] When input X00000 turns on, TD progress value is updated.
2] When input X00000 turns off, the TD progress value is cleared.
3] TD10 turns on when progress value ≥ set value.
4] While X00000 is on, the progress value increases, but will not
increase exceeding 65535.
5] When X00000 turns off, TD10 also turns off and the progress value
is cleared.
Set value
Progress value
of TD10 (TC10)
X00000
TD10
R100
12345
65 535
1]2]3] 4] 5]
•Example using word I/O as the set value
When RUN is commenced, the set value is set to the word I/O.
Or, the word I/O for the set value is designated to store in the power failure memory.
•Detects the leading edge of the startup condition, starts updating progress values, and turns on the coil.
•The coils turns off when the progress value is greater than or equal to the set value. If a leading edge is detected while the
progress value is less than the set value, the progress value is set to 0 and the counter is reset.
•The progress value is set in TC n and does not exceed 65535 (decimal).
•If the progress value is updated during RUN, the operation will be performed using the new progress value at that point.
•If an I/O is set for the set value, the set value can be changed during operation by changing the I/O value, since the set values
are updated during each scan.
Notes
•The .01 s time base can only be used for timer numbers 0 to 63 (64 points).
•The .1 s and 1s time bases can be used for all timer numbers (0 to 255).
•A maximum of 256 points can be used for the timers TD, SS, CU, CTU and CTD in total.
However, the same area as the counter is used. Timer number and counter number may not be overlapped.
•Since the startup condition of a single shot is edge detection, the condition for one scan cannot be detected during the first
scan after RUN starts.
Program example
X00001SS11
0.01S 12567
SS11R101
LDX00001
OUTSS11 0.01S 12567
LDSS11
OUTR101
•An example of a word I/O being used as the set value for the circuit shown above.
R7E3
X00001
SS11R101
WR0011=12567
SS11
0.01S WR0011
LDR7E3
[
WR0011=12567
]
LDX00001
OUTSS11 0.01S WR0011
LDSS11
OUTR101
5-30
Program description
Chapter 5 Instruction Specifications
[Time chart]
1] The progress value is updated and SS11 turns on at the leading edge
of X00001.
2] SS11 turns off when set value ≥ progress value.
X00001 is turned on at this time, but the single shot startup
conditions are ignored because it uses edge trigger.
3] SS11 is turned on at the leading edge of X00001 again, and the
progress value is updated.
4] When the leading edge of X00001 is detected while the progress
value does not reach the set value, the single shot timer is triggered
again and the progress value returns to 0, then starts increasing. The
SS11 remains on.
Set value
X00001
SS11
R101
12 567
Progress
value of SS11
(TC11)
1]2]3]4]
•Example using word I/O as the set value
When RUN is commenced, the set value is set to the word I/O.
Or, the word I/O for the set value is designated to store in the power failure memory.
•Increments the progress value by 1 each time the leading edge of the startup condition is detected, and switches on the coil
when the progress value is greater than or equal to the set value. The coil that is switched on turns off when the counter
clear CL n is switched on, and the progress value is cleared to 0.
•The progress value is set in TC n and does not exceed 65535 (decimal).
•If the progress value is updated while the system is running, the operation will be performed using the new progress value at
that point.
•If an I/O is set for the set value, the set value can be changed during operation by changing the I/O value, since the set values
are updated during each scan.
Remark
Other
Notes
•A maximum of 256 points can be used for the timers and counters TD, SS, CU, CTU and CTD in total.
•The timer numbers and counter numbers can not be overlapped.
•While the counter clear CL n is on, the rise of startup condition is ignored.
•Since the startup condition of the counter is edge detection, the condition for one scan can not be detected during the first
scan after RUN starts.
•If the set value is set to 0, it is regarded as a coil that is always on and controlled by the CL n.
Program example
X00005
X00006
CU15
CU15
CL15
R105
4
LDX00005
OUTCU15 4
LDX00006
OUTCL15
LDCU15
OUTR105
•An example of a word I/O being used as the set value for the circuit shown above.
R7E3
X00005
X00006
CU15
WR0015=4
CU15
WR0015
CL15
R105
LDR7E3
[
WR0015=4
]
LDX00005
OUTCU15 WR0015
LDX00006
OUTCL15
LDCU15
OUTR105
5-32
Program description
Chapter 5 Instruction Specifications
[Time chart]
1] The progress value (count) is cleared to 0 by the counter
clear (CL15). While the counter clear is on, the progress
IgnoredIgnored
value will not be updated.
2] The progress value is updated at the leading edge of
X00005
X00005.
3] Counter coil (CU15) is turned on since the progress value ≥
CL15
CU15
Set value 4
Progress
value of
CU15 (TC15)
65 535
5
4
3
1]
2]
3
2
1
3]
4]
5]
set value.
4] The count value will not exceed 65535 (decimal).
5] The progress value and counter coil are cleared by counter
clear (CL15).
• The clear is performed under the conditions set immediately
prior to the execution of the counter coil instruction.
•Example using word I/O as the set value
When RUN is commenced, the set value is set to the word I/O.
Or, the word I/O for the set value is designated to store in the power failure memory.
OUT CU n s
5-33
Chapter 5 Instruction Specifications
OUT CTD n
Item number
OUT CTU n s
Ladder formatCondition code
Basic instructions-25, 26
CTU n s
CTD n
R7F4R7F3R7F2R7F1R7F0
DERERRSDVCUpper case: CTU
Name
zzzzz 1.4
Up (CTU n) and down (CTD n) of up/down counter
(UP/DOWN COUNTER)
Processing time (µs)
Average Maximum
Remark
Lower case: CTD
Instruction formatNumber of steps
OUT CTU n sConditionSteps
OUT CTD nCTU51.4
CTD3
BitWordDouble word
Usable I/O
XYR,M
TD, SS,
CU, CT WX WY
WR,
WM TC DX DY
DR,
DM
Constant
Other
nCounter number{ 0 to 255 (Decimal)
sSet value{{{{1 to 65535 (Decimal)
Function
•For the UP counter, increments the progress value by 1 each time the leading edge of the startup condition is detected, while
it decrements the progress value by 1 for the DOWN counter. The coil switches on when the progress value is greater than
or equal to the set value and switches off when the progress value is less than the set value. When the counter clear CL n
switches on, the progress value is cleared to 0 and the coil switches off.
•The progress value is set in TC n, and the value will be in the range of 0 to 65535 (decimal).
•If the progress value is updated during RUN, the operation will be performed using the new progress value at that point.
•If an I/O is set for the set value, the set value can be changed during operation by changing the I/O value, since the set values
are updated during each scan.
Notes
•A maximum of 256 points can be used for the timers and counters TD, SS, CU, CTU and CTD in total.
•The timer numbers and counter numbers cannot be overlapped.
•The numbers for the UP coil and DOWN coil must be the same.
•While the counter clear CL n is on, the rise of startup condition is ignored.
•Since the startup condition of the counter is edge detection, the condition for one scan may not be detected during the first
scan after RUN starts.
•If the set value is set to “0”, it is regarded as a coil that is always on and controlled by the CL n.
5-34
Program example
Chapter 5 Instruction Specifications
X00007
X00008
X00009
CT17
CTU17
CTD17
CL17
R107
4
LDX00007
OUTCTU17 4
LDX00008
OUTCTD17
LDX00009
OUTCL17
LDCT17
OUTR107
•An example of a word I/O being used as the set value for the circuit shown above.
R7E3
X00007
X00008
X00009
CT17
WR0017=4
CTU17
WR0017
CTD17
CL17
R107
LDR7E3
[
WR0017=4
]
LDX00007
OUTCTU17 WR0017
LDX00008
OUTCTD17
LDX00009
OUTCL17
LDCT17
OUTR107
Program description
[Time chart]
X00007
X00008
CL17
CT17
Set value
=4
Progress value
(TC17)
Ignored
65 535
5
4
3
2
1
1]
2]
4
323
4]5]3]
5
4
65 534
6]6]
Ignored
Ignored
0
7]
1] The progress value (count value) is
up-counted at the leading edge of
X00007.
2] The counter coil (CT17) is turned on
when the progress value ≥ set value.
3] When the up-coil and down-coil
startup conditions turn on
simultaneously, the progress value
does not change.
4] The progress value is down-counted
at the leading edge of X00008.
5] The counter coil turns off when set
value > progress value.
OUT CTU n s
OUT CTD n
z
6] The progress value will not exceed 65535 (decimal). Also, it will not be below 0.
7] When the counter clear (CL17) turns on, the progress value and the counter coil are cleared. The progress value is not
updated while the counter clear is on.
•The clear is performed under the conditions set immediately before execution of the counter coil instruction.
•Example using the word I/O as the set value
When RUN is commenced, the set value is set to word I/O.
Or, the word I/O for the set value is designated to store in the power failure memory.
•It is possible to use array variables for d and s.
•When d is a word, the constant is0 to 65535 or – 32768 to + 32767 (decimal)
H0000 to HFFFF or H8000 to H7FFF (hexadecimal)
When d is a double word, the constant is0 to 4294967295 or -2147483648 to +2147483647 (decimal)
H00000000 to HFFFFFFFF or H80000000 to H7FFFFFFF
Notes
•When using an array variable, DER is set to 1 if the usable I/O number exceeds the maximum value, and DER is reset to “0”
if it is normal.
•The combinations of d and s are as follows:
ds
BitBit
WordWord
Double wordDouble word
d = s
•Step numbers and processing time are as follows:
dsNumber of steps ( ) indicates DW
I/OI/O3 (4)322735
I/OArray4746686
ArrayI/O4 (5)525371
ArrayArray59299120
Processing time (µs)
BitWordDouble word
5-45
Chapter 5 Instruction Specifications
Program example
X00000 DIF0
WR0000
X00001 DIF1
WR0000(WM000)=WX0000
X00002 DIF2
d = s
X00003 DIF3
WR0000
WR0000(WM000)=WR0000(WM001)
=WX0000
=WR0000(WM001)
Program description
1] The value of WX0000 is substituted into WR0000 at the leading edge of input X00000.
2] The value of WX0000 is substituted into the WR number designated by WR0000 + WM000 at the leading edge of input
X00001.
1) When WM000 = H0010, it holds the same meaning as WR0010 = WX0000.
3] The word number of the I/O advanced by the amount designated by WR0000 + WM001 due to the I/O assignment is
substituted into WR0000 at the leading edge of input X00002.
1) When WM001 = H0010, it hods the same meaning as WR0000 = WR0010.
4] The I/O value designated by WR0000 + WM001 at the leading edge of input X00003 is substituted into the I/O of the value
designated by WR0000 + WM000.
Example) When WM000 = H0010 and WM001 = H0015, it holds the same meaning as WR0010 = WR0015.
1]
2]
Array variables are used at the
substitution destination
3]
Array variables are used at the
substitution source