LG PLC COURSE Beginner Prepared by : -Hossam Mohammed -Ramdan said Designed by : -Hossam Mohammed
LG module XGB-XGBCE
Lecture (1) Plc history & automatic control (classic) . Advantages of PLC. Basic PLC operation. Analog VS Digital. Inputs and outputs. PLC inside view. Over view .
Plc history & automatic control (classic) Classic control revision Over view about plc history In the 1960's Programmable Logic Controllers were first developed to replace relays and relay control systems. In 1973 the ability to communicate between PLCs was added. The 90's increased the collection of ways in which a PLC could be programmed (block diagrams, instruction list, C, etc.). They also saw PLCs being replaced by PC's in some cases. However, PLCs are still very much in use in all sorts of industries, and it's likely that they will remain there for quite some time.
Some Advantages of PLC More complex tasks can be done with a PLC . Wiring between devices and relay contacts is done in the PLC program . Smaller physical size than hard-wire solutions. PLCs have integrated diagnostics and override functions. Applications can be immediately documented. Applications can be duplicated faster and less expensively.
Basic PLC operation
Example Pushbuttons , in this simple example, connected to PLC inputs, can be used to start and stop a motor connected to a PLC through a motor starter .
Analog VS Digital Analog Digital Signal Analog signal is a continuous signal which represents physical measurements. Digital signals are discrete time signals generated by digital modulation. Waves Denoted by sine waves Denoted by square waves Example Human voice , measuring variable values , percentage opening closing devices . Computers, CDs, DVDs, open close devices 0—1 complete open or close . Uses Can be used in analog devices only. Computing and digital electronics application Heat sensors , valves control , any physical sensor in general . Limit switches , any 0—1 application , computing .
Inputs and outputs Input Output Definition It comes from sensors that translate physical phenomena into electrical signals. It allows a PLC to cause something to happen in a process. Types Ac , dc sourcing and sinking input . Mechanical relays or static relays ( electronics ) . Examples Proximity Switches , Switches , Potentiometer . Solenoid valves , Lights , Motor Starters , Servo Motors . Physical exist in PLC In smaller PLCs the inputs are normally built in and are specified when purchasing the PLC. For larger PLCs the inputs are purchased as modules, or cards, with 8 or 16 inputs of the same type on each card. In smaller PLCs the outputs are normally built in and are specified when purchasing the PLC. For larger PLCs the outputs are purchased as modules, or cards, with 8 or 16 outputs of the same type on each card.
Input discrete technique Opto-isolator converter Terminal 1 Input (switch, sensor,…) CPU common Input module point
Output discrete technique Load Terminal 1 Input logic Opto-isolator Converter Trigger control CPU Output module point
PLC inside view
Over view ? Any question ?
Lecture (2) Program execution method. XBC Hardware and wiring . Programming methods of PLC. Ladder logic on digital concepts. Function block over view. XG5000 software. Some examples. Over view .
Program execution method
XBC Hardware hardware of XBC PLC Economic type 3 8 7 11 1 6 10 5 2 9 4
B A C k
XBC wiring Input wiring
Relay output wiring
Transistor output wiring
Programming Methods of PLC ladder logic . Function Block Diagram . Sequential Function Chart . Structured Text . Instruction List .
Ladder logic concepts Ladder logic is the main programming method used for PLCs
Ladder examples Two conditions to run one coil
MOTOR START WITH LATCH
MOTOR START WITH Set\Reset
Function block Over view Simply function block uses logic gates instead of ladder Examples
Relation between ladder and blocks Or Not Nand Nor Example ladder to blocks
XG5000 software
Start new project
Keyboard Shortcuts
XG5000 Short-Cuts
Connect to plc hardware
Some examples Auto Garage entrance door with latch
The same example with set
Over view Any Question ?
Lecture (3) Refreshment . Plc small example and hardware run . Marker . Positive edge . Negative edge . Timer on . Timer off . Mono-stable timer . Can you imagine . Home work :D . Over view .
Refreshment plc Input Output ladder Hardware
Plc small example and hardware run 3 pumps with three level sensor and one valve 3 pumps auto run .. when sensor 1 read 2 pumps only run and stop the third one …. when the second sensor read only one pump run …. when the third sensor read all pumps off and the valve run till the tank be empty and again ….
Marker It’s a coil inside plc to help me to make more latches and more functions like on last example put start push button
Positive edge Negative edge It help you to take a pulse take some examples For example to make one push button use to open and close lamp from one place or from more than one place the program will be like that but this impossible and have a problem
Positive edge
Negative edge
Timer on
Timer off
Mono-stable
Can you imagine Every one say example and we’ll choose the best one and do it
Home work Lifter for three floors with stop button at worst case and buzzer button for help Use 6 sensors ,5 push button and two limit switch The motor must be slow before stop in wanted floor
Any question ???? Please ask :D Over view Any question ???? Please ask :D
Lecture (4) Try the 3 pumps example on plc hardware . Try more examples from your suggestion and imagination . Lifter homework revision . Any question about anything we have finished it till this moment .
Lecture (5) Counters . Counter up Counter down Counter up/down Counter ring Lifter if you want . Your examples . Try your example on plc module . Any questions .
Counter up Use to up counting from 0 to any value you enter … when reach this value relay on ….. To reset it to zero put button with reset coil to reset counter to zero
Counter down Use to down counting from the value you entered to zero ….. Reset like up
Counter up/down Use two input one for up counting and another one for down counting ….. It count in the range you entered ….. Reset like up and down
Counter ring Like up counter with option auto reset after finishing counting
Lifter ???????????? Floor 2 Floor 1 Floor 0 Slow stop slow
Give me your examples
Any question?