Presentation is loading. Please wait.

Presentation is loading. Please wait.

PROGRAMMABLE LOGIC CONTROLLER POWER SUPPLY FIELD INPUTSCONTROL PROCESS/MACHINE INPUT MODULE CPU PROGRAM MEMORY OUTPUT MODULE PLC.

Similar presentations


Presentation on theme: "PROGRAMMABLE LOGIC CONTROLLER POWER SUPPLY FIELD INPUTSCONTROL PROCESS/MACHINE INPUT MODULE CPU PROGRAM MEMORY OUTPUT MODULE PLC."— Presentation transcript:

1

2 PROGRAMMABLE LOGIC CONTROLLER POWER SUPPLY FIELD INPUTSCONTROL PROCESS/MACHINE INPUT MODULE CPU PROGRAM MEMORY OUTPUT MODULE PLC

3 .7.6.5.4.3.2.1.1.0.7.6.5.4.3.2.1.1.0.7.6.5.4.3.2.1.1.0.7.6.5.4.3.2.1.1.0.7.6.5.4.3.2.1.1.0.7.6.5.4.3.2.1.1.0.7.6.5.4.3.2.1.1.0.7.6.5.4.3.2.1.1.0 CPU.7.6.5.4.3.2.1.1.0.7.6.5.4.3.2.1.1.0.7.6.5.4.3.2.1.1.0.7.6.5.4.3.2.1.1.0.7.6.5.4.3.2.1.1.0.7.6.5.4.3.2.1.1.0.7.6.5.4.3.2.1.1.0.7.6.5.4.3.2.1.1.0 01234567 89101112131415 PLC AI 0.0 OPRATION OPRAND IDENTIFIER PARAMETER OPRAND

4 Start scan monitor time Load process input image Call OB1 (scan user program) Transfer process output image System program Digital inputs Digital outputs :JUPB1 :BE : :AI0.0 : :=Q4.0 :BE PII PIQ OB1 PB1 User program

5 Software Blocks used in program PB 0………255 OB 1………255 SB 0……..255 DB 2……..255 FB 0……….255 Program blocks: for plants specific functions Function blocks for standardized function,independent of particular plant Organization Blocks for organization and supervision of program execution called by the system program. Sequence blocks: for programming sequences (sequential control system Data blocks for the storage of fixed and variable data

6 I0.1 ( ) I0.0Q4.0 LAD :AI0.0 :AI0.1 :=Q4.0 STL CSF & Q4.0 I0.0 I0.1 = K1 I0.1 Q4.0 I0.0 CIRCUIT DIAG. S1 K1 24v S2 0v INPUT MODUL PLC OUTPUT MODUL

7 Check for 0&Check for 1 NO Contact NC Contact When Actuated When Not Actuated When Actuated When Not Actuated 10 0 1 STL FBD/CSF LAD RepresentationCheck for 1 Check for 0 A… O... AN.. ON.. (1)

8 Q4.0 =>1 I0.5 I0.0 & & = I0.1 I0.2 I0.3 I0.4 CSF O( AI0.0 AI0.1 AI0.2 ) O( AI0.3 AI0.4 ) 0I0.5 =Q4.0 STL I0.3 I 0.0 I0.5 Q4.0I0.1I0.2 LADDER I0.4 K1 I0.3 I0.1 10.4 I0.5 Q4.0 I0.0 I0.2 AND-BEFORE OR-OPERATION

9 LADDER ( ) I0.0I0.3I0.5Q4.0 I0.2I0.4 I0.2 I0.0 I0.3 I0.4 >=1 & = I0.1 I0.2 I0.5 Q4.0 CSF :A( :OI0.0 :OI0.1 :OI0.2 ) :A( :OI0.3 :OI0.4 ) :AI0.5 =Q4.0 STL I0.5 Q4.0 OR-BEFORE AND-OPERATION I0.0 I0.3 I0.1 I0.4 I0.2 K1

10 Contacter K1 on when S1 is operated and S2 is not operated I0.0 I0.1 Programmable Controller Q4.0 K1 24v S1S2 0v I0.1 ( ) I0.0Q4.0 LAD :AI0.0 :ANI0.1 :=Q4.0 STL CSF & Q4.0 I0.0 I0.1 =

11 Contacter K1on when S1 is operated and S2 is not operated :ANI0.0 :AI0.1 :=Q4.0 STL I0.0 I0.1 Programmable Controller Q4.0 K1 24v S1S2 0v I0.1 ( ) I0.0Q4.0 LAD CSF & Q4.0 I0.0 I0.1 =

12 Contacter K1on when S1 is operated and S2 is not operated I0.1 ( ) I0.0Q4.0 LAD :AI0.0 :AI0.1 :=Q4.0 STL I0.0 I0.1 Programmable Controller Q4.0 K1 24v S1S2 0v & CSF Q4.0 I0.0 I0.1 =

13 Two out of three Input=I0.0,I0.1,I0.2Output=Q4.0 STL :O :( :AI0.0 :AI0.1 :) :O :( :AI0.1 :AI0.2 :) :O :AI0.2 :AI0.0 :) :=Q4.0 ( ) LAD I0.0I0.1Q4.0 I0.1I0.2 I0.0 I0.1 I0.2 I0.0 & & & >=1 = Q4.0 I0.1 I0.2 CSF

