Gabah Ywa P rogrammable L ogic C ontroller Presented by Naing Win Hlaing B.E (Electrical Power)
Course Titles Introduction To PLC Programming Flowcharts & Ladder Diagrams Input/Output Assignments Writing the PLC Programming Test Run of a PLC Training Kit CPM2A Test Run of CX Programmer with CPM2A
Introduction To PLC Programming History of PLC Earliest form of logic control is by means of “relays” In 1968,a group of engineers from General Motors start trying to replace relays panels to PLC. In 1977, Allen Bradley Corporation in USA introduces a microprocessor based PLC
What is a Control System? A Control System is a collection of electronic devices and equipment which are in place to ensure the stability, accuracy and smooth transition of a process or manufacturing activity.
What is Programmable Logic Controller ? A PLC is a solid state device used to control machines or process operation by means of a stored application program and feedback from the input / out put devices.
Block Diagram of PLC
Input & Output Devices
Memory Read-Only Memory (ROM) Random Access Memory (RAM) Erasable Programmable Read Only Memory (EPROM) Electrically Erasable Programmable Read Only Memory (EEPROM)
Last Program Execution First Program Execution Scanning Time of PLC
This is a On/Off Circuit OUTPUT PB 1 Start PB 2 Stop Batter y Bulb
This is a Sample Flow Chart PB 1 Start PB 1 Stop Output Bulb Yes No
This is a Sample Ladder Diagram Main BUSRUNG END ‘a’ contact OUTPUT PB 1PB 2 Self Holding
The Basic Instructions are…. LD = starts each logic line or block AND= serially connect two or more inputs OR= connect two or more parallel inputs NOT= normally closed input or outputs,can be used with LD,AND,OR and OUT END= the end of program and must be included in every program.
Inputs & Outputs Assignments INPUTSDATARemark PB 10000Start Button PB 20001Stop Button OUTPUTSDATARemark 1000Bulb
OUT 1000 END PB 1PB 2 OR 1000 FUN 01 LD 0000AND NOT 00001
Mnemonic Codes Table AddressInstructionsData 0000LD OR AND NOT OUT FUN(End) 01
Display Screen Mode Selector Switch CommandsOperands Numerical Keys Operations
Output,10 Channel Bit Input, 0 Channel Bit Give manually input by Joker Switchs. Display output by LED lights Connector To Console Connector To Computer
Writing the PLC Programming “Initial Settings of Programming Console” When the power is ON,Console always prompt….. PASSWORD! To clear the password, key in the following steps….. CLRMTRCLR
“Clearing all of Program in the Console” Set the MODE switch to PROGRAM… To clear all program in memory, key in the following steps….. CLRSETNOTRESETMTRCLR
“To see the OUTPUT at the Program Mode” Set the MODE switch to PROGRAM….. To see the output LED lights individually, key in the following steps….. CLROUT1MTRSET000 To on OR RESET To off See what happen at output LED 1000….
Program Entry Procedure of a simple ON-OFF Circuit LD0WRITEOR0WRITE00AND0WRITE001NOTOUT WRITEFUN01WRITE Set the MODE switch to PROGRAM….. Set the MODE switch to RUN and press input switch 000.
“Combining AND and OR Instruction” LD0000 AND0001 OR1000 AND0002 AND NOT0003 OUT1000
0001 HR000 “Combining AND and OR Instruction” HR
LD0000 0R0001 OR0002 ORHR0000 AND0003 OUTHR0000 OUT1000 AND0004 OUT1001 “Coding Multiple Right- hand Instruction”
TR “Combining AND and OR Instruction” TR
LD0000 OUTTR0 AND0001 OUTTR1 AND0002 OUT0000 LDTR1 AND0003 OUT1001 LDTR0 AND0004 OUT1002 LDTR0 AND NOT0005 OUT1003 LD0000 OUTTR0 AND0001 OUTTR1 AND0002 OUT0000 LDTR1 AND0003 OUT1001 LDTR0 AND0004 OUT1002 LDTR0 AND NOT0005 OUT1003 “Branching Instruction Lines”
TIMER Relay (TIM) END PB 1PB TIM 00 # sec TIM Address SV
Mnemonic Codes For TIMER AddressInstructionsData 0000LD OR AND NOT OUT TIM00 # LD TIM OUT FUN(End) 01
COUNTER Relay (CNT) END CNT CNT 00 # 10 Start Reset Address Set Value
Mnemonic Codes For COUNTER AddressInstructionsData 0000LD LD CNT00 # LD CNT OUT FUN(End) 01
“Interlock (IL) and Interlock Clear (ILC)” ILC IL END
LDNOT0000 FUN(IL)02 LD0001 OR201 ANDNOT202 OUT201 LD002 OR202 ANDNOT201 OUT202 FUN(ILC)03 FUN(END)01 In this example, normally closed contact 000 is shared by two branches …. FUN 02 is usually used in conjuction with FUN 03 to create Interlocks.
Understanding DATA MEMORY(DM) ADD (30) DM 0000 # 1 DM 0000 SUB(31) DM 0000 # 1 DM 0000 CLC(41) Sensor
LD000 FUN41 FUN30NOT DM000 # 01 DM000 LD001 FUN41 FUN31NOT DM000 # 01 DM000 FUN(END)01 In this example, FUN 41 = CLC(41) clear the carry sign, FUN 30 NOT = ADD 30 Add 1 and carry to the value in DM 000,the result is in DM 000. FUN 31 NOT = SUB 30 Subtract 1 and carry to the value in DM 000,the result is in DM 000.
COMP(20) Sensor DM 000 # 100 Constant
PLC Manufacturers ABB Process Automation, INC. Adatek Allen-BRADLEY Analogic Corporation Automatic Timing & Controls Basicon, INC. Bristol Babcock, INC. B&R Industrial Automation Corp Cincinnnati Milacron,Inc. Control Technology Corp Digitronics Sixnet Diveldiss Corp. Eagle Signal Controls Eaton Corp. Entertron Industries,Inc. Festo Corp Furnas
PLC Manufacturers Contd.. Giddings & Lewis,Inc. Grayhill,Inc. HMW Enterprises,Inc. Honeywell,Inc. Horner Electric,Inc. Icon Corp. Idec Systemsa and controls Corp. Int’l Parallel Machines,Inc Jumo process Control,Inc. Kiockner-Moeller Corp. Keyence Corp Mitsubishi Int’l Corp. Modicon,Inc. Nolatron,Inc. Omega Engineering,Inc. Omron Electrics,Inc. Opto 22 Phoneix Contact Pro-Log Crop. Pyramid Industries,Inc.
PLC Manufacturers Contd.. Reliance Electric Semix,Inc. Siemens Industrial Automation,Inc. Square D Co. Tenor Controls Company Triconex Corp. Toshiba Uticor Technology,Inc. Westinghouse Electric Corp. Yaskawa Electric,Inc.
END Hope to help you this presentation for your study in PLC programming. Naing Win Hlaing.