Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Faculty of Engineering
A thesis submitted to
Electrical Engineering Department
Faculty of Engineering-Alexandria University
In partial fulfillment of the requirements
For the degree of
Master of Science
In
Electrical Engineering
By
Mohamed Ali Ramadan El Homosany
2015
Actuator Sensor Interface
System in Industrial Control Systems
Presented by
Mohamed Ali Ramadan El Homosany
For the degree of
Master of Science
In
Electrical Engineering
رسانت عهًيت
يمذيت إنٗ لسى انُٓذست انكٓزبيت بكهيت انُٓذست – جايعت االسكُذريت
استيفاء نهذراساث انًمزرة نهحصٕل عهٗ درجت
ياجستيز انعهٕو
فٗ
انُٓذست انكٓزبيت
يقذية يٍ
يحًذ عهى سيضاٌ انحًصاَى
2015
َظاو انشبط بيٍ انًشغالت و انحساسات فى
َظى انتحكى انصُاعى
Also I‟d like to thank Prof. Dr. Amr El Zawawi, Electrical Engineering Department,
Alexandria University for his kind supervision, revision, technical and professional
support in this thesis. His sincere help and supervision during this work, making valuable
comments and corrections, his very prompt response and full dedication has contributed a
lot in completing this work.
Thanks are also due to Eng. Hebatallah Ahmed, Soulintec-Encon for her friendly attitude
and her moral and precious support.
At last but not least, special thanks are also due to Soulintec-Encon for their technical
support and cooperation during the work of this thesis providing technical data, material
and demo units whenever needed.
ii
List of Abbreviations
ADR Address
APM Alternating Pulse Modulation
AS-i Actuator- Sensor Interface
CDI Configuration Data Image
CIM Computer Integrated Manufacturing
CNC Computerized Numerical Control
C-PLUG Configuration Plug
CPU Central Processing Unit
CSMA Carrier Sense Multiple Access
DCS Distributed Control System
FIP Factory Instrumentation Protocol
GND Ground
HMI Human Machine Interface
I Input
I/O Input/Output
IC Integrated Circuit
ID Insulation Displacement
IDI Input Data Image
IEC International Electro-technical Commission
IEEE Institute of Electrical and Electronics Engineers
LAN Local Area Network
LAS List of Active Slaves
LDS List of Detective Slaves
LPS List of Prospective Slaves
MAP Manufacturing Automation Protocol
O Output
ODI Out Data Image
OSI Open Systems Interconnection
PCD Permanent Configuration Data
PG Programming (Gerat) Device
PI Parameter Image
iii
PLC Programmable Logic Controller
PP Permanent Parameter
PROFIBUS Process Field Bus
PSU Power Supply Unit
SCADA Supervisory Control and Data Acquisition
TCP/IP Transmission Control Protocol/Internet Protocol
WAN Wide Area Network
WorldFIP World Factory Instrumentation Protocol
iv
Table of Contents
Acknowledgment ................................................................................................................ ii
List of Abbreviations ......................................................................................................... iii
Table of Contents ................................................................................................................ v
List of Figures ............................................................................................................... viii
List of Tables .................................................................................................................. x
Abstract ................................................................................................................. xi
Chapter 1 Introduction To Fieldbus Systems ............................................................... 1
1.1 Preface .................................................................................................................. 1
1.2 The Definition of a Fieldbus .................................................................................... 1
1.2.1 Fieldbus Advantages ................................................................................... 2
1.3 An Introduction to Industrial Systems Communication ........................................... 3
1.3.1 Process Industry Communication: a Historical Background ...................... 3
1.3.2 Manufacturing Industry: a Historical Background ..................................... 6
1.4 The Fieldbuses and the Network Reference Model ................................................. 8
1.5 The FieldBuses and the Network Topology ............................................................. 9
1.5.1 Mesh Connection ...................................................................................... 10
1.5.2 Star Connection ......................................................................................... 10
1.5.3 Tree Connection ........................................................................................ 10
1.5.4 Bus Connection ......................................................................................... 10
1.5.5 Ring Connection ....................................................................................... 10
1.6 Different Types of Fieldbuses ................................................................................ 10
1.7 Scope of Work in this Thesis ................................................................................. 11
1.8 Thesis Layout ......................................................................................................... 12
Chapter 2 Introduction To AS-i Fieldbus ................................................................... 13
2.1 Introduction ............................................................................................................ 13
2.2 AS-i Position .......................................................................................................... 13
2.3 AS-i Strong Points .................................................................................................. 14
2.4 Conventional Cabling Scheme Versus AS-i Cabling Scheme ............................... 14
2.4.1 Conventional Cabling Scheme .................................................................. 14
2.4.2 AS-i Cabling Scheme ................................................................................ 15
2.5 Principal Performance Characteristics ................................................................... 16
2.5.1 Protocol .................................................................................................... 16
2.5.2 Number of Slaves ...................................................................................... 16
2.5.3 Query Cycle .............................................................................................. 16
2.5.4 Total Number of Traditional Input/Output Signals Connectable to the AS-i
.................................................................................................... 16
2.5.5 Transmission Medium .............................................................................. 16
2.5.6 Maximum System Length ......................................................................... 17
2.5.7 Voltage Distributed Through the Cable .................................................... 17
2.6 New A/B Technology ............................................................................................. 17
2.7 AS-i System Architecture ....................................................................................... 17
2.7.1 Topology up to 100 m ............................................................................... 17
2.7.2 Extension up to 300 m .............................................................................. 18
v
2.7.3 Extension up to 600 m .............................................................................. 18
2.8 AS- interface Version 3.0 ....................................................................................... 19
2.9 Summary ................................................................................................................ 20
Chapter 3 AS-i System Components ........................................................................... 21
3.1 Introduction ............................................................................................................ 21
3.2 AS-i Master ............................................................................................................ 21
3.2.1 The PLC Master ........................................................................................ 21
3.2.2 The Gateway Master ................................................................................. 22
3.3 AS-i Power Supply ................................................................................................. 22
3.4 AS-i Cables............................................................................................................. 23
3.5 AS-i I/O Modules ................................................................................................... 24
3.5.1 Smart Line Modules .................................................................................. 24
3.5.2 Field Application Modules ....................................................................... 24
3.6 AS-i Sensors and Actuators .................................................................................... 26
3.6.1 AS-i Sensors.............................................................................................. 26
3.6.2 AS-i Actuators .......................................................................................... 26
3.7 AS-i Accessories .................................................................................................... 27
3.7.1 AS-i Addressing Unit ................................................................................ 27
3.7.2 Insulation Displacement Connectors ........................................................ 27
3.7.3 Sealing of the Flat Cable ........................................................................... 28
3.7.4 Repeater .................................................................................................... 28
3.7.5 Extender .................................................................................................... 29
3.8 Summary ................................................................................................................ 29
Chapter 4 AS-i Operation ............................................................................................ 30
4.1 AS-i Principle ......................................................................................................... 30
4.1.1 Principle of Communication ..................................................................... 30
4.1.2 PLC Role ................................................................................................... 30
4.1.3 Master Role ............................................................................................... 30
4.1.4 Master Profiles .......................................................................................... 30
4.1.5 Slave Role ................................................................................................. 31
4.1.6 Slave Profile .............................................................................................. 31
4.1.7 Interaction Between PLC, Master and Slaves ........................................... 33
4.2 The Master Operating Phases ................................................................................. 34
4.3 Master / Slave Dialogue Elements ......................................................................... 35
4.3.1 Master Tables ............................................................................................ 35
4.4 Slaves Mapping into the PLC ................................................................................. 36
4.5 Operation of Slave/Master Dialogue ...................................................................... 36
4.5.1 Signal coding ............................................................................................ 36
4.5.2 AS-i Data Packet ....................................................................................... 37
4.5.3 The Different Phases ................................................................................. 38
4.6 Summary ................................................................................................................ 42
Chapter 5 AS-i Experimental Setup ............................................................................ 43
5.1 Introduction ............................................................................................................ 43
5.2 Experiment Components ........................................................................................ 43
5.2.1 The PLC Unit ............................................................................................ 43
5.2.2 AS-i Unit ................................................................................................... 44
vi
5.2.3 Field Application “Conveyor” .................................................................. 52
5.3 Experiment Steps .................................................................................................... 53
5.3.1 PLC Project ............................................................................................... 53
5.3.2 Commissioning the DP/AS-i Link ........................................................... 65
5.4 Experiment Operation ............................................................................................ 65
5.5 Summary ................................................................................................................ 65
Chapter 6 Conclusions And Future Work .................................................................. 66
6.1 Introduction ............................................................................................................ 66
6.2 Conclusions ............................................................................................................ 66
6.3 Future Work Proposal ............................................................................................ 67
References ................................................................................................................ 68
vii
List of Figures
Figure 1-1 Star topology used in the architecture of Process Control ................................ 4
Figure 1-2 The hierarchical architecture ............................................................................. 5
Figure 1-3 The distributed architecture in Process Control Systems .................................. 5
Figure 1-4 The fully distributed architecture, based on a Fieldbus, found in modern
industrial automation systems ..................................................................................... 6
Figure 1-5 The Computer Integrated Manufacturing (CIM) architecture .......................... 7
Figure 1-6 The OSI 7-layers reference model (a), and the reduced Fieldbus 3-layer
structure (b) ................................................................................................................. 9
Figure 1-7 Fieldbus topologies: a) mesh b) star c) tree d) bus e) ring .............................. 11
Figure 2-1 AS-i in the automation pyramid ...................................................................... 13
Figure 2-2 The AS- i certification symbol (shadow logo) ................................................ 14
Figure 2-3 Conventional Cabling Scheme ........................................................................ 15
Figure 2-4 AS-i Cabling Scheme ...................................................................................... 16
Figure 2-5 New A/B Technology in V 2.1 ....................................................................... 17
Figure 2-6 AS-i Topology up to 100 m ............................................................................ 18
Figure 2-7 AS-i network Extension up to 300 m .............................................................. 18
Figure 2-8 AS-i network Extension up to 600 m .............................................................. 19
Figure 3-1 AS-i PLC Master ............................................................................................. 21
Figure 3-2 AS-i Gateway Master ...................................................................................... 22
Figure 3-3 AS-i Power Supply.......................................................................................... 23
Figure 3-4 AS-i Cables ..................................................................................................... 23
Figure 3-5 AS-i Smart Line Modules ............................................................................... 24
Figure 3-6 Field Application Module SIEMENS Type .................................................... 25
Figure 3-7 How to install an AS-i module ........................................................................ 25
Figure 3-8 Different Types of AS-i Sensors ..................................................................... 26
Figure 3-9 Connection of the AS-i actuator to an AS-i network ...................................... 26
Figure 3-10 AS-i Addressing Unit .................................................................................... 27
Figure 3-11 FC Insulation Displacement Connector ........................................................ 28
Figure 3-12 Different Types of Flat Cable Sealing .......................................................... 28
Figure 3-13 Repeater in AS-i network .............................................................................. 28
Figure 3-14 Extender in an AS-i network ......................................................................... 29
Figure 4-1 Interaction Between PLC, Master and Slaves ................................................. 33
Figure 4-2 Master Operating Phases ................................................................................. 34
Figure 4-3 Slaves Mapping into the PLC ......................................................................... 36
Figure 4-4 Signal Coding in AS-i ..................................................................................... 37
Figure 4-5 Structure of an AS-Interface Master Message ................................................ 38
Figure 4-6 Structure of an AS-Interface Slave Message .................................................. 38
Figure 4-7 AS-i Bus Startup Phase ................................................................................... 39
Figure 4-8 AS-i Bus Activation Phase .............................................................................. 40
Figure 5-1 PLC UNIT ....................................................................................................... 43
Figure 5-2 AS-i unit .......................................................................................................... 44
Figure 5-3 AS-i Power Supply (AC 1236 IFM) ............................................................... 45
Figure 5-4 DP/AS−i Link Advanced ................................................................................ 46
Figure 5-5 AS-i slave module (AC2264 IFM) .................................................................. 46
viii
Figure 5-6 Schematic Diagram of IFM AS-i slave module AC2264 ............................... 47
Figure 5-7 PHOENIX Power Supply ................................................................................ 48
Figure 5-8 AS-i Cable ....................................................................................................... 49
Figure 5-9 Source of 220 VAC ......................................................................................... 50
Figure 5-10 Source of 24 VDC ......................................................................................... 50
Figure 5-11 AS-i power supply wiring ............................................................................. 51
Figure 5-12 DP/AS−i Link wiring .................................................................................... 51
Figure 5-13 AS−i Slave Module wiring............................................................................ 52
Figure 5-14 The Conveyor Unit ........................................................................................ 52
Figure 5-15 Starting SIMATIC Manager ......................................................................... 53
Figure 5-16 Creating S7 project ........................................................................................ 54
Figure 5-17 Inserting S7 program ..................................................................................... 54
Figure 5-18 Inserting a Station ......................................................................................... 55
Figure 5-19 Hardware Configuration tool ........................................................................ 56
Figure 5-20 CPU Selection in H.W Configuration Tool .................................................. 57
Figure 5-21 Establish a PROFIBUS network ................................................................... 57
Figure 5-22 CPU as a DP master in the network .............................................................. 58
Figure 5-23 AS-i master in the PROFIBUS network ....................................................... 58
Figure 5-24 Assignment an address for the AS-i master in the PROFIBUS network ...... 59
Figure 5-25 Assign the I/O area of the AS-i master ......................................................... 60
Figure 5-26 AS-i slave module selection .......................................................................... 60
Figure 5-27 AS-i slave Properties Window ...................................................................... 61
Figure 5-28 Final Hardware Configurations ..................................................................... 62
Figure 5-29 Saving Final H.W Configuration .................................................................. 62
Figure 5-30 Downloading Final H.W Configuration to the PLC ..................................... 63
Figure 5-31 Symbol Table in S7 Program ........................................................................ 63
Figure 5-32 Code in LAD ................................................................................................. 64
ix
List of Tables
Table 2-1 AS-i (V3.0) Features ........................................................................................ 19
Table 4-1 Different AS-i Master Profiles ......................................................................... 31
Table 4-2 I/O Configuration Code .................................................................................... 31
Table 4-3 Allocated Profile of AS-i slaves ....................................................................... 32
Table 5-1 Pin Assignment in AS-i slave module AC2264 ............................................... 47
Table 5-2 Accessories in AS-i unit ................................................................................... 49
Table 5-3 I/O symbols used in the S7 program ................................................................ 64
x
Abstract
For about 20 years now, the word "Fieldbus” has been very widely used. Its common
meaning is a network for connecting field devices such as sensors, actuators, field
controllers such as PLCs, regulators, drives, controllers, etc., and Human Machine
Interfaces (HMI). One of the most important Fieldbus systems is the actuator-sensor
interface (AS-i) which is the standard solution for simple, cost-effective networking of
sensors and actuators in the field. AS-Interface has established a strong position
throughout the automation technology industry.
The AS-i has many advantages as it minimizes installation costs with high noise
immunity during data transfer. AS-i is flexible as signals and power are transferred along
a reverse polarity protected yellow flat cable.
The AS-i gateway controls the AS-i system and transmits process data to all types of
higher-level control in a standardized I/O map. The AS-i adopts the role of a conventional
I/O card in the controller, which allows a simple changeover.
In this study, we will explain the AS-i Fieldbus, its advantages, network structure, system
components and message frame structure. A practical setup illustrates how to implement
the AS-i Fieldbus as a solution in the field applications.
xi
CHAPTER 1 INTRODUCTION TO FIELDBUS SYSTEMS
1.1 Preface
In industrial operations, it has long been an issue as to how to gather process data, how to
analyze it, and how to implement systems to control advanced automatic systems. Over
time, many types of control systems have developed; some common contemporary
systems are DCS (Distributed Control System), PLC (Programmable Logic Controller
and SCADA (Supervisory Control and Data Acquisition) [1].
At the lowest level of communication, before the Fieldbus era, a lot of standards
reigned, for example, the 4-20 mA standard for analog sensors or the 0 – 24 V for
digital inputs, etc. These standards led to a cabling of 2 wires for each analog
point and one wire for each Boolean point (true, false), or each binary digit in a
number. The result was the need for a great number of cables in the factories. The design
and installation of the wiring were expensive. The operation and maintenance or
evolution was difficult. This was one of the reasons why end-users requested a solution
for simplifying these operations: the Fieldbus was an answer to this request [2].
The Fieldbus technology was developed in the mid 1980‟s when it was needed to
organize the signal transmission system of communication networks which used digital
technology. The Fieldbus transfers, in most cases, the information in small-sized packets
in a serial manner. Choosing the serial transmission has many merits in comparison with
other kinds of transmission like parallel transmission. For instance, the sequential or
serial transmission reduces the total required number of the connecting lines over greater
distances than that of the point-to-point or even parallel transmissions.
A set of rules must be defined in order to accomplish data transfer between the units
along the bus. This set of rules is called Communication Protocol or just the Protocol.
This is unlike the case of the ordinary point-to-point transmission where any two
connected entities send and receive data from each other whenever the data is available.
The protocol is responsible for two important rules on the bus, the mechanism that any
unit can acquire or seize the bus (from the network terminology this means the way of
Medium Access), and the synchronization between those multi-units on the bus.
1
CHAPTER 1 INTRODUCTION TO FIELDBUS SYSTEMS
The medium access protocol choosing is a vital step in designing the DCS. This is
because of the odd nature of the bursty traffic of such control systems. So the existing
LAN (Local Area Network) protocols such as the token ring or the CSMA (Carrier Sense
Multiple Access) are not appropriate for the control applications. For the token ring case,
the more nodes are added, the longer the time each node will wait till it can transmit its
data. Needless to say that the CSMA protocols, which are contention based protocols,
will add randomness to the overall response time. This term is the elapsed time interval
between sending the data from the producer node, and the receiving of that data at the
consumer node. This came from the way that the CSMA allows only one node to transmit
data if and only if no other node is seizing the medium. The randomness occurs when a
collision happens. Collision happens when two or more nodes try to transmit at the same
time on the network. The nodes which encountered the collision will have to wait to for a
random time before it start again transmitting.
In general, there are three main issues that must be considered when designing the
Fieldbus system which are:
Although almost any type of topology that is used with the ordinary LAN can be fit with
the Fieldbus system requirements, but there are two other factors that affect the selection
of such topology. These factors are the medium access method used and the medium used
in the DCS (twisted pair, coaxial cables, optical fibers … etc.). Other more specific
factors are used to select the topology; like the cost and ease of wiring installation and the
reliability [1].
1) The data transmission is done in a standard form to suit the special demands of the
factory communications.
2) The data exchange along the bus is available easily to all the nodes at the same
time (i.e. no need for extra cable to connect certain node to another one).
3) The ability to connect new units on the bus becomes more flexible. This means
that the network extension also becomes easier to achieve [1].
4) The distances that can be covered by the Fieldbus are greater than that of the old
point-to- point system.
5) The Fieldbus can save the expenditure of wiring compared with an existing point-
to-point communication method by using a single transmission medium.
6) Unlike the analog signal, the digital Fieldbus signal is not affected by noise or
distortion. The digital Fieldbus signal does not require the conversion of analog to
digital or digital to analog.
2
CHAPTER 1 INTRODUCTION TO FIELDBUS SYSTEMS
7) The installation and operation of the Fieldbus and their associative devices
become easier.
8) The Fieldbus is capable of bidirectional communication between devices. The
bidirectional communication devices provide cost savings in operation and
maintenance by monitoring and calibration automatically through the network.
9) Possibility to connect products from different manufacturers. This is known as the
interoperability (compatibility) of the Fieldbus [3].
The industrial systems faced the needs of enhancement in production monitoring and
quality control and in the same time maintaining the costs of all this as low as possible.
This happened in the last few decades due to growing social needs, which in turn enforce
the industrial systems to grow to match up with these needs. So any operation that runs
manually had to be replaced with a faster, and more reliable automated operation. This
also provides both the factories and the plants with necessary monitoring which they both
sought for better supervision and quality control.
Introducing all this number of automated units into the factories needed an efficient
method to connect them together, to communicate with each other, and to transfer the
various supervisory data to the monitors. This leads to the introduction of the
communication networks into the factories. We now will present two subsections that
briefly describe the history of communication development in the industrial processes [1].
This mainframe computer had to make all the control and supervisory tasks. To
accomplish these tasks, the mainframe computer had to transfer the required data from
and to the field devices using the traditional point-to-point methodology. Star topology
used in the architecture of Process Control Figure 1-1 gives an example of this
configuration. This configuration is called the centralized configuration. This same
configuration was famous at the 60's of the last century.
3
CHAPTER 1 INTRODUCTION TO FIELDBUS SYSTEMS
1) The complexity of the wiring was so high and difficult to be re-installed, and
above this they were expensive.
2) The high cost of the mainframes that are doing the control tasks.
3) The mainframe failure represented a much higher risk to the system as it can lead
toward the collapsing of the whole system.
4) The lack of standards leads to the impossibility of interchanging some elements
with faster or more reliable ones.
The second step of the process industry communication development was the division of
the supervisory and the control tasks between two or more controllers. Each controller
had its own field devices attached to it using the old point-to-point way. Figure 1-2
depicts a hierarchical architecture.
In turn, and as we see from the same Figure 1-2 these controllers are attached to one
computer called the management information system. These controllers were placed in
the same old control room with the management information system computer. The
period which witnessed the prosperity of such architecture was the early 70's of the
twentieth century. One thing is sure that is the fault tolerance became more lenient with
this hierarchy.
4
CHAPTER 1 INTRODUCTION TO FIELDBUS SYSTEMS
The great revolution of the Integrated Circuits (IC's) made the next third step of the
process industry communications became true. This revolution made it possible for more
distribution of the tasks. More over the performance got better and the total cost reduced
a lot. The controllers communicated with each other via serial digital network.
Furthermore the controllers were placed nearer to the field devices, which reduced the
complexity and the cost of wiring, as the length of the cables are shortened. This
happened during the mid of the 70's of the last century.
Unfortunately, the field devices were still point-to-point wired to the controllers. These
controllers are called the local controllers to differentiate between them and the other
controllers that might be in the control room. Also, the control room contained two
independent units; one is the Operator Console, and the other is the Supervisory
Computer. These two units are attached to each other via the same serial digital network
that allows them to communicate with local controllers as shown in Figure 1-3.
As an example of the first distributed system of this kind for process control was the
(TDC® 2000 system) introduced in 1975 by Honeywell. The semi-final stage of the
industrial process took place in the early 1980's. By then, the number of field devices was
5
CHAPTER 1 INTRODUCTION TO FIELDBUS SYSTEMS
growing incredibly. This made the system designers to connect these devices via serial
digital network. Figure 1-4 shows an example of this modern architecture. The
introduction of digital network simplified the cabling and wiring of the system leading to
ease of maintenance. The network that connects these field devices is called FieldBus.
Figure 1-4 The fully distributed architecture, based on a Fieldbus, found in modern
industrial automation systems
By the mid 70's of the last century, the need to improve the production monitoring and
the miscellaneous control functions leaded the way to connect the production islands with
each other. This means that the manufacturing industry like the process industry adopted
the distributed architecture. Figure 1-5 shows the fully modern distributed manufacturing
architecture. This hierarchy also is known as the Computer Integrated Manufacturing
(CIM). We will present the definition of the term CIM shortly in this section. The CIM is
defined by at least three levels of interconnection as depicted in Figure 1-5. Those levels
are:
6
CHAPTER 1 INTRODUCTION TO FIELDBUS SYSTEMS
1) Field Level: The lowest level of the automation hierarchy is the field level, which
includes the field devices such as actuators and sensors. The elementary field
devices are sometimes classified as the element sublevel. The task of the devices in
the field level is to transfer data between the manufactured product and the
technical process. The data may be both digital and analogue. Measured values
may be available for a short period of time or over a long period of time. For the
field level communication, parallel, multiwire cables, and serial interfaces such as
the 20mA current loop has been widely used from the past. The serial
communication standards such as RS232C, RS422, and RS485 are most commonly
used protocols together with the parallel communication standard IEEE488. Those
point-to-point communications methods have evolved to the bus communication
network to cope with the cabling cost and to achieve a high quality communication.
3) Information Level: The information level is the top level of a plant or an industrial
automation system. The plant level controller gathers the management information
from the control level, and manages the whole automation system. At the
information level there exist large scale networks, e.g. Ethernet WANs for factory
planning and management information exchange. We can use Ethernet networks as
a gateway to connect other industrial networks [4].
7
CHAPTER 1 INTRODUCTION TO FIELDBUS SYSTEMS
A new architecture that combines all this communication protocols is needed. This new
hierarchy is called the CIM or Computer Integrated Manufacturing architecture and can
be seen in Figure 1-5. This architecture organizes the level of factory communication
systems and was initially derived from the MAP or the Manufacturing Automation
Protocol project. This project was initiated by North American industrial companies
leaded by General Motors (GM) at 1980. The main target of this group was to define a
new open standard for the communication in the factory that can allow the
interoperability (compatibility) between many components that came from different
manufacturers. There had been similar groups and attempts to standardize such protocols
in Europe during the 80's of the last century. For examples, the FIP existed in France and
PROFIBUS in Germany.
The OSI model organizes the protocols used and the services provided by a general
communication system in a stack of layers. It is a complete layered network model in
which each layer does certain communication service. One can see in Figure 1-6(a) the
reference OSI model layers. How it works? From the same figure, we can see that if a
node wants to send a data packet from the application, it must first call for the sending
service of its application layer which in turn will call the sending functions in the next
layer, and so on till the data is sent at the physical medium to the other node. This node
will reverse the sequence till the received data reaches the application layer of its node
then to the application which will use this data. The OSI model consists of seven layers:
1) Application layer which provides the services that are required by specific
applications
2) Presentation layer which is responsible for the data interpretation, this allows for
interoperability among different equipments.
3) Session layer concerned with any execution of remote actions
4) Transport layer responsible for the end-to-end communication control
5) Network layer concerned with logical addressing process of nodes and routing
schemes
6) Data link layer responsible for the access to the communication medium, and for
the logical transfer of the data
7) Physical layer concerned with the way that the communication is done physically
Modification to the MAP project was necessary, as the node implementation became
more complex, in order to support all the services of the OSI reference model. The
modification allowed the short length control data packets, which occurs at high rates, to
8
CHAPTER 1 INTRODUCTION TO FIELDBUS SYSTEMS
be directly transmitted through the application layer to the data link layer. This means
that we abbreviated the OSI hierarchy into a 3-layer model as can be seen in
Figure 1-6(b). The resulting Fieldbus is referred to as a 3-layered architecture which is
defined by IEC 61158 (Fieldbus Standardization) [3].
These layers are: the Application layer, the Data link layer, the Physical layer. One may
assume that the other four layers of the OSI model that are not available in the Fieldbus
hierarchy have disappeared along with their own functions and services. This is
absolutely wrong, as these functions are augmented into the remaining layers. For
example, the main function of the presentation layer, which was to support the
interoperability between different equipments, is done now by the application layer in the
Fieldbus. The assembling and disassembling of data packets which was the function of
the transport layer is done now by the data link layer in the Fieldbus network. If routers to
be used in some Fieldbus networks, then the routing service, which was assigned to the
network layer, is mainly done by the application in the Fieldbus [1].
Figure 1-6 The OSI 7-layers reference model (a), and the reduced Fieldbus 3-layer
structure (b)
There exist many protocols and services that are laid in the 3-layerd hierarchy of the
Fieldbus network. This at the end will lead to a great difficulty in evaluating one and
unique international Fieldbus standard. In fact there are many different Fieldbus protocols
in the world.
There are large differences that can be found in the three layers of any Fieldbus protocol
and their similar layers in another Fieldbus protocol. The requirements are varied from
one situation to another. In most cases the quality of services and the system throughput
in addition to the overall system performance are all common requirements for any
automatic control system.
9
CHAPTER 1 INTRODUCTION TO FIELDBUS SYSTEMS
which are properly selected when designing the network. There exist combined
topologies which contain more than two topologies [3].
10
CHAPTER 1 INTRODUCTION TO FIELDBUS SYSTEMS
One of the most famous Fieldbuses systems is the Actuator- Sensor Interface (AS-i). It is
a simplified and robust Fieldbus that enables easy and fast interfacing of sensors and
actuators using logical processing functions of the automatic control.
11
CHAPTER 1 INTRODUCTION TO FIELDBUS SYSTEMS
12
CHAPTER 2 INTRODUCTION TO AS-I FIELDBUS
2.1 Introduction
The AS-i (Actuator Sensor Interface) protocol was created in Germany in 1994 by a
consortium of factory automation suppliers. The AS-i is the simple and effective
networking system for the field level. As an open, non-proprietary bus system, it transfers
process and machine related digital and analog signals. It also acts as a universal interface
between basic digital actuators and sensors and higher level controls.
What makes it so outstanding is the fact that the AS-i system distinguishes itself by
providing such a high degree of simplicity and effectiveness. When compared to other
Fieldbus systems, it is by far the most favorably priced networking solution. It is
therefore no surprise that AS-i has established itself to become a permanent benchmark in
industrial automation. This is not only because it is extremely simple to handle and quick
to install, but also because it is especially flexible when it comes to retrofits.
AS-i has since gained acceptance in process industries due to its high power capability,
simplicity of installation and operation, and low cost. On the average, this system can
reduce the global cost of installations by 25% compared with traditional cabling [5].
13
CHAPTER 2 INTRODUCTION TO AS-I FIELDBUS
1) AS-i is a normalized interfacing system: totally defined within the EN 50-295 and
IEC62026 standard.
2) AS-i is designed primarily for binary (on-off) sensors and actuators although
analogue elements are also easily incorporated.
3) AS-i is a non-proprietary open standard: warranty that products are
interchangeable, as proven by the certification delivered by AS-i association.
Figure 2-2 shows the AS-i certification symbol (shadow logo).
4) AS-i is a deterministic system with very short response times: transmission of
data within a given time is warranted.
5) Power and bus communications are on same pair of wires
6) AS-i offers great flexibility in network topology as the network can be: star, line,
tree/branch, etc.
7) The automation system can be easily modified or extended.
8) Cost reduction in cabling, no need for separate junction boxes, marshalling boxes,
and individual terminations.
9) Reduction of design & installation time.
14
CHAPTER 2 INTRODUCTION TO AS-I FIELDBUS
Junction boxes are normally placed in areas where groups of sensors/controls are
mounted. To reduce cabling further, multi-core cables are then run into larger
marshalling boxes where cabling again can be rationalized into larger multi-core cables.
Add to this the amount of time required to install the cables, glands and finally
termination and marking of all the individual cores at both ends and all points between
the PLC and end devices. Testing is then required to take place to verify that cabling is
correct then commissioning can begin [6].
Consider now the AS-i wiring scheme shown in Figure 2-4. It can be seen that there has
been roughly a 60-70% reduction in cabling, no need for separate junction boxes,
marshalling boxes, and individual terminations. Our example shows that sensors have
been wired into AS-i slave modules via flying leads. These modules are then connected
onto the AS-i cable by a simple compression connection. No need for extra tooling.
Pushbutton stations are also available as AS-i slave modules reducing the need for further
cabling.
These devices are all hooked up to the yellow AS-i cable that is then fed (in this case via
coupling modules), into the AS-i master controller in the PLC. Addressing of the
sensors/controllers in the PLC program is exactly the same as by conventional wiring
methods [6].
15
CHAPTER 2 INTRODUCTION TO AS-I FIELDBUS
2.5.1 Protocol
AS-i is a master-slave system. Slaves are managed by a single master that interrogates
each slave present on the cable in turn and waits for its response.
16
CHAPTER 2 INTRODUCTION TO AS-I FIELDBUS
Figure 2-5 illustrate the new A/B technology which is applied for the AS-i salve
configuration from the version 2.1. A salve address range is from (1A… to 31B), this can
increase the no of slaves from 31slaves to 62 slaves [7].
17
CHAPTER 2 INTRODUCTION TO AS-I FIELDBUS
resistors or terminators are required. The sensors and actuators may be positioned at any
point on the system, at any distance from each other, thus allowing them to be ideally
located on the machine as shown in Figure 2-6.
18
CHAPTER 2 INTRODUCTION TO AS-I FIELDBUS
Number of Slaves 62
Max Cycle 20 ms
19
CHAPTER 2 INTRODUCTION TO AS-I FIELDBUS
2.9 Summary
AS-Interface is designed as a simple system for quick data exchange of binary signals.
The biggest advantage of AS-Interface is the quick, low cost and uncomplicated
installation of the system.
20
CHAPTER 3 AS-I SYSTEM COMPONENTS
3.1 Introduction
In this chapter, the different types of components that construct the AS-i system will be
discussed. AS-i master, AS-i slaves, AS-i power supply, AS-i cables and accessories, all
of these components must exist in any AS-i network. In the following sections, we will
illustrate the functionality of each component.
21
CHAPTER 3 AS-I SYSTEM COMPONENTS
Typical AS-i media is not shielded. If an application does arise where shielding is
required then the shield would be grounded in only one place, as shown in Figure 3-3.
AS-interface power supplies with integrated signal decoupling are available from 2 to 8
amps.
22
CHAPTER 3 AS-I SYSTEM COMPONENTS
The original AS-i power supply provided voltages in the 30VDC range. The actual
specification was 29.5 to 31.6 volts DC. The reason for being higher than the industry
standard nominal 24VDC was to compensate for the voltage drop on the line. The goal
was to be able to supply the end device with 24VDC (+10%/-15%).The approximate
value of the resistance (R) is 39Ω, the inductance (L) is 50 µH and the capacitance (C) is
not specified but must be appropriate with the power supply design [10].
23
CHAPTER 3 AS-I SYSTEM COMPONENTS
modified or extended, depending upon the needs of the system. For aggressive
environments, the TPE variant of these yellow and black cables provides good resistance
to oils and gasoline vapors [8].
24
CHAPTER 3 AS-I SYSTEM COMPONENTS
To connect an AS-i module to the network, as shown in Figure 3-7, the following steps
have to be executed [6]:
1) Fix the connection module (FK connecting module) to the equipment. You can
either screw the module on or snap it onto a DIN rail.
2) Insert the AS-i cable and secure it mechanically with the guides
3) Screw on the application module. Special pressure pads underneath the
application module press the AS-i cable onto the contact blades in the connection
module. This establishes electrical contact.
4) Connect the standard sensors/actuators using M12 connectors.
25
CHAPTER 3 AS-I SYSTEM COMPONENTS
26
CHAPTER 3 AS-I SYSTEM COMPONENTS
These accessories are not only required to set up an AS-i system, for example addressing
units, but also to establish a network topology by taking into consideration the conditions
on site (for example flat cable insulation displacement connectors). In addition, they
make operation or installation of an AS-i network easier [7].
In most cases, a hand-held addressing unit is used to program the slaves. This is not only
very convenient but it also simplifies installation and set-up. The hand-held addressing
unit features the following functions:
1) Addressing standard slaves and slaves supporting the extended addressing mode
2) Indicating all AS-i slaves connected to the bus
3) Reading and writing slave data and slave parameters
4) Indicating peripheral faults of a slave
27
CHAPTER 3 AS-I SYSTEM COMPONENTS
3.7.4 Repeater
One of the important accessories is the repeater shown in Figure 3-13. It can extend the
cable length from 100m to 300m as a maximum of two repeaters can be used in a
network.
28
CHAPTER 3 AS-I SYSTEM COMPONENTS
AS-i slaves can be fitted in both sides of the repeater and an AS-i power supply is
required at each side of the repeater.
3.7.5 Extender
Extender shown in Figure 3-14 can duplicate the length of the AS-i segment from 100 to
200 meters and hence reduce the costs of the network infrastructure for large networks. If
it is connected in combination with a repeater then a maximum AS-Interface network of
length 600m can be achieved, if the master is located in the middle of the network [6].
3.8 Summary
The AS-i network consists of many types of components. Each one has its own role in the
network. One of the most important advantages of the AS-i system is the
interchangeability of the system so, different modules from different manufacturers (e.g.
Siemens, IFM…etc.) can be connected in a network without extra modifications.
29
CHAPTER 4 AS-I OPERATION
The "Master Profile" will define the individual capabilities of each type of "Master".
30
CHAPTER 4 AS-I OPERATION
Profile Functionality
M0 Only binary signal are transmitted No analogue signals are exchanged
M1 Like M0, in addition analogue signals are exchanged
M2 Cyclical data exchange and a cyclical AS-i Parameters
M3 Like M1,complemented by extended addressing mode (62 slaves)
M4 Like M3, complemented by data protocols for byte transmission
It is important that when the information is defined, the measuring method or operating
principle is not restricted. So it is possible at any time to replace, for example, an
inductive proximity sensor by a photoelectric sensor. The I/O configuration describes the
direction of the data bits as input or output or bidirectional [7]. Table 4-2 shows the I/O
Configuration Code where IN=Input, OUT= output, I/O = Bidirectional, NONE=Not
configured.
Code(Hex) D3 D2 D1 D0
0 IN IN IN IN
1 OUT IN IN IN
2 I/O IN IN IN
3 OUT OUT IN IN
4 I/O I/O IN IN
5 OUT OUT OUT IN
6 I/O I/O I/O IN
7 I/O I/O I/O I/O
31
CHAPTER 4 AS-I OPERATION
Code(Hex) D3 D2 D1 D0
8 OUT OUT OUT OUT
9 IN OUT OUT OUT
A I/O OUT OUT OUT
B IN IN OUT OUT
C I/O I/O OUT OUT
D IN IN IN OUT
E I/O I/O I/O OUT
F NONE NONE NONE NONE
The ID code shows whether a slave has no profile (F hex), or there are decentralized
peripheral modules (0 hex) or defined intelligent sensors, actuators or modules (1 hex). A
profile is a clear description of a device; not only in terms of its I/O but also defining
which data bits are used for which functions. Profiles make devices “interoperable”, so
devices from any vendor work with each-other thus easing replacement without the need
for further modifications [6]. Table 4-3 shows all the slave profiles that have been defined
by the AS-i organization.
32
CHAPTER 4 AS-I OPERATION
The introduction of AS-interface 2.1 extended the profile by a third digit, the ID_2_Code.
It indicates for example whether a slave supports the peripheral fault.
Before executing the program, the PLC reads the input information provided by the AS-i
master. The AS-i master presents the information in the same format as the I/O modules.
The PLC therefore cannot detect whether I/O modules or AS-i are being used. This
means that no additional software is required to access the by the AS-i master. When the
program has been executed, the output information is written to the AS-i master. The
length of the PLC cycle depends on the PLC and the length of the program [6].
33
CHAPTER 4 AS-I OPERATION
Detection Phase
The detection phase consists of detecting slaves present on the AS-i cable and
memorizing their addresses and profiles.
Activation Phase
The activation phase consists of activating detected slaves for which the profile
corresponds to the planned configuration.
34
CHAPTER 4 AS-I OPERATION
35
CHAPTER 4 AS-I OPERATION
These pulses are the result of a processing procedure which combines two types of
signals:
A differential "Manchester" code.
Modulation based upon a type of alternating sine wave (sin²) [8].
36
CHAPTER 4 AS-I OPERATION
Each rise in the transmission current therefore results in a negative voltage pulse and each
drop in the transmission current results in a positive voltage pulse. This method also
enables signals with a higher voltage than the supply voltage to be generated very easily
in the slave. This dispenses with the need for inductors in the slave, which reduces the
size and cost of the electronics that need to be integrated into the sensor or actuator. At
the receiving end these voltage signals on the AS-i cable are detected and converted back
to the transmitted bit sequence [6].
A master telegram is 14 bits in length. The bits contain the address of the addressed slave
(5 bits = 32 addresses) and the information to be transferred (4 bits of data). In addition, a
control bit is reserved for specifying the type of call. The remaining bits are for error
detection as shown in Figure 4-5 [6].
37
CHAPTER 4 AS-I OPERATION
A slave telegram is 7 bits length. It is the response to the master calling the slave. This
reply must be sent shortly after the master telegram (3 to 10 bit times). The slave reply is
shorter as it is not necessary to transfer an address (there is only one master). Only 4 bits
of data/parameters are transferred to the master. The remaining bits are used for error
control purposes as shown in Figure 4-6.
38
CHAPTER 4 AS-I OPERATION
2) The slave "output" image tables are reset to 0 (Output table = 0). This also does
not mean that this represents the real status of the associated sensors and actuators
on the bus.
3) Any predefined parameters are stored by each slave, in its appropriate buffer.
4) The LDS table is reset to 0.
5) The LAS table is reset to 0.
6) The configuration reference table indicates that the configuration is invalid
(FFHEX).
7) The "Config. OK" indicator is reset to 0.
8) The indicator authorizing the "data exchange phase" is reset to 0.
39
CHAPTER 4 AS-I OPERATION
40
CHAPTER 4 AS-I OPERATION
a) Data Exchange Phase is the ongoing communication between the master and the
slaves. If the data exchange is unsuccessful, three more attempts can be made during
the next three cycles. After three failures, the system will assume that the slave has
become faulty or absent. Its relevant data will be deleted from the "Active" and
"Detected" tables and its "Input" image table will be reset to 0. A typical exchange
with each slave takes about 156 µs, so if the maximum of 31 slaves were connected,
the whole cycle would only take: 31 x 156 µs = 4.84 ms (thus < 5 ms).
b) System Management Phase, after completion the data exchange phase, the master
may send other command messages to the slaves. Each transaction is unique and
cyclical, which means that it only occurs during a normal operating cycle and the
master can only send one particular command to one particular slave at any instant.
So, the par metering phase of the 31 slaves will take: 31 x 5 ms = 155 ms.
c) Update /Slave Introduction Phase, after the completion of the management phase, the
master instigates an update/slave introduction phase to check for any new slaves on
the bus. The master interrogates each slave in turn (addresses 0 to 31) to check each
I/O configuration and ID. In the worst case, any new slaves will be detected by the
time the system has completed 31 cycles (polled around a maximum of 31 addresses).
The maximum period required to introduce a new slave during this phase is 170 ms,
i.e. (31 cycles × 5 ms) + (3 × 5 ms) = 170 ms. The principle of comparing the various
tables of configured, prospective and detected slaves is again used to activate the new
slave [8].
41
CHAPTER 4 AS-I OPERATION
4.6 Summary
The AS-i network operation is based upon a "Master/Slave" protocol. The master has
different phases of operation and contains different tables in its memory. Each table
contains the data bits received back from each active slave on the system. The AS-i
system messages which are sent by the master and returned by slaves have a specific
structure and signal coding.
42
CHAPTER 5 AS-I EXPERIMENT SETUP
5.1 Introduction
In this chapter, an experiment will be developed to illustrate the AS-i operation. We will
see the configuration of the AS-i master and slave and how to connect the master to a
PLC via a PROFIBUS network.
43
CHAPTER 5 AS-I EXPERIMENT SETUP
The AS-i unit consists of some modules. Each one has its own function. In the following
sections we will describe the functionality of each module.
44
CHAPTER 5 AS-I EXPERIMENT SETUP
5.2.2.2 AS-iMaster(DP/AS−iLinkAdvanced)
The DP/AS-i Link (6GK1415-2BA10) shown in Figure 5-4 is both a PROFIBUS DP
slave and an AS-Interface master at the same time. The DP/AS-i Link Advanced connects
the actuator-sensor interface with PROFIBUS DP. Using the DP/AS-i Link, the inputs
and outputs of the AS-i slaves can be accessed from PROFIBUS DP. Depending on the
slave type, binary values or analog values can be accessed [11].
45
CHAPTER 5 AS-I EXPERIMENT SETUP
5.2.2.3 AS-islave“AC2264IFM”
The AS-i slave is responsible for the interface between the field (conveyor) and the AS-i
master.
46
CHAPTER 5 AS-I EXPERIMENT SETUP
The AS-i slave module (AC2264 IFM) shown in Figure 5-5 and Figure 5-6 has the
following features [12]:
The slave profile is S-7.0.E
Maximum number of these slaves modules per master 62 with AS-i master v2.1
and v3.0
The slave module can be connected to four digital inputs and three digital outputs.
The slave module can be addressed using addressing unit via addressing socket
„ADR‟.
The following Table 5-1 contains the connection of each pin in the AS-i slave module
AC2264.
Pin Connection
A+ AS-i +
A- AS-i –
I+ Sensor supply +24 V
I- Sensor supply
E+ Actuator supply +24 V
E- Actuator supply 0 V
I1 ... I4 Switching inputs sensors 1...4
O1 ... O3 Switching outputs actuators 1...3
O- Switching output actuator 0 V
47
CHAPTER 5 AS-I EXPERIMENT SETUP
The AS-i slave module AC2264 has three groups of LEDs, each group has its
functionality:
LEDs 1: indicate the switching status of sensor inputs
LEDs 2: indicate the AS-i network, AS-i „FAULT‟,AS-i auxiliary power „AUX‟
LEDs 3: indicate the switching status of the actuator outputs.
To check the safe functioning of the AS-i slave module, we have to supervise the color of
the LEDs, as there are four different modes of status indicated by the LED color:
Green: voltage supply via the AS-i network is O.K.
Yellow: input / output signal is switched
Red: AS-i communication error, e. g. slave address 0.
Red flashing: periphery fault, e.g. no sensor supply/overload or short circuit of the
output.
48
CHAPTER 5 AS-I EXPERIMENT SETUP
5.2.2.6 Accessories
Some other components are used in the AS-i unit, it can be concluded in the following
Table 5-2:
Figure 5-9, Figure 5-10, Figure 5-11, Figure 5-12 and Figure 5-13 illustrate the AS-i unit
wiring.
49
CHAPTER 5 AS-I EXPERIMENT SETUP
50
CHAPTER 5 AS-I EXPERIMENT SETUP
51
CHAPTER 5 AS-I EXPERIMENT SETUP
5.2.3 FieldApplication“Conveyor”
A conveyor unit is used for simulation of package transfer line with some pushbuttons
and photo cells fixed on it to control its operation.
52
CHAPTER 5 AS-I EXPERIMENT SETUP
The conveyor unit shown in Figure 5-14 has 8 inputs which are four switches
(S1,S2,S3,S4) and four photocells (PH1,PH2,PH3,PH4) and has five outputs which are
four LEDs (H1,H2,H3,H4) and belt run ,each one of these signals has a unique address
which will be assigned in the experiment.
After installation, there is a "SIMATIC Manager" icon on the Windows desktop. You
activate the program just like all other Windows applications when you double-click the
icon as shown in Figure 5-15.
53
CHAPTER 5 AS-I EXPERIMENT SETUP
2. Creating S7 project
To create a S7 project you should select the menu options File -> New or the symbol
from the toolbar to open the "New" dialog box for creating a new project or a new
library. Enter the project name in the "Name" box and click the "OK" button to
confirm as shown in Figure 5-16.
3. Inserting S7 program
To insert a S7 project you should: Select the Insert -> Program -> S7 Program menu to insert a new
program into the current project as shown in
Figure 5-17. When you insert an object, the system automatically gives it a relevant
name, such as "S7 Program (1)". You can then change this name if you like.
54
CHAPTER 5 AS-I EXPERIMENT SETUP
The following sequence illustrates the steps to create a hardware configuration properly:
55
CHAPTER 5 AS-I EXPERIMENT SETUP
56
CHAPTER 5 AS-I EXPERIMENT SETUP
3) Click new in the window to create a new network and assign a unique address for
the CPU in the PROFIBUS network and select the transmission rate. In this
example the address of the CPU in the PROFIBUS network is “2“, and the
transmission rate is 1.5 Mb/s.
57
CHAPTER 5 AS-I EXPERIMENT SETUP
58
CHAPTER 5 AS-I EXPERIMENT SETUP
By double click on the DP/AS-i Link module, a window “DP slave properties” appears.
We can assign the address for it in the PROFIBUS network from the “PROFIBUS“
button as shown in Figure 5-24.
Figure 5-24 Assignment an address for the AS-i master in the PROFIBUS network
59
CHAPTER 5 AS-I EXPERIMENT SETUP
60
CHAPTER 5 AS-I EXPERIMENT SETUP
From the “Module” drop-down list box you can select the type of your AS-i
module if it is universal modules or Siemens modules based on the order number.
The “Selection” button opens the tree structure of the AS-Interface catalog where
you can select the required AS-i module just as in the hardware catalog.
In the “Parameters” group box you can set the startup parameters
Using check boxes if you have selected universal modules.
In plain language if you have selected Siemens modules, no need to assign the I/O
configuration code, or the ID code. Both codes are assigned automatically
In the “Digital Addresses” group box, you can edit the proposed digital address
entries. This also applies to the “Analog addresses” group box, if an analog slave
is detected [11].
You have to configure the AS-i module with the parameters as they are mentioned in its
data sheet. The I/O configuration code defines its inputs and outputs and ID configuration
code define the profile of this slave. After finishing the configuration of the AS-i slave,
we are ready to download the “Final Hardware Configuration” as shown in Figure 5-28.
61
CHAPTER 5 AS-I EXPERIMENT SETUP
Step 10: Saving Final H.W Configuration and downloading it to the CPU
When you select the Station->Save and Compile menu or click the icon in the toolbar
as shown in Figure 5-29 the configuration and parameter assignment data are also saved
in system data blocks. The system data blocks (SDBs) are generated and modified when
you configure the hardware and compile the hardware configuration. SDBs contain
configuration data and module parameters [13]. To download the selected configuration
to the PLC: choose the PLC -> Download menu or click the icon in the toolbar as
shown in Figure 5-30.
62
CHAPTER 5 AS-I EXPERIMENT SETUP
Every "S7 program" has its own symbol table. You can open a symbol table from the
SIMATIC Manager with a double click on the "Symbols" icon as shown in Figure 5-31.
In the symbol table (refer to Table 5-3), a line is created for every variable. You can then
enter the symbol name, the address, the data type and a comment for the variable in the
columns. A blank line is automatically added at the end of the table for defining a new
63
CHAPTER 5 AS-I EXPERIMENT SETUP
symbol [14]. The following table illustrates the input- output symbols used in the S7
program.
6. PLC Code
The tool LAD/STL/FBD Editor is used to edit the PLC code; you can open it by double
clicking on the block organization block number one (OB1). This block contains the code
divided into separate networks using a LAD programming language as shown in
Figure 5-32. After finishing the programming phase, we have to save the block (OB1)
and download it on the PLC by clicking the icon or selecting the PLC -> Download
menu option
64
CHAPTER 5 AS-I EXPERIMENT SETUP
1) Connect the conveyer to the AS-i unit with the two 25 pin male-female cables.
2) Power on the PLC unit and the AS-i unit.
3) Check that the „Run‟ led on the CPU and the AS-i master led „ON‟ are on.
4) Check that the LEDs System Fault „SF‟ and Bus Fault „BF‟ are off on the CPU
and the AS-i master.
5) Put the block on the conveyor.
6) Press the button motor start (S1).
7) The conveyor starts to move in right direction and the indication led (H1) is on.
8) When the block becomes in front of the photocell at the conveyor end, the
conveyor stops, the indication led (H1) is off and the indication led (H2) is on.
9) You can also stop the conveyor by pressing the button motor stop (S2).
5.5 Summary
One of the most important characteristic of the AS-Interface technology is the use of a
common two-core cable for data transmission and distribution of auxiliary power to the
sensors and actuators. The DP/AS-Interface Link is a single master gateway, which can
access inputs and outputs of the AS-Interface slaves and communicate to the PLC via
PROFIBUS network. The SIMATIC Manager S7 is used to configure the DP/AS-
Interface Link, assign parameters to the AS-i slaves as well as program the PLC with
operation code.
65
CHAPTER 6 CONCLUSIONS AND FUTURE WORK
6.1 Introduction
In this chapter, the conclusions are drawn. Definition of the AS-i and its advantages will
be summarized. Recommendations for future work are also discussed.
6.2 Conclusions
The actuator-sensor interface (AS-i) is the standard solution for simple, cost-effective
networking of sensors and actuators in the field. AS-i has established a strong position
throughout the automation pyramid in the field level. AS-i replaces conventional wiring
technology on the sensor actuator level. It has firmly established itself as a worldwide
standard for the cost-effective transfer of power and signals along a single cable. The
biggest advantage of AS-i is the quick and uncomplicated installation of the system.
Communication (Manchester encoding) and energy are transmitted via a 2-wire cable. By
using piercing technology for contacting the cable, it is possible to insert a new slave at
any point in the system. In addition, the arbitrary structure of the bus (line, tree, star,...)
permits the perfect adaptation to the relevant plant or machine.
An AS-i system comprises a master, an AS-i power supply unit, AS-i cables and the
nodes called AS-i slaves. The AS-i master forms the connection to higher level controls.
It independently organizes the data traffic on the AS-i line and, in addition to the signal
call-up, is responsible for parameter settings, monitoring and diagnostic functions.
The special AS-i power supply unit generates a regulated 30 V DC with a high degree of
stability and low residual ripple. It supplies the electronics of the network which means
the AS-i modules and the master, as well as the connected sensor system. As a result of
the integrated data decoupling, the power supply unit separates the data and power, as
both are simultaneously transferred along the two conductor AS-i cable.
The yellow, flat cable is a characteristic for the AS-i. Data and power for the sensors are
transferred along this cable. A second, black flat cable is used to supply the actuators with
24 V DC.
AS-i is an open standard. Thus, it is possible to operate different bus participants made by
different manufacturers in one network. AS-i slaves are generally addressed via AS-i
master or via an addressing unit. With the introduced AS-i specification V. 2.1 & v3.0
some innovations have been integrated into the AS-i system. The most important
alteration is the possibility to operate 62 (instead of 31) slaves in one network. This
became possible by the introduction of a differentiation between A and B slaves
(From1A…31A to 1B….. 31B).
66
CHAPTER 6 CONCLUSIONS AND FUTURE WORK
AS-i can be used as part of a distributed architecture, as a subsystem for higher level bus
systems. Gateways or links are used for this philosophy such as the PROFIBUS
gateways. This enables the end user to be more flexible in the general cabling layout of
the system. It also allows for the configuration and commissioning of a control station
prior to the programming and completion of the central control station. This makes
commissioning much easier and reduces time.
67
References
[1] Introduction to Fieldbus systems, Available from: http://people.cs.pitt.edu/
~mhanna/Master/Introduction.pdf [Accessed 25th Feb. 2013].
[2] Jean-Pierre Thomesse, “Fieldbus Technology in Industrial Automation”,
Proceedings of the IEEE , June 2005, vol. 93, issue 6, pp 1073-1101.
[3] Alexandru Pescaru, and Radu Dobrescu, “Improving Fieldbus Design with Opnet
Simulation”, U.P.B. Sci. Bull., Series C, 2010, vol. 72, issue 4.
[4] Industrial Networks for Communication and Control, Available from: http://anp.tu-
sofia.bg/djiev/PDF%20files/Industrial%20Networks.pdf [Accessed 10th May 2013].
[5] AS-I Interface Answers for industry, Available from: http://www.industry.usa.
siemens.com/automation/us/en/industrial-controls/products/as-interface-field-bus
/doc uments/e20001-a550-p305-v3-7600.pdf [Accessed 30th October 2012].
[6] SIEMENS Training Course, “AS-i Training”, Release Feb. 2014.
[7] IFM Electronic GMBH, “IFM electronic Bus system AS- interface Catalogue
2008/2009”, Available from: http://www.ifm.com/ifmweb/downcont.nsf/files
/ifm_as-interface_catalogue_gb_08/$file/ifm_as-interface_catalogue_gb_08.pdf
[Accessed 2nd December 2013].
[8] Schneider Electric, Actuator-sensors interface AS-i-bus User guide, Jan 2000,
Available from: http://www.global-download.schneiderelectric.com/mainRepos-
itory/EDMS_CORP5.nsf/69f5d72c7a0cf811c12573d800389503/71d296d6b8fad0d
68525787f005fa8ba/$FILE/XDOC5011EN.pdf [Accessed 20th January 2014].
[9] SIMATIC NET AS-Interface - Introduction and Basics Manual, Available from:
https://w3.siemens.com/mcms/industrial-communication/en/support/ikinfo/Docum-
ents/SYH_asi_grundlagen-76.pdf [Accessed 15th July 2013].
[10] AS-i Interface Simple, Robust, Device-Level, Bus, Available from:
https://www.ulpgc.es/hege/almacen/download/31/31119/asitutorial.pdf [Accessed
17th April 2013].
[11] AS-i Gateway Manual, “DP/AS−i INTERFACE LINK Advanced, as of hardware
version 1, as of firmware version 2.0”, Release 03/2008, Available from:
http://cache.automation.siemens.com/dnl_iis/jE/jExNzI1OQAA_22710305_HB/G
H_dp-asi-link-advanced_76.pdf [Accessed 19th September 2013].
[12] IFM Electronic GMBH, “AS-i Module AC2264 installation instructions”, Available
from: http://www.ifm.com/mounting/7390465DEFRUK.pdf [Accessed 20th
November 2013].
[13] SIEMENS Training Course, “Siemens SIMATIC S7 PLC Basic”, Course Code ST-
7PRO1 [Accessed 28th August 2013].
[14] C.T. Jones STEP 7 in 7 Steps, Available from: http://www.etf.unssa.rs.ba/~
slubura/Procesni%20racunari/step7in7step/Step7in7step.pdf, ISBN 1-889101-03-6.
68
ملخص انشسانة
يقذية:
شٓذ يجال شبكاث االتصاالث فٗ انتطبيماث انصُاعيت تطٕراً يهحٕظاً فٗ انسُٕاث االخيزة .حيث اٌ ْذِ انشبكاث
تهعب دٔراً ْاياً فٗ انزبط بيٍ أجٓشة انمياص انًختهفت ٔ يشغالث انتحكى اآلنٗ .يعتبز َظاو انزبط بيٍ انًشغالث
ٔانحساساث يٍ أْى أَظًت انزبط انتٗ تُستخذو فٗ يعظى انتطبيماث انصُاعيت ،حيث يمٕو ْذا انُظاو باستبذال َظاو
انتٕصيم انتمهيذٖ بيٍ يختهف انحساساث ٔانًشغالث بكابم ٔاحذ يمٕو بُمم انبياَاث يٍ ْذِ األجٓشة إنٗ أجٓشة
انتحكى اآلنٗ ٔ ،بانتانٗ يؤدٖ إنٗ تمهيم تكهفت إَشاء ْذِ انشبكاث باإلضافت إنٗ سزعت بُاؤْا.
69