SlideShare ist ein Scribd-Unternehmen logo
1 von 9
Downloaden Sie, um offline zu lesen
YANBU INDUSTRIAL COLLEGE
ARITHMETIC FUNCTIONS
Move Instructions
It copies the value of the source register in the destination register. The destination
register's previous value is replaced by the value from the source register.
The instruction is executed if I0.0 is "1". The content of MW10 is copied to data word
DBW 12 of the currently open DB (Data Block). Q4.0 is "1" if the instruction is executed.
EX 1: Lathe Machine
The MOVE instruction can be used to preset a counter. For example, if a machine
produces 5 mH inductor, a lathe makes 400 revolutions to wind the coil. If the machine
makes 10 mH coil, it must make 800 revolution before stopping. The ladder below
shows how to change the preset value for each different inductor. When the 5 (10 ) mH
inductor reaches the lathe a sensor closes IN1 (IN2)
YANBU INDUSTRIAL COLLEGE
EX 2: Selecting motor duration
The parts in a production line have two sizes, as in the above task. When a large piece
comes under the drill machine, a large hole has to be drilled (corresponding to 10 s),
For a small piece, 5 seconds is enough to drill a hole. Design and test a ladder diagram
to achieve this.
YANBU INDUSTRIAL COLLEGE
EX 3: Temperature monitor
In an industrial process it is required to keep the temperature between 120 and 570 o
C.
If the temperature is within the range, a green lamp is on. Otherwise a red is on. For this
try the following ladder
Network 1:
A Temperature sensor provides the actual temperature as 150 o
C. Move it to the
memory word address MW1
150 MW1
Figure 6.
Network 2
Compare the value in MW1 with the allowed temperature range.
M0.0
( )
MW1 MW1
120 570
Figure 7.
Network 3
Q125.0 = green lamp.
Network 4
Q125.1 = red lamp.
MOVE
IN OUT
CMP>1
IN1
IN2 OUT
CMP<1
IN1
IN2 OUT
YANBU INDUSTRIAL COLLEGE
Mathematical Instructions
ADD_I Add Integer
ADD_I (Add Integer) is activated by a logic "1" at the Enable (EN) Input. IN1 and IN2 are
added and the result can be scanned at OUT. If the result is outside the permissible
range for an integer (16-bit), the OV bit and OS bit will be "1" and ENO is logic "0", so
that other functions after this math box which are connected by the ENO (cascade
arrangement) are not executed.
The ADD_I box is activated if I0.0 = "1". The result of the addition MW0 + MW2 is output
to MW10. If the result was outside the permissible range for an integer, the output Q4.0
is set.
EX 1: Counting circuit for two conveyors
Figure below shows two conveyors used in a manufacturing process. Each photo
detectors counts the work pieces as they pass by. Obtain the total count from the two
conveyors
Pulses
Conveyor 1
Light source (IN1)
Conveyor 2
(IN2)
The ladder logic below achieves the control objectives required
PLC
YANBU INDUSTRIAL COLLEGE
SUB_I Subtract Integer
SUB_I (Subtract Integer) is activated by a logic "1" at the Enable (EN) Input. IN2 is
subtracted from IN1 and the result can be scanned at OUT. If the result is outside the
permissible range for an integer (16-bit), the OV bit and OS bit will be "1" and ENO is
logic "0", so that other functions after this math box which are connected by the ENO
(cascade arrangement) are not executed.
YANBU INDUSTRIAL COLLEGE
The SUB_I box is activated if I0.0 = "1". The result of the subtraction MW0 - MW2 is
output to MW10. If the result was outside the permissible range for an integer or the
signal state of I0.0 = 0, the output Q4.0 is set.
Ex 2: Counting sound parts
Figure below shows a main conveyor with a diverter gate for defective parts. Write a
program using subtraction function that determine the number of parts that passed
inspection
Reject coveyor
Reject counter
Main -
Conveyor
Main counter Diverter
Figure 14.
YANBU INDUSTRIAL COLLEGE
MUL_I Multiply Integer
MUL_I (Multiply Integer) is activated by a logic "1" at the Enable (EN) Input. IN1 and IN2
are multiplied and the result can be scanned at OUT. If the result is outside the
permissible range for an integer (16-bit), the OV bit and OS bit will be "1" and ENO is
logic "0", so that other functions after this math box which are connected by the ENO
(cascade arrangement) are not executed.
The MUL_I box is activated if I0.0 = "1". The result of the multiplication MW0 x MW2 is
output to MW10. If the result was outside the permissible range for an integer, the
output Q4.0 is set.
Ex 3: Total plant bottle count
Figure below shows a conveyor transporting cartons (counted with a counter). Each
carton has 12 bottles. Develop a ladder diagram to find the total plant bottle production.
Counter
YANBU INDUSTRIAL COLLEGE
Ex 4: Power Generation Monitoring
If the power generated does not exceed the max limit of 200/3 = 66.7 MW/phase, a
green lamp is on, and otherwise a red lamp is on. Calculate the active power
 cos..IVP , the angle in radians, where ,36.63/11 KVV  ,10KAI  .1.0 rad