14 Three inputs are there I 0.0, I 0.1, I 0.2. After tripping compressor all inputs have state change. Give the 1st out for above inputs. S RQ( ) S RQ S RQ Q4.0 Q4.1 Q4.2 Q4.1Q4.2 Q4.0 Q4.1Q4.0 I0.0 I0.3 I0.1 I0.2

15 Write a program in STL/LAD/CSF for the given below TASK: In the process there are three temperature sensors(e.g. T1,T2,T3) two pressure sensors(e.g.P1,P2)and enable input. 1 All three temperature sensors i.e.T!,T2,T3 should on. 2 OR both the pressure transducers should on. 3 OR enable input should be activated. T1 T2 T3 P1 P2 Note:normal condition=NC Abnormal condition=NO Data 1 Temp. input T1=I0.0 2 Temp input T2=I0.1 3 Temp input T3=I0.2 4 Pressure input P1=I0.3 5 Pressure input P2=I0.4 6 Enable input=I0.5 7 Output Q=Q4.0 And before Or

16 I0.3 I0.4 I 0.0 I0.5 Q4.0I0.1I0.2 LADDER =>1 I0.5 I0.0 & & = I0.1 I0.2 I0.3 I0.4 Q4.0 CSF Data 1 Temp. input T1=I0.0 2 Temp input T2=I0.1 3 Temp input T3=I0.2 4 Pressure input P1=I0.3 5 Pressure input P2=I0.4 6 Enable input=I0.5 7 Output Q=Q4.0 STL O( AI0.0 AI0.1 AI0.2 ) O( AI0.3 AI0.4 ) 0I0.5 =Q4.0

17 Write a program in STL/LAD/CSF for the given below TASK: In the process there are three temperature sensors(e.g. T1,T2,T3) two pressure sensors(e.g.P1,P2)and enable input. 1 Any one of three temperature sensors on i.e.T,T2,T3. 2 AND any one of two pressure transducers should on.i.e.P1,P2 3 AND enable input should be activated. T1 T2 T3 P1 P2 Note:normal condition=NC Abnormal condition=NO Data 1 Temp. input T1=I0.0 2 Temp input T2=I0.1 3 Temp input T3=I0.2 4 Pressure input P1=I0.3 5 Pressure input P2=I0.4 6 Enable input=I0.5 7 Output Q=Q4.0 OR before AND

18 LADDER ( ) I0.0I0.3I0.5Q4.0 I0.2I0.4 I0.2 >=1 & = I0.0 I0.1 I0.2 I0.3 I0.4 I0.5 Q4.0 CSF :A( :OI0.0 :OI0.1 :OI0.2 :) :A( :OI0.3 :OI0.4 :) :AI0.5 =Q4.0 STL Data 1 Temp. input T1=I0.0 2 Temp input T2=I0.1 3 Temp input T3=I0.2 4 Pressure input P1=I0.3 5 Pressure input P2=I0.4 6 Enable input=I0.5 7 Output Q=Q4.0

19 K1 HOLD ON OFF ON HOLD OFF PRIORITY ON PRIORITY SET RESET BLOCK S R S R Q Q RESET PRIORITY SET PRIORITY I0.0 I0.1 Programmable Controller Q4.0 K1 24v S1S2 0v ONOFF

20 SET RESET BLOCK S R S R Q Q RESET PRIORITY SET PRIORITY I0.0 I0.1 Programmable Controller Q4.0 K1 24v S1S2 0v ONOFF SRQ 1 1 1 1 0 0 0 1 0 LAST STATE PRIORITY 0 RESET PRIORITY AI0.0 SQ4.0 ANI0.1 RQ4.0 SET PRIORITY AI0.0 RQ4.0 AI0.1 SQ4.0

21 CPU AIAQDI DQ AI 7 6 5 4 3 2 1 0 01234560123456 127 0 64 68 72 76 PIQ PII 127 NON-UTILIZABLE UNUSED AREAS

