Mitsubishi Electronics FX1S manual

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120

Ir a la página of

Buen manual de instrucciones

Las leyes obligan al vendedor a entregarle al comprador, junto con el producto, el manual de instrucciones Mitsubishi Electronics FX1S. La falta del manual o facilitar información incorrecta al consumidor constituyen una base de reclamación por no estar de acuerdo el producto con el contrato. Según la ley, está permitido adjuntar un manual de otra forma que no sea en papel, lo cual últimamente es bastante común y los fabricantes nos facilitan un manual gráfico, su versión electrónica Mitsubishi Electronics FX1S o vídeos de instrucciones para usuarios. La condición es que tenga una forma legible y entendible.

¿Qué es un manual de instrucciones?

El nombre proviene de la palabra latina “instructio”, es decir, ordenar. Por lo tanto, en un manual Mitsubishi Electronics FX1S se puede encontrar la descripción de las etapas de actuación. El propósito de un manual es enseñar, facilitar el encendido o el uso de un dispositivo o la realización de acciones concretas. Un manual de instrucciones también es una fuente de información acerca de un objeto o un servicio, es una pista.

Desafortunadamente pocos usuarios destinan su tiempo a leer manuales Mitsubishi Electronics FX1S, sin embargo, un buen manual nos permite, no solo conocer una cantidad de funcionalidades adicionales del dispositivo comprado, sino también evitar la mayoría de fallos.

Entonces, ¿qué debe contener el manual de instrucciones perfecto?

Sobre todo, un manual de instrucciones Mitsubishi Electronics FX1S debe contener:
- información acerca de las especificaciones técnicas del dispositivo Mitsubishi Electronics FX1S
- nombre de fabricante y año de fabricación del dispositivo Mitsubishi Electronics FX1S
- condiciones de uso, configuración y mantenimiento del dispositivo Mitsubishi Electronics FX1S
- marcas de seguridad y certificados que confirmen su concordancia con determinadas normativas

¿Por qué no leemos los manuales de instrucciones?

Normalmente es por la falta de tiempo y seguridad acerca de las funcionalidades determinadas de los dispositivos comprados. Desafortunadamente la conexión y el encendido de Mitsubishi Electronics FX1S no es suficiente. El manual de instrucciones siempre contiene una serie de indicaciones acerca de determinadas funcionalidades, normas de seguridad, consejos de mantenimiento (incluso qué productos usar), fallos eventuales de Mitsubishi Electronics FX1S y maneras de solucionar los problemas que puedan ocurrir durante su uso. Al final, en un manual se pueden encontrar los detalles de servicio técnico Mitsubishi Electronics en caso de que las soluciones propuestas no hayan funcionado. Actualmente gozan de éxito manuales de instrucciones en forma de animaciones interesantes o vídeo manuales que llegan al usuario mucho mejor que en forma de un folleto. Este tipo de manual ayuda a que el usuario vea el vídeo entero sin saltarse las especificaciones y las descripciones técnicas complicadas de Mitsubishi Electronics FX1S, como se suele hacer teniendo una versión en papel.

¿Por qué vale la pena leer los manuales de instrucciones?

Sobre todo es en ellos donde encontraremos las respuestas acerca de la construcción, las posibilidades del dispositivo Mitsubishi Electronics FX1S, el uso de determinados accesorios y una serie de informaciones que permiten aprovechar completamente sus funciones y comodidades.

Tras una compra exitosa de un equipo o un dispositivo, vale la pena dedicar un momento para familiarizarse con cada parte del manual Mitsubishi Electronics FX1S. Actualmente se preparan y traducen con dedicación, para que no solo sean comprensibles para los usuarios, sino que también cumplan su función básica de información y ayuda.