Complete the ladder below.
________________________________
DIV_I Divide Integer
DIV_I (Divide Integer) is activated by a logic "1" at the Enable (EN) Input. IN1 is divided
by IN2 and the result can be scanned at OUT. If the result is outside the permissible
range for an integer (16-bit), the OV bit and OS bit is "1" and ENO is logic "0", so that
other functions after this math box which are connected by ENO (cascade arrangement)
are not executed.
The DIV_I box is activated if I0.0 = "1". The result of the division MW0 by MW2 is output
to MW10. If the result was outside the permissible range for an integer, the output Q4.0
is set.
YANBU INDUSTRIAL COLLEGE
Ex 5: Total plant carton count
Similar to task 4 however the number of bottles is counted (using a counter).Develop a
ladder diagram to count the number of cartons (each having 6 bottles).

Weitere ähnliche Inhalte

Was ist angesagt?

PLC Counters
PLC CountersPLC Counters
PLC CountersAmeen San
 
Unit V-Electromagnetic Fields-Normal incidence at a plane dielectric boundary...
Unit V-Electromagnetic Fields-Normal incidence at a plane dielectric boundary...Unit V-Electromagnetic Fields-Normal incidence at a plane dielectric boundary...
Unit V-Electromagnetic Fields-Normal incidence at a plane dielectric boundary...Dr.SHANTHI K.G
 
Microcontroller presentation
Microcontroller presentationMicrocontroller presentation
Microcontroller presentationxavierpaulino
 
PPT on 8085 Microprocessor
PPT on 8085 Microprocessor  PPT on 8085 Microprocessor
PPT on 8085 Microprocessor DebrajJana4
 
Stepper motor-interfacing
Stepper motor-interfacingStepper motor-interfacing
Stepper motor-interfacingLecturer
 
Thyristor commutation techniques
Thyristor commutation techniquesThyristor commutation techniques
Thyristor commutation techniquesVinod Srivastava
 
Introduction to Counters
Introduction to CountersIntroduction to Counters
Introduction to CountersISMT College
 
Keypad Interfacing with 8051 Microcontroller
Keypad Interfacing with 8051 MicrocontrollerKeypad Interfacing with 8051 Microcontroller
Keypad Interfacing with 8051 MicrocontrollerSudhanshu Janwadkar
 
Cyclo converters
Cyclo convertersCyclo converters
Cyclo convertersJaya Shree
 
Rec101 unit iii operational amplifier
Rec101 unit iii operational amplifierRec101 unit iii operational amplifier
Rec101 unit iii operational amplifierDr Naim R Kidwai
 
Microcontroller-8051.ppt
Microcontroller-8051.pptMicrocontroller-8051.ppt
Microcontroller-8051.pptDr.YNM
 
DAC Interfacing with 8051.pdf
DAC Interfacing with 8051.pdfDAC Interfacing with 8051.pdf
DAC Interfacing with 8051.pdfSrikrishna Thota
 

Was ist angesagt? (20)

PLC Counters
PLC CountersPLC Counters
PLC Counters
 
Unit V-Electromagnetic Fields-Normal incidence at a plane dielectric boundary...
Unit V-Electromagnetic Fields-Normal incidence at a plane dielectric boundary...Unit V-Electromagnetic Fields-Normal incidence at a plane dielectric boundary...
Unit V-Electromagnetic Fields-Normal incidence at a plane dielectric boundary...
 
