SlideShare une entreprise Scribd logo
1  sur  9
Télécharger pour lire hors ligne
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).

Contenu connexe

Tendances

Programmable Logic Controller (plc)
Programmable Logic Controller (plc)Programmable Logic Controller (plc)
Programmable Logic Controller (plc)Dhruv Shah
 
Root locus techniques
Root locus techniquesRoot locus techniques
Root locus techniquesjawaharramaya
 
PLC ARCHITECTURE AND HARDWARE COMPONENTS
PLC ARCHITECTURE AND HARDWARE COMPONENTSPLC ARCHITECTURE AND HARDWARE COMPONENTS
PLC ARCHITECTURE AND HARDWARE COMPONENTSAkshay Dhole
 
Programmable Logic Controller and ladder logic programming
Programmable Logic Controller and ladder logic programmingProgrammable Logic Controller and ladder logic programming
Programmable Logic Controller and ladder logic programmingseema Vishwakarma
 
PLC, DCS and PLC vs DCS Presentation by Jitender Singh Shekhawat
PLC, DCS and PLC vs DCS Presentation by Jitender Singh ShekhawatPLC, DCS and PLC vs DCS Presentation by Jitender Singh Shekhawat
PLC, DCS and PLC vs DCS Presentation by Jitender Singh ShekhawatJitender Singh Shekhawat
 
Plc presentation
Plc presentationPlc presentation
Plc presentationAkshay Modi
 
Current commutated chopper
Current commutated chopperCurrent commutated chopper
Current commutated chopperJyoti Singh
 
PID controller, P, I and D control Comparison PI, PD and PID Controller P, I,...
PID controller, P, I and D control Comparison PI, PD and PID Controller P, I,...PID controller, P, I and D control Comparison PI, PD and PID Controller P, I,...
PID controller, P, I and D control Comparison PI, PD and PID Controller P, I,...Waqas Afzal
 
Plc ladder diagram
Plc ladder diagramPlc ladder diagram
Plc ladder diagramNalini MC
 
Thyristors and its series and parallel combinations
Thyristors and its series and parallel combinationsThyristors and its series and parallel combinations
Thyristors and its series and parallel combinationsIlyas Ghumman
 
Speed control of dc motor using chopper
Speed control of dc motor using chopperSpeed control of dc motor using chopper
Speed control of dc motor using chopperAjeeta Srivastava
 

Tendances (20)

Programmable Logic Controller (plc)
Programmable Logic Controller (plc)Programmable Logic Controller (plc)
Programmable Logic Controller (plc)
 
Root locus techniques
Root locus techniquesRoot locus techniques
Root locus techniques
 
PLC ARCHITECTURE AND HARDWARE COMPONENTS
PLC ARCHITECTURE AND HARDWARE COMPONENTSPLC ARCHITECTURE AND HARDWARE COMPONENTS
PLC ARCHITECTURE AND HARDWARE COMPONENTS
 
Basics of plc_programming1
Basics of plc_programming1Basics of plc_programming1
Basics of plc_programming1
 
Thyristor family
Thyristor familyThyristor family
Thyristor family
 
ppt on PLC
ppt on PLCppt on PLC
ppt on PLC
 
Programmable Logic Controller and ladder logic programming
Programmable Logic Controller and ladder logic programmingProgrammable Logic Controller and ladder logic programming
Programmable Logic Controller and ladder logic programming
 
Plc basics
Plc   basicsPlc   basics
Plc basics
 
Plc timers
Plc timersPlc timers
Plc timers
 
PLC, DCS and PLC vs DCS Presentation by Jitender Singh Shekhawat
PLC, DCS and PLC vs DCS Presentation by Jitender Singh ShekhawatPLC, DCS and PLC vs DCS Presentation by Jitender Singh Shekhawat
PLC, DCS and PLC vs DCS Presentation by Jitender Singh Shekhawat
 
Plc presentation
Plc presentationPlc presentation
Plc presentation
 
Cycloconverter
Cycloconverter Cycloconverter
Cycloconverter
 
Current commutated chopper
Current commutated chopperCurrent commutated chopper
Current commutated chopper
 
PID controller, P, I and D control Comparison PI, PD and PID Controller P, I,...
PID controller, P, I and D control Comparison PI, PD and PID Controller P, I,...PID controller, P, I and D control Comparison PI, PD and PID Controller P, I,...
PID controller, P, I and D control Comparison PI, PD and PID Controller P, I,...
 
Basic PLC Ladder Programming
Basic PLC Ladder ProgrammingBasic PLC Ladder Programming
Basic PLC Ladder Programming
 
Plc ladder diagram
Plc ladder diagramPlc ladder diagram
Plc ladder diagram
 
Thyristors and its series and parallel combinations
Thyristors and its series and parallel combinationsThyristors and its series and parallel combinations
Thyristors and its series and parallel combinations
 
SCR.pptx
SCR.pptxSCR.pptx
SCR.pptx
 
Speed control of dc motor using chopper
Speed control of dc motor using chopperSpeed control of dc motor using chopper
Speed control of dc motor using chopper
 
PLC
PLCPLC
PLC
 

En vedette

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
 

En vedette (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
 

Similaire à 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
 

Similaire à 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
 

Plus de 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
 

Plus de 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
 

Dernier

computer application and construction management
computer application and construction managementcomputer application and construction management
computer application and construction managementMariconPadriquez1
 
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
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
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
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxbritheesh05
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHC Sai Kiran
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
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
 
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
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfme23b1001
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 
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
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .Satyam Kumar
 
Correctly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleCorrectly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleAlluxio, Inc.
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.eptoze12
 

Dernier (20)

computer application and construction management
computer application and construction managementcomputer application and construction management
computer application and construction management
 
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
 
young call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Serviceyoung call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Service
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
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...
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptx
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECH
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
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...
 
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
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdf
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 
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
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .
 
Correctly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleCorrectly Loading Incremental Data at Scale
Correctly Loading Incremental Data at Scale
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.
 

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).