CH.2 Types PLC Programming Languages : - JELECOM ISO 9001 Certified Cairo Egypt April 2009 PLC Programming Languages 82 JELECOM CH.2: PLC Programming Languages Instruction List (IL) Series of instructions, eac one must start on a ne! "ine. #ne instruction $ operator % one or more operations separate& 'y commas. (unction )"oc*s "unce& using a specia" operator. La'e" #perator #peration Comment +un:L, -I./ (0pus'utton0) 12,2 -3.4 ST -5.2 (0run0) (unction )"oc* ,iagram ((),) : - +epresentation of functions 'y '"oc*s "in*e& to eac oter. 2et!or* e6a"uation :from te #7P of a function '"oc* to te I7P of te connecte& function '"oc*. La&&er ,iagram (L,) : - 8rapic e"ements organi9e& in net!or*s connecte& 'y po!er supp"y rai"s. :"ements use& :contacts, coi", functions, function '"oc*s contro" e"ements (;ump, return, etc.) La&&er Logic :"ements : JELECOM ISO 9001 Certified Cairo Egypt April 2009 82 JELECOM CH.2: PLC Programming Languages JELECOM ISO 9001 Certified Cairo Egypt April 2009 82 JELECOM CH.2: PLC Programming Languages Creating a Pro;ect : ,ou'"e-c"ic* <8L=>:.e?e fi"e to run <8L>I2. Te Start-up Screen !i"" 'e so!n as 'e"o!. JELECOM ISO 9001 Certified Cairo Egypt April 2009 82 JELECOM CH.2: PLC Programming Languages In te fo""o!ing &ia"og 'o?, Type in PLC Type, Programming Language, Tit"e, Company, 1utor an& ,escription. Creating a Program : Creating a La&&er Program : JELECOM ISO 9001 Certified Cairo Egypt April 2009 82 JELECOM CH.2: PLC Programming Languages 1fter se"ecting te 2orma""y #pen Contact ( ) icon in te La&&er Too" )ar, 3o6e te cursor to te p"ace to insert te contact. C"ic* te "eft 'utton of te mouse or press :nter *ey, ten te contact input &ia"og 'o? appears. Type in te contact name (3@@@@) you !ant to insert an& c"ic* #< 'utton or press :nter *ey. JELECOM ISO 9001 Certified Cairo Egypt April 2009 82 JELECOM CH.2: PLC Programming Languages Se"ect te #utput Coi" ( ) icon in te La&&er Too" )ar an& mo6e te cursor to te ne?t co"umn of 3@@@. C"ic* te mouse 'utton or press :nter *ey. Type in te #utput Coi" (P@@@) an& c"ic* #< 'utton or press :nter *ey. JELECOM ISO 9001 Certified Cairo Egypt April 2009 82 JELECOM CH.2: PLC Programming Languages Se"ect te Aertica" "ine ( ) icon in te La&&er Too" )o? an& c"ic* te mouse 'utton on te cursor position. To &e"ete Aertica" "ine, se"ect Aertica" "ine an& press &e" *ey or press 'ac* space *ey in a'o6e picture. Se"ect te 2orma""y C"ose& Contact ( ) icon in te La&&er Too" )ar an& 3o6e te cursor to te p"ace to insert te contact. C"ic* te mouse or press :nter *ey to open te input &ia"og 'o? for te contact input. Type in an input contact tat you !ant an& c"ic* #< 'utton or press :nter *ey. 1fter se"ecting te 1pp"ie& Instruction icon ( ) in La&&er Too" )o?, c"ic* te mouse or press :nter *ey. Type I2CP ,@@@@ in te La&&er :&itor )o?. JELECOM ISO 9001 Certified Cairo Egypt April 2009 82 JELECOM CH.2: PLC Programming Languages Se"ect te 2orma""y #pen Contact ( ) icon in te La&&er Too" )ar an& mo6e te cursor to te ne?t start "ine C"ic* te mouse or press :nter *ey. Type (@@BC (System pu"se c"oc* for / secon&) Se"ect te 1pp"ie& Instruction icon ( ) in te La&&er Too" )ar an& type CTD C@@@ 2@. (or te +eset input of te Counter, type 3@@@/ in te reset position after se"ecting te 2orma""y #pen Contact. JELECOM ISO 9001 Certified Cairo Egypt April 2009 82 JELECOM CH.2: PLC Programming Languages To comp"ete te La&&er "ine, se"ect te Hori9onta" Line ( ) icon in te La&&er Too" )o?. 1n& c"ic* te mouse to fi"" te spaces 'et!een t!o icons !it te "ine. To finis te program e&iting, insert :2, Instruction in te ne?t "ine. Se"ect te 1pp"ie& Instruction icon ( ) to enter :2, instruction an& press :nter *ey or c"ic* te mouse 'utton. Te Screen Setup an& (unctions : JELECOM ISO 9001 Certified Cairo Egypt April 2009 82 JELECOM CH.2: PLC Programming Languages JELECOM ISO 9001 Certified Cairo Egypt April 2009 82 JELECOM CH.2: PLC Programming Languages Te Status )ar : ,escription 3o&e : ,escri'es te (unction of te Comman& or 3enu. PLC 3o&e : So!s te Connection Status, PLC Type, ,ept of Connection, PLC #perating 3o&e, Aie! 3o&e, 3onitoring 3o&e an& more. 3enu : E To perform an item (comman&) in 3enu, you can se"ect te Comman& in Pu""-&o!n menu or te icon in te Spee& )ar. E Te 3enu )ar pro6i&es t!o !ays for you to access te Pu""-&o!n menus. #nce te Pu""- &o!n menu appears, Fou can access te menu items in te same !ay 'y eiter using te mouse or pressing te un&er"ine& "etter (Pro;ectG) In or&er to e?ecute a comman& 'y te un&er"ine& caracter in te menu "ist, press te H1LTI *ey first, an& ten press te "etter. Pro;ect : JELECOM ISO 9001 Certified Cairo Egypt April 2009 82 JELECOM CH.2: PLC Programming Languages (i"e : :&it : Too" (#n"y a6ai"a'"e for La&&er Program) : JELECOM ISO 9001 Certified Cairo Egypt April 2009 82 JELECOM CH.2: PLC Programming Languages Aie! : #n"ine : JELECOM ISO 9001 Certified Cairo Egypt April 2009 82 JELECOM CH.2: PLC Programming Languages ,e'ug : >in&o! : JELECOM ISO 9001 Certified Cairo Egypt April 2009 82 JELECOM CH.2: PLC Programming Languages He"p : Too" )ars : JELECOM ISO 9001 Certified Cairo Egypt April 2009