8051 i/o port circuit
8051 i/o port circuit8051 i/o port circuit
8051 i/o port circuit
 
Microcontroller presentation
Microcontroller presentationMicrocontroller presentation
Microcontroller presentation
 
Basics of digital electronics
Basics of digital electronicsBasics of digital electronics
Basics of digital electronics
 
Interrupt
InterruptInterrupt
Interrupt
 
Unit 5
Unit 5Unit 5
Unit 5
 
PPT on 8085 Microprocessor
PPT on 8085 Microprocessor  PPT on 8085 Microprocessor
PPT on 8085 Microprocessor
 
MULTIPLEXER
MULTIPLEXERMULTIPLEXER
MULTIPLEXER
 
Stepper motor-interfacing
Stepper motor-interfacingStepper motor-interfacing
Stepper motor-interfacing
 
Thyristor commutation techniques
Thyristor commutation techniquesThyristor commutation techniques
Thyristor commutation techniques
 
Introduction to Counters
Introduction to CountersIntroduction to Counters
Introduction to Counters
 
Clipper and clampers
Clipper and clampersClipper and clampers
Clipper and clampers
 
Keypad Interfacing with 8051 Microcontroller
Keypad Interfacing with 8051 MicrocontrollerKeypad Interfacing with 8051 Microcontroller
Keypad Interfacing with 8051 Microcontroller
 
Flipflop
FlipflopFlipflop
Flipflop
 
Timers and counters of microcontroller 8051
Timers and counters of microcontroller 8051Timers and counters of microcontroller 8051
Timers and counters of microcontroller 8051
 
Cyclo converters
Cyclo convertersCyclo converters
Cyclo converters
 
Rec101 unit iii operational amplifier
Rec101 unit iii operational amplifierRec101 unit iii operational amplifier
Rec101 unit iii operational amplifier
 
Microcontroller-8051.ppt
Microcontroller-8051.pptMicrocontroller-8051.ppt
Microcontroller-8051.ppt
 
DAC Interfacing with 8051.pdf
DAC Interfacing with 8051.pdfDAC Interfacing with 8051.pdf
DAC Interfacing with 8051.pdf
 

Andere mochten auch

Stepper motor
Stepper motor Stepper motor
Stepper motor Ameen San
 
PLC application
PLC applicationPLC application
PLC applicationAmeen San
 
PLC data types and addressing
PLC data types and addressingPLC data types and addressing
PLC data types and addressingAmeen San
 
ELECTRICAL DISTRIBUTION TECHNOLOGY
ELECTRICAL DISTRIBUTION TECHNOLOGYELECTRICAL DISTRIBUTION TECHNOLOGY
ELECTRICAL DISTRIBUTION TECHNOLOGYAmeen San
 
Load Characteristics
Load CharacteristicsLoad Characteristics
Load CharacteristicsAmeen San
 
Application of Capacitors to Distribution System and Voltage Regulation
Application of Capacitors to Distribution System and Voltage RegulationApplication of Capacitors to Distribution System and Voltage Regulation
Application of Capacitors to Distribution System and Voltage RegulationAmeen San
 
PLC Traffic Light Control
PLC Traffic Light ControlPLC Traffic Light Control
PLC Traffic Light ControlAmeen San
 
Distribution System Voltage Drop and Power Loss Calculation
Distribution System Voltage Drop and Power Loss CalculationDistribution System Voltage Drop and Power Loss Calculation
Distribution System Voltage Drop and Power Loss CalculationAmeen San
 
Accounting & financial decisions
Accounting & financial decisionsAccounting & financial decisions
Accounting & financial decisionsAmeen San
 
مهارات الحوار والاقناع
مهارات الحوار والاقناعمهارات الحوار والاقناع
مهارات الحوار والاقناعAmeen San
 
Time value of money
Time value of moneyTime value of money
Time value of moneyAmeen San
 
Depreciation methods
Depreciation methodsDepreciation methods
Depreciation methodsAmeen San
 
PLC Applications
PLC ApplicationsPLC Applications
PLC ApplicationsAmeen San
 
