Академический Документы
Профессиональный Документы
Культура Документы
TECHNOLOGY
School of Electrical Engineering and Computer Science
Assignment # 2
SUBMITTED BY:
Name: Abdullah Ashfaq
Registration No: 129399
Section: BEE-8B
1. What is Modbus?
Modbus is transmitted over serial lines between devices. The simplest setup would be a
single serial cable connecting the serial ports on two devices, a Master and a Slave.
The data is sent as series of ones and zeroes called bits. Each bit is sent as a voltage.
Zeroes are sent as positive voltages and a ones as negative. The bits are sent very quickly.
A typical transmission speed is 9600 baud (bits per second).
4. What is difference between Modbus RTU and Modbus TCP/IP?
Register/Coil
Data Addresses Type Table Name
Number
Discrete Output
1-9999 0000 to 270E Read-Write
Coils
Discrete Input
10001-19999 0000 to 270E Read-Only
Contacts
Analog Input
30001-39999 0000 to 270E Read-Only
Registers
Analog Output
40001-49999 0000 to 270E Read-Write
Holding Registers
Two tables store on/off discrete values (coils) and two store numerical values (registers).
The coils and registers each have a read-only table and read-write table.
Data addresses are used in messages, coil/register names are location names as they
do not appear in actual messages. For example, the first Holding Register, number 40001,
has the Data Address 0000. The difference between these two values is the offset. Each
table has a different offset. 1, 10001, 30001 and 40001.
In order to identify the receiver of each request, salve ID is used. Each slave in a
network is assigned a unique unit address from 1 to 247. When the master requests data,
the first byte it sends is the Slave address. This way each slave knows after the first byte
whether or not to ignore the message.
A modbus map is simply a list for an individual slave device that defines:
RS485 is a serial data transmission standard widely used in industrial implementations. The
Modbus protocol is commonly used when implementing RS485 communication.
The CAN Bus is an automotive bus developed by Robert Bosch, which has quickly
gained acceptance into the automotive and aerospace industries. CAN is a serial bus
protocol to connect individual systems and sensors as an alternative to conventional multi-
wire looms. It allows automotive components to communicate on a single or dual-wire
networked data bus up to 1Mbps.
CAN bus uses two dedicated wires for communication. The wires are called CAN high
and CAN low. When the CAN bus is in idle mode, both lines carry 2.5V. When data bits are
being transmitted, the CAN high line goes to 3.75V and the CAN low drops to 1.25V, thereby
generating a 2.5V differential between the lines. Since communication relies on a voltage
differential between the two bus lines, the CAN bus is NOT sensitive to inductive spikes,
electrical fields or other noise. This makes CAN bus a reliable choice for networked
communications on mobile equipment.
4. What is difference between the Fault Tolerance CAN and High Speed CAN?
High Speed CAN offers baud rates from 40 Kbit/s to 1 Mbit/sec, depending on cable
length. This is the most popular standard for the physical layer, since it allows for simple
cable connection between devices. This is the physical standard used in the DeviceNet and
CANopen specifications. High speed CAN networks are terminated with 120 ohm resistors
on each end of the network.
Low Speed/Fault Tolerant CAN offers baud rates from 40 Kbit/s to 125 Kbits/sec. This
standard allows CAN bus communication to continue in case of a wiring failure on the CAN
bus lines. In low speed/fault tolerant CAN networks, each device has its own termination.
1. What is Profibus?
Profibus was developed in the 1990s to archive all industrial communication needs for
both Industrial and process automation
Profibus (from process field bus) is a protocol for field bus communication in automation
technology. Profibus links automation systems and controllers with decentralized field
devices such as sensors, actuators, and encoders. Profibus networks exchange data using a
single bus cable.
Profibus is also a master-slave type protocol like Modbus but with an additional token
ring protocol to allow for multiple masters. Also, unlike Modbus, all devices go through a
startup sequence during which they “join” the network. Each slave maintains a failsafe timer.
If the master does not talk to it within a certain time limit, the slave goes into a safe state; the
master must then go through the startup sequence again before further data exchange can
occur. This, in combination with a watchdog timer in the master, ensures that all
communication occurs every bus cycle with a certain time value.
The general bus scan would happen as shown in Figure 2. Master A receives the token,
which gives it control of the bus. It will then exchange data with each of its slaves, and when
complete, pass on the token to the next master (if there is one). The requirement for
detailed diagnostics from each slave is also built into the protocol. During normal data
exchange, a slave can alert the master that it has diagnostics, which the master will then
read during the next bus scan.
(source: https://instrumentationtools.com/how-profibus-communication-works/)
It is used to send data from detectors to controllers to indicate if there is anything Infront
of the sensor and power the actuators to move the object or perform some other action e.g.
screwing on cap of bottle.