Beruflich Dokumente
Kultur Dokumente
YU
Mikro Kontrol
Dositejeva 7a
11000 Beograd
Srbija i Crna G ora
tel:011/3283840
tel/fax:011/3283732
e-mail: officemikrokontrol.co.vu
WWW: http://www.m ikrokontrol.co.vu
CONTENTS
1.
Introduction
What is a Control System
The Role of the Programmable Controllers
Input and Output Devices
What is a Programmable Controller
Conventional Control Panel and it's difficulties
Disadvantages of Conventional Control Panel
PLC Panel and their advantages
Conversion of Conventional Control Circuit to PLC
A Systematic Approach of control system Design
Programmable Controller Application
Consider A Simple Project
2.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1-1
1-3
1-3
1-5
1-8
1-8
1-9
1-10
1-14
1-16
1-17
---------------------------------------------------------------------------------------------------------------------------------------------
2-1
2-3
2-6
2-9
System Configuration
CPM1A CPU Components
CPM2A CPU Components
Expansion I/O Units Components
CPU and Expansion I/O Unit Configuration
CPM1A- Communications
Host Link Communication
Multi-drop Communications to Computer
1 to 1 PLC Communication Links
NT Link Communication
Programming Example of 1:1 PLC Link Between 2 CPM1A Units
CPM2A- Communications
Host Link Communication
Multi-drop Communications to Computer
No-Protocol Communication (RS-232C Communication)
NT Link Communication
1 to 1 PLC Communication Links
CompoBus/S I/O Link Connections
Peripheral Devices
Programming Console
Sysmac Window Based Support software
Training Kit Configuration
PLC Electrical Wiring I/O Connection
3.
PAGE
------------------------------------ 2-11
------------------------------------ 2-12
------------------------------------ 2-14
------------------------------------ 2-15
------------------------------------ 2-15
------------------------------------ 2-16
------------------------------------ 2-17
------------------------------------ 2-18
------------------------------------ 2-19
------------------------------------ 2-19
------------------------------------ 2-20
------------------------------------ 2-21
------------------------------------ 2-21
------------------------------------ 2-22
------------------------------------ 2-24
------------------------------------ 2-25
------------------------------------ 3-1
------------------------------------ 3-2
------------------------------------ 3-3
------------------------------------ 3-4
------------------------------------ 3-4
------------------------------------ 3-5
------------------------------------ 3-6
------------------------------------ 3-7
------------------------------------ 3-8
------------------------------------ 3-8
------------------------------------ 3-9
------------------------------------ 3-10
CONTENTS
Interrupt by High Speed Counter Inputs
(Count-check Interrupts)
Example of Input Interrupt in Counter Mode
High Speed Counter
Example of using High Speed Counter
Pulse Output Function
Synchronized Pulse Control
Analog Controls
Quick Response Inputs Function
- Marco Function
4.
---------------------------------------------------------------------------------------------------------------------------------------------
4-1
4-2
4-3
4-4
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
4-5
4-6
4-8
4-9
4-9
4-10
4-12
4-14
4-15
6.
------------------------------------ 3-10
------------------------------------ 3-11
------------------------------------ 3-12
------------------------------------ 3-12
------------------------------------ 3-13
------------------------------------ 3-14
------------------------------------ 3-15
------------------------------------ 3-15
------------------------------------ 3-16
5.
PAGE
------------------------------------ 5-1
------------------------------------ 5-1
------------------------------------ 5-1
------------------------------------ 5-2
------------------------------------ 5-3
------------------------------------ 5-3
------------------------------------ 5-4
------------------------------------ 5-7
------------------------------------ 5-8
CONTENTS
Application
Application
Application
Application
Application
7.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
6-51
6-58
6-60
6-62
6-66
------------------------------------ 6-78
------------------------------------ 6-81
8.
PAGE
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
7-1
7-3
7-4
7-5
7-6
7-7
7-8
7-9
7-11
7-14
7-16
7-19
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
8-1
8-2
8-2
8-3
8-4
8-5
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
9-1
9-2
9-2
9-2
9-3
9-4
9-6
9-7
9.
10.
Appendices (A-E)
--
Appendix
A
AppendixB
Appendix
C
AppendixD
AppendixE
E-1
------------------------------------ A-1
------------------------------------ B-1
------------------------------------ C-1
------------------------------------ D-1
----------------------------------
iii
1. INTROD UCT IO N
0
Area Host
Computer
Network
Touch Panel
BZ
Limit switch
Sensor
Motor
Solenoid
Control Components
Lights
Buzzer
Fig. 1.1:
It could also be an application as small as a single PLC controlling a single or some
output devices.
l
e
n
a
P
ch
u
o
T
1. INTRODUCTION
Mechanical
structure
Robot Arm
Pushbutton &
Selector Switch
Revolving
Light
Indicators
Switches
PLC
Relays
Sensor
Magnetic
Contactor
Terminal
Block
1-2
1. INTRODUCTION
0
INPUT
Limit Switch
e
cd
n
ryE
ta
o
R
Timer
Photoelectric
Switch
ch
w
tyS
xim
ro
P
1-3
1. INTRODUCTION
Output Devices
An automatic system is incomplete and the PLC system is virtually paralysed without means of
interface to the field output devices. Some of the most commonly controlled devices are motors,
solenoids, relays indicators, buzzers and etc. Through activation of motors and solenoids the PLC
can control from a simple pick and place system to a much complex servo positioning system.
These type of output devices are the mechanism of an automated system and so its direct effect
on the system performance.
However, other output devices such as the pilot lamp, buzzers and alarms are merely meant for
notifying purpose. Like input signal interfacing, signal from output devices are interfaced to the
PLC through the wide range of PLC output module.
1-4
1. INTRODUCTION
0
Signals
from
Switches
Sensor
etc
Input
Interface
Central
Processing
Unit (CPU)
Output
Interface
Memory
Signals
to
Solenoid
s Motors
etc
The Central Processing Unit (CPU) is a microprocessor that co-ordinates the activities of the PLC
system. It executes the program, processes I/O signals & communicates with external devices.
Memory
There are various types of memory unit. It is the area that hold the operating system and user
memory. The operating system is actually a system software that co-ordinates the PLC. Ladder
program, Timer and Counter Values are stored in the user memory. Depending on user's need,
various types of memory are available for choice:
ROM is a non-volatile memory that can be programmed only once. It is therefore unsuitable. It is
least popular as compared with others memory type.
RAM is commonly used memory type for storing the user program and data. The data in
the volatile RAM would normally be lost if the power source is removed. However, this
problem is solved by backing up the RAM with a battery.
1-5
1. INTRODUCTION
(c) Erasable Programmable Read Only Memory (EPROM)
EPROM holds data permanently just like ROM. It dose not require battery backup. However, its
content can be erased by exposing it to ultraviolet light. A prom writer is required to reprogram
the memory.
combines the access flexibility of RAM and the non-volatility of EPROM in one. Its contents
can be erased and reprogrammed electrically, however, to a limit number of times.
1-6
1. INTRODUCTION
SCAN TIME
The process of reading the inputs, executing the program and updating the outputs is known
as scan. The scan time is normally a continuous and sequential process of reading the status of
inputs, evaluating the control logic and updating outputs. Scan time specification indicates how
fast the controller can react to the field inputs and correctly solve the control logic.
PROGRAM
0
1
1000
I/O Update
1000
PROGRAM SCAN
1000
TIM0
#50
The time required to make a single scan (scan time) varies from 0.1 ms to tens of ms
depending on its CPU processing speed and the length of the user program. The user of
remote I/O subsystems increases the scan time as a result of having to transmit the I/O
updates to remote subsystem. Monitoring of the control program also adds overhead time to
the scan because the controller's CPU has to send the status of coils and contacts to the CRT
or other monitoring device.
1-7
1. INTRODUCTION
Conventional Control Panel and Its Difficulties
In the beginning of the Industrial revolution, especially in the 1960 & 1970, automated machines
were controlled by electromechanical relays. These relays were all hardwired together inside the
control panel. In some cases, the control panel was so huge that it could cover the entire wall.
Every connections in the relay logic must be connected. Wiring is not always perfect, it takes time
to troubleshoot the system. This is a very time consuming affair. On top of that, the relays have
limited contacts. If modification is required, the machine has to be stopped, space may not
available and wiring has to be traced to accommodate changes. The control panel can only be
used for that particular process. It cannot be changed immediately to a new system. It has to be
redone. In terms of maintenance, an electrician must be well trained and skillful in troubleshooting
the control system. In short, conventional relay control panel are very inflexible.
typical example of the conventional control panel is shown in Fig. 1.4
1-8
1. INTRODUCTION
1-9
1. INTRODUCTION
Th
TT
B
Circuit
Breaker
Mg
N
PB1
PB2
Mg
Start Push -button
Start
Push-button
TH
Mg
Fig. 1.5
When the push-button PB1 is pressed, current I will flow through the circuit and energize
magnetic contact Mg which in turn closes the Mg contacts. The contact Mg parallel the pushbutton PB1 is for self-holding so that PB1 can be released. The other Mg contacts closes to
switch on the 3-pbase motor.
To connect the above circuit in a PLC system to PLC wiring circuit, we need to identify the input
and output devices. The input devices are start push-button (PB1) and stop push-button (PB2) and
the output device in this case is only one magnetic contactor that controls the 3-phase motor. The
wiring circuit is shown in Fig. 1.6
1-10
1. INTRODUCTION
Circuit
Breaker
Th
V
W
B
Mg
E
P B1
Assignment
Stop Push-button
PB2
DC24V
Input = Channel 00
Output = Channel 10
+
FUSE COM
INPUT
Mg
OU TP UT
PB1 (0000)
Th
Magnetic Contactor
PB2 (0001)
1000
Start Pushbutton
1000
Stop Pushbutton
Control
Mg
END (01)
1-11
1. INTRODUCTION
Example 2: Sorting Machine
(Start)
PB1
CR1
(Stop)
PB2
N
CTR1
CR
Begin Cycle 2, 3, 7
2
CR1
CR1
Run Light
S1 ( Limit Switch)
CR2
Sorting
Cylinder
5
S2 ( Limit Switch)
CTR1
Counter
PB2
7
CRT 1
End Cycle Bell
rt
Fig. 1.9 Conventional Circuit for Sorting Machine
In this example, you have to determine again the number of input and output devices used for the
control circuit. Assign the I/O for the PLC and then wire it according to the actual I/O devices. The
wiring circuit is shown in Fig. 1.10. The input devices such as PB1 is assign to the input 0, LS1 as
input 1, LS2 as input 2 and PB2 as input 3. The output devices such as conveyor motor is assigned
to output 1000, cylinder solenoid as output 1001 and End Cycle Bell as output 1002.
1-12
1. INTRODUCTION
$!*20
#
P(I
P(*
I#P/.
O/.P/.
!onve8or
+otor
:un ight
+.:
.h
!#.1
*&&&
P(*
&&&9
)top
(egin !8cle
*&&&
1&&&
!onve8or +otor
4nd :/# ight
)i % imit )witch'
*&&1
&&&1
*&&1
)* % imit )witch'
&&&*
P(*
!/
:st
1&&1
!8linder )olenoid
!#.1
<1&&&
&&&9
!#.1
_ 1&&*
"nd !8cle (ell
"#$ %&1'
1. INTRODUCTION
Fig. 1.11 is the software ladder diagram to be loaded into the PLC in order for the PLC to
run according to the sequence of operation.
0
1-14
1. INTRODUCTION
A SYSTEMATIC APPROACH TO PROGRAMMABLE CONTROLLER DESIGN
Test Run
Editing Software
Programmed
the designed
No
O.K.?
m
a
g
ro
IsP
Yes
Alter the program
accordingly
Store program
in EPROM etc
Simulate the
program and debug
the software
No
Is Program
O.K.?
Systematically
document all drawing
Yes
End
1-15
1. INTRODUCTION
Material Handling
Conveyor System
Packaging Machine
Pick and Place Robot Control
Pump Control
Swimming Pool
Water Treatment
Chemical Processing Plant
Paper and Pulp Industries
Glass Manufacturing
Precast Concrete Industries
Cement Manufacturing
Printing Industries
Electro-plating Plants
Food Processing
Machine Tools
Tobacco Industries
Plastic Moulding machine
Semi-conductor Manufacturing
Machine
Sugar Manufacturing Plant
Palm Oil Manufacturing Plant
Air Condition Control
1-16
1. INTRODUCTION
(Detect workpiece)
PH1 (4)
(clockwise
rotation)
LS3
LS1 (1)
(counterclockwise
rotation)
LS2 (2)
SOL2 (1001)
(1000) SOL1
conveyor A (1003)
(clockwise
rotation)
conveyor B
(counterclockwise
rotation)
This kind of robot is seen in many automated factories. As is apparent from the figure,
this robot picks up a work being carried on conveyor A, and places it on conveyor B.
Although seemingly simple, executing this series of operations with electric devices and
circuitry is harder than realized.
Looking at the above figure closely will disclose that the robot performs one operation at a
time when a given condition is met. Let's analyze these operations and conditions.
1.
When the start button is pressed, the robot rotates its arm clockwise.
2.
When the robot arm has moved to the position of the work in conveyor A, the arm
grasps the work.
3.
4.
When the arm has rotated to the position of conveyor B, it releases the work.
1-17
1. INTRODUCTION
1. Determine the Sequence of Operation by Drawing the Flowchart.
Start
Button
Pressed
No
STOP CONDITION:
Arm rotates Clockwise
SO L1
Yes
Arm
At
LS1
No
Conveyor A ON
Yes
No
Conveyor A OFF
Arm Grasp Work
Yes
Is
L S3
ON
No
SO L2
Yes
Arm
At
LS2
No
Release Workpiece
Yes
Is
LS3
OFF
Yes
1-18
1.
INTRODUCTION
2.
Assignment of I/O
3.
- Start condition
000.00
200.03
200.00
Start
200.00
Network 2
Start
- Arm clockwise
200.00
Network 3
000.02
LS2
Armanticlkwise
000.01
01 0 .02
LS1
Grasp
010.00
Armclkwise
- Conveyor A
200.00
Network 4
010.01
010.03
Conveyor A
- Grasp
010.03
000.04
Conveyor_A
200.01
010.02
PH1
Grasp
010.02
Network 5
Grasp
- Arm anticlockwise
010.02
000.03
Grasp
200.02
200.03
200.04
LS3
010.01
Armanticlkwise
010.01
Armanticlkwise
INPUT
DESCRIPTION
OUTPUT
DESCRIPTION
1. INTRODUCTION
000_02
S2
200_01
Release CYCLE
200_01
000_03
200_02
L S3
200_04
200_03
000_06
Reset
200_04
Stop
200_03
Network 9 - Reset
condition Reset after stop
200_03
Network 10 - End
End (01)
1-20
1. INTRODUCTION
1-21
2. SYSTEM CONFIGURATION
0
CPU Components
CPM1A-10CDRCPM1A-20CDRCPM1A-30CDR-
CPM1A-40CDR-
2-1
2. SYSTEM CONFIGURATION
PLC
Status Indicators
Indicator
PWR (green)
RUN (green)
ERR/ALM (red)
COMM (orange)
Status
ON
OFF
ON
OFF
ON
Flashing
OFF
ON
OFF
Meaning
Power is being supplied to the PLC.
Power isn't being supplied to the PLC.
The PLC is operating in RUN or MONITPR mode.
The PLC is in PROGRAM mode or a fatal error
has occurred.
A fatal error has occurred. (PLC operation stops.)
A non-fatal error has occurred. (PLC operation
continues.)
Indicates normal operation.
Data is being transferred via the Peripheral Port.
Data isn't being transferred via the Peripheral Port.
Input Indicators
Output
Indicators
These indicators are lit when the output relays are turned on.
2. SYSTEM CONFIGURATION
0
Expansion I/O
Unit Connector
CPM2A-60 CD1]-1]
Expansion I/O
Unit Connector
2-3
2. SYSTEM CONFIGURATION
PLC
Status Indicators
Status
PWR (green)
Indicator
ON
OFF
ON
OFF
RUN (green)
ERR/ALM (red)
ON
Flashing
COMM. (orange) ON
OFF
Input
Meaning
Indicators
These indicators are lit when the corresponding input terminal is ON.
When a fatal error occurs, the input indicators change as follows:
CPU error or I/O bus error:
The input indicators turn OFF
Memory error or system error: The input indicators will change with the status of the input
signal, but inputs will not be updated in memory.
Output
Indicators
These indicators are lit when the output relays are turned on. The indicators are lit during
I/O refreshing. When pulse outputs are being used, the indicator will remain lit continuously
while the pulses are being output.
Analog
Control
Turn these controls to change the analog setting (0 to 200) in IR 250 and IR 251.
Peripheral
Port
Connects the PLC to a Programming Device (including Programming Consoles), host
computer, or standard external device.
2-4
2. SYSTEM CONFIGURATION
RS-232C Port
Connects the PLC to a programming Device (excluding Programming Consoles), host
computers, Programmable Terminal, or standard external device.
Communication Setting
This switch selects whether the Peripheral port and RS-232C port will use the communications
setting in the PC Setup or the standard settings.
OFF: The Peripheral Port and RS-232C port operate according to the communication setting in
the setup, except for a Programming Console connected to the Peripheral port.
ON: The Peripheral Port and RS-232C port operate according to the standard communications
settings, except for a Programming Console connected to the Peripheral port.
Battery
This battery backs up the memory in the CPU Unit and is connected when the Unit is shipped.
Expansion Connector
Connects the PLC's CPU unit to the Expansion Unit (Expansion I/O unit, Analog I/O unit, or the
CompoBus/S I/O Link Unit.) Up to 3 Expansion Units can be connected to a CPU unit.
2-5
2. SYSTEM CONFIGURATION
Expansion
2-6
2. SYSTEM CONFIGURATION
Expansion I/O with 8
Output Terminals
CPM1A-8ER
CPM1A-8ET
CPM1A-8ET1
1. Input Terminals
Connect to the input circuits.
2. Output Terminals
Connect to the output circuits.
3. Input Indicators
These indicators are lit when the corresponding input terminal is ON.
4. Output Indicators
These indicators are lit when the corresponding output terminal is ON.
5. Expansion I/O Unit Connecting Cable
Connects the Expansion I/O Unit to the Expansion Connector on the PLC 's CPU Unit or
another Expansion I/O Unit.
6. Expansion Connector
Connects to another Expansion unit (Expansion I/O Unit, Analog I/O Unit, or CompoBus/S
I/O Link Unit). Up to three Expansion Units can be connected to a CPU Unit.
2-7
2. SYSTEM CONFIGURATION
Analog I/O Unit Components
CPM1A-MADO1
1. Analog Terminals
Connects the unit to analog input devices and analog output devices.
2. Expansion I/O unit Connecting Cable
Connects the Analog I/O unit to the Expansion Connector on the PLC 's CPU Unit or
another Expansion Unit.
3. Expansion Connector
Connects to another Expansion Unit (Expansion I/O Unit, Analog Unit, or CompoBus/S
I/O Link Unit). Up to 3 Expansion Unit can be connected to a CPU unit.
CompoBus/S Terminals
CPM1A-SRT21
2-8
2. SYSTEM CONFIGURATION
1. CompoBus/S Terminals
2. Dip Switch
The DIP switch sets the Unit's node number of CompoBus/S remote I/O network and
determines whether or not the outputs will be cleared in the event of a communications error.
3. LED Indicators
These indicators show the status of the CompoBus/S communications.
4. Expansion I/O Unit Connecting cable
Connects the CompoBus/s I/O Link Unit to the Expansion connector on the PLC's CPU Unit
or another Expansion unit.
5. Expansion Connector
Connects to another Expansion Unit (Expansion I/O Unit, Analog I/O Unit, or CompoBus/S
I/O Link Unit). Up to three Expansion Units can be connected to a CPU Unit.
Number of I/O
terminals
Inputs
Outputs
10
6 points
4 points
20
12 points
8 points
30
18 points
12 points
40
24 points
16 points
Power
supply
AC
DC
AC
DC
AC
DC
AC
DC
Model number
CPM1A-10CDR-A
CPM1A-10CDR-D
CPM1A-20CDR-A
CPM1A-20CDR-D
CPM1A-30CDR-A
CPM1A-30CDR-D
CPM1A-40CDR-A
CPM1A-40CDR-D
2-9
2. SYSTEM CONFIGURATION
The following table describes the CPM2A CPUs.
The following table describes the expansion unit shared by CPM1A and CPM2A.
Number of I/O
terminals
Inputs
Outputs
Power
supply
20
12 points
8 points
DC
8
8
8 points
0 point
0 points
8 points
DC
DC
16
2 Analog
8 points
1 Analog
8 points
DC
DC
Model number
CPM1A-EDR
CPM1A-EDT
CPM1A-EDT1
CPM1A-8ED
CPM1A-8ER
CPM1A-8ET
CPM1A-8ET1
CPM1A-MAD01
CPM1A-SRT21
Nu
mb
er
of
I/O
Inp
uts
Out
put
s
Po
wer
Mo
del
nu
mb
er
ter
min
als
sup
ply
3
0
1
8
p
o
i
n
t
s
1
2
p
o
i
n
t
s
A
C
C
P
M
2
A
3
0
C
2. SYSTEM CONFIGURATION
2-11
2. SYSTEM CONFIGURATION
Multi-drop Communications to Computer
The following diagram shows how to connect up to 32 CPUs (CPM1A only) to an IBM
PC/AT or compatible computer.
2-12
2. SYSTEM CONFIGURATION
formats.
RS-422 Adapter
2-13
2. SYSTEM CONFIGURATION
1-to-1 PC Communication Links
A data link can be created with the LR data area in another CPM1A, CPM1, CQM1, SRM1 or
C200HS PC or C200HX/HE/HG PC. An RS-232C Adapter is used to make the 1-to-1
connection.
Name
RS-232C Adapter
Usage
Converts to peripheral port format.
Model number
CPM1-CIF01
2-14
2. SYSTEM CONFIGURATION
NT
Link Communication
NT Link is a high speed interface between the CPM1A and a Programmable Terminal. The
RS232C adapter needs to be used for this connection, with the mode switch on the adapter set
to "NT Link".
CPM1A CPU
RS-232C
Adapter
RS-232C Cable
Name
RS-232C Adapter
Programming Example of
Usage
Converts to peripheral port format.
Model number
CPM1-CIF01
RS-232C
Adapter
CPM1A CPU
Adapter
RS-232C
25313
25313
Always
ON
Always
ON
MASTER PROGRAM
CPM1A CPU
SLAVE PROGRAM
END(01)
Send data of
Master to
Slave
Send data
of Slave to
Master
Receive Slave
data
Receive data
from Master
END(01)
MOV(21)
MOV(21)
000
000
MOV(21)
MOV(21)
LR08
LR00
2-15
2. SYSTEM CONFIGURATION
0
2-16
2. SYSTEM CONFIGURATION
Multi-drop Communications to Computer
Up to 32 Omron PLCs, including the OMRON PLCs, can be controlled from a host computer.
The following diagram show separate RS-232C port and Peripheral Port configurations, but both
port can be used simultaneously.
RS-232C
B500-AL004 or NT-AL001
RS-422A/485 (Total: 500 m max.)
Cable
IBM PC/AT or
compatible
computer
NT-AL001
RS-232C
RS-232C port
NT-AL001
RS-232C
RS-232C port
NT-AL001
RS-232C
RS-232C port
Up to 32 PLC
RS-232C
B500-AL004 or NT-AL001
RS-422A/485 (Total: 500 m max.)
Cable
IBM PC/AT or
compatible
computer
CPM1-CIF11
Peripheral port
CPM1-CIF11
Peripheral port
CPM1-CIF11
Peripheral port
Up to 32 PLC
The NT-AL001 must be supplied externally with 5 VDC.
2-17
2. SYSTEM CONFIGURATION
No-Protocol Communication (RS-232C Communication)
When no-protocol communications are used, data can be exchanged with serial devices such
as bar code readers and serial printers using TXD(48) and RXD(47). No-protocol
communications can be used with either an RS-232C port or peripheral port.
CPM2A CPU Unit
RS-232C devices
Bar Code
reader Serial
Printer Other
RS-232C port
RS-232C devices
Bar Code
reader Serial
Printer Other
Peripheral port
CPM2A CPU Unit
RS-232C devices
Bar Code
reader Serial
Printer Other
Peripheral port
Note
When using the No-protocol communication, it is necessary to setup the communication setting in
the DM area. For detail, please refer to Appendix behind.
2-18
2. SYSTEM CONFIGURATION
NT
Link Communication
The NT Link allows a CPM2A PLC to be connected directly to an OMRON Programmable
Terminal. There is no need for a communications program on the PLC. The NT Link can be
used with a RS-232C port.
Oneo-Likcm
tmunicatos
A one-to-one data link of up to 256 bits (LR 00000 to LR 01515) can be created with the data area
of another CPM2A, CQM1, CPM1A, SRM1(-V2), or a C200HX/HG/HE PLC, where one serves as
the MAster, that other as Slave. There is no need for a communications program on the PLC.
The one-to-one link can be used with an RS-232C port.
The link relay area on the CPM2A PLCs is only 16 words, LR00 to LR15. When performing a
one-to-one link with a CPM2A PLC and CQM1, C200HS or C200HW/HG/HE use the
corresponding 16 words, LR00 to LR15 on the CQM1, C200HS or C200HW/HG/HE. A one-toone link with a CPM2A PLC cannot be performed using LR16 to LR63.
2-19
2. SYSTEM CONFIGURATION
CompoBus /S I/O Link Connections
A CompoBus/S I/O Link can be used to create an I/O link (remote I/O) of 8 input points and 8
output points with a CompoBus/S Master or Unit SRM1 PLC. The connection is made through a
CompoBus/S I/O Link Unit.
From the standpoint of the CPM2A CPU unit, the area allocated to the CompoBus/S I/O Link
Unit can be treated just like the area allocated to an Expansion I/O Unit. The difference is that
the bits are not actual I/O points, but I/O bits in the Master Unit.
Cables
Use special flat cable or VCTF cable to connect the nodes in the CompoBus/S I/O link. (Special
flat cables and VCTF cables cannot be combined in the same system.)
Name
Flat Cable
VCTF Cable
Model Number
XB1T-W10
---
Specifications
4-conductor flat cable, 0.75 mm2
2-conductor VCTF, 0.75 x 20
2-20
2. SYSTEM CONFIGURATION
Peripheral Device Connections
CPM1A and CPM2A programming can be created or edited with a Programming Console or a
personal computer running SYSWIN.
Programming Console
A CQM1-PR001-E or C200H-PRO27-E Programming Console can be connected to the CPM1
and CPM2A, as shown in the following diagram.
CQM1-PRO01-E
CPM1A CPU
C200H-CN222 (2m)
C200H-CN422 (4m)
C200H-PRO27-E
Name
CQM1-series Programming Console
(The Connecting Cable is attached.)
C200H-series Programming Console
(Cable C200H-CN222 needed for connection.)
CPM2A CPU
Model number
CQM1-PRO01-E
C200H-PRO27-E
2-21
2. SYSTEM CONFIGURATION
SYSMAC Window-based Support Software
An IBM PC/AT compatible personal computer running SYSWIN can be connected to the
CPM1A as shown in he following diagram.
CPM1A
CPM1A-CIF01
RS-232C Cable
IBM PC/AT or
compatible computer
CPM2A
CQM1-CIF02
SYSWIN
By RS-232C Port
Connect to the CPU Units RS-232C port with an XW2Z-000S or XW2Z-000S-V Connecting
Cable or Hostlink Cable Self-made.
IBM PC/AT or
compatible computer
RS-232C Cable
SYSWIN
Note
The XW2Z- 00S cables have a D-Sub 25-pin connector and the XW2Z- 00S-V cables have a DSub 9-pin connector.
2-22
2. SYSTEM CONFIGURATION
Name
RS-232C Adapter
Connecting Cable
RS232 Cable
SYSWIN
(Windows Version)
Usage
Converts to Peripheral Port format.
Model number
CPM1-CIF01
CQM1-CIF01
Used to connect IBM PC/AT or CQM1-CIF02
compatible computers. (Length: 3.3 m)
From RS-232C port to computer. XW2Z- 00S
(CPM2A)
XW2Z- 00S-V
For IBM PC/AT or compatible SYSWIN-E-V3.3
computers (3.5" disks, 2HD)
Note
Setting
Mode
Baud
Rate
Peripheral port
DM 6650 bits 12 to 15
DM 6651 bits 00 to 07
Frame
format
DM 6651 bits 08 to 15
RS-232C port
Setting
DM 6645 bits 12 to 15 0: Host Link
DM 6646 bits 00 to 07 00: 1,200 bps
1: 2,400 bps
2: 4,800 bps
3: 9,600 bps
4: 19,200 bps
5: 38,400 bps
DM 6646 bits 08 to 15 00 (See note)
The standard settings are: Host Link, 9600 bps, 7 data bits, 1 start bit, 2 stop bits, and even
parity.
2-23
2. SYSTEM CONFIGURATION
Training Kit Configuration
INPUT
0 1 2 3 4 5 6 7 8 9 10 11
Fig. 2.1 :
The CPM1A
Training Kit
In Fig. 2.1, we see the overall outlook of the CPM1A training kit. It consists of : 12 Input
switches connected to the input terminals of the CPM1A CPU.
On the top surface of the CPM1A, we could find the peripheral port, 4 LED indicators and the
expansion port. The peripheral port is meant for the programming console or the RS232C
peripheral interface. The four LED indicators are RUN, POWER, ERROR and Coummnication.
The L and N terminals is connected to power source to supply power to the CPM1A.
In the CPM1A, channel 0 is assigned as input and channel 10 is assigned as output. Each
channel consists of 16 bits starting from bit 00 to bit 15. For more information about the other
memory addresses, refer to Appendix C of this manual. You could find the internal Auxiliary,
Data Memory, Link Relays, Timers/Counters & Holding Relays areas, etc. For complete
understanding, you should read through this manual.
2-24
2. SYSTEM CONFIGURATION
PLC Electrical Wiring Example
INPUT WIRING (DC24V)
C70
C$M
CPM1
00
01
02
0,
04
03
01
08
09
0:
10
11
?24>'
Pasch<uttnn
%i"it +witch
@-P-A
Pro(i"it/
+ensor
%ight
+nnrrP
*eceiver
Interlock Contact
- 0>
C710
C$M
00
C$M
01
PIMP
~~!~~~~~~
___ ; _____
CPM1
C$M
0,
C$M
04
+~~~~~~~!>~~~~
C$M
02
?24>
<=
0>
0 3A Mntnr
CnntQrtnr
C
03
01
08
+B )/ ~
~~~~~
CPM1A General
The CPM1A is a compact PLC with 10, 20, 30 or 40 I/O terminals built into the CPU.
An Expansion I/O Unit can be connected to the 30 and 40 I/Opoint CPU to add an extra I/O
point.
Flash memory provides memory backup without a battery.
The CPM1A10CDRPCs can handle 2 interrupt inputs; the CPM1A 20CDR,
CPM1A30CDRand CPM1A40CDRPCs can handle 4 interrupt inputs. In addition to
normal input interrupts, the CPM1A has a counter mode that counts high-speed input
signals and triggers interrupts at fixed count multiples.
Quick-response inputs can detect input signals with a pulse width as short as 0.2 ms
regardless of their timing during the PLC cycle. Quick-response inputs and interrupt inputs
use the same input terminals.
CPM1A PLCs have a high-speed interval timer which can be set from 0.5 ms to 319,968 ms.
The timer can be set to trigger a single interrupt (one-shot mode) or repeat scheduled
interrupts (scheduled interrupt mode).
CPM1A PLCs have a high-speed counter that can be used in incremental mode or up/down
mode. The high-speed counter can be combined with input interrupts to perform target value
control or zone comparison control that isn't affected by the PLC's cycle time.
The CPM1A PLCs have 2 analog volume controls that can be used to make manual analog
settings manually. These can be used to externally set timing or counter values etc.
The CPM1A PLCs are compatible with the Host Link, which allows communications with
personal computers or Programmable Terminals.
An RS232C Adapter is used for 1to1 communications and an RS422 Adapter is used
for 1ton communications.
A data link can be created with the LR data area in another CPM1A, CPM1, CQM1, or
C200HS PLC. An RS232C Adapter is used to make the 1to1 connection.
Highspeed ManMachine Interface operations can be achieved by connecting the CPM1A
to the Programmable Terminal through the NT Link Interface. An RS 232 Adapter is used
for this connection.
The CPM1A uses the same Programming Consoles and Syswin Programming Software as
other Omron C-Series PLCs.
3-1
Analog setting 0
Analog setting 1
The following table shows which SR bits are allocated to the I/O terminals on the CPM1A's CPU
and Expansion I/O Unit.
Control
Analog volume control 0
Analog volume control 1
3-2
puts Interrupts
There are two input interrupts in the CPM1A 10 point I/O CPU and four in the 20 , 30and
40point I/O CPUs. Input interrupts are available in two modes: input interrupt mode and
counter mode.
1. When an interrupt occurs in Input Interrupt Mode, the main program shuts down irrelevant
of the cycle time, and the interrupt program is executed immediately.
2. In Counter Mode, external input signals are counted at high speed (up to 1 kHz) and an
interrupt is generated each time the count reaches the set value. When an interrupt occurs,
the main program shuts down and the interrupt program is executed. The set value can be
set from 0 to 65,535.
The following diagram shows the program execution when an interrupt
occurs. Main Program
MOV
ADD
Input interrupt
Interrupt Program
SEN00
MOV
FND
RFT
PC model
CPM1A 10CDR
CPM1A20CDR
CPM1A30CDR
CPM1A40CDR
Input bits
IR 00003 to IR 00004
IR 00003 to IR 00006
3-3
Overseeing
process
Program
execution
I/O
refreshing
Overseeing
process
Program
execution
I/O
refreshing
0.2 ms min
Input signal
(00003)
IR 00003
One cycle
The following table shows the input bits use for Quick-response input function.
Interval
Timer Function
CPM1A are equipped with an interval timer which can be set from 0.5 ms to 319,968 ms in
units of 0.1 ms. The timer can be set to trigger a single interrupt (one shot mode) or repeat
scheduled interrupts (scheduled interrupt mode).
Mode
One shot
Scheduled interrupt
PC model
CPM1AO10CDROO
Function
Generates a single interrupt the first time that the timer times out.
Generates an interrupt each time that the timer times out.
Input bits
IR 00003 to IR 00004
0.2 ms
CPM1AO20CDROO
IR 00003 to IR 00006
CPM1AO30CDROO
CPM1AO40CDROO
3-4
0 0000
00001
00002
High-s
Sensor
Rotary
Encoder
Inverter,
etc.
Mode
Incremental
Up/Down
A
phase
input
Count input
Input no. 00000
00001
--Bphase input
00002
Reset input
Zphase input
Input method
singlephase input
Phasedifference, 4x inputs
Count frequency
5.0 kHz
2.5 kHz
Count range
0 to 65535
32767 to 32767
Control
Target
Up to 16 target values and interrupt subroutine numbers
method
value
can be registered.
control
Zone comparison Up to 8 sets of upper and lower limit values, and
control
interrupt subroutine numbers can be registered.
Note In increment mode, this input (00001) can be used as an regular input.
3-5
CPM2A General
Expansion Unit can be connected to the 30, 40 or 60 I/O-point CPU to add extra I/O points.
Maximum of 3 expansion unit can be connected for a maximum I/O configuration of 120
points.
CPM2A PLCs have a high speed counter that can be used in Incremental mode, Pulse +
Direction input mode and Up/Down pulse input mode which allows a response frequency of
up to 20 kHz. The high speed counter can be also be used in Differential phase input mode
with a maximum response frequency of 5kHz.
CMP2A PLCs have 2 analog volume controls that can be used to make analog setting
manually, for instance, externally set control period or counter values etc.
3-6
Functions
The CPM2A provides the following kinds of interrupt processing.
Interrupt Inputs
Interrupt programs are executed when inputs to the CPU Unit 's built-in input points (00003
to 00006) are turned from OFF to ON. Interrupt subroutine numbers 000 to 003 are
allocated to input pints 00003 to 00006.
Interval Timer Interrupts
Interval timer interrupt programs are executed with the precision of 0.1ms. Interrupt
subroutine numbers 000 to 049 are allocated by instructions.
Count-up interrupts Using Interrupts Using Interrupt Inputs (Counter Mode)
Input signals to the CPU Unit's built-in input points (0003 to 00006 are counted at high
speed (2kHz), and the normal program is stopped and an interrupt program is executed.
Interrupt subroutine numbers 000 to 003 are allocated to input points 00003 to 00006.
Count-check Interrupts Using the High-speed Counter
Pulse inputs to the CPU Unit's built-in input points (00003 to 00006) are counted at high speed
(20 kHz/5 kHz), and an interrupt program is executed when the present values matches the
target value or falls within a given range. Interrupt subroutine numbers 000 to 049 are allocated
by instructions.
The order of priority for interrupts is as follows:
Interrupt inputs
Interval timer
High-speed counter
interrupts = count check interrupts
If an interrupt with a higher priority is generated. During interrupt program execution, the
interrupt that is currently being processed will be stopped and the new interrupt will be
processed first. Then the original interrupt will resumed after the higher-priority interrupt
processing has been completed.
If interrupts of the same priority are generated simultaneously, they will be processed in the
following order:
Interrupt inputs interrupt input 1 Interrupt input 2 Interrupt input 3 (including
count-up mode)
Interval timer interrupt High-speed counter interrupt.
3-7
Interrupt Inputs
By tuning the CPM2A CPU Unit's built-in input points from OFF to ON, the normal program can
be stopped and the interrupt program executed. The interrupt inputs are allocated to four points
(00003 to 0006).
Input Number Interrupt
Number
00003
0
00004
1
00005
2
00006
3
Subroutine
Number
000
001
002
003
Minimum input
signal width
0.05ms
Interrupt response
time
0.3 ms (from when
input turns ON
until program
execution)
3-8
1 point
Interrupt inputs
(counter mode)
4 points
No interrupts
Target value
comparison Interrupts
Count check
interrupts
Range comparison
interrupts
No interrupts
Count check
interrupts
The CPM2A provides both a built-in high-speed counter and built-in interrupt inputs.
3-9
Interrupt
Res ponse
frequency
2 kHz
Control Method
Count-up interrupts
3-10
Range com
Range com
parison condi parison condi
tion 2 satisfied tion 1 satisfied
Range com
parison condi
tion 1 satisfied
Count
0 to 65535
(0000 to
FFFF)
Interrupt
number
0
1
2
3
3-11
Response
frequency
5 kHz
20 kHz
Control Method
Target value comparison
interrupts
Range comparison interrupts
Input points not used for counter inputs can be used as ordinary
inputs. Exam ple of using High S peed Counter
The CPM2A's CPU Unit has one built-in channel for a high-speed counter that can count inputs
at a maximum of 20 kHz. Using the conjunction with the interrupt function enables target value
comparison control or range comparison control to be executed without deviating from the cycle
time.
Input
number
Input method
00000
00001
00002
In put Mode
Differential phase Pulse + direction Up/ down pulse
input mode
out puts
outputs
A-phase input
Count input
CW input
B-phase input
Direction input
CCW input
Z-phase input (Reset inputs)(See note 1.)
Differential phase Phase inputs
Phase inputs
input (4x)
5 kHz
20 kHz
20 kHz
-8388608 to 8388607
Words SR 248 (rightmost digit) and SR249 (leftmost digit)
Increment mode
Count input
See note 1.
Phase inputs
20 kHz
0 to 16777215
3-12
1. Input points not used for counter inputs can be used as ordinary inputs.
2. When not used for counter PV storage destination, these words can be used as ordinary IR
words.
The CPM2A has two pulse outputs. By means of a selection in the PLC setup, these outputs
can be used as two single-pulse outputs without acceleration and deceleration, two variable
duty ratio pulse outputs, or pulse outputs with trapezoidal acceleration/ deceleration, (one pulse
+ direction output and one up/down pulse output). The pulse output PV coordinate system can
also be specified in the PLC setup as either relative or absolute.
In order to utilize pulse outputs, it is necessary to use a CPU Unit with transistor outputs (either
a CPM2A-001:10T-0 or CPM2A-000 UT HD.
Execution Instruction
Out put
number
01000
01001
Outputfrequency
range
Pitch
Up.down frequency pitch
Start speed pitch
Out put mode
Duty ratio
Control
method
Numbers of
pulses
Movement s
pecification
Accel/
Decele s
pecification
Start S peed
s
pecification
Duty
s pecification
Single-phase pulse
outputs without
accel/ decel
Variable duty
ratio pulse
outputs
PULS(65) and
SPED(64)
Pulse output
0 (See note 1)
Pulse output
1 (See note 1)
PWM(-)
Pulse output 0
(See note 1)
Pulse output 1
(See note 1)
Pulse
output 0
0.01 to 10 kHz
10 Hz
--Continuous,
independent
1 to 16777215
0.1 to 999.9 Hz
0.1 Hz
--Continuous
0.01 to 10 kHz
10 Hz
10 Hz (See note 2.)
10 Hz
Continuous
0.01 to 10 kHz
10 Hz
10 Hz (See note2.)
10 Hz
Continuous, independent
--
1 to 16777215
1 to 16777215
50%
Yes
0 to 100%
No
50%
Yes
50%
Yes
No
No
Yes
Yes
No
No
Yes
Yes
No
Yes
No
No
Pulse output
Pulse
output 0
Direction
output
CW pulse
output
CCW pulse
output
3-13
Synchronized
Pulse Control
By combining the CPM2A's high-speed counter function with the pulse output function, the
output pulse frequency can be controlled as a specified multiple of the input pulse frequency.
A CPU Unit with transistor outputs (CPM2A-[][]CDT-D or CPM2A-[][]CDT1-S) is required in
order to use synchronized pulse control.
Input number
Input method
00000
00001
Input Mode
Differential
Pulse + direction
Up/ down pulse
phase in put
outputs
outputs
mode
A-phase input
Count input
CW input
B-phase input
Direction
CCW input
Differential phase
Single-phase input
Single-phase input
input (4z)
10 Hz to 500 Hz (accuracy 1 Hz)
20 Hz to 1 kHz (accuracy 1 Hz)
300 Hz to 20 kHz (accuracy 25 Hz)(See note 2.)
Pulse output 0
Pulse output 1
Single-phase output
10 Hz to 10 kHz (accuracy 10 Hz)
1 % to 1,000 % (Can be specified in units of 1 %)
10 ms
Increment mode
Count input
See note 1.
Single-phase input
3-14
I/O refresh
(00003)
Input terminal
00003
1 scan
3-15
The following table shows the relationships between interval timer interrupts and the CPM2A's
other functions.
Synchronized pulse control
Interrupt inputs
Interval timer interrupts
High speed counters
Interrupt inputs (counter mode)
Pulse outputs
Quick-response inputs
Input time
constant Clock
Note 1. Quick response input utilize the interrupt input function, so the same input number from the
00003 to 00006 cannot be assigned for both a quick response input and an interrupt input in
the PLC setup.
2. A quick-response input and an interrupt in counter mode cannot be assigned the same input
number in the PLC setup.
3. The input numbers allocated for quick quick-response inputs are 00003 to 00006. These
inputs can be set and operated as quick-response inputs.
4. Input time constants are disable for all inputs that are set as quick-response inputs.
Marco Function
The macro function allows a single subroutine (programming pattern) to be used by simply
changing the I/O word. An number of similar program sections can be managed with just one
subroutine, thereby greatly reducing the number of steps in the program and making the
program easier to understand.
To use a macro, call a subroutine by means of the MACRO instruction, MCRC(99), as shown
below, instead of SBS (91) (SUBROUTINE ENTRY).
MCRO(99) Subroutine No
First input word
First output word
3-16
Supply voltage
Operating voltage
range
Power consumption
Inrush current
External power
supply (AC type
only)
Insulation resistance
AC type
DC type
AC type
DC type
AC type
DC type
Power supply
voltage
Power supply
output capacity
Dielectric strength
Noise immunity
Vibration resistance
Shock resistance
Ambient temperature
Ambient Humidity (operating)
Ambient environment (operating)
Terminal screw size
Power supply holding time
CPU weight
AC type
DC type
60 VA max .
20 W max .
60 A max .
300 mA
Note : The specifications of the Expansion I/O Unit are the same as for the CPU except that the power is
supplied from the CPU and the weight is 300g .
4-1
Characteristics
Item
Control method
I/O control method
Programming language
Instruction length
Types of instructions
Execution time
Program capacity
Maximum
CPU only
I/O points
With
Expansio
n I/O unit
Input bits
Output bits
Work bits (IR area)
Special bits (SR area)
Temporary bits (TR area)
Holding bits (HR area)
Auxiliary bits (AR area)
Link bits (LR area)
Timers/Counters
1 0-point I/O
20-point I/O
3 0-point I/O
40-point I/O
4-2
IR area 1
Input area
Output area
Work area
SR area
TR area
HR area 2
AR area 2
LR area 1
Timer/Counter area 2
DM area
Read/write2
Error log 4
Readonly 4
PC Setup 4
Note:
Words
Bits
Function
IR 000 to IR 009
(10 words)
IR 010 to IR 019
(10 words)
IR 200 to IR 231
(32 words)
SR 232 to SR
255
(24 words)
___
IR 00000 to IR 00915
(160 bits)
IR 01000 to IR 01915
(160 bits)
IR 20000 to IR 23115
(512 bits)
SR 23200 to SR 25515
(384 bits)
TR 0 to TR 7
(8 bits)
HR 0000 to HR 1915
(320 bits)
AR 0000 to HR 1515
(256 bits)
LR 00000 to LR1515
(256 bits)
___
HR 00 to HR 19
(20 words)
AR 00 to HR 15
(16 words)
LR 00 to LR 15
(16 words)
TC 000 to TC 127
(timer/counter numbers) 3
DM 0000 to DM
___
0999
DM 1022 to DM
1023
(1,002 words)
DM 1000 to DM
1021
(22 words)
DM 6144 to DM
6599
(456 words)
DM 6600 to DM
6655
(56 words)
___
___
1 . IR and LR bits that are not used for their allocated functions can be used as work bits
2 . The contents of the HR area, LR area, Counter area, and read/write DM area are backed up by a
capacitor. At 25 oC, the capacitor will back up memory for 20 days.
3 . When accessing a PV, TC numbers are used as word data; when accessing Completing Flags, they
are used as bit data.
4 . Data in DM6144 to DM6655 cannot be overwritten from the program, but they can be changed from a
Peripheral Device.
4_3
Inputs
Outputs
10
6 points:
00000 to 00005
4 points:
01000 to 01003
---
---
20
12 points:
00000 to 00011
8 points:
01000 to 01007
---
---
30
18 points:
000000 to 00011
00100 to 00105
24 points:
00000 to 00011
00100 to 00111
12 points:
01000 to 01007
01100 to 01103
16 points:
01000 to 01007
01100 to 01107
36 points:
00200 to 00211
00300 to 00311
00400 to 00411
24 points:
01200 to 01207
01300 to 01307
01400 to 01407
40
0
0
0
0
0
0
0
0
0
1
0
1
0
0
0
Power
Supply
AC
DC
AC
DC
AC
DC
AC
DC
Model Number
CPM1A-10CDR-A
CPM1A-10CDR-D
CPM1A-20CDR-A
CPM1A-20CDR-D
CPM1A-30CDR-A
CPM1A-30CDR-D
CPM1A-40CDR-A
CPM1A-40CDR-D
INPUT Bit No
000 0 0 0 00 0 0
000 0 0 0 00 0 0
000 0 0 0 00 0 0
000 0 0 0 00 1 1
234 5 6 7 89 0 1
0 0 0 0 0 0 0
1 1 1 1 1 1 1
0 0 0 0 0 0 0
0 0 0 0 0 0 0
1 2 3 4 5 6 7
OUTPUT Bit No
4-4
Item
30-point I/O
40-point I/O
60-point I/O
AC type
100 to 240 VAC, 50/60 H
DC type
24 VDC
Operating voltage
AC type
85 to 264 VAC
range
DC type
20 .4 to 26 .4VDC
60 VA max .
Power consumption AC type
DC type
20 W max .
Inrush current
AC type
60 A max .
DC type
20 A max .
External power
Supply voltage 24 VDC
supply (AC type
Output capacity 300 mA
only)
(When the external power supply provides an overcurrent or
is short circuited, the external power supply voltage will drop
but the PC will continue operation .)
20 Mmin . (at 500 VDC) between the external AC
Insulation resistance
terminals and protective earth terminals .
Dielectric strength
2,300 VAC 50/60 Hz for 1 min between the external AC and
protective earth terminals, leakage current: 10 mA max .
1,500 Vpp, pulse width: 0 .1 to 1 s, rise time: 1 ns (via
Noise immunity
noise simulation)
10 to 57 Hz, 0 .075mm amplitude, 57 to 150 Hz,
Vibration resistance
acceleration: 9 .8 m/s2 (1G) in X, Y and Z directions for 80
minutes each (i .e . swept for 8 minutes, 10 times)
Shock resistance
147 m/s2 (20G) three times each in X, Y and Z directions
Ambient temperature
Operating: 0 0 to 55 0C
Storage: 20 0 to 75 0C
Humidity
10% to 90% (with no condensation)
Environment
With no corrosive gas
Terminal screw size
M3
AC type: 10 ms min . DC type: 2 ms min .
Power supply holding time
(A power interruption occurs if power
falls below 85% of the rated voltage for
longer than the power interruption time .)
CPU weight
AC type
800 g max .
900 g max .
1,100 g max .
DC type
700 g max .
800 g max .
1,000 g max .
Expansion I/O Unit weight
Units with 20 I/O points:
300g max .
Units with 8 output points:
250g max .
Units with 8 input points:
200g max .
Analog I/O Units:
200g max .
CompoBus/S I/O Link Units:
200g max .
4-5
Characteristics
Item
Control method
I/O control method
Programming language
Instruction length
Types of instructions
Execution time
Program capacity
CPU only
Max . I/O
points
With
Expansio
n I/O Unit
Input bits
Output bits
Work bits (IR area)
Special bits (SR area)
Temporary bits (TR area)
Holding bits (HR area)
Auxiliary bits (AR area)
Link bits (LR area)
Timers/Counters
Data memory
Interrupt processing
Interval timer interrupts
High-Speed Counter
(Hardware counter)
Specification
4-6
Interrupt Inputs
(Counter
mode)
Pulse Output
Specification
Four inputs (share by the external interrupt inputs (counter mode) and
the quick-response inputs .)
Counters interrupts: 4 (shared by the external interrupt inputs and
quick-response inputs .
Two points with no acceleration/deceleration, 10 Hz to 10 kHz each,
and no direction control .
One point with waveform acceleration/deceleration, 10 Hz to 10 kHz,
and direction control .
Two points with variable duty-ration outputs .
4-7
IR area 1
Input area
Output area
Work area
SR area
Words
Bits
IR 000 to IR 009
(10 words)
IR 010 to IR 019
(10 words)
IR 020 to IR 049,
IR 200 to IR 231
(58 words)
SR 228 to SR 255
(28 words)
IR 00000 to IR 00915
(160 bits)
IR 01000 to IR 01915
(160 bits)
IR 02000 to IR 04915,
IR 20000 to IR 23115
(928 bits)
SR 22800 to SR
25515
(440 bits)
TR 0 to TR 7
(8 bits)
HR 0000 to HR 1915
(320 bits)
TR area
---
HR area 2
HR 00 to HR 19
(20 words)
AR area 2
AR 00 to HR
AR 0000 to HR 2315
23 (23 words)
(384 bits)
LR 00 to LR 15
LR 00000 to LR1515
(16 words)
(256 bits)
TC 000 to TC 225
(timer/counter numbers) 3
DM 0000 to
--DM 1999
DM 2022 to
DM 2047
(2,026
words)
--DM
2000 to
DM 2021
(22 words)
LR area 1
Timer/Counter area 2
DM area
Read/write2
Error log 4
-----
Function
1 . IR and LR bits that area not used for their allocated function can be used as work bits.
2 . The contents of the HR area, LR area, Counter area, and read/write DM are backed up by
the CPU Unit's battery. If the battery is removed or fails, the content of these area will be lost
and unstable.
3 . When a TC numbers is used as a word operand, the timer or counter PV is accessed; when
used as bit operand, its Completion Flag is accessed.
4 . Data is DM 6144 to DM 6655 cannot be overwrite from the program, but they can be
changed from a Programming Device.
5 . The program and data in DM 6144 to DM 6655 are stored in flash memory.
4-8
Inputs
outputs
Power
Supply
Model
20
12 points
8 points
DC
8
8
8 points
0 point
0 point
8 points
DC
DC
16
2 Analog
8 points
1 Analog
8 points
DC
DC
CPM1A-EDR
CPM1A-EDT
CPM1A-EDT1
CPM1A-8ED
CPM1A-8ER
CPM1A-8ET
CPM1A-8ET1
CPM1A-MAD01
CPM1A-SRT21
CPU Unit
I/O
CPU
Unit
Terminals
CPM2A30CD 18
inputs
000
00 to
00011 (IR
00000 to
IR 00011)
A CPM1A-20ED Expansion I/O unit (12 inputs and 8 outputs) is connected to a CPU unit
with 30 I/O points .
Unit
1 CPU Unit
(CPM2A-30CD - )
2 Expansion I/O unit
(CPM1A-20ED
)
IR 00000 to IR 00011
and IR 00100 to IR
00105
IR 00200 to IR 00211
Example 2:
Three Expansion Unit are connected to a CPU Unit with 30 I/O points
Unit
1 CPU Unit
(CPM2A-30CD - )
2 Expansion I/O unit
(CPM1A-20ED
)
3 Analog I/O unit
(CPM1A-MAD01)
4 Expansion I/O Unit
(CPM1A-ED
)
IR 00000 to IR 00011
and IR 00100 to IR
00105
IR 00200 to IR 00211
IR 01300 to IR 01315
IR 04100 to IR 01415
4-10
Three Expansion Unit are connected to a CPU Unit with 30 I/O points
Unit
1 CPU Unit
(CPM2A-30CD - )
2 Expansion I/O unit
(CPM1A-20ED
)
3 Expansion I/O unit
(CPM1A-MAD01)
4 Expansion I/O Unit
(CPM1A-8ER/ET/ET1)
Note
None*
None*
IR 01300 to IR 01037
If an Expansion I/O Unit does not have inputs, no input word will be allocated. The same is true
for outputs.
4-11
Programming Console
Before we start to program the PLC, lets familiarize ourselves with the essential operations of
the keyboard and initial settings required .
PRO27
RUN
MONITOR
PROGRAM
FUN
OR
CNT
TR
LR
HR
LD
OUT
TIM
DM
CH
CONT
#
EXT
CHG
SRCH
PLAY
SET
DEL
MONTR
REC
RESET
INS
EAR
SHIFT
NOT
AND
SFT
4
1
CLR
VER
WRITE
MIC
4-12
Keyboard
Command
Operation
Numerical
keys
SFT
NOT
AND
OR
CNT
TR
LR
LD
OUT
TIM
DM
CH
EXT
CHG
P L A Y DEL
SET
REC
INS
RESET
E 4
B 1
SHIFT
FUN
CLR
VER
HR
CONT
G
SR C H
M O N TR
WRITE
4-13
Password Input
The PLC has a password control to prevent unauthorized access to its program. The PLC
always prompts you for the password when power is first applied or after programming console
is installed when the PLC is in the operation mode. To enter the password, press the CLR,
MONTR, CLR keys.
<PROGRAM>
PASSWORD!
<PROGRAM>
CLR
MONTR
CLR
4-14
Pressed the CLR key until you see 0000 displayed on the programming console
CLR
CLR
MONTR
PLAY
NOT
REC
Press the HR, CNT or DM keys before pressing MONTR key if you want to preserve any
of these data areas.
4-15
Note:SYSWIN is provided without token or dongle only to program CPM1 and CPM1A. For C _series,
and CV series PLCs, token or dongle is necessary.
Command
The CPM1A or CPM2A can be connected to the PC via an RS232C cable. One end of the RS_
232C is connected to the PC serial port (either 9 pin or 25 pin adapter), while the other end of
the cable which is to be connected to the RS232C adapter attached to the CPM1Aor CPM2A.
The DIP switch of the adapter must be set to Host in order to link to the PC. The cable can also
be
connected to CPM2A through the built_in RS _232C port provided.
Response
Dip Switch
Set to Host
RS232C
Adapter
RS232C Connector
CPM1A CPU
Configuration
IBM PC/AT or Compatible
Pin
Signal
FG
1
RD
2
SD
3
DIR
4
SG
5
DSR
6
RS
7
CS
8
___
9
RS232C
Pin
1
2
3
4
5
6
7
8
9
Signal
FG
SD
RD
RS
CS
___
___
___
SG
5-1
The CPM1A training kit comes with three SYSWIN installation disks. The SYSWIN program can
be setup in Windows 3.1 or 3.11, Window 95,98 or Window NT 4.0. To install, select RUN
from the START menu. The following dialog box will appear, enter a:\setup.exe in the
command line, click OK to execute and follow the directions as they appear on the screen.
Once installation is completed, two Program Group icons will appear in the Program Manager.
The SYSWIN samples contains sample programs whereas SYSWIN contains the necessary
program to run SYSWIN. To execute SYSWIN, double click on the SYSWIN icon.
5-2
Select New Project from File menu. The New Project Setup dialog box will appear as shown
below. Make all the selections as shown below. (The default values should be correct).
5-3
DK2
Relay 1
Instruction Codes
Relay 1
000.00
000.01
010.00
Connection
Diagram
010.00
Ladder
Program
Address
00000
00001
00002
00003
00004
00005
00006
00007
Instruction
Data
LD
OR
AND NOT
OUT
END
000.00
010.00
000.01
010.00
Select the symbol of ladder program ([F2], normally open contact) from the drawing Toolbox on
side of the SYSWIN window. Click on the symbol and move the symbol to anywhere in the
window and click to release. The address of the contact must be specified and key into the
address dialog box. In this example, 000.00 is entered.
The address of the specific contact will be labeled on top of each component as shown.
5-4
Drawing
Tool Box
5-5
Add __________________________
Network
Note that each line of the ladder program is classified as a network. So in order to create another
line, click the icon Add Network (Shift+F6) from the Toolbox to insert another network. The
dialog box shown below appear when icon is clicked. Select below current network and click OK.
The same program will end with an end instruction line. In order to insert the end command, click
on the FUN icon on side of the window, move it to the location to end the program, click to
execute. A function dialog box appear, requiring you to enter the function number to execute.
5-6
After completing the ladder diagram, the project must be saved. Select Save Project in the file
menu, a save project dialog box appear as shown below. Enter the file name e.g. test.swp in the
file name box with a .swp extension. Click OK to start saving.
5-7
Note:All application examples in this manual can either be programmed using window based SYSWIN
Software or the Programming Console.
5-8
Overview of Instructions
The CPM1A has a large selection of programming instructions that allows for easy
programming of complicated control processes. The instructions explained in this section
includes ladder diagram symbols and the mnemonic codes for the instructions. Application
examples are also provided.
FUN
LD
AND
OR
OUT
Numerous special
Application command called
FUNctions may be input
using this key.
NOT
HR
Designates Holding
Relays.
HR
Designates Temporary
Relays.
OR allows points to be
Connected together, to
Form parallel circuit
SFT
TheOUTput
commands.
TIM
CNT
6-1
TheTIMersare
controlusingthis
command.
TheCOUNTersare
controledusingthis
command.
Devices
Output
Devices
00000
00001
Start Pb.
Stop Pb.
01000
Motor
Circuit Diagr
ST ART
STOP
INPUT
OUTPUT
MC
Load Power
Supply
6-2
Mnemonic Codes
Address
Instruction
0000
LR
0001
OR
0002
AND NOT
0003
OUT
0004
END(01)
00001
01000
01000
Data
00000
01000
00001
01000
END
Note: This program enables the output 01000 to stay "ON" despite the status of the input 00000
which triggered it. This is often desirable in continuous output operations which begin with
only an instantaneous ON input.
2.
CLR
3.
OR
4.
AND
5.
OUT
6.
FUN
LD
A
0
WRITE
B
1
NOT
A
0
A
0
WRITE
A
0
WRITE
WRITE
Note: All instructions will only be stored in the PLC memory after the WRITE key is pressed and
every program must have an END (FUN 01) instruction. All examples given in this manual
WRITE
will follow the same procedure of entry and henceforth the program entry procedure will not
be mention again.
0002 READ
AND NOT
0004 READ
END(01)
0001
(0.01KW)
To execute the program that has stored in the PLC, set the Mode Selector switch to
RUN or MONITOR mode.
RECALLING A PROGRAM
To search for and confirm a particular command in program, perform the following
keystrokes on the console.
OUT
CLR
CLR
A
0
A
0
A
0
SRCH
0003 SRCH
OUT
01000
This confirms the OUT 01000 instruction has been written into the PLC memory
address 00003.
Note: If the above operations are performed during MONITOR or RUN mode, the state
of each address can be monitored.
6-4
00002
Mnemonic codes
00004
01000
00003
00005
Mnemonic codes
Address
Instruction
00002 00003
01001
00004 00005
Data
00000
00001
LD
AND-NOT
00002
00003
00002
LD
00004
00003
AND
00005
00004
OR-LD
00005
OUT
01001
00000
LD
00002
00001
OR
00003
00002
LD
00004
00004
AND-LD
00005
OUT
01000
6 -5
Program Organisation
""""" """"1
""""!
""""*
"""",
""""7
1""""
"1""" "1""1
""""6
""!""
To organi8e the code for the circuit shown abo e
.1/ +i ide the circuit into smaller bloc2s 9a: to 9f:
.!/ Program each bloc2 from top to bottom 1 then from left to right
9a:
""""" """"1
9e:
"""", """"7
9N
"1""" "1""1
9d:
""""! """"*
91:
""""6
~
9c:
""!""
,
*
!
9a:
""""" """"1
"1""" "1""1
$+ """""
A(+
""""1
&%
$+
$+ "1"""
A(+ "1""1
""!""
:
c
9
9
d
:
9e:
""", """7
7
$+ """,
A(+ """7
"""! """*
9:
A(+ """!
A(+ (&T
"""*
"""6
&% """6
A(+
$+
""!""
&)T 1""""
6-6
Mnemonic codes
Address
Instruction
00001
Data
01000
00002 00003
00004
00005
00006
00007
6-7
Forced Set/Reset
Forcing outputs or other parts of the program ON or OFF irrespective to the
Program is referred to as FORCED SET/RESET.
FORCED
PLAY
REC
OR
SET
RESET
Turns ON
Turns OFF
Press
CLR
MONTR
OUT
PLAY
SET
6-8
Program Search
The program can be searched for occurrences of any designated instruction or data area bit
address used in instruction. Searches can be performed from any currently displayed address
or from a cleared display.
<Instruction>
CLR
SHIFT
CONT
,
<Address>
SRCH
SRCH
TIM
CNT
Once an occurrence of an instruction or bit address has been found, any additional
occurrences of the same instruction or bit can be found by pressing SRCH again. SRCH'G
will be displayed while a search is in progress. When the first word of a multiword instruction
is displayed for a search operation, the other words of the instruction can be displayed by
pressing the DOWN key before continuing the search.
If Program Memory is read in RUN or MONITOR mode, the ON/OFF status of any
displayed will also be shown.
H
R
CLR
SHIFT
CONT
0000
SR CH
SR CH
SRCH
0000
CONT
00005
00005
00005
0000
E xa mpl e :
CLR
Instruction Searches
0000
LD
LD
0200
LD
00000
SRCH
00000
SRCH
0202
LD
00000
SRCH
1082
END(01)
SRCH
SRCH
0000
0100
CLR
B
0
1
0100
TIM
001
0203
TIM
SRCH
0203
TIM DATA
001
#0123
SRCH
6-10
<Instruction>
INS
To delete an instruction, display the instruction to be deleted and press DEL and the UP key.
CAUTION: Be careful not to delete instructions inadvertently. Once deleted, there is no way to recover
without reinputting the instruction again.
<Instruction
currently
displayed>
DEL
When an instruction(s) is inserted or deleted, all address in Program Memory following the
operation are adjusted automaticaly so that there are no blank address and no
unaddressed instructions.
6-11
The following mnemonic code shows the changes that are achieved in a program through
insertion and deletion.
Before Insertion
Addr Instruction
0000 LD
0001 AND
0002 LD
0003 AND NOT
0004 OR LD
0005 AND
0006 AND NOT
0007 OUT
0008 END(01)
After Insertion
Addr
Instruction
0000
LD
0001
AND
0002
LD
0003
AND NOT
0004
OR LD
0005
AND
0006
AND NOT
0007
AND
0008
OUT
0009
END(01)
Data
00000
00001
01000
00002
00003
00004
01000
Data
00000
00001
01000
00002
00003
00004
00005
01000
0000
CLR
OUT
0000
OUT
00000
0000
OUT
01000
SRCH
0007 SRCH
OUT
01000
AND
0007
AND
00000
INS
0007
AND
00005
0007 I NS E RT ?
AND
00005
Fine the
address
prior to
the
insertion
point
Insert
the
instruction
00005
6-12
CLN
AND
0000
0000
AND
00000
0000
AND NOT
00000
0000
AND NOT
00004
SDCIT
0006 SRCH
AND NOT
00004
DEL
0006 DE LETE?
AND NOT
00004
NOT
E
0000 LD
00000
0000
Fine the
instruction
That
requires
deletion
Ensure that
this is the
instruction to
be deleted
0001 AND
00001
0002 LD
01000
0004 OR LD
0005 AND
00003
0007 AND
00005
0008 OUT
01000
0009 END(01)
6-1
Number Of Contacts
The number of contacts used in a rung is limited only by memory size. As many contacts as
required can be connected by means of the AND and the AND NOT keys.
Logic line
00000
00001 00002
Logic line
Logic line
00000
10000
00001
00002
00000
10000
00001
00002
6-14
Bit Monitor
Monitor the status of a particular bit. It is possible in any PLC operation mode.
Example :
SHIFT
Note :
CONT
a)bPress
the
it
CLR
0000
MONTR
0000
" ON
or
b) If the PLC is in PROGRAM or MONITOR mode, the bit's status can be changed
using the FORCE SET / RESET operation.
Word Monitor
Monitor the content of a particular word. It is possible in any operation mode.
Example :
0000
CLR
SHIFT
CH
LR
00000
CHANNEL LR 01
CL01
1E3B
MONTR
Note :
a) Press the
or
word.
b) If the PLC is in PROGRAM or MONITOR mode, the word's content can be
changed using the HEX/DEC Data Modification operation. (See page 72)
6-15
CLR
Step 1
B
TIM
Step 2
CONT
Srep 3
S HIFT
Step 4
DM
MONTR
MONTR
MONTR
T001
0100
00001 T001
A OFF 0100
D0010 00001 T001
1 2 3 4 A OFF 0100
a) If 4 or more bits and words are being monitored, the bits and words that do not appear
on the display can be displayed by pressing the
MONTR
CLR
SHIFT
key to stop monitoring the leftmost bit or word and clear it from
CLR
6-16
Differentiation Monitor
Monitor the up or down differentiation status of a particular bit. It is possible in any PLC
operation mode. (Differential mode is where a contact is turned On/Off for one scan only).
Example :
0000
CLR
B
CONT
SHIFT
MONTR
00001
" OFF
Up-differentiation monitoring
SHIFT
00001
U@OFF
Down-differentiation monitoring
SHIFT
00001
D@OFF
The buzzer will sound when the specified bit goes from OFF to ON
(for up-differentiation) or from ON to OFF (for down
differentiation)
00001
" ON
Monitor the ON/OFF status of any word's 16 bits. It is possible in any PLC operating mode.
Example :
0000
C100
1A2B
CLR
SHIFT
CH
SHIFT
b) Press
bits.
B inary Monitor
or
C100 MONTR
0001101000101011
OR
M ONTR
M ONTR
C100 MONTR
000S1010001R1011
Note : a) The status of displayed bit can be changed at this point by using Binary Data Modification.
Example :
D00 00 T 00 0
0119
0100
PRES VAL ?
D0000 0119 ????
CHG
WRITE
D0000 T000
0200 0100
This operation is used to change the status of a word's bits when the word is being
monitored in 16-bit format, using the Binary monitor. It is possible in MONITOR or
PROGRAM mode only.
Example :
C100
0555
will move one bit to the right after one of the keys is pressed.
c) Use the
PLAY
SHIFT
SET
and S H I F T
S HIFT
REC
keys to force-set or
MONTR
RESET
C100
0000010101010101
CHG
C100 CHG ?
000010101010101
C100 CHG ?
10 0010101010101
SHIFT
PLAY
SET
WRITE
Note :
and
a) Use the
b) Use the
and
C100 CHG ?
100 10101010101
C100 MONTR
100S010101010101
force-reset a bit's status. The NOT key will clear force-set or force-reset status.
B inary
Data
Modificati
on
Mnemonic codes
Address
Instruction
00000
LD
00001
TIM
#0025
TI M0
10.00
00002
00003
00004
LD
OUT
END(01)
Data
00000
000
#0025
TIM 000
01000
Timing diagram
input
00000
5.0 sec
output
01000
6-19
Host
Player 1
Player 2
Player 3
Buzzer
I/O Assignment
Input
00000
00001
00002
00003
Device
PB1
PB2
PB3
RST (reset)
Output
01000
01001
01002
01003
Device
Buzzer
Player 1 light
Player 2 light
Player 3 light
By Using SYSWIN Programming Software, the design of the buzzer control ladder diagram is
shown as follow.
6-20
010.02
PR1
000.01
PR2
010.03
005.01
PLAYER 2
PLAYER
RESET
010.01
010.0
PLAYER 1
TIM000
005.00
PLAYER
000.02
010.02
010.01
PR
005.00
PLAYER 2
PLAYER 1
Network 2 - Buzzer
ON Buzzer when any switch is pressed and timer will cut the buzzer after specified time
005.00
010.00
RI JZZER
TIM
000
#0100
Network 3 - Player 1
Player 1 Network
000.00
PR1
010.01
000.0
010.01
010.02
010.01
PLAYER 2
PLAYER 1
010.01
010.01
000.0
010.02
PLAYER 1
PLAYER 1
RST
PLAYER 2
010.01
010.02
000.0
PLAYER 1
PLAYER 2
RST
PLAYER 1
PLAYER 1
Network 4 - player 2
Player 2 Network
000.01
PR2
010.02
PLAYER 2
Network 5 - Player
Player 3 Network
000.02
PR
010.0
RST
010.0
PLAYER
PLAYER
Network 6 - Reset
Reset for the Game
000.0
005.01
RST
RESET
Network 7
END(01)
6-21
Devices
Motor
Timing diagram
Ladder diagram
00000(Switch)
TIM000
#0050
TIM001
01 000
01 000
01 000 00000(Switch)
Input
TIM001
#0050
Devices
Address
00000
00001
In struction
LD
TIM
00002
00003
00004
00005
00006
00007
00008
LD
OR
AND-NOT
OUT
LD
AND-NOT
TIM
00009
END(01)
Data
00000
000
#0050
TIM000
01000
TIM0001
01000
01000
00000
001
#0050
00000
Switch
6-22
The timer's present value can be monitored from the programming console by pressing:
CLR
A
0
TIM
MONTR
SHIFT
00000
CONT
MONTR
01000
CLR
A
0
0001 TIM
D AT A # 0050
2)
3)
TIM
SRCH
CHG
WRITE
One-shot Circuit
1 000
1000
TIM0
TIM1
#25
1001
Off-delay Circuit
1 001
TIM1
6-23
00002
Count
Input
Mnemonic code
Address
In struction
0000
LD
0001
LD
0002
CNT
CP
CNT 001
Reset
10 counts
CNT 001
0003
0004
0005
LD
OUT
END(01)
Data
00000
00002
001
#0010
CNT 001
01002
01002
END
Note :
The counter number must not be duplicated with the timer number since both share the same
data area within the PLC memory. The counter;s present value can be monitored from the
programming console by pressing:
CLR
CNT
MONTR
SHIFT
00000
CONT
MONTR
01002
CLR
2)
3)
CNT
C
2
B
/
#0010
SRCH
CHG
W RI TE
6-24
Mnemonic codes
Ladder diagram
00000
00000
Count
Innut
CP
CNT 001
Reset
R #0100
CNT 001
CNT 001
00000
Count
Innut C P
CNT 002
Reset
#0200
CNT 002
01000
00000
Count
Innut
Reset
CP
CNT 001
R #0100
CNT 001
CNT 001
00000
Count
Innut
Reset
CP
CNT 002
R #0200
Mnemonic codes
Address
00000
00001
00002
Instruction
LD
AND-NOT
TIM
00003
00004
00005
LD
LD
CNT
00006
00007
LD
OUT
CNT 002
01000
A
ddress Instruction Data
Data
00000
TIM 001
001
#6000
TIM001
00001
002
#6000
CNT 002
01000
00000
LD
00000
00001
AND
00001
00002
LD-NOT
TIM 000
00003
OR
CNT 001
00004
CNT
001
#0100
00005
LD
CNT001
00006
LD-NOT
00000
00007
CNT
002
#0200
00008
LD
CNT002
00009
OUT
01000
00010
END(01)
6-25
Counter
Hold
Hold
Network 2 - 1 second timer
TIM
200.00
TIM002
Hold
Timer 2
001
Timer 1
#0010
TIM002
T II M
0 0 2M
002
Timer 2
#0020
3 - 2 second timer
200.00
Hold
Timer 2
Network 4 - Counter
Preset Counter at 10
200.00
TIM001
Hold
200.00
CNT
000
Counter
Hold
#0010
TIM001
01 0.00
Hold
Timer1
Flicker
Network 6 - End
END(01)
6-26
6.
The mnemonic list for the example program ram is shown in the 000 following table.
00000
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
Instruction
LR
OR
AND NOT CNT
OUT
LD
AND NOT TIM
TIM
#
LD
AND NOT TIM
TIM
#
LD
AND NOT
LD NOT
CNT
#
LD
Data
00000
20000
000
20000
20000
002
001
0010
20000
002
002
0020
20000
TIM 001
20000
000
0010
20000
Remarks
6 -2 7
00015
00016
00017
001
01000
---
(10 counts)
(6) END (001) instruction
i l
PB1
PB2
(00000) START
sT0p
0
ii)
0
( 1000)
APPLE
CONVEYOR
PART
SENSOR
c,s401
,I V
0
SE1 (00
U
.s
40101.1111:
2
SE
BOX
4 4
4i v ,
,,,:_,.
ke>
40.111P.
.-_-.--ft--, -''._--II-Y.',----p,:.
-_z____-_----4,.:
-,.--_Z--
:101Fw
4.
,
, g N
1 , > , = .
' * "- - , : ;: % : - - - < , .- - P ,, , . _, 4,. ,-, -',-, ,z, Z
,Z-"=,,k
(1001)
BOX
CONVEYOR
,,.-
,---:W;.,:,:-'
O peration
When PB1 (START Push Botton) is pressed, the box conveyor moves. Upon detection of box
present, the box conveyor stops and the Apple conveyor starts. Part sensor will count for 10 apples.
Apple conveyor stops and box conveyor starts again. Counter will be reset and operation repeats
until PB2 (STOP Push Button) is pressed.
00000
Input
00001
00002
00003
20000
CNT010
01000
01001
Output
Devices
01000
01001
Apple Conveyor
Box Conveyor
Devices
00000
00001
00002
00003
6-29
30
000.00
000.01
200.00
PR1
PR2
RUN
200.00
RUN
010.01
010.00
RUN
RoxCon
CONvvR
Network 3 - Counter
Counter preset at 10
CNT
000.02
SE1
010
000.03
#0010
SE2
000.03
200.00
RUN
010.01
Roxcon
SE2
Network 5 - END
E ND (01 )
Address
0000
0001
0002
0003
0004
0005
0006
0007
Instruction
LD
OR
AND NOT
OUT
LD
AND NOT
OUT
LD
Data
00000
20000
00001
20000
20000
01001
01000
00002
Address
0008
0009
instruction
LD NOT
CNT
0010
0011
0012
0013
0014
LD CNT
OR NOT
AND
OUT
END (01)
Data
00003
010
#0010
010
00003
20000
01001
6-30
Sensor
Solenoid
Conveyor
Input
00000
Device
Sensor
Others
CNT 047 Product counter
TIM 000 Solenoid energizer timer
Output
01000
01001
Device
Conveyor
Solenoid
6-31
S
CNT
047
#
R
CNT
047
TIM 000
#0020
6-32
Stop
Manual
Re ver s e
Forward
Aut o S t ar t
Indication Box
Manual
Auto
Auto-start
LS 1
(5)
() PBS
7
LS2
(6)
I/O Assignments
Output
1000
1001
1002
1003
1004
Devic e
Auto Indicator
Manual Indicator
Motor Forward
Motor Rever se
Auto Start Indicator
Procedur
1.
Manual Operation
1.1 When SW1 i s ON, Motor moves forward. It can be stopped by SW2. When the drill
touches LS2, the Motor i s cut-off.
1.2 When SW3 i s ON, Motor moves in reverse. It can be stopped by SW2. When he drill
touche LS1, the Motor i s cut-off.
2.
Auto-cycle
2.1 When PB and LS1 i s ON, the Motor moves forward until LS2 i s activated. The Timer then
starts timing down. The Motor reverses when the timer reaches 2 seconds. When it
returns to LS1 position, the cycle i s repeated.
Input
D evice
00000
Auto Switch
00001
Manual
00002
00003
00004
00005
00006
00007
6-33
Manual
Manu
- Auto indication
Network 2
000.00
010.00
Auto
Autom
Manu
Forw sw
Stonsw
TS2
Rever se
Stonsw
TS1
Manuforw
LS1
Stonsw
Auto start
005.10
000.03
005.09
Stonsw
Motorforw
Rev
Manuforw
005.06
Manu
Rev
005.07
Autom
005.0R
PR
Confirmforw
Network 6
- Motor forward
005.0R
000.05
Auto start
I .S1
Confirmforw
005.09
Motorforw
Network 7
- Confirm forward
010.00
Autom
005.10
Confirmforw
000.06
I S2
000.05
000.03
T.S1
Stonsw
005.10
Confirmforw
TIM
000
d e la y
N0020
6-34
005.11
Delay
Motorrever
010.02
Motorforw
005.06
Motorforw
Motorforw
010.03
Motorrever se
Motorrever se
005. 07
Rev
Network 11 - Autostart
Autostart indicator
005.0s
Auto start
Network 12 - End
010.04
Autostirtindi
N
E
(0
)D
1
6-35
Address
0000
0001
0002
0003
Instruction
LD
LD
KEEP(11)
END(01)
Data
00000
00001
10000
END(01)
Input
DIFU
DIFD
6-36
Control Panel
PB1
(0)
T LB 1
(5)
PB2
(1)
PB3
(2)
TLB2
(6)
S TAR T
STOP
RESET
PL
(1004)
MV 2
END
M
BZ
(1005)
BUZZER
I/O Assignments
Input
00000
00001
00002
00005
00006
Devic e
Start Button (PB1)
Stop Button (PB2)
Re set Button (PB3)
Upper Level Switch (TLB1)
Lower Level Switch (TLB2)
Output
01000
01001
01002
01004
01005
D evice
Water Supply Valve (MV1)
Drain Valve (MV2)
Stirring Motor (M)
End Indicator
Buzzer
Procedur
1. A s the PB1 i s pressed, MV1 opens and the water begins to fill the tank. At the same
time, the stirring motor M starts operations.
2. When the water level passes TLB2 and reaches TLB1, the MV1 closes and the stirring
motor stops.
3. Next, MV2 opens and starts draining the water. When the water levels drops below
TLB2, MV2 closes.
4. When the cycle of operation has repeated four times, the operation END indicator
illuminates, and the filling and draining operation will not restart even if PB1 i s pressed.
6-37
- Fill / Draining
010_05
Reach Stop
010_04
MV1
200_02
000_01
010_00
MV1
200_04
MV2clo se
Network 2 - Stirring
010_00
MV1
010_02
Stirrer
DIFU(13)
TLB1
200_01
Reach TLB1
Network 4
200_01
TLB2
Network 5
ReachTLB1
200_02
Reach
- Drain
010_00
000_05
MV1
TLB1
000_06
TLB2
010_01
MV2
010_01
MV2
Network 6
- MV2 close
010_01
DIFD(14)
M V 2
2 0 0 _ 0 4
MV2close
Network 7
- Pass TLB2
000_06
DIFD(14)
200_03
T L B 2
P a s s T L B 2
6-38
047
Counter
000.02
#0004
Reset
Network 9 - End indication
CNT047
010.04
Counter
PL
Network 10 - Delay
Delay for 2 seconds
010.04
#002
0
TIM
PL
000
Network 11 - Buzzer
CNT047
Counter
TIM000
010.05
R7
Network 12 - End
END (01)
6-39
Shift Register
SFT(10)
Shift Regi ster (SFT) shifts a 16-bit data in specified channel by 1 bit. Although thi s instruction shifts
data within channel s, both a start channel and an end channel mu st be specified a s the data.
Ladder diagram
IN
CP
R
SFT(10)
S
Start CH
End CH
00 01 02
15
0 0 01 02
15
0 0 01 02
15
Example circuit
Ladder Diagram
Mnemonic cod
Addr ess
0000
0001
0002
0003
0004
SFT(10)
200
200
00002
00004
00005
00003
Instruction
LD
AND NOT
LD
LD
SFT(10)
Data Input
0005
0006
0003
Clock Pulse
Re set
LD
OUT
END(01)
Data
00002
00003
00004
00005
200
200
20000
1000
End(01)
20000
1000
Note :
6-40
Left (1001)
(S5)
6
Right (1003)
(S4)
(S1)
5
Roller
Up (1000)
Up Sensor (S3) 4
Down Sensor (S2) 3
PB1 (Start)
(0)
Down (1002)
(07)
Reset
PB2 (1)
Operator
Degreasing Tanks
Operator
Stop Button
(8)
Buzzer
(1004)
When the PB1 i s pressed, the roller will coil up the hook until the up-sensor (S3). The
hook will then transverse left (via 01001) until it reaches the S4 position.
It will then stop and lower the product into the degreasing tank. When it reaches down to S2, the
product will stay in the degreasing tank for 20 seconds. After the time i s up, the product i s lifted
up and transverse left until S5 position and stop. It continue to come down. Until the down
position, where the Buzzer will sound. The operator will collect the product and press the PB2 to
return the crane back to the home position.
6-41
I/O Assignment
Output
01000
01001
01002
01003
01004
D evice
Up motor
Left motor
Down motor
Right motor
Buzzer
Input D
evice
00000 PB1
(Start
button)
00001 PB2
(Return
button)
00002 S1
(Sensor 1)
00003 S2
(Down
sensor)
00004 S3
(Up sensor)
00005 S4
(Degrea se
sensor)
00006 S5
(End
sensor)
00007 RST
(Re
set
button)
00008 Stop
(Stop
button
latch)
Start operation
00
PR1
000. 03
S2
000 . 02
S1
DIFI T(13)
2
MOV(21)
#0001
HR00
HR00
HR00. 09
HR00
END_OP
000. 07
Rst
Network 4 - Shift operation
The shift register clock input to control the sequence of operation
HR00. 00
000. 02
I TP
HR00 . 01
S1
000. 05
i EFT1
HR00 . 02
S4
000.03
DOWN1
HR00 . 03
S2
000. 04
I TP2
HR00 . 04
S3
000. 06
i EFT2
HR00 . 05
S5
000. 03
000. 01
S2
PR2
DOWN2
HR00 . 06
000. 04
I TP3
HR00. 07
S3
000. 02
RIGHT
HR00. 0R
S1
000. 03
DOWN3
S2
000. 04
200. 01
200. 01
S3
TIM000
6-43
- Interlock
R
I L(02)
Stop
Network 6 - T Tp
HR00. 00
01 0.
T TP1
HR00. 03
T TP_ MOTOR
T TP2
HR00 . 06
T TP3
Network 7
- Left
HR00 . 01
01 0.
LEFT1
HR00. 04
LEFT_ MOTOR
LEFT2
Network 8
- Down
HR00. 02
01 0. 02
DOWN1
HR00. 05
DOWN_ MOTOR
DOWN2
HR00. 0R
DOWN3
Network 9 - Time delay
Time delay for 20 secs
HR00. 02
TIM
DOWN1
#02
Network 1 0 - Buzzer
HR00 . 05
.03
D
O
W
2
N
010.04
S
2
Network 11
- Right
HR00. 07
RIGHT
Network 12
Buzzer
1 0. 03
FWD M O TO R
- Close interlock
I LC(03)
Network 13
- End
END(01)
6-44
Photoelectric sensor (PH1) serves as the data input to the shift register. The signal output from
this sensor turns ON when a defective product has been detected; otherwise it remains OFF.
Photoelectric sensor (PH2) is used as a clock generator that serves as the clock input to the
shift register. It generates one pulse each time the product, spaced at a fixed interval from
each other, has traveled a predetermined distance.
From the moment a defective product is detected by PH1, it is traced by the shift register until
the product arrives at the predetermined position on the conveyor where it is ejected by the
magnetic valve MV.
6-45
SFT
HR
HR
PH1
3
Shift
Registe
PH
25314
HR0004
04
1
MV Valve
open for
defective part
6
END (01)
Mnemonic codes
Address
Instruction
Data
0000
0001
0002
0003
LD
LD
LD
SFT
0004
0005
0006
LD
OUT
END (01)
00002
00003
25314
HR00
HR00
HR0004
01 000
6-46
(Detect workpiece)
PH1 (4)
(clockwise
rotation)
LS3
LS1 (1)
(counterclockwise
rotation)
LS2 (2)
SOL2 (1001)
(1000) SOL 1
conveyor A (1003)
(clockwise
rotation)
conveyor B
(counterclockwise
rotation)
This kind of robot is seen in many automated factories. As is apparent from the figure, this
robot picks up a work being carried on conveyor A and places it on conveyor B.
The operations and conditions are as follows:
1. When the start button is pressed, the robot rotates its arm clockwise.
2. When the robot arm has moved to the position of the work on the conveyor A, arm grasps
the work.
3. When the arm has grasped the work, it rotates counterclockwise.
4. When the arm has rotated to the position of conveyor B, it releases the work.
6-47
Procedure
Devices
0005
PB1
(start button)
LS1
(clockwise rotation)
LS2
(counterclockwise rotation)
LS3
(checking grasped work)
PH1
(detect workpiece)
Stop button
0006
Reset button
0001
0002
0003
0004
Output
1 000
1 001
1 002
1 003
Devices
Sol 1
(clockwise rotation)
Sol 2
(counterclockwise rotation)
Sol 3
(grasping work)
Conveyor A
Start
Button
Pressed?
No
Yes
No
Yes
Conveyor A ON
Photo
eye sense
workpiece?
No
Yes
Conveyor A OFF
Arm grasp work
Is
LS3
ON?
No
Yes
No
Yes
Release workpiece
Is
LS3
OFF?
No
Yes
6-48
. 00
000. 02
KEEP (11)
Start
06
Reset
I .S2
HR01. 00
Startcondition
HR01. 01
Stopssignal
Network 2 - Start
HR01.
DI FU(13)
Startcondition
200.
HR00. 05
HR
Normaloff
200. 01
HR
Clock
HR
000. 06
HR1 01
HR00. 00
000. 01
200. 01
HR01. 01
200. 01
Senuence1
I .S1
Clock
Stopsignal
Clock
HR00. 01
000. 04
Senuence2
PH1
HR00. 02
Senuence3
HR00. 03
000. 03
I .S3
000. 02
- Stop condition
.05
KEEP(11)
Stop
HR01. 01
Stopsignal
.
Start
Network 7
- Arm clockwise
HR00. 00
Sermence1
Network 8
Armclkwise
- Conveyor A
HR00. 01
Seauence2
Network 9
01 0.
01 0. 03
ConveyorA
- Grasp
HR00. 02
HR00. 04
200. 02
1 0. 02
Grasp
Senuence3
1 0. 02
Grasp
Network 1 0
- Arm anticlockwise
HR00. 03
01 0. 01
Sermence4
Armanticlk
Network 11 - Reset
Reset after stop
HR00. 01
Stopsignal
Network 12
000. 06
200. 02
Reset
- End
End(01)
6-5
LS1 (1)
LS1 (2)
Stop PB
Start PB
(3)
HOME
I/O Assignment
Output
Devices
01 000
Motor (right)
01 001
Motor (Left)
2
1
LS1
LS2
Inpu
t
Devi
ces
000
00
Motor (Right)
Stop
PB
000
01
LS1
(HO
ME)
000
02
LS2
000
03
Start
PB
Start PB
1
2
LS2
TIM
#5
5 sec Delay
1 001
Motor (Left)
1
LS1
1 001
RS1
(2)
RS2
(3)
Start ( 0)
Conveyor motor
(1 000)
Stop (1)
RST (5)
Tray
Up (1 001)
Proximity Limit
switch
Switch
(4)
(6)
Lifter
motor
Down (1 004)
In this application, a lifter motor is used to lift a tray of PCB boards up, before being
pushed by the piston onto the conveyor for packing.
When the start button is pressed, the conveyor motor and the lifter motor will turn on.
The proximity switch will temporarily stop the lifter motor for the piston to push the PCB
onto the conveyor belt.
After the PCB is pushed, the piston will retract and the lifter motor starts again. The whole
procedure will repeat itself thereafter.
6-52
I/O Assignment
Output
01000
01001
01002
01003
01004
Input Device
00000 Start Push
Conveyor motor
Button
Up Lifter motor
00001 Stop Push
Right piston
Button
Left piston
00002 RS1 ( Left
Down lifter motor Limit)
00003 RS2 (Right
Limit)
00004 Proximity
Switch
00005 Reset
00006 Limit
Switch
Device
000.01
CNT001
010.00
Stop
Conveyor
Conveyor
Network 2 - Left limit
Left limit reached for piston
010.00
000.06
Conveyor
LSW
DIFU(13)
200.00
Network 3 - Lifter up
Lifter motor up
200.00
010.01
200.02CNT001
010.01
Lifterstop
Up
Up
200.03
DIFU(13)
Proximitysw
200.01
Network 5 - Lifter up
Lift the PCB up one after another
200.01
010.02
200.02
Right
Lifterstop
200.02
000
dela
y
110010
Lifterstop
Network 6
TIM
- Pistonright
000.02
TIM000
Delay
000.03
RS2(RIGHTLIMIT)
010.02
Right
010.02
Right
6-54
010.03
RS2(RIGHT LIMIT)
Network 8
Left
- Pistonleft
010.03
000.02
Left
RS1( LEFTLIMIT)
DIFU(13)
200.03
Network 9 - Counter
Counter preset at 20
200.03
000.05
CNT
CNT001
0020
RST
Network 10
001
- Delay of 1 sec
CNT001
TIM
002
0010
Network 11
- Liftdown
200.02
RS1( LEFT LIMIT)
TIM002
010.04
Down
Network 12
- End
End (01)
6-55
- Conveyor
Network 1
000.00
Start
000.06
Limitswitch
000.02
RS1
000.01
Stop
010.00
Conveyor
010.00
Conveyor
Network 2
- Set bit
010.00
Conveyor
DIFU(13)
200.00
CNT001
#0001
HR00.03
Network 4
MOV(21)
HR00
- Shift register
253.14
SFT(10)
200.01
HR00
HR00.05
HR00
Network 5 - Clock
Clock input to shift register to control sequence of operations
HR00.00
000.04
200.01
200.01
Proximitysw
HR00.01
000.03
RS2
HR00.02
000.02
HR00.03
CNT001
HR00.04
000.06
RS1
imitswitch
Network 6
- Counter
HR00.02
6-56
C N T 0 0 1
Reset
0 0 1
#0020
Network 7 - Lifter up
HR00.00
010.01
ifterup
010.02
Pistonright
010.03
Pistonleft
010.04
ifterdown
Network 11 - End
End (01)
6-57
Door position
RIftric
Pushbutton
CPM2A
le
ri
Switch
e
c t
I/O Assignment
Motor
Output
Devices
01000
01001
000.02
010.01
010.00
Ultraswitch
UpperLS
Lowerdoor
Raisedoor
010.00
010.01
Raisedoor
Lowerdoor
010. 00
Raisedoor
Network 2 - Photosensor
Sense until differentiation down
000.01
DI FD ( 1 4)
Photosensor
200.00
Network 3 - Lower door
200.00
010.01
werdoor
000.03
werLS
Network 4 - End
End (01)
Timing diagram
6-59
V1 (1000)
S2 (1)
(0)
S1
Oil shortage
alarm indicator
I/O Assignment
Input
Devices
00000
00001
Output
Devices
01000
01001
6-60
200.00
TIM000
Valveclose
010.00
010.01
Valveopens
TIM
000
Valveclose
Valveopens
#0015
Network 3 - Oil shortage
000.01
010.01
werlevel
Oilshortage
Network 4 - End
End (01)
Timing diagr am
00000
Position detection
1 scan time
DIFU
04000
10000
1.5 sec
Valve Opens
TIM 000
00001
10001
6-61
Sensor 3
Copper
plate
Sensor 2
Motor 3 (1002)
Sensor 1
Motor 2
Motor 1 (1000)
CP M2 A
I/O Assignment
Input
Devices
00000
00001
00002
Sensor 1
Sensor 2
Sensor 3
Output
Devices
01000
01001
01002
Motor 1
Motor 2
Motor 3
6-62
Network 2 - Motor1
000_01
ITM000
010_01
010_01
Motor2
Mo t o r2
I001
TM
010_00
Motor1
S2
010_00
Motor1
Network 3 - Delay for 2sec
010_00
000_01
IIM
Motor1
S2
000
#0020
Network 4 - Sensor1
000_00
I001
TM
200_00
S1
200_00
000_00
001
S1
#0020
Network 6 -
Motor3
253_13
NC
010_02
Mo t o r3
Network 7 - End
End (01)
Operation :
a)
b)
c)
d)
6-63
Move - MOV(2 1)
MOV transfer source data (either the data in a specified channel or a four digit hexadecimal
constant) to a de stination channel. Therefore, MOV require s two data parameter s to be specified:
the source channel or constant and the de stination channel.
S: Source channel
IR, SR, AR, DM, HR, TC, LR, #
D: Destination channel
D
IR, AR, DM, HR, LR
Example circuit
Ladder diagram
25313
MOV(21)
Address
0000
0001
Instruction
LD
MOV(21)
000
Source
200
Destination
Data
25313
000
200
0003
END (01)
6-64
SOURCE
INPUT
CH 000
Channel
000 bit 00
to
bit 15
DESTINATION
OUTPUT
CH 200
00000
20000
00001
20001
00002
20002
00003
20003
00004
20004
00005
20005
00006
20006
00007
20007
00008
20008
00009
20009
00010
20010
00011
20011
00012
00013
20012
20013
0
0
00014
20014
00015
20015
Status
Channel
200 bit 00
to
bit 15
Statu
In this case, data in Input Channel 000 i s moved to Output Channel 200.
6-65
Ap p l i c a t i o n # 1 3 : D i s p l a y Er r o r C o d e O f Ma c h i n e T o Ai d I n T r a c i n g
The Source Of The Problem
1. Activation of error input signal 00001 to 00004 will sound an alarm and at the same
time di splay the error code.
2. Input 00005 serve s to re set the error code di splayed upon machine recovery.
Error code
Code
001
002
003
004
Fault location
Feeding section problem
Check Sensor No: S01
Check Limit Switch No:
L03
Labeling
Unit Fault
Check Contactor No: C01
Conveyor Jam
Check Label Sensor No: S05
Emergency stop
Check Emergency Stop button
6-66
CODE 004
Fault location
Devices
Alarm
Annunicator
Emergency
Stop button
CODE 002
fault location
Labeling
unit
Conveyor
Motor
Sensor S01
CODE 001
fault location
CODE 003
fault location
I
n
p
u
t
D
e
v
i
c
e
s
0
0
0
0
1
010_0
0
Alarm
PR2
000_03
PR3
000_04
PR4
Network 2 - Code 1
Feeding Problem
000_01
PR1
MOV(21)
#0001
010
Network 3 - Code 2
No Label
000_02
PR2
MOV(21)
#0002
010
Network 4 - Code 3
Conveyor Jam
000_03
PR3
MOV(21)
#0003
010
Network 5 - Code 4
Emergency Stop
000_04
PR4
MOV(21)
#0004
010
Network 6 - Code 5
Reset Code Display
000_05
Resetsw
MOV(21)
#0000
010
Network 7 - End
End (01)
6-68
Compare - CMP(20)
Compare (CMP) i s used to compare the data in a specific channel, with the data in another
channel, or a four-digit, hexadecimal constant. Therefore, two data mu st be specified immediately
after the CMP(20) instruction.
CMP(20)
Cp 2
Example circuit
Ladder diagram
25313
TR 0
C M P( 20 )
Address
#01F0
000
25505 (>)
01000
25506 (=)
01001
25507 (<)
01002
0000
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
Instruction
Data
LD
OUT
CMP(20)
25313
TR 0
AND
OUT
LD
AND
OUT
LD
AND
OUT
#01F0
000
25505
01000
TR 0
25506
01001
TR 0
25507
01002
6-69
It
00 000 0 1 1 01 1 1 0 0 0
DATA
Constant
Compare with
Channel
CH 000
DATA
It
If the constant (It01F0) i s equal to Channel 000 data, special relay 25506
turns ON. However, special relay 25505 will turn ON if the constant i s
greater than Channel 000 data and special relay 25507 will turn ON if the
constant i s less than Channel 000 data. At any one time, only one result i
s true, either relay 25505(>) or 25506(=) or 25507(<) i s ON.
01F0
00015 00014 00013 00012 00011 00010 00009 00008 00007 00006 00005 00004 00003 00002 00001 00000
6-70
Display
01000
Start (0)
01001
Stop (1)
01002
Buzzer (01005)
01003
In thi s application, a 7- segment di splay & a buzzer i s connected to the PLC. When the start
button i s pre ssed, the di splay will di splay a 9 and therefore will decrement until 0 before the
buzzer i s being sound. The se type of circuit can be u sed as a warning circuit.
I/O Assignment
Input
00000
00001
Device
Start PB
Stop PB
Output
Device
6-71
HR01.00
010.05
Buzzer
000.01
Stop pb
Network 2 - Move 9
Move 9 to channel 6
@MOV(21)
#0009
HR01.00
006
Network 3 - Timer
To produce an ON/OFF pulse
TIM
001
253.13
TIM001
#0012
Network 4 - Decrement
Decrement every execution
HR01.00
TIM001
@DEC(39)
006
Network 5 Compare the o/p with 0, if equal (25506 on) output 00500 turn on
253.13
CMP(20)
HR01 . 00
006
#0000
255.06
=Fla
Network 6 - Buzzer
005.00
Workbit
010.05
005.00
Workbit
TIM000
RST
000.01
010.05
Stop pb
Ruzzer
Ruzzer
6-72
TIM000
Stop_pb
005.01
RST
TIM
000
RST
#0050
Network 8 - Stop
Reset channel 10
000.01
MOV(21)
Stop pb
TIM000
RST
#0000
006
Network 9 - Segment1display
006.00
010.00
o/p.00
Network 10 - Segment2display
006 01
010.01
o/p.01
Network 11 - Segment3display
006.02
010.02
o/p.02
Network 12 - Segment4display
006.03
010.03
o/p.03
Network 13 - End
End (01)
Notes : Instruction with @Sign will execute on the rising edge only.
It means that the instruction will execute for one scan only.
6-73
Instruction
00000
00001
LD
LD
00002
00003
00004
KEEP(11)
LD
@MOV(21)
00005
00006
00007
LD
AND NOT TIM
TIM
00008
00009
00010
LD
AND TIM
@DEC(39)
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
LD
OUT TR
AND
CMP(20)
LD TR
AND
OUT
LD
OR
AND NOT TIM
AND NOT
OUT
LD
OR
OUT TR
AND NOT
AND NOT
OUT
LD TR
TIM
LD
OR
MOV(21)
LD
OUT
LD
OUT
LD
OUT
LD
OUT
END(01)
Data
00000
01005
OR 1
HR 0100
HR 0100
# 0009
6
25313
001
1
#0012
HR 0100
1
Comment
Comment Statement
Start Pb
Holding Relay
Move 9 to
Clk Pulse
Decrement o/p every clk
6
25313
0
HR 0100
6
# 0000
0
25506
00500
00500
01005
0
1
01005
00500
00501
0
1
TIM 000
00501
0
000
# 0050
00001
TIM 000
# 0000
6
600
1000
601
1001
602
1002
603
1003
RESET CH
1
2
4
8
6-74
Add - ADD(30)
ADD totals the data in two different channels, or one channel and a constant and then
outputs the sum to a third channel.
Therefore, three data parameters must be specified : an augend, an addend and a result channel.
ADD(30)
Ad
R: Result channel
IR, AR, DM, HR, LR
Example circuit
Ladder diagram
00000
CLC(41)
Address
0000
0001
0002
Instruction
LD
CLC(41)
ADD(30)
ADD(30)
HR04 Augend
#1234 Addend
2 0 0 Result
Data
00000
HR04
#1234
200
0004
END(01)
6-75
Addend
R esult
CH 200
+ 1234 +
carry
25504
0
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
20
21
22
23
20
21
22
23
20
21
22
23
20
21
22
23
100
101
carry
25504
0/1
10
103
In the above example, before executing ADD, the Carry Flag/CY (special relay 25504) is
turned OFF by the Clear Carry (CLC). The addition and subtraction instructions include CY in
the calculation as well as in the result. Be sure to clear CY if its previous status is not required in
the calculation, and to use the result placed in CY, if required, before it is changed by execution
of any other instruction.
The augend and addend must be in BCD, if not special relay 25503 (Error Flag) is turned ON and
ADD is not executed.
ADD is executed each time the CPU scans the program. To execute it only once.
04000 20
Subtract - SUB(31)
S UB finds the difference between the data in one channel and the data in another channel or a
constant, and then outputs the result to a third channel.
Therefore, three data must be specified : an minuend, an subtrahend and a result channel.
S UB(31)
R: Result channel
IR, AR, DM, HR, LR
Example circuit
Ladder diagram
00000
CLC(41)
Address
0000
0001
0002
Instruction
LD
CLC(41)
S UB(31)
S UB(31)
HR04
Minuend
#1234 Subtrahend
200 Result
Data
00000
HR04
#1234
200
0004
END (01)
In the above example, before executing SUB, the Carry Flag (special relay 25504) is turned
OFF by the Clear Carry (CLC). The addition and subtraction instructions include CY in the
calculation as well as in the result. Be sure to clear CY if its previous status is not required in the
calculation, and to use the result placed in CY, if required, before it is changed by execution of
any other instruction.
The minuend and subtrahend must be in BCD, if not special relay 25503 (Error Flag)
is turned ON and ADD is not executed.
SUB is executed each time the CPU scans the program. To execute it only once.
6-77
I/O Assignment
Output
01000
01001
Device
Buzzer
Cutter (Knife)
Knife (1001)
Reset Push-button (5)
Buzzer (1000)
Cutting Machine
Input Device
Address
0000
0001
0002
0003
0004
0005
0006
0007
0008
0009
000.00
Cutsensor
010.01
Cutter
Start
010.01
Cutter
Network 2 - Cutter
Cutter start pushbutton
000.04
Startpb
DIFU(13)
200.00
Start
0010
0011
0012
0013
Network 3 - Add 1
Instruction
LD
OR
AND NOT
OUT
LD
DIF U(13)
LD
AND
CLC(41)
ADD(30)
LD
AND
CLC(41)
ADD(30)
CLC(41)
200.00
Start
000.01
ProductA
ADD(30)
HR00
0014
0015
0016
0017
add2
#0001
HR00
add 2
Network 4 - Add 2
200.00
CLC(41)
Start
000.02
LD
AND
CLC(41)
ADD(30)
Data
20000
01001
00000
01001
00004
20000
20000
00001
HR00
#0001
HR00
20000
00002
HR00
#0002
HR00
20000
00003
HR00
#0010
HR00
ProductB
ADD(30)
HR00
add2
#0002
HR00
add 2
Network 5 - Add 10
200.00
CLC(41)
Start
000.03
ProductC
ADD(30)
HR00
add2
#0010
HR00
add 2
6-79
NC
Address
0015
0016
0017
Instruction
LD
OUT
CMP(20)
HR00
add2
255.06
200.01
=Flag
255.07
200.02
<Flag
Network 7 - Buzzer
200.01
200.02
010.00
0018
019
0020
0021
0022
0023
0024
0025
0026
0027
AND
OUT
LD
AND
OUT
LD
OR
OUT
LD
MOV(21)
Data
25313
TR 0
#1000
HR00
25506
20001
TR 0
25507
20002
20001
20002
01000
00005
# 0000
HR00
C(t t er
0028
END(01)
Network 8 - Reset
0 00. 05
M OV (2 1)
#0000
Res et
HR00
add2
Network 9 - End
End (01)
6-80
CAR PARK
F ULL
Car coming
(10000)
S1 (0)
S2 (1)
I/O Assignment
Input
Device
Output
00000
00001
Sensor S1
Sensor S2
01000
Device
6-81
Address
0000
0001
0002
0003
0004
DIFU(13)
S1
200.00
Carin
Network 2 - Add 1
0005
0006
0007
0008
0009
CLC(41)
200.00
ADD(30)
HR00
#0001
C a ri n
Instruction
LD
DIFU(13)
LD
CLC(41)
ADD(30)
LD
DIFU(13)
LD
CLC(41)
S UB(31)
HR00
Network 3 - Car out
0010
0011
0012
DIFU(13)
200.01
Carout
000.01
0013
0014
0015
0016
0017
0018
Network 4 - Subtract 1
S2
CLC(41)
200.01
SUB(31)
HR0 0
#0001
S2
LD
OUT
CMP(20)
AND
LD
AND
OR LD
OUT
END(01)
Data
00000
20000
20000
HR00
#0001
HR00
00001
20001
20001
HR00
#0001
HR00
25313
TR 0
HR00
#0100
25506
TR 0
25505
01000
HR0 0
Network 5 - Compare
CPM(20)
HR00
#0100
253.13
255.06
010.00
NC
=Flag
Carparkfull
255.05
> Flag
Network 6 En
d (01)
6-82
In this application, the system is to sort out the black & white balls into 2 different container.
The start button will start the operation, Ball sensor ( S1) will sense the presence of the ball in the
hopper. The top solenoid will release the ball for the colour sensor ( S2) to differentiate the colour
before being release into the container.
I/O Assignment
Output
01000
01001
01002
Device
Top cylinder
Bottom cylinder
Pusher
Input
Devic
e
00000 Start
PB
00001 Ball
sensor (S1)
00002 Colour
sensor ( S2)
00003 Stop
PB
000.03
tart
200.01
200.01
top
Startcond
tartcond
000.01
200.03
010.00
Topcylinder
S1
010.00
Topcylinder
Network 3 - Timer
010.00
TIM
Topcylinder
000
#0015
Network 4 - Delay
TIM000
TIM004
200.03
200.03
Network 5 - White&black
200.03
000 02
Colorsense
TIM
001
Whit
e
#0005
000.02
Colorsense
TIM
002
Black
#0005
Network 6 - Bottomcylinder
TIM001
White
TIM003
010.01
Bottomcylin
6- 84
Bottomcylin
Network 8 - Pusher
010.02
TIM002
Pusher
Black
TIM
003
#0010
Network 9 - End
End(01)
6- 85
This program separates white balls from black balls using the shift register method
Network 1 - Start
00.0
00.3
tart
200.00
top
200.00
Cond
Co n d
Network 2
Differentiation up
200.00
DIFU(13)
Cond
200.01
MOV(21)
#0001
HR00.04
HR00
Shift
hift.04
No
200.02
HR00
Shift
Clock
000.03
top
Network 5 - Process
000.01
1
TIM000
200.02
Clock
200.02
Clock
hift.01
HR00.02
hift
HR00.03
000.02
S2
TIM003
TIM001
hift.03
6-86
010.00
hift.01
ToDcv
TIM
001
#0010
010.00
B otc v
hift.03
TIM
001
#0010
HR00.02
TIM
hift.02
002
#0010
Network 9 - Pusher
TIM002
HR00.04
010.02
Pusher
#0010
TIM
003
hift.04
010.02
Network 10 - End
Pusher
E
nd(01)
6- 87
7. USEFUL CIRCUITRY
1 - Cycle Differentiation Circuit
Description
Circuit Example 1
0000
DIFU (13)
0200
Differentiation up
output
(DIFU)
0200
1000 .utput
Signal
(input signal)
0000
Differentiation
output
DIFU (13)
0200
Differentiation up
output
(DIFU)
0200
IMP (04)
Program A
Differentiation output
Signal
(input signal)
IMP (05)
Application example
0000
DIFD (14)
0200
Differentiation
Down output
(DIFD)
0200
1001 .utput
I/O Assignment
Signal (input signal)
Differentiation output
.utput relay
.utput relay
instructions before
Circuit Example 2
0000
0200
1000
1001
0000
1000
1001
7-1
7 . U SEF UL CI RC UI T R Y
0000
0000
100100
10
DIFU (1 3)
0200
Differentiation up
output
( D IFU)
0000
0200
JMP (04)
1000 Differentiation up
0000
0201
output
Differentiation
down
output
Program A
JMP (05)
0000
instructions before
7. USEFUL CIRCUITRY
Flicker Circuit
Description
This circuit repeat outputs at specified .N/.FF intervals
when a signal (input signal) is applied.
0000
25502
1000
Flicker
output
Signal
(input signal)
Flicker output
T 1
T 2
0000
3200
times
T2
Application examples
T 1
T 2
T 1
T 2
T 1
I/O Assignment
Signal (Input signal)
Flicker output
1-sec clock pulse
T 2
T1
0000
relay 1000
Auxiliary relay 25502
0000
1000
T2:
Circuit Example
1000
Flicker
output
TIM002
0000
.N time 1 sec
TIM
001
1000
T 2
TIM
002
TIM001
1000
0000
3200
T 2
T 2
T 2
T 2
TIM001
0000
T 2
.ff time
2 sec
Flicker
output
T 1
T 2
T 1
T 2
T 1
T 2
T 1
T1: 1 sec
T2: 2sec
T
1
7-3
7 . U SEF UL CI RC UI T R Y
Single-shot Circuit
Description
This circuit is used to keep the .N time of a single
(input signal) constant.
Circuit Example
This circuit is applicable to many PLCs.
0000
1000
Signal
(input signal)
Differentiation
output
1000
I/O Assignment
Signal (Input signal)
Single-shot output
.utput relay 1000
TIM001
10 00
10 00
TIM
001
Single-shot
time 3 sec
1001
Single-shot
output
TIM001
0000
relay 1001
7-4
7. USEFUL CIRCUITRY
Long-Time Timer Circuit
Description
The timers can be set to a maximum of 999.9 sec. Use
this circuit if the time setting exceeding this maximum is
required.
0000
TIM001
TIM
001
5sec
TIM001
Timer .N condition
2,000
counts
0000
Timer output
Time setting
(999.9 sec min)
CNT002
1002 Timer
output
I/O Assignment
Timer .N condition
0000
Timer output: .utput relay 1002
Circuit Example
0000
TIM
001
500 sec
TIM1
800 sec
TIM2
1002
Timer output
CNT001
1002 Timer
output
7-5
7 . U SEF UL CI RC UI T R Y
ON/OFF-Delay Circuit
I/O Assignment
Description
This circuit is used to delay the .N/.FF time of a
signal (input signal) for a given time.
Circuit Example
Signal (input signal)
T2
0000
TIM
001
TIM001
3
0
1
TIM002
1003
0.1sec.N-delay
time
.N/.FF-delay
output
Application example
1003
0000
TIM
002
0.1sec
.FF-delaytime
7-6
7. USEFUL CIRCUITRY
Push-On/Push-Off circuit (Binary Circuit)
Description
0000
DIFU(13)
0200
(DIFU)
0200
IMP (04)
0000
1000 Output
IMP (05)
Input
Output
0000
1000 Output
0000
0000
1000
0200
0201
0202
IMP (05)
When
0200
data
retention
during power failure is unnecessary
Circuit Examples
When data retention during power failure is
unnecessary
1-scan differentiation
(clock)
DIFU(13)
0200
0000
DIFU(13)
0200
differentiation
1-scan
(DIFU)
0200
HR0000
0201 ON Condition
0202 OFF Condition
HR0000
0201
1000
1000 Output
0200
0000
(DI FU )
0200
(DIFU )
0200
IMP (04)
1000
I/O Assignment
Input
Output
Work bit
0200
relay
0201
Set
1000
DIFU(13)
0200
0000
KEEP(II) Holding
HR0000 HR0000
1-scan
differentiation (clock)
HR 000
Reset
1000 Output
In
CNT000
(DIFU )
0200
0000ilur
1000
=0002
0201 On Condition
(DIFU )
0200
CMP(20)
CNT000
=0001
CNT000
1000
0202 Off Condition
5313
0201
Down
counter
020
1000 Output
Always on
1002
1000
7-7
7. USEFUL CIRCUITRY
Scanning Counter
Description
This circuit is used to count scan clocks to obtain
timing at a very precise pulse duration.
1 scan
Scan clock
I/O Assignment
Count input
Count output
Work bit
0000
1005
2000
Circuit Example
000
7-8
7. USEFUL CIRCUITRY
Concept of IL Instruction and JMP instruction
Description
The IL instruction must always be used in conjunction
with an ILC instruction, e.g., IL-ILC or IL-IL-ILC. When
the IL condition is logical 1, the programs between the
IL and IC instructions are executed according to the
ladder diagram. When the IL condition is logical , all
the output relays, internal auxiliary relays and timers
in the programs between the IL and ILC instructions
are turned OFF, and any counters, shift registers,
holding relays and data memory relays in the same
programs are held in their present status.
Circuit Example
IL
Program A
Y
JMP
Program B
JME
Program C
ILC
Program A
JMP
Program B
IL
ILC
Program C
JME
7-9
7 . U SEF UL CI RC UI T R Y
Legend
X:
Y:
A:
B:
IL condition
JMP condition
The programs are executed according to the ladder diagram.
Output relays, internal auxiliary relays and timers are turned off; counters, shift registers, holding relays and
data memory relays are held in their present status.
C: Output relays, internals auxiliary relays, timers, relays are held in their present status.
Concition
X
X
Y
X
Y
X
Y
X
Y
X
Y
X
Y
X
Y
X
Y
X
Y
"1"
Y"1"
1
1
1
0
1
0
1
1
1
0
0
0
0
0
1
0
0
0
0
1
0
0
0
0
0
1
1
1
0
1
0
1
0
1
IL-JMP-JME-ILC
Program A Program B Program C
A
A
A
JMP-IL-ILC-JMP
Program A Program B Program C
A
A
A
7-10
7. USEFUL CIRCUITRY
First-In Input Priority Circuit
Description
When there are plural inputs, this circuit is used to
accept only the first input and ignore all subsequent
inputs. This circuit accepts only the first input after
it has been cleared by a reset input.
I/O Assignment
Output
Device
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
Output 0
Output 1
Output 2
Output 3
Output 4
Output 5
Output 6
Output 7
Output 8
Output 9
Input
evice
0000
put 0
0001
put 1
0002
put 2
0003
put 3
0004
put 4
0005
put 5
0006
put 6
0007
put 7
0008
put 8
0009
D
In
In
In
In
In
In
In
In
In
In
put 9
0010
R
eset
Input
7 . U SEF UL CI RC UI T R Y
Circuit Example
Example 1
This circuit is applicable to CPM1A
0100 Reset input
0000
1001
1003
1004
1005
1006
1007
1008
1009
I L(02)
1002
1000
0001
1000
1000 Output 0
1001
0002
1 0101
1001 Output 1
100
0003
1002
10 Output
1003
0004
1003
1003 Output 3
1004
0005
1004
1004 Output 4
1005
0006
1006
0007
1005
1006
1005 Output 5
1006 Output 6
1007 Output 7
1007
0008
1007
1008 Output 8
1008
0009
1008
1009 Output 9
1009
I LC(03)
7-1
7. USEFUL CIRCUITRY
Example 2
0100 Reset input
IL(02)
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
JMP(04)
0000
1000 Output 0
1000
JMP(04)
0001
1001 Output 1
1001
JMP(04)
0002
100 Output
1002
JMP(04)
0003
1003 Output 3
1003
JMP(04)
0004
1004 Output 4
1004
JMP(04)
0005
1005 Output 5
1005
JMP(04)
0006
1006 Output 6
1006
JMP(04)
0007
1007 Output 7
1007
JMP(04)
0008
JMP(04)
Output 8
1008
1008
1009
0009
Output 9
JMP(04)
ILC(03)
7-13
7. USEFUL CIRCUITRY
Last-In Input Priority Circuit
Description
When there are plural inputs, this circuit is used to
accept only the first input and clear all the
preceding inputs. This is cleared by a reset input.
I/O Assignment
0300
to
0315
Others
Auxillary
relay
Circuit Example
0000
0300
DIFU(13)
0300
IL(02)
0001
DIFU(13)
0301
IL(02)
0301
000
030
0003
0303
0004
DIFU(13)
0302
IL
DIFU(13)
0303
IL
DIF U ( 1 3)
0304
Input Device
7. USEFUL CIRCUITRY
0304
IL(02)
0005
DIF U ( 1 3)
0305
0305
IL
0006
DIF U ( 1 3)
0306
0306
IL
0007
DIF U ( 1 3)
0307
0307
IL
0008
DIF U ( 1 3)
0308
0308
IL
0009
DIF U ( 1 3)
0309
0309
IL
0010
DIFU(13)
0310
0310
I L
0011
DIFU(13)
0311
0311
IL(02)
001
DIFU(13)
031 2
031
IL(02)
0013
DIFU(13)
0313
0313
IL
0014
DIFU(13)
0314
0314
IL
0015
DIFU(13)
0315
ILC(0 3)
(Normally ON)
CMP(20)
03
;0000
313
5506
(=
MOV(21)
33
10
7-15
7 . U SEF UL CI RC UI T R Y
Non-Lock-In Annunicator
Description
This circuit is used to generate alarm display
outputs if a failure occurs.
Device
Others
5502
000
1-sec
clock Work
bit
Alarm display
output
000
0010
0011
0000
000 Buzzer stop
000
0000
2000
Alarm buzzer
1001 output
Input
D
evice
0000
Al
arm
input
0010
L
amp test
input
0011
B
uzzer
reset
input
7-16
7 . U SEF UL CI RC UI T R Y
16-point Non-lock-in Annunicator
(1) I/O assignment
Output
1000 to 1015
(16 points)
1100
Others
25502
25 31 3
25506
25507
DM000
DM509
DM510 "0000"
DM51
1
"FFFFto
" 0402
0400
1-sec clock
Normally ON relay
Equal (=)
Less than (<)
Data memory 1
Work area
Constant
Data 1
Data 2
Auxiliary relays
Input Device
Start
"0000"
DM510
" F F F F " DM 5 1 1
Lamp
Test input
0100
1-sec clock
25502
(ON)
(ON)
Alarm display
output 'FFFF' 02CH
Alarm inputs
OCH
Alarm display
outputs 02CH
02CH
Buzzer
Reset input
0101
(ON)
Alarm input
00CH
Data memory 1
DM000
(16 points)
Is there alarm
input
(YRS)
Alarm input AND W data memory 1
1
1 00CH
DM000
Data
Memory 1
Alarm input
(<)
Data memory
DM0W00
Alarm buzzer ON
1100
7
1
7
7. USEFUL CIRCUITRY
(2) Circuit Example
(Normally ON)
MOV(21)
#0000
DM510
25 31
MOV(21)
#FFFF
DM511
0100
MOV(21)
#FFFF
DM510
0100
MOV(21)
00
10
(1-sec clock)
ORW(35)
DM510
DM000
DM509
2550
2
M O V( 2 1)
DM509
10
0101
0400
(Normally ON)
25 31
MOV(21)
00
DM000
CMP(20)
00
#0000
25506
0401
(=)
(Normally ON)
25 31
25507
1000
JMP(04)
25502
0402
0400
(Less than)
e
MOV(21)
00
DM509
AND W(34)
DM509
DM000
DM000
When the buzzer reset input (0101) is ON, the old contents of
alarm input which were stored in DM000 ANDed with the
current contents of alarm input (00CH) and the result is stored
in DM000. If the status of the alarm input is changed, auxiliary
relay 25507 turns ON.
CMP(20)
DM000
DM509
0402
1000
0401
7. USEFUL CIRCUITRY
Lock-In Annunicator
Description
This circuit is used to generate alarm display outputs.
Device
Alarm display output
Alarm buzzer output
2000
2001
2000
Others
25502
2000
2001
1-sec clock
Work bits
0000
0002
2000
2001
2001
0
0
0
1 clock)
(1-sec
25502
2000
2
0
0
2 000 1
2001
Alarm display
1000 output
Input Device
Alarm buzzer
1001 output
7-19
7 . U SEF UL CI RC UI T R Y
16-point lock-in Annunicator
(1) I/O assignment
Output
1000 to 1015
(16 points)
1100
"0000"
DM510
" F F F F " DM 5 1 1
Others
25502
25 31 3
25506
25507
DM000
DM001
DM002
DM509
DM510 "0000"
DM51
1
"FFFFto" 0201
0200
Start
1-sec clock
Normally ON relay
Equal (=)
Less than (<)
Data memory 1
Data memory 2
Data memory 3
Work area
Data 1
Data 2
Auxiliary relays
Lamp
Test input
0100
(ON)
(OFF)
Alarm input ORW data memory 1 Data memory 1
00CH
DM000
DM000
1sec clock
25502
(ON)
(OFF)
Input Device
Buzzer
Reset
input
01
01
(ON)
(OFF)
Data
Memory 2
Alarm input
(<)
Alarm input
Data memory 1
DM000
DM000
Alarm input
Data memory 3
00CH
DM001
Alarm input
Data memory 2
00CH
DM002
Alarm buzzer output OFF
1100
7-20
7 . U SEF UL CI RC UI T R Y
(1) Circuit Example
(Normally ON)
2531
MOV(21)
#0000
DM510
MOV(21)
#FFFF
DM511
0100
MOV(21)
DM511
02
0100
JMP(04)
25 31
MOV(21)
00
DM500
ORW(35)
DM509
DM000
DM000
25502
(1-sec clock)
25502
MOV(21)
DM000
02
ORW(35)
DM510
DM001
DM500
MOV(21)
DM509
02
The contents of the alarm input (00CH) are stored in the data
memory 1 (DM000).
When the 1-sec clock (25502) is ON, the contents of the data
memory 1 (DM0000) are transferred to the alarm display
output (02CH).
When the 1-sec clock (25502) is OFF, data "0000" is Ored
with the contents of the memory 2 (DM001) and the result of
the OR operation is transferred to the alarm display output
(02CH).
0101
0200
7- 2 1
7 . U SEF UL CI RC UI T R Y
(Normally ON)
25 31
M OV (21)
00
DM509
AND W(34)
DM002
DM509
DM509
COM(29)
DM509
AND W(34)
DM509
DM000
DM000
AND W(34)
DM002
DM001
DM002
MOV(21)
00
DM509
AND W(34)
DM509 DM001
DM001
COM(20)
DM001
DM509
25507
0201
0201
(Less than)
'
Checks the status of the alarm input (00CH) for any change.
If any change exists, auxiliary relay 25507 is turned ON.
Alarm buzzer output ON.
0200
1100
1100
I M F (0 5 )
7-22
Under
10 ms (2 ms)
Over
Normal
operation
Operation
may stop
All outputs go OFF when
Operations stop.
NoteThe PLC may repeat stop/start operations if the supply voltage of less than 85% of the rated value
gradually goes up or down.
If this affects the equipment, etc., provide a protection circuit which shuts off the output
if the supply voltage is not above the rated value.
8-1
Panel/Cabinet Installation
Consider PLC operation, maintenance, and surrounding conditions when installing the
PLC in a panel or cabinet.
Overheating
The operation temperature range for the PLC is 0C to 55C. Be sure that there is
adequate ventilation for cooling.
CPM1
Air Vent
Electrical Noise
Power lines and high-voltage equipment can cause electrical noise in the PLC.
Do not install the PLC in a panel or cabinet with high-voltage equipment.
200 mm min.
CPM*A
200 mm min.
Allow at least 200 mm between the PLC and nearby power lines.
8-2
Handing Ducts
Leave at least 300 mm between the power cables and the I/O or control wiring, as
shown in the following diagram.
PM*A I/O lines
300mm min
Control cables
and CPM*A
power lines
300mm min
Power cables
Floor Ducts
Leave at least 200 mm between the wiring and the top of the duct, as shown in the
following diagram.
PM*A I/O lines
200 mm
Conduit
Separate the CPM*A I/O lines, power and control lines, and power cables, as shown
in the following diagram.
CPM*A I/O lines
Power cables
8-3
Ground to 100
Crimp Connectors
Always use crimp connectors for the CPM*A's power lines and I/O lines or else use a singlewire line (instead of a stranded wire). Stray wire strands could accidentally short out.
Use M3 terminal screws and tighten the screws securely (0.5 to 0.6 N-m).
Recommended Terminal: Use the terminal shown below.
Fork terminal
6.2 mm max.
8-4
Circuit
Rmethod
Diode method
Varistor method
Current
AC DC
Yes Yes
Characteristic
Required element
8-5
Countermeasure 1
OUT
OUT
R
OM
Providing a dark current of approx.
one-third of the rated value through
an incandescent lamp
OM
8-6
T he P LC Cycl e
The overall flow of PLC operation is as shown in the following flowchart. The PLC is initialized
internally when the power is turned on. If no errors are detected, the overseeing processes,
program execution, I/O refreshing, and peripheral Device servicing are executed consecutively
(cyclically). The average cycle time can be monitor from a Peripheral Device.
Power
Initialization
Initialization processes
Check hardware and
Program Memory
Overseeing
processes
Check OK ?
Set error flags and
activate indicators
ALARM
(flashing)
ERROR
OR
ALARM?
ERROR
(lit)
End of program ?
No
Program
execution
Cycle
time
No
Cycle time
processing
Wait until minimum
cycle time expires
Computer cycle time
Refresh input bits
and output terminals
Service peripheral port
Units.
I/O
refreshing
Service
peripheral
port
checking I/O
9-1
Non-fatal Errors
Fatal Errors
PLC operation and program execution will continue after one or more of these errors have
occurred. Although PLC operation will continue, the cause of the error should be corrected
and the error cleared as soon as possible.
When one of these errors occurs, the POWER and RUN indicators will remain lit and the
ERR/ALM indicator will flash.
The following messages may appear on the programming console display.
SYS FAIL FAL**
SCAN TIME OVER
You need to refer to the appropriate PLC manuals to check the flags to determine the
cause of the problem and correct the error.
PLC operation and program execution will stop and all outputs from the PLC will be turned
OFF when any of these errors have occurred. CPM1A operation can't be restarted until the
PLC is turned off and then on again or a Peripheral Device is used to switch the PLC to
PROGRAM mode and clear the fatal error.
All CPU indicators will be OFF for the power interruption error. For all other fatal operating
errors, the POWER and ERR/ALM indicators will be lit. The RUN indicator will be OFF.
The following messages may appear on the programming console display
MEMORY ERR
NO END INST
I/O B U S E R R
I/O U NI T OV E R
S YS FAI L F AL S * *
You need to check the error flag of the appropriate PLC manual to determine the cause of
the problem and correct the error.
9-2
User-defined Errors
There are three instructions that the user can use to define his own errors or messages. FAL(06)
causes a non-fatal error, FAL(07) causes a fatal error, and MSG(46) sends a message to the
Programming Console or host computer connected to the PC.
FAILURE ALARM-FAL(06)
FAL(06) is an instruction that causes a non-fatal error. The following will occur when an
FAL(06) instruction is executed:
1,2,3... 1. The ERR/ALM indicator on the CPU will flash. PC operation will continue.
2. The instruction's 2-digit BCD FAL number (01 to 99) will be written to SR 25300 to
SR 25307.
The FAL numbers can be set arbitrarily to indicate particular conditions. The same number
cannot be used as both an FAL number and an FALS number.
To clear an FAL error, correct the cause of the error and then execute FAL 00 or clear the
error using the Programming Console.
MESSAGE-MSG(46)
MSG(46) is used to display a message on the Programming Console. The message, which can be
up to 16 characters long, is displayed when the instruction's execution condition is ON.
9-3
Type
A
Mess age
99999
CIRCUIT ERR
OPERAND ERR
NO END INSTR
LOCN ERR
JME UNDEFD
DUPL
SBN UNDEFD
STEP ERR
9-4
Mess age
IL-ILC-ERR
COIL DUPL
JMP UNDEFD
SBS UNDEFD
9-5
Troubleshooting Flowcharts
Use the following flowcharts to troubleshoot errors that occur during operation.
Main Check
Error
No
Yes
ERR/ALM
indicator
No
No
Yes
Is I/O sequence
normal?
No
Check I/O
Yes
Operating
environment
normal?
No
Yes
9-6
Preventive Maintenance
Although PLC is designed for reliability. It can fail eventually. Probably the biggest
deterrent to system breakdown is a proper preventive maintenance program for the PLC
and the control system.
Periodically, inspect the tightness of the I/O terminals screws. They can become loose
over a period of time.
Ensure that components are free of dust. Proper cooling of the PLC is impossible if layer of
dust are deposited.
Corrosion may take place in some environment. Check periodically for corrosion of connecting
terminals. Printed circuit board and connector may become corroded internally.
Maintain a certain amount of commonly used spare parts such as the input and output
modules. It can be very costly if prolonged downtime occurs without parts.
Keep proper documentation of operating program and wiring circuit of the control system.
You may need them in case of emergency.
9-7
CPM2A CPUs
Description
Input points
Output points
30 I/O points
18 points
12 points
24 points
T ransistor NPN
T ransistor PNP
16 points
36 points
T ransistor NPN
T ransistor PNP
24 points
40 I/O points
60I/O
points
Input points
Model Number
CPM2A-30CDR-A
Model Number
T ransistor NPN
T ransistor PNP
Description
Power Supply
CPM2A-30CDR-D
CPM2A-30CDT-D
CPM2A-30CDT1-D
CPM2A-40CDR-A
CPM2A-40CDR-D
CPM2A-40CDT-D
CPM2A-40CDT1-D
CPM2A-60CDR-A
CPM2A-60CDR-D
CPM2A-60CDT-D
CPM2A-60CDT1-D
10 I/O points
6 points
Output
50/60 Hz
24 VDC
CPM1A-10CDR-D
CPM1A-10CDT-D
20 I/O points
12 points
8 points
CPM1A-10CDT1-D
50/60 Hz
24 VDC
CPM1A-20CDR-D
CPM1A-20CDT-D
CPM1A-20CDT1-D
30 I/O points
18 points
12 points
50/60 Hz
24 VDC
CPM1A-30CDR-D
40 I/O points
24 points
CPM1A-30CDT-D
CPM1A-30CDT1-D
16 points
50/60 Hz
24 VDC
CPM1A-40CDR-D
CPM1A-40CDT-D
CPM1A-40CDT1-D
A-1
Communications Adapters
Description
Output points
Model Number
RS-232C Adapter
CPM1-CIF01
CPM1-CIF1 1
RS-422 Adapter
In
pu
t
po
int
s
O
ut
pu
t
po
int
s
M
od
el
Nu
m
be
r
20
I/
O
po
int
s
12
po
int
s
8
po
int
s
Re
lay
Co
nt
ac
t
C
P
Ml
A20
E
D
R
T
ra
nsi
st
or
N
P
N
C
P
M
1A
20
E
D
T
Model Number
Specifications
P rogramming Console
CQM1-PR001-E
C200H-PR027-E
SYSWIN
SYSWIN-E-V3.3
Connecting Cable
CQM1-CIF02
C200H-CN222
C200H-CN422
A- 3
10.
Appendix B - Specifications
A capacitor in the CPU is used to backup the program, counter values and the contents of the
DM area, HR area, and AR area. The capacitor backup time depends on the ambient
temperature, as shown in the following graph.
20
10
7
1
25
40
80
If the contents of the CPU's program area are lost, the program stored in flash memory will be
read to the CPU's program area when the CPM1A is started. Although the program will be
restored, the counter values and the contents of the DM area, Hr area, and AR area will be lost.
I/O Specifications
CPU Input Specifications of CPM1A
Note The input time constant for ON/OFF delays can be set to 1,2,4,8,16,32,64,128 ms. When
IN00000 through IN00002 are used as high-speed counter puts, the delays are as shown in the
following table.
Item
IN00000 (A-phase)
IN0000l (B-phase) Normal input
IN00002 (Z-phase)
Increment mode
Differential phase mode
5 KHz
2.5 KHz
Normal Input
ON: 100 s max. ; OFF delay: 500 s max.
Item
Speci
ficati
on
10.
Appendix B - Specifications
When 1N00003 through 1N00006 are used as interrupt inputs, the delay is 0.3 ms max. The delay
is measured from the time that the input goes ON until the interrupt subroutine is executed.
B-2
10.
Appendix B - Specifications
Input current
ON voltage/current
OFF voltage/current
ON delay
OFF delay
Circuit configuration
Input
All
IN00000 to IN00001
IN00002 to IN00006
IN00007 to up
IN00000 to 1N00001
1N00002 to 1N00006
1N00007 to up
IN00000 to IN00001
IN00002 to up
All
All
All
IN00000 to IN0000l
Specification
24 VDC +10%/-15%
1.8 k
3.9 k
4.7 k
9 mA typical
6 mA typical
5 mA typical
17 VDC mm., 5 mA
14.4 VDC min., 3 mA
5.0 VDC max., 1 mA
1 to 80 ms max. Default: 10 ms (See note.)
1 to 80 ms max. Default: 10 ms (See note.)
IN00002 to IN00006
IN00007 to up
Note The input time constant can be set to 1,2,3,5,10,20,40 ot 80 ms in the PLC Setup.
B-3
10.
Input
IN00000
IN0000l
IN00002
Appendix B - Specifications
Function
Differential phase
Pulse + direction input Up/down Input mode
Increment mode input
mode
mode
mode
A-phase pulse input
Pulse input
Increment pulse input
Increment pulse input
B-phase pulse input
Direction input
Decrement pulse input Normal input
Z-phase pulse input or hardware reset input
(1N00002 can be used as a normal input when it is not used as a high-speed counter input.)
The minimum pulse widths for the inputs IN00000 (A-phase input) and IN00001 (Bphase input) are as follows:
Pulse-Direction Input mode
Up/Down Input mode
The minimum pulse width for input IN00002 (Z-phase input) is as follows:
Interrupt Inputs
Inputs 1N00003 through IN00006 can be used as interrupt inputs (interrupt input mode or counter
mode) and quick-response inputs. The minimum pulse width for these inputs is 0.05 ms.
B-4
10.
Appendix B - Specifications
CPM2A CPU unit and Expansion I/O Unit Input Specifications (Relay Output)
Ite
m
Specification
Input voltage
Input impedance
24 VDC
4.7 k
Input current
5 mA typical
ON voltage
OFF voltage
ON delay
OFF delay
Circuit configuration
Note The input time constant can be set to 1,2,3,4,5,10,20, 40 or 80 ms in the PLC Setup.
S
pe
cif
ic
ati
on
M
ax
.
s
wi
tc
hi
ng
ca
pa
cit
y
2
A,
25
0
V
A
C
(c
os
=
1)
2
A,
24
V
D
C
Mi
n.
S
wi
tc
hi
ng
ca
pa
cit
y
10
m
A
5
V
D
C
S
er
vi
ce
lif
e
of
rel
ay
El
ec
tri
ca
l:
10.
Appendix B - Specifications
Specification
30 CDT-D
40 CDT-D
60 CDT-D
4.5 to 30 VDC, 0.3 A/Output (See Note)
0.9A/Common 0.9A/Commo
0.9A/Common
2.7 A/Unit
n 3.6 A/Unit
5.4A /Unit
Max. Switching
Capacity
20 EDT
8ET
0.9A/Common
1.8 A/Unit
0.9A/Common
1.8 A/Unit
0.1 mA max.
Leakage Current
Residual Voltage
1.5 V max.
On Delay
OFF Delay
1 ms max.
Circuit configuration
Note When using OUT01000 or OUT01001 as a pulse output, connect a dummy resistor as required
to bring the load current between 0.01 and 0.1A. If the load current is below 0.1A, the ON-toOFF response time will be shorter and high-speed pulses (source-type transistor outputs) will
not be output. On the other hand, if the load current is above 0.1A, the transistor will generate
more heat and components may be damaged.
B-6
10.
Appendix B - Specifications
Specification
30 CDT1-D
40 CDT1-D
60 CDT1-D
4.5 to 30 VDC, 0.3 A/Output (See Note)
0.9A/Common 0.9A/Commo
0.9A/Common
2.7 A/Unit
n 3.6 A/Unit
5.4A /Unit
Max. Switching
Capacity
20 EDT1
8ET1
0.9A/Common
1.8 A/Unit
0.9A/Common
1.8 A/Unit
0.1 mA max.
Leakage Current
Residual Voltage
1.5 V max.
On Delay
OFF Delay
1 ms max.
Circuit configuration
Note When using OUT01000 or OUT01001 as a pulse output, connect a dummy resistor as required
to bring the load current between 0.01 and 0.1A. If the load current is below 0.1A, the ON-toOFF response time will be shorter and high-speed pulses (source-type transistor outputs) will
not be output. On the other hand, if the load current is above 0.1A, the transistor will generate
more heat and components may be damaged.
B-7
10.
Appendix B - Specifications
Item
Function
Insulation
Power supply
Power consumption
Baud rate
Vibration resistance
Shock resistance
Ambient temperature
Operating: 0C to
Humidity
Atmosphere
Weight
RS-232 Adapter
Set this switch to "HOST" when using a Host Link System to connect to a personal computer.
Set this switch to "NT" when connecting to Programmable Terminal or PC for 1:1 link.
Connector
Connects to the CPU's Peripheral Port.
RS-232C Port
Connects to the RS-232C cable from the other device such as a personal computer,
Peripheral Device, or Programmable Terminal.
B-8
10.
Appendix B - Specifications
Shock resistance
Ambient temperature
Specification
Converts between the CMOS format (PC CPU side) and the RS
422C format (Peripheral Device side).
The RS 232C (personal computer side) is insulated by a
DC/DC converter and photocoupler.
Power is supplied from the CPU
0.3 A max.
38,400 bps max.
10 to 57 Hz: 0.075-mm amplitude
57 to 150 Hz: 9.8 m/s 2 (1G) acceleration in X,Y, and Z directions
for 80 minutes each (Time coefficient; 8 minutes x coefficient
factor 10 =total time 80 minutes)
147 m/s 2 (15G) three times each in X,Y, and Z directions
Operating: 0C to
55Storage: -20C to
10%
75
Cto 90% (with no condensation)
Must be free from corrosive gas
200 g max.
Humidity
Atmosphere
Weight
RS-422 Adapter
Set the termination resistance switch to "ON" (upper side) for the link Adapters on both
ends of the Host Link system and for the RS-422 Adapter.
2. Connector
Connects to the CPU's Peripheral Port.
3. RS-422 Port
Connects to the Host Link network.
B-9
10.
Mnemonic
LD
LD NOT
AND
AND NOT
OR
OR NOT
AND LD
OR LD
Code
0
0
0
0
0
0
0
0
Function
Connects an NO condition to the left bus bar.
Connects an NC condition to the left bus bar.
Connects an NO condition in series with the previous condition
Connects an NC condition in series with the previous condition
Connects an NO condition in parallel with the previous condition.
Connects an NC condition in parallel with the previous condition.
Connects two instruction blocks in series.
Connects two instruction blocks in parallel.
Mnemonic
NOP
END
IL
Code
Function
00
--01
Required at the end of the program.
02 It the execution condition for IL(02) is OFF, all outputs are turned
OFF and all timer PVs reset between IL(02) and the next ILC(03).
03
ILC(03) indicates the end of an interlock (beginning at IL(02)).
INTERLOCK
CLEAR
JUMP
ILC
JMP
04
JUMP END
JME
05
In
str
uc
tio
n
M
ne
m
on
ic
C
od
e
Fu
nc
tio
n
O
U
T
P
U
T
O
U
T
0
O
ut
pu
ts
th
e
re
su
lt
of
lo
gi
c
to
a
bit
.
O
U
T
N
O
T
O
U
10.
Instruction
TIMER
COUNTER
REVERSIBLE
COUNTER
HIGH-SPEED
TIMER
Mnemonic
TIM
CNT
CNTR
TIMH
Code
Function
0
An ON-delay (decrementing) timer.
0
A decrementing counter.
12
Increases or decreases PV by one.
15
Mnemonic
CMP
CMPL
Code
Function
20
Compares two four-digit hexadecimal values.
60
Compares two eight-digit hexadecimal values.
(@)BCMP
68
(@)TCMP
85
Mnemonic
(@)MOV
(@)MVN
BLOCK
TRANSFER
BLOCK SET
DATA
EXCHAGE
SINGLE WORD
DISTRIBUTE
DATA
COLLECT
MOVE BIT
(@)XFER
MOVE DIGIT
(@)BSET
(@)XCHG
Code
Function
21
Copies a constant or the content of a word to a word.
22
Copies the complement of a constant or the content of a word to
a word.
70
Copies the content of a block of up to 1,000 consecutive words to
a block of consecutive words.
71
Copies the content of a word to a block of consecutive words.
73
Exchanges the content of two words.
(@)DIST
80
(@)COLL
81
(@)MOVB
82
(@)MOVD
83
C-2
10.
Shift Instructions
Note: 0: Instruction keys allocated to the Programming Console.
Increment/Decrement Instructions
Instruction
INCREMENT
DECREMENT
Mnemonic
(@)INC
(@)DEC
Code
38
39
Function
Increments the BCD content of the specified word by 1.
Decrements the BCD content of the specified word by 1.
Mnemonic
(@)ADD
(@)SUB
Code
30
31
(@)MUL
(@)DIV
32
33
BINARY ADD
BINARY
SUBTRACT
BINARY
MULTIPLY
BINARY
DIVIDE
DOUBLE BCD
ADD
(@)ADB
(@)SBB
50
51
(9MLB
52
(@)DVB
53
(@)ADDL
54
Function
Adds the content of a word (or a constant).
Subtracts the contents of a word (or constant) and CY from the
content of a word (or constant).
Multiplies the content of two words (or contents).
Divides the contents of a word (or constant) by the content of a word
(or constant).
Adds the contents of two words (or constants) and CY.
Subtracts the content of a word (or constant) an CY from the
content of the word (or constant).
Multiplies the contents of two words (or constants).
Divides the content of a word (or constant) by the content of a word
and obtains the result and remainder.
Add the 8-digit BCD contents of two pairs of words (or constants)
and CY.
In
str
uc
tio
n
M
ne
m
on
ic
C
od
e
Fu
nc
tio
n
S
HI
F
T
S
F
T
0/
10
C
op
ie
s
th
e
sp
ec
ifi
ed
bit
(0
or
1)
int
o
th
e
rig
ht
m
os
t
bit
of
a
sh
ift
R
E
GI
S
T
E
R
re
gi
st
er
an
d
sh
ift
s
th
e
ot
he
10.
(Con't)
Logic Instructions
Special Calculation Instructions
Instruction
BIT COUNTER
Mnemonic
(@)BCNT
Code
Function
67 Counts the total number of bits that are ON in the specified block
In
str
uc
tio
n
M
ne
m
on
ic
C
od
e
Fu
nc
tio
n
D
O
U
BL
E
B
C
D
(
@
)S
U
BL
55
Su
btr
ac
ts
th
e
8di
git
B
C
D
co
nt
en
ts
of
a
pa
ir
of
w
or
ds
(or
co
ns
ta
nt
s)
S
U
B
T
R
A
C
T
an
d
C
Y
fro
m
10.
Subroutine Instructions
Interrupt Control Instructions
Step Instructions
Instruction
STEP DEFINE
Mnemonic
STEP
STEP START
SNXT
Code
08
09
Function
Defines the start of a new step and resets the previous step when
used with a control bit. Defines the end of step execution when
used without a control bit.
Starts the execution of the step when used with a control bit.
Mnemonic
(@)BIN
Code
23
Function
Converts 4-digit BCD data to 4-digit binary data.
(@)BCD
24
(@)MLPX
76
(@)DPMX
77
(@)ASC
86
In
str
uc
tio
n
M
ne
m
on
ic
C
od
e
Fu
nc
tio
n
S
U
B
R
O
U
TI
N
E
(
@
)S
B
S
91
Ex
ec
ut
es
a
su
br
ou
tin
e
in
th
e
m
ai
n
pr
og
ra
m.
E
N
T
E
R
S
U
B
R
O
U
TI
N
E
S
B
N
92
M
10.
Mnemonic
(@)MSG
Code
46
Function
Reads up to 8 words of ASCII code (16 characters) from memory and displays
the message on the Programming Console or other Peripheral Device.
Mnemonic
(@)STC
(@)CLC
Code
40
41
Function
Function
7-SEGMENT (@)SDEC
segment display code.
DECODER
78
97
MODE
(@)INI
counter PVs, and
61
Function
CONTROL
PV READ
(@)PRV
COMPARE
(@)CTBL
starts operation.
TABLE LOAD
62
63
Function
FAILURE
(@)FAL
06
Error/Alarm indicator flashes
ALARM
SEVERE
FAL
indicator lights and
FAILURE
ALARM
07
C-6
10.
Mnemonic
(@)RXD
(@)TXD
Code
47
48
Function
Receives data via a communication port.
Sends data via a communication port.
Mnemonic
(@)SRCH
Code
--
FIND
MAXIMUM
FIND MINIMUM
(@)MAX
--
(@)MIN
--
Function
Searches the specified range of memory for the specified data.
Outputs the word address(es) of words in the range that contain
the data.
Finds the maximum value in the specified data area and
outputs that value to another word.
Finds the minimum value in the specified data area and outputs
that value to another word.
In
str
uc
tio
n
M
ne
m
on
ic
C
od
e
Fu
nc
tio
n
D
O
U
BL
E
B
C
D
(
@
)B
IN
L
58
C
on
ve
rts
B
C
D
va
lu
e
in
tw
o
co
ns
ec
uti
ve
so
ur
ce
w
or
ds
int
o
bi
na
ry
T
O
D
O
U
BL
E
an
d
10.
Mnemonic
ZCP
ZCPL
Code
---
Function
Compare a word to a range defined by lower and upper limits
and outputs the result to the GR,EQ and LE flags.
Compares an 8-digit value to a range defined by lower and
upper limits and outputs the result to the GR, EQ and LE flags.
Control Instruction
Instruction
PULSE WIDTH
VARIABLE
DUTY RATIO
PID CONTROL
ACCELERATION
CONTROL
Mnemonic
(@)PWM
PID
(@)ACC
Code
----
Function
Outputs pulses with the specified duty ratio (0% to 99%)
Performs PID control based on the specified parameters.
Together with PULS(-), ACC(-) controls the acceleration and/or
deceleration of pulses output.
Mnemonic
TMHH
Code
--
Function
A high speed, decrementing ON-delay timer that times in 1-ms
units
LONG TIMER
START
SYNHRONIZED
CONTROL
TIML
(@)SYNC
---
In
str
uc
tio
n
M
ne
m
on
ic
C
od
e
Fu
nc
tio
n
S
U
M
(
@
)S
U
M
-C
o
m
pu
te
s
th
e
su
m
if
th
e
co
nt
en
ts
of
th
e
w
or
ds
in
th
e
sp
ec
ifi
ed
C
A
L
C
U
L
A
T
E
ra
ng
e
of
m
e
m
or
y.
Data area
IR area
Words
Input area
IR 000 to IR
009 (10 words)
*utput area
IR010 to IR0l9
(10 words)
IR 200 to IR
231 (32 words)
Work area
SR area
SR 232 to SR
255 (24 words)
TR area
--
HR area2
HR 00 to HR
19 (20 words)
AR area
AR00 to AR 15
(16 words)
LR 00 to LR 15
(16 words)
LR area1
Read/writ
e2
Error Log
4
Readonly 4
PC Setup4
Bits
IR 00000 to IR
00915
(160 bits)
IR 0l000toIR 0l9l5
(160 bits)
IR 20000 to IR
23115
(512 bits)
SR 23200 to SR
25515
(384 bits)
TR 0 to TR 7
(8 bits)
HR 0000 to HR 1915
(320 bits)
AR 0000 to AR 1515
(256 bits)
LR 00000 to LR
1515
(256 bits)
TC 000 to TC 127 (timer/counter numbers
)3
DM 0000 to
--DM0999
(1,002
words) to DM
--DM1000
1021 (22
words)
DM6144 to DM
6599
DM 6600 to DM
6655 (56 words)
-----
Function
These bits can be allocated to the external
I/* terminals
Note: 1. IR and LR bits that are not used for their allocated functions can be used as work bits.
2.
3.
4.
The contents of the HR area, LR area, Counter area, and read/write DM area are backed
up by a capacitor. At 25 *C, the capacitor will back up memory for 20 days.
When accessing a PV, TC numbers are used as word data; when accessing Completing
Flags, they are used as bit data.
Data in DM6144 to DM6655 cannot be overwritten from the program, but they can
be changed from a Peripheral Device.
D-1
Bit(s)
00 to 15
SR 236 to
SR 239
00 to 15
SR240
00 to 15
SR241
00 to 15
SR242
00 to 15
SR 243
00 to 15
SR 244
00 to 15
SR 245
00 to 15
SR 246
00 to 15
SR 247
00 to 15
SR 248,
SR 249
SR 250
00 to 15
SR 251
00 to 15
SR252
00
01 to 07
08
00 to 15
09
10
11
Function
Macro Function Input Area
Contains the input operands for MCR*(99).
(Can be used as work bits when MCR*(99) is not used.)
Macro Function *utput Area
Contains the output operands for MCR*(99).
(Can be used as work bits when MCR*(99) is not used.)
Input Interrupt 0 Counter Mode SV
SV when input interrupt 0 is used in counter mode (4 digits hexadecimal). (Can
be used as work bits when input interrupt 0 is not used in counter mode.)
Input Interrupt 1 Counter Mode SV
SV when input interrupt 1 is used in counter mode (4 digits hexadecimal). (Can
be used as work bits when input interrupt 1 is not used in counter mode.)
Input Interrupt 2 Counter Mode SV
SV when input interrupt 2 is used in counter mode (4 digits hexadecimal). (Can
be used as work bits when input interrupt 2 is not used in counter mode.)
Input Interrupt 3 counter Mode SV
SV when input interrupt 3 is used in counter mode (4 digits hexadecimal). (Can
be used as work bits when input interrupt 3 is not used in counter mode.)
Input Interrupt 0 Counter Mode PV
Counter PV- 1 when input interrupt 0 is used in counter mode (4 digits hexadecimal).
Input Interrupt 1 Counter Mode PV
Counter PV-1 when input interrupt 1 is used in counter mode (4 digits hexadecimal).
Input Interrupt 2 Counter Mode PV
Counter PV-1 when input interrupt 2 is used in counter mode (4 digits hexadecimal).
Input Interrupt 3 Counter Mode PV
Counter PV-1 when input interrupt 3 is used in counter mode (4 digits hexadecimal).
High-speed Counter PV Area
(Can be used as work bits when the high-speed counter is not used.)
Analog Volume Setting 0
Used to store the 4-digit BCD set value (0000 to 0200) from analog volume control 0.
Analog Volume Setting 1
Used to store the 4-digit BCD set value (0000 to 0200) from analog volume control 1.
High Speed Counter Reset Bit
Not Used.
Peripheral Port
Turn *n to reset peripheral port.(Not valid when peripheral device is connected.)
Automatically turns * FF when reset is complete.
Not Used.
PLC Setup Reset Bit
Turn *N to initialize PC Setup (DM 6600 through DM 6655). Automatically turns * FF
again when reset is complete. *nly effective if the PC is in PR*GRAM mode.
Forced Status Hold Bit
* FF : The forced status of bit that are forced set/reset are cleared when switching
between PR*GRAM mode and M*NIT*R mode.
*N : The status of bits that are forced set/reset are maintained when switching between
PR*GRAM mode and M*NIT*R mode.
D-2
SR 253
SR 254
Bit(s)
12
Function
I/* Hold Bit
* FF : IR and LR bits are reset when starting or stopping operation.
*N : IR and LR bit status is maintained when starting or stopping operation
13
Not used.
14
Error Log Reset Bit
Turn *N to clear error log. Automatically turns * FF again when operation is complete.
15
Not Used
00 to 07 FAL Error Code
The error code (a 2-digit number) is stored here when an error occurs. The FAL number
is stored here when FAL(06) or FALS(07) is executed. This word is reset (to 00) by
executing a FAL 00 instruction or by clearing the error from a Peripheral Device.
08
No Used
09
Cycle Time *verrun Flag
Turns *N when a cycle time overrun occurs (i.e., when the cycle time exceeds 100 ms).
10 to 12 Not used.
13
Always *N Flag
14
Always * FF Flag
15
First Cycle Flag
Turns *N for 1 cycle at the start of operation.
00
1-minute clock pulse (30 seconds *N; 30 seconds *FF)
01
02
03 to 05
Not used.
06
07
00
01
02
03
D-3
Bit(s)
00 to 15
Not used.
00
01
02
03 to 07
12 to 15
00to 15
AR09
AR10
00 to 07
08 to 11
12
13
14 to 15
00 to 15
00 to 15
AR11
00 to 07
Not Used
Peripheral Device Error Code
Peripheral Device Error Flag
Peripheral Device Transmission Enabled Flag
Not Used.
Not Used.
Power-off Counter (4 digits BCD)
This is the count of the number of times that the power has been turned off. To clear
the count, write "0000" from a peripheral device.
High-speed Counter Range Comparison Flags
00 *N: Counter PY is within comparison range 1
0l *N: Counter PV is within comparison range 2
02 *N: Counter PV is within comparison range 3
03 *N: Counter PV is within comparison range 4
04 *N: Counter PV is within comparison range 5
05 *N: Counter PY is within comparison range 6
06 *N: Counter PV is within comparison range 7
07 *N: Counter PV is within comparison range 8
Not used.
Pulse *utput Status
*N:
Stopped.
*FF:
Pulse being output.
Not Used.
Power-up PC Setup Error Flag
Turns *N when there is an error in DM 6600 to DM 6614 (the part of the PC Setup area
that is read at power-up).
Start-up PC Setup Error Flag
Turns *N when there is an error in DM 6615 to DM 6644 (the part of the PC Setup area
that is read at the beginning of operation).
RUN PC Setup Error Flag
Turns *N when there is an error in DM 6645 to DM 6655 (the part of the PC Setup area
that is always read).
Not Used.
Long Cycle Time Flag
Turns *N if the actual cycle time is longer than the cycle time set in DM 6619.
Not Used.
AR03 to
AR 07
AR08
08 to 14
15
AR12
AR13
00 to 15
00
01
02
03,04
05
06,07
Function
D-4
Bit(s)
08
09
10
Function
Memory Area Specification Error Flag
Turns *N when a non-existent data area address is specified in the program.
13
AR14
14,15
00 to 15
AR15
00 to 15
SR area
TR area
Words
IR 000 to IR 009
(10 words)
IR010 to IR0l9
(10 words)
IR 020 to IR 049
IR200 to IR 231
(58 words)
SR 228 to SR 255
(28 words)
--
Bits
IR 00000 to IR 00915
(160 bits)
IR 0l000toIR
0l9l5 (160 bits)
IR 02000 to IR 04915
IR 20000 to IR 23115
(928 bits)
SR 22800 to SR 25515
(440 bits)
TR 0 to TR 7
(8 bits)
HR 0000 to HR 1915
(320 bits)
HR area2
HR 00 to HR
19 (20 words)
AR area
AR00 to AR 23
AR 0000 to AR 2315
(23 words)
(384 bits)
LR 00 to LR 15
LR 00000 to LR 1515
(16 words)
(256 bits)
TC 000 to TC 225 (timer/counter numbers )3
LR area1
Timer /Counter Area
DM
area
Read/writ
e2
Error Log
4
Readonly 4
PC Setup4
DM 0000 to
DM1999
DM2022 to DM
2047
(2,026 words)
DM2000 to DM
2021 (22
words)
---
DM6144 to DM
6599
(456 words)
DM 6600 to DM
6655 (56 words)
---
---
---
Function
These bits can be allocated to the
external I/* terminals
Note: 1. IR and LR bits that are not used for their allocated function can be used as work bits.
2. The contents of the HR area, LR area, Counter area, and read/write DM are backed up by
the CPU Unit's battery. I F the battery is removed or fails, the content of these area will be
lost and unstable.
3. When a TC numbers is used as a word operand, the timer or counter PV is accessed; when
used as a bit operand, its Completion Flag is accessed.
4. Data is DM 6144 to DM 6655 cannot be overwritten from the program, but they can be
changed from a Programming Device.
5. The program and data in DM 6144 to DM 6655 are stored in flash memory.
D-6
D-7
Bit(s)
00
01 to 03
04
05
06,07
08
09
10
11
12
13
14
SR 253
15
00 to 07
08
09
10,11
12
13
14
15
SR254
00
01
02
03 to 05
06
07
08 to 15
Function
High-Speed Counter Reset Bit
Not Used
Pulse *utput 0 PV Reset Bit
Turn *N to clear the PV of pulse output 0.
Pulse *utput 0 PV Reset Bit
Turn *N to clear the PV of pulse output 1.
Not Used.
Peripheral Port Reset Bit
Turn *N reset the Peripheral Port. Automatically turns * FF when reset is complete.
RS-232C Port Reset Bit
Turn *N reset the RS-232C Port. Automatically turns *FF when reset is complete.
PC Setup Reset Bit
Turn *N to intialize PC setup (DM 6600 through DM6655). Automatically turns * FF again
when reset is complete. *nly effective if the PC is in PR*GRAM mode.
Forced Status Hold Bit
* FF : The force status of bits that are forced set/reset is cleared when switching
between PR*GRAM mode and M*NIT*R mode.
*N : The status of the bits that are forced set/reset are maintained when switching between
PR*GRAM mode and M*NIT*R mode.
I/* Hold Bit
* FF : IR and LR bits are reset when starting or stopping operation.
*N : IR and LR bit status is maintained when starting or stopping operation.
Not Used.
Error Log Reset Bit
Turn *N to clear error log. Automatically turns * FF again when operation is complete.
Not Used.
FAL Error Code
The error code is stored here when an error occurs. The FAL number is stored here when FAL
(06) or FAL (07) is executed. This word is reset ( to 000) by executing a FAL 00 instruction or by
clearing the error from a Programming Device.
Battery Error Flag
Turns *N when the CPU Unit backup battery's voltage is too low.
Cycle Time *verrun Flag
Turns *N when a cycle time overrun occurs
Not Used.
Changing RS-232C setup Flag
Turns *N when the RS-232C port's setting are being changed.
Always *N Flag.
Always * FF Flag
First Cycle Flag
Turn s *N for 1 cycle at the start of operation.
1-minute clock pulse (30 seconds *N; 30 seconds *FF)
0.02-second clock pulse (0.01 second *N; 0.01 second * FF)
Negative (N) Flag
Not used.
Differential Monitor Complete Flag
STEP (08) Execution Flag
Turns *N for 1 cycle only at the start of process based on STEP(08).
Not used.
D-8
Bit(s)
00
01
02
03
04
05
06
07
08 to 15
Function
0.1-second clock pulse (0.05 second *N; 0.05 second * FF)
0.2-second clock pulse (0.1 second *N; 0.1 second * FF)
1.0-second clock pulse (0.5 second *N; 0.5 second * FF)
Instruction Execution Error (ER) Flag
Turns *N when an error occurs during execution of an instruction.
Carry (CY ) Flag
Turns *N when there is a carry in the results of an instruction execution.
Greater Than (GR) Flag
Turns *N when the result of a comparison operation is "greater."
Equals (EOJ Flag
Turns *N when the result of a comparison operation is "equal," or when the
result of an instruction execution is 0.
Less Than (LE) Flag
Turns *N when the result of a c9mparison operation is "less."
Not used.
D-9
AR03
to AR
07
AR08
Bit(s)
00 to 15
Function
Not used.
00 to 07
08 to 11
12 to 15
00 to 15
Not Used.
Number of Expansion Units Connected
Not Used.
Not Used.
00 to 03
04
05
06
07
08 to 11
12
13
14
15
AR09
00 to 15
AR10
00 to 15
D-11
Bit(s)
00 to 07
08
09
10
11
12
13
14
15
AR12
00 to 11
12
13
14
15
Function
High-speed Counter Range Comparison Flags
00 *N: Counter PY is within comparison range 1
0l *N: Counter PV is within comparison range 2
02 *N: Counter PV is within comparison range 3
03 *N: Counter PV is within comparison range 4
04 *N: Counter PV is within comparison range 5
05 *N: Counter PY is within comparison range 6
06 *N: Counter PV is within comparison range 7
07 *N: Counter PV is within comparison range 8
High Speed Counter Comparison
*N:
*perating
*FF:
Stopped
High-Speed Counter PV overflow/underflow
*N:
*verflow/Underflow occurred.
*FF:
Normal operation
Not Used.
Pulse *utput 0 Accelerating /Decelerating Flag
*N:
Accelerate/Decelerate
*FF:
Constant rate
Pulse *utput 0 *verflow/underflow Flag
*N:
*verflow/Underflow
*FF:
Normal
Pulse *utput 0 Pulse Quantity Set Flag
*N:
Pulse quantity has been set.
*FF:
Pulse quantity has not been set.
Pulse *utput 0 *utput Completed Flag
*N:
Completed
*FF:
Not Completed
Pulse *utput 0 *utput Status
*N:
Pulses being output.
*FF:
Stopped.
Not Used.
Pulse *utput 1 *verflow/underflow Flag
*N:
*verflow/Underflow
*FF:
Normal
Pulse *utput 1 Pulse Quantity Set Flag
*N:
Pulse quantity has been set.
*FF:
Pulse quantity has not been set.
Pulse *utput 1 *utput Completed Flag
*N:
Completed
*FF:
Not Completed
Pulse *utput 1 *utput Status
*N:
Pulses being output.
*FF:
Stopped.
D-12
Bit(s)
00
01
02
03,04
05
06,07
08
09
10
11
12
13
14
AR14
15
00 to 15
AR15
00 to 15
AR16
AR17
00 to 15
00 to 07
08 to 15
00 to 07
08 to 15
00 to 07
08 to 15
AR18
AR19
Function
Power-up PC Setup Error Flag
Turns *N when there is an error in DM 6600 to DM 6614 (the part of the PC Setup area
that is read at power-up).
Start-up PC Setup Error Flag
Turns *N when there is an error in DM 6615 to DM 6644 (the part of the PC Setup area
that is read at the beginning of operation).
RUN PC Setup Error Flag
Turns *N when there is an error in DM 6645 to DM 6655 (the part of the PC Setup area
that is always read).
Not Used.
Long Cycle Time Flag
Turns *N if the actual cycle time is longer than the cycle time set in DM 6619.
Not Used.
Memory Area Specification Error Flag
Turns *N when a non-existent data area address is specified in the program.
Flash Memory Error Flag
Turns *N when there is an error in flash memory.
Read-only DM Error Flag
Turns *N when a checksum error occurs in the read-only DM (DM 6144 to DM 6599)
and that area is initialized.
PC Setup Error Flag
Turns *N when a checksum error occurs in the PC Setup area.
Program Error Flag
Turns *N when a checksum error occurs in the program memory (UM) area, or
when an improper instruction is executed.
Expansion Instruction Error Flag
Turns *N when a checksum error occurs in the expansion instruction data.
Data Save Error Flag
Urns *N if the data could not be retained with the backup battery.
Not Used.
Maximum Cycle Time (4 digits BCD)
The longest cycle time since the beginning of operation is stored. It is not cleared when
operation stops, buts iti is cleared when the operation starts again.
Current Cycle Time (4 digits BCD)
The most recent cycle time during operation is stored. The current Cycle Time is not
cleared when operation stops.
Not Used.
Minute (00 to 59, BCD)
Hour (00 to 59, BCD)
Second (00 to 59, BCD
Minute (00 to 59, BCD)
Hour (00 to 23, BCD)
Day of the Month (01 to31, BCD)
D-13
Bit(s)
00 to 07
08 to 15
00 to 07
08 to 12
13
14
15
AR22
AR23
00 to 15
00 to 15
Function
Month (01 to 12, BCD)
Year (00 to 99,BCD)
Day of the Week
00: Sunday
1: Monday
2: Tuesday
3: Wednesday
4: Thursday
5: Friday
6: Saturday
Not Used.
30-second Compensation Bit
Clock Stop Bit
Turn this bit *N to stop the clock. The time/data can be overwritten while this bit is *N.
Clock Set Bit
To change the time/date, turn *N AR 2114, write the new time/date, and then turn this bit
*N to enable a new time/date setting.
Not Used.
Power off Counter (4 digit BCD)
This is the count of the number of times that the power has been turned off. To clear the
count , write "0000" from a Programming Device.
D-14
00 to 07
08 to 15
DM 6601
00 to 07
08 to 11
12 to 15
DM 6602
00 to 03
04 to 07
DM 6603
DM 6604
DM 6605 to
DM6614
08 to 11
00 to 15
00 to 07
08 to 15
00 to 15
E-1
Word(s)
DM6619
Bit(s)
00 to 15
DM 6620
00 to 03
DM 6621
04 to 07
08 to 11
12 to 15
00 to 07
Function
Cycle Time
0000: Variable (no minimum)
0001 to 9999 (BCD): Minimum time in ms.
Interrupt Processing (DM 6620 to DM 6639)
The following settings are effective after transfer to the PLC the next time operation is started.
DM 6622
DM 6623
DM 6624
DM 6625
DM6626 to
DM6627
DM6628
08 to 15
00 to 07
08 to 15
00 to 07
08 to 15
00 to 07
00 to 07
08 to 15
00 to 15
00 to 03
Interrupt enable for IR 00000 (0: Normal input; 1: Interrupt input; 2: Quick-response)
Interrupt enable for IR 00001(0: Normal input; 1: Interrupt input; 2: Quick-response)
04 to 07
08 to 11
Interrupt enable for IR 00002 (0: Normal input; 1: Interrupt input; 2: Quick-response)
12 to 15
Interrupt enable for IR 00003 (0: Normal input; 1: Interrupt input; 2: Quick-response)
High-speed Counter Settings (DM 6640 to DM 6644)
The following settings are effective after transfer to the PC the next time operation is started.
DM6640 to
00 to 15
Not Used.
DM6641
DM6642
00 to 03 High-speed counter mode
0: Up/down counter mode; 4: Incrementing counter mode
04 to 07 High-speed counter reset mode
0: Z phase and software reset; 1: Software reset only
08 to 15 High-speed counter enable
00: Don't use high-speed counter; 01: Use high-speed counter with settings in 00 to 07
DM6643,
00 to 15
Not Used.
DM6644
E- 2
00 to 15
Not Used.
Port settings
00: Standard (1 start bit, 7-bit data, even parity, 2 stop bits, 9,
6000 bps) 01: Settings in DM 6651
(Other settings will cause a non-fatal error and AR 1302 will turn ON.)
08 to 11
Link area for one-to-one PC link via peripheral
port: 0: LR00toLR 15
12 to 15 Communications mode
0: Host link; 2: One-to-one PC link (slave) 3: One-to-one PC link (master); 4:
NT link (Other settings will cause a non-fatal error and AR 1302 will turn ON.)
DM 6651
00 to 07 Baud rate
00:1.2K, 01: 2.4K, 02: 4.8K, 03: 9.6K, 04:19.2K
08 to 15 Frame format
Start
Data
Stop
Parity
00:
1 bit
7 bits
1 bit
Even
1:
1 bit
7 bits
1 bit
Odd
2:
1 bit
7 bits
1 bit
None
3:
1 bit
7 bits
2 bit
Even
4:
1 bit
7 bits
2 bit
Odd
5:
1 bit
7 bits
2 bit
None
6:
1 bit
8 bits
1 bit
Even
7:
1 bit
8 bits
1 bit
Odd
8:
1 bit
8 bits
1 bit
None
9:
1 bit
8 bits
2 bit
Even
10:
1 bit
8 bits
2 bit
Odd
11:
1 bit
8 bits
2bit
None
(Other settings will cause a non-fatal error and AR 1302 will turn ON.)
DM 6652
00 to 15 Transmission delay (Host Link)
0000 to 9999: in ms.
(Other settings will cause a non-fatal error and AR 1302 will turn ON.)
DM 6653
00 to 07 Node number (Host
Link) 00to31 (BCD)
(Other settings will cause a non-fatal error and AR 1302 will turn ON.)
08 to 15 Not Used.
DM 6654
00 to 15 Not Used.
Error Log Settings (DM 6655)
The following settings are effective after transfer to the PLC.
00 to 03 Style
DM 6655
0: Shift after 7 records have been
stored 1: Store only first 7 records (no
shifting) 2 to F: Do not store records
04 to 07 Not Used.
08 to 11 Cycle Time monitor enable.
0: Detect long cycles as non-fatal
errors 1: Do not detect long cycles
12 to 15
Not Used.
00 to 07
E-3
00 to 07
08 to 15
DM 6601
00 to 07
08 to 11
12 to 15
DM 6602
00 to 03
04 to 07
DM 6603
DM 6604
DM 6605 to
DM6614
08 to 11
12 to 15
0 to 15
00 to 07
08 to 15
00 to 15
E- 4
08 to 15
00 to 07
08 to 15
00 to 07
08 to 15
00 to 07
08 to 15
00 to 07
08 to 15
00 to 15
00 to 03
04 to 07
08 to 11
12 to 15
DM 6620
00 to 03
DM 6621
04 to 07
08 to 11
12 to 15
00 to 07
DM 6622
DM 6623
DM 6624
DM 6625
DM6626 to
DM6627
DM6628
E- 5
Bit(s)
00 to 03
04 to 07
08 to 15
Function
PV coordinate system for pulse output 0
0: Relative coordinates; 1: Absolute coordinates
PV coordinated system for pulse output 1
0: Relative coordinates; 1: Absolute coordinates
Not Used.
00 to 15
Not Used.
DM 6630 to
DM 6641
High-speed Counter Settings (DM 6640 to DM 6644)
The following settings are effective after transfer to the PC the next time operation is started.
00 to 15
Not Used.
DM6640 to
DM6641
DM6642
00 to 03 High-speed counter mode
04 to 07
DM 6642
08 to 15
2:
00 to 15
DM 6643,
DM6644
RS-232C Port Communications Settings
The following settings are effective after transfer to the PC.
If the CPU Unit's Communication Switch is ON, communications through the RS-232C port are governed by
the default settings (all 0) regardless of the setting in DM 6645 through DM 6649.
DM 6645
00 to 03 Port settings
00: Standard (1 start bit, 7-bit data, even parity, 2 stop bits, 9, 6000
bps) 01: Settings in DM 6646
04 to 07
08 to 11
12 to 15
(Any other settings will cause a non-fatal error and AR1302 will turn ON.)
CTS control setting
0: Disable CTS control;
1: Enable CTS control.
(Any other settings will cause a non-fatal error and AR1302 will turn ON.)
Link Words for one-to-one link:
0: LR 00 to LR15 (Other setting is ineffective.)
Communications mode
0: Host link; 1 No-protocol; 2: 1:1 PC link (Slave); 3: 1:1 PC link (Master); 4:NT link
(Any other setting specifies host link mode, causes a non-fatal error, and turns ON
AR1302.)
E- 6
Bit(s)
00 to 07
08 to 15
DM 6647
00 to 15
DM6648
00 to 07
08 to 11
12 to 15
DM6649
00 to 07
08 to 15
Function
Baud rate
00:1.2K, 01: 2.4K, 02: 4.8K, 03: 9.6K, 04:19.2K Os to 15 Frame format
Frame Format
Start
Data
Stop
Parity
00:
1 bit
7 bits
1 bit
Even
1:
1 bit
7 bits
1 bit
Odd
2:
1 bit
7 bits
1 bit
None
3:
1 bit
7 bits
2 bit
Even
4:
1 bit
7 bits
2 bit
Odd
5:
1 bit
7 bits
2 bit
None
6:
1 bit
8 bits
1 bit
Even
7:
1 bit
8 bits
1 bit
Odd
8:
1 bit
8 bits
1 bit
None
9:
1 bit
8 bits
2 bit
Even
10:
1 bit
8 bits
2 bit
Odd
11:
1 bit
8 bits
2bit
None
(Any other settings specifies standard settings (1 start bit, 7 data bits; even parity, 2
stop
bits, 9600
bps),to
causes
a non-fatal
error,ofand
ON ms)
AR1302)
Transmission
( 0000
9999 BCD
set a delay
0 toturn
99,990
(Any other setting specifies a delay of 0 ms, causes a non-fatal error, turns ON AR1302.)
Node Number (Host Link)
00 to 31 (BCD)
(Any other setting specifies a node number of 00, causes a non-fatal error, and turns ON
AR1302.)
Start code selection for no-protocol communications.
0: Disable start code; 1 Enables start code in DM 6649
(Any other setting disables the start code, cause a non-fatal error, and turn ON AR1302).
End code selection for no-protocol communications.
0: Disable end code; 1 :Enables end code in DM 6649; 2:Sets end code of CR,LF
(Any other setting disables the end code, cause a non-fatal error, and turn ON AR1302).
Start Code (00 to FF)
(This setting is valid only when bits 8 to 11 of DM 6648 are set to 1.)
When bits 12 to 15 of DM 6648 set to 0:
Set the number of bytes to receive. (00:256 bytes; 01 to FF: 1
to 255 bytes) When bits 12 to 15 of DM 6648 set to 1: Sets
the end code. (00 to FF).
E- 7
00 to 03
04 to 11
12 to 15
DM 6651
00 to 07
08 to 15
DM 6652
00 to 15
DM 6653
00 to 07
08 to 11
12 to 15
Port settings
00: Standard (1 start bit, 7-bit data, even parity, 2 stop bits, 9, 6000 bps)
01: Settings in DM 6651
(Any other setting specifies standard settings, causes a non-fatal error, and turns ON
AR1302.)
Not Used.
Communications mode
0: Host link; 2: No-protocol
(Any other setting specifies host link, causes a non-fatal error, and turns ON AR 1302.)
Baud rate
00:1.2K, 01: 2.4K, 02: 4.8K, 03: 9.6K, 04:19.2K
Frame format
Start
Data Stop
Parity
00:
1 bit 7 bits 1 bit Even
1:
1 bit
7 bits 1 bit Odd
2:
1 bit
7 bits 1 bit None
3:
1 bit
7 bits 2 bit Even
4:
1 bit
7 bits 2 bit Odd
5:
1 bit
7 bits 2 bit None
6:
1 bit
8 bits 1 bit Even
7:
1 bit
8 bits 1 bit Odd
8:
1 bit
8 bits 1 bit None
9:
1 bit
8 bits 2 bit Even
10:
1 bit
8 bits 2 bit Odd
11:
1 bit
8 bits 2 bit None
Any other settings specifies standard settings (1 start bit, 7 data bits; even parity, 2 stop
bits, 9600 bps), causes a non-fatal error, and turn ON AR1302)
Transmission delay (Host Link)
0000 to 9999: in ms.
(Any other setting specifies a delay of 0 ms, causes a non-fatal error, turns ON AR1302.)
Node number (Host Link)
00to31 (BCD)
Any other setting specifies a node number of 00, causes a non-fatal error, and
turns ON AR1302.)
Start code selection for no-protocol communications.
0: Disable start code; 1 Enables start code in DM 6649
(Any other setting disables the start code, cause a non-fatal error, and turn ON AR1302).
End code selection for no-protocol communications.
0: Disable end code; 1 :Enables end code in DM 6649; 2:Sets end code of CR,LF
(Any other setting disables the end code, cause a non-fatal error, and turn ON AR1302).
E-8
Bit(s)
00 to 07
Function
Start Code (00 to FF)
(This setting is valid only when bits 8 to 11 of DM 6648 are set to 1.)
08 to 15 When bits 12 to 15 of DM 6648 set to 0:
Set the number of bytes to receive. (00:256 bytes; 01 to FF: 1
to 255 bytes) When bits 12 to 15 of DM 6648 set to 1: Sets
the end code. (00 to FF).
Error Log Settings (DM 6655)
The following settings are effective after transfer to the PLC.
DM 6655
00 to 03 Style
0: Shift after 7 records have been stored
1: Store only first 7 records (no shifting)
2 to F: Do not store records
04 to 07
Not Used.
Cycle
time monitor enable
08 to 11
E- 9
1999OMRONASIAPACIFICPTELTD
All rights reserved. No part of this material may be reproduced,
stored in a retrieval system, or transmitted, in any form, or by any
means, mechanical, electronic, photocopying, recording, or
otherwise, without prior written permission of Omron Asia Pacific
Pte Ltd
No patent liability is assumed with respect to the use of the
information contained herein. Every precaution has been taken in
the preparation of this booklet; however OMRON assumes no
responsibility for errors or omissions.
Version 1.0
12th July 1999