02 copy file_fill_sp16
02 copy file_fill_sp1602 copy file_fill_sp16
02 copy file_fill_sp16John Todora
 
02 chapter02 fa16
02 chapter02 fa1602 chapter02 fa16
02 chapter02 fa16John Todora
 
Module Consolidation: Combining Safety-Critical Automotive Applications with ...
Module Consolidation: Combining Safety-Critical Automotive Applications with ...Module Consolidation: Combining Safety-Critical Automotive Applications with ...
Module Consolidation: Combining Safety-Critical Automotive Applications with ...Design World
 
الطاقة الشمسية
الطاقة الشمسيةالطاقة الشمسية
الطاقة الشمسيةAmeen San
 
01 introduction to_plc-pac_rev01_fa16
01 introduction to_plc-pac_rev01_fa1601 introduction to_plc-pac_rev01_fa16
01 introduction to_plc-pac_rev01_fa16John Todora
 
Plc analog input output programming
Plc analog input output programmingPlc analog input output programming
Plc analog input output programmingEngr Alam
 

Andere mochten auch (20)

Stepper motor
Stepper motor Stepper motor
Stepper motor
 
PLC application
PLC applicationPLC application
PLC application
 
PLC data types and addressing
PLC data types and addressingPLC data types and addressing
PLC data types and addressing
 
ELECTRICAL DISTRIBUTION TECHNOLOGY
ELECTRICAL DISTRIBUTION TECHNOLOGYELECTRICAL DISTRIBUTION TECHNOLOGY
ELECTRICAL DISTRIBUTION TECHNOLOGY
 
Load Characteristics
Load CharacteristicsLoad Characteristics
Load Characteristics
 
Application of Capacitors to Distribution System and Voltage Regulation
Application of Capacitors to Distribution System and Voltage RegulationApplication of Capacitors to Distribution System and Voltage Regulation
Application of Capacitors to Distribution System and Voltage Regulation
 
plc training report
plc training reportplc training report
plc training report
 
PLC Traffic Light Control
PLC Traffic Light ControlPLC Traffic Light Control
PLC Traffic Light Control
 
Distribution System Voltage Drop and Power Loss Calculation
Distribution System Voltage Drop and Power Loss CalculationDistribution System Voltage Drop and Power Loss Calculation
Distribution System Voltage Drop and Power Loss Calculation
 
Accounting & financial decisions
Accounting & financial decisionsAccounting & financial decisions
Accounting & financial decisions
 
مهارات الحوار والاقناع
مهارات الحوار والاقناعمهارات الحوار والاقناع
مهارات الحوار والاقناع
 
Time value of money
Time value of moneyTime value of money
Time value of money
 
Depreciation methods
Depreciation methodsDepreciation methods
Depreciation methods
 
PLC Applications
PLC ApplicationsPLC Applications
PLC Applications
 
02 copy file_fill_sp16
02 copy file_fill_sp1602 copy file_fill_sp16
02 copy file_fill_sp16
 
02 chapter02 fa16
02 chapter02 fa1602 chapter02 fa16
02 chapter02 fa16
 
Module Consolidation: Combining Safety-Critical Automotive Applications with ...
Module Consolidation: Combining Safety-Critical Automotive Applications with ...Module Consolidation: Combining Safety-Critical Automotive Applications with ...
Module Consolidation: Combining Safety-Critical Automotive Applications with ...
 
الطاقة الشمسية
الطاقة الشمسيةالطاقة الشمسية
الطاقة الشمسية
 
01 introduction to_plc-pac_rev01_fa16
01 introduction to_plc-pac_rev01_fa1601 introduction to_plc-pac_rev01_fa16
01 introduction to_plc-pac_rev01_fa16
 
Plc analog input output programming
Plc analog input output programmingPlc analog input output programming
Plc analog input output programming
 

Ähnlich wie PLC arithmatic functions

Automation and Robotics 20ME51I_Week_2_Practicals.pdf
Automation and Robotics 20ME51I_Week_2_Practicals.pdfAutomation and Robotics 20ME51I_Week_2_Practicals.pdf
Automation and Robotics 20ME51I_Week_2_Practicals.pdfGandhibabu8
 
