Go to page of
Similar user manuals
-
Universal Remote
GE 45608
54 pages 0.35 mb -
Universal Remote
GE 24914
44 pages 0.66 mb -
Universal Remote
GE 90-30/20/Micro
311 pages 1.3 mb -
Universal Remote
GE 24929
42 pages 0.83 mb -
Universal Remote
GE 20309
16 pages 0.68 mb -
Universal Remote
GE RM94902
2 pages 0.02 mb -
Universal Remote
GE GFK-0804B
160 pages 0.65 mb -
Universal Remote
GE RM94901
28 pages 0.55 mb
A good user manual
The rules should oblige the seller to give the purchaser an operating instrucion of GE 90-30/20/Micro, along with an item. The lack of an instruction or false information given to customer shall constitute grounds to apply for a complaint because of nonconformity of goods with the contract. In accordance with the law, a customer can receive an instruction in non-paper form; lately graphic and electronic forms of the manuals, as well as instructional videos have been majorly used. A necessary precondition for this is the unmistakable, legible character of an instruction.
What is an instruction?
The term originates from the Latin word „instructio”, which means organizing. Therefore, in an instruction of GE 90-30/20/Micro one could find a process description. An instruction's purpose is to teach, to ease the start-up and an item's use or performance of certain activities. An instruction is a compilation of information about an item/a service, it is a clue.
Unfortunately, only a few customers devote their time to read an instruction of GE 90-30/20/Micro. A good user manual introduces us to a number of additional functionalities of the purchased item, and also helps us to avoid the formation of most of the defects.
What should a perfect user manual contain?
First and foremost, an user manual of GE 90-30/20/Micro should contain:
- informations concerning technical data of GE 90-30/20/Micro
- name of the manufacturer and a year of construction of the GE 90-30/20/Micro item
- rules of operation, control and maintenance of the GE 90-30/20/Micro item
- safety signs and mark certificates which confirm compatibility with appropriate standards
Why don't we read the manuals?
Usually it results from the lack of time and certainty about functionalities of purchased items. Unfortunately, networking and start-up of GE 90-30/20/Micro alone are not enough. An instruction contains a number of clues concerning respective functionalities, safety rules, maintenance methods (what means should be used), eventual defects of GE 90-30/20/Micro, and methods of problem resolution. Eventually, when one still can't find the answer to his problems, he will be directed to the GE service. Lately animated manuals and instructional videos are quite popular among customers. These kinds of user manuals are effective; they assure that a customer will familiarize himself with the whole material, and won't skip complicated, technical information of GE 90-30/20/Micro.
Why one should read the manuals?
It is mostly in the manuals where we will find the details concerning construction and possibility of the GE 90-30/20/Micro item, and its use of respective accessory, as well as information concerning all the functions and facilities.
After a successful purchase of an item one should find a moment and get to know with every part of an instruction. Currently the manuals are carefully prearranged and translated, so they could be fully understood by its users. The manuals will serve as an informational aid.
Table of contents for the manual
-
Page 1
GE Fanuc Automation Programmable Control Products Series 90-30/20/Micro Programmable Controllers Reference Manual GFK-0467K September 1998[...]
-
Page 2
GFL-002 Warnings, Cautions, and Notes as Used in this Publication Warning Warning notices are used in this publication to emphasize that hazardous voltages, currents, temperatures, or other conditions that could cause personal injury exist in this equipment or may be associated with its use. In situations where inattention could cause either person[...]
-
Page 3
Preface GFK-0467K iii This manual describes the system operation, fault handling, and Logicmaster 90 ™ programming instructions for the Series 90 ™ -30, Series 90 ™ -20 and Series 90 ™ Micro programmable logic controllers. Series 90-30 PLCs, Series 90-20 PLCs, and Series 90 Micro PLCs are all members of the Series 90 ™ family of programma[...]
-
Page 4
Preface iv Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K Appendix B. Interpreting Fault Tables: describes how to interpret the message structure format when reading the fault tables using Logicmaster 90-30/20/Micro software. Appendix C. Instruction Mnemonics: lists mnemonics that can be typed to displa[...]
-
Page 5
Preface GFK-0467K Preface v We Welcome Your Comments and Suggestions At GE Fanuc Automation, we strive to produce quality technical documentation. After you have used this manual, please take a few moments to complete and return the Reader's Comment Card located on the next page. David D. Bruton Sr. Technical Writer[...]
-
Page 6
[...]
-
Page 7
Contents GFK-0467K vii Chapter 1 Introduction ......................................................................................................... 1-1 Additional Reference Information: See the appendices in the back of this manual. ... 1-2 Chapter 2 System Operation ..............................................................................[...]
-
Page 8
Contents viii Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K Elapsed Time Clock ........................................................................................................ 2- 34 Time-of-Day Clock ...............................................................................................[...]
-
Page 9
Contents GFK-0467K Contents ix Application Fault ...................................................................................................... 3-12 No User Program Present ......................................................................................... 3-13 Corrupted User Program on Power-Up .......................................[...]
-
Page 10
Contents x Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K Example: ........................................................................................................... 4-16 OFDT .......................................................................................................................[...]
-
Page 11
Contents GFK-0467K Contents xi Example 2: ........................................................................................................ 4-46 Section 5: Bit Operation Functions ............................................................... 4-47 AND and OR (WORD) ............................................................................[...]
-
Page 12
Contents xii Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K Valid Memory Types: ....................................................................................... 4-74 Example: ........................................................................................................... 4-74 BLKCLR (W[...]
-
Page 13
Contents GFK-0467K Contents xiii Parameters: ...................................................................................................... 4-101 Valid Memory Types: ..................................................................................... 4-102 Example: ...........................................................................[...]
-
Page 14
Contents xiv Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K SVCREQ #2: Read Window Values ..................................................................... 4-137 SVCREQ #3: Change Prog.Communications Window Mode & Timer Value ...... 4-139 Example: ................................................[...]
-
Page 15
Contents GFK-0467K Contents xv PID Parameter Block: ..................................................................................... 4-173 Operation of the PID Instruction ..................................................................... 4-175 Internal Parameters in RefArray .................................................................[...]
-
Page 16
Contents xvi Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K Figure 2-1. PLC Sweep .................................................................................................................................. 2-3 Figure 2-2. Programmer Communications Window Flow Chart ...............................[...]
-
Page 17
Contents GFK-0467K Contents xvii Table 2-1. Sweep Time Contribution ............................................................................................................ 2-4 Table 2-2. I/O Scan Time Contributions for the 90-30 350 and 360 Series (in milliseconds) ...................... 2-5 Table 2-3. Register References .....................[...]
-
Page 18
Contents xviii Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K Table B-5. PLC Fault Data - Illegal Boolean Opcode Detected .................................................................. B-7 Table B-6. PLC Fault Time Stamp ...............................................................................[...]
-
Page 19
GF K-0467K 1-1 Intr oduction The Se ries 90-30 , 90-20 , and Mic ro PL Cs are membe r s of the GE Fanuc Series 90™ fa mily of Pro gra mmab le L og ic C ont rolle rs ( PL Cs) . The y are e asy to instal l and c o nf igu re, o f fer adv anc ed programmi ng fe atures, a n d are c ompatib le w ith the Se ries 90-7 0 PLC. The S erie s 90-20 PLC p rov [...]
-
Page 20
1-2 Serie s 90-30/2 0/Micr o Prog rammab le Con trol lers Re ference Manua l – Septe mber 1 998 GF K-0467K 1 an ale rt, s uc h as a lo w b attery signal to i ndic ate t hat t he v o ltage o f t he b atte r y prot ec ting t h e memo r y is lo w and s h ou ld b e repl ac ed. T he c ond itio n or f ail ure is ca lle d a f au lt . Fa u l t s ar e han[...]
-
Page 21
GF K-0467K 2-1 System Operation This chapter desc ribes ce rtain sy stem o perations o f th e Se r ies 90-30, 90-20, and Micro PL C sy ste ms. Thes e s y stem o peratio ns include : • A summary of P LC s w e ep s eq ue n ce s (s ee Se c tio n 1). • P rogram o rgan ization and use r r ef erenc es /data (se e Se ctio n 2). • Po w er-up an d pow[...]
-
Page 22
2-2 Serie s 90- 30/20/ M i cro Programmable Control l ers Refe rence Manual – Septe mbe r 1998 GF K-0467K 2 Sec tion 1: PLC Swe ep Summ ary The lo gic program in th e S eries 90-30, 90-20, and Micro PL Cs e xec ute repe atedly un til stoppe d b y a c o mmand fro m the pro grammer o r a co mmand fro m anothe r dev ic e. The se que nce of o pe r at[...]
-
Page 23
GF K-0467K Chapter 2 System Ope ration 2-3 2 All o f thes e s tep s e xec ute e ve ry s w ee p. Altho ugh the P rogramme r Commu n icatio ns W indow o pe n s e ach sw eep , prog rammer se r vic e s o nly o cc ur if a b oard f ault has b een de te cte d o r if the prog rammin g de v ice iss ues a se rvic e re que st; that is, the P r og r ammer Co m[...]
-
Page 24
2-4 Serie s 90- 30/20/ M i cro Programmable Control l ers Refe rence Manual – Septe mbe r 1998 GF K-0467K 2 As sho w n in th e P LC sw e ep se que nce , se ve ral items are includ ed in th e sw ee p. Thes e ite ms co n tr ib ute to the total s w e ep time as s how n in th e f o llo w ing tab le. Table 2-1. Sweep Ti m e Contribution Sw eep Elem en[...]
-
Page 25
GF K-0467K Chapter 2 System Ope ration 2-5 2 Table 2-2. I / O Scan Ti me Contributi ons for the 90-30 350 and 360 Series (in m illi seconds) Mo dul e T ype CPU 350 and 360 Se ri es Main Rack Expansi o n Rack Remot e Rack 8- poi nt di scre te input .030 .055 .206 16- poi nt di scre te input .030 .055 .206 32- poi nt di scre te input .043 .073 .269 8[...]
-
Page 26
2-6 Serie s 90- 30/20/ M i cro Programmable Control l ers Refe rence Manual – Septe mbe r 1998 GF K-0467K 2 Sweep Time Calculat ion Tab le 2-1 lis ts the s ev en ite ms that co ntr ibute to th e sw ee p time o f the PL C. The sw eep time co n sists of f ixe d time s (ho us eke e ping and diagnos tic s) and v ariable time s. Variab le times vary a[...]
-
Page 27
GF K-0467K Chapter 2 System Ope ration 2-7 2 time. In o r der to maintain accu r acy , th e actual s tart of sw e ep is r ec orde d in 100 micros ec ond increme n ts. Each timer ha s a remainder fie ld w hich co n tain s the numbe r of 100 micro se co nd increme nts that h ave o cc urr ed s in ce the last time the time r value w as incre mented . I[...]
-
Page 28
2-8 Serie s 90- 30/20/ M i cro Programmable Control l ers Refe rence Manual – Septe mbe r 1998 GF K-0467K 2 Application Progr am Logic Sca n or Solution The applic atio n program lo gic s can is w h en th e applic atio n log ic pro gram actually ex ec ute s. The lo gic s o lutio n alway s b e gins w ith th e f irst instructio n in th e us er appl[...]
-
Page 29
GF K-0467K Chapter 2 System Ope ration 2-9 2 Output Scan Ou tputs are sc ann ed du r in g the o utput s c an po r tion o f th e s w ee p, imme diate ly f o llo w in g the lo gic so lutio n. Outp uts are update d us ing data f rom %Q (f o r disc rete ou tputs ) and %AQ (f o r an alo g o utputs ) me mo r y , as ap prop r iate. If the G enius Co mmuni[...]
-
Page 30
2-10 Serie s 90- 30/20/ M i cro Programmable Control l ers Refe rence Manual – Septe mbe r 1998 GF K-0467K 2 The f o llo w ing fig ure is a flo w char t fo r the pro grammer co mmunic ations po rtion o f the sw e ep . Figure 2- 2. Programm er Comm unications W i ndow Flow Chart System Communicat ions Window (Models 331 and Higher) This is the par[...]
-
Page 31
GF K-0467K Chapter 2 System Ope ration 2-11 2 In t h e def ault Run - to - Completion mo de , the le n gth of the s y s tem c o mmunicatio ns w indo w is limited to 50 millise c o n ds. If an intellige nt optio n modu le make s a re que st that requ ir es more than 50 millis ec o nds to pro ce ss , the requ es t is s pread o ut o v e r multiple s w[...]
-
Page 32
2-12 Serie s 90- 30/20/ M i cro Programmable Control l ers Refe rence Manual – Septe mbe r 1998 GF K-0467K 2 PCM Com mun ication s with th e PLC (Models 331 and H i gher) There is no w ay f or intellige nt o ptio n modu les (IO M), s uc h as the P CM, to interrupt the CP U w hen they n ee d se rvic e . Th e CP U must p o ll eac h in tellige nt op[...]
-
Page 33
GF K-0467K Chapter 2 System Ope ration 2-13 2 St a ndard Progra m Swee p Varia tions In additio n to the normal ex ec utio n of the s tandard prog r am sw e ep, c e rtain v ariations c an be enc o untered o r fo rce d. Thes e v ariatio n s, de sc ribe d in the f o llo w ing paragraph s, can b e display e d and/o r changed f r o m the pro grammin g [...]
-
Page 34
2-14 Serie s 90- 30/20/ M i cro Programmable Control l ers Refe rence Manual – Septe mbe r 1998 GF K-0467K 2 Communication Window Modes The de f ault w indo w mo de fo r the pro grammer co mmun icatio n w indow is “L imite d” mo de . That means th at if a re que st take s mo re than 6 millise c onds to proc es s, it is proc e sse d o v e r mu[...]
-
Page 35
GF K-0467K Chapter 2 System Ope ration 2-15 2 Clearin g th e Fault T able wit h th e Key Swit ch If y ou turn th e key fr om th e RUN to STOP and bac k to RUN po s ition during the 5 s ec o n ds w hen the RUN light is f las h in g this w ill cau se the f aults to be cle ared an d the CP U w ill b e plac e d into RUN mo de . Th e light w ill sto p f[...]
-
Page 36
2-16 Serie s 90- 30/20/ M i cro Programmable Control l ers Refe rence Manual – Septe mbe r 1998 GF K-0467K 2 Sec tion 2: Progr am Or ganization and Use r Re fere nce s/Data The to tal logic size f or the Se ries 90-30 pro grammable co ntr olle r can be up to 6 KB in size f o r a Mo del 311 or Mo del 313 CPU , up to 16 KB in siz e fo r a Mode l 33[...]
-
Page 37
GF K-0467K Chapter 2 System Ope ration 2-17 2 Note Sub routine b lo cks are not av ailab le f or the Se ries 90-20 PL C o r fo r th e M icro. The us e o f su b r ou tin es is o ptio nal. Div iding a pro gram in to s maller su bro utines can s implif y pro grammin g, enhan ce understanding o f the co n tr o l algo rith m, an d redu ce the o v erall [...]
-
Page 38
2-18 Serie s 90- 30/20/ M i cro Programmable Control l ers Refe rence Manual – Septe mbe r 1998 GF K-0467K 2 Examples of Us ing Subr outine Block s As an example , the lo gic f o r a pr og r am co uld b e div ide d into th r ee sub ro utines, e ac h of w hich co uld b e c alled as nee de d f rom the prog r am. In th is ex ample, the prog r am blo[...]
-
Page 39
GF K-0467K Chapter 2 System Ope ration 2-19 2 In additio n to b eing calle d f ro m th e pro gram, sub ro utine b lo ck s c an also be c alled by o ther su bro utine b lo c ks. A sub r o utine b lo ck may e v en call its el f. a45663 PRO GRAM SUBR OUTINE 3 SUBR OUTINE 2 SUBR OUTINE 4 The P LC w ill only allow eight neste d c alls b e f ore an “Ap[...]
-
Page 40
2-20 Serie s 90- 30/20/ M i cro Programmable Control l ers Refe rence Manual – Septe mbe r 1998 GF K-0467K 2 User References The data u se d in an applicatio n prog ram is sto red as e ith er regis ter o r disc rete r ef ere nce s. Table 2-3. R egi ster References Typ e Des criptio n %R The pref ix %R is u sed to assig n sy stem reg ister refere [...]
-
Page 41
GF K-0467K Chapter 2 System Ope ration 2-21 2 Table 2-4. Di screte References - Continued Typ e Des criptio n %T The %T prefix represents temporary r eferences. These ref erences are never c hecked f o r mu ltiple c o il use a nd c an, th eref ore , be use d ma ny times in the sam e pro g ram ev en w hen co il use c he ck ing is enab led. %T m ay b[...]
-
Page 42
2-22 Serie s 90- 30/20/ M i cro Programmable Control l ers Refe rence Manual – Septe mbe r 1998 GF K-0467K 2 Whe n %Q o r %M ref e rence s are use d w ith rete n tive c oils , o r ar e us ed as f unctio n blo ck o utpu ts, the c o n tents are re tained throug h pow er los s and RUN-TO-STOP-TO-RUN tr an sitio n s. R ete ntive c oils includ e rete [...]
-
Page 43
GF K-0467K Chapter 2 System Ope ration 2-23 2 Da ta Type s Data ty pes include the f o llo w ing: Table 2-5. Data Types Type Nam e Descrip tion Data F orm at I NT Sig ned In t e ge r Sig ned in teg ers use 16 -bit m em o ry data loc ati ons, and are repres ented in 2’s c o m plem ent no tation . The valid range o f an I NT data ty pe is –32, 76[...]
-
Page 44
2-24 Serie s 90- 30/20/ M i cro Programmable Control l ers Refe rence Manual – Septe mbe r 1998 GF K-0467K 2 System Statu s References Sy ste m statu s ref e rence s in the Se ries 90 P LC ar e ass igned to % S, %S A, %S B , an d %SC memo ry . They each h ave a n ickname. Examples o f time tick ref e r ences include T_10M S, T_100MS, T_S EC, and [...]
-
Page 45
GF K-0467K Chapter 2 System Ope ration 2-25 2 Table 2-6. System Status References - Continued Referen ce Na me Defin itio n %S0017 SNPXA CT SNP- X host is actively att ached to the CPU . %S0018 SNPX_R D SNP- X ho st has r ead dat a from the CP U. %S0019 SNPX_W T SNP-X host has wr itten da ta to the CP U. %S0020 Set ON when a relational func tion us[...]
-
Page 46
2-26 Serie s 90- 30/20/ M i cro Programmable Control l ers Refe rence Manual – Septe mbe r 1998 GF K-0467K 2 Table 2-6. System Status References - Continued Referen ce Nickn am e D efinit ion %SB0010 BA D_RA M Set when the CPU detects co rrupted RA M memo ry at pow er-up. Cleared when the CP U detects that RA M mem o ry is valid at pow er-up. %SB[...]
-
Page 47
GF K-0467K Chapter 2 System Ope ration 2-27 2 Fo r a co il, the re f erenc e rep rese nts a lo catio n in memo ry th at is c o ntr olle d b y th e f lo w o f po w e r in t o the co il . In th i s example, if pow er flow s into th e lef t side of th e co il, r ef erence %Q0004 is tu rne d ON . %Q0004 –( )– The pro grammin g so f tw ar e and the [...]
-
Page 48
2-28 Serie s 90- 30/20/ M i cro Programmable Control l ers Refe rence Manual – Septe mbe r 1998 GF K-0467K 2 Funct ion Bl oc k Pa ramet ers Each line e ntering the le ft s ide o f a f unc tion b lo ck repres ents an input f o r th at func tio n . Th ere are tw o f orms of input that c an be pas se d into a f unc tio n blo c k: c ons tan ts and re[...]
-
Page 49
GF K-0467K Chapter 2 System Ope ration 2-29 2 Fo r f unctio ns w hich o pe r ate o n table s, a le ngth can b e s ele cte d f o r the f unctio n. In th e f o llow in g functi on block, a str i n g len gth of up t o 256 w ords can be se lected fo r t h e logical AND fun cti on . _____ | | (enable) —| AND |— (ok) | | | | ???????—|I1 Q|—??????[...]
-
Page 50
2-30 Serie s 90- 30/20/ M i cro Programmable Control l ers Refe rence Manual – Septe mbe r 1998 GF K-0467K 2 Sec tion 3: Powe r-U p and Power -Dow n Seque nce s Th er e ar e two po ssible pow er-up seque n ces in th e Se r i es 90-30 PL C; a cold po we r-up a n d a warm po we r-up. Th e CP U no r mally uses th e co ld po w er-up seque nce. H o we[...]
-
Page 51
GF K-0467K Chapter 2 System Ope ration 2-31 2 * ALL CLEAR CLEAR PRG, CFG, AND REGS CLEAR ALL 19 STOP MODE Clear All Process LOW BATT TRUE CORRUPT URAM 11 FALSE PRESENT AND USD VALID 2 START a45680 Go to Clear All Process * TRUE FALSE CLR M T HHP KEYS * ALL CLEAR 1 FALSE PRG SRC = URAM PROM 4 FALSE PRG SRC = USD PROM 3 TRUE TRUE REG SRC = USD PROM 5[...]
-
Page 52
2-32 Serie s 90- 30/20/ M i cro Programmable Control l ers Refe rence Manual – Septe mbe r 1998 GF K-0467K 2 FLOW CH ART TE RM S: PR G = user pr ogra m CFG = us er co nfig uration REGS = user r egisters (%I, %Q, %M, %G, %R, %AI, an d %AQ refe r ences). U SD = use r sto rage d ev ic e, e ither an EEPR OM or f lash de v ice . U R AM = non-v o latil[...]
-
Page 53
GF K-0467K Chapter 2 System Ope ration 2-33 2 Power-Down Sy stem pow er-dow n occ urs when th e po we r supply detec ts th at i n co min g AC pow e r h as dr opped f or mo r e than one po w er cy cle or the o utput of the 5-v o lt pow er supply has f allen to le ss th an 4.9 v o lts DC .[...]
-
Page 54
2-34 Serie s 90- 30/20/ M i cro Programmable Control l ers Refe rence Manual – Septe mbe r 1998 GF K-0467K 2 Sec tion 4: Cloc ks and Tim ers Clo cks and timers prov ided b y th e Se r ies 90-30 PL C include an elaps ed time clo ck, a time-o f -day clo ck (Mo dels 331, 340/341, 350 a n d 360 series o f 90-30 CP Us an d th e 28-po in t Micr o), a w[...]
-
Page 55
GF K-0467K Chapter 2 System Ope ration 2-35 2 Wa tc hdog Timer A w atc hdog time r in th e S eries 90-30 PLC is des igned to catc h catastro ph ic f ailure co nditio n s that result in an un usually lo ng sw ee p. The time r value f or the w atchdo g time r is 200 millise co nds (500 millise co nds in th e 350 and 360 series of PL C CPU s); this is[...]
-
Page 56
2-36 Serie s 90- 30/20/ M i cro Programmable Control l ers Refe rence Manual – Septe mbe r 1998 GF K-0467K 2 Sec tion 5: Sys tem Secur ity Sec ur it y in Series 90-30, Series 90-20, an d i n th e Micro PL Cs is designed to prev ent un aut h orized change s to the c o n tents o f a PL C. There ar e f o ur se curity lev e ls av ailab le in the P LC[...]
-
Page 57
GF K-0467K Chapter 2 System Ope ration 2-37 2 Privilege L evel Chang e Requ ests A prog r ammer r eques ts a privile ge le ve l change b y supply in g th e new privile ge le ve l and th e pas sw o rd f or that lev e l. A priv ileg e le v el c hange is denie d if the pas sw o rd se nt by the pro grammer do e s not ag ree w ith th e pas sw o rd sto r[...]
-
Page 58
2-38 Serie s 90- 30/20/ M i cro Programmable Control l ers Refe rence Manual – Septe mbe r 1998 GF K-0467K 2 Sec tion 6: Se rie s 90-30 , 90-20, and M ic ro I/O Sys tem Th e PLC I/O s y stem prov ides th e in t er face be twe en th e Se r ies 90-30 PL C an d user-suppli ed dev ice s and equipment. Series 90-30 I/O is c alled Mo del 30 I/O . Mode [...]
-
Page 59
GF K-0467K Chapter 2 System Ope ration 2-39 2 Mode l 30 I/O Module s Mo de l 30 I /O mo dule s ar e av ailab le as f iv e ty pes , disc rete input, dis cre te o utp ut, analog inpu t, analog ou tput, and o ptio n mod ules . The f o llo w ing table lists the M od el 3 0 I/O mo dules b y c atalo g numb er, numbe r o f I /O po ints, and a b rief de sc[...]
-
Page 60
2-40 Serie s 90- 30/20/ M i cro Programmable Control l ers Refe rence Manual – Septe mbe r 1998 GF K-0467K 2 Table 2-7. M odel 30 I /O M odul es - Continued Catalog Nu mber P o int s Des criptio n Pub Num ber Discrete Modules - Output I C693MDL 310 12 120 VA C, 0.5A GFK- 0898 I C693MDL 330 8 120/ 240 VAC , 2A GFK- 0898 I C693MDL 340 16 120 VA C, [...]
-
Page 61
GF K-0467K Chapter 2 System Ope ration 2-41 2 Table 2-7. M odel 30 I /O M odul es - Continued Catalog Nu mber D escrip tio n Pub Num ber Option Modul es I C693A PU300 Hig h Speed Co unter GFK- 0293 I C693CMM311 Com munications Co proc essor Module GFK- 0582 I C693PCM300 PCM, 160K By tes (35KBy tes User MegaBasic Prog ram) GFK- 0255 I C693PCM301 PCM[...]
-
Page 62
2-42 Serie s 90- 30/20/ M i cro Programmable Control l ers Refe rence Manual – Septe mbe r 1998 GF K-0467K 2 Global Dat a The Se r ies 90-30 PL C suppo rts ve ry fas t shar in g of data b etw e en multiple CPU s using Genius glo bal data. The Ge nius Bus Controller, IC693BEM 331 in CPU , ve r sion 5 and later, an d the Enh an ced G enius Communic[...]
-
Page 63
GF K-0467K Chapter 2 System Ope ration 2-43 2 Micro PL Cs The f o llo w ing Se r ies 90 Mi cro PL Cs are availab le. Each M icro is lis ted b y catalo g numb e r, numbe r of I/O po ints, an d a brief des cription. Th e CPU , pow e r supply , and I/O are all part of one unit. Fo r th e s pec if ic ations and w ir in g info r mation o f e ac h modu l[...]
-
Page 64
GFK-0467K 3 - 1 Fault Explanation and Correction This chapter is an aid to troubleshooting the Series 90-30, 90-20, and Micro PLC systems. It explains the fault descriptions, which appear in the PLC fault table, and the fault categories, which appear in the I/O fault table. Each fault explanation in this chapter lists the fault description for the [...]
-
Page 65
3 - 2 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 3 Section 1: Fault Handling Note This information on fault handling applies to systems programmed using Logicmaster 90-30/20/Micro software. Faults occur in the Series 90-30 , 90-20, or Series 90 Micro PLC system when certain failures or conditions ha[...]
-
Page 66
GFK-0467K Chapter 3 Fault Explanation and Correction 3 - 3 3 Note For information specific to Micro PLC fault handling, refer to chapter 7 of the Series 90 Micro PLC User’s Manual (GFK-1065). System Reaction to Faults Typically, hardware failures require that either the system be shut down or the failure is tolerated. I/O failures may be tolerate[...]
-
Page 67
3 - 4 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 3 Fault Action Faults may be fatal, diagnostic or informational. Fatal faults cause the fault to be recorded in the appropriate table, any diagnostic variables to be set, and the system to be halted. Diagnostic faults are recorded in the appropriate t[...]
-
Page 68
GFK-0467K Chapter 3 Fault Explanation and Correction 3 - 5 3 Fault Reference Definitions The alarm processor maintains the states of the 128 system discrete bits in %S memory. These fault references can be used to indicate where a fault has occurred and what type of fault it is. Fault references are assigned to %S, %SA, %SB, and %SC memory, and the[...]
-
Page 69
3 - 6 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 3 The programming software may be in any operating mode. If the programming software is in OFFLINE mode, no faults are displayed. In ONLINE or MONITOR mode, I/O fault data is displayed. In ONLINE mode, faults can be cleared (this feature may be passwo[...]
-
Page 70
GFK-0467K Chapter 3 Fault Explanation and Correction 3 - 7 3 Section 2: PLC Fault Table Explanations Each fault explanation contains a fault description and instructions to correct the fault. Many fault descriptions have multiple causes. In these cases, the error code, displayed with the additional fault information, is used to distinguish differen[...]
-
Page 71
3 - 8 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 3 Fault Actions Fatal faults cause the PLC to enter a form of STOP mode at the end of the sweep in which the error occurred. Diagnostic faults are logged and corresponding fault contacts are set. Informational faults are simply logged in the PLC fault[...]
-
Page 72
GFK-0467K Chapter 3 Fault Explanation and Correction 3 - 9 3 Reset of, Addition of, or Extra, Option Module The Fault Group Reset of, Addition of, or Extra Option Module occurs when an option module (PCM, ADC, etc.) comes online, is reset, or a module is found in the rack, but none is specified in the configuration. The fault action for this group [...]
-
Page 73
3 - 10 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 3 System Configuration Mismatch The Fault Group Configuration Mismatch occurs when the module occupying a slot is different from that specified in the configuration file. The fault action is Fatal . Error Code: 1 Name: System Configuration Mismatch D[...]
-
Page 74
GFK-0467K Chapter 3 Fault Explanation and Correction 3 - 11 3 Option Module Software Failure The Fault Group Option Module Software Failure occurs when a non-recoverable software failure occurs on a PCM or ADC module. The fault action for this group is Fatal . Error Code: All Name: COMMREQ Frequency Too High Description: COMMREQs are being sent to [...]
-
Page 75
3 - 12 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 3 Constant Sweep Time Exceeded The Fault Group Constant Sweep Time Exceeded occurs when the PLC CPU operates in CONSTANT SWEEP mode, and it detects that the sweep has exceeded the constant sweep timer. The fault extra data contains the actual time of[...]
-
Page 76
GFK-0467K Chapter 3 Fault Explanation and Correction 3 - 13 3 No User Program Present The Fault Group No User Program Present occurs when the PLC CPU is instructed to transition from STOP to RUN mode or a store to the PLC and no user program exists in the PLC. The PLC CPU detects the absence of a user program on power-up. The fault action for this [...]
-
Page 77
3 - 14 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 3 PLC CPU System Software Failure Faults in the Fault Group PLC CPU System Software Failure are generated by the operating software of the Series 90-30, 90-20 or Micro PLC CPU. They occur at many different points of system operation. When a Fatal fau[...]
-
Page 78
GFK-0467K Chapter 3 Fault Explanation and Correction 3 - 15 3 Error Code: 14, 27 Name: Corrupted PLC Program Memory Description: The PLC operating software generates these errors when certain PLC operating software problems occur. These should not occur in a production system. Correction: (1) Display the PLC fault table on the programmer. Contact G[...]
-
Page 79
3 - 16 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 3 Communications Failure During Store The Fault Group Communications Failure During Store occurs during the store of program blocks and other data to the PLC. The stream of commands and data for storing program blocks and data starts with a special s[...]
-
Page 80
GFK-0467K Chapter 3 Fault Explanation and Correction 3 - 17 3 Section 3: I/O Fault Table Explanations The I/O fault table reports data about faults in three classifications: • Fault category. • Fault type. • Fault description. The faults described on the following page have a fault category, but do not have a fault type or fault group. Each f[...]
-
Page 81
3 - 18 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 3 Addition of I/O Module The Fault Category Addition of I/O Module applies to Model 30 discrete and analog I/O modules. There are no fault types or fault descriptions associated with this category. The fault action is Diagnostic . Description: The PL[...]
-
Page 82
GFK-0467K 4 - 1 Series 90-30/20/Micro Instructions Set Programming consists of creating an application program for a PLC. Because the Series 90-30, 90 -20, and Series 90 Micro PLCs have a common instruction set, all three can be programmed using this software. This chapter describes the programming instructions that may be used to create ladder log[...]
-
Page 83
4 - 2 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 Section 1 : Relay Functions This section explains the use of contacts, coils, and links in ladder logic rungs. Function Page Coils and negated coils. 4- 3 Normally open and normal closed contacts. 4- 2 Retentive and negated retentive coils. 4- 4 Pos[...]
-
Page 84
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 3 4 Using Coils Coils are used to control discrete references. Conditional logic must be used to control the flow of power to a coil. Coils cause action directly; they do not pass power flow to the right. If additional logic in the program should be executed as a result of the coil cond[...]
-
Page 85
4 - 4 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 Normally Open Contact —| |— A normally open contact acts as a switch that passes power flow if the associated reference is ON (1). Normally Closed Contact —|/|— A normally closed contact acts as a switch that passes power flow if the associa[...]
-
Page 86
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 5 4 Retentive Coil —(M)— Like a normally open coil, the retentive coil sets a discrete reference ON while it receives power flow. The state of the retentive coil is retained across power failure. Therefore, it cannot be used with references from strictly non-retentive memory (%T). N[...]
-
Page 87
4 - 6 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 SET Coil —(S) — SET and RESET are non-retentive coils that can be used to keep (“latch”) the state of a reference (e.g., E1) either ON or OFF. When a SET coil receives power flow, its reference stays ON (whether or not the coil itself receiv[...]
-
Page 88
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 7 4 Retentive SET Coil —(SM)— Retentive SET and RESET coils are similar to SET and RESET coils, but they are retained across power failure or when the PLC transitions from STOP to RUN mode. A retentive SET coil sets a discrete reference ON if the coil receives power flow. The refere[...]
-
Page 89
4 - 8 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 Continuation Coils (———<+>) and Contacts (<+>———) Continuation coils ( ————— <+>) and continuation contacts (<+>—— — ) are used to continue relay ladder rung logic beyond the limit of ten columns. [...]
-
Page 90
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 9 4 Section 2 : Timers and Counters This section explains how to use on-delay and stopwatch-type timers, up counters, and down counters. The data associated with these functions is retentive through power cycles. Abbreviation Function Page ONDTR Retentive On-Delay Timer 4- 11 TMR Simple[...]
-
Page 91
4 - 10 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 The control word stores the state of the boolean inputs and outputs of its associated function block, as shown in the following format: 15 14 13 12 11 10 9 8 6 5 4 3 2 1 0 Q (counter/timer status output) EN (enable input) Enable input, previous exe[...]
-
Page 92
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 11 4 ONDTR A retentive on-delay timer (ONDTR) increments while it receives power flow and holds its value when power flow stops. Time may be counted in tenths of a second (the default selection), hundredths of a second, or thousandths of a second. The range is 0 to +32,767 time units. T[...]
-
Page 93
4 - 12 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 _____ | | (enable) —|ONDTR|— Q | | |0.10s| | | (reset) —|R | | | | | (preset value) —|PV | |_____| (address) Parameters: Parameter Description address The ONDTR uses three consecutive words (registers) of %R memory to store the following: ?[...]
-
Page 94
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 13 4 Example: In the following example, a retentive on-delay timer is used to create a signal (%Q0011) that turns on 8.0 seconds after %Q0010 turns on, and turns off when %Q0010 turns off. | _____ | %Q0010 | | %Q0011 |——| |———|ONDTR|——————————————?[...]
-
Page 95
4 - 14 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 TMR The simple on-delay timer (TMR) function increments while it receives power flow and resets to zero when power flow stops. Time may be counted in tenths of a second (the default selection), hundredths of a second, or thousandths of a second. Th[...]
-
Page 96
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 15 4 Parameters: Parameter Description address The TMR uses three consecutive words (registers) of %R memory to store the following: • Current value (CV) = word 1. • Preset value (PV) = word 2. • Control word = word 3. When you enter a TMR, you must enter an address for the locati[...]
-
Page 97
4 - 16 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 Example: In the following example, a delay timer (with address) TMRID is used to control the length of time that coil DWELL is on. When the normally open (momentary) contact DO_DWL is on, coil DWELL is energized. The contact of coil DWELL keeps coi[...]
-
Page 98
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 17 4 OFDT The off-delay timer (OFDT) increments while power flow is off, and resets to zero when power flow is on. Time may be counted in tenths of a second (the default selection), hundredths of a second, or thousandths of a second. The range is 0 to +32,767 time units. The state of th[...]
-
Page 99
4 - 18 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 _____ | | (enable) —|OFDT |— Q | | | time| | | | | | | (preset value) —|PV | |_____| (address—3 words) When the OFDT is used in a program block that is not called every sweep, the timer accumulates time between calls to the program block un[...]
-
Page 100
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 19 4 Valid Memory Types: Parameter flow %I %Q %M %T %S %G %R %AI %AQ const none address • enable • PV • • • • • • • • • • • Q • • • Valid reference or place where power may flow through the function. Example: In the following example, an OFDT timer is use[...]
-
Page 101
4 - 20 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 UPCTR The Up Counter (UPCTR) function is used to count up to a designated value. The range is 0 to +32,767 counts. When the up counter reset is ON, the current value of the counter is reset to 0. Each time the enable input transitions from OFF to O[...]
-
Page 102
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 21 4 Valid Memory Types: Parameter flow %I %Q %M %T %S %G %R %AI %AQ const none address • enable • R • PV • • • • • • • • • • Q • • • Vali d reference or place where power may flow through the function. Example: In the following example, every time input [...]
-
Page 103
4 - 22 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 DNCTR The Down Counter (DNCTR) function is used to count down from a preset value. The minimum preset value is zero; the maximum present value is +32,767 counts. The minimum current value is –32,768. When reset, the current value of the counter i[...]
-
Page 104
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 23 4 Valid Memory Types: Parameter flow %I %Q %M %T %S %G %R %AI %AQ const none address • enable • R • PV • • • • • • • • • • Q • • • Valid reference or place where power may flow through the function. Example: In the following example, the down counter i[...]
-
Page 105
4 - 24 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 Example: In the following example, the PLC is used to keep track of the number of parts contained in a temporary storage area. There are two ways of accomplishing this function using the Series 90- 30/20/Micro instruction set. The first method is t[...]
-
Page 106
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 25 4 The second method, shown below, uses the ADD and SUB functions to provide storage tracking. | | |%I0004 %M0001 +———| |————————————————————————————————————————————————————?[...]
-
Page 107
4 - 26 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 Section 3 : Math Functions This section describes the math functions of the Series 90-30/20/Micro Instruction Set: Abbreviation Function Description Page ADD Addition Add two numbers. 4- 27 SUB Subtraction Subtract one number from another. 4- 27 MU[...]
-
Page 108
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 27 4 Standard Math Functions (ADD, SUB, MUL, DIV) Math functions include addition, subtraction, multiplication, and division. When a function receives power flow, the appropriate math function is performed on input parameters I1 and I2. These parameters must be the same data type. Outpu[...]
-
Page 109
4 - 28 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 Parameters: Parameter Description enable When the function is enabled, the operation is performed. I1 I1 contains a constant or reference for the first value used in the operation. (I1 is on the left side of the mathematical equation, as in I1 — [...]
-
Page 110
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 29 4 Math Functions and Data Types Function Operation Displays as ADD INT Q(16 bit) = I1(16 bit) + I2(16 bit) 5-digit base 10 number with sign ADD DINT Q(32 bit) = I1(32 bit) + I2(32 bit) 8-digit base 10 number with sign ADD REAL* Q(32 bit) = I1(32 bit) + I2(32 bit) 7-digit base 10 numb[...]
-
Page 111
4 - 30 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 A common application is to scale analog input values with a MUL operation followed by a DIV and possibly an ADD operation. With a range up to 32000, using a MUL INT will overflow. Using an %AI value for a MUL DINT will also not work as the 32-bit I[...]
-
Page 112
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 31 4 MOD (INT, DINT) The Modulo (MOD) function is used to divide one value by another value of the same data type, to obtain the remainder. The sign of the result is always the same as the sign of input parameter I1. The MOD function operates on these types of data: Data Type Descriptio[...]
-
Page 113
4 - 32 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 Valid Memory Types: Parameter flow %I %Q %M %T %S %G %R %AI %AQ const none enable • I1 oooo o • • • •† I2 oooo o • • • •† ok • • Q oooo o • • • • Valid reference or place where power may flow through the function. [...]
-
Page 114
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 33 4 SQRT (INT, DINT, REAL) The Square Root (SQRT) function is used to find the square root of a value. When the function receives power flow, the value of output Q is set to the integer portion of the square root of the input IN. The output Q must be the same data type as IN. The SQRT [...]
-
Page 115
4 - 34 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 Valid Memory Types: Parameter flow %I %Q %M %T %S %G %R %AI %AQ const none enable • IN o o o o o • • • •† ok • • Q o o o o o • • • • Valid reference or place where power may flow through the function. o Valid referen ce for [...]
-
Page 116
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 35 4 Trig Functions (SIN, COS, TAN, ASIN, ACOS, ATAN) The SIN, COS, and TAN functions are used to find the trigonometric sine, cosine, and tangent, respectively, of its input. When one of these functions receives power flow, it computes the sine (or cosine or tangent) of IN, whose units[...]
-
Page 117
4 - 36 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 Parameters: Parameter Description enable When the function is enabled, the operation is performed. IN IN contains the constant or reference real value to be operated on. ok The ok output is energized when the function is performed without overflow,[...]
-
Page 118
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 37 4 Logarithmic/Exponential Functions (LOG, LN, EXP, EXPT) The LOG, LN, and EXP functions have two input parameters and two output parameters. When the function receives power flow, it performs the appropriate logarithmic/exponential operation on the real value in input IN and places t[...]
-
Page 119
4 - 38 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 Valid Memory Types: Parameter flow %I %Q %M %T %S %G %R %AI %AQ const none enable • IN* • • • • ok • • Q • • • * For the EXPT function, input IN is replaced by input parameters I1 and I2. • Valid reference or place where power[...]
-
Page 120
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 39 4 Radian Conversion (RAD, DEG) When the function receives power flow, the appropriate conversion (RAD_TO_DEG or DEG_TO_RAD, i.e., Radian to Degree or vice versa) is performed on the real value in input IN and the result is placed in output Q. The ok output will receive power flow unl[...]
-
Page 121
4 - 40 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 Valid Memory Types: Parameter flow %I %Q %M %T %S %G %R %AI %AQ const none enable • IN • • • • ok • • Q • • • • Valid reference or place where power may flow through the function. Example: In the following example, +1500 is co[...]
-
Page 122
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 41 4 Section 4 : Relational Functions Relational functions are used to compare two numbers. This section describes the following relational functions: Abbreviation Function Description Page EQ Equal Test two numbers for equality. 4- 41 NE Not Equal Test two numbers for non-equality. 4- [...]
-
Page 123
4 - 42 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 Parameters: Parameter Description enable When the function is enabled, the operation is performed. I1 I1 contains a constant or reference for the first value to be compared. (I1 is on the left side of the relational equation, as in I1 < I2). I2 [...]
-
Page 124
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 43 4 Example: In the following example, two double precision signed integers, PWR_MDE and BIN_FUL, are compared whenever %I0001 is set. If PWR_MDE is less than or equal to BIN_FUL, coil %Q0002 is turned on. | _____ |%I0001 | | |——| |——————————| LE_ | | | | | | DI[...]
-
Page 125
4 - 44 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 RANGE (INT, DINT, WORD) The RANGE function is used to determine if a value is between the range of two numbers. Note This function is available only to Release 4.41 or later CPUs. The RANGE function operates on these types of data: Data Type Descri[...]
-
Page 126
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 45 4 Parameters: Parameter Description enable When the function is enabled, the operation is performed. L1 L1 contains the start point of the range. L2 L2 contains the end point of the range. IN IN contains the value to be compared against the range specified by L1 and L2. Q Output Q is[...]
-
Page 127
4 - 46 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 Example 1: In the following example, %AI0001 is checked to be within a range specified by two constants, 0 and 100. | _____ |%I0001 | | |——| |———+RANGE| | | INT | | | | %Q0002 | 100 —+L1 Q+———————————————?[...]
-
Page 128
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 47 4 Section 5 : Bit Operation Functions Bit operation functions perform comparison, logical, and move operations on bit strings. The AND, OR, XOR, and NOT functions operate on a single word. The remaining bit operation functions may operate on multiple words, with a maximum string leng[...]
-
Page 129
4 - 48 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 The following bit operation functions are described in this section: Abbreviation Function Description Page AND Logical AND If a bit in bit string I1 and the corresponding bit in bit string I2 are both 1, place a 1 in the corresponding location in [...]
-
Page 130
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 49 4 AND and OR (WORD) Each scan that power is received, the AND or OR function examines each bit in bit string I1 and the corresponding bit in bit string I2, beginning at the least significant bit in each. For each two bits examined for the AND function, if both are 1, then a 1 is plac[...]
-
Page 131
4 - 50 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 Valid Memory Types: Parameter flow %I %Q %M %T %S %G %R %AI %AQ const none enable • I1 •••••••• • • I2 •••••••• • • ok • • Q •••• •† • • • • • Valid reference or place where power [...]
-
Page 132
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 51 4 XOR (WORD) The Exclusive OR (XOR) function is used to compare each bit in bit string I1 with the corresponding bit in string I2. If the bits are different, a 1 is placed in the corresponding position in the output bit string. Each scan that power is received, the function examines [...]
-
Page 133
4 - 52 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 Valid Memory Types: Parameter flow %I %Q %M %T %S %G %R %AI %AQ const none enable • I1 •••••••• • • I2 •••••••• • • ok • • Q • • • • •† • • • • • Valid reference or place where pow[...]
-
Page 134
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 53 4 NOT (WORD) The NOT function is used to set the state of each bit in the output bit string Q to the opposite of the state of the corresponding bit in bit string I1. All bits are altered on each scan that power is received, making output string Q the logical complement of I1. The fun[...]
-
Page 135
4 - 54 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 Valid Memory Types: Parameter flow %I %Q %M %T %S %G %R %AI %AQ const none enable • I1 • • • • • • • • • • ok • • Q • • • • •† • • • • • Valid reference or place where power may flow through the funct[...]
-
Page 136
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 55 4 SHL and SHR (WORD) The Shift Left (SHL) function is used to shift all the bits in a word or group of words to the left by a specified number of places. When the shift occurs, the specified number of bits is shifted out of the output string to the left. As bits are shifted out of th[...]
-
Page 137
4 - 56 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 _____ | | (enable) —| SHL _ | | | | WORD| | | (word to be shifted) —|IN B2|— (last bit shifted out) | LEN | |00001| | | | | (number of bits) —|N Q|— (output parameter Q) | | (bit shifted in) —|B1 | |_____| Parameters: Parameter Descript[...]
-
Page 138
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 57 4 Example: In the following example, whenever input %I0001 is set, the output bit string represented by the nickname WORD2 is made a copy of WORD1, left-shifted by the number of bits represented by the nickname LENGTH. The resulting open bits at the beginning of the output string are[...]
-
Page 139
4 - 58 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 ROL and ROR (WORD) The Rotate Left (ROL) function is used to rotate all the bits in a string a specified number of places to the left. When rotation occurs, the specified number of bits is rotated out of the input string to the left and back into t[...]
-
Page 140
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 59 4 Valid Memory Types: Parameter flow %I %Q %M %T %S %G %R %AI %AQ const none enable • IN •••••••• • N • • • • • • • • • ok • • Q • • • • •† • • • • • Valid reference or place where power may flow through the function. ?[...]
-
Page 141
4 - 60 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 BTST (WORD) The Bit Test (BTST) function is used to test a bit within a bit string to determine whether that bit is currently 1 or 0. The result of the test is placed in output Q. Each sweep power is received, the BTST function sets its output Q to[...]
-
Page 142
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 61 4 Valid Memory Types: Parameter flow %I %Q %M %T %S %G %R %AI %AQ const none enable • IN •••••••• • BIT • • • • • • • • • Q • • • Valid reference or place where power may flow through the function. Example: In the following example, wheneve[...]
-
Page 143
4 - 62 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 BSET and BCLR (WORD) The Bit Set (BSET) function is used to set a bit in a bit string to 1. The Bit Clear (BCLR) function is used to clear a bit within a string by setting that bit to 0. Each sweep that power is received, the function sets the spec[...]
-
Page 144
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 63 4 Valid Memory Types: Parameter flow %I %Q %M %T %S %G %R %AI %AQ const none enable • IN • • • • † • • • • BIT • • • • • • • • • ok • • • Valid reference or place where power may flow through the function. † %SA, %SB, or %SC only; %S cann[...]
-
Page 145
4 - 64 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 BPOS (WORD) The Bit Position (BPOS) function is used to locate a bit set to 1 in a bit string. Each sweep that power is received, the function scans the bit string starting at IN. When the function stops scanning, either a bit equal to 1 has been f[...]
-
Page 146
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 65 4 Valid Memory Types: Parameter flow %I %Q %M %T %S %G %R %AI %AQ const none enable • IN •••••••• • POS • • • • • • • • ok • • • Valid reference or place where power may flow through the function. Example: In the following example, if %I0001 [...]
-
Page 147
4 - 66 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 MSKCMP (WORD, DWORD) The Masked Compare (MSKCMP) function ( available for Release 4.41 or later CPUs ) is used to compare the contents of two separate bit strings with the ability to mask selected bits. The length of the bit strings to be compared [...]
-
Page 148
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 67 4 _____ | | (enable) —|MASK _ |- | | |COMP_| | | | WORD| | | (input parameter I1) —|I1 MC|— (miscompare) | LEN | |00001| | | (input parameter I2) —|I2 Q|— (output parameter Q) | | | | (bit string mask) —|M BN|— (bit number for last miscompare) | | | | (bit number) —|B[...]
-
Page 149
4 - 68 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 Example: In the following example, after first scan, the MSKCMPW function block is executed. %M0001 through %M0016 is compared with %M0017 through %M0032. %M0033 through %M0048 contains the mask value. The value in %R0001 determines at which bit po[...]
-
Page 150
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 69 4 Section 6 : Data Move Functions Data move functions provide basic data move capabilities. This section describes the following data move functions: Abbreviation Function Description Page MOVE Move Copy data as individual bits. The maximum length allowed is 256 words, except MOVE_BI[...]
-
Page 151
4 - 70 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 MOVE (BIT, INT, WORD, REAL) Use the MOVE function to copy data (as individual bits) from one location to another. Because the data is copied in bit format, the new location does not need to be the same data type as the original location. The MOVE f[...]
-
Page 152
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 71 4 Parameters: Parameter Description enable When the function is enabled, the move is performed. IN IN contains the value to be moved. For MOVE_BIT, any discrete reference may be used; it does not need to be byte aligned. However, 16 bits, beginning with the reference address specifie[...]
-
Page 153
4 - 72 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 Example 1: When enabling input %Q0014 is ON, 48 bits are moved from memory location %M0001 to memory location %M0033. Even though the destination overlaps the source for 16 bits, the move is done correctly (except for the 351 and 352 CPUs as noted [...]
-
Page 154
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 73 4 BLKMOV (INT, WORD, REAL) Use the Block Move (BLKMOV) function to copy a block of seven constants to a specified location. Note The REAL data type is only available on 350 and 360 series CPUs, Release 9 or later, or on all releases of CPU352. The BLKMOV function has eight input para[...]
-
Page 155
4 - 74 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 Valid Memory Types: Parameter flow %I %Q %M %T %S %G %R %AI %AQ const none enable • IN1 — IN7 • ok • • Q • • • • o† • • • • Note : For REAL data, the only valid types are %R, %AI, and %AQ. • Valid reference for place w[...]
-
Page 156
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 75 4 BLKCLR (WORD) Use the Block Clear (BLKCLR) function to fill a specified block of data with zeros. The BLKCLR function has two input parameters and one output parameter. When the function receives power flow, it writes zeros into the memory location beginning at the reference specif[...]
-
Page 157
4 - 76 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 Valid Memory Types: Parameter flow %I %Q %M %T %S %G %R %AI %AQ const none enable • IN • • • • •† • • • • ok • • • Valid reference or place where power may flow through the function. † %SA, %SB, %SC only; %S cannot be [...]
-
Page 158
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 77 4 SHFR (BIT, WORD) Use the Shift Register (SHFR) function to shift one or more data words or data bits from a reference location into a specified area of memory. For example, one word might be shifted into an area of memory with a specified length of five words. As a result of this s[...]
-
Page 159
4 - 78 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 Parameters: Parameter Description enable When enable is energized and R is not, the shift is performed. R When R is energized, the shift register located at ST is filled with zeros. IN IN contains the value to be shifted into the first bit or word [...]
-
Page 160
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 79 4 Example 1: In the following example, the shift register operates on register memory locations %R0001 through %R0100. When the reset reference CLEAR is active, the shift register words are set to zero. When the NXT_CYC reference is active and CLEAR is not active, the word from outpu[...]
-
Page 161
4 - 80 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 BITSEQ (BIT) The Bit Sequencer (BITSEQ) function performs a bit sequence shift through an array of bits. The BITSEQ function has five input parameters and one output parameter. The operation of the function depends on the previous value of the para[...]
-
Page 162
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 81 4 _____ | | (enable) —| BIT _ |— (ok) | | | SEQ | | | (reset) —|R | | LEN | |00001| (direction) —|DIR | | | | | (number) —|STEP | | | | | (starting address) —|ST | | | |_____| (address) - Enter the beginning address here. The control word stores the state of the boolean i[...]
-
Page 163
4 - 82 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 Note Coil checking, for the BITSEQ function, checks for 16 bits from the ST parameter, even when LEN is less than 16. Valid Memory Types: Parameter flow %I %Q %M %T %S %G %R %AI %AQ const none address • enable • R • DIR • STEP • • • ?[...]
-
Page 164
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 83 4 COMMREQ Use the Communication Request (COMMREQ) function if the program needs to communicate with an intelligent module, such as a Genius Communications Module or a Programmable Coprocessor Module. Note The information presented on the following pages shows the format of the COMMRE[...]
-
Page 165
4 - 84 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 The command block has the following structure: Length (in words) address Wait/No Wait Flag address + 1 Status Pointer Memory address + 2 Status Pointer Offset address + 3 Idle Timeout Value address + 4 Maximum Communication Time address + 5 address[...]
-
Page 166
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 85 4 Example: In the following example, when enabling input %M0020 is ON, a command block located starting at %R0016 is sent to communications task 1 in the device located at rack 1, slot 2 of the PLC. If an error occurs processing the COMMREQ, %Q0100 is set. | _____ | %M0020 | | |—?[...]
-
Page 167
4 - 86 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 Section 7 : Table Functions Table functions are used to perform the following functions: Abbreviation Function Description Page ARRAY_MOVE Array Move Copy a specified number of data elements from a source array to a destination array. 4- 87 SRCH_EQ[...]
-
Page 168
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 87 4 ARRAY_MOVE (INT, DINT, BIT, BYTE, WORD) Use the Array Move (ARRAY_MOVE) function to copy a specified number of data elements from a source array to a destination array. The ARRAY_MOVE function has five input parameters and two output parameters. When the function receives power flo[...]
-
Page 169
4 - 88 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 Parameters: Parameter Description enable When the function is enabled, the operation is performed. SR SR contains the starting address of the source array. For ARRAY_MOVE_ BIT, any reference may be used; it does not need to be byte aligned. However[...]
-
Page 170
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 89 4 Example 1: In this example, %R0003 — %R0007 of the array %R0001 — %R0016 is read and then written into %R0104 — %R0108 of the array %R0100 — %R0115. | _____ |%I0001 | | |——| |———|ARRAY|— | |MOVE_| | | | | | WORD| | | | | %R0001—|SR DS|— %R0100 | | LEN | | |0[...]
-
Page 171
4 - 90 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 Example 3: Using word memory, for SR and DS, the third least significant bit of %R0001 through the second least significant bit of %R0002 of the array containing all 16 bits of %R0001 and four bits of %R0002 is read and then written into the fifth [...]
-
Page 172
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 91 4 SRCH_EQ and SRCH_NE (INT, DINT, BYTE, WORD) SRCH_GT and SRCH_LT SRCH_GE and SRCH_LE Use the appropriate Search function listed below to search for all array values for that particular operation. Abbreviation Function Description SRCH_EQ Search Equal Search for all array values equa[...]
-
Page 173
4 - 92 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 Parameters: Parameter Description enable When the function is enabled, the operation is performed. AR AR contains the starting address of the array to be searched. Input NX Input NX contains the index into the array at which to begin the search. IN[...]
-
Page 174
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 93 4 Example 1: The array AR is defined as memory addresses %R0001 — %R0005. When EN is ON, the portion of the array between %R0004 and %R0005 is searched for an element whose value is equal to IN. If %R0001 = 7, %R0002 = 9, %R0003 = 6, %R0004 = 7, %R0005 = 7, and %R0100 = 7, then the[...]
-
Page 175
4 - 94 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 Section 8 : Conversion Functions Use the conversion functions to convert a data item from one number type to another. Many programming instructions, such as math functions, must be used with data of one type. This section describes the following co[...]
-
Page 176
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 95 4 — > BCD-4 (INT) The Convert to BCD-4 function is used to output the 4-digit BCD equivalent of signed integer data. The original data is not changed by this function. Data can be converted to BCD format to drive BCD-encoded LED displays or presets to external devices such as hi[...]
-
Page 177
4 - 96 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 Valid Memory Types: Parameter flow %I %Q %M %T %S %G %R %AI %AQ const none enable • IN •••• ••• • • ok • • Q •••• ••• • • Valid reference or place where power may flow through the function. Example: In the [...]
-
Page 178
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 97 4 —>INT (BCD-4, REAL) The Convert to Signed Integer function is used to output the integer equivalent of BCD-4 or REAL data. The original data is not changed by this function. Note The REAL data type is only available on 350 and 360 series CPUs, Release 9 or later, or on all rel[...]
-
Page 179
4 - 98 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 Valid Memory Types: Parameter flow %I %Q %M %T %S %G %R %AI %AQ const none enable • IN •••• ••• • • ok • • Q •••• ••• • Note : For REAL data, the only valid types are %R, %AI, and %AQ. • Valid reference or [...]
-
Page 180
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 99 4 —>DINT (REAL) The Convert to Double Precision Signed Integer function is used to output the double precision signed integer equivalent of real data. The original data is not changed by this function. Note The REAL data type is only available on 350 and 360 series CPUs, Release[...]
-
Page 181
4 - 100 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 Valid Memory Types: Parameter flow %I %Q %M %T %S %G %R %AI %AQ const none enable • IN o o o o o • • • • ok • • Q • • • • Valid reference or place where power may flow through the function. Example: In the following example, [...]
-
Page 182
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 101 4 —>REAL (INT, DINT, BCD-4, WORD) The Convert to Real function is used to output the real value of the input data. The original data is not changed by this function. When the function receives power flow, it performs the conversion, making the result available via output Q. The[...]
-
Page 183
4 - 102 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 Valid Memory Types: Parameter flow %I %Q %M %T %S %G %R %AI %AQ const none enable • IN o o o o o • • • • ok • • Q ••• • Valid reference or place where power may flow through the function. o Not valid for DINT_TO_REAL. Example[...]
-
Page 184
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 103 4 —>WORD (REAL) The Convert to WORD function is used to output the WORD equivalent of real data. The original data is not changed by this function. Note This function is only available on the 350 and 360 series CPU. When the function receives power flow, it performs the convers[...]
-
Page 185
4 - 104 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 Valid Memory Types: Parameter flow %I %Q %M %T %S %G %R %AI %AQ const none enable • IN • • • • ok • • Q • • • • • • • • • Valid reference or place where powe r may flow through the function. Example: | _____ _____ |[...]
-
Page 186
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 105 4 TRUN (INT, DINT) The Truncate function is used to round the real number toward zero. The original data is not changed by this function. Note The 350 and 360 series CPUs (Release 9 or later and all releases of CPU352) are the only Series 90-30 CPUs with floating point capability; t[...]
-
Page 187
4 - 106 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 Valid Memory Types: Parameter flow %I %Q %M %T %S %G %R %AI %AQ const none enable • IN • • • • ok • • Q oooo o ••• • Valid reference or place where power may flow through the function. o Va lid for REAL_TRUN_INT only. Example[...]
-
Page 188
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 107 4 Section 9 : Control Functions This section describes the control functions, which may be used to limit program execution and alter the way the CPU executes the application program. (Refer to Chapter 2, section 1, “PLC Sweep Summary,” for information on the CPU sweep. Function [...]
-
Page 189
4 - 108 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 CALL Use the CALL function to cause program execution to go to a specified subroutine block. ———————————————— | | -| CALL ??????? |- | | | (SUBROUTINE) | | | ———————————————— When the[...]
-
Page 190
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 109 4 DOIO The DO I/O (DOIO) function is used to update inputs or outputs for one scan while the program is running. The DOIO function can also be used to update selected I/O during the program in addition to the normal I/O scan. If input references are specified, the function allows th[...]
-
Page 191
4 - 110 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 The function passes power to the right whenever power is received, unless: • Not all references of the type specified are present within the selected range. • The CPU is not able to properly handle the temporary list of I/O created by the func[...]
-
Page 192
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 111 4 Input Example 1: In the following example, when the enabling input %I0001 is ON, references %I0001 through %I0064 are scanned and %Q0001 is turned on. A copy of the scanned inputs is placed in internal memory from reference %M0001 through %M0064. The real input points are not upda[...]
-
Page 193
4 - 112 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 Output Example 1: In the following example, when the enabling input %I0001 is ON, the values at references %R0001 through %R0004 are written to analog output channels %AQ001 through %AQ004 and %Q0001 is turned on. The values at %AQ001 through %AQ0[...]
-
Page 194
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 113 4 Enhanced DO I/O Function for 331 and Later CPUs Caution If the Enhanced DO I/O function is used in a program, the program should not be loaded by a version of Logicmaster 90-30/20 software prior to 4.01. An enhanced version of the DO I/O (DOIO) function is available for Release 4.[...]
-
Page 195
4 - 114 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 SER The SER function (Sequential Event Recorder) function is used to collect data based on an event trigger. A function control block contains user-supplied information about function block execution, channel descriptions and operation parameters.[...]
-
Page 196
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 115 4 The Sequential Event Recorder function block is a 78-word array defining information about the data capture and trigger mechanism for the SER function. Perform these steps to configure parameters for the SER function block. 1. Set up the stored values for the array as defined in t[...]
-
Page 197
4 - 116 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 Parameter(Offset) Description Num of Samples(9) Specifies the sample buffer size, in bytes. Valid choices are 1 to 1024 samples. Num Samp After Trig(10) Specifies the number of samples that are stored in the sample buffer when the trigger conditio[...]
-
Page 198
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 117 4 Status Extra Data The Status Extra Data provides additional state information for the SER function. State Description Inactive State (1) State between the Reset State and the Active State. No actions are performed in this state. The Boolean output is held to no power flow. Transit[...]
-
Page 199
4 - 118 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 SER Data Block The SER Data Block contains the sample buffer, sample offsets, and trigger information. This information is supplied by the CPU and the user should only read from this data area. It is the users responsibility to allocate enough reg[...]
-
Page 200
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 119 4 • In a particular program, there can only be one Sequential Event Recorder function block that can be associated with each command and data block. • If the user selects an input module to be scanned the PLC will NOT verify the module is a DISCRETE INPUT MODULE, or that any Cha[...]
-
Page 201
4 - 120 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 Example: In the following example, the offsets have been set up as described in the table below. | _____ |%T0003 | | %Q0003 |——| |———| SER_|————————————————————————————————?[...]
-
Page 202
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 121 4 Offset Register Parameter Description Value (dec) Value (hex) 22 122 Channel description 5: Seg. Sel. : Length 8 0008 23 123 Offset 0 0000 24 124 Channel description 6: Seg. Sel. : Length -249 FF07 25 125 Offset 0 0000 The following is a description of the above control block. •[...]
-
Page 203
4 - 122 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 last channel description is required to pad the sample buffer out to the 24 bits specified in the number of channels parameter. Since all 24 channels are configured there are no more channel descriptions needed and we have reached the end of our b[...]
-
Page 204
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 123 4 END The END function provides a temporary end of logic. The program executes from the first rung to the last rung or the END function, whichever is encountered first. The END function unconditionally terminates program execution. There can be nothing after the end function in the [...]
-
Page 205
4 - 124 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 MCR All rungs between an active Master Control Relay (MCR) and its corresponding End Master Control Relay (ENDMCR) function are executed without power flow to coils. An ENDMCR function associated with the MCR is used to resume normal program execu[...]
-
Page 206
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 125 4 Both forms of the MCR function have the same parameters. They both have an enable boolean input EN and also a name which identifies the MCR. This name is used again with an ENDMCR instruction. Neither the MCR nor the MCRN function has any outputs; there can be nothing after an MCR[...]
-
Page 207
4 - 126 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 Example: In the following example, whenever %I0002 allows power flow into the MCR function, program execution will continue without power flow to the coils until the associated ENDMCR is reached. If %I0001 and %I0003 are ON, %Q0001 is turned OFF a[...]
-
Page 208
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 127 4 ENDMCR Use the End Master Control Relay (ENDMCR) function to resume normal program execution after an MCR function. When the MCR associated with the ENDMCR is active, the ENDMCR causes program execution to resume with normal power flow. When the MCR associated with the ENDMCR is n[...]
-
Page 209
4 - 128 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 JUMP Use the JUMP instruction to cause a portion of the program logic to be bypassed. Program execution will continue at the LABEL specified. When the JUMP is active, all coils within its scope are left at their previous states. This includes coil[...]
-
Page 210
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 129 4 Non-nested JUMP: ——————————————————————— —————————>> ??????? Nested JUMP: ——————————————————————— ———N—————>> ??????? Caution To avoid creating[...]
-
Page 211
4 - 130 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 LABEL The LABEL instruction functions as the target destination of a JUMP. Use the LABEL instruction to resume normal program execution after a JUMP instruction. There can be only one LABEL with a particular label name in a program. Programs witho[...]
-
Page 212
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 131 4 COMMENT Use the COMMENT function to enter a comment (rung explanation) in the program. A comment can have up to 2048 characters of text. It is represented in the ladder logic like this: (* COMMENT *) The text can be read or edited by moving the cursor to (* COMMENT *) after accept[...]
-
Page 213
4 - 132 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 SVCREQ Use the Service Request (SVCREQ) function to request one of the following special PLC services: Table 4-3. Service Request Functions Function Description 1 Change/Read Constant Sweep Timer. 2 Read Window Values. 3 Change Programmer Communic[...]
-
Page 214
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 133 4 Parameters: Parameter Description enable When enable is energized, the request service request is performed. FNC FNC contains the constant or reference for the requested service. PARM PARM contains the beginning reference for the parameter block for the requested service. ok The o[...]
-
Page 215
4 - 134 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 SVCREQ #1: Change/Read Constant Sweep Timer Beginning with 90-30 CPU Release 8, use SVCREQ function #1 to: • Disable CONSTANT SWEEP mode. • Enable CONSTANT SWEEP mode and use the old timer value. • Enable CONSTANT SWEEP mode and use a new ti[...]
-
Page 216
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 135 4 Note After using SVCREQ function #1 with the parameter block on the previous page, Release 8 and higher CPUs will provide the return values 0 for Normal Sweep, 1 for Constant Sweep. Do not confuse this with the input values shown below. Successful execution will occur, unless: 1 .[...]
-
Page 217
4 - 136 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 Example: This example shows logic in a program block. When enabling contact OV_SWP is set, the constant sweep timer is read, the timer is increased by two milliseconds, and the new timer value is sent back to the PLC. The parameter block is in loc[...]
-
Page 218
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 137 4 SVCREQ #2: Read Window Values Use SVCREQ function #2 to obtain the current window mode time values for the programmer communications window, the system communications window, and the background task window. Note Of the CPUs discussed in this manual, Service Request 2 is supported [...]
-
Page 219
4 - 138 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 Example: In the following example, when enabling output %Q0102 is set, the PLC operating system places the current time values of the three windows in the parameter block starting at location %R5010. Additional examples showing the Read Window Val[...]
-
Page 220
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 139 4 SVCREQ #3: Change Programmer Communications Window Mode and Timer Value Use SVCREQ function #3 to change the programmer communications window mode and timer value. The change will occur in the CPU sweep following the sweep in which the function is called. Note Of the CPUs discusse[...]
-
Page 221
4 - 140 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 Example: In the following example, when %M0125 transitions on, the programmer communications window is enabled and assigned a value of 25 ms. The parameter block is in memory location %R5051. | %I0001 %M0125 |——| |—————————?[...]
-
Page 222
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 141 4 SVCREQ #4: Change System Comm. Window Mode and Timer Value Use SVCREQ function #4 to change the system communications window mode and timer value. The change will occur in the CPU sweep following the sweep in which the function is called. Note Of the CPUs discussed in this manual,[...]
-
Page 223
4 - 142 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 Example: In the following example, when enabling output %M0125 transitions on, the mode and timer value of the system communications window is read. If the timer value is greater than or equal to 25 ms, the value is not changed. If it is less than[...]
-
Page 224
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 143 4 SVCREQ #6: Change/Read Number of Words to Checksum Use the SVCREQ function with function number 6 in order to: • Read the current word count. • Set a new word count. Successful execution will occur, unless some number other than 0 or 1 is entered as the requested operation (se[...]
-
Page 225
4 - 144 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 Example: In the following example, when enabling contact FST_SCN is set, the parameter blocks for the checksum task function are built. Later in the program when input %I0137 turns on, the number of words being checksummed is read from the PLC ope[...]
-
Page 226
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 145 4 SVCREQ #7: Change/Read Time-of-Day Clock Use the SVCREQ function with function number 7 to read and set the time-of-day clock in the PLC. Note This function is available only in 331 or higher 90-30 CPUs and on the 28-point Series 90 Micro PLC CPUs (that is, IC693UDR005, IC693UAA00[...]
-
Page 227
4 - 146 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 Example: In the following example, when called for by previous logic, a parameter block for the time-of-day clock is built to first request the current date and time, and then set the clock to 12 noon using the BCD format. The parameter block is l[...]
-
Page 228
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 147 4 Parameter Block Contents Parameter block contents for the different data formats are shown on the following pages. For both data formats: • Hours are stored in 24-hour format. • Day of the week is a numeric value: Value Day of the Week 1 Sunday 2 Monday 3 Tuesday 4 Wednesday 5[...]
-
Page 229
4 - 148 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 To Change/Read Date and Time using Packed ASCII with Embedded Colons Format In Packed ASCII format, each digit of the time and date items is an ASCII formatted byte. In addition, spaces and colons are embedded into the data to permit it to be tran[...]
-
Page 230
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 149 4 SVCREQ #8: Reset Watchdog Timer Use SVCREQ function #8 to reset the watchdog timer during the sweep. Note Of the CPUs discussed in this manual, Service Request 8 is supported only by 90-30 CPUs, beginning with Release 8.0. When the watchdog timer expires, the PLC shuts down withou[...]
-
Page 231
4 - 150 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 SVCREQ #9: Read Sweep Time from Beginning of Sweep Use SVCREQ function #9 to read the time in milliseconds since the start of the sweep. The data is in 16-bit Word format. Note Of the CPUs discussed in this manual, Service Request 9 is supported o[...]
-
Page 232
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 151 4 SVCREQ #10: Read Folder Name Use SVCREQ function #10 to read the name of the currently-executing folder. Note Of the CPUs discussed in this manual, Service Request 10 is supported only by 90-30 CPUs, beginning with Release 8.0. The output parameter block has a length of four words[...]
-
Page 233
4 - 152 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 SVCREQ #11: Read PLC ID Use SVCREQ function #11 to read the name of the Series 90 PLC executing the program. Note Of the CPUs discussed in this manual, Service Request 11 is supported only by 90-30 CPUs, beginning with Release 8.0. The output para[...]
-
Page 234
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 153 4 SVCREQ #12: Read PLC Run State Use SVCREQ function #12 to read the current RUN state of the PLC CPU. Note Of the CPUs discussed in this manual, Service Request 12 is supported only by 90-30 CPUs, beginning with Release 8.0. The parameter block is an output parameter block only; it[...]
-
Page 235
4 - 154 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 SVCREQ #13: Shut Down (Stop) PLC Use SVCREQ function #13 in order to stop the PLC at the end of the next sweep . All outputs will go to their designated default states at the beginning of the next PLC sweep. An informational fault is placed in the[...]
-
Page 236
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 155 4 SVCREQ #14: Clear Fault Tables Use SVCREQ function #14 in order to clear either the PLC fault table or the I/O fault table. The SVCREQ output is set ON unless some number other than 0 or 1 is entered as the requested operation (see below). For this function, the parameter block ha[...]
-
Page 237
4 - 156 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 SVCREQ #15: Read Last-Logged Fault Table Entry Use SVCREQ function #15 in order to read the last entry logged in either the PLC fault table or the I/O fault table. The SVCREQ output is set ON unless some number other than 0 or 1 is entered as the [...]
-
Page 238
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 157 4 In the first byte of word address + 1, the Long/Short indicator defines the quantity of fault specific data present in the fault entry. It may be: PLC Fault Table: 00 = -8 bytes (short) 01 = 24 bytes (long) I/O Fault Table: 02 = —5 bytes (short) 03 = 21 bytes (long) Example 1: I[...]
-
Page 239
4 - 158 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 Example 2: In the next example, the PLC is shut down when any fault occurs on an I/O module except when the fault occurs on modules in rack 0, slot 9 and in rack 1, slot 9. If faults occur on these two modules, the system remains running. The para[...]
-
Page 240
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 159 4 | _____ |FST_SCN | | |——| |———|MOVE_|— | | | | | INT | | | | | CONST —|IN Q|— %R0600 | 0001 | LEN | | | 0001| | |_____| | | _____ | IO_PRES| | %T0001 |——| |———| SVC_|—————————————————————————————?[...]
-
Page 241
4 - 160 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 SVCREQ #16: Read Elapsed Time Clock Use the SVCREQ function with function number 16 in order to read the value of the system’s elapsed time clock. This clock tracks elapsed time in seconds since the PLC powered on. The timer will roll over appro[...]
-
Page 242
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 161 4 SVCREQ #18: Read I/O Override Status Use SVCREQ function #18 in order to read the current status of overrides in the CPU. Note This feature is available only for 331 or higher CPUs. For this function, the parameter block has a length of 1 word. It is an output parameter block only[...]
-
Page 243
4 - 162 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 SVCREQ #23: Read Master Checksum Use SVCREQ function #23 to read the master checksums for the user program and the configuration. The SVCREQ output is always set to ON if the function is enabled, and the output block of information (see below) sta[...]
-
Page 244
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 163 4 SVCREQ #26/30: Interrogate I/O Use SVCREQ function #26 (or #30—they are identical; i.e., you can use either number to accomplish the same thing) to interrogate the actual modules present and compare them with the rack/slot configuration, generating addition, loss, and mismatch a[...]
-
Page 245
4 - 164 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 SVCREQ #29: Read Elapsed Power Down Time Use the SVCREQ function #29 to read the the amount of time elapsed between the last power-down and the most recent power-up. The SVCREQ output is always set to ON, and the output block of information (see b[...]
-
Page 246
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 165 4 SVCREQ #46:Fast Backplane Status Access Use the SVCREQ function #46 to perform one of the following fast backplane access functions: 1. Read a word of extra status data from one of more specified smart modules. 2. Write a word of extra status data from one of more specified smart [...]
-
Page 247
4 - 166 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 Use the table on the following page to interpret the output values: Location Field Meaning Address Function 1 = read extra status data Address + 1 Error Code An error code is placed here if the function fails because any of the modules is not pres[...]
-
Page 248
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 167 4 Write Data (Function #2) The write data function writes a data value between 0 and 15 from the parameter block to one or more modules specified by a list in the parameter block. The parameter block requires (N + 4) words of reference memory, where N is the number of modules to whi[...]
-
Page 249
4 - 168 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 Read/Write Data (Function #3) The read/write function reads a word of extra status data from a module specified in the parameter block, then writes a data value between 0 and 15 from the parameter block to that module. This read write process is r[...]
-
Page 250
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 169 4 Example 1: The following example shows a Read of a single module at Rack 2, Slot 4. IN4 and IN5 must be set to zero (0). IN6 and IN7 are not important in this example. If the function completes successfully, the data will be in %R0004. | _____ |FST_SCN | | |——| |———|BLKM[...]
-
Page 251
4 - 170 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 Example 2: This example reads the extra status data from the module in Rack 0, Slot 4 and from the module in Rack 1, Slot 1. It writes a 5 to the first module and a 9 to the second. Note that the modules do not need to be listed in order by slot n[...]
-
Page 252
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 171 4 PID The Proportional plus Integral plus Derivative (PID) control function is the best known general purpose algorithm for closed loop process control. The Series 90 PID function block compares a Process Variable feedback with a desired process Set Point and updates a Control Varia[...]
-
Page 253
4 - 172 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 Parameters: Parameter Description enable When enabled through a contact, the PID function is performed. SP SP is the control loop or process set point. Set using PV Counts, the PID adjusts the output CV so that PV matches SP (zero error). PV Proce[...]
-
Page 254
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 173 4 PID Parameter Block: Besides the 2 input words and the 3 Manual control contacts, the PID block uses 13 of the parameters in the RefArray. These parameters must be set before calling the block. The other parameters are used by the PLC and are non-configurable. The %Ref shown in th[...]
-
Page 255
4 - 174 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 Table 4-4. PID Parameters Overview (Continued) Register Parameter Low Bit Units Range of Values %Ref+0019 Diff Term Storage N/A; set and maintained by the PLC Non-configurable %Ref+0020 and %Ref+0021 Int Term Storage N/A; set and maintained by the[...]
-
Page 256
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 175 4 Operation of the PID Instruction Normal Automatic operation is to call the PID block every sweep with power flow to Enable and no power flow to Manual input contacts. The block compares the current PLC elapsed time clock with the last PID solution time stored in the internal RefAr[...]
-
Page 257
4 - 176 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 Table 4-5. PID Parameters Details Data Item Description Loop Number (00) This is an optional parameter available to identify a PID block. It is an unsigned integer that provides a common identification in the PLC with the loop number defined by an[...]
-
Page 258
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 177 4 Table 4-5. PID Parameters Details - Continued Data Item Description CV Upper and Lower Clamps (09/10) INT values in CV Counts that define the highest and lowest value for CV. These values are required and the Upper Clamp must have a more positive value than the Lower Clamp, or the[...]
-
Page 259
4 - 178 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 Table 4-5. PID Parameters Details - Continued Data Item Description Manual Command (13) This is an INT value set to the current CV output while the PID block is in Automatic mode. When the block is switched to Manual mode, this value is used to se[...]
-
Page 260
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 179 4 As described in Table 4-6 on the previous pages, the PID block reads 13 user parameters and uses the rest of the 40 word RefArray for internal PID storage. Normally you would not need to change any of these values. If you are calling the PID block in Auto mode after a long delay, [...]
-
Page 261
4 - 180 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 If an Integral Ki gain is used, the CV Bias would normally be 0 as the integrator acts as an automatic bias. Just start up in Manual mode and use the Manual Command word (%Ref+13) to set the integrator to the desired CV, then switch to Automatic m[...]
-
Page 262
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 181 4 Sample Period and PID Block Scheduling The PID block is a digital implementation of an analog control function, so the dt sample time in the PID Output equation is not the infinitesimally small sample time available with analog controls. The majority of processes being controlled [...]
-
Page 263
4 - 182 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 Plotting a step response at time t0 in the time domain provides an open loop unit reaction curve: t0 Tc K 0.632K 1 a45709 Tp t0 CV Unit Step Output to Process PV Unit Reaction Curve Input from Process The following process model parameters can be [...]
-
Page 264
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 183 4 5. After suitable Kp and Ki gains are found, try adding Kd to get quicker responses to input changes providing it doesn’t cause oscillations. Kd is often not needed and will not work with noisy PV. 6. Check gains over different SP operating points and add Dead Band and Minimum S[...]
-
Page 265
4 - 184 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 Sample PID Call The following example has a Sample Period of 100 millisecond, a Kp gain of 4.00 and a Ki gain of 1.500. The Set Point is stored in %R1 with the Control Variable output in %AQ2 and the Process Variable returned in %AI3. CV Upper and[...]
-
Page 266
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 185 4 | _____ _____ _____ | %M0006 | | | | | | |——| |———| BLK_|—————————|BLKMV|—————————————————|BLKMV|– | | | | | | | | | CLR_| | INT | | INT | | | WORD| | | | | |%R00100—|IN | CONST —|IN1 Q|—%R00102 CONST —|IN1 Q|[...]
-
Page 267
GFK-0467K A - 1 Instruction Timing The Series 90-30, 90-20, and Micro PLCs support many different functions and function blocks. This appendix contains tables showing the memory size in bytes and the execution time in microseconds for each function. Memory size is the number of bytes required by the function in a ladder diagram application program.[...]
-
Page 268
A - 2 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K A Table A - 1 . Instruction Timing Function Enabled Disabled Increment Group Function 311 313 331 340/41 311 313 331 340/41 311 313 331 340/41 Size Timers On-Delay Timer 146 81 80 42 105 39 38 21 – – – – 15 Off-Delay Timer 98 47 44 23 116 63 5[...]
-
Page 269
GFK-0467K Appendix A Instruction Timing A - 3 A Table A - 1 . Instruction Timing-Continued Function Enabled Disabled Increment Group Function 311 313 331 340/41 311 313 331 340/41 311 313 331 340/41 Size Bit Logical AND 67 37 37 22 42 0 0 1 – – – – 13 Operation Logical OR 68 38 38 21 42 0 0 1 – – – – 13 Logical Exclusive OR 66 38 37[...]
-
Page 270
A - 4 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K A Table A - 1 . Instruction Timing-Continued Function Enabled Disabled Increment Group Function 311 313 331 340/41 311 313 331 340/41 311 313 331 340/41 Size Search Not Equal INT 198 159 124 83 79 39 36 21 1.93 1.93 2.48 1.52 19 DINT 201 163 132 84 79[...]
-
Page 271
GFK-0467K Appendix A Instruction Timing A - 5 A Table A - 1 . Instruction Timing-Continued Function Enabled Disabled Increment Group Function 311 313 331 340/41 311 313 331 340/41 311 313 331 340/41 Size Control Call a Subroutine 155 93 192 85 41 0 0 0 – – – – 7 Do I/O 309 278 323 177 38 1 0 0 – – – – 12 PID – ISA Algorithm 1870 1[...]
-
Page 272
A - 6 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K A Table A - 1 . Instruction Timing-Continued Function Enabled Disabled Increment Enabled Disabled Increment Group Function 350/351/36x 350/351/36x 350/351/36x 352 352 352 Size Timers On-Delay Timer 4 6 – 4 5 – 15 Timer 3 3 – 2 2 – 15 Off-Delay[...]
-
Page 273
GFK-0467K Appendix A Instruction Timing A - 7 A Table A - 1 . Instruction Timing-Continued Function Enabled Disabled Increment Enabled Disabled Increment Group Function 350/351/36x 350/351/36x 350/351/36x 352 352 352 Size Relational Equal (INT) 1 0 – 1 0 – 10 Equal (DINT) 2 0 – 2 0 – 16 Equal (REAL) 57 0 – 28 0 – 14 Not Equal (INT) 1 0 [...]
-
Page 274
A - 8 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K A Table A - 1 . InstructionTiming-Continued Function Enabled Disabled Increment Enabled Disabled Increment Group Function 350/351/36X 350/351/36X 350/351/36X 352 352 352 Size Data Move Move (INT) 2 0 0.41 2 0 0.41 10 Move (BIT) 28 0 4.98 28 0 4.98 13 [...]
-
Page 275
GFK-0467K Appendix A Instruction Timing A - 9 A Table A - 1 . Instruction Timing-Continued Function Enabled Disabled Increment Enabled Disabled Increment Group Function 350/351/36x 350/351/36x 350/351/36x 352 352 352 Size Search Less Than INT 37 0 1.52 37 0 1.52 19 DINT 41 1 2.27 41 1 2.27 22 BYTE 37 0 1.41 37 0 1.41 19 WORD 37 0 1.52 37 0 1.52 19 [...]
-
Page 276
A - 10 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K A Instruction Sizes for 350 and 360 Series CPUs Memory size is the number of bytes required by the instruction in a ladder diagram application program. 350 and 360 Series CPUs require three (3) bytes for most standard boolean functions— see Table A[...]
-
Page 277
GFK-0467K B - 1 Interpreting Fault Tables The Series 90-30 PLCs maintain two fault tables, the I/O fault table for faults generated by I/O devices (including I/O controllers) and the PLC fault table for internal PLC faults. The information in this appendix will enable you to interpret the message structure format when reading these fault tables. Bo[...]
-
Page 278
B - 2 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K B PLC Fault Table Access the PLC fault table through your programming software. The following diagram identifies each field in the fault entry for the System Configuration Mismatch fault displayed above: 00 000000 Fault Extra Data Error Code Fault Act[...]
-
Page 279
GFK-0467K Appendix B Interpreting Fault Tables B - 3 B The System Configuration Mismatch fault entry is explained below. (All data is in hexadecimal.) Field Value Description Long/Short 00 This fault contains 8 bytes of fault extra data. Rack 00 Main rack (rack 0). Slot 03 Slot 3. Task 44 Fault Group 0B System Configuration Mismatch fault. Fault Ac[...]
-
Page 280
B - 4 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K B PLC Fault Group Fault group is the highest classification of a fault. It identifies the general category of the fault. Table B-1 lists the possible fault groups in the PLC fault table. The last non-maskable fault group, Additional PLC Fault Codes , [...]
-
Page 281
GFK-0467K Appendix B Interpreting Fault Tables B - 5 B Fault Action Each fault may have one of three actions associated with it. These fault actions are fixed on the Series 90-30 PLC and cannot be changed by the user. Table B - 2 . PLC Fault Actions Fault Action Action Taken by CPU Code Informational Log fault in fault table. 1 Diagnostic Log fault[...]
-
Page 282
B - 6 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K B Table B-4 shows the error codes for all the other fault groups. Table B - 4 . Alarm Error Codes for PLC Faults Decimal Hexadecimal Name PLC Error Codes for Loss of Option Module Group 44 2C Option Module Soft Reset Failed. 45 2D Option Module Soft R[...]
-
Page 283
GFK-0467K Appendix B Interpreting Fault Tables B - 7 B Fault Extra Data This field contains details of the fault entry. An example of what data may be present are: Four of the error codes in the System Configuration Mismatch group supply fault extra data: Table B - 5 . PLC Fault Data - Illegal Boolean Opcode Detected Fault Extra Data Model Number M[...]
-
Page 284
B - 8 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K B I/O Fault Table The following diagram identifies the hexadecimal information displayed in each field in the fault entry. Fault Specific Data Fault Description Fault Type Fault Category Fault Action Fault Group Point Block I/O Bus Slot Rack Reference[...]
-
Page 285
GFK-0467K Appendix B Interpreting Fault Tables B - 9 B The following paragraphs describe each field in the I/O fault table. Included are tables describing the range of values each field may have. Long/Short Indicator This byte indicates whether the fault contains 5 bytes or 21 bytes of fault specific data. Table B - 7 . I/O Fault Table Format Indic[...]
-
Page 286
B - 10 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K B Rack The rack number ranges from 0 to 7. Zero is the main rack, i.e., the one containing the PLC. Racks 1 through 7 are expansion racks. Slot The slot number ranges from 0 to 9. The PLC CPU always occupies slot 1 in the main rack (rack 0). Point Po[...]
-
Page 287
GFK-0467K Appendix B Interpreting Fault Tables B - 11 B I/O Fault Action The fault action specifies what action the PLC CPU should take when a fault occurs. Table B-11 lists possible fault actions. Table B - 11 . I/O Fault Actions Fault Action Action Taken by CPU Code Informational Log fault in fault table. 1 Diagnostic Log fault in fault table. Se[...]
-
Page 288
B - 12 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K B I/O Fault Time Stamp The six-byte time stamp is the value of the system clock when the fault was recorded by the PLC CPU. Values are coded in BCD format. Table B - 13 . I/O Fault Time Stamp Byte Number Description 1 2 3 4 5 6 Seconds Minutes Hours [...]
-
Page 289
GFK-0467K C - 1 Instruction Mnemonics In Program Display/Edit mode, you can quickly enter or search for a programming instruction by typing the ampersand (&) character followed by the instruction’s mnemonic. For some instructions, you can also specify a reference address or nickname, a label, or a location reference address. This appendix lis[...]
-
Page 290
C - 2 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K C Function Group Instruction Mnemonic All BCD-4 INT DINT BIT BYTE WORD REAL Math Addition Subtraction Multiplication Division Modulo Square Root Sine Cosine Tangent Inverse Sine Inverse Cosine Inverse Tangent Base 10 Logarithm Natural Logarithm Power [...]
-
Page 291
GFK-0467K Appendix C Instruction Mnemonics C - 3 C Function Group Instruction Mnemonic All INT DINT BIT BYTE WORD REAL Data Move Move Block Move Block Clear Shift Register Bit Sequencer Communications Request &MOV &BLKM &BLKC &SHF &BI &COMMR &MOV_I &BLKM_I &MOV_BI &SHF_BI &MOV_W &BLKM_W &AR_W &[...]
-
Page 292
GFK-0467K D - 1 Key Functions This appendix lists the keyboard functions that are active in the software environment. This information may also be displayed on the programmer screen by pressing ALT-K to access key help . Key Sequence Description Key Sequence Description Keys Available Throughout the Software Package ALT-A Abort. CTRL-Break Exit pac[...]
-
Page 293
D - 2 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K D The Help card on the next page contains a listing of the key help and also the instruction mnemonics help text for Logicmaster 90-30/20/Micro software. This card is printed in triplicate and is perforated for easier removal from the manual.[...]
-
Page 294
GFK-0467K Appendix D Key Functions D - 3 D Print side 1 of GFJ-055C on this page.[...]
-
Page 295
D - 4 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K D Print side 2 of GFJ-055C on this page.[...]
-
Page 296
GFK-0467K E - 1 Using Floating-Point Numbers There are a few considerations you need to understand when using floating-point numbers. The first section discusses these general considerations. Refer to page E-5 and following for instructions on entering and displaying floating-point numbers. Note Floating-point capabilities are only supported on the[...]
-
Page 297
E - 2 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K E Outside the range listed above, only six significant digits are displayed and the display has the form: +1.23456E+12 ||| | | | ||| | | + ——— Exponent (signed power of 10) ||| | | ||| | + ————— Exponent indicator and sign of exponent [...]
-
Page 298
GFK-0467K Appendix E Using Floating-Point Numbers E - 3 E Internal Format of Floating-Point Numbers Floating-point numbers are stored in single precision IEEE-standard format. This format requires 32 bits, which translates to two (adjacent) 16-bit PLC registers. The encoding of the bits is diagrammed below. 16 1 32 17 Bits 17-32 Bits 1-16 23-bit ma[...]
-
Page 299
E - 4 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K E Values of Floating-Point Numbers Use the following table to calculate the value of a floating-point number from the binary number stored in two registers. Exponent (e) Mantissa (f) Value of Floating Point Number 255 Non-zero Not a valid number (NaN)[...]
-
Page 300
GFK-0467K Appendix E Using Floating-Point Numbers E - 5 E Entering and Displaying Floating-Point Numbers In the mantissa, up to six or seven significant digits of precision may be entered and stored; however, the programming software will display only the first six of these digits. The mantissa may be preceded by a positive or negative sign. If no [...]
-
Page 301
E - 6 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K E Errors in Floating-Point Numbers and Operations On a 352 CPU, overflow occurs when a number greater than 3.402823E+38 or less than -3.402823E+38 is generated by a REAL function. On all other 90-30 models that support floating point operations, the r[...]
-
Page 302
GFK-0467K Appendix E Using Floating-Point Numbers E - 7 E of this feature of propagating NaNs through functions, you can identify the function where the NaN originated. Note For NaN, the ok output is OFF (not energized). The following table explains when power is or is not passed when dealing with numbers viewed as or equal to infinity. As shown pr[...]
-
Page 303
Index GFK-0467K Index- 1 3 350 and 360 series CPUs: changing mode with key switch, 2-14 350 and 360 series CPUs: key switch, 2-14 A ACOS, 4-35 ADD, 4-27 ADD_IOM, 2-25 ADD_SIO, 2-25 Addition function, 4-27 Addition of I/O module, 3-18 Alarm, 3-2 Alarm error codes, B-5 Alarm processor, 3-2 ALT keys , D-1 AND, 4-49 ANY_FLT, 2-26 APL_FLT, 2-25 Applicat[...]
-
Page 304
Index Index- 2 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K Continuation contact, 4-8 normally closed contact, 4-4 normally open contact, 4-4 Continuation coil, 4-8 Continuation contact, 4-8 Control functions, 4-107 CALL, 4-108 COMMENT, 4-131 DOIO, 4-109 enhanced DOIO for model 331 and higher CPUs, 4-[...]
-
Page 305
Index GFK-0467K Index Index- 3 EXP, 4-37 Exponential functions, 4-37 power of e, 4-37 power of X, 4-37 EXPT, 4-37 External I/O failures, 3-2 F Fatal faults, 3-4 communications failure during store, 3-16 corrupted user program on power-up, 3-13 option module software failure, 3-11 PLC CPU system software failure, 3-14 program block checksum failure,[...]
-
Page 306
Index Index- 4 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K Function block structure, 2-26 format of program function blocks, 2-27 format of relays, 2-26 function block parameters, 2-28 power flow, 2-29 G GE , 4-41 Global data, 2-42 Global data references, 2-21 Greater than function , 4-41 Greater tha[...]
-
Page 307
Index GFK-0467K Index Index- 5 Links, horizontal and vertical, 4-7 LN, 4-37 Locking/unlocking subroutines, 2-37 LOG, 4-37 Logarithmic functions, 4-37 base 10 logarithm, 4-37 natural logarithm, 4-37 Logic program checksum calculation, 2-9 Logic solution, 2-8 Logical AND function, 4-49 Logical NOT function, 4-53 Logical OR function, 4-49 Logical XOR [...]
-
Page 308
Index Index- 6 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K slot , B-3 spare, B-3 task, B-3 PLC sweep, 2-2 application program logic scan, 2-8 configured constant sweep time mode, 2-13 constant sweep time mode, 2-13, 2-35 housekeeping, 2-6 input scan, 2-7 logic program checksum calculation, 2-9 logic [...]
-
Page 309
Index GFK-0467K Index Index- 7 SET coil, 4-6 RESET coil, 4-6 Reset of, addition of, or extra, option module, 3-9 Retentive coil, 4-5 Retentive RESET coil, 4-7 Retentive SET coil, 4-7 Retentiveness of data, 2-21 ROL, 4-58 ROR, 4-58 Rotate left function, 4-58 Rotate right function, 4-58 S Scan Time Contributions for 350 and 360 Series of CPUs, 2-5 Sc[...]
-
Page 310
Index Index- 8 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K read folder name (#10), 4-151 read I/O override status, 4-161 read last–logged fault table entry, 4-156 read master checksum, 4-162 read PLC ID (#11), 4-152 read PLC run state (#12), 4-153 read sweep time (#9), 4-150 read window values (#2)[...]
-
Page 311
Index GFK-0467K Index Index- 9 User references, 2-20 analog inputs, 2-20 analog outputs, 2-20 discrete inputs, 2-20 discrete internal, 2-20 discrete outputs, 2-20 discrete references, 2-20 discrete temporary, 2-21 global data, 2-21 register references, 2-20 system references, 3-5 system registers, 2-20 system status, 2-21, 2-24 V Vertical link, 4-7[...]