Manuel d'utilisation / d'entretien du produit 90-30/20/Micro du fabricant GE
Aller à la page of 311
GE Fanuc Automation Programmable Control Products Series 90-30/20/Micro Programmable Controllers Reference Manual GFK-0467K September 1998.
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.
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.
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.
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.
.
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 .
Contents viii Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K Elapsed Time Clock ........................................................................................................ 2- 34 Time-of-Day Clock .
Contents GFK-0467K Contents ix Application Fault ...................................................................................................... 3-12 No User Program Present ......................................................................
Contents x Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K Example: ........................................................................................................... 4-16 OFDT ....................
Contents GFK-0467K Contents xi Example 2: ........................................................................................................ 4-46 Section 5: Bit Operation Functions ............................................................... 4-47 AND and OR (WORD) .
Contents xii Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K Valid Memory Types: ....................................................................................... 4-74 Example: .......................
Contents GFK-0467K Contents xiii Parameters: ...................................................................................................... 4-101 Valid Memory Types: .............................................................................
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 .
Contents GFK-0467K Contents xv PID Parameter Block: ..................................................................................... 4-173 Operation of the PID Instruction ..................................................................... 4-175 Internal Parameters in RefArray .
Contents xvi Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K Figure 2-1. PLC Sweep ...........................................................................................................................
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) .
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 .
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.
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.
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).
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.
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 .
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.
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 .
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.
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 .
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.
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.
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 .
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.
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 .
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.
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 .
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 .
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 o.
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.
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.
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.
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.
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.
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.
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 .
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.
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.
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.
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 .
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 .
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 .
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.
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 .
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).
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.
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.
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.
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.
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.
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.
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 .
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.
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 .
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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 .
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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).
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.
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.
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.
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.
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.
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 blo.
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.
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 |.
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.
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.
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.
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.
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.
4 - 18 Series 90-30/20/Micro Programmable Controllers Reference Manual – September 1998 GFK-0467K 4 _____ | | (enable) —|OFDT |— Q | | | time| | | | | | | (preset value) —|PV | |_____| (addres.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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 - 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.
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.
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.
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.
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.
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.
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 Descrip.
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.
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 •••.
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.
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 •••.
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.
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 • • .
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.
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 shift.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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| | | (in.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 129 4 Non-nested JUMP: ——————————————————————— —————————>> ??????? .
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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).
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.
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.
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.
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| | |__.
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.
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.
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.
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.
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.
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.
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 Addres.
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.
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.
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.
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.
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.
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.
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.
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 %.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4 - 185 4 | _____ _____ _____ | %M0006 | | | | | | |——| |———| BLK_|—————————|BLKMV|——————————.
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.
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.
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 S.
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.
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 S.
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 Inc.
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.
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.
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.
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.
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.
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.
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).
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.
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.
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.
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 .
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
GFK-0467K Appendix D Key Functions D - 3 D Print side 1 of GFJ-055C on this page..
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..
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.
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.
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.
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.
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.
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.
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.
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, .
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 Continuati.
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-.
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-2.
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 Lo.
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 configure.
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 .
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.
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 te.
Un point important après l'achat de l'appareil (ou même avant l'achat) est de lire le manuel d'utilisation. Nous devons le faire pour quelques raisons simples:
Si vous n'avez pas encore acheté GE 90-30/20/Micro c'est un bon moment pour vous familiariser avec les données de base sur le produit. Consulter d'abord les pages initiales du manuel d'utilisation, que vous trouverez ci-dessus. Vous devriez y trouver les données techniques les plus importants du GE 90-30/20/Micro - de cette manière, vous pouvez vérifier si l'équipement répond à vos besoins. Explorant les pages suivantes du manuel d'utilisation GE 90-30/20/Micro, vous apprendrez toutes les caractéristiques du produit et des informations sur son fonctionnement. Les informations sur le GE 90-30/20/Micro va certainement vous aider à prendre une décision concernant l'achat.
Dans une situation où vous avez déjà le GE 90-30/20/Micro, mais vous avez pas encore lu le manuel d'utilisation, vous devez le faire pour les raisons décrites ci-dessus,. Vous saurez alors si vous avez correctement utilisé les fonctions disponibles, et si vous avez commis des erreurs qui peuvent réduire la durée de vie du GE 90-30/20/Micro.
Cependant, l'un des rôles les plus importants pour l'utilisateur joués par les manuels d'utilisateur est d'aider à résoudre les problèmes concernant le GE 90-30/20/Micro. Presque toujours, vous y trouverez Troubleshooting, soit les pannes et les défaillances les plus fréquentes de l'apparei GE 90-30/20/Micro ainsi que les instructions sur la façon de les résoudre. Même si vous ne parvenez pas à résoudre le problème, le manuel d‘utilisation va vous montrer le chemin d'une nouvelle procédure – le contact avec le centre de service à la clientèle ou le service le plus proche.