Lab 9 D-Flip Flops: Shift Register and Sequence Counter
Lab 9 D-Flip Flops: Shift Register and Sequence CounterLab 9 D-Flip Flops: Shift Register and Sequence Counter
Lab 9 D-Flip Flops: Shift Register and Sequence CounterKatrina Little
 
Freescale Microcontroller programming
Freescale Microcontroller programmingFreescale Microcontroller programming
Freescale Microcontroller programmingShih Cheng Tung
 
Computer organization and architecture lab manual
Computer organization and architecture lab manual Computer organization and architecture lab manual
Computer organization and architecture lab manual Shankar Gangaju
 
Bt0064 logic design1
Bt0064 logic design1Bt0064 logic design1
Bt0064 logic design1Techglyphs
 
Lecture 04-Digital logic gates.pptx
Lecture 04-Digital logic gates.pptxLecture 04-Digital logic gates.pptx
Lecture 04-Digital logic gates.pptxWilliamJosephat1
 
IRJET-Design and Implementation of LNS based Approximate Multiplier using Mit...
IRJET-Design and Implementation of LNS based Approximate Multiplier using Mit...IRJET-Design and Implementation of LNS based Approximate Multiplier using Mit...
IRJET-Design and Implementation of LNS based Approximate Multiplier using Mit...IRJET Journal
 
Implementation and Simulation of Ieee 754 Single-Precision Floating Point Mul...
Implementation and Simulation of Ieee 754 Single-Precision Floating Point Mul...Implementation and Simulation of Ieee 754 Single-Precision Floating Point Mul...
Implementation and Simulation of Ieee 754 Single-Precision Floating Point Mul...inventionjournals
 
- Problem Design a simple ALU using VHDL capable of performing the o.pdf
 - Problem Design a simple ALU using VHDL capable of performing the o.pdf - Problem Design a simple ALU using VHDL capable of performing the o.pdf
- Problem Design a simple ALU using VHDL capable of performing the o.pdfalliedelectronics
 
Error Reduction of Modified Booth Multipliers in Mac Unit
Error Reduction of Modified Booth Multipliers in Mac UnitError Reduction of Modified Booth Multipliers in Mac Unit
Error Reduction of Modified Booth Multipliers in Mac UnitIOSR Journals
 
Construction of digital voltmeter by Bapi Kumar Das
Construction of digital voltmeter by Bapi Kumar DasConstruction of digital voltmeter by Bapi Kumar Das
Construction of digital voltmeter by Bapi Kumar DasB.k. Das
 

Ähnlich wie PLC arithmatic functions (20)

Automation and Robotics 20ME51I_Week_2_Practicals.pdf
Automation and Robotics 20ME51I_Week_2_Practicals.pdfAutomation and Robotics 20ME51I_Week_2_Practicals.pdf
Automation and Robotics 20ME51I_Week_2_Practicals.pdf
 
Deld lab manual
Deld lab manualDeld lab manual
Deld lab manual
 
Lab 9 D-Flip Flops: Shift Register and Sequence Counter
Lab 9 D-Flip Flops: Shift Register and Sequence CounterLab 9 D-Flip Flops: Shift Register and Sequence Counter
Lab 9 D-Flip Flops: Shift Register and Sequence Counter
 
Freescale Microcontroller programming
Freescale Microcontroller programmingFreescale Microcontroller programming
Freescale Microcontroller programming
 
Switch Control and Time Delay - Keypad
Switch Control and Time Delay - KeypadSwitch Control and Time Delay - Keypad
Switch Control and Time Delay - Keypad
 
8051 FINIAL
8051 FINIAL8051 FINIAL
8051 FINIAL
 
Computer organization and architecture lab manual
Computer organization and architecture lab manual Computer organization and architecture lab manual
Computer organization and architecture lab manual
 
Plc operation part 3
Plc operation part 3Plc operation part 3
Plc operation part 3
 
exp 15.docx
exp 15.docxexp 15.docx
exp 15.docx
 
Bt0064 logic design1
Bt0064 logic design1Bt0064 logic design1
Bt0064 logic design1
 
Lecture 04-Digital logic gates.pptx
Lecture 04-Digital logic gates.pptxLecture 04-Digital logic gates.pptx
Lecture 04-Digital logic gates.pptx
 
