Beruflich Dokumente
Kultur Dokumente
17 - 28 Feb. 2014
When the rung condition changes from false to true, OSR will be true for
once scan only
Thus IIM instruction get the real time states of the actual inputs and
places them in the input image table
After the IIM instruction has been evaluated, the CPU returns to
evaluating the logic
Mainly used when time is a crucial factor
Examples of Usage:
Motor Control (Position or Velocity Control)
The CPU exists the ladder logic evaluation and immediately outputs the
value to the specific output slot
Used where performance required immediate output
Example:
It might be a safety problem if an output was not turned ON before an entire
scan
Motor control command for position or velocity control
Subroutines Instructions
Rockwell has Subroutines instructions available as well such as JSR
(Jump to Subroutine), SBR (Subroutine) and RET (return)
All these above mentioned functions are used together
JSR (Jump to Subroutine):
This instruction specifies the File number/ Subroutine to jump to when a
specified condition becomes true
SBR (Subroutine):
This instruction should be present in the first rung of the subroutine
RET (Return):
This instruction should be present at the end of the subroutine/ File
number
Math Instructions
Rslogix 500 has many Arithmetic, Relational & Logical instructions set
which can be useful in a lot of cases
Many applications require mathematical calculations, thus these
arithmetic operations can be very useful
Arithmetic Operations
ADD Operation:
The Add functions adds source A to source B
The Add operator becomes active whenever the
contact becomes energized
The data is always converted to the destination type (if destination is Integer
the value will be stored as integer even if it is a float)
In case of addition the sequence of variables can change (the end result will be
same), but it is not true for Subtraction and Division
Arithmetic Operations
Subtract Operation:
The Subtract functions subtracts Source B
from source A
The Subtract operator becomes active whenever
the contact becomes energized
The data is always converted to the destination type (if destination is Integer
the value will be stored as integer even if it is a float)
Multiply Operation:
Multiplies two number and stores in the destination
address
Operator becomes active whenever
the contact becomes energized
Arithmetic Operations
Division Operator:
Divides Source A by Source B and stores in the
destination address
Operator becomes active whenever
the contact becomes energized
Other Operators
Negation Operator:
It is used to change sign of the source value
A positive number becomes negative and
a negative number becomes positive
Clear Operator:
Clears the value at the destination (places Zero)
Absolute Operator:
Provides the absolute of the Source Value at
the Destination
Example
Other Operators
Scale with Parameters:
Defines a linear Scales on an input value
defined (with a Minimum & Maximum) to a Scaled
minimum & Scaled Maximum
Linear
Scaling
y mx b
m
Other Operators
Scale with Parameters:
Defines a linear Scales on an input value
defined (with a Minimum & Maximum)
to a Scaled minimum & Scaled Maximum
Boolean Operators
Bitwise AND:
Converts integers to Binary and
and then performs AND operation
bit by bit
Boolean Operators
Boolean Operators
Bitwise OR:
Converts integers to Binary (or could
be just Binary) and then performs
OR operation
Bitwise XOR:
Converts integers to Binary (or could
be just Binary) and then performs
XOR operation
NOT Operation:
Performs NOT operation on the
Integer or Binary Value
Another Example
Relational Operators
Majority processes require comparisons or relational operators to
provide differences or equivalence
Different Relational Operators used are given below:
LIM (Limit)
Examples
Example
Utilization of Sensors
In the past , the operators were the brains behind the control of the
process as they had all the information about the operation of the
process.
The operators were the source of information for quality control as they
could sense the problems (through Vision, Hearing etc)
Sensors are the source of Information for Industrial Automation
systems.
They provide information regarding the current state of the system
Sensors work more effectively and accurately then Humans
Classification of Sensors
Sensors can be classified based on different factors:
Contact versus Non Contact Sensors
Digital or Analog
Classification based on principles
Classification of Sensors
Non contact sensors mostly do not operate Mechanically and are more reliable
and less likely to fail then mechanical ones (there is no wear & tear)
Contact Sensors:
Contact sensors operate when the part physically touches the sensor.
Examples:
Limit Switches
Classification of Sensors
Analog Sensors:
Measure Continuous variables
Analog sensors give a range of values between certain limits [0,100]
Most Industrial sensors follow the standard of 4-20mA (signal carries to
about 800m).
4mA stands for the lowest possible value for the sensor
20mA stands for the highest possible value
Example:
For a Linear Temperature Sensor (measuring values between 0 and 100
degrees) 4mA 0 Degrees and 20mA100 Degrees
Classification of Sensors
Classification based on Principle (Digital Only):
Optical Sensors:
Reflective Sensors
Polarizing Photo Sensors
Retro reflective Sensors
Thru Beam Sensors
Laser Sensors
Color Mark Sensor
Ultrasonic Sensors
Electronic Field Sensors
Inductive Sensors
Capacitive Sensors
Logical Actuators
Logical Actuators:
Logical Actuators are very frequently used in Industry
Most commonly used techniques for operation of actuators are:
Solenoids (electrically operated)
Solenoids:
Solenoids are the most commonly used actuators
It consists of a Ferrous core moving in and out of a Coil
Continuous Actuators
Continuous Actuators allow a systems to adjust outputs in a range
of values
In general Continuous Actuators require Sophisticated control techniques
Continuous Actuators can be driven by different principles:
Electric Motors
Hydraulic
Pneumatic
The most commonly used actuators in the industry are Electric motors
Hydraulic actuators are used in cases when large amount of forces are
required and slow speeds
Wiring Diagrams
Sensors should convey information (using different methods) once there
is a change in environment:
Transistor
Transistor Logic
2 Wire Sensors
Wiring Diagrams
Load or Loop Powered Sensors:
Generally called 2 wire sensors
These sensors are connected in series to the Supply and PLC input card
Operation:
These sensors require a small amount of current to operate called Leakage or
Operating Current
When the sensors turns ON it allows enough current to turn the PLC input ON
Wiring Diagrams
Line Powered Sensors:
These sensors are either 3 wire or 4 wire sensors
They draw current directly from the power supply
These sensors generally need a small amount of current called burden or
load current
Wiring Diagrams
Sinking & Sourcing Configurations:
2 wire or 3 wire sensor can be used in Sinking or Sourcing Configuration
depending on their characteristics
In Sinking configuration the current flows into the sensor
In Sourcing configuration the current flows out of the sensor
Examples of 2 wire sensors used in Sinking & Sourcing configuration is shown
below:
Wiring Diagrams
Sinking & Sourcing Configurations:
3 wire sensors used in Sinking configuration are generally NPN driven
Sourcing configuration are generally PNP driven
The general schematic is shown below:
Sinking Configuration
Sourcing Configuration
Wiring Diagrams
Sinking & Sourcing Configurations:
Sinking and Sourcing configurations with load attached is shown
below:
Wiring Diagrams
PLC Connections for Sinking & Sourcing Sensors:
The following images show the plc connections for Sinking and Sourcing
Sensors:
Wiring Diagrams
Wiring Specific to Different Input/Output Cards in PLCs:
Digital Input:
Wiring Diagrams
Wiring Specific to Different Input/Output Cards in PLCs:
Digital Output:
Digital Output cards are used to switch different output voltages as
mentioned below:
120 VAC
24 VDC
12-48 VAC & DC
5 VDC
Wiring Diagrams
Transistors
Relay Output
Wiring Diagrams
Wiring Specific to Different Input/Output Cards in PLCs:
Digital Output:
Wiring Diagrams
Wiring Specific to Different Input/Output Cards in PLCs:
Digital Output:
Output modules are generally fused in order to protect against Short Circuiting
Wiring Diagrams
Analog Input:
Wiring Diagrams
Analog Input Module Wiring:
Wiring Diagrams
Analog Output: