14 - PLC-Programming-Using-LogixPro
14 - PLC-Programming-Using-LogixPro
LogixPro
By Engineer Ahmed Mahdy
Thank You For Joining our LogixPro Course
• LogixPro is the ideal tool for learning the fundamentals of ladder logic
programming.
• LogixPro contains a lot of simulations.
• It help you to understand ladder diagram by seeing how it goes.
Example For Simulation
Other Simulation Examples Which Will Be Discussed
Important Symbols
Example Of Ladder Diagram
Scan Cycle
• The scan cycle is the cycle of which the PLC gathers the inputs, runs your PLC
program and then updates the outputs.
• This will take some amount of time often measured in milliseconds or ms.
• The amount of time it takes for the PLC to make one scan cycle is called
the scan time of the PLC.
Scan Cycle And Markers
• There are 3 timers in PLC: ON delay, OFF delay and retentive ON delay
timers.
• ON delay timer
Counters In PLC
• There are 3 counters in PLC: count up, count down and count up-down.
• Count up
Overview On PLC Hardware
• Programmable controllers can only understand a signal that is On or Off (present or not present).
• The binary system is a system in which there are only two numbers 1 and 0.
• Binary 1 indicates that a signal is present, or the switch is On.
• Binary 0indicates that the signal is not present, or the switch is Off.
Inputs And Outputs PLC
Inputs
• A sensor is a device that converts a physical condition into an electrical signal for use by the PLC.
• A pushbutton is one example of a sensor that is connected to the PLC input.
Outputs
• Actuators convert an electrical signal from the PLC into a physical condition.
• A motor starter is one example of an actuator that is connected
to the PLC output.
Inputs And Outputs PLC
Analog Inputs
An analog input is a continuous, variable signal.
Typical analog inputs may vary from 0 to 20 milliamps, 4 to 20 milliamps, or 0 to 10 volts.
Discrete Outputs
• A discrete output is an output that is either in an ON or
OFF condition.
• Solenoids, contactor coils, and lamps are examples.
• In the following example, a lamp can be turned on or off
by the PLC output it is connected to.
Inputs And Outputs PLC
Analog Outputs
Statement List
• The same, as well as more complex tasks, can be done with a PLC.
• Wiring between devices and relay contacts is done in the PLC program.
• Hard-wiring, though still required to connect field devices, is less intensive.
• Modifying the application and correcting errors are easier to handle.
• It is easier to create and change a program in a PLC than it is to wire and re-
wire a circuit.
• PLCs have integrated diagnostics and override functions.
• Diagnostics are centrally available.
• Applications can be duplicated faster and less expensively.
Task 1 In I/O Simulator
• Turn on a lamp by using latched output by clicking once on switch zero .
• Turn it off by using unlatched output by clicking once on switch 1.
Task 2 In I/O Simulator
• Turn on a lamp by start button for 5 seconds.
Task 3 In I/O Simulator
• Turn on motor 1 for 5 secs.
• Turn off motor 1 and turn on motor 2 for 4 sec.
• Turn off motor 2 and turn on motor 3 for 3 sec.
• Repeat cycle.
Task 4 In I/O Simulator
• Click on start to turn on and off a lamp for 5 times using counter.
Task 6 In I/O Simulator
• Turn on a lamp by click on start once.
• Turn off lamp by clicking again on start button.
Task 7 In I/O Simulator
• By clicking on start button motor 1 operates for 5 seconds.
• Motor 2 operates for 5 seconds.
• Motor 3 operates for 5 seconds.
• Motor 4 operates for 5 seconds.
• Motor 5 operates for 5 seconds.
Task 1 In Silo Simulator
• By clicking on start button, the motor drives the belt until proximity sensor
detects the box.
• Box is filled by liquid until level sensor gives signal.
• Box is driven to the end of the belt.
• 6 boxes are required then process stops.
Task 1 In Batch Simulator
• We would like to fill Tank to the full level by Pump 1 and Pump 2.
• After this we will operate the mixer to mix the two fluids together.
Task 2 In Batch Simulator
• First we will fill the tank by using pump 1.
• After that P3 will start emptying the tank.
Task 3 In Batch Simulator
• Marker which is an imaginary input Example: B3/0 , from 0 to 1600.
• If tank is empty, fill it by pump 1.
• If tank is full, empty using pump 3.
Task 4 In Batch Simulator
• Fill the tank by pump number 1 until high level.
• After reaching high level, mixer and heater start to work together.
• After reaching 40 Celsius degree, stop the heater and mixer.
• Empty the tank by pump number 3.
Task 5 In Batch Simulator
• Fill the tank by pump number 1 until high level.
• After reaching high level, mixer and heater start to work together.
• After reaching 40 Celsius degree, stop the heater and mixer.
• Empty the tank by pump number 3.
• All of these done using latched and unlatched outputs only.
Task 6 In Batch Simulator
• Fill the tank by pump 1.
• Empty tank by pump 3.
• Fill the tank by pump 2.
• Empty tank by pump 3.
• Continue from last step after clicking on stop.
Task 7 In Batch Simulator
• Fill the tank by pump 1 for 2 seconds.
• Fill the tank by pump 2 until high level.
• Operate mixer for 5 seconds.
• Operate heater until 35 Celsius degree.
• Empty tank by pump 3.
• Cycle is repeated.
• If liquid exists when I click on start button, use pump 3 to empty tank first.
Task 8 In Batch Simulator