22 7 6 5 4 3 2 1 0 Byte 2 Byte 12 Byte 102 Byte 103 AI2.2 LIB12 LIW102 LOAD FUNCTION

23 7 6 5 4 3 2 1 0 Byte 4 Byte 66 Byte 92 Byte 93 Q4.2 TQB 66 TQW 92 TRANSFER FUNCTION High byte Accum1 Low byte PIQ

24 TASK OUTPUT SHOULD EXACTALY FOLLOER OF INPUT L IW 0 T QW 3

25 START INPUT RESET INPUT PULSE OUTPUT ttt I0.0 KT050.1 I0.1RQ BI DE FW6 QW5 Q4.7 1 T1 PULSE TIMER(SP) LAD/CSF STL A I0.0 L KT050.1 SP T1 A I0.1 R T1 A T1 NOP0 =Q4.7 t t t TV START INPUT RESET INPUT PULSE OUTPUT ttt I0.0 KT050.1 I0.1RQ BI DE FW6 QW5 Q4.7 1 T1 PULSE TIMER(SP) LAD/CSF STL A I0.0 L KT050.1 SP T1 A I0.1 R T1 A T1 NOP0 =Q4.7 t t t TV

26 KT=CONSTANT=KT400.0 IW=INPUT WORD=IW1 QW=OUTPUT WORD=QW6 FW=FLAG WORD=FW100 DW=DATA WORD=DW255 TIME BASE 0=0.01S 1=0.1 S 2=1 S 3=10 S

27 START INPUT RESET INPUT PULSE OUTPUT ttt I0.0 KT050.1 I0.1RQ BI DE FW6 QW5 Q4.7 1 T1 LAD/CSF STL A I0.0 L KT050.1 SE T1 A I0.1 R T1 A T1 NOP0 =Q4.7 t t t EXENDED-PULSE TIMER E t TV

28 TASK TWO FLASHING LIGHTS USING TIMER (1) L1& L2 SHOULD BE FLASHING WHEN SWITCH S1 IS ON. (2)STATUS OF LAMPS L1&L2 MUST BE OPPOSITE OF EACH OTHER (3)THE TIME FOR FLASHING FOR BOTH LAMPS SHOULD BE SAME (4)WHEN SWITCH S1 IS MADE OFF FLASHER SHOULD STOP. T1 AI0.0 ANQ4.8 LKT030.1 SET1 NOP0 AT1 =Q4.7 AI0.0 ANQ4.7 LKT030.1 SET2 NOP0 AT2 =Q4.8 I0.0 KT050.1 NOP0RQ BI DE NOP0 Q4.7 1 TV I0.0 KT050.1 NOP0RQ BI DE NOP0 Q4.8 1 TV Q4.7 Q4.8 T2 E E

29 START INPUT RESET INPUT OUTPUT tt I0.0 KT050.1 I0.1RQ BI DE FW6 QW5 Q4.7 T T1 LAD/CSF STL A I0.0 L KT050.1 SD/SR T1 A I0.1 R T1 A T1 NOP0 =Q4.7 t t t ON- DELAY TIMER O t TV

30 START INPUT RESET INPUT OUTPUT t I0.0 KT050.1 I0.1RQ BI DE FW6 QW5 Q4.7 T T1 LAD/CSF STL A I0.0 L KT050.1 SS T1 A I0.1 R T1 A T1 NOP0 =Q4.7 t t t LATCHING ON- DELAY TIMER E TV

31 START INPUT RESET INPUT OUTPUT t I0.0 KT050.1 I0.1RQ BI DE FW6 QW5 Q4.7 O T1 LAD/CSF STL A I0.0 L KT050.1 SF T1 A I0.1 R T1 A T1 NOP0 =Q4.7 t t t OFF- DELAY TIMER T TV t t

32 MERQURY LEVEL SWITCH ACTIVATED IN BETWEEN BECAUSE OF VIBRATION SO WE HAVE TO PROVIDE TIMER.USE PROPER TIMER AND WRITE THE PROGRAME IN LADDER & IN STL ALSO I0.0 I0.1RQ BI DE FW6 QW5 Q4.7 OT TV T1 KT100.1 STL A I0.0 L KT100.1 SF T1 A I0.1 R T1 A T1 NOP0 =Q4.7 OFF DELAY TIMER

33 + M M + CONVEYOR 1 CONVEYOR2 ON OFF TASK (1)WHEN ON PUSH BUTTON IS PRESSED BELT 2 SHOULD BE STARTED IMMEDIATELY AND BELT 1 SHOULD BE STARTED WITH A DELAY OF 5 SECONDS. (2)WHEN OFF PUSH BUTTON IS PRESSED BELT 1 SHOULD STOP IMMEDIATELY BUT BELT 2 SHOULD CONTINUE FOR ANOTHER 10 SECOND (3)THE LED INDICATING THE BELT STATUS ALSO TURN ON COORRESPONDINGLY