IRJET-Design and Implementation of LNS based Approximate Multiplier using Mit...
IRJET-Design and Implementation of LNS based Approximate Multiplier using Mit...IRJET-Design and Implementation of LNS based Approximate Multiplier using Mit...
IRJET-Design and Implementation of LNS based Approximate Multiplier using Mit...
 
Ladder
LadderLadder
Ladder
 
Implementation and Simulation of Ieee 754 Single-Precision Floating Point Mul...
Implementation and Simulation of Ieee 754 Single-Precision Floating Point Mul...Implementation and Simulation of Ieee 754 Single-Precision Floating Point Mul...
Implementation and Simulation of Ieee 754 Single-Precision Floating Point Mul...
 
Sequential Logic
Sequential LogicSequential Logic
Sequential Logic
 
- Problem Design a simple ALU using VHDL capable of performing the o.pdf
 - Problem Design a simple ALU using VHDL capable of performing the o.pdf - Problem Design a simple ALU using VHDL capable of performing the o.pdf
- Problem Design a simple ALU using VHDL capable of performing the o.pdf
 
unit 3.pptx
unit 3.pptxunit 3.pptx
unit 3.pptx
 
Error Reduction of Modified Booth Multipliers in Mac Unit
Error Reduction of Modified Booth Multipliers in Mac UnitError Reduction of Modified Booth Multipliers in Mac Unit
Error Reduction of Modified Booth Multipliers in Mac Unit
 
Chapter 5 counter1
Chapter 5 counter1Chapter 5 counter1
Chapter 5 counter1
 
Construction of digital voltmeter by Bapi Kumar Das
Construction of digital voltmeter by Bapi Kumar DasConstruction of digital voltmeter by Bapi Kumar Das
Construction of digital voltmeter by Bapi Kumar Das
 

Mehr von Ameen San

PLC Internal Relays
PLC Internal RelaysPLC Internal Relays
PLC Internal RelaysAmeen San
 
PLC Intro to programming
PLC Intro to programmingPLC Intro to programming
PLC Intro to programmingAmeen San
 
PLC Logic Circuits
PLC Logic CircuitsPLC Logic Circuits
PLC Logic CircuitsAmeen San
 
PLC input and output devices
PLC input and output devices PLC input and output devices
PLC input and output devices Ameen San
 
Protection Devices and the Lightning
Protection Devices and the LightningProtection Devices and the Lightning
Protection Devices and the LightningAmeen San
 
Circuit Breakers
Circuit BreakersCircuit Breakers
Circuit BreakersAmeen San
 
Engineering Economy
Engineering EconomyEngineering Economy
Engineering EconomyAmeen San
 
Ratio analysis
Ratio  analysisRatio  analysis
Ratio analysisAmeen San
 
Income statement
Income statementIncome statement
Income statementAmeen San
 
Capital budgeting
Capital budgetingCapital budgeting
Capital budgetingAmeen San
 
Cash flow statement
Cash flow statementCash flow statement
Cash flow statementAmeen San
 
Forms of business organizations
Forms of business organizationsForms of business organizations
Forms of business organizationsAmeen San
 
Matlab solving rlc circuit
Matlab solving rlc circuitMatlab solving rlc circuit
Matlab solving rlc circuitAmeen San
 

Mehr von Ameen San (16)

PLC Timers
PLC TimersPLC Timers
PLC Timers
 
PLC Internal Relays
PLC Internal RelaysPLC Internal Relays
PLC Internal Relays
 
PLC Intro to programming
PLC Intro to programmingPLC Intro to programming
PLC Intro to programming
 
PLC Logic Circuits
PLC Logic CircuitsPLC Logic Circuits
PLC Logic Circuits
 
PLC input and output devices
PLC input and output devices PLC input and output devices
PLC input and output devices
 
Protection Devices and the Lightning
Protection Devices and the LightningProtection Devices and the Lightning
Protection Devices and the Lightning
 
Protection
ProtectionProtection
Protection
 
Relays
RelaysRelays
Relays
 
Circuit Breakers
Circuit BreakersCircuit Breakers
Circuit Breakers
 
