PLC-Based Traffic Light System
PLC-Based Traffic Light System
Saya ________________________________________________________________
AZRULNOR BIN AHMAD ( 840418-09-5011 )
(HURUF BESAR)
√ TIDAK TERHAD
Disahkan oleh:
___________________________ ___________________________
(TANDATANGAN PENULIS) (TANDATANGAN PENYELIA)
Alamat Tetap:
NOVEMBER 2007
II
I declare that this thesis entitled “Development of a traffic light control system“ is
the result of my own research except as cited in the references. The thesis has not
been accepted for any degree and is not concurrently submitted in candidature of any
other degree.
Signature : ....................................................
ACKNOWLEDGEMENT
I also like to acknowledge the lectures and staff who gave invaluable tips and
helps to me. Also to my fellow friends who was sharing the opinions to me. Not to
forget to my beloved and respected dad, mom, brother and sisters who constantly
gave morale support to me when I’m really needed.
V
ABSTRACT
ABSTRAK
TABLE OF CONTENTS
1 INTRODUCTION
1.1 Overview of traffic light system 1
1.2 Overview of Programmable Logic Controller 2
1.3 Project Objectives 4
1.4 Project Scopes 5
1.5 Problem statement 5
1.6 Thesis outline 6
2 SYSTEM HARDWARE
2.1 Introduction 8
2.2 Programmable Logic Controller 9
2.2.1 PLC configuration 9
2.2.2 Basic PLC schema 11
2.2.3 PLC operation 13
2.2.4 Internal PLC 14
VIII
3 SYSTEM SOFTWARE
3.1 Introduction to CX-Programmer 21
3.2 Diagram workspace 22
3.3 Program development 23
REFFERENCE 35
APPENDICES
APPENDIX A – CQM1H Manual 36
APPENDIX B – Dedicated I/O Units 59
APPENDIX C – Traffic light program 70
IX
LIST OF FIGURES
LIST OF TABLE
CHAPTER 1
INTRODUCTION
Ever since Roman times, society has tried to control traffic. Even the fabled
Roman road system created a conflict between pedestrian and equine travelers.
However, a practical solution was not developed until the mid-nineteenth century,
when J. P. Knight, a railway signaling engineer, created the first traffic signal, which
was installed near Westminster Abbey in London, England in 1868. Unfortunately,
the device exploded, killing a police officer, and its use was discontinued after being
in operation for only a short time.
The modern traffic light was invented in America. New York had a three-
color system in 1918 that was operated manually from a tower in the middle of the
street. Other cities soon adopted the idea of having someone on the scene to control
the lights. Garrett Morgan, inventor of the gas mask, also developed traffic signaling
devices. Having witnessed an accident between a car and a carriage, Morgan felt
compelled to devise a system to prevent such collisions at street intersections. In
1923 he patented an electric traffic light system using a pole with a cross section on
which the words STOP and GO were illuminated.
2
These basic designs were soon improved. In 1926 the first automatic signals
were installed in London; they depended on a timer to activate them. In the 1930s
vehicle-activated lights were created in which cars rolled over half-buried rubber
tubes. Air in the tubes was displaced by the weight of the car rolling over them, and
the increased pressure operated an electric contact, activating the lights. But these
tubes wore out quickly. A better idea was the inductive-loop device: a loop of wire
was imbedded in the road itself and connected to a box controlling the lights; a
current of electricity passed through the loop, and when the steel body of a car
passed overhead, it produced a signal that activated the light.
Each input/output card has a plurality of I/O points. The I/O modules are
typically pluggable into respective slots located on a backplane board in the PLC.
An I/O bus couples the cards in the slots back to the processor of the programmable
logic controller. The slots are coupled together by a main bus which couples any I/O
modules plugged into the slots to a central processing unit (CPU).
The CPU itself can be located on a card which is pluggable into a dedicated
slot on the backplane of the PLC. The particular processor employed in a PLC
together with the particular choice of input and output cards installed in the PLC
rack are often referred to as the hardware configuration of the programmable logic
controller. The hardware configuration also includes the particular addresses which
the I/O cards. Each option module typically has a plurality of input/output points.
4
The option modules are coupled through an interface bus, for example via a
backplane, to a main controller having a microprocessor executing a user program.
Option modules may also include a microprocessor and a memory containing
separate user programs and data directed to a particular operation of the PLC
system. During the execution of a stored control program, the PLC's read inputs
from the controlled process and, per the logic of the control program, provide
outputs to the controlled process. The outputs typically provide analog or binary
voltages or "contacts" implemented by solid state switching devices.
This project is about develop a new practical traffic light control system
which the system will solve the traffic congestion issue. To develop the project,
there are two objectives that must be accomplished which are:-
iii. Combine the software part and the hardware part to simulate a traffic light
system.
The monitoring and control of city traffic light is becoming a major problem
in many countries. The increasing number of vehicles and the lower phase of
highways developments have led to traffic congestion problem especially in major
cities such as Kuala Lumpur, Georgetown, Johor Bahru, and Ipoh. Travel time,
environment quality, life quality, and road safety are all adversely affected as a
result of traffic congestions. In addition, delays due to traffic congestions also
indirectly affect productivity, efficiency, and energy losses.
There are many factors that lead to traffic congestion such as the density of
vehicles on the roads, human habits, social behavior, and traffic light system. One
major factor is due to the traffic lights system that controls the traffic at junction.
Traffic policeman are deployed at traffic intersection everyday in order to overcome
these congestion during peak hour, thus one of the roots of the problem is due to
ineffective traffic lights controllers. With effective control the intersection, it is
6
believed that the overall capacity and performance of urban traffic network could be
resolve.
Chapter 4 presents all the results obtained and the configuration of doing
simulation in the real world.
CHAPTER 2
SYSTEM HARDWARE
2.1 Introduction
The hardware part of this project is Programmable logic controller (PLC) and
a traffic light model. Omron CQM1H-CPU51 is the type of PLC used in this project
as the processor to control the traffic light. This type of PLC was been chosen
because the characteristic is fully necessary by the development of traffic light
system.
The four ways traffic light model is constructed to display how this traffic
light control system is running. This traffic light model has a complete set of traffic
light signal which are red, yellow and green as a traffic signal for each lane. Each
lane also has two limit switches represent as a sensor on the road. The first sensor
placed in front of the lane to detect the presence of a car at the junction and the
second sensor placed at certain length from first sensor to determine the volume of
car at that lane. The right connection between PLC and traffic light model is very
important because it can avoid the problem or conflict when the program is
transferred to PLC.
9
i. Many PLC configurations are available, even from a single vendor. But each
of these has common components and concepts. The most essential
component is are:
ii. iPower supply – This can be built into the PLC or be an external unit.
Common voltage levels required by the PLC are 24Vdc 120Vac 220Vac.
iii. CPU (central Processing Unit) – This is a computer where ladder logic is
stored and processed.
v. Indicator lights – These indicate the status of the PLC including power on,
program running, and a fault. These are essential when diagnosing problems.
vi. Rack Type : A rack can often be as large as 18” by 30” by 10”
10
vii. Mini: These are similar in function to PLC racks, but about the half size.
Dedicated Backplanes can be used to support the cards OR DIN rail
mountable with incorporated I/O bus in module.
viii. Shoebox: A compact, all-in-one unit that has limited expansion capabilities.
Lower cost and compactness make these ideal for small applications. DIN
rail mountable.
ix. Micro: These units can be as small as a deck of cards. They tend to have
fixed quantities of I/O and limited abilities, but costs will be lowest. DIN rail
mountable
11
The basic PLC schema include CPU, power supply, memory, Input block, output
block, communication and expansion connections. Figure 2.1 shows the PLC system
overview.
CPU modules - The Central Processing Unit (CPU) Module is the brain of
the [Link] role to read inputs, execute the control program, update outputs.
The CPU consists of the arithmetic logic unit (ALU), timing/control circuitry,
accumulator, scratch pad memory, program counter, address stack and instruction
register. A PLC works by continually scanning a program.
vii. Compact Flash – Can store complete program information, read & write text
files
viii. I/O Modules - Input and output (I/O) modules connect the PLC to sensors
and actuators. Provide isolation for the low-voltage, low-current signals that
the PLC uses internally from the higher-power electrical circuits required by
most sensors and actuators. Wide range of I/O modules available including:
digital (logical) I/O modules and analogue (continuous) I/O modules.
13
Figure 2.3 shows the Omron PLC CQM1H configuration. The main body of
this PLC is power supply unit, Central processor unit and input/output slot. The
power supply unit receive the required PLC voltage is 240Vac. For safety the
voltage to PLC must connect to automatic circuit breaker before connect to the PLC
because to protect the PLC from overload. The CPU covered by Analog input/output
slot, RS232 port, and processor. The inputs/outputs slot uses for system are using
digital input and digital output. There are not limited slot for input and output port
and can use for multiple inputs/outputs card.
15
Each lane also has two limit switches represent as a sensor on the road. The
suitable sensor for design a real traffic light system is type of linear sensor or
electromagnetic sensor. The first sensor placed in front of lane to detect the presence
car at the junction and the second sensor placed at certain length from first sensor to
determine the volume of the car at that lane. From this combination of sensor, we
will know the expected time for green signal on when each lane change to the green
signal.
The PLC input wiring address start with number 0.00 to 0.15 for every input
card. When the other input card is install to the PLC socket the address for this input
card will start with number 1.00 to 1.15 and so on. Figure 2.7 shows the wiring
diagram for input card which this input card connects to sensor (limit switch) at
traffic light model.
19
The PLC outputs wiring address start with number 100.00 to 100.07 for
every output card. When the other output card is install to the PLC socket the
address for this output card will start with number 101.00 to 101.07 and so on. The
figure 2.8 show the wiring diagram for output card which output card connect to
sensor (limit switch) at traffic light model.
20
CHAPTER 3
SYSTEM SOFTWARE
The diagram workspace can display a ladder program, the symbol table of
that program or the Mnemonic view. The details displayed depend upon the
selection made in the project workspace.
A flowchart in figure 3.2 shows about how the lane changes to the other lane
for a green signal. This traffic light system is working independently to change from
one lane to the other lane based on which lane can activate sensor 1 fast. This traffic
light system give the priority to the lane which have a car and followed by the other..
24
This traffic light control system operate similar to intelligent traffic light system
which it only give a green signal to the lane which have a vehicles and not like a
common traffic light control system which have a fix rotation for each lane.
Figure 3.3 shows a sample ladder logic diagram that has been constructed for
the flowchart is shown in figure for the lane A. The ladder diagram for the other
lanes is similar with this ladder diagram but the memories for the contacts are
different.
25
Figure 3.4 shows a program flowchart for changing traffic light signal at the
specific lane. A red signal will turn to green signal if a sensor 1 is activated. If the
sensor 2 is activated before a red signal turn to a green signal, a green signal will
hold for a 20s and if not a green signal only hold for a 10s. A green signal will hold
the that time or extend more than time if sensor 1 from other lanes are not activated.
When the sensor 1 from the other lanes activate, a green signal will turn into a
yellow signal for 2s and then back to red signal. For safety, the other lanes will
change to a green signal after 2s.
26
Figure 3.5 shows a sample ladder logic diagram has been constructed for the
lane A. The ladder diagram for the other lanes is similar with this ladder diagram but
the memory for the contacts is different. The address for every traffic signal are
different based on hardware design when wiring the indicator lamp from traffic light
model to output card at PLC cabinet box. The set value of the timer can change for a
desired value based on distance between sensor 1 and sensor 2.
27
CHAPTER 4
4.1 Introduction
This chapter will discusses all the finding results after hardware and software
development. This chapter also includes the analysis from the simulation of this
project and setup configuration for simulation in the real world.
Input and Output of the traffic light could be tested to know either the
address from PLC is similar with the sensor and indicator lamp from hardware or
not. To check the address between PLC and traffic light model is similar with the
wiring diagram made before, a ladder logic diagram from software may testify either
the connection between PLC and sensor and traffic signal are correct. The table 4.1
and 4.2 show the address connection between PLC and input/output on traffic light
model.
29
INPUT ADDRESS
SENSOR 1A 0.12
SENSOR 2A 0.14
SENSOR 1B 0.05
SENSOR 2B 0.06
SENSOR 1C 0.07
SENSOR 2C 0.08
SENSOR 1D 0.09
SENSOR 2D 0.1
Figure 4.1 shows the ladder diagram for testing the every input and output of
the system. This figure shows the example to testify input sensor 1A and output A
Red. The indicator lamp A Red will on. By using this ladder diagram all input and
output will be tested.
30
Since in the beginning, this project objective is to develop a new traffic light
control system and reduce traffic congestion at the junction. At the end, a new traffic
light system is well developed by using two sensors. This sensors is to determine the
traffic volume at the lane when waiting a green signal to go through the junction.
With this sensors the volume of traffic can be determined and the system can choose
a suitable time for green signal once get their turn.
The common traffic light system have fix their time for every signal of traffic
light, it cause the traffic congestion when each lane have a high volume of vehicles.
It also wastes time for waiting at traffic light when the lower volume of traffic at
certain time. The tables 4.3 show the comparison about time between this project
traffic light control system and preset cycle time system.
Table 4.3 shows time duration for preset cycle time traffic control system.
This type of traffic light system has fix duration for traffic signal and rotation lane.
So the time for waiting for the next lane to turn green signal is about 22 second to 66
second. If now the lane A get a green signal and then only lane D have a vehicle
waiting at the junction, it must wait for 66 second before the lane D change to a
green signal. This type of traffic light control system is not effective and cost wasted
time and energy. It also causes the traffic congestion when waiting too long at traffic
light junction.
Table 4.4 New traffic light control system phase and lane duration
GREEN
SENSOR SENSOR
LANE RED YELLOW 1 2
A - 2s 10s 20s
B - 2s 10s 20s
C - 2s 10s 20s
D - 2s 10s 20s
Table 4.4 shows time duration for this project development a traffic light
control system. This type of traffic light system is freely changing the lane to the
other lane based on the priority if any of 1st vehicles presence at traffic light
junction. This traffic light system not depends on lane rotation and effective and
reduces time and energy. It effective when the volume of traffic is low at certain
time because the time for a green signal is different depends on volume of traffic at
lane.
32
In order to apply this project traffic light control system, there had some
criterion that had to be determined. Firstly, the situation of traffic condition at
junction. The average volume of traffic at junction must be verified because from
this data we know where sensor 2 will place at that lane. This criterion is very
important because the efficient and effective of this traffic light system depend with
these sensors. The other criterion is time for a green signal on when only sensor 1
activates or sensor 2 also activate. The table 4.5 is the suggestion times for a green
signal depend on distance from sensor 1 to sensor 2.
CHAPTER 5
5.1 Conclusion
At the end of this project, the traffic light successfully controlled by PLC.
The software and hardware part can operate together without any problem. The
design of ladder logic diagram is based on program flow chart. This intelligent
traffic light control system operate smoothly without any conflict or error coming
from input or output in many condition when running the simulation. It is better
running a simulation of this traffic light control system in the real world to discover
any weakness of this system.
34
5.2 Recommendation
For the future development, this traffic light controller can be upgrade by
replace the sensor with using any suitable type of vision sensor. It can reduce
applied more sensor because only one sensor enough to detect any distance vehicles
at the lane. It is more accurate to determine a volume of traffics than any type of
sensors use for this project. By using this vision sensor, it easier to apply a fuzzy
logic method on this traffic light control system.
Table 5.1 shows the cost that use for this project.
Cost per
No Component unit Quantity Total cost
1 Limit switch RM 1.20 8 RM 9.60
REFERENCES
[1] [Link]
Traffic light summary
[2] [Link]/trafficlight
Traffic light: definition
[3] [Link]
000000
253.13 0.01 101.00 101.01 101.02 AR ON
(000000)
P_On a170 a251 a332
...
Always stop PB AG ON AY ON AR ON
45.03
TIM003
45.03
TIM007
0.07 45.00 KEEP
000003
(11)
(000032)
45.02
1C
b020 b027 b042
...
b102 a118 b181
...
a199 a207 a240
...
b342 a358
...
45.01
45.03
TIM011
45.02
TIM015
#20
a073
41.01 41.02
41.01 41.03
41.01 41.03 41.02
41.02 41.03
0.00
START
TIM100 KEEP
000006
(11)
(000073)
41.00
40.00 JMP
000007
(04)
(000076)
#1
40.01
41.00
TIM000
0.14 TIM
000009
(000085)
000
2A
#30
a083 a087
...
TIM000 KEEP
000010
(11)
(000087)
40.01
BR ON CR ON DR ON
000012
40.00 40.01 TIM001 TIM002 TIM070 101.00 AG ON
(000094)
b003
AG ON
40.01 TIM071
40.01
40.00 TIM
000013
(000109)
001
#120
b096 a115
...
TIM
070
#20
a105
40.01 TIM
000014
(000112)
002
#220
b098 a116
...
TIM
071
#20
a106
TIM001 45.01 40.02
000015
(000115)
a122
TIM002 45.02
45.03
40.02 TIM
000016
(000122)
003
#20
b004
AY ON
000017 ILC
(03)
(000125)
000018 JME
(05)
(000126)
#1
#20
a153
41.02 41.03
41.02 41.00
41.03 41.00
TIM101 KEEP
000020
(11)
(000153)
41.01
40.09 JMP
000021
(04)
(000156)
#2
40.10
41.01
TIM012
0.10 TIM
000023
(000165)
012
2D
#30
a163 a167
...
TIM012 KEEP
000024
(11)
(000167)
40.10
AR ON BR ON CR ON
000026
40.09 40.10 TIM013 TIM014 TIM073 102.03 DG ON
(000174)
b015
DG ON
40.10 TIM072
40.09 45.02 45.01 45.00
40.10
40.09 TIM
000027
(000189)
013
#120
b176 a195
...
TIM
072
#20
a186
40.10 TIM
000028
(000192)
014
#220
b178 a196
...
TIM
073
#20
a185
TIM013 45.00 40.11
000029
(000195)
a202
TIM014 45.01
45.02
40.11 TIM
000030
(000202)
015
#20
b016
DY ON
000031 ILC
(03)
(000205)
000032 JME
(05)
(000206)
#2
#20
a233
41.01 41.03
41.01 41.00
41.03 41.00
TIM102 KEEP
000034
(11)
(000233)
41.02
b048 a051
... b054
a064 b065
... a130
b131 a137
... b138
b143 a238
... b289
a292 b295
... a305
b306
TIM011
40.06 JMP
000035
(04)
(000236)
#3
40.07
41.02
TIM008
0.08 TIM
000037
(000245)
008
2C
#30
a243 a247
...
TIM008 KEEP
000038
(11)
(000247)
40.07
DR ON AR ON BR ON
000040
40.06 40.07 TIM009 TIM010 TIM074 102.00 CG ON
(000254)
b011
CG ON
40.07 TIM075
40.07
40.06 TIM
000041
(000269)
009
#120
b256 a275
...
TIM
074
#20
a265
40.07 TIM
000042
(000272)
010
#220
b258 a276
...
TIM
075
#20
a266
TIM009 45.00 40.08
000043
(000275)
a282
TIM010 45.01
45.03
40.08 TIM
000044
(000282)
011
#20
b012
CY ON
000045 ILC
(03)
(000285)
000046 JME
(05)
(000286)
#3
#20
a313
41.01 41.02
41.01 41.00
41.01 41.00 41.02
41.02 41.00
TIM103 KEEP
000048
(11)
(000313)
41.03
40.03 JMP
000049
(04)
(000316)
#4
40.04
41.03
TIM004
0.06 TIM
000051
(000325)
004
2B
#30
a323 a327
...
TIM004 KEEP
000052
(11)
(000327)
40.04
CR ON DR ON AR ON
000054
40.03 40.04 TIM005 TIM006 TIM077 101.03 BG ON
(000334)
b007
BG ON
40.04 TIM076
40.04
40.03 TIM
000055
(000349)
005
#120
b336 a355
...
TIM
076
#20
a346
40.04 TIM
000056
(000352)
006
#220
b338 a356
...
TIM
077
#20
a345
TIM005 45.00 40.05
000057
(000355)
a362
TIM006 45.02
45.03
40.05 TIM
000058
(000362)
007
#20
b008
000059 ILC
(03)
(000365)
000060 JME
(05)
(000366)
#4
000061 END
(01)
(000367)
Nomenclature Section 2-1
CQM1-B7A12
Front View
Terminal screws: M3
(Optimum tightening torque: 0.5 N S m)
CQM1-B7A02
Front View
Terminal screws: M3
(Optimum tightening torque: 0.5 N S m)
Left-side View
Common to all models.
DIP switch
CQM1-B7A21/CQM1-B7A12
Pin no. Setting OFF ON
4 Transmission delay STANDARD (19.2 ms) RAPID (3 ms)
time
3 Transmission error HOLD LOAD OFF
processing
2 Input mode 16IN 15IN+ERR
1 ERR indicator Not lit Lit
Note On delivery from the factory, pin 1 is set ON and all others OFF.
CQM1-B7A03/CQM1-B7A02
Pin no. Setting OFF ON
4 Transmission delay STANDARD (19.2 ms) RAPID (3 ms)
time
3 Not used (set OFF) ––– –––
2 Not used (set OFF) ––– –––
1 Not used (set OFF) ––– –––
Note On delivery from the factory, pins 2 and 3 are set ON and all others OFF.
! Caution Turn off the CQM1H/CQM1 power before setting the pins.
Switch Settings Section 2-2
Transmission Delay Time Sets the transmission delay time for the B7A Interface Unit.
Setting
Setting Transmission Delay Time
ON RAPID (3 ms)
OFF STANDARD (19.2 ms) (factory setting)
Set the transmission delay time to RAPID to enable transmission with high-
speed B7A Link Terminals with a transmission delay time of 3 ms. Set the trans-
mission delay time to STANDARD to enable transmission with standard B7A
Link Terminals with a transmission delay time of 19.2 ms.
Set the pin to match the transmission delay time of the type of B7A Link Terminal
connected. A transmission error will occur if the setting does not match the trans-
mission delay time of the B7A Link Terminal.
The transmission delay time setting is made for the entire Unit. It is not possible
to make separate settings for each word if multiple words are used.
Transmission Error This setting determines whether the input bit status immediately prior to the error
Processing Setting is held when a transmission error occurs (HOLD) or whether all input bits turn off
(LOAD OFF).
Setting Transmission error processing
ON LOAD OFF
OFF HOLD (factory setting)
Input Mode Setting Set the input mode (the use of bit 15) from the Input B7A Link Terminal to one of
the modes shown in the table below. Match the pin setting to the Input B7A Link
Terminal.
Setting Input mode Description
ON 15-point input + 1 error Bit 15 used as transmission error bit. The
(15IN+ERR) bits available for input are the 15 bits from
00 to 14.
OFF 16-point input (16IN) Bit 15 also used as a normal input bit. The
bits available for input are the 16 bits from
00 to 15. (factory setting)
ERR Indicator Lighting Sets whether the ERR indicator lights when an input transmission error occurs.
Setting
Setting Description
ON ERR indicator lights (factory setting)
OFF ERR indicator does not light
To avoid indicator lighting unnecessarily, set pin OFF if the input side of the B7A
Interface Unit is not used.
SECTION 3
Connections
This section describes the connections between the CQM1-B7Ajj Interface Units and B7A Link Terminals.
! Caution If shielded cable is not used for the high-speed transmission delay-time Link Ter-
minal, the transmission distance is not to exceed 10 m regardless of whether
power supply is shared or wired separately.
CQM1-B7A13
CQM1-B7A03
CQM1-B7A12
CQM1-B7A02
Connectors Crimp connectors for I/O Unit wiring should be less than 6.2 mm wide (M3), and
the wire should be AWG22 to 18 (0.3 to 0.75 mm2).
Terminal screws should be tightened with a torque of 0.5 N S m.
3-2 Wiring
Wiring between the B7A Interface Unit, input B7A Link Terminal, and output B7A
Link Terminal sharing a single power supply differs from wiring between Units
using independent power supplies as shown in the following diagrams.
Terminal screws: M3
B7A Link Terminal
Transmission distance: 100 m max.
12 to 24 VDC
12 to 24 VDC
+
B7A Link Terminal
+
Transmission cable: VCTF 0.75 mm2 min.
12 to 24 VDC
Terminal screws: M3
Transmission distance: B7A Link Terminal
50 m max.
–
Shielded cable:
– Ground 0.75 mm2 min.
Transmission cable:
+
shielded, 0.75 mm2 min.
Ground
12 to 24 VDC
– Shielded cable:
0.75 mm2 min.
Ground
–
12 to 24 VDC
+
B7A Link Terminal
+
Transmission cable:
shielded, 0.75 mm2 min.
Ground
12 to 24 VDC
Performance Specifications
Item Specification
I/O points B7A21: 16 input points (see note 1), 16 output points
B7A13: 32 input points (see note 2)
B7A03: 32 output points
B7A12: 16 input points (see note 1)
B7A02: 16 output points
I/O word allocation B7A21: 1 word each for input and output (2 words in total)
B7A13: 2 words for input
B7A03: 2 words for output
B7A12: 1 word for input
B7A02: 1 word for output
Communication method Unidirectional, time-division multiplex
Transmission distance STANDARD: 500 m max.
(see note 3) RAPID: 100 m max.
Transmission delay time STANDARD: 19.2 ms (rated delay), 31 ms max.
RAPID: 3 ms (rated delay), 5 ms max.
Minimum input time STANDARD: 16 ms
(see note 4) RAPID: 2.4 ms
Power consumption 100 mA at 5 VDC
External power supply 12 to 24 VDC ±10% (excluding the power required by the B7A Link Terminals)
B7A21: 0.11 A min.
B7A13: 0.07 A min.
B7A03: 0.10 A min.
B7A12: 0.05 A min.
B7A02: 0.04 A min.
Weight 200 g max.
Dimensions 32 x 110 x 107 (W x H x D) mm
Note 1. Input mode setting allows selection between 16-point input and 15-point+1 error input.
2. Input mode setting allows selection between 32-point input and 30-point+2 error input. Refer to 2-2
Switch Settings.
3. The maximum transmission distance of the B7A Interface Unit varies with the transmission delay time
and the method of wiring. Refer to 3-1 Connections to B7A Link Terminals for details.
4. Minimum input time is the minimum required time to read an input signal from the CPU. The ON/OFF
signal range from the CPU to the B7A Interface Unit’s output bit should be larger than the minimum input
time.
Specifications
Dimensions
These dimensions are the same for all B7A Interface Unit models.
(Unit: mm)
Modular PLC Series CQM1H
General
Performance Data
Input interrupts 4 4 4
Time–controlled interrupts 3 (0.5 ms..5 min) 3 (0.5 ms..5 min) 3 (0.5 ms..5 min)
Special I/O Module − 2 slots 2 slots
Programmable
System Configuration
Logic Contr .
The individual Units of the CQM1H system are plugged in to one
another and secured using 2 locking sliders. The system must be
mounted on a DIN rail.
To make installation easier, the I/O Unit terminal blocks can be
removed.
Memory
Unit
Programmable
Logic Contr .
Inner Boards
A further special feature of the CQM1H CPU51/CPU61 is slots 1 and 2.
Slots 1 and 2 can hold inner boards with various functions. It should be
noted that some inner boards may only be used in slot 1 and others
may only be used in slot 2.
CPU Units
Input interrupts 4 (pulse width 0.1 ms) 4 (pulse width 0.1 ms)
Counter interrupts 3 (1 kHz) 3 (1 kHz)
Time−controlled interrupts 3 (0.5 ms..5 min) 3 (0.5 ms..5 min)
Modular PLC Series CQM1H
Programmable
Logic Contr .
Vibration resistance 10..57 Hz, 0.075 mm Amplitude, 57..100 Hz with an acceleration of 1 G in X, Y and Z directions each 10 sweeps of
8minutes
Shock resistance 15 G (12 G for contact outputs) in X, Y and Z directions, 3 times respectively
Temperature Operation 0 °C..55 °C
Storage −20 °C..75 °C (without battery)
Ambient humidity 10%..90% (without condensation)
Atmosphere Controller must not be exposed to the following conditions:
− Corrosive gases
− Severe temperature fluctuations
− Air with an extreme dust and salt content
− Metal filings or metallic dust
− Splash water
− Other chemicals
Degree of protection IEC IP30 (Control cabinet mounting)
Grounding According to EN60204
Insulation resistance 20 M& at 500 VDC, between AC terminal and GR terminal
Dielectric strength 2300 VAC; 50/60 Hz for 1 minute between AC terminal and housing, Leakage current: max. 10 mA
1000 VAC; 50/60 Hz for 1 minute between DC terminal and housing, Leakage current: max. 20 mA
Noise immunity 1500 Vss
Pulse duration 100 ns..1 ∝s
Rise time 1 ns
The Memory Modules can be used to load the user program to the
PLC. This allows independence from the life of the buffer battery. It
does not represent a memory expansion.
When the PLC power supply is turned on, the content of the Memory
Module is copied to the RAM area.
Memory Module
Power Supplies
In order to calculate the required output capacity, the power consumption of the Units must be added to the system configuration.
Expansion Units
Programmable
Logic Contr .
Programming Description Cable length Model code
CX–Programmer. PLC programming software. − WS02–CXPC1–EV3.0
For WINDOWS 95/98/ME/2000/NT4.0−SP5/XP
− see page 434
Program copy device Writing of the user program, the PLC 20 cm CPM1–EMU01–V1
configuration, the expanded instruction
set and the data words from DM6144 to
DM6655 on EEPROM, as well as down
loading of EEPROM data in the PLC.
For PLC systems:
CPM and CQM1H
Supported EEPROMs:
Atmel AT28C256
NEC ∝PD28C256
(CS1W−CN114 adapter required)
Dimensions (mm)
CPU Units
Front view Side view End plate with
Bus terminal
resistor
2
110 115.7
120 107
13.5
W W W
I/O Units
With terminal 2 With connector
block
110 115.7
107
32
approx. 140
Modular PLC Series CQM1H
Communication Examples
Programmable
Logic Contr .
CQM1H–CPU11/21 CQM1H–CPU51/61 Inner boards
CQM1H–SCB41
SYSMAC WAY (network) Yes Yes Yes
Active RS–232C Yes Yes Yes + Protocol macro function
SYSMAC WAY
SYSMAC WAY communicates via the RS−232C or
RS–232C port
RS−422 port and contains the open, OMRON−
specific ASCII protocol called Host Link.
By default, the CQM1H communication port runs in
Host Link slave mode and can therefore be easily
operated from a PC, a supervisory controller or CQM1H
Miniature peripheral PC
HMI. port
The CQM1H CPU11 does not have an RS−232C
port.
CS1W−CN226
CQM1H +
CQM1H−SCB41 CS1 +
or CS1W−SCB41
CQM1H−CIF12
CJ1 +
CJ1W−SCU41
CPM1 +
CPM1−CIF11
Modular PLC Series CQM1H
Active RS–232C
The CQM1H’s ports can be switched to active RS−232C cable
RS−232C mode by the Host Link slave.
Transmit, Receive and Protocol macro instructions
can be used to send and receive ASCII character Modem
strings. Peripherals such as modems, printers or CQM1H
barcode readers can be integrated.
Printer
Barcode reader
Temperature control
CPM2C
CPM1A
1:1 NT Link
Various programmable terminals, from function RS−232C cable
keys to graphics−capable, touch−screen colour
terminals, are available to the user as a human/
machine interface.
Data is exchanged very efficiently between a CQM1H
programmable terminal and the PLC via the 1:1 NT OMRON
Link protocol. programmable terminal
1:n NT Link
Several NT series control terminals can be RS−422 cable
connected to the CQM1H series via an RS−422
network.
CQM1H +
CQM1H−SCB41 OMRON
programmable terminal
NT631_, NT31_ direct
OMRON
programmable terminal
NT20S, NT600S, NT620_
via NT−AL001
Modular PLC Series CQM1H
Application Examples
Programmable
Logic Contr .
2 Axes positioning
The two pulse outputs in the special I/O Module CQM1H−PLB21 can output pulses at up to 50 kHz.
This allows 2 axes positioning tasks to be triggered when used in conjunction with a servo or stepper motor.
CQM1H−CPU61 + XW2Z−_J−B5
CQM1H−PLB21
SmartStep SmartStep
Servomotor X
XW2Z_J−A3
X counter−
clockwise limit
X
XW2Z−_J−B5
Y
X origin point
XW2B−20J6−3B
X clockwise
Servomotor Y
limit
24 VDC
Emergency
stop
Y clockwise Y origin Y counter−
limit point clockwise limit
Absolute encoding
The optional inner board CQM1H−ABB21 has two Station 3 Station 2 Station 1
inputs for absolute value encoders, e.g. to
determine the absolute position of a rotary table.
When defined positions are reached, working
processes can be started.
Servo drive
CQM1H−CPU61 +
CQM1H−ABB21
Servomotor
Rotation angle
transmitter
Modular PLC Series CQM1H Inner Boards Overview
Analogue I/O Modules Only slot 2 4 analogue inputs: −10..10 VDC, 0..10 VDC, 0..20 mA CQM1H–MAB42 82
2 analogue outputs: −10..10 VDC, 0..20 mA
Slot 1 or Four built−in potentiometers: Range 0..200 BCD CQM1H–AVB41 82
Slot 2
Communication Only slot 1 One RS−232C and one RS−422/485 port CQM1H–SCB41 83
Protocol macro function
Pulse I/O Modules Slot 1 and Four high−speed counter inputs: max. 500 kHz CQM1H–CTB41 84
Slot 2
Only slot 2 Two high−speed counter inputs: max. 50 kHz CQM1H–PLB21–CE 84
Two pulse outputs: max. 50 kHz
Only slot 2 Two absolute encoder inputs CQM1H–ABB21 84
8, 10 and 12 bit Gray code
Programmable
Logic Contr .
Communication module Model code CQM1H–SCB41
− Plugs into slot 1 only Number of ports One RS−232C and
One RS−422A/485
RS−232C port
− Transmission method Half duplex, 1:1
− Transmission rate Max. 19.6 Kbps
− Media length Max. 15 m
RS−422A/485 port
− Transmission method Half duplex, 1:n
− Transmission rate Max. 19.6 Kbps
− Media length Max. 500 m
Protocols for each port Host Link, ASCII, 1:1 CPU Link
1:1 NT Link, 1:n NT Link (n = 1..8)
Protocol Macro function In the CQM1H−SCB41 communication modules, the data is processed via the protocol
macro function, whereby the individual communication sequences are triggered by the
PLC using the PMCR instruction.
C200HE/HG/HX
PC
Communication module
Programmable
Logic Contr .
I/O type Description Model code Page
Digital Input Units 8 DC inputs 12..24 VDC, 8 circuits, 1 input each CQM1–ID211 86
16 DC inputs 24 VDC, 1 circuit, 16 inputs CQM1–ID212 86
32 DC inputs 24 VDC, 1 circuit, 32 inputs in 4 groups CQM1–ID213 86
8 AC inputs 100..120 VAC, 1 circuit, 8 inputs CQM1–IA121 *1
8 AC inputs 200..240 VAC, 1 circuit, 8 inputs CQM1–IA221
Digital Output Units 8 relay 250 VAC, 2 A, 8 circuits, 1 output each CQM1–OC224 87
Total switching capacity: 2 A per circuit
16 relay 250 VAC, 2 A, 1 circuit, 16 outputs CQM1–OC222 87
Total switching capacity: 8 A per circuit
8 transistor, 24 VDC, 1 A, 1 circuit, 8 outputs CQM1–OD215 87
PNP Total switching capacity: 4A per circuit
16 transistor 24 VDC, 0.3 A, 1 circuit, 16 outputs CQM1–OD214 88
PNP Total switching capacity: 4.8 A per circuit
32, transistor, 24 VDC, 0.5 A, 1 circuit, 32 outp. in 4 groups CQM1–OD216 88
PNP, short circuit Total switching capacity: 5 A per circuit
protection
8 triac 100..240 VDC, 0.4 A, 2 circuits, 4 outputs each CQM1–OA221 *1
Total switching capacity: 1.2 A per circuit
8 transistor, 24 VDC, 2 A, 1 circuit, 8 outputs CQM1–OD211
NPN, short circuit Total switching capacity: 5 A per circuit
protection
16 transistor, 24 VDC, 0.3 A, 1 circuit, 16 outputs CQM1–OD212
NPN Total switching capacity: 4.8 A per circuit
32 transistor, 24 VDC, 0.1 A, 1 circuit, 32 outp. in 4 groups CQM1–OD213
NPN Total switching capacity: 3.2 A per circuit
Programmable
Logic Contr .
Digital Relay Output Unit Model code CQM1–OC224
Outputs 8, relay
8 circuits, 1 output each
Total switching capacity 2 A per circuit
Connection method Screw terminal connectors
Status display LED
Internal power consumption 440 mA, 5 VDC
Specification for relay outputs Switching capacity 250 VAC, 2 A (cos∏=1) R load
250 VAC, 2 A (cos∏=0.4) L load
maximum 24 VDC, 2 A
minimum 10 mA, 5 VDC
Relay life electrical 300,000 operations, R load
100,000 operations, L load
mechanical 50,000,000 operations
ON delay Max. 15 ms
OFF delay Max. 5 ms
Leakage current
0.1 mA max .
Residual voltage 0.2 V max.
ON delay Max. 0.2 ms
OFF delay Max. 0.8 ms
Short−circuit protection 1.6..2.0 A electronic, transistor PNP,
indicator output per 4 outputs
Reset 24 VDC input per 4 outputs
Modular PLC Series CQM1H Units
Safety Unit
Programmable
Logic Contr .
Safety Unit Model code CQM1–SF200
− Conforms to EN954−1 and Inputs (emergency stop) 1 or 2 channels
EN60204−1 up to control
gy Input current Max. 75 mA
category 4
Inputs (PLC) 4 DC inputs
1 circuit, 4 inputs
Connection method Screw terminal block connector
Status display LED
Internal power consumption 50 mA, 5 VDC
External power supply 70 mA, 10.2..26.4 VDC
Application Example
CQM1H–SF200/CS1W–SF200
Emergency stop circuit
− 2 channel
− With cross fault detection S1
− With earth detection 11 21 K1 K2 K3
− Redundancy inputs A1
PLC
Input
− Manual start (release)/Stop 12 22
− 2 safety circuits A2
(category 4) Display
T11
K1 PWR
S1: Emergency stop switch T12
K3 K1
A22E
Redunda n t circ uit
S2: Start
Start
A22 S2 S2 Display
Output Unit
K2
KM1/KM2: J7K contactor B1 K1
CPU Unit
K3 K2
KM3: Soft starter T21
G3J
T22
EN 418
K1 Display
Y1
KM1 KM2 K3
K2
K1 K2
X1
K1 K2 K3
13
KM1
14
K1 K2 K3
23
KM2
24
Modular PLC Series CQM1H Units
Programmable
Logic Contr .
Model code CQM1–TC304
Number of loops 2
Measuring sensor Pt100
Output Transistor, PNP
Connection method Screw terminal connectors
Communication Units