34 DATA I0.0=S1=START PUSH BUTTON. I0.1=S2=STOP PUSH BUTTON. Q2.0=BELT 1 START/STOP Q2.1=BELT 2 START/STOP BELT 1 BELT 2 STARTSTOP RQ T I0.0 S RQ( ) F0.0 I0.1 F0.0 NOP0 BI DE NOP0 Q2.1 O TV T2 KT100.1 F0.0 NOP0 RQ BI DE NOP0 Q2.0 TO TV T1 KT050.1 AI0.0 SF0.0 AI0.1 RF0.0 AF0.0 LKT050.1 SD T1 A T1 =Q2.0 AF0.0 LKT100.1 SF T2 A T2 =Q2.1 R-S FLIP FLOP BLOCK USED FOR ON-OFF BY PUSH BUTTONS ON DELAY TIMER USED TO DELAY START BUT STOPS IMMEDIATELY OFF DELAY TIMER USED TO DELAY STOP OF BELT2

35 I0.0 I1.1 I1.2 KC3 I1.3 BI DI Q4.7 COUNTING UP COUNTING DOWN SET RESET [FW2] [QW6] CU CD S CV R COUNTER BLOCK [1]SET INPUT=SETTING COUNTER TO CV VALUE [2]OUTPUT Q=0 WHEN COUNTER IS AT ZERO [3]OUTPUT Q=1 WHENCOUNT IS GREATER THAN ZERO C1 AI0.0 CU C0 AI1.2 L KC009 AI1.3 L C1 T QW3 L C1 T FW10 A C1 =Q4.7 STLSTL

36 IB2 IB3Q4.7 Z1 Z2 F Q IB2 IB3Q4.7 Z1 Z2 F Q IB2 IB3Q4.7 Z1 Z2 F Q IB2 IB3Q4.7 Z1 Z2 F Q IB2 IB3Q4.7 Z1 Z2 F Q IB2 IB3Q4.7 Z1 Z2 F Q COMPARISON BLOCKS != >< >= > <= < L IB 2 L IB 3 !=F =Q4.7 L IB2 L B3 ><F =Q4.7 L IB2 L IB3 >=F =Q4.7 L IB2 L IB3 >F = Q4.7 L IB2 L IB3 <=F = Q4.7 L IB2 L IB3 <F =Q 4.7 EQUAL TO NOT EQUAL TO GREATER THAN OR EQUAL TO GREATER THAN LESS THAN OR EQUAL TO LESS THAN

37 [1]P1,P2&P3 ARE PUMPS [2]START P1 AS START PUSH BUTTON PUSHED [3]P2 SHOULD START AFTER 10 SEC OF START P1 [4]P3 SHOULD START AFTER 10 SEC OF START P2 [5]P1,P2&P3 SHOULD RUN FOR 10 SEC THEN STOPS ALL THREE. [6]IF IN BETWEEN STOP PUSH BUTTON PRESS STOPS ALL THE THREE PUMPS. AI 0.0 - START PUSH BUTTON SF 0.0 - SET FLAG F0.0 AI0.1 - STOP PUSH BUTON AF0.0- FLAG IS SET AT 1 LKT300.1- LOAD VALUE 30 SEC TO TIMER T 0 SPT0 - TIMER IS PULSE TIMER AI0.1 - STOP PUSH BUTTON RT 0 - RESET TIMER T 0 LCT0- LOAD VALUE IN ACCUMULATOR1 TFW4 - TRANFER VALUE FROM ACC. 1 TO FLG W 4 AT 0 = Q4.3 - STARRT OUTPUT FOR P1 LFW4 LKT 200.1 < F = Q 4.2 START OUTPUT FOR P2 LFW4 LKT 100.1 < F = Q4.1 START OUTPUT FOR P3 AT 0 = RF 0.0

38 [1] READ FOR ZERO & READ FOR ONE [2] AND -OR FUNCTION [3] AND BEFORE OR & OR BEFORE AND [4] R-S BLOCK &LOAD AND TRANSFER [5] FIVE TIMER BLOCKS [6] COUNTER BLOCK [7] SIX COMPARISON BLOCKS


Download ppt "PROGRAMMABLE LOGIC CONTROLLER POWER SUPPLY FIELD INPUTSCONTROL PROCESS/MACHINE INPUT MODULE CPU PROGRAM MEMORY OUTPUT MODULE PLC."

Similar presentations


Ads by Google