Índice de manuales de instrucciones

  • Página 1

    PROGRAMMING MANUAL II THE FX SERIES OF PROGRA MMA BLE CO NTROLLER (FX 1S , FX 1N , FX 2N, FX 2NC )[...]

  • Página 2

    [...]

  • Página 3

    i FX Series Programmable Controllers Programming Manu al Manua l number : JY992D8 8101 Manua l revision : A Date : April 2000 FX Series Programmable Controllers Foreword • This manual c ontains tex t, diagrams and e xplanations which wil l guide the reader in the correct progr amming and oper ation of the PLC. • Before att empting to inst all o[...]

  • Página 4

    FX Series Programmable Controllers ii[...]

  • Página 5

    F AX BACK - Combined Programming Manual (J) Mit subishi has a worl d wide reput ation for i ts ef fort s i n continuall y developing and pus hing back the fron tiers of indus trial automat ion. What is somet imes overlooked by t he user is the car e and attention to detai l that is taken with the documentation. However ,to continue this process of [...]

  • Página 6

    FX Series Programmable Controllers iv[...]

  • Página 7

    FX Series Programmable Controllers v Guidelines for the Safety of the User and Protection of the Programmable Controller (PLC) This manual provides information for the use of t he FX family of PLC’s. The manual has been writt en to be used b y trai ned and competen t perso nnel. Th e defi nition of su ch a pers on or persons i s as fol lows; a) A[...]

  • Página 8

    FX Series Programmable Controllers vi[...]

  • Página 9

    i FX Series P rogramma ble contro llers Contents 1. Introduction ............................................. ........................ ....................... 1-1 1.1 Ov ervi ew ........ .... ..... .... ..... .... ..... .... .... ..... ...... ..... .... ..... .... .... ..... .... ..... .... ..... ...... ..... 1-1 1.2 W hat is a Pr ogra mm able Con[...]

  • Página 10

    ii 3. STL P rogramming .................................. ........................ ....................... 3-1 3.1 What is STL, SFC And I EC1131 Part 3? ......... ........... ............. ........... ........... ...... 3-1 3.2 H ow STL Oper ates . .... ..... .... ..... .... ....... .... .... ..... .... ..... .... .... ..... .... ..... ...... .....[...]

  • Página 11

    iii 4.11 High Speed Counters ......... ........... ........... ........... ............. ........... ........... ........... 4-22 4.11.1 Basic High Speed Counter Ope ration ... ............. ............. ............. ............. ............. . 4-23 4.11.2 Availab ility of Hig h Speed Cou nters ..... ............. ............. ............. ..[...]

  • Página 12

    iv 5.3.9 WXOR (FNC 28) ... ............. ............. ............. ................... ............. ............. ............. . 5-31 5.3.10 NEG (FNC 29) ......................... ............. ............. ............. ............. ............. ............. . 5-31 5.4 Rotati on And Shift - Functions 30 to 39 ............. ........... ....[...]

  • Página 13

    v 5.9 External FX Serial Devi ces - Functions 80 to 89 ........ ........... .. ........... .. ........... .. 5-94 5.9.1 RS (FNC 80) ... ............. ............. ............. ............. ............. ................... ............. ........ 5 -9 5 5.9.2 RUN (FNC 81) ....... ................... ............. ............. ............. .....[...]

  • Página 14

    vi 6. Diagno stic Devices ................................. ........................ ....................... 6-1 6.1 PLC Statu s (M8000 to M8009 an d D8000 to D8009) ................... ................. ...... 6-2 6.2 Clock Dev ices (M8010 to M8019 and D8010 to D8019) .......... ........... ........... .... 6-3 6.3 O p e r a tio n F la gs . ..... [...]

  • Página 15

    vii 10.Points Of Technique ...... ........................ ........................ ..................... 1 0-1 10.1 Ad v a nc ed P ro g r a mmin g P oin ts .... .. ..... .... .. ..... .... .... ... .... .... ..... .. ..... .... .... ... .... .... . 10 -1 10.2 Us ers of D C Po wer ed F X Un its ...... ..... .... .... ..... .... ..... .... .... ....[...]

  • Página 16

    viii[...]

  • Página 17

    1 Introdu ction 2 Basic Program Instructions 3 STL Progr ammin g 4 Devices in Det ail 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 System Devices 10 Point s of T echniqu e 11 I n d e x FX Series Programmable Controllers Introductio n 1[...]

  • Página 18

    FX Series Programmable Controllers Introductio n 1 Chapter Contents 1. Introduction ......... ........................ .................................... ....................... 1-1 1.1 Ov ervi ew .... .... .... ..... .... ..... .... ..... .... .... ..... ...... ..... .... ..... .... .... ..... .... ..... .... ..... ...... ..... 1-1 1.2 W hat is [...]

  • Página 19

    Introductio n 1 1-1 1. Introduction 1.1 Over view 1) Scope of t his manual This manu al gives de tail s on all asp ects of operation and programmi ng for FX 1S , FX 1N , FX 2N and FX 2NC p rogrammab le contr ollers (PLCs). For all inform ation re lating to the PLC hardware and inst allati on, ref er to the appropriate manual supplied with the unit.[...]

  • Página 20

    Introductio n 1 1-2 1.2 What is a Programmable Controller? A Programmable Logic Contr oller (PLC or programmable cont roller ) is a device that a user can progra m to perfo rm a seri es or sequence of event s. These event s are t riggered by stimuli (usually called input s) received at the PLC or through delayed actions such as time delays or count[...]

  • Página 21

    Introductio n 1 1-3 1.4 Special considerations for programming equipment 1.4.1 Cur rent Generation CPU all versions Peripherals T able Description Model Number System soft ware ver sion with full support Hand held program mer (HHP ) FX-10P -E from V 3.00 HHP cass ette FX-20P -MFXA-E from V 3.00 Data acce ss un its FX-10DU-E from V 4.00 FX-20DU-E Su[...]

  • Página 22

    Introductio n 1 1-4 1.5 Ass oc ciated M anuals Manual n ame Number FX Base Unit Hardware FX1S Hardware manual JY992D83901 FX1N Hardware manua l JY992D88201 FX2N Hardware manua l JY992D66301 FX2NC Hardware manual JY992D76401 FX Programmin g FX0, F X0S, FX0N, FX , FX2C, FX2N, FX2N C Programmin g manual JY992D48 301 FX1S, F X1N, FX2N, FX2 NC Programmi[...]

  • Página 23

    Introductio n 1 1-5 FX DU, GOT and DM unit s FX-5DM Users man ual JY992D84 901 FX-10DM Users manua l J Y992D86401 FX Posi tioning FX-1HC Us ers gui de JY992D53 00 1 FX2N/FX-1 PG-E Users man ual JY992D65 301 E-20P-E Operati on manual JY992D44901 FX2N-1HC Users gui d e JY992D65401 FX2N-1RM-E-SET Us ers manual JY992D71 101 FX2N-10 GM Users guide JY992[...]

  • Página 24

    Introductio n 1 1-6 Memo[...]

  • Página 25

    1 Introduction 2 Basic Program Instructions 3 STL Progr ammin g 4 Devices in Det ail 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 System Devices 10 Point s of T echniqu e 11 I n d e x FX Series Programmable Controllers Basic Program Instructions 2[...]

  • Página 26

    FX Series Programmable Controllers Basic Program Instructions 2 Chapter Contents 2. Basic P rogram Instructions ................................ ........................ ........... 2-1 2.1 W hat is a Pr ogra m? ......... .... ..... .... .... ..... .... ..... .... .... ..... ...... ..... .... ..... .... ..... .... .... ... 2 -1 2.2 O utlin e of B a[...]

  • Página 27

    Basic Program Instructions 2 2-1 2. Basic Program Instructi o ns 2.1 What is a Program? A program is a connected series of in structions written in a lan guage that the PLC can underst and. There ar e thr ee forms of progra m format; inst r uction, ladder a nd SFC/STL. Not all programmi ng tools can work in all p rogramming forms. Generally hand he[...]

  • Página 28

    FX Series Programmable Controllers Basic Program Instructions 2 2-2 2.3 How to Read Ladder Logic Ladder logic is very closely associated to basic relay logic. There are both contacts and coils that can be loaded and dr iven in dif ferent conf igurations. However , the basic pri nciple remains the same. A coil d rives direc t outputs of the PLC ( ex[...]

  • Página 29

    FX Series Programmable Controllers Basic Program Instructions 2 2-3 2.4 Load, Load Inver se Program example: Basic point s to remember: - Connect the LD and LDI instructions di rec tly to the left hand bus bar . - Or use LD and LDI instructi ons to define a new block of program when using the ORB and ANB instructions (s ee later sections). Mnemonic[...]

  • Página 30

    FX Series Programmable Controllers Basic Program Instructions 2 2-4 2.5 Out Basic point s to remember: - Connect the OUT instruction dire ct ly to the right hand bus bar . - It is not possibl e to use the OUT instruct ion to dri ve ‘X’ type input devices . - It is possible to connect multi ple OUT instr uctions in p arallel (for example see t h[...]

  • Página 31

    FX Series Programmable Controllers Basic Program Instructions 2 2-5 2.5.2 Doubl e Co il Designation Double or dual c oiling is not a reco mmended practice . Using multiple outpu t coils of the same device can ca use the pr ogram operation to become unreliable. The example program shown opposite identif ies a double coil sit uation; there are two Y3[...]

  • Página 32

    FX Series Programmable Controllers Basic Program Instructions 2 2-6 2.6 And, And Inverse Program example: Basic point s to remember: - Use the AND and AN I instruct ions for ser ial conne ction of cont acts. As many cont act s as required can be c onnected in se ri es (see fol lowing po int headed “Pe ripheral l imit ations”). - The output proc[...]

  • Página 33

    FX Series Programmable Controllers Basic Program Instructions 2 2-7 2.7 Or , Or Inverse Program example: Basic point s to remember: - Use the OR and ORI instructio ns for parall el connection of cont acts. T o connect a blo ck that c ontai ns more t han one c ontact connect ed in se ries to another circuit block i n pa rallel, use an ORB instruc ti[...]

  • Página 34

    FX Series Programmable Controllers Basic Program Instructions 2 2-8 2.8 Load Pulse, Load T railing Puls e Program example: Basic point s to remember: - Connect the LDP and LDF instructions dir ectly to the left hand bus bar . - Or use LDP and LDF instruc tions to define a n ew block of progr am when using the ORB and ANB instructions (s ee later se[...]

  • Página 35

    FX Series Programmable Controllers Basic Program Instructions 2 2-9 2.9 And Pulse, And T railing Pulse Program example: Basic point s to remember: - Use the ANDP and ANDF instructions f or the serial connection of pul se contact s. - Usage is the same a s for AND and ANI; see earlier . - ANP is active for one program sc an after the asso ciated dev[...]

  • Página 36

    FX Series Programmable Controllers Basic Program Instructions 2 2-1 0 2.10 Or Pulse, Or T railing Pulse Program example: Basic point s to remember: - Use the ORP and ORF instructi ons fo r the paral lel connection of pulse cont acts. - Usage is the same a s for OR and ORI; see ea rlier . - ORP is active for one progr am scan after the associ ated d[...]

  • Página 37

    FX Series Programmable Controllers Basic Program Instructions 2 2-11 2.1 1 Or Block Program example: Basic point s to remember: - An ORB instru ction is an independent i nstruction and is not associated wi th any device number . - Use the ORB instruction to connect multi- contact ci rcuit s (usually seri al circuit block s) to the preced ing circu [...]

  • Página 38

    FX Series Programmable Controllers Basic Program Instructions 2 2-1 2 2.12 And Block Program example: Basic point s to remember: - An ANB instruction is an independ ent instruction and is not associat ed with any device number - Use the ANB instru ction to connect multi-cont act circui ts (usuall y parallel cir cuit blocks) to the precedi ng ci rcu[...]

  • Página 39

    FX Series Programmable Controllers Basic Program Instructions 2 2-13 2.13 MPS, MRD and MPP Basic point s to remember: - Use these inst ructions t o connect output coils to the left hand side of a contact . Without these i nstructions conn ections can only be mad e to the right hand side of t he last con tact. - MPS stores the connection poi nt of t[...]

  • Página 40

    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 MPS MPP 1 7 10 3 2 11 Y X X Y Y X ANB OUT MPP AND OUT ANB LD OR OUT 12 13 14 15 16 18 19 17 20 0 1 2 3 4 6 7 5 8 9 10 11 LD MPS LD OR ANB LD OUT MRD [...]

  • Página 41

    FX Series Programmable Controllers Basic Program Instructions 2 2-15 2.14 Master Control a nd Reset Program example: Basic point s to remember: - After the execution of an MC i nstruct ion, t he bus li ne (L D, LDI p oint) s hift s to a point after the MC instruction. An MCR instructi on ret urns this to the origi nal bus l ine. - The MC instructio[...]

  • Página 42

    FX Series Programmable Controllers Basic Program Instructions 2 2-1 6 Nested MC progra m example: Level N0: Bus line (B) active 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. Level N1 : MCRN2 ex ecutes and restores b us line (C). If the MCR had reset N0 the n the or[...]

  • Página 43

    FX Series Programmable Controllers Basic Program Instructions 2 2-17 2.15 Set and Reset Program example: Basic point s to remember: - T urning ON X0 causes Y0 to turn ON. Y0 remains ON even after X0 turns OFF . - T urning ON X1 causes Y0 to turn OFF . Y0 remains OFF even after X1 tu rns OFF . - SET and RST instructions can be used for the same d ev[...]

  • Página 44

    FX Series Programmable Controllers Basic Program Instructions 2 2-1 8 2.16 Timer , Counter (Out & Reset) Program example: 2.16.1Basic T imers, Retentive T imers And Counters These devices can all be reset at any time by driving the RS T instruction (with the number of the device to be reset) . On re setting, all acti ve contac ts, coils and cur[...]

  • Página 45

    FX Series Programmable Controllers Basic Program Instructions 2 2-19 2.16.2 Normal 3 2 bit Counte rs The 32 bi t counter C200 coun ts (up-co unt, down- count) a ccording t o the ON/OFF s tate of M8200. In the example program shown o n the previous p age C200 is bei ng used to count th e number of OFF ~ ON cycles of input X4. The output contact is s[...]

  • Página 46

    FX Series Programmable Controllers Basic Program Instructions 2 2-2 0 2.17 Leading and T railing Pulse Program example: Basic point s to remember: - When a PLS instruct ion is executed, object devices Y and M opera te for one operation cycle after the drive input signal has turned ON. - When a PLF instruction is executed, object devices Y and M ope[...]

  • Página 47

    FX Series Programmable Controllers Basic Program Instructions 2 2-21 2.18 In ve rse Program example: Basic point s to remember: - The INV instructi on is used to change ( invert) the logi cal state of the curr ent ladder network at the insert ed position. - Usage is the same a s for AND and ANI; see earlier . Mnemonic Function For m at Devices P ro[...]

  • Página 48

    FX Series Programmable Controllers Basic Program Instructions 2 2-2 2 2.19 No Op erati on Basic point s to remember: - Writing NOP ins tructions in t he middle of a program minimizes s tep number changes when changing or editing a program. - It is possibl e to change the oper ation of a ci rcuit by rep lacing progr ammed instructions with NOP instr[...]

  • Página 49

    FX Series Programmable Controllers Basic Program Instructions 2 2-23 2.20 En d Basic point s to remember: - Placing an END instruction in a program forces that program to en d the cu rrent sc an and carry out t he updating pr ocesses for bot h inputs and output s. - Inserting END instru ctions in the middle of the program hel ps program de bugging [...]

  • Página 50

    FX Series Programmable Controllers Basic Program Instructions 2 2-2 4 MEMO[...]

  • Página 51

    1 Introduction 2 Basic Program Instructions 3 STL Programm in g 4 Devices in Det ail 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 System Devices 10 Point s of T echniqu e 11 I n d e x FX Series Programmable Controllers ST L Programmin g 3[...]

  • Página 52

    FX Series Programmable Controllers ST L Programmin g 3 Chapter Contents 3. STL P rogramming .................................. ........................ ....................... 3-1 3.1 What is STL, SFC And I EC1131 Part 3? ......... ........... ............. ........... ........... ...... 3-1 3.2 H ow STL Oper ates . .... ..... .... ..... .... .....[...]

  • Página 53

    STL Pro gramming 3 3-1 3. STL Program ming This chapter d iff ers from th e rest of the co ntent s in this manual a s it has been writt en with a training aspect in mind. STL/SFC programming, although having been avai lable for many years, is still misunderstood and misrepresented. We at Mit subishi would like to take this opportuni ty to try to co[...]

  • Página 54

    FX Series Programmable Controllers ST L Programmin g 3 3-2 3.2 How STL Ope rates As prev iously mentione d, STL is a syste m which allows the user to write a program which functions in much the same way as a flow chart, thi s can be seen in the diagram opposit e. STL derives it s str ength by org anizin g a la rger program into smaller more mana ge[...]

  • Página 55

    FX Series Programmable Controllers ST L Programmin g 3 3-3 Combined SFC Ladder represent ation Some times STL prog rams wi ll be wr itten in har d copy as a combi nati on of bot h flow diagr am and inte rnal sub-progr am. (example shown below). Identif i cation of contac t states 3.3 How T o St art And End An STL Program Before any c omplex program[...]

  • Página 56

    FX Series Programmable Controllers ST L Programmin g 3 3-4 Initia l Ste ps For an STL program which is to be activated on the initial po wer up of the PLC, a trigger similar to tha t shown op posite co uld be used, i.e. using M800 2 to drive the s etting of the initial sta te . The S TL step st arte d in this mann er is ofte n referred to as the in[...]

  • Página 57

    FX Series Programmable Controllers ST L Programmin g 3 3-5 3.4 Moving Between STL Step s T o activa te an STL step the user must first drive the state coil. Setting the coil has already been i dentif ied as a way to s tar t an STL program, i.e. drive a n initia l st ate. I t was al so noted that using an OUT statement to driving a state coil has a [...]

  • Página 58

    FX Series Programmable Controllers ST L Programmin g 3 3-6 3.4.2 Using OUT to drive an STL coil This has the s ame operational feat ures as using SET . However , t here is one major func tion which SET is not used. This is to make what is termed ‘dist ant jumps’. OUT is used for loop s and jump s If a user wishes to ‘j ump’ back up a progra[...]

  • Página 59

    FX Series Programmable Controllers ST L Programmin g 3 3-7 3.5 Rules and T echniques For STL programs It can be seen that there ar e a lot of advantages t o u sin g STL style programming but there are a few points a user must be aware of when wri ting the STL sub-programs. These a re highlight ed in this section. 3.5.1 Basic Notes On The Behavior O[...]

  • Página 60

    FX Series Programmable Controllers ST L Programmin g 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) while both steps are active. This can cause prob lems wit h dual coil s; par ti c ul arly timers. If timers are dual coil ed car e [...]

  • Página 61

    FX Series Programmable Controllers ST L Programmin g 3 3-9 3.5.2 Single Signal St ep Control T ransfer ring be tween active STL st eps can be con trolle d by a singl e signal. There are two methods the user can p rogram to achie ve this resul t. Method 1 - Using locking devices In this ex ample it is necessary to pr ogram separat e locking devices,[...]

  • Página 62

    FX Series Programmable Controllers ST L Programmin g 3 3-1 0 3.6 Restrictions Of Som e Instructions When Used With STL Although STL c an oper ate wit h most bas ic and app lied i nstruc tions ther e are a f ew exc eptions. As a gene ral rul e STL and MC-MC R progr amming fo rmats should no t be combi ned. Oth er instruc tion restrictions are l iste[...]

  • Página 63

    FX Series Programmable Controllers ST L Programmin g 3 3-11 3.7 Using STL T o Select The Most Appropriate Program So far STL ha s been considere d as a sim p le flow ch arting p rogramming lang uage. One of STL ’s exceptio nal features is the ability to create programs which can have several operating modes. For example certain machines requi re [...]

  • Página 64

    FX Series Programmable Controllers ST L Programmin g 3 3-1 2 3.8 Using STL T o Activate Multiple Flows Simult aneously In t he prev ious br anching techn ique, i t was s een ho w a sing le flo w could be selec ted fr om a group. The fol lowing me thods desc ribe h ow a group o f indiv idual fl ows can b e activa ted simult aneously . Appl ications [...]

  • Página 65

    FX Series Programmable Controllers ST L Programmin g 3 3-13 When a group of branch flows are activ ated, the user will often eit her ; a) ‘Race’ each f low against it s counter p arts. The flow whic h completes fas test would then activate a joining function (“First S tate Merge” described i n the previous section) OR b) The STL flow will n[...]

  • Página 66

    FX Series Programmable Controllers ST L Programmin g 3 3-1 4 3.9 Genera l Rules For Succ essful STL Branching For each branch po int 8 fur t her branches may be progr ammed. There are no li mit s t o th e num- ber of st ates con tained in a single STL flow . Hence, the possibili ty exist s for a single i nitial st ate to branch to 8 branch flows wh[...]

  • Página 67

    FX Series Programmable Controllers ST L Programmin g 3 3-15 3.10 General P recautions When Using The FX-PCS/A T -EE Software This sof twar e has the abilit y to pro gram in SFC flo w diag rams. As part of this abili ty it can read and con vert exi sting STL programs ba ck into SF C flows eve n if the y were never origin ally programmed using the FX[...]

  • Página 68

    FX Series Programmable Controllers ST L Programmin g 3 3-1 6 3.1 1 P rogramming Examples 3.1 1.1 A Simple STL Flow This simple exampl e is an excerp t from a semi-automati c loading-un loading ore tr uck program. This example pro gram has a built in, initialization ro utine which o ccurs only when the PLC is powered from OFF to ON. This is achieved[...]

  • Página 69

    FX Series Programmable Controllers ST L Programmin g 3 3-17 Once at the discharg e point the truck open s i ts bottom doors (Y1 3). After a timed duration in whic h the truc k empties i ts cont ents , the prog ram chec ks to se e if the r epeat mode w as selected on the las t cycle, i.e. M2 is reset. If M2 was reset (i n state S21) the program ‘j[...]

  • Página 70

    FX Series Programmable Controllers ST L Programmin g 3 3-1 8 3.1 1.2 A Selective Branch/ Fi rst St ate Merge Example Program The following example depicts an automatic sorting robot. The robot sorts two s izes of ball bearings f rom a mixed ‘source pool ’ into indivi dual storage bucket s cont aining only one type of ball be aring. The sequence[...]

  • Página 71

    FX Series Programmable Controllers ST L Programmin g 3 3-19 Full STL flow diagram/progr am. 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 25 SET Y1 K10 S 26 T1 S 27 X3 X4 X5 T2 S 32 Y2 K10 S 30 X2 S 31 Y0 X3 S 33 Y4 X1 X1 Start Zero-point arrival Lower pickup arm This example uses the dot [...]

  • Página 72

    FX Series Programmable Controllers ST L Programmin g 3 3-2 0 3.12 Advanced S TL Use STL prog ramming can be enhanced by using t he Initial S tate App lied Inst ruction . This instruc tion has a mnemonic abbr evi ation of IST and a sp eci al funct i on number of 6 0. When t he IST instruction is used an autom atic assignment o f state relays, specia[...]

  • Página 73

    1 Introduction 2 Basic Program Instructions 3 STL Progr ammin g 4 Devices in Det ail 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 System Devices 10 Point s of T echniqu e 11 I n d e x FX Series Programmable Controllers Devices in Detail 4[...]

  • Página 74

    FX Series Programmable Controllers Devices in Detail 4 Chapter Contents 4. Device s in Detail ............. ........................ .................................... ........... 4-1 4.1 In puts ......... .... .... ..... .... ..... .... ..... .... .... ..... ...... ..... .... ..... .... .... ..... .... ..... .... ..... ...... ..... 4-1 4.2 Ou tp[...]

  • Página 75

    Devices in Detail 4 4-1 4. Devices i n Det ail 4.1 Input s Device Mnemonic: X Purpose: Represent ation of physi cal input s to the programmable contr oller (PLC) Alias: I/P Inp (X) Inpu t Input con tact A vailable forms: NO (  ) and NC (  ) cont acts onl y (see example device usage fo r references) Devices numbered in: Octal, i.e. X0 to X7 , [...]

  • Página 76

    FX Series Programmable Controllers Devices in Detail 4 4-2 4.2 Output s Device Mnemonic: Y Purpose: Represent ation of physical outputs from the progr ammable controller Alias: O/P Otp Out (Y) Output (Y) Output (coil / relay/ cont act) A vailable forms: NO (  ) and NC contact s and output coils (  ) (see example device usage fo r references) [...]

  • Página 77

    FX Series Programmable Controllers Devices in Detail 4 4-3 4.3 Auxiliary Re lays Device Mnemonic: M Purpose: In ternal programmable controller status flag Alias: Auxil ia ry (coil/ rela y/ contact / flag) M (coil/ relay/ cont act /flag) M (bit) dev i ce A vailable forms: NO (  ) and NC contact s and output coils (  ) (see example device usage[...]

  • Página 78

    FX Series Programmable Controllers Devices in Detail 4 4-4 4.3.2 Battery Backed/ Latched Auxiliary Relays There are a number of battery b acked or latched re lays whose status is retained in battery backe d or EEP ROM memory . If a power failure should occur al l outp ut and general purpose relays are swit ched off. When operati on is resumed the p[...]

  • Página 79

    FX Series Programmable Controllers Devices in Detail 4 4-5 4.3.3 Special Diagnostic Auxilia ry Relays A PLC has a number of specia l auxiliary relay s. These relays all have sp ecific functions and are classi fied into the foll owing two types. a) Using cont acts of special auxiliary relays - Coils are driven automatically by the PLC. Only the cont[...]

  • Página 80

    FX Series Programmable Controllers Devices in Detail 4 4-6 4.4 S t ate Rela ys Device Mnemonic: S Purpose: In ternal programmable controller status flag Alias: S tate (coil/ relay / contact/ flag) S (coil/ re lay / contact /flag) STL step (coil/ rel ay/ contact /fl ag) Annuncia tor flag A vailable forms: NO ( ➀ ) and NC contact s and output coils[...]

  • Página 81

    FX Series Programmable Controllers Devices in Detail 4 4-7 4.4.2 Battery Backed/ Latched St ate Relays There are a number of battery b acked or latched re lays whose status is retained in battery backe d or EEP ROM memory . If a power failure should occur al l outp ut and general purpose relays are swit ched off. When operati on is resumed the prev[...]

  • Página 82

    FX Series Programmable Controllers Devices in Detail 4 4-8 4.4.3 STL Step Relays S ta tes (S) are ve ry impor tant devices wh en programming step by step process con t rol. They are used in combination wit h the basic instruction STL. When all STL style programmi ng is used certain states have a pre-def ined operation. Th e step identi fied as ➀ [...]

  • Página 83

    FX Series Programmable Controllers Devices in Detail 4 4-9 4.4.4 Annunciator Flag s Some state flags can be used as o ut puts for external diagnosis (called annunciation) when cert ain applied instruct ions are used. These inst ructions are ; ANS function 46: ANnunci ato r Set - see page 5-47 ANR function 47: ANnunci ato r Reset - see pag e 5-47 Wh[...]

  • Página 84

    FX Series Programmable Controllers Devices in Detail 4 4-1 0 4.5 Pointers Device Mnemonic: P Purpose: Program fl ow contr ol Alias: Pointer Program pointer P A vailable forms: Label: appears on the left of the left hand bus bar when the pro gram is viewed in ladder mode. Devices numbered in: Decimal, i.e. P0 to P9, P10 to P19 Further us es: Can be [...]

  • Página 85

    FX Series Programmable Controllers Devices in Detail 4 4-11 4.6 Interrupt Pointers Device Mnemonic: I Purpose: In terrupt progr am marker Alias: Interru pt High speed interrupt I A vailable forms: Label: appears on the left of the left hand bus bar when the pro gram is viewed in ladder mode (see ➀ in the example devi ce usage diagram). Devices nu[...]

  • Página 86

    FX Series Programmable Controllers Devices in Detail 4 4-1 2 4.6.1 Input Interrupt s Identif i cation of interrup t poi nter number: Example: I001 The s equence progra mmed afte r the label (indica ted by the I0 01 point er) is execut ed on the leading or rising edge of the input signal X0. The program sequence returns from the interr upti on progr[...]

  • Página 87

    FX Series Programmable Controllers Devices in Detail 4 4-13 4.6.3 Disabling Individual In terrupt s Individual interrupt devices can be tem porarily or permanently d isabled by d riving an assoc iated specia l au xiliary relay . The relev ant coils are ide ntified in the tables o f devices in chapter 6. H owever for all PLC types the head address i[...]

  • Página 88

    FX Series Programmable Controllers Devices in Detail 4 4-1 4 4.7 Const ant K Device Mnemonic: K Purpose: Identif ication of const ant decimal values Alias: Const ant K (va lue/ constant ) K A vailable forms: Numeric dat a value, when u sed for 16bit dat a, values can be select ed f rom the range -32,768 to +32,767 For 32bit data, values from the ra[...]

  • Página 89

    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 coil set s int ernal PLC contact s (NO and NC cont act s available). V arious timer resolutions are possible, from 1 to 10 0 msec, but availability and quantity vary from PLC to PLC.[...]

  • Página 90

    FX Series Programmable Controllers Devices in Detail 4 4-1 6 4.9.1 General timer operation T imers operate by coun ting clock pulses (1, 10 an d 100 msec). The timer o utput cont act is activat ed when th e count dat a reaches the value set by the const ant K. The overall durat ion or elap sed time, for a timers oper ation cycle, is cal cul ated by[...]

  • Página 91

    FX Series Programmable Controllers Devices in Detail 4 4-17 4.9.3 Retentive Ti mers A retentive timer has the ability to retai n the currently reached present value eve n after the drive contact ha s been remove d. This means th at when the drive co ntact is re-established a retenti ve timer wil l continue from where it last reached . Because the r[...]

  • Página 92

    FX Series Programmable Controllers Devices in Detail 4 4-1 8 4.9.4 T imers Used i n Interrupt and ‘CALL ’ Subroutines If timers T192 to T199 and T246 to T249 are use d in a CALL sub routine or an interruption routine, the timing action is updated at the point when an E ND instruction is executed. The output cont act is activated when a coil ins[...]

  • Página 93

    FX Series Programmable Controllers Devices in Detail 4 4-19 4.10 Counters Device Mnemonic: C Purpose: Event d riven delays Alias: Counter(s) C A vailable forms: A driven coil sets internal PLC contac ts (NO and NC contac ts available). V arious counter resol utions are possible in cluding; General/latched 16bit up counters - see p age 4-20 General/[...]

  • Página 94

    FX Series Programmable Controllers Devices in Detail 4 4-2 0 4.10.1 General/ Latched 16bit UP Counters The c urrent valu e of the counter increas es each tim e coil C0 is tu rned ON by X1 1. The output contact is activate d when the co il is turned ON for th e tent h time ( see dia gra m). After t his, the count er dat a remains unchanged when X1 1[...]

  • Página 95

    FX Series Programmable Controllers Devices in Detail 4 4-21 4.10.2 General/ Latched 32bit Bi-dir ectional Counters The coun ter shown in t he example below , activates when it s coil i s driven, i .e. the C200 coi l is driven. On every occas ion the input X14 is turn ed from OFF to ON the current value or current count of C200 is incremented . The [...]

  • Página 96

    FX Series Programmable Controllers Devices in Detail 4 4-2 2 4.1 1 High S peed Counters Device Mnemonic: C Purpose: High s peed event dr iven delays Alias: Counter ( s) C High speed counter (s ) Phase counter s A vailable forms: A driven coil set s int ernal PLC contact s (NO and NC cont act s available). There are various types of high speed count[...]

  • Página 97

    FX Series Programmable Controllers Devices in Detail 4 4-23 4.1 1.1 Basic High Speed Counter Operation Although count ers C235 to C255 (21 points ) are all high speed counters, t hey share the same rang e of h igh spe ed inpu ts . There fore, if an input is alre ady be ing u sed by a high speed counter , it cannot be used for a ny ot her hi gh s pe[...]

  • Página 98

    FX Series Programmable Controllers Devices in Detail 4 4-2 4 4.1 1 .2 A vailability of High Speed Counters The foll owing device t able outlines the range of availabl e high speed count er s. Key: U - up counter input D - down count er input R - reset counter (input) S - st art counter (input) A - A phase counter input B - B phase counter input - C[...]

  • Página 99

    FX Series Programmable Controllers Devices in Detail 4 4-25 If any high speed compari son instruction s (FNC’s 53, 54, 55) ar e used, X0 and X1 must resort to softwar e counting. I n this case, please see the tabl e below: Unit Function Number Max. Combined Signal Frequency FX 2N & FX 2NC 53 o r 54 1 1 kHz 55 5.5 kHz FX 1S & FX 1N 53 or 5[...]

  • Página 100

    FX Series Programmable Controllers Devices in Detail 4 4-2 6 4.1 1.3 1 Phase Counters - User St art and Reset (C235 - C240) Thes e counters only use one in put each. When direction flag M8 235 is ON , counter C235 counts down. When it is OFF , C235 count s up. When X1 1 is ON, C235 resets to 0 (zero). All cont acts of the counter C235 are also rese[...]

  • Página 101

    FX Series Programmable Controllers Devices in Detail 4 4-27 4.1 1.4 1 Phase Counters - Assigned St art and Reset (C241 to C245) These co unters have one count able input and 1 r eset inpu t each. Counters C 244 and C245 also have a start input . When the direction flag M8245 is ON, C245 count s down. When it is OFF C245 wil l count up. When X 14 is[...]

  • Página 102

    FX Series Programmable Controllers Devices in Detail 4 4-2 8 4.1 1.5 2 Phase Bi-directi onal Counters (C246 to C250) These counters hav e one input for countin g up and one input for counting down. Certain counters also have reset and st art input s as well. When X10 is ON, C246 resets in the same way as standar d 32bit counters. Counter C246 uses [...]

  • Página 103

    FX Series Programmable Controllers Devices in Detail 4 4-29 4.1 1.6 A/B Phase Counters (C252 to C255) With these co unters only the input ident ified in the previ ous high speed counter t ables can be used for counting. The counting performed by these devices is independent of t he program cycle (s can) time. Dependi ng on the counter u sed, st art[...]

  • Página 104

    FX Series Programmable Controllers Devices in Detail 4 4-3 0 4.12 Data Registers Device Mnemonic: D Purpose: A storage device cap able of storing numeri c dat a or 16/32bit p atterns Alias: Dat a (register/ device/ word) D (register ) D Word A vailable forms : General use registers - see p age 4-34 Battery backed/ lat ched registers - see p age 4-3[...]

  • Página 105

    FX Series Programmable Controllers Devices in Detail 4 4-31 4.12.1 General Use Re gist ers Dat a re gisters , as th e name sugges ts, store data . The stored dat a can be int erpret ed as a numerical value or as a series of bits, bei ng either ON or OFF . A single dat a register cont ains 16bits or one word. However , two con secutive dat a registe[...]

  • Página 106

    FX Series Programmable Controllers Devices in Detail 4 4-3 2 4.12.2 Batter y Backed/ Lat ched Registers Once data is written to a battery backed registe r , it remains uncha nged until it is overwritten. When the PLC’s st atus is changed from RUN to STOP , the dat a in these registers is ret ained. The range of devices that are battery backed can[...]

  • Página 107

    FX Series Programmable Controllers Devices in Detail 4 4-33 4.12.4 File Registers Program memory regi sters File reg isters can be s ecured in t he program memory (EEPROM or EPROM) in units of 5 00 point s. These reg isters can be acc essed with a peri pheral device. While the PLC i s operating, data in the file registers can be read to the gen era[...]

  • Página 108

    FX Series Programmable Controllers Devices in Detail 4 4-3 4 4.12.5 External ly Adjusted Regi sters The FX 1S and FX 1N have buil t in “se tting pot s” whic h are used to adjust the content s of cert ain dedi cated dat a registers. The contents of these regi sters can range from 0 to 255. This is a built in feature and requires no additional se[...]

  • Página 109

    FX Series Programmable Controllers Devices in Detail 4 4-35 4.13 Index Re gisters Device Mnemonic: V, Z Purpose: T o modify a specified device by st ati ng an offse t. Alias: (V/ Z) Regi ster Index (r egister/ addr essing/ modifier ) Off set(s) (regist er / addressing/ modifier) Indices Modifier A vailable forms: For 16bit dat a V or Z (2 de vices)[...]

  • Página 110

    FX Series Programmable Controllers Devices in Detail 4 4-3 6 4.13.1 Modifyi ng a Const ant Constants can be modified just as eas ily as data registe rs or bit devices. If, for example, the const ant K20 was a ctually wri tten K20V the fi nal result would equal: K20 + t he contents of V Example: 4.13.2 Misuse of the Modif iers Modifying Kn devices w[...]

  • Página 111

    FX Series Programmable Controllers Devices in Detail 4 4-37 4.14 Bit s, Words, BCD and Hexadecimal The foll owing section details general topic s relating to good devi ce underst and ing. The sec tion is split in to several small er pa rts wit h each covering one topic or smal l group of top ics. Some of the covered topics are ; Bit devices , in di[...]

  • Página 112

    FX Series Programmable Controllers Devices in Detail 4 4-3 8 Assigning grouped bit devices: As already explained, bi t devices ca n be grouped into 4 bit unit s. The “n” in KnM0 defi nes the number of g roups of 4 bit s to be combin ed for data operation. K1 to K4 are allow ed for 16bit data oper ations but K1 to K8 are valid for 32bit oper ati[...]

  • Página 113

    FX Series Programmable Controllers Devices in Detail 4 4-39 4.14.2 W ord Devices W ord devices such as T , C, D, V and Z can store dat a about a pa rticular event or action withi n the PLC. For the most part these devices are 16 bit registers. However , certain variations do have 32 bit capabilities, a s can pairs of co nsec utive data reg isters o[...]

  • Página 114

    FX Series Programmable Controllers Devices in Detail 4 4-4 0 The rea son this is not -7797 is b ecause a negat ive valu e is calcul ated using two’ s compliment (des cribed later) but can qui ckl y be calculated in the fol lo wing manner: Because this i s a negative number , a base is set as -32768. Thi s is the smallest nu mber available with 16[...]

  • Página 115

    FX Series Programmable Controllers Devices in Detail 4 4-41 c) ABCD conversion Using the ori ginal bit p attern as a base but adding t he following BCD headers allows th e conversion of the binary data into a BCD format. Binary Coded Decimal value= ERROR!!!! ! It will be noticed that t his will produ ce an ERROR. The c onversion will not be correct[...]

  • Página 116

    FX Series Programmable Controllers Devices in Detail 4 4-4 2 4.14.4 T wo’ s C ompliment Programmabl e controllers , computers etc, use a fo rmat call ed 2’s compl iment. This is a mathema tical pro cedure which i s more sui ted to the micro pro cessors opera tional hardware requirement s. It is used to r epresent negativ e numbers and to perfor[...]

  • Página 117

    FX Series Programmable Controllers Devices in Detail 4 4-43 4.15 Floating Point And Scientific Notation PLC’ s can use many di fferent s ystems and metho ds to store data. The most common have already been disc ussed in previous section s e.g. BCD, Binary , Decimal, Hex. These are what is known as ‘ integer ’ formats or ‘whole number format[...]

  • Página 118

    FX Series Programmable Controllers Devices in Detail 4 4-4 4 4.15.1 Scient ific Not ation This format coul d be called the step between the ‘i nteger ’ format s and the full floati ng point format s. In basic t erms Scientif ic Notat ion use two devices to store infor mation about a numbe r or value. One device contains a data string of the act[...]

  • Página 119

    FX Series Programmable Controllers Devices in Detail 4 4-45 4.15.2 Float ing Point Format Floating point format extends the abilities and ranges provided by S cientific Notation with the abili ty to represent fractio nal portions of whole numbe rs, for example; Performin g and displ ayi ng the calculation of 22 divide d by 7 would yield the followi[...]

  • Página 120

    FX Series Programmable Controllers Devices in Detail 4 4-4 6 4.15.3 Summary Of The Scientific Not ation and Floating Point Numbers The inst ruction neede d to convert between each numbe r format ar e shown belo w in a diagrammati cal ly format for quick and easy refere nce. ´ ´[...]