220 likes | 242 Views
Control System Applications (2). P rogramming L ogic C ontrollers PLCs Lect. 3 Dr. Tarek Ahmed Mahmoud http ://mu.menofia.edu.eg/tarek_mohamed/StaffDetails/1/ar. Outlines. Principles of PLC Operation (cont.). PLC System Components (lect.2 √). PLC Programming.
E N D
Control System Applications (2) Programming Logic Controllers PLCs Lect. 3 Dr. Tarek Ahmed Mahmoud http://mu.menofia.edu.eg/tarek_mohamed/StaffDetails/1/ar
Outlines • Principles of PLC Operation (cont.) • PLC System Components (lect.2 √) • PLC Programming • PLC Mechanical Design • TSX NANO PLC • Available Configurations • Extendable and Non-extendable TSX NANO PLCs • I/O addressing • Programming of TSX NANO PLCs
Programming PLCs • The programming Device 1- Handheld programming device 2- Desktop consoles 3- Personal computers The program can be stored on the hard disk or a CD and copies can be easily made.
Programming PLCs • The programming Languages International ElectrotechnicalCommission Stander IEC 61131-3. 1- Ladder diagram (LAD) 2- Instruction list (IL). 3- Function block diagram (FBD) 4- Structured text (ST) 5- Sequential function charts (SFC)
Programming PLCs • Programming Software Siemens has SIMATIC STEP 7 Mitsubishi has MELSOFT PL7-07 for TSX NANO PLC
PLC Mechanical Design 1- single box type (small PLCs) - 10 I/O (6 inputs + 4 outputs) - 14 I/O (8 inputs + 6 outputs) - 16 I/O (9 inputs + 7 outputs) - 20 I/O (12 inputs + 8 outputs) - 24 I/O (14 inputs + 10 outputs) TSX Nano PLC A single box type 2- Modular/rack type (all sizes of PLCs) • I/O modules are available • in 8, 16, or 32 I/O per module SIMATIC S7-300 A modular type
TSX Nano PLCs • Available Configurations
TSX NANO PLCs • Non-extendable PLCs Main Main Program I N P U T S O U T P U T S Base
TSX NANO PLC • Extendable PLCs Main Program I N P U T S O U T P U T S Base+ I/P extension
TSX NANO PLC s • Extendable PLCs Base+3 pears +I/O extension
TSX NANO PLC s • I/O addressing I or Q • i % 0 or 1 Input or output number I= input Q = output 0= base or peer 1 = I/O extension Examples %I0.3 : Input, I/O point n°3 on the base PLC %Q1.6 : Output, I/O point n°6 on PLC used as I/O extension
TSX NANO PLC s • I/O addressing
Programming of TSX NANO PLCs • Programming Software PL7-07 (Ladder or Instruction List languages). • ProgrammingTerminals FTX 117 terminal (Instruction List) FTX 417 (Ladder or Instruction List).
Programming of TSX NANO PLCs • Reversibility of PL707 software The ability of the PL7-07 to convert TSX Nano application programs from the Ladder programming language to the List language and back again. Program is written by IL Program is written by (LD)
Programming of TSX NANO PLCs • Instruction List • Series of instructions (up to 1000 instructions) of various types. • Each instruction (program line) has Operand Number • Instruction code 003 LD %I0.1 008 OR %M10
Switch time Motor time Switch = I0.0 Motor coil =Q0.0 • 00 LD %I0.0 • 01 ST %Q0.0
Instruction List • Types of Instructions
Programming of TSX NANO PLCs • Ladder Diagram Ladder diagrams are similar to relay logic diagrams used to represent relay control circuits. Ladder diagram Wiring diagram
Ladder Diagram Language - A program written in Ladder is composed of rungs - Each rung includes set of specific graphical instructions drawn between the two vertical outer bars. • the inputs/outputs of the PLC • the functions of the PLC (timers, ounters...), • the math and logic operations • the comparison operators and other numerical operations • the internal variables in the PLC
%Q0.0 %I0.0 • Ladder Diagram L2 L1 Ladder diagram language
%Q0.0 %I0.0 Switch = I0.0 Motor coil =Q0.0 • 00 LD %I0.0 • 01 ST %Q0.0 Instruction List L1 L2 Ladder Diagram