Engineering Economy
Engineering EconomyEngineering Economy
Engineering Economy
 
Ratio analysis
Ratio  analysisRatio  analysis
Ratio analysis
 
Income statement
Income statementIncome statement
Income statement
 
Capital budgeting
Capital budgetingCapital budgeting
Capital budgeting
 
Cash flow statement
Cash flow statementCash flow statement
Cash flow statement
 
Forms of business organizations
Forms of business organizationsForms of business organizations
Forms of business organizations
 
Matlab solving rlc circuit
Matlab solving rlc circuitMatlab solving rlc circuit
Matlab solving rlc circuit
 

Kürzlich hochgeladen

An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...Chandu841456
 
Vishratwadi & Ghorpadi Bridge Tender documents
Vishratwadi & Ghorpadi Bridge Tender documentsVishratwadi & Ghorpadi Bridge Tender documents
Vishratwadi & Ghorpadi Bridge Tender documentsSachinPawar510423
 
Solving The Right Triangles PowerPoint 2.ppt
Solving The Right Triangles PowerPoint 2.pptSolving The Right Triangles PowerPoint 2.ppt
Solving The Right Triangles PowerPoint 2.pptJasonTagapanGulla
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEroselinkalist12
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 
computer application and construction management
computer application and construction managementcomputer application and construction management
computer application and construction managementMariconPadriquez1
 
welding defects observed during the welding
welding defects observed during the weldingwelding defects observed during the welding
welding defects observed during the weldingMuhammadUzairLiaqat
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...asadnawaz62
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvLewisJB
 
Correctly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleCorrectly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleAlluxio, Inc.
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfme23b1001
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...121011101441
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfAsst.prof M.Gokilavani
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catcherssdickerson1
 

Kürzlich hochgeladen (20)

An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...
 
Vishratwadi & Ghorpadi Bridge Tender documents
Vishratwadi & Ghorpadi Bridge Tender documentsVishratwadi & Ghorpadi Bridge Tender documents
Vishratwadi & Ghorpadi Bridge Tender documents
 
Solving The Right Triangles PowerPoint 2.ppt
Solving The Right Triangles PowerPoint 2.pptSolving The Right Triangles PowerPoint 2.ppt
Solving The Right Triangles PowerPoint 2.ppt
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
computer application and construction management
computer application and construction managementcomputer application and construction management
computer application and construction management
 
welding defects observed during the welding
welding defects observed during the weldingwelding defects observed during the welding
welding defects observed during the welding
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvv
 
Correctly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleCorrectly Loading Incremental Data at Scale
Correctly Loading Incremental Data at Scale
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdf
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...
 
Design and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdfDesign and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdf
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
 

