Gebruiksaanwijzing /service van het product FX0 van de fabrikant Mitsubishi Electronics
Ga naar pagina of 382
PROGRAMMING MANUAL THE FX SERI ES OF PRO GRAM MABLE CONTRO L L ER (F X 0 , F X 0S , F X 0N , F X , F X 2C, FX 2N, FX 2NC ).
.
i FX Series Pro g rammable Controllers Programming Manu al Manua l number : JY992D4 8301 Manua l revision : J Date : November 1 999 FX Series Programmable Controllers Foreword • This manual cont ains text, di a g rams and explanat ions which will g uide the re ader in the correct pro g rammin g and operation of the PLC.
FX Series Programmable Controllers ii.
F AX BACK - Combined Programming Manual (J) Mitsub ishi has a wor ld wid e reputat ion for i ts ef fort s in co ntinuall y developin g and pushin g back the fron tiers of industr ial automatio n. What is sometimes o verlooked b y the user i s the care and attention to detail that i s taken with the documen tation.
FX Series Programmable Controllers iv.
FX Series Programmable Controllers v Guidelines for the Safety of the User and Protection of the Programmable Controller (PLC) This manual prov ides information for t he use of the FX famil y of PLC’ s. The manual has been written to be used b y tra ined and competen t perso nnel.
FX Series Programmable Controllers vi.
i Contents 1. Introduction ............................................. ........................ ....................... 1-1 1.1 Ov ervi ew ........ .... ..... .... ..... .... ..... .... .... ..... ...... ..... .... ..... .... .... ..... .... ..... .
ii 3. STL P ro g rammin g .................................. ........................ ....................... 3-1 3.1 What is STL, SFC And I EC1131 Part 3? ........... ............. ............. ............ ............ 3-1 3.2 H ow STL Oper ates . .
iii 4.1 1 Hi g h Speed Counters ........... .................. .................. .................... ................... .. 4-22 4.11.1 Basic Hi g h Speed Counter Ope ration .......... ............ ............. ............. .................... . 4-23 4.
iv 5. Applie d Instructions .................... .................................... ....................... 5-1 5.1 P ro g ram Flow- Functions00 to 09 .. ........... ............. ............. ............ ............. ........ 5-4 5.1.1 CJ (FNC 00) .
v 5.6 H i g h Speed Pro cessin g - Funct ions 5 0 to 59 ........ ....... ....... ........ ....... ....... ........ 5-52 5.6.1 REF (FNC 50) .................... ............. ............. ............ ............. ............. ............. ........
vi 5.11 Floati n g Poin t 1 & 2 - Fu nctions 110 to 129 ...... ............. ............. ............ ........ 5-119 5.11.1 ECM P (FNC 110) ........ ............. ............. ................... ............. ............. ............. ......
vii 7. Execu tion Times And Instructiona l Hierarch y ............................. ........... 7-1 7.1 B asic In struc tion s ... .... ..... .... ..... .... .... ..... ...... ..... .... ..... .... .... ..... .... ..... .... ..... ...... ..... 7-1 7.2 A ppli ed In st ructio ns .
viii 10.15PID Pro g ramm in g Techniques ...... ......... ......... ......... .......... ......... ........... ......... 10-24 10. 15.1K eepin g MV withi n a set ran g e .................... ............ ............. ............. ............. .....
1 Introdu ction 2 Basic Program Instructions 3 STL Progr ammin g 4 Devices in Detail 5 App lied Ins truc tion s 6 Diagnostic Dev ices 7 Instruction Execution Ti mes 8 PLC Device T a bles 9 Assigni n g.
FX Series Programmable Controllers Introductio n 1 Chapter Contents 1. Introduction ......... ........................ .................................... ....................... 1-1 1.1 Ov ervi ew . ..... .... ....... .... ..... .... ..... .... ....
Introductio n 1 1-1 1. Introduction 1.1 Over view 1) Scope of this manual This manual g ives details on all aspects of operation and pro g rammin g for FX, FX 2C , FX 0N , FX 0S , FX 0, FX 2N and FX 2NC pro g rammable controller s (PLCs).
Introductio n 1 1-2 1.2 What is a Programmable Controller? A Pro g rammable Lo g ic Contr oller (PLC o r pro g rammable contro ller) is a devi ce that a user can pro g ram to perform a s eries or seque nce of eve nts.
Introductio n 1 1-3 1.4 CPU version numbers Over time Mits ubishi adds newer and better features t o develop and enhance the products. Because of the nat ure of PLCs, t hat can be l ikened to ‘ industria l computers’ , chan g es sometimes occur within the units main CPU (Central Processin g Unit).
Introductio n 1 1-4 1.5 Special considerations for programming equipment 1.5.1 FX CPU version 3.07 or later and FX 2C Example usage This for mat is ver y important for the inst ruction to o perate correctl y .
Introductio n 1 1-5 1.5.2 FX 2N(C) CPU all versions Peripherals T able Description Model Number Sys tem softwa re version w ith full support for FX 2N(c ) Hand held pro g rammer (HHP ) FX-10P-E from V 3.00 HHP cass ette FX-20P -MFXA-E from V 3.00 Data ac cess un its FX-10DU-E from V 4.
Introductio n 1 1-6 MEMO.
1 Introduction 2 Basic Program Instructions 3 STL Progr ammin g 4 Devices in Detail 5 App lied Ins truc tion s 6 Diagnostic Dev ices 7 Instruction Execution Ti mes 8 PLC Device T ables 9 Assigni n g S.
FX Series Programmable Controllers Basic Program Instructions 2 Chapter Contents 2. Basic P ro g ram Instructions ................................ ........................ ........... 2-1 2.1 Wha t is a Pr o g ram? .. ....... .... ..... .... .... ....
Basic Program Instructions 2 2-1 2. Basic Program Instructions 2.1 What is a Program? A pro g ram is a conn ected series o f instructions written in a lan g ua g e that the PLC can understand. There are three fo r ms of pro g ram format; instruction, l adder and SFC/STL.
FX Series Programmable Controllers Basic Program Instructions 2 2-2 2.3 How to Read Ladder Logic Ladder lo g ic is ver y closel y associated to basic rela y lo g ic. There are both contacts and coils that can be loaded and dr iven in dif ferent confi g urations.
FX Series Programmable Controllers Basic Program Instructions 2 2-3 2.4 Load, Load Inver se Program example: Basic points to remember: - Connect the LD a nd LDI instru ctions direc tl y to the left hand bus bar . - Or use LD and LDI instructi ons to define a new block of pro g ram when usin g the ORB and ANB instructions (s ee later sections).
FX Series Programmable Controllers Basic Program Instructions 2 2-4 2.5 Out Basic points to remember: - Connect the OUT instruction dire ct l y to the ri g ht hand bus bar . - It is not possible t o use the OUT instructio n to dri ve ‘X’ t y pe input devices .
FX Series Programmable Controllers Basic Program Instructions 2 2-5 2.5.2 Double Coil Designat ion Double or dual c oilin g is not a recommende d practice . Usin g multiple output co ils of the same device can ca use the pr o g ram operation to become unreliable.
FX Series Programmable Controllers Basic Program Instructions 2 2-6 2.6 And, And Inverse Pro g ram example: Basic points to remember: - Use the AND and ANI instructi ons fo r seri al connec tion of contact s. As man y contacts as required ca n be connected i n ser ies (see follo win g point headed “ Peripher al li mitati ons”).
FX Series Programmable Controllers Basic Program Instructions 2 2-7 2.7 Or , Or Inv erse Pro g ram example: Basic points to remember: - Use the OR and ORI instructi ons for parallel c onnection of contac ts.
FX Series Programmable Controllers Basic Program Instructions 2 2-8 2.8 Load Pulse, Load T railing Pulse Pro g ram example: Basic points to remember: - Connect the LDP and LDF instructions dir ectl y to the left hand bus bar .
FX Series Programmable Controllers Basic Program Instructions 2 2-9 2.9 And Pulse, And T railing Pulse Program example: Basic points to remember: - Use the ANDP and ANDF instructions f or the serial connection of pul se contacts. -U s a g e is the same as for AND and ANI; see earlier .
FX Series Programmable Controllers Basic Program Instructions 2 2-1 0 2.10 Or Pulse, Or T railing Pulse Program example: Basic points to remember: - Use the ORP and ORF i nstructions for the parallel connect ion of pulse contacts. -U s a g e is t he same as for OR and ORI; see ea rlier .
FX Series Programmable Controllers Basic Program Instructions 2 2-11 2.1 1 Or Block Program example: Basic points to remember: - An ORB instru ction is an independent in struction and is not associ ated with an y device number .
FX Series Programmable Controllers Basic Program Instructions 2 2-1 2 2.12 And Block Program example: Basic points to remember: - An ANB instruction is an independ ent instruction and is not associate.
FX Series Programmable Controllers Basic Program Instructions 2 2-13 2.13 MPS, MRD and MPP Basic points to remember: - Use these inst ructions t o connect output coi ls to the left hand s ide of a cont act. Without these i nstructions connecti ons can onl y be made to the ri g ht hand side of t he last con tact.
FX Series Programmable Controllers Basic Program Instructions 2 2-1 4 Multiple program examples: X0 X1 X2 X4 X6 X7 X3 X5 X10 X11 MPS MRD MPP X0 X1 X3 X2 X4 X5 X6 MPS MPP MPP MPS X0 X1 X2 X3 X4 MPP MPS.
FX Series Programmable Controllers Basic Program Instructions 2 2-15 2.14 Master Control a nd Reset Program example: Basic points to remember: - After the executi on of a n MC instru cti on, the bus l ine (LD, LDI po int) s hift s to a point af te r the MC inst ruc tion.
FX Series Programmable Controllers Basic Program Instructions 2 2-1 6 Nested MC progra m example: Level N0: Bu s line (B) ac tive when X0 is ON. Level N1: Bus line ( C) active when both X0 and X2 are ON. Level N2: Bus line ( D) active when X0,X2 and X4 are ON.
FX Series Programmable Controllers Basic Program Instructions 2 2-17 2.15 Set and Reset Program example: Basic points to remember: - T urnin g ON X 0 ca uses Y0 to tu rn ON . Y0 remains ON even after X0 turns OFF . - T urnin g ON X 1 ca uses Y0 to tu rn OF F .
FX Series Programmable Controllers Basic Program Instructions 2 2-1 8 2.16 Timer , Counter (Out & Reset) Program example: 2.16.1Basic T imers, Retent ive T imers And Counters These devices can all be reset at an y time b y drivin g the RST instructio n (with th e number of the device to be reset).
FX Series Programmable Controllers Basic Program Instructions 2 2-19 2.16.2 Normal 32 bi t Counters The 3 2 bit coun ter C200 co unts (up- count, do wn-count) accordin g to the ON/OFF state of M8200. In the exampl e pro g ram shown on the pr evious pa g e C200 is bein g used to count the number of OFF ~ ON c y cles of input X4.
FX Series Programmable Controllers Basic Program Instructions 2 2-2 0 2.17 Leading and T railing Pulse Program example: Basic points to remember: - When a PLS instruct ion is executed, ob j ect devices Y and M opera te for one operation c y cle after the dri ve input si g nal has t urned ON.
FX Series Programmable Controllers Basic Program Instructions 2 2-21 2.18 In ve rse Program example: Basic points to remember: - The INV instructi on is used to chan g e (inver t) the lo g ical sta te of the curr ent ladder network at the insert ed position.
FX Series Programmable Controllers Basic Program Instructions 2 2-2 2 2.19 No Op erati on Basic points to remember: - Writin g NOP instr uctions in the m iddle o f a pro g ram minimiz es step number cha n g es when chan g in g or editin g a pro g ram.
FX Series Programmable Controllers Basic Program Instructions 2 2-23 2.20 En d Basic points to remember: -P l a c i n g an END instruction in a pro g ram forces that pro g ram to end the cu rrent sc an and carr y out the updatin g processes f or both input s and outputs.
FX Series Programmable Controllers Basic Program Instructions 2 2-2 4 MEMO.
1 Introduction 2 Basic Program Instructions 3 STL Programm in g 4 Devices in Detail 5 App lied Ins truc tion s 6 Diagnostic Dev ices 7 Instruction Execution Ti mes 8 PLC Device T ables 9 Assigni n g S.
FX Series Programmable Controllers STL Pro gramming 3 Chapter Contents 3. STL P ro g rammin g .................................. ........................ ....................... 3-1 3.1 What is STL, SFC And I EC1131 Part 3? ........... ............. .
STL Pro gramming 3 3-1 3. ST L Programm ing This chapter d iff ers fro m the rest of the contents in this manual as it has b een writ ten wi th a trainin g aspect in mind. STL/SFC pro g rammin g , althou g h havin g been available fo r man y y ears, is still misunderstood and misrepresented.
FX Series Programmable Controllers STL Pro gramming 3 3-2 3.2 How STL Ope rates As prev iousl y menti oned, S TL is a s y stem wh ich allows the user to write a pro g ram which functions in much the same wa y as a flow chart, this can be seen in the dia g ram opposite.
FX Series Programmable Controllers STL Pro gramming 3 3-3 Combined SFC Ladder representation Some times STL pro g rams will be w ritten in hard cop y as a co mbinat ion of both fl ow dia g ram and inte rnal sub-pro g ram. (example shown bel ow). Identif ication of cont act states 3.
FX Series Programmable Controllers STL Pro gramming 3 3-4 Initia l St eps For an STL pro g ram which is to be activated on the initial po wer up of the PLC, a tri gg er similar to tha t shown op posite co uld be used , i.e. us in g M8002 to drive the settin g of the initia l st a te .
FX Series Programmable Controllers STL Pro gramming 3 3-5 3.4 Moving Between STL Steps T o activate an ST L step the user must first drive the state coil. Settin g the coil has alread y been ide ntified as a wa y to s tart an ST L pro g ram, i. e. driv e an ini tial st ate.
FX Series Programmable Controllers STL Pro gramming 3 3-6 3.4.2 Using OUT to drive an STL coil This has the s ame operational feat ures as usin g SET . However , there is one ma j or functi on which SET is not used. This is to make what is termed ‘distant j umps’.
FX Series Programmable Controllers STL Pro gramming 3 3-7 3.5 Rules and T echniques For STL programs It can be seen that ther e are a l ot of advanta g es to usin g STL st y le pr o g ram min g but there are a few points a user must be aware of when writin g the STL sub-pro g ram s.
FX Series Programmable Controllers STL Pro gramming 3 3-8 T001 S 30 S 31 T001 S 32 K20 T001 K50 T001 Y11 S 30 S 31 Y10 Y10 Y11 • When an STL step transfers contro l to the next STL step there is a perio d (one scan) whi le both step s are active. This can cause prob lems wit h dual coil s; particu larl y time rs.
FX Series Programmable Controllers STL Pro gramming 3 3-9 3.5.2 Single Signal Step Cont rol T ransferrin g between ac tive STL steps can be controlle d b y a si n g le si g nal. The re are two methods the user can pro g ram to ach i ev e this res u lt.
FX Series Programmable Controllers STL Pro gramming 3 3-1 0 3.6 Restrictions Of Som e Instructions When Used W ith STL Althou g h STL can operat e with most bas ic and app li ed inst ruc tions there ar e a fe w excepti ons. As a g eneral rule STL and M C-MCR pro g rammin g formats shou ld not be comb ined.
FX Series Programmable Controllers STL Pro gramming 3 3-11 3.7 Using STL T o Select The Most Appropriate Program So far STL ha s been con sidered as a simple flow chart i n g pro g rammin g lan g ua g e. One of STL ’s exceptional features is the abilit y to create pro g rams which can have several operatin g modes.
FX Series Programmable Controllers STL Pro gramming 3 3-1 2 3.8 Using STL T o Activate Multiple Flows Simultaneously In t he prev ious bran chin g techniq ue, it was seen how a sin g le flow co uld be selected from a g roup. The followin g met hod s des cribe how a g roup o f indivi dual flows can be a ctivated simult aneousl y .
FX Series Programmable Controllers STL Pro gramming 3 3-13 When a g roup of branch fl ows are act ivated, the user will often eit her; a) ‘Race’ each flow a g ainst its counter parts.
FX Series Programmable Controllers STL Pro gramming 3 3-1 4 3.9 Genera l Rules For Succes sful STL Branching For each branc h poin t 8 furt her branc hes ma y be pro g rammed. There are n o li mits t o the num- ber of st ates contain ed in a si n g le STL flow .
FX Series Programmable Controllers STL Pro gramming 3 3-15 3.10 General P recautions When Using The FX-PCS/A T-EE Software This soft ware has the abil it y to pro g ram in SFC flow dia g rams .
FX Series Programmable Controllers STL Pro gramming 3 3-1 6 3.1 1 Programming Examples 3.1 1.1 A Simple STL Flow This simple exampl e is an excerp t from a semi-automati c loadin g -unload in g ore truck pr o g ram . This e xample pro g ram has a built in, initializatio n routine which o ccurs onl y when the PL C is powered from OFF to ON.
FX Series Programmable Controllers STL Pro gramming 3 3-17 Once at the dischar g e point the truck opens its bottom doors (Y 13). After a timed duration in which t he truck empt ies its co ntents, the pro g ram chec ks to see i f the repeat mode was selected on the l ast c y cle, i.
FX Series Programmable Controllers STL Pro gramming 3 3-1 8 3.1 1.2 A Selective Branch/ First State Merge Example Progr am The followin g example depicts a n automatic sortin g robot. The robo t sorts two sizes of ball bearin g s from a mixed ‘source pool’ i nto individu al s tora g e buckets cont ainin g onl y one t y pe of ball be arin g .
FX Series Programmable Controllers STL Pro gramming 3 3-19 Full STL flow dia g ram/pro g ram. Y0 T0 T1 S 0 X12 Y7 X2 T0 Y2 Y3 X4 RST Y1 K20 S 21 S 22 SET Y1 K10 S 23 T1 S 24 T2 X3 T0 T1 X2 Y2 Y3 X5 S .
FX Series Programmable Controllers STL Pro gramming 3 3-2 0 3.12 Advanced S TL Use STL pro g rammin g can be e nhanced b y usin g the In itial St ate Applied Instruct ion. This instruc tion has a mnemonic abbr evi ation of IST and a sp eci al funct i on number of 6 0.
1 Introduction 2 Basic Program Instructions 3 STL Progr ammin g 4 Devices in Detail 5 App lied Ins truc tion s 6 Diagnostic Dev ices 7 Instruction Execution Ti mes 8 PLC Device T ables 9 Assigni n g S.
FX Series Programmable Controllers Devices in Detail 4 Chapter Contents 4. Device s in Detail ............. ........................ .................................... ........... 4-1 4.1 In puts .. .... ..... .... ....... .... ..... .... ..... ....
Devices in Detail 4 4-1 4. Devices in Detail 4.1 Inputs Device Mnemonic: X Purpose: Representati on of ph y sical in puts to the pro g rammab le cont roller (PLC) Alias: I/P Inp (X) Inpu t Input con tact A vailable forms: NO ( ) and NC ( ) contact s onl y (see ex am ple device usa g e for refe ren ces) Devices numbered in: Octal, i.
FX Series Programmable Controllers Devices in Detail 4 4-2 4.2 Outputs Device Mnemonic: Y Purpose: Representati on of ph y sical out puts from the pro g rammable con troller Alias: O/P Otp Out (Y) Out.
FX Series Programmable Controllers Devices in Detail 4 4-3 4.3 Auxiliary Re lays Device Mnemonic: M Purpose: In ternal pro g rammable control ler status fla g Alias: Auxiliar y (coil / rela y / contac.
FX Series Programmable Controllers Devices in Detail 4 4-4 4.3.2 Battery Bac ked/ Latched Auxiliar y Relays There are a number of batter y backed or latched rela y s whose s tatus is retained in batter y backe d or EEPROM memor y . If a power failu re should occu r all output and g enera l purpos e rela y s are switched of f.
FX Series Programmable Controllers Devices in Detail 4 4-5 4.3.3 Special Diagnost ic Auxil iary Relays A PLC has a numbe r of special a uxiliar y rela y s. These rela y s all have s pecifi c func tions and are classi fied into the fo ll owin g two t y pes.
FX Series Programmable Controllers Devices in Detail 4 4-6 4.4 Sta te Relays Device Mnemonic: S Purpose: In ternal pro g rammable control ler status fla g Alias: State (coil/ r ela y / contact/ fl a g.
FX Series Programmable Controllers Devices in Detail 4 4-7 4.4.2 Battery Bac ked/ Latched St ate Relays There are a number of batter y backed or latched rela y s whose s tatus is retained in batter y backe d or EEPROM memor y . If a power failu re should occu r all output and g enera l purpos e rela y s are switched of f.
FX Series Programmable Controllers Devices in Detail 4 4-8 4.4.3 STL Step Relays States (S) a re ver y important devic es when pro g ramm in g step b y step process control. The y are used in combination wit h the basic instruction STL. When all STL st y le pro g ram min g is used cert ain states have a pre-def ined operation.
FX Series Programmable Controllers Devices in Detail 4 4-9 4.4.4 Annunciat or Fla gs Some state fla g s can be used as outputs fo r e xt ernal dia g nosis (called annunciation) when certain applied instructions ar e used.
FX Series Programmable Controllers Devices in Detail 4 4-1 0 4.5 Pointers Device Mnemonic: P Purpose: Pro g ram fl ow control Alias: Pointer Pro g ram pointer P A vailable forms: Label: appears on the left of the left hand bus bar when the pro g ram is viewed in ladder mode.
FX Series Programmable Controllers Devices in Detail 4 4-11 4.6 Interrupt Pointers Device Mnemonic: I Purpose: I nterrupt pro g ram marker Alias: Interru pt Hi g h speed interrupt I A vailable forms: Label: appears on the left of the left hand bus bar when the pro g ram is viewed in ladder mode (see ¿ in t he example devic e usa g e dia g ram).
FX Series Programmable Controllers Devices in Detail 4 4-1 2 4.6.1 Input I nterrupts Identif i cation of interrupt poi nter number: Example: I 001 The seq uence pr o g rammed after th e label (indicated b y the I 001 po inter ) is exec uted o n the leadin g or risin g ed g e of the input si g nal X0.
FX Series Programmable Controllers Devices in Detail 4 4-13 4.6.3 Disabling Indi vidual Interrupt s Individual interrupt devices can be tem poraril y or permanentl y disabled b y drivin g an associ ated s pecial auxiliar y rela y . The rele vant coils ar e identified in the ta bles of devi ces in chapter 6.
FX Series Programmable Controllers Devices in Detail 4 4-1 4 4.7 Constant K Device Mnemonic: K Purpose: Identi fication of constant dec imal values Alias: Constant K (va lue/ constant) K A vailable fo.
FX Series Programmable Controllers Devices in Detail 4 4-15 4.9 T imers Device Mnemonic: T Purpose: T imed durations Alias: Ti m e r ( s ) T A vailable forms: A driven c oil sets int ernal PLC contact s (NO and NC cont acts availabl e).
FX Series Programmable Controllers Devices in Detail 4 4-1 6 4.9.1 General timer operat ion T imers operate b y countin g clock pulses ( 1 , 10 and 100 msec). Th e ti mer o utput contact is activat ed when t he count data reaches the value set b y the constant K.
FX Series Programmable Controllers Devices in Detail 4 4-17 4.9.3 Retentive T imers A retentive timer has the abilit y to retain the currentl y reached present value even after the drive conta ct has been remove d. This means that whe n the drive contac t is re-es tablished a retenti ve timer wil l continue fr om where it la st reached.
FX Series Programmable Controllers Devices in Detail 4 4-1 8 4.9.4 T imers Used in I nt erru pt and ‘CALL ’ Subroutines If timers T192 to T199 and T246 to T249 are used in a CALL subroutine or an interruption routine, the timin g action is updated at the point when an END instruction is executed.
FX Series Programmable Controllers Devices in Detail 4 4-19 4.10 Counters Device Mnemonic: C Purpose: Event d riven dela y s Alias: Counter (s) C A vailable forms: A driven coil sets inter nal PLC contacts (NO and NC contacts available).
FX Series Programmable Controllers Devices in Detail 4 4-2 0 4.10.1 General/ Latched 16bi t UP Counters The c urrent valu e of the coun ter in creases each time coil C 0 is turned ON b y X1 1. Th e outpu t contac t is act ivated w hen the co il is turned ON for th e tent h time ( see dia g ram).
FX Series Programmable Controllers Devices in Detail 4 4-21 4.10.2 General/ Latched 32bi t Bi-directi onal Counters The cou nter shown in t he example below , acti vates when its coil is driven, i.e. the C200 coil is driven. On ever y occasion the inpu t X14 is turned from OFF to ON the current val ue or cur rent count of C200 is incremented .
FX Series Programmable Controllers Devices in Detail 4 4-2 2 4.1 1 High Speed Counters Device Mnemonic: C Purpose: Hi g h speed event driven dela y s Alias: Counter ( s) C Hi g h speed counter (s) Phase counter s A vailable forms: A driven c oil sets int ernal PLC contact s (NO and NC cont acts availabl e).
FX Series Programmable Controllers Devices in Detail 4 4-23 4.1 1.1 Basic High Speed Counter Operation Althou g h counters C235 to C255 (21 poi nts) are all hi g h speed counters, th e y share the same ran g e of hi g h spee d inp uts.
FX Series Programmable Controllers Devices in Detail 4 4-2 4 4.1 1.2 A vailability of High Speed Counters on FX 0 , FX 0S and FX 0N PLC’ s The foll owin g device table outli nes the ran g e of avail.
FX Series Programmable Controllers Devices in Detail 4 4-25 4.1 1.3 A vailability of High Speed Counters on FX, FX 2C PLC’ s The foll owin g device table outl ines the ran g e of available hi g h speed counters o n both the FX, FX 2C .
FX Series Programmable Controllers Devices in Detail 4 4-2 6 Counter speeds: • The maximum countin g speed is dependent on the t y pe, quant it y of counters and on how man y hi g h speed counter i nstructions are bei n g used. The foll owin g tables g ive the approximate maxi mum count in g speed fo r each ident ified ca se.
FX Series Programmable Controllers Devices in Detail 4 4-27 Note: B i-directional cou nters are desi g ned such th at the up count si g nal and the do wn count si g nal never ope rate at the s ame time. Therefor e it is real l y usin g onl y one phase at one time.
FX Series Programmable Controllers Devices in Detail 4 4-2 8 4.1 1 .4 A vailabili ty of High Speed Counter s on FX 2N(C) PLC’ s The fo llowin g device table outli nes the ran g e of avai lable hi g h speed counte rs on FX 2N(C) .
FX Series Programmable Controllers Devices in Detail 4 4-29 4.1 1.5 1 Phase Counters - User Start and Reset (C235 - C240) These counters onl y use one in put each. When direction fla g M8235 is ON , counter C235 counts down. When it is OFF , C235 counts up.
FX Series Programmable Controllers Devices in Detail 4 4-3 0 4.1 1.6 1 Phase Counters - Assigned Start and Reset (C24 1 to C245) Thes e counters have one countable input and 1 r eset inpu t each. Cou nters C244 and C245 also have a start input. When the direction fla g M8245 is ON, C245 counts down.
FX Series Programmable Controllers Devices in Detail 4 4-31 4.1 1.7 2 Phase Bi-directi onal Counters (C246 to C250) These coun ters have on e input for countin g up and one input for countin g down. Certain counters also have reset and start inputs as well.
FX Series Programmable Controllers Devices in Detail 4 4-3 2 4.1 1.8 A/B Phase Counters (C252 to C255) With these counte rs onl y the input identified in t he previous hi g h speed counter tables can be used for countin g . The countin g performed b y these devices is independent of t he pro g ram c y cle (scan) time.
FX Series Programmable Controllers Devices in Detail 4 4-33 4.12 Data Re gister s Device Mnemonic: D Purpose: A stora g e device capable of stori n g numeric data or 16/32bit pat terns Alias: Data (r .
FX Series Programmable Controllers Devices in Detail 4 4-3 4 4.12.1 General Use Registers Data re g isters, as the name su gg ests, store data. The stored data can be interp reted as a numeri cal value or as a series of bits, bein g either ON or OFF .
FX Series Programmable Controllers Devices in Detail 4 4-35 4.12.2 Battery Bac ked/ Latched Regist ers Once da ta is written to a batter y backed re g ister , it remains unchan g ed until it is overwritten. When the PLC’s st atus is chan g ed from RUN to STOP , the data in these re g ister s is retained.
FX Series Programmable Controllers Devices in Detail 4 4-3 6 4.12.4 File Register s File re g isters are available in two forms: -P r o g ram memor y re g isters - t hese occup y pro g ram steps in bl.
FX Series Programmable Controllers Devices in Detail 4 4-37 4.12.5 Externally Adj usted Registers The FX 0 and FX 0N have built in “settin g pots” w hich ar e us ed to ad j ust th e conten ts of c ertain d edicated d ata re g isters. The cont ents of these re g iste rs can ran g e from 0 to 255.
FX Series Programmable Controllers Devices in Detail 4 4-3 8 4.13 Index Re gisters Device Mnemonic: V, Z Purpose: T o modif y a specified device b y statin g an of fset.
FX Series Programmable Controllers Devices in Detail 4 4-39 4.13.1 Modifying a Constant Con stants can be modi fied j ust as easil y as data re g isters or bit devices . If, for e xample, the constant K20 was actuall y writt en K20V the fina l result wou ld equal: K20 + the contents of V Example: 4.
FX Series Programmable Controllers Devices in Detail 4 4-4 0 4.14 Bits, Words, BCD and Hexadec imal The fol lowin g section de tail s g eneral topics relati n g to g ood device understandi n g . The section is split i nto several smal ler parts wi th each coverin g one topic or small g roup of topi cs.
FX Series Programmable Controllers Devices in Detail 4 4-41 Assigning grouped bit devices: As alread y explained, bi t devices can be g rouped int o 4 bit units. The “n” in KnM0 defines the number of g roups of 4 bits to be combin ed for data operation.
FX Series Programmable Controllers Devices in Detail 4 4-4 2 4.14.2 Word De vices W ord devices such as T , C, D, V and Z can store data about a particular ev ent or action withi n the PLC.
FX Series Programmable Controllers Devices in Detail 4 4-43 The rea son this is not -7797 is becaus e a ne g ative va lue is calc ulated usin g two’ s compliment (des cribed later) but can quickl y be calculated i n the followin g manner: Because this i s a ne g ative number , a base is set as -32768.
FX Series Programmable Controllers Devices in Detail 4 4-4 4 c) ABCD conversion Usin g the ori g inal bit patt ern as a base but addin g the followin g BCD headers allows the conversion of the binar y data into a BCD format. Binary Coded Decimal value= ERROR!!!! ! It will be noticed that t his will produce a n ERROR.
FX Series Programmable Controllers Devices in Detail 4 4-45 4.14.4 T wo’ s Compliment Pro g rammable con trollers, c omputers etc , use a format called 2’ s compliment. Th is is a mathema tical procedu re which is more suited t o the micro processors op erational hardware requirement s.
FX Series Programmable Controllers Devices in Detail 4 4-4 6 4.15 Floating Point And Scientific Notation PLC’ s can use man y dif ferent s y stems and methods to store data. The most common have alread y been discussed in previ ous sections e. g . BCD, Binar y , Decimal, Hex.
FX Series Programmable Controllers Devices in Detail 4 4-47 4.15.1 Scientific Notat ion This format co uld be called the step betwee n t he ‘inte g er ’ formats and t he full floatin g point formats. In basic ter ms Scientifi c Notation use tw o devices to store i nformation about a numbe r or value.
FX Series Programmable Controllers Devices in Detail 4 4-4 8 4.15.2 Floating Point Format Floatin g point format extends the ab ilities and ran g es provided b y Scientific Notation with the abilit y .
FX Series Programmable Controllers Devices in Detail 4 4-49 4.15.3 Summary Of The Scientific Notation and Floa ti ng Point Numbers The inst ruction neede d to convert bet ween each numbe r format are sh own below in a dia g rammaticall y format for quick and eas y refere nce.
FX Series Programmable Controllers Devices in Detail 4 4-5 0 MEMO.
1 Introduction 2 Basic Program Instructions 3 STL Progr ammin g 4 Devices in Detail 5 Appl ied I nstruc tions 6 Diagnostic Dev ices 7 Instruction Execution Ti mes 8 PLC Device T ables 9 Assigni n g Sy.
FX Series Programmable Controllers Applied Instructio ns 5 Chapter Contents 5. Applie d Instructions .................... .................................... ....................... 5-1 5.1 Pro g ram Flow-Funct ions0 0 to 09 ........................ .
Applied Instructio ns 5 5-1 5. Applied Instru ctions The table wi ll be f ound at the be g innin g of each new i nstruct io n descri pt ion. T he area i denti fied as ‘Operands’ will list the various devices (operands) that ca n be used with the ins t ruc t ion.
FX Series Programmable Controlers Applied Instructio ns 5 5-2 • For instruc tions that operate cont inuousl y , i.e. on ever y scan of the pro g ram the inst ruction will o perate and pr ovide a new , diff erent resu lt, the foll owin g identif ication s y mbol will be used ‘ ’ to represent a hi g h speed chan g in g state.
FX Series Programmable Controlers Applied Instructio ns 5 5-3 Applied Instructions: FNC 00 - 09 FNC 10 - 19 FNC 20 - 29 FNC 30 - 39 FNC 40 - 49 FNC 50 - 59 FNC 60 - 69 FNC 70 - 79 FNC 80 - 89 FNC 90 - 99 FNC 110- 129 FNC 130- 139 FNC 140- 149 FNC 160- 169 FNC 170- 179 FNC 220- 249 1.
FX Series Programmable Controlers Applied Instructio ns 5 5-4 5.1 Program Flow-Functions00 to 09 Contents: Pa g e CJ - Conditional j ump FNC 00 5-5 CALL - Call Subroutine FNC 01 5-7 SRET - Subroutine .
FX Series Programmable Controlers Applied Instructio ns 5 5-5 5.1.1 CJ (FNC 00) Mnemonic Function Operands Program steps D CJ FNC 00 (Conditi onal Jump) Jumps t o the identifi ed poi nter positio n V .
FX Series Programmable Controlers Applied Instructio ns 5 5-6 X22 P 10 CJ P10 e) A CJ inst ruction can be used to Jump forwar ds throu g h a pro g ram, i.
FX Series Programmable Controlers Applied Instructio ns 5 5-7 5.1.2 CALL (FNC 01) Points t o note: a) Man y CALL statements can reference a si n g le subroutine . b) Each subroutine must h ave a unique pointe r number . Subroutine poi nters can be select ed from the ran g e P0 to P62.
FX Series Programmable Controlers Applied Instructio ns 5 5-8 5.1.3 SRET (FNC 02) Operation: SRET si g nifie s the end of th e current subrout ine and retu rns the pro g ram flow to t he ste p immediatel y follow in g the CALL instruct ion which activated the closi n g subroutine.
FX Series Programmable Controlers Applied Instructio ns 5 5-9 5.1.4 IRET , EI, DI (FNC 03, 04, 05) General descript ion of an interrupt routine: An interrupt routine is a section of pro g ram which is, when tri gg ered, operated immediatel y interrupt in g the main pro g ram flow .
FX Series Programmable Controlers Applied Instructio ns 5 5-1 0 Controlling int errupt operations: The PLC has a default st atus of disablin g interr upt operation.
FX Series Programmable Controlers Applied Instructio ns 5 5-11 5.1.5 FEND (FNC 06) Operation: An FEND instruction indicates the first end of a main pro g ram and the start of the pro g ram area to be used for subroutines. Under normal operati n g circumstances the FEND instruction performs a similar action to th e END ins truction, i.
FX Series Programmable Controlers Applied Instructio ns 5 5-1 2 5.1.6 WDT (FNC 07) Operation: The WD T instruction re freshes th e PLC’s watchd o g timer . The watc hdo g timer ch ecks that th e pro g ram scan (operati on) time does not exceed an arb itrar y time limit.
FX Series Programmable Controlers Applied Instructio ns 5 5-13 5.1.7 FOR, NEXT (FNC 08, 09) Operation: The FOR an d NEXT instruc tions allow the specification o f an area of pro g ram, i .e. the pr o g ram enclosed b y the instructi ons, which is to be repeated S nu m ber of ti mes .
FX Series Programmable Controlers Applied Instructio ns 5 5-1 4 Nested FOR-NEXT loops: FOR-NEXT instructi ons can be nested for 5 level s. This means that 5 FOR-NEXT loops can be sequential l y pro g rammed within each other . In the ex ample a 3 level ne st has been pr o g rammed.
FX Series Programmable Controlers Applied Instructio ns 5 5-15 Applied Instructions: FNC 00 - 09 FNC 10 - 19 FNC 20 - 29 FNC 30 - 39 FNC 40 - 49 FNC 50 - 59 FNC 60 - 69 FNC 70 - 79 FNC 80 - 89 FNC 90 - 99 FNC 110- 129 FNC 130- 139 FNC 140- 149 FNC 160- 169 FNC 170- 179 FNC 220- 249 1.
FX Series Programmable Controlers Applied Instructio ns 5 5-1 6 5.2 Move And Compare - Functions 10 to 19 Contents: Pa g e CMP - Compare FNC 10 5-17 ZCP - Zone Compare FNC 1 1 5-17 MOV - Move FNC 12 5.
FX Series Programmable Controlers Applied Instructio ns 5 5-17 5.2.1 CMP (FNC 10) Operation: The data of S 1 is compared to the data of S 2 . The result is indicated b y 3 bit devi ces specified f rom the head addr ess entered as D.
FX Series Programmable Controlers Applied Instructio ns 5 5-1 8 5.2.3 MOV (FNC 12) Operation: The contents of the sour ce device (S) is cop ied to the desti nation (D) de vice when the cont rol input is active. If the MOV instruction is not driven, no operati on takes place.
FX Series Programmable Controlers Applied Instructio ns 5 5-19 Operation 2: (Applicable units are FX un its with CPU’s ver 3.07 or g reater and FX 2C ‘s). This modi ficati on of the S MOV operat ion allo ws BCD numb ers to be mani pulate d in exact l y the same wa y as the ‘normal’ SMOV m anipulates decimal numbers, i.
FX Series Programmable Controlers Applied Instructio ns 5 5-2 0 5.2.6 BMOV (FNC 15) Operation: A quantit y of con secuti vel y occurrin g data elements can be copied to a n ew destination. The source d ata is identified as a de vice head address (S) and a quantit y of co nsecuti ve data el ements (n) .
FX Series Programmable Controlers Applied Instructio ns 5 5-21 5.2.7 FMOV (FNC 16) Operation: The data stored i n the source device (S) i s copied to ever y device within the destina tion ran g e. The r an g e is specified b y a device head address (D) and a quantit y of consecutive elements (n).
FX Series Programmable Controlers Applied Instructio ns 5 5-2 2 5.2.9 BCD (FNC18) Operation 1 : (Applicable t o all unit s) The binar y source data ( S) is conve rted into an equi valent BCD number and stored at the destinat ion device (D) .
FX Series Programmable Controlers Applied Instructio ns 5 5-23 Applied Instructions: FNC 00 - 09 FNC 10 - 19 FNC 20 - 29 FNC 30 - 39 FNC 40 - 49 FNC 50 - 59 FNC 60 - 69 FNC 70 - 79 FNC 80 - 89 FNC 90 - 99 FNC 110- 129 FNC 130- 139 FNC 140- 149 FNC 160- 169 FNC 170- 179 FNC 220- 249 1.
FX Series Programmable Controlers Applied Instructio ns 5 5-2 4 5.3 Arithmetic And Logical Operations - Functions 20 to 29 Contents: Pa g e ADD - Addi tion FNC 20 5-25 SUB - Subtraction FNC 21 5-26 MU.
FX Series Programmable Controlers Applied Instructio ns 5 5-25 5.3.1 ADD (FNC 20) Operation 1: (Applicabl e to all units) The data containe d within the source devices (S 1 ,S 2 ) is combine d and the tota l is stored at the specified dest ination device (D).
FX Series Programmable Controlers Applied Instructio ns 5 5-2 6 Operation 2: (Appli cabl e units: FX (2C) ) This function i s equivalent to FNC 120 EADD. When ‘floatin g point mode fla g ’ M8023 is activ e, i.e. ON, DADD and DADDP instructions can be used to perform floati n g point addit ions.
FX Series Programmable Controlers Applied Instructio ns 5 5-27 5.3.3 MUL (FNC 2 2) Operation 1: (Applicabl e to all units) The cont ents of the two source devices (S1, S2) are multiplie d to g ether and the result is stored at the desti natio n devi ce (D).
FX Series Programmable Controlers Applied Instructio ns 5 5-2 8 5.3.4 DIV (FNC 23) Operation 1: (Applicable to all units) The pr imar y sourc e (S 1 ) is di vided b y the secondar y source (S 2 ). The r esult is store d in the dest ination ( D). Note the nor mal rule s of al g ebra appl y .
FX Series Programmable Controlers Applied Instructio ns 5 5-29 5.3.5 INC (FNC 24) Operation: On ever y execution of the instruction the device specified a s t he desti nation D, has its curr ent val ue increment ed (in creased) b y a valu e of 1.
FX Series Programmable Controlers Applied Instructio ns 5 5-3 0 5.3.7 W AND (FNC 26) Operation: The bit pat terns of the two s ource devices are anal y zed (t he conte nts of S 2 is comp ared a g ainst the contents of S 1 ). The result of the lo g ical AND anal y sis is stored in the d estination dev ice (D).
FX Series Programmable Controlers Applied Instructio ns 5 5-31 5.3.9 WXOR (FNC 28) Operation: The bit pat terns of the two s ource devices are anal y zed (the contents of S 2 is compared a g ainst the contents of S 1 ). The result of t he lo g ical X OR anal y sis is stored in the d estination dev ice (D).
FX Series Programmable Controlers Applied Instructio ns 5 5-3 2 MEMO.
FX Series Programmable Controlers Applied Instructio ns 5 5-33 Applied Instructions: FNC 00 - 09 FNC 10 - 19 FNC 20 - 29 FNC 30 - 39 FNC 40 - 49 FNC 50 - 59 FNC 60 - 69 FNC 70 - 79 FNC 80 - 89 FNC 90 - 99 FNC 110- 129 FNC 130- 139 FNC 140- 149 FNC 160- 169 FNC 170- 179 FNC 220- 249 1.
FX Series Programmable Controlers Applied Instructio ns 5 5-3 4 5.4 Rotation And Shift - Functions 30 to 39 Contents: Pa g e ROR - Rotation Ri g ht FNC 30 5-35 ROL - Rotation Left FNC 31 5-35 RCR - Ro.
FX Series Programmable Controlers Applied Instructio ns 5 5-35 5.4.1 ROR (FNC 30) Operation: The bit patter n of the dest inati on device (D) is rotated n bit places to the ri g ht on ever y operation of the instruct ion. The status of the last bit rot ated is copied to the carr y fla g M8022.
FX Series Programmable Controlers Applied Instructio ns 5 5-3 6 5.4.3 RCR (FNC 32) Operation: The bit patter n of the destinatio n device (D)is r otated n bit places to the ri g ht on ever y operation of the instruct ion. The status o f the last bit rotate d is moved into the carr y fla g M8022.
FX Series Programmable Controlers Applied Instructio ns 5 5-37 5.4.5 SF TR (FNC 34) Operation: The instruct ion copies n 2 source devices to a bit stack of len g th n 1 . For ever y new ad dition o f n 2 bits, the existin g data within the bit stack is shifted n 2 bits to the ri g ht.
FX Series Programmable Controlers Applied Instructio ns 5 5-3 8 5.4.7 WSFR (FNC 36) Operation: The in structio n copies n 2 so urce devi ces to a word stack of len g th n 1 . For eac h addition o f n 2 words, the existin g data within t he word stack is shifted n 2 words to the ri g ht.
FX Series Programmable Controlers Applied Instructio ns 5 5-39 5.4.9 SFWR (FNC 38) Operation: The contents of the sourc e device (S) are written to the F IFO stack . The pos ition of inserti on into t he stack is automaticall y calculated b y the PLC.
FX Series Programmable Controlers Applied Instructio ns 5 5-4 0 5.4.10 SFRD (FNC 39) Operation: The sour ce device (S) identifies the head address of th e FIFO stack. Its conte nts reflect the last entr y point of data on to the FIFO stack, i.e. w here the end of the FIFO is (current position).
FX Series Programmable Controlers Applied Instructio ns 5 5-41 Applied Instructions: FNC 00 - 09 FNC 10 - 19 FNC 20 - 29 FNC 30 - 39 FNC 40 - 49 FNC 50 - 59 FNC 60 - 69 FNC 70 - 79 FNC 80 - 89 FNC 90 - 99 FNC 110- 129 FNC 130- 139 FNC 140- 149 FNC 160- 169 FNC 170- 179 FNC 220- 249 1.
FX Series Programmable Controlers Applied Instructio ns 5 5-4 2 5.5 Data Operation - Functions 40 to 49 Contents: Pa g e ZRST - Zone Re set FNC 40 5-43 DECO - Decode FNC 41 5-43 ENCO - Encode FNC 42 5.
FX Series Programmable Controlers Applied Instructio ns 5 5-43 5.5.1 ZRST (FNC 40) Operation: The ran g e of devices, inclusive of those specified as the two destinations are reset, i.e. for data devices the current value is set to 0 (zero) and for bit element s, the devices are turned OF F , i.
FX Series Programmable Controlers Applied Instructio ns 5 5-4 4 5.5.3 ENCO (FNC 42) Operation: The hi g hes t active bit wi thin the re adable ran g e has its location noted as a numbered of fset from the source head address (S). This is stored in the destination re g ister (D).
FX Series Programmable Controlers Applied Instructio ns 5 5-45 5.5.4 SUM (FNC 43) Operation: The numbe r of active (ON) bits within the source device (S), i.e. bits which h ave a value of “1" are counted . The count is stor ed in the des tination re g ister (D) .
FX Series Programmable Controlers Applied Instructio ns 5 5-4 6 5.5.6 MEAN (FNC 45) Operation: The ran g e of source data is defined b y operands Sand n. S i s the head addr ess of the sou rce data and n s pecifies the num ber of co nsecu tive sour ce devices used.
FX Series Programmable Controlers Applied Instructio ns 5 5-47 5.5.7 ANS (FNC 46) Operation: This instruction, when ener g ized, start s a timer (S) for n,100 msec .
FX Series Programmable Controlers Applied Instructio ns 5 5-4 8 5.5.9 SQR (FNC 48) Operation1: This instruction performs a square r o ot operation on so urce data ( S) and store s the resu lt at destinat ion device ( D).
FX Series Programmable Controlers Applied Instructio ns 5 5-49 5.5.10 FL T (FNC 49) Operation 1: When the float instruction is us ed without the float fla g (M8023 = O FF) the source data (S) is conver ted in to a n equivalen t value st ored in float format at the dest i nation device (D).
FX Series Programmable Controlers Applied Instructio ns 5 5-5 0 Point s to No te : a) When floati n g point numbers ar e used the zer o, borrow and carr y fla g s (M8020, M8021 and M8022 resp ective l y ) oper ate at t he foll owin g times; M8020 , Zero: is ac tivated w hen the result is Zero.
FX Series Programmable Controlers Applied Instructio ns 5 5-51 Applied Instructions: FNC 00 - 09 FNC 10 - 19 FNC 20 - 29 FNC 30 - 39 FNC 40 - 49 FNC 50 - 59 FNC 60 - 69 FNC 70 - 79 FNC 80 - 89 FNC 90 - 99 FNC 110- 129 FNC 130- 139 FNC 140- 149 FNC 160- 169 FNC 170- 179 FNC 220- 249 1.
FX Series Programmable Controlers Applied Instructio ns 5 5-5 2 5.6 High Speed Processing - Functions 50 to 59 Contents: Pa g e REF - Refresh FNC 50 5-53 REFF - Refr esh and filter ad j ust FNC 51 5-5.
FX Series Programmable Controlers Applied Instructio ns 5 5-53 5.6.1 REF (FNC 50) Operation: Standard PLC operatio n processes output and input status bet ween the END inst ruction of one pro g ram scan and step 0 of the followin g pro g ram scan. If an immediate update of the I/O device status is required the REF ins truction is u sed.
FX Series Programmable Controlers Applied Instructio ns 5 5-5 4 5.6.3 MTR (FNC 5 2) Operation: This instruction allows a selec tion of 8 consecutive input devices (head address S) t o be used mul tiple (n) ti mes, i.e. eac h ph y sical input h as more th an one, separate and quite different (D 1 ) si g nal bein g processed.
FX Series Programmable Controlers Applied Instructio ns 5 5-55 f) Because this ins truction uses a se ries of multiplexed si g nals it requires a certain amount of ‘hard wir in g ’ to op erate. The exampl e wirin g dia g ram to th e ri g ht depict s the circui t used if th e previous exa mple instruct ion was pro g rammed.
FX Series Programmable Controlers Applied Instructio ns 5 5-5 6 b) If more than one hi g h speed counter f unction is used f or a sin g le cou nter the selected fla g devices (D) shoul d be kept withi n 1 g roup of 8 devices, i.
FX Series Programmable Controlers Applied Instructio ns 5 5-57 5.6.6 HSZ (FNC 55) Operation 1 - Standard: (Applicabl e to all u nits) This instru ction works in exac tl y the same w a y as the stan dard ZC P (FN C1 1 ). The o nl y dif ferenc e is tha t the dev ice bein g compared is a hi g h speed counter (specified a s S 3 ).
FX Series Programmable Controlers Applied Instructio ns 5 5-5 8 The fo llowin g points should be read while stu d y in g the example on the r i g ht of the pa g e. Please note, all n ormal rules associated w ith hi g h spee d coun ter s still ap ply .
FX Series Programmable Controlers Applied Instructio ns 5 5-59 Operation 3 - Combined HSZ and PLSY Operation: (Applic able units: FX (2C) and FX 2N(C) ) Operation 3 allows the HSZ and PLSY i nstructions to be used to g ether as a cont rol loop. This operation is selected w hen the destination device (D) is assi g ned special M coil M8132.
FX Series Programmable Controlers Applied Instructio ns 5 5-6 0 5.6.7 SPD (FNC 56) Operation: The number of pulses r eceived at S 1 are counted and stored in D +1 ; this is the current count value. The count in g takes plac e ove r a set t ime fra me specified b y S 2 in msec.
FX Series Programmable Controlers Applied Instructio ns 5 5-61 5.6.8 PLSY (FNC 57) Operation: A speci fied quantit y of pulse s S 2 is output th rou g h device D at a spe cified frequenc y S 1 . This instruction is used in s ituations where the quantit y of outputs i s of primar y concern.
FX Series Programmable Controlers Applied Instructio ns 5 5-6 2 5.6.9 PWM (FNC 58) Operation: A continuo us pul se tr ain is output thro u g h device D when this ins truction is drive n. The char acteristics of the pulse are def ine d as: The distance, in time (msec), bet ween two identical parts of c onsecutive puls es (S 2 ).
FX Series Programmable Controlers Applied Instructio ns 5 5-63 5.6.10 PLSR (FNC 59) Operation: A speci fied quantit y of pulse s S 2 is output th rou g h device D . T he output frequ enc y is first ramped up in 10 st eps to the max imum frequen c y S 1 in accele ratio n time S 3 ms, then ramped down t o stop also in S 3 ms.
FX Series Programmable Controlers Applied Instructio ns 5 5-6 4 d) The output devi ce is limited to Y0 or Y1 onl y and should be transistor t y pe. e) This i nstruction can onl y be used once withi n a pro g ram scan. Al so, onl y one of either FNC 57 PLSY or FNC 59 PLSR can be in the active pro g ram at once.
FX Series Programmable Controlers Applied Instructio ns 5 5-65 Applied Instructions: FNC 00 - 09 FNC 10 - 19 FNC 20 - 29 FNC 30 - 39 FNC 40 - 49 FNC 50 - 59 FNC 60 - 69 FNC 70 - 79 FNC 80 - 89 FNC 90 - 99 FNC 110- 129 FNC 130- 139 FNC 140- 149 FNC 160- 169 FNC 170- 179 FNC 220- 249 1.
FX Series Programmable Controlers Applied Instructio ns 5 5-6 6 5.7 Handy Instructions - Functions 60 to 69 Contents: Pa g e IST - Ini tial State FNC 60 5-67 SER - Search FNC 61 5-69 ABSD - Absolute D.
FX Series Programmable Controlers Applied Instructio ns 5 5-67 5.7.1 IST (FNC 60) Operation: This instruction automatical l y sets up a multi-mode STL opera tin g s y stem. This consists of variati ons of ‘manual ’ and ‘automatic’ operation modes.
FX Series Programmable Controlers Applied Instructio ns 5 5-6 8 e) The avail able operatin g modes are sp lit into two ma in g roups, manual an d aut omatic.
FX Series Programmable Controlers Applied Instructio ns 5 5-69 5.7.2 SER (FNC 61) Operation: The SER instructi on s earches a defined data sta ck from he ad address S1, wi th a stack le n g th n. The data searched f or is specified in paramet er S2 and the resu lts of the sea rch are stored a t destinati on device D for 5 co nsecutive devic es.
FX Series Programmable Controlers Applied Instructio ns 5 5-7 0 5.7.3 ABSD (FNC 62) Operation: This instructio n g enerates a variet y of output patter ns (there are n number of address ed output s) in res ponse to th e current v alue of a sele cted counter , S2.
FX Series Programmable Controlers Applied Instructio ns 5 5-71 5.7.4 INCD (FNC 63) Operation: This inst ruction g enerates a sequence of sequenti al output patte rns (there ar e n number of addressed outputs) in response to the current valu e of a pair of selected count ers (S2, S2+1) .
FX Series Programmable Controlers Applied Instructio ns 5 5-7 2 5.7.5 TTMR (FNC 64) Operation: The duration of time that the TT MR instruction is ener g ized, is meas ured and stored in devi ce D +1 (as a c ount of 100ms per iods). The data va lue o f D +1 (in secs), multiplied b y the factor selected b y the operand n, is moved in to re g ister D.
FX Series Programmable Controlers Applied Instructio ns 5 5-73 5.7.7 AL T (FNC 66) Operation: The status of the destination de vice (D) is alternated on eve r y operation of the AL T instru ctio n. This means the status of each bit device will flip- flop between ON and OFF .
FX Series Programmable Controlers Applied Instructio ns 5 5-7 4 Points t o note: a) FX users ma y set the operati on mode of the RAMP instruction b y controll in g the state of special au xiliar y rela y M80 26. Wh en M8 026 is OFF , the RAMP instruction will b e in repeat mode.
FX Series Programmable Controlers Applied Instructio ns 5 5-75 5.7.9 ROTC (FNC 68) Operation: The ROTC i nstructi on is use d to aid the trackin g and positiona l moveme nt of th e rotar y table as it moves to a specified de sti nation. Points t o note: a) This i nstruction ha s man y automaticall y de- fined devic es.
FX Series Programmable Controlers Applied Instructio ns 5 5-7 6 d) When the ‘ze ro point’ input (D+2) is r eceived the contents of device S+0i s reset to ‘0’ (zer o).
FX Series Programmable Controlers Applied Instructio ns 5 5-77 5.7.10 SORT (FNC 69) Operation: This instruction construc ts a data table of m 1 record s with m 2 fields havin g a start or head address of S. Then the d ata in f ield nis sorte d in to numerical orde r while retainin g each individ ual reco rds i nte g rit y .
FX Series Programmable Controlers Applied Instructio ns 5 5-7 8 MEMO.
FX Series Programmable Controlers Applied Instructio ns 5 5-79 Applied Instructions: FNC 00 - 09 FNC 10 - 19 FNC 20 - 29 FNC 30 - 39 FNC 40 - 49 FNC 50 - 59 FNC 60 - 69 FNC 70 - 79 FNC 80 - 89 FNC 90 - 99 FNC 110- 129 FNC 130- 139 FNC 140- 149 FNC 160- 169 FNC 170- 179 FNC 220- 249 1.
FX Series Programmable Controlers Applied Instructio ns 5 5-8 0 5.8 External FX I/O Devices - Functions 70 to 79 Contents: Pa g e TKY - T en Ke y Input FNC 70 5-81 HKY - Hexadecimal Input FNC 71 5-82 .
FX Series Programmable Controlers Applied Instructio ns 5 5-81 5.8.1 TKY (FNC 70) Operation: This instruction ca n read from 10 co nsecutive devices(S +0 to S +9 ) and w ill store an enter ed num e ric st rin g in d evice D 1 . Points t o note: a) When a source device becomes active its associat ed destinatio n (bit) device D 2 also becomes active.
FX Series Programmable Controlers Applied Instructio ns 5 5-8 2 5.8.2 HKY (FNC 71) Operation 1 - Standard: This instruc tion cre ates a multiplex of 4 outp uts (D 1 ) and 4 inputs (S) to read in 16 dif ferent devices. Decimal va lues of 0 to 9 ca n be stored while 6 furt her function fla g s ma y be se t.
FX Series Programmable Controlers Applied Instructio ns 5 5-83 e) The HKY instructi on ma y onl y be used ONCE . f) Normal operatio n requires 8 scans t o read the ke y inputs. T o achieve a stea d y and repea table performance, constant scan mode s hould be used, i.
FX Series Programmable Controlers Applied Instructio ns 5 5-8 4 b) When n= 2, two se ts of switches are read. Thi s confi g uration requ ires 8 consecutive input s taken from the hea d address specified i n oper and S. The data from the fir st set of switches, i.
FX Series Programmable Controlers Applied Instructio ns 5 5-85 5.8.5 SEGL (FNC 74) Operation: This instruction takes a source decimal value (S) and writes it to a set of 4 multiplexed, outputs (D ).
FX Series Programmable Controlers Applied Instructio ns 5 5-8 6 d) If t he SEGL instruction is sus pended durin g mid-operation, when it is restart ed it will start from the be g innin g of its c y cle and n ot from its last status achieved. e) The SEGL inst ruction ma y be used ONCE on FX controllers with CPU versions lower than 3.
FX Series Programmable Controlers Applied Instructio ns 5 5-87 5.8.6 AR WS (FNC 75) Operation: This instructi on displa y s the cont ents of a sin g le data device D 1 on a set of 4 di g it, seven se g ment displa y s.
FX Series Programmable Controlers Applied Instructio ns 5 5-8 8 5.8.7 ASC (FNC 76) Operation: The source data strin g S co ns i s ts of up to 8 character s taken from the p rintable ASCII character (Char) set. If less t han 8 Char are used, the dif ference is made up with null Char (ASCII 00).
FX Series Programmable Controlers Applied Instructio ns 5 5-89 5.8.8 PR (FNC 77) Operation: Source data (stored as AS CII values) is read b y te b y b y te from the sourc e data devices. Each b y te is mapped directl y to the first 8 consecutive destination devices D +0 to D +7 ).
FX Series Programmable Controlers Applied Instructio ns 5 5-9 0 5.8.9 FROM (FNC 78) Operation: The FR OM instr uction re ads n wo rds of d ata startin g from the buffer memor y address m 2 of t he spe.
FX Series Programmable Controlers Applied Instructio ns 5 5-91 e) Users of FX PL C’ s have the optio n of allow in g interrupts to occur imm edia tel y , i.e. durin g the opera tion o f the FROM/T O inst ructions or to wait until t he compl etion of the current FROM/T O instruct ion.
FX Series Programmable Controlers Applied Instructio ns 5 5-9 2 MEMO.
FX Series Programmable Controlers Applied Instructio ns 5 5-93 Applied Instructions: FNC 00 - 09 FNC 10 - 19 FNC 20 - 29 FNC 30 - 39 FNC 40 - 49 FNC 50 - 59 FNC 60 - 69 FNC 70 - 79 FNC 80 - 89 FNC 90 - 99 FNC 110- 129 FNC 130- 139 FNC 140- 149 FNC 160- 169 FNC 170- 179 FNC 220- 249 1.
FX Series Programmable Controlers Applied Instructio ns 5 5-9 4 5.9 External FX Serial Devices - Functions 80 t o 89 Contents: Pa g e RS - RS Communicati ons FNC 80 5-95 PRUN - FX 2 -40AP Parallel Run.
FX Series Programmable Controlers Applied Instructio ns 5 5-95 5.9.1 RS (FNC 80) Operation: This inst ruction performs the direct control of communicati ons over FX and FX 0N comm unic ation adapters whi ch connect to the left hand port of the Main Processin g Unit, i.
FX Series Programmable Controlers Applied Instructio ns 5 5-9 6 5.9.2 RUN (FNC 81) Operation: This inst ructio n is used with the FX pa rallel link adapter s. It allo ws source da ta to be mov ed into the bit t ransmission area. The actual control of the parall el link communicat ion is b y special M fla g s.
FX Series Programmable Controlers Applied Instructio ns 5 5-97 c) The PRUN instruct ion enables data to be moved into t he bit transmission ar ea or out of the (bit) data received area. The P RUN instruction dif fers from t h e move statement in that it operates in oc tal.
FX Series Programmable Controlers Applied Instructio ns 5 5-9 8 5.9.3 ASCI (FNC 82) Operation: This ins truction reads n hexad ecima l data char acters from head sourc e addres s (S) an d converts them in to the equivalent ASCII code. This is then stored at the destination (D) for n num ber of b y tes.
FX Series Programmable Controlers Applied Instructio ns 5 5-99 5.9.4 HEX (FNC 83) Operation: This instr uction re ads n AS CII data b y tes from head source address (S) and converts them in to the equivalent Hexadeci mal character . This is then stored at the dest i nation (D) for n number of b y tes.
FX Series Programmable Controlers Applied Instructio ns 5 5-100 5.9.5 CCD (FNC 84) Operation: This instru ction looks at a b y te (8 bit) stack of data from head address (S)for n b y tes and checks the vertical bi t pattern for parit y and sums the total data stack.
FX Series Programmable Controlers Applied Instructio ns 5 5-101 5.9.6 VRRD (FNC 85) Operation: The ident ified volume ( S ) on the FX-8A V is read as an ana lo g input. The analo g data is in an 8 bit format, i.e. values fr om 0 to 255 are readable . The read data i s stored at the des tination device identified under oper and D.
FX Series Programmable Controlers Applied Instructio ns 5 5-102 5.9.8 PID (FNC 88) Operation: This instruction t akes a current value (S 2 ) and compares it to a pred efi ned s et value (S 1 ).
FX Series Programmable Controlers Applied Instructio ns 5 5-103 PID Equation s PV nf = P V n + α( PV nf-1 - PV n ) EV n = the cur rent Erro r V alu e D n = the Derivative V alue EV n-1 = the p revio .
FX Series Programmable Controlers Applied Instructio ns 5 5-104 PID setup parameters; S 3 The PI D setup p arameter s are co ntained i n a 25 re g ist er data stac k. Some of thes e devices require d ata input from the user , some are reserved f or the internal operation and some r eturn output da ta from the PI D operatio n.
FX Series Programmable Controlers Applied Instructio ns 5 5-105 Configuring the PID loop The PID l oop can be co nfi g ured to o ffer v ariations on PID control. These are as f ollows: It should be noted that in all situations there must be a propor ti onal or ‘P’ element to the loop.
FX Series Programmable Controlers Applied Instructio ns 5 5-106 Effecti ve use of the input filter α S 3 +2 T o prevent the PID in structi on from reac tin g immediatel y and wildl y to an y errors o.
FX Series Programmable Controlers Applied Instructio ns 5 5-107 Example PID Settings The partial pro g ram show n at below d emonstrates which parameters m ust be set for the functio nin g of t he FX2N. The f irst step s ets the user v alues for S 3 +0 to S 3 +6.
FX Series Programmable Controlers Applied Instructio ns 5 5-108 MEMO.
FX Series Programmable Controlers Applied Instructio ns 5 5-109 Applied Instructions: FNC 00 - 09 FNC 10 - 19 FNC 20 - 29 FNC 30 - 39 FNC 40 - 49 FNC 50 - 59 FNC 60 - 69 FNC 70 - 79 FNC 80 - 89 FNC 90 - 99 FNC 110- 129 FNC 130- 139 FNC 140- 149 FNC 160- 169 FNC 170- 179 FNC 220- 249 1.
FX Series Programmable Controlers Applied Instructio ns 5 5-110 5.10 External F2 Un its - Functions 90 to 99 Contents: Pa g e MNET - F-16N P , Melsec Net Mini FNC 90 5-1 1 1 ANRD - F 2 -6A, Analo g Re.
FX Series Programmable Controlers Applied Instructio ns 5 5-111 5.10.1 MNET (FNC 90) Operation: The MNE T instruction is used for com municatin g bit s tat us si g nals between an FX PLC and an F- 16NP/NT Melsec Net Mini inter face.
FX Series Programmable Controlers Applied Instructio ns 5 5-112 5.10.3 ANWR (FNC 92) Operation: The ANWR instruction is used to write output data to channel n of an F 2 -6A analo g module.
FX Series Programmable Controlers Applied Instructio ns 5 5-113 c) Operand D 2 stores th e F 2 -32R M status in form at ion. d) For mor e information please see pa g e 9-4. 5.10.5 RMMR (FNC 94) Operation: This instruc tion sends output dis abl e data to an F 2 - 32RM p ro g rammable CAM swit ch from an FX PLC.
FX Series Programmable Controlers Applied Instructio ns 5 5-114 5.10.6 RMRD (FNC 95) Operation: This ins truct ion read s the curr ent st atus of the outputs of an F 2 -32RM pro g rammable CAM swit ch to an FX PLC.
FX Series Programmable Controlers Applied Instructio ns 5 5-115 5.10.8 BLK (FNC 97) Operation: The BLK instruc tion is us ed to de si g nate a bl ock number (S 1)to an F 2 -3 0GM pu lse output un it throu g h a controllin g FX PLC.
FX Series Programmable Controlers Applied Instructio ns 5 5-116 5.10.9 MCDE (FNC 98) Operation: This instruction allows an FX PLC to rea d the machine cod es of a n F 2 -30 GM. There are 64 machine co de points in the F 2 -30GM. These ar e numbered in octal, i.
FX Series Programmable Controlers Applied Instructio ns 5 5-117 Applied Instructions: FNC 00 - 09 FNC 10 - 19 FNC 20 - 29 FNC 30 - 39 FNC 40 - 49 FNC 50 - 59 FNC 60 - 69 FNC 70 - 79 FNC 80 - 89 FNC 90 - 99 FNC 110- 129 FNC 130- 139 FNC 140- 149 FNC 160- 169 FNC 170- 179 FNC 220- 249 1.
FX Series Programmable Controlers Applied Instructio ns 5 5-118 5.1 1 Floating Point 1 & 2 - Functions 1 1 0 to 129 Contents: Floating Point 1 Pa g e ECMP - Floa t Compare FNC 1 10 5-1 19 EZCP - F.
FX Series Programmable Controlers Applied Instructio ns 5 5-119 5.1 1.1 ECMP (FNC 1 10) Operation: The data of S 1 is comp ared to the data of S 2 . The result is indi cate d b y 3 bit devices spec ified with the head ad dress entered as D.
FX Series Programmable Controlers Applied Instructio ns 5 5-120 5.1 1.3 EBCD (FNC 1 18) Operation: Converts a floati n g point value at S into sepa rat e mantissa and exponent part s at D and D +1 (scie n tif ic fo rm at). Points t o note: a) The in struction must be double word format.
FX Series Programmable Controlers Applied Instructio ns 5 5-121 5.1 1.5 EADD (FNC 120) Operation: The floa tin g point values stored in the s ource devices S 1 and S 2 are al g ebraicall y added and the result stor ed in the destin ati on device D. Points t o note: a) The inst ruction must use the double word fo rmat; i.
FX Series Programmable Controlers Applied Instructio ns 5 5-122 5.1 1.6 EAUB (FNC 121) Operation: The fl oatin g point value of S 2 is subtract ed from the floatin g point value of S 1 and the result stored in destinat ion device D. Points t o note: All points of the EADD instruction appl y , except that a subt raction is performed.
FX Series Programmable Controlers Applied Instructio ns 5 5-123 5.1 1.8 EDIV (FNC 123) Operation: The fl oatin g point value of S 1 is divided b y the floatin g point value of S 2 . The result of the division is st ored in D as a fl oatin g point va lue.
FX Series Programmable Controlers Applied Instructio ns 5 5-124 5.1 1.10 INT (FNC 129 ) Operation: The flo atin g point value of S is rounded down to the nearest i nte g er value and stored in normal binar y format in D. Points t o note: a) The source dat a is alwa y s a double (32 bit) word; a float in g point value.
FX Series Programmable Controlers Applied Instructio ns 5 5-125 Applied Instructions: FNC 00 - 09 FNC 10 - 19 FNC 20 - 29 FNC 30 - 39 FNC 40 - 49 FNC 50 - 59 FNC 60 - 69 FNC 70 - 79 FNC 80 - 89 FNC 90 - 99 FNC 110- 129 FNC 130- 139 FNC 140- 149 FNC 160- 169 FNC 170- 179 FNC 220- 249 1.
FX Series Programmable Controlers Applied Instructio ns 5 5-126 5.12 T rigonometry - FNC 130 to FNC 139 Contents: Floating poin t 3 Pa g e SIN - Sine FNC 130 5-127 COS - Cosine FNC 131 5-128 T AN - T an g ent FNC 132 5-128 - Not A vail able FNC 1 33 to 139 Symbols list: D - Destination device.
FX Series Programmable Controlers Applied Instructio ns 5 5-127 5.12.1 SIN (FNC 130) Contents: This inst ruction performs the mat hematical SIN operation on the floatin g point value in S. The result is stor ed in D. Points t o note: a) The i nstruction must u se the double word f ormat: i.
FX Series Programmable Controlers Applied Instructio ns 5 5-128 5.12.2 COS (FNC 131) Contents: This inst ruction performs the math ematical COS operation on the floatin g point value in S. The result is stor ed in D. Points t o note: All the points for the SIN instruction appl y , except tha t COS is ca lcu lated.
FX Series Programmable Controlers Applied Instructio ns 5 5-129 Applied Instructions: FNC 00 - 09 FNC 10 - 19 FNC 20 - 29 FNC 30 - 39 FNC 40 - 49 FNC 50 - 59 FNC 60 - 69 FNC 70 - 79 FNC 80 - 89 FNC 90 - 99 FNC 110- 129 FNC 130- 139 FNC 140- 149 FNC 160- 169 FNC 170- 179 FNC 220- 249 1.
FX Series Programmable Controlers Applied Instructio ns 5 5-130 5.13 Data Operations 2 - FNC 140 to FN C 149 Contents: Pa g e - Not Available FNC 140 to 146 SW AP - Float to Scientif ic FNC 147 5-131 - Not Available FNC 148 to 149 Symbols list: D - Destination device.
FX Series Programmable Controlers Applied Instructio ns 5 5-131 5.13.1 SW AP (FNC 147) Contents: The upper b y te and the lower b y te of th e source device a re swapped. This instruction i s equivalent to oper ation 2 of FNC 17 XCH (see pa g e 5-21).
FX Series Programmable Controlers Applied Instructio ns 5 5-132 MEMO.
FX Series Programmable Controlers Applied Instructio ns 5 5-133 Applied Instructions: FNC 00 - 09 FNC 10 - 19 FNC 20 - 29 FNC 30 - 39 FNC 40 - 49 FNC 50 - 59 FNC 60 - 69 FNC 70 - 79 FNC 80 - 89 FNC 90 - 99 FNC 110- 129 FNC 130- 139 FNC 140- 149 FNC 160- 169 FNC 170- 179 FNC 220- 249 1.
FX Series Programmable Controlers Applied Instructio ns 5 5-134 5.14 Real T ime Cloc k Control - FNC 160 t o FNC 169 Contents: Pa g e TCMP - Ti me Compare FNC 160 5-135 TZCP - T ime Zone Compare FNC 1.
FX Series Programmable Controlers Applied Instructio ns 5 5-135 5.14.1 TCMP (FNC 160) Contents: S 1 , S 2 and S 3 represent hours, minutes and seconds res pectivel y . This ti me is compared to the time valu e in the 3 data devices speci fied b y the head address S.
FX Series Programmable Controlers Applied Instructio ns 5 5-136 5.14.2 TZCP (FNC 161) Contents: S 1 , S 2 and S rep resent time values. Ea ch specif y in g the head address of 3 data devices . S is compared to t he time peri od defined b y S1 and S2. The resul t is indicat ed in the 3 bi t devices s peci fied b y the head address D.
FX Series Programmable Controlers Applied Instructio ns 5 5-137 5.14.3 T ADD (FNC 162) Contents: Each of S 1 , S 2 and D specif y the head address of 3 data devices t o be used a time value. The time v alue in S 1 is added t o the time value i n S 2 , the result is stored t o D as a new ti me value.
FX Series Programmable Controlers Applied Instructio ns 5 5-138 5.14.4 TSUB (FNC 163) Contents: Each of S 1 , S 2 and D specif y the head address of 3 data devices t o be used a time value. The time value in S 1 is subtracted from the time valu e in S 2 , the result is stor ed to D as a new time val ue.
FX Series Programmable Controlers Applied Instructio ns 5 5-139 5.14.5 TRD (FNC 166) Contents: The curre nt time and dat e of t he real time c lock ar e read and stored in the 7 data devices specified b y the head address D. The 7 devices are set as follo ws : Points t o note: The y ear i s read as a two d i g it nu mber .
FX Series Programmable Controlers Applied Instructio ns 5 5-140 5.14.6 TWR (FNC 167) Contents: The 7 data devi ces specified with the head ad- dress S are used to set a new cur rent value of the real time clock. The seven devi ces Points t o note: This instruction remov es the need to use M8015 durin g real time clock settin g .
FX Series Programmable Controlers Applied Instructio ns 5 5-141 Applied Instructions: FNC 00 - 09 FNC 10 - 19 FNC 20 - 29 FNC 30 - 39 FNC 40 - 49 FNC 50 - 59 FNC 60 - 69 FNC 70 - 79 FNC 80 - 89 FNC 90 - 99 FNC 110- 129 FNC 130- 139 FNC 140- 149 FNC 160- 169 FNC 170- 179 FNC 220- 249 1.
FX Series Programmable Controlers Applied Instructio ns 5 5-142 5.15 Gray Cod es - FNC 17 0 to FNC 17 9 Contents: Pa g e GRY - Decim al to Gra y Code FNC 170 5-143 GBIN - Gra y Code to Decimal FNC 171 5-143 - Not A vail able FNC 1 72 to 177 Symbols list: D - Destination device.
FX Series Programmable Controlers Applied Instructio ns 5 5-143 5.15.1 GR Y (FNC 170) Operation: The bina r y inte g er value in S is converted t o the GRA Y CODE equivalent and s tored at D. Point s to No te : The nature of g ra y code numbers al lows numeric va lues to be qui ckl y output withou t the need for a strobin g si g nal.
FX Series Programmable Controlers Applied Instructio ns 5 5-144 MEMO.
FX Series Programmable Controlers Applied Instructio ns 5 5-145 Applied Instructions: FNC 00 - 09 FNC 10 - 19 FNC 20 - 29 FNC 30 - 39 FNC 40 - 49 FNC 50 - 59 FNC 60 - 69 FNC 70 - 79 FNC 80 - 89 FNC 90 - 99 FNC 110- 129 FNC 130- 139 FNC 140- 149 FNC 160- 169 FNC 170- 179 FNC 220- 249 1.
FX Series Programmable Controlers Applied Instructio ns 5 5-146 5.16 In line Comparis ons - FNC 220 to FNC 249 Contents: Pa g e LD - LoaD compare FNC 224 to 230 5-1 19 AND - AN D compare FNC 232 to 238 5-120 OR - OR compare FNC 240 to 246 5-120 Symbols list: D - Destination device.
FX Series Programmable Controlers Applied Instructio ns 5 5-147 5.16.1 LD compare (FNC 224 t o 230) Operation: The value of S 1 and S 2 are tested accordin g to the comparison of the instruction. If the comparison i s true then the LD contact is acti ve.
FX Series Programmable Controlers Applied Instructio ns 5 5-148 5.16.2 AND compare (FNC 232 t o 238) Operation: The value of S 1 and S 2 are tested accordin g to the comparison of the instruction. If the comparison is tru e then the AND contact is active.
FX Series Programmable Controlers Applied Instructio ns 5 5-149 5.16.3 OR compare (FNC 240 t o 246) Operation: The value of S 1 and S 2 are tested accordin g to the comparison of the instruction. If the comparison i s true then the OR contac t is acti ve.
FX Series Programmable Controlers Applied Instructio ns 5 5-150 MEMO.
1 Introduction 2 Basic Program Instructions 3 STL Progr ammin g 4 Devices in Detail 5 App lied Ins truc tion s 6 Diagnostic Devices 7 Instruction Execution Ti mes 8 P LC Device T ables 9 Assigning Sys.
FX Series Programmable Controllers Diagnostic Devices 6 Chapter Contents 6. Dia g nostic Devices ..................... ........................ ................................... 6-1 6.1 PC Status ( M8000 to M8009 and D8000 to D8009) ................
Diagnostic Devices 6 6-1 6. Diagnostic Devices The followin g special devices are us ed b y the PLC to hi g hli g ht the c urrent operation al status and iden tif y an y faults or erro rs that ma y be occu rrin g .
FX Series Programmable Controller Diagnostic Devices 6 6-2 6.1 PLC Status (M80 00 to M800 9 and D8000 to D 8009) Diagnostic Device O peration Dia gnostic Device Operati on M8000 ( ) RUN monitor NO con.
FX Series Programmable Controller Diagnostic Devices 6 6-3 6.2 Cl ock Dev ices ( M8010 to M8019 and D8010 to D8019) For symbol key see pa g e 6-1. Note 2: • For FX 0 , FX 0S PLC’ s and FX0N PLC’s not fitted with a RTC, the re g ister D8013 represents the value read from the first se ttin g ‘pot’ in msec, ran g e (0 to 255).
FX Series Programmable Controller Diagnostic Devices 6 6-4 6.3 Operation Flags For symbol key see pa g e 6-1. General note regarding input filters • The settin g s fo r input fi lters onl y appl y to the main processin g units which use 24V DC inputs.
FX Series Programmable Controller Diagnostic Devices 6 6-5 6.4 PLC Operation Mo de (M8030 to M8 039 and D8030 to D8039) For symbol key see pa g e 6-1. Diagnostic Device Operatio n Diagnostic Devic e Oper ation M8030 ( ) Batter y LED OFF (No t FX 0(S ), FX 0N ) Batter y volta g e is low but BA TT .
FX Series Programmable Controller Diagnostic Devices 6 6-6 6.5 Step Ladder (STL) Flags (M8040 to M8 049 and D8040 to D8049) For symbol key see pa g e 6-1.
FX Series Programmable Controller Diagnostic Devices 6 6-7 6.6 Interrupt Control F lags (M8050 to M805 9 and D8050 to D8059) For symbol key see pa g e 6-1.
FX Series Programmable Controller Diagnostic Devices 6 6-8 6.7 Error Dete ction Devices (M8060 to M8 06 9 and D806 0 to D6069 ) Diagnostic Device Operat ion Diagnostic Devic e Oper ation Detection PROG.
FX Series Programmable Controller Diagnostic Devices 6 6-9 For symbol k ey see pa g e 6-1. • Please see the foll owi n g pa g e for the notes referenced in this table. 6.8 Link And Specia l Operation Devic es (M8070 t o M8099 and D 8070 to D 8099) For symbol key see pa g e 6-1.
FX Series Programmable Controller Diagnostic Devices 6 6-1 0 6.9 Misce llaneous Devices (M8100 to M81 1 9 a nd D810 0 to D81 1 9) 6.10 Communication Adap ter Device s, i.
FX Series Programmable Controller Diagnostic Devices 6 6-11 6.1 1 High Speed Zone Compare T able Comparison Flag s (M8130 to M813 9 and D8130 to D8139) For symbol key see pa g e 6-1 Diagnostic Device .
FX Series Programmable Controller Diagnostic Devices 6 6-1 2 6.12 Misce llaneous Devic es (M8160 to M8199) For symbol key see pa g e 6-1. Diagnostic Device O peration Dia gnostic Device Operatio n M81.
FX Series Programmable Controller Diagnostic Devices 6 6-13 6.13 Inde x Regist er s (D8180 to D819 9) Diagnostic Device Operatio n Diagnostic Devic e Operat ion D8180 ( ) Reserved D819 0 ( ) Z5 index .
FX Series Programmable Controller Diagnostic Devices 6 6-1 4 6.14 Up/Down Counter Control (M82 00 to M823 4 and M820 0 to D8234 ) For symbol key see pa g e 6-1. 6.15 High Speed Counter Control (M8235 to M8 255 and D8235 to D8255) For symbol key see pa g e 6-1.
FX Series Programmable Controller Diagnostic Devices 6 6-15 6.16 Error Code T ables Error Detect ion Device Stored Err or Number Associat ed Meaning Action D8061 PLC Hardw are error 0000 N o error Che.
FX Series Programmable Controller Diagnostic Devices 6 6-1 6 Error D et ection Device Stored Er ror Number Associated M eaning Action D8064 Parame te r error 0000 No error STOP the PLC, select the par.
FX Series Programmable Controller Diagnostic Devices 6 6-17 Continued on next pa g e... Error D et ection Device Stored Er ror Number Associated M eaning Action D8066 Circuit error 0000 No error A circui t error occurs i f a combina tion of instr uc- tion s is inc orrect or badl y specifi ed.
FX Series Programmable Controller Diagnostic Devices 6 6-1 8 Error D et ection Device Stored Er ror Number Associated M eaning Action D8066 Circuit error (FX 2N(C) only) 6610 LD , LDI is us ed co ntinuou sl y 9 or more time s in succes sion A circui t error occurs i f a combina tion of instr uc- tion s is inc orrect or badl y specifi ed.
FX Series Programmable Controller Diagnostic Devices 6 6-19 Error D et ection Device Stored Er ror Number Associated M eaning Action D8067 Operat ion error 0000 No error These error occur dur in g the execution of an oper- ation. When an opera tion error occurs, S TOP the PL C enter pro g rammi n g ode and cor rect the fault.
FX Series Programmable Controller Diagnostic Devices 6 6-2 0 MEMO.
1 Introduction 2 Basic Program Instructions 3 STL Progr ammin g 4 Devices in Detail 5 App lied Ins truc tion s 6 Diagnostic Devices 7 Instruction Execution Ti mes 8 P LC Device T ables 9 Assigning Sys.
FX Series Programmable Controllers Instruction Execution T imes 7 Chapter Contents 7. Execu tion Times And Instructiona l Hierarch y ............................. ........... 7-1 7.1 B asic In struc tion s ... .... ..... .... ..... .... .... ..... ...
Execution Times And Instructional Hierarchy 7 7-1 7. Execution Time s And Instructional Hierarchy 7.1 Basic Instruc tions carried on over the pa g e.... .. Mnemonic Object Devices St eps Execution Time in µ sec FX 0 , FX 0S FX 0N FX (< V er 3.07) FX (> V er 3.
FX Series Programmable Controllers Execut ion Times And Instruct ional Hierarchy 7 7-2 Note 1: • “n” in the for mulae to cal culate the ON/OFF execution time, r efers to the number of STL instruct ions at the current parallel/mer g e branch. T hus the value o f “n” will fall in the ran g e 1 to 8.
FX Series Programmable Controllers Execut ion Times And Instruct ional Hierarchy 7 7-3 7.2 Applied Instructions See end of section for notes... Mne- monic 16/32 Bit Execu tion Ti me in µ sec FX 0 , FX 0S FX 0N FX (< V er 3.07) FX (> V er 3.07) , FX 2C FX 2N(C) ON OFF ON OFF ON OFF P ON OFF 2nd FNC ON PO N O F F P 00 CJ 16 19 .
FX Series Programmable Controllers Execut ion Times And Instruct ional Hierarchy 7 7-4 See end of section for notes... Mne- monic 16/32 Bit Execution Time in µ sec FX 0 , FX 0S FX 0N FX (< V er 3.07) FX (> V er 3.07) , FX 2C FX 2N(C) ON OFF ON OFF ON OFF P ON OFF 2nd FNC ON PO N O F F P 20 ADD 16 69.
FX Series Programmable Controllers Execut ion Times And Instruct ional Hierarchy 7 7-5 See end of section for notes... Mne- monic 16/32 Bit Execution Time in µ sec FX 0 , FX 0S FX 0N FX (< Ver 3.07) FX (> V er 3.07) , FX 2C FX 2N(C) ON OFF ON OFF ON OFF P ON OFF 2nd FNC ON PO N O F F P 36 WSFR 2 16 Function No t Available 218.
FX Series Programmable Controllers Execut ion Times And Instruct ional Hierarchy 7 7-6 See end of section for notes... Mne- monic 16/32 Bit Execution Time in µ sec FX 0 , FX 0S FX 0N FX (< Ver 3.07) FX (> V er 3.07) , FX 2C FX 2N(C) ON OFF ON OFF ON OFF P ON OFF 2nd FNC ON PO N O F F P 51 REFF 9 16 Function No t Available 56 .
FX Series Programmable Controllers Execut ion Times And Instruct ional Hierarchy 7 7-7 See end of section for notes... Mne- monic 16/32 Bit Execution Time in µ sec FX 0 , FX 0S FX 0N FX (< Ver 3.07) FX (> V er 3.07) , FX 2C FX 2N(C) ON OFF ON OFF ON OFF P ON OFF 2nd FNC ON PO N O F F P 70 TKY 16 Function No t Available 245.
FX Series Programmable Controllers Execut ion Times And Instruct ional Hierarchy 7 7-8 See end of section for notes... Mne- monic 16/32 Bit Execution Time in µ sec FX 0 , FX 0S FX 0N FX (< Ver 3.07) FX (> V er 3.07) , FX 2C FX 2N(C) ON OFF ON OFF ON OFF P ON OFF 2nd FNC ON PO N O F F P 88 PID 16 Function Not Avai lable 407 109 - 155.
FX Series Programmable Controllers Execut ion Times And Instruct ional Hierarchy 7 7-9 See end of section for notes... Mne- monic 16/32 Bit Execution Time in µ sec FX 0 , FX 0S FX 0N FX (< Ver 3.07) FX (> V er 3.07) , FX 2C FX 2N(C) ON OFF ON OFF ON OFF P ON OFF 2nd FNC ON PO N O F F P 127 ESQR 32 Function Not Available 152.
FX Series Programmable Controllers Execut ion Times And Instruct ional Hierarchy 7 7-1 0 1: • These inst ructions req uire NO preliminar y contact devices such as LD, AND, OR etc. 2: • Where “ n” is r eferred to t his identi fies the quantit y of re g isters to be manipulat ed.
FX Series Programmable Controllers Execut ion Times And Instruct ional Hierarchy 7 7-11 14: • Where " n" is r eferred t o thi s ident ifi es the number of elements in a st ack, f or 16 bi t operati on n has a maximum of 256. However , for 32 bit operation n has a maximum of 128.
FX Series Programmable Controllers Execut ion Times And Instruct ional Hierarchy 7 7-1 2 7.3 Hierarchical Relationships Of Basi c Progr am Instruc tions The followin g table identifies an 'i nclusive relati onship'.
FX Series Programmable Controllers Execut ion Times And Instruct ional Hierarchy 7 7-13 The followin g table identifies an 'overlap-pin g relati onship'.
FX Series Programmable Controllers Execut ion Times And Instruct ional Hierarchy 7 7-1 4 7.4 Batch Processing This is the s y stem us ed b y all members of the FX famil y of PLC’ s. The basic co ncept is that there are three s ta g es to an y pro g ram scan.
FX Series Programmable Controllers Execut ion Times And Instruct ional Hierarchy 7 7-15 b) Data Memor y This memor y are a contains, as the title su gg ests, all of the data values ass ociated with: data re g isters (normal an d special), Index re g isters, current timer values, retentive timer values ( if available) and current counter values.
FX Series Programmable Controllers Execut ion Times And Instruct ional Hierarchy 7 7-1 6 7.6 Limits Of I nstruction Usage 7.6.1 Instruct ions Which Can Onl y Be Used Once In The Main Program Are a The followin g instructions ca n onl y be use d once in t he main pro g ram area .
1 Introduction 2 Basic Program Instructions 3 STL Progr ammin g 4 Devices in Detail 5 App lied Ins truc tion s 6 Diagnostic Devices 7 Instruction Execution Ti mes 8 PLC Device T ables 9 Assigning Syst.
FX Series Programmable Controllers PLC Device Tables 8 Chapter Contents 8. PC Dev ice Tables ....................... ........................ ................................... 8-1 8.1 Perfor mance Specification Of The FX 0 And FX 0S ....... .... ...
PLC Device Tables 8 8-1 8. PLC Device T ables 8.1 Perfo rmance Spec ification Of The FX 0 And FX 0S continued over the pa g e.... Item Specification Re marks Oper at ion con trol met hod C y clic oper.
FX Series Programmable Controllers PLC Device Tables 8 8-2 8.2 Perfo rmance Spec ification Of The FX 0N continued over the pa g e.... Item Specification Re marks Data re g isters (D) Genera l 32 point.
FX Series Programmable Controllers PLC Device Tables 8 8-3 Item Specification Re marks Stat e rela y s (S coi ls) La tched 128 points S0 to S1 27 Initial 10 points (subse t) S0 to S9 Ti m e r s ( T ) 100 msec Ran g e: 0 to 3, 276.7 s ec 63 poin ts T0 to T62 10 msec Ran g e: 0 to 327 .
FX Series Programmable Controllers PLC Device Tables 8 8-4 8.3 Perfo rmance Spec ification Of The FX (CPU versions 2.0 t o 3.06) continued over the pa g e.
FX Series Programmable Controllers PLC Device Tables 8 8-5 Item Specification Re marks Hi g h sp eed counter s (C) 1 phase Ran g e: -2,14 7,483,6 48 to +2,147,48 3,647 c ounts General r ule: Select c ounter c om- binati ons with a co mbined counti n g frequenc y of 20kHz or less .
FX Series Programmable Controllers PLC Device Tables 8 8-6 8.4 Performance Specification Of The FX (CPU versions from 3.07) And FX 2C (all versions) continued over the pa g e.
FX Series Programmable Controllers PLC Device Tables 8 8-7 Item Specification Re marks Hi g h sp eed counter s (C) 1 phase Ran g e: -2,14 7,483,6 48 to +2,147,48 3,647 c ounts General r ule: Select c ounter c om- binati ons with a co mbined counti n g frequenc y of 20kHz or less .
FX Series Programmable Controllers PLC Device Tables 8 8-8 8.5 Perfo rmance Spec ification Of The FX 2N (C) Continued over the pa g e.... Item Specification Re marks Oper at ion con trol met hod C y c.
FX Series Programmable Controllers PLC Device Tables 8 8-9 Item Specification Re marks Hi g h sp eed counter s (C) 1 phase Ran g e: -2,14 7,483,6 48 to +2,147,48 3,647 c ounts General r ule: Select c ounter c om- binati ons with a co mbined counti n g frequenc y of 20kHz or less .
FX Series Programmable Controllers PLC Device Tables 8 8-1 0.
1 Introduction 2 Basic Program Instructions 3 STL Progr ammin g 4 Devices in Detail 5 App lied Ins truc tion s 6 Diagnostic Devices 7 Instruction Execution Ti mes 8 P LC Device T ables 9 Assigning Sys.
FX Series Programmable Controllers Assig ning System Devices 9 Chapter Contents 9. Assi g nin g S y stem Devices ......... .................................... ....................... 9-1 9.1 Addre ssin g Extension Modules .......... .................
Assigning System Devices 9 9-1 9. Assigning System Devices 9.1 Addressing Extension Modules Most of the FX famil y of PLC’ s have the abilit y to connect additional discreet I/O and/or spec ial func tion modu les. T o benefi t from these addition al unit s the user must a ddress ea ch block independentl y .
FX Series Programmable Controllers Assig ning System Devices 9 9-2 9.2 Using The FX2-24EI W ith F Series Special Fun ction Blocks The FX 2 -24EI al lows an FX bas e unit t o be d irectl y connect ed t.
FX Series Programmable Controllers Assig ning System Devices 9 9-3 9.2.1 Using the FX 2 -24EI With A F -16NP/NT The F -16NP/NT ’s operati onal I/ O numb ers (addr esses) are ba sed up on the positio n of th e associated FX 2 -24EI w ithin the user s FX s y stem.
FX Series Programmable Controllers Assig ning System Devices 9 9-4 9.2.2 Using the FX 2 -24EI With A F 2 -6A The F 2 -6A ’s operat ional address i s based upon the position of the associated FX 2 -24EI within the users FX s y stem. Howe ver , the I/O channel nu mbers are not affected b y this opera tional address.
FX Series Programmable Controllers Assig ning System Devices 9 9-5 9.2.4 Using the FX 2 -24EI With A F 2 -30GM The F 2 -30GM’s operational address is based upon the position of the associated FX 2 -24EI within the users FX s y stem. How ever , the I/O nu mbers are not direc tl y affe cte d b y this operational addres s.
FX Series Programmable Controllers Assig ning System Devices 9 9-6 9.3 Para llel Link Adap ters The FX parallel l ink adapters provi de a means of direct communication bet ween two FX PLC’s.
FX Series Programmable Controllers Assig ning System Devices 9 9-7 9.4 Real T ime Clock Function When on e of the real time clock (RTC) memor y cassettes is used with either a nd FX or an FX0N, the real time clock function of that PLC is then automaticall y enabled.
FX Series Programmable Controllers Assig ning System Devices 9 9-8 9.4.1 Setting the real time clock The R TC can be set usin g the special dat a re g isters and cont rol fla g s as follows: Device Number Function Range Device Number Comments D8013 Sec onds 0 to 59 M8015 Ti m e settin g Set ON to stop th e clock .
1 Introduction 2 Basic Program Instructions 3 STL Progr ammin g 4 Devices in Detail 5 App lied Ins truc tion s 6 Diagnostic Devices 7 Instruction Execution Ti mes 8 P LC Device T ables 9 Assigning Sys.
FX Series Programmable Controllers Points of Technique 10 Chapter Contents 10.Points Of Technique .................. ........................ ........................ ......... 10-1 10. 1 Ad v a nc ed P ro g rammin g Points ...... ..... .... .. ..... .
Poin ts Of Te chniqu e 10 10-1 10. Points Of T echnique 10.1 Advanced Programming Points The FX fami l y of pro g rammable contr ollers has a ver y eas y to lear n, eas y to use instru ction set which enables simple pro g rams to perform complex functions.
FX Series Programmable Controllers Poin ts Of Te chniqu e 10 10- 2 10.3 Using The Force d RUN/STOP Flags 10.3.1 A RUN/STOP push button configurat ion The FX pro g rammable co ntr oller h as a sin g le RUN terminal. When power is applied to this terminal the PLC chan g es into a RUN state, i.
FX Series Programmable Controllers Poin ts Of Te chniqu e 10 10-3 10.3.2 Remote RUN/ST OP control The FX fa mil y of pro g rammable controll ers can be controll ed, i.e. switched int o RUN or STOP modes and have devices monitored b y use of intelli g ent exter nal control dev ices.
FX Series Programmable Controllers Poin ts Of Te chniqu e 10 10- 4 10.4 Constant Scan Mo de Some times the ti min g of ope ration s can be a problem , especi all y if some co-or dination is bein g attempted wit h a second control s y stem. In c ases like this it is ver y useful to fix the PLC’s scan t ime.
FX Series Programmable Controllers Poin ts Of Te chniqu e 10 10-5 10.6 Using Batt ery Backed Devic es For Maximum Advant age Batter y backe d device s retain t heir stat us duri n g a PLC power down.
FX Series Programmable Controllers Poin ts Of Te chniqu e 10 10- 6 10.8 Reading And Manipulating Thumbwheel Data Data can be easil y read into a pro g rammable controlle r throu g h the use of the BIN ins truction. When data is read from multiple sources the data is often stored at different locations.
FX Series Programmable Controllers Poin ts Of Te chniqu e 10 10-7 10.9.2 A 0.1 msec timer pulse measurement This is a ver y accurate measur in g process for pulse inputs. The use of a standard timer is not accurate enou g h in t his ca se as th e hi g hest resolution is 1msec.
FX Series Programmable Controllers Poin ts Of Te chniqu e 10 10- 8 10.1 1 Creating a User Defined MTR Instruction For users who want t o have the benefit s of the MTR instruction for FX users who want to specif y more than one MTR area, th is user defined MTR funct ion will be v er y useful.
FX Series Programmable Controllers Poin ts Of Te chniqu e 10 10-9 3) The g rip, now hol din g the prod uct, is raised t o its upper limit - output Y2: ON, input X2: ON, output Y2: OFF . 4) The robot arm tr averses to its ri g ht most position - output Y3: ON, input X3: ON, output Y3: OFF .
FX Series Programmable Controllers Poin ts Of Te chniqu e 10 10-10 This exam ple uses the IST instruc tion (FNC 60) to contro l the operat ion mode of the robot arm. The pro g ram show n opposite id entifies ho w the IST instruc tion is writ ten into t he main pro g ram.
FX Series Programmable Controllers Poin ts Of Te chniqu e 10 10-11 Zero Return Mode This mode fulfil ls an initiali zation function b y returnin g the rob ot arm to a know n posit ion. Once 'Z Return ' has be en select ed from t he mode selection screen the bit device M3 5 is ON.
FX Series Programmable Controllers Poin ts Of Te chniqu e 10 10-12 In this example thes e three mod es are selected b y an external rotar y switch. The rota r y switch is not connected to the PLC but to the I/O bus on th e rear of the DU unit.
FX Series Programmable Controllers Poin ts Of Te chniqu e 10 10-13 Points of interest: a) Users of t he IST ins tr uction wi ll be aware that onl y one of the operati on modes s hould be active at one tim e.
FX Series Programmable Controllers Poin ts Of Te chniqu e 10 10-14 Full program l isting: Program options: 0L D X 4 3 5 S T L S 1 7 2 S T L S 2 1 1 AND X 2 36 LD M 35 73 S ET Y 1 2 ANI Y 1 37 R ST M 8.
FX Series Programmable Controllers Poin ts Of Te chniqu e 10 10-15 10.13 Using The PWM Instruction For Motor Control The PWM inst ructi on ma y be used di rec tl y with an inve rter to driv e a motor .
FX Series Programmable Controllers Poin ts Of Te chniqu e 10 10-16 The maximum output volta g e (to the inv erter) includin g ripple volta g e, can be found b y usin g the follo win g equation: Where:.
FX Series Programmable Controllers Poin ts Of Te chniqu e 10 10-17 The durati on of the T 0 , t ime base also af fects the ripple volta g e. This ca n be clear l y seen in the next set of test data: The behav ior of the Sink switched circ uit detailed a b ov e will be simila r to that of th e Source switched circuit detai led earlier .
FX Series Programmable Controllers Poin ts Of Te chniqu e 10 10-18 10.14 Communication Format 10.14.1 Specification of t he communication parameter s: Item s such as baud rat es, sto p bits an d parit ies must b e identi call y set betw een the tw o communicatin g devices.
FX Series Programmable Controllers Poin ts Of Te chniqu e 10 10-19 10.14.2 Header and T erminator Charact ers The header and terminator characters can be chan g ed b y the user to suit their requirements.
FX Series Programmable Controllers Poin ts Of Te chniqu e 10 10-20 10.14.3 Timing diagr ams for communic ations: 1) No Handshakin g D8120 (b12, b1 1, b10) = (0, 0, 0) FX 2N below version 2.
FX Series Programmable Controllers Poin ts Of Te chniqu e 10 10-21 3) Norma l Mode 1 D8120 (b12, b1 1, b10) = (0, 1, 1) FX2N below V2.00. * When usi n g FX0N, FX, FX2C this period should be 2x scan time or more. 4) Norma l Mode 2 D8120 (b12, b1 1, b10) = (1, 0, 1) FX2N below V2.
FX Series Programmable Controllers Poin ts Of Te chniqu e 10 10-22 FX2N (V2.00 or above) Communicat ions In the FX2N V2.00 or above and FX2NC, full duplex communication is performed.
FX Series Programmable Controllers Poin ts Of Te chniqu e 10 10-23 4) Inter link Mode D8120 (b1 2, b1 1, b10) = (0, 1, 0) 10.14.4 8 bit or 16 bit communications . This is to gg led usin g the Auxili a r y rela y M8161. When this re la y is OFF 16 bit communications take s plac e.
FX Series Programmable Controllers Poin ts Of Te chniqu e 10 10-24 10.15 PID Programming T echniques 10.15.1 Keeping MV within a set range In the rese rved re g isters of th e PID data blo ck S 3 +18 an d S 3 +19 f orm a do uble wor d devic e that c ontains th e previous MV x K100.
FX Series Programmable Controllers Poin ts Of Te chniqu e 10 10-25 Method 2 Durin g manual operati ons the PID instructi on is kept runnin g but the ca lculated MV is i g nored; instea d the operator controls MV .
FX Series Programmable Controllers Poin ts Of Te chniqu e 10 10-26 10.16 Additional PID functions The fo llowin g parameter table g ives the additional paramet ers available with FX 2N(C) MPUs. These a re: -S 3 +1 bit 4: Pre-tuni n g operati on fla g .
FX Series Programmable Controllers Poin ts Of Te chniqu e 10 10-27 10.17 Pre-tuning operation 10.17.1 V ariable Constant s The Pre-t unin g operatio n can be used to automaticall y set values for t he.
FX Series Programmable Controllers Poin ts Of Te chniqu e 10 10-28 10.18 Example Autotuning Program The fo llowin g pro g rammin g code is an example of how to set up the Pre-T unin g function.
1 Introduction 2 Basic Program Instructions 3 STL Progr ammin g 4 Devices in Detail 5 App lied Ins truc tion s 6 Diagnostic Devices 7 Instruction Execution Ti mes 8 P LC Device T ables 9 Assigning Sys.
FX Series Programmable Logic Con trollers Index 11 Chapter contents 11.Index .................. ........................ ........................ ........................ ......... 11-1 11.1 I ndex . .... ..... .... ....... .... .... ..... .... ..... .
Index 11 11-1 11 . I n d e x 11 . 1 I n d e x A Absolute drum sequenc e, ABSD instruction ............. ........... .. .. ............. ............. .......... 5-70 Addition of dat a values, ADD instru ction ........... .................. ...........
FX Series Programmable Controllers Index 11 11- 2 C C data device s See Counters Comparison of data to a ran g e, Z CP instr ' .. ..... .... ..... ...... ..... .... .... ..... .... ..... .... ..... .... .... . 5-1 7 Comparison of sin g le d ata val ues, CM P ins tr' .
FX Series Programmable Controllers Index 11 11-3 E Encode data, ENCO instructi on ......... ........... ............. ............. ............. ............. .......... 5-44 END .. .... ..... .... .... ..... .... ..... .... .... ..... ....... .... .
FX Series Programmable Controllers Index 11 11- 4 FX-8A V - e x te rn a l l y ad j usta ble data valu es ... .... .... ..... .... ..... ...... ..... .... ..... .... .... ..... .... .. 4-37 FX-8 A V c ontro l in st ructi ons V olume read, VRRD instruction .
FX Series Programmable Controllers Index 11 11-5 Usin g multiple i ndex re g ister s ....... .... ..... .... .. ..... .... .... ... .... .... ..... .. ..... .... .... ... .... .... 4-39 Indexin g thro u g h displa y val ues, ex ample .. ..... .... ...
FX Series Programmable Controllers Index 11 11- 6 OUT . .... ....... .... ..... .... .... ..... .... ..... .... ..... .... ....... .... .... ..... .... ..... .... .... ..... .... ..... ...... ..... .... . .. . 2-4 T imer a nd c ount er va r ia ti ons .
FX Series Programmable Controllers Index 11 11-7 S S bit device See State rela y s Scien tific Not ati on - a nu mer ical f orm at .... ..... .... .... ..... ...... ..... .... ..... .... ..... .... .... ..... .... .. 4 -47 Search, data sear ch uti lit y - S ER in stru cti on .
FX Series Programmable Controllers Index 11 11- 8 Ti m e r s , Basi c ti mers ...... .... ....... .... ..... .... ..... .... ..... .... .... ..... .... ....... .... ..... .... ..... .... .... ..... .... ... 2 -18 Device details and exampl es ....... .
FX Series Programmable Controllers Index 11 11-9 1 1.2 ASCII Characte r Codes Note: (SP) = Space, C R = Carr ia g e Retu rn T able 1 1.1: ASCII code table (HEX ) Higher bit 1 234567 Lower bit 0 Not ac.
FX Series Programmable Controllers Index 11 11-10 1 1.3 Applied Instruction List q q q.
.
HEAD OFFICE: MITSUBISHI DENKI BLDG MARUNOUCHI TOKYO 100-83 10 TELEX: J24532 CABLE MELCO T OKYO HIMEJI WORKS: 840, CHIYODA CHO, HIMEJI, JAPA N JY992D48301J (MEE 9911) Effective Nov .
Een belangrijk punt na aankoop van elk apparaat Mitsubishi Electronics FX0 (of zelfs voordat je het koopt) is om de handleiding te lezen. Dit moeten wij doen vanwege een paar simpele redenen:
Als u nog geen Mitsubishi Electronics FX0 heb gekocht dan nu is een goed moment om kennis te maken met de basisgegevens van het product. Eerst kijk dan naar de eerste pagina\'s van de handleiding, die je hierboven vindt. Je moet daar de belangrijkste technische gegevens Mitsubishi Electronics FX0 vinden. Op dit manier kan je controleren of het apparaat aan jouw behoeften voldoet. Op de volgende pagina's van de handleiding Mitsubishi Electronics FX0 leer je over alle kenmerken van het product en krijg je informatie over de werking. De informatie die je over Mitsubishi Electronics FX0 krijgt, zal je zeker helpen om een besluit over de aankoop te nemen.
In een situatie waarin je al een beziter van Mitsubishi Electronics FX0 bent, maar toch heb je de instructies niet gelezen, moet je het doen voor de hierboven beschreven redenen. Je zult dan weten of je goed de alle beschikbare functies heb gebruikt, en of je fouten heb gemaakt die het leven van de Mitsubishi Electronics FX0 kunnen verkorten.
Maar de belangrijkste taak van de handleiding is om de gebruiker bij het oplossen van problemen te helpen met Mitsubishi Electronics FX0 . Bijna altijd, zal je daar het vinden Troubleshooting met de meest voorkomende storingen en defecten #MANUAl# samen met de instructies over hun opplosinge. Zelfs als je zelf niet kan om het probleem op te lossen, zal de instructie je de weg wijzen naar verdere andere procedure, bijv. door contact met de klantenservice of het dichtstbijzijnde servicecentrum.