PLC arithmatic functions

  • 1. YANBU INDUSTRIAL COLLEGE ARITHMETIC FUNCTIONS Move Instructions It copies the value of the source register in the destination register. The destination register's previous value is replaced by the value from the source register. The instruction is executed if I0.0 is "1". The content of MW10 is copied to data word DBW 12 of the currently open DB (Data Block). Q4.0 is "1" if the instruction is executed. EX 1: Lathe Machine The MOVE instruction can be used to preset a counter. For example, if a machine produces 5 mH inductor, a lathe makes 400 revolutions to wind the coil. If the machine makes 10 mH coil, it must make 800 revolution before stopping. The ladder below shows how to change the preset value for each different inductor. When the 5 (10 ) mH inductor reaches the lathe a sensor closes IN1 (IN2)
  • 2. YANBU INDUSTRIAL COLLEGE EX 2: Selecting motor duration The parts in a production line have two sizes, as in the above task. When a large piece comes under the drill machine, a large hole has to be drilled (corresponding to 10 s), For a small piece, 5 seconds is enough to drill a hole. Design and test a ladder diagram to achieve this.
  • 3. YANBU INDUSTRIAL COLLEGE EX 3: Temperature monitor In an industrial process it is required to keep the temperature between 120 and 570 o C. If the temperature is within the range, a green lamp is on. Otherwise a red is on. For this try the following ladder Network 1: A Temperature sensor provides the actual temperature as 150 o C. Move it to the memory word address MW1 150 MW1 Figure 6. Network 2 Compare the value in MW1 with the allowed temperature range. M0.0 ( ) MW1 MW1 120 570 Figure 7. Network 3 Q125.0 = green lamp. Network 4 Q125.1 = red lamp. MOVE IN OUT CMP>1 IN1 IN2 OUT CMP<1 IN1 IN2 OUT
  • 4. YANBU INDUSTRIAL COLLEGE Mathematical Instructions ADD_I Add Integer ADD_I (Add Integer) is activated by a logic "1" at the Enable (EN) Input. IN1 and IN2 are added and the result can be scanned at OUT. If the result is outside the permissible range for an integer (16-bit), the OV bit and OS bit will be "1" and ENO is logic "0", so that other functions after this math box which are connected by the ENO (cascade arrangement) are not executed. The ADD_I box is activated if I0.0 = "1". The result of the addition MW0 + MW2 is output to MW10. If the result was outside the permissible range for an integer, the output Q4.0 is set. EX 1: Counting circuit for two conveyors Figure below shows two conveyors used in a manufacturing process. Each photo detectors counts the work pieces as they pass by. Obtain the total count from the two conveyors Pulses Conveyor 1 Light source (IN1) Conveyor 2 (IN2) The ladder logic below achieves the control objectives required PLC
  • 5. YANBU INDUSTRIAL COLLEGE SUB_I Subtract Integer SUB_I (Subtract Integer) is activated by a logic "1" at the Enable (EN) Input. IN2 is subtracted from IN1 and the result can be scanned at OUT. If the result is outside the permissible range for an integer (16-bit), the OV bit and OS bit will be "1" and ENO is logic "0", so that other functions after this math box which are connected by the ENO (cascade arrangement) are not executed.
  • 6. YANBU INDUSTRIAL COLLEGE The SUB_I box is activated if I0.0 = "1". The result of the subtraction MW0 - MW2 is output to MW10. If the result was outside the permissible range for an integer or the signal state of I0.0 = 0, the output Q4.0 is set. Ex 2: Counting sound parts Figure below shows a main conveyor with a diverter gate for defective parts. Write a program using subtraction function that determine the number of parts that passed inspection Reject coveyor Reject counter Main - Conveyor Main counter Diverter Figure 14.
  • 7. YANBU INDUSTRIAL COLLEGE MUL_I Multiply Integer MUL_I (Multiply Integer) is activated by a logic "1" at the Enable (EN) Input. IN1 and IN2 are multiplied and the result can be scanned at OUT. If the result is outside the permissible range for an integer (16-bit), the OV bit and OS bit will be "1" and ENO is logic "0", so that other functions after this math box which are connected by the ENO (cascade arrangement) are not executed. The MUL_I box is activated if I0.0 = "1". The result of the multiplication MW0 x MW2 is output to MW10. If the result was outside the permissible range for an integer, the output Q4.0 is set. Ex 3: Total plant bottle count Figure below shows a conveyor transporting cartons (counted with a counter). Each carton has 12 bottles. Develop a ladder diagram to find the total plant bottle production. Counter
  • 8. YANBU INDUSTRIAL COLLEGE Ex 4: Power Generation Monitoring If the power generated does not exceed the max limit of 200/3 = 66.7 MW/phase, a green lamp is on, and otherwise a red lamp is on. Calculate the active power  cos..IVP , the angle in radians, where ,36.63/11 KVV  ,10KAI  .1.0 rad Complete the ladder below. ________________________________ DIV_I Divide Integer DIV_I (Divide Integer) is activated by a logic "1" at the Enable (EN) Input. IN1 is divided by IN2 and the result can be scanned at OUT. If the result is outside the permissible range for an integer (16-bit), the OV bit and OS bit is "1" and ENO is logic "0", so that other functions after this math box which are connected by ENO (cascade arrangement) are not executed. The DIV_I box is activated if I0.0 = "1". The result of the division MW0 by MW2 is output to MW10. If the result was outside the permissible range for an integer, the output Q4.0 is set.
  • 9. YANBU INDUSTRIAL COLLEGE Ex 5: Total plant carton count Similar to task 4 however the number of bottles is counted (using a counter).Develop a ladder diagram to count the number of cartons (each having 6 bottles).