Mitsubishi Electronics FX0S 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382

Go to page of

A good user manual

The rules should oblige the seller to give the purchaser an operating instrucion of Mitsubishi Electronics FX0S, along with an item. The lack of an instruction or false information given to customer shall constitute grounds to apply for a complaint because of nonconformity of goods with the contract. In accordance with the law, a customer can receive an instruction in non-paper form; lately graphic and electronic forms of the manuals, as well as instructional videos have been majorly used. A necessary precondition for this is the unmistakable, legible character of an instruction.

What is an instruction?

The term originates from the Latin word „instructio”, which means organizing. Therefore, in an instruction of Mitsubishi Electronics FX0S one could find a process description. An instruction's purpose is to teach, to ease the start-up and an item's use or performance of certain activities. An instruction is a compilation of information about an item/a service, it is a clue.

Unfortunately, only a few customers devote their time to read an instruction of Mitsubishi Electronics FX0S. A good user manual introduces us to a number of additional functionalities of the purchased item, and also helps us to avoid the formation of most of the defects.

What should a perfect user manual contain?

First and foremost, an user manual of Mitsubishi Electronics FX0S should contain:
- informations concerning technical data of Mitsubishi Electronics FX0S
- name of the manufacturer and a year of construction of the Mitsubishi Electronics FX0S item
- rules of operation, control and maintenance of the Mitsubishi Electronics FX0S item
- safety signs and mark certificates which confirm compatibility with appropriate standards

Why don't we read the manuals?

Usually it results from the lack of time and certainty about functionalities of purchased items. Unfortunately, networking and start-up of Mitsubishi Electronics FX0S alone are not enough. An instruction contains a number of clues concerning respective functionalities, safety rules, maintenance methods (what means should be used), eventual defects of Mitsubishi Electronics FX0S, and methods of problem resolution. Eventually, when one still can't find the answer to his problems, he will be directed to the Mitsubishi Electronics service. Lately animated manuals and instructional videos are quite popular among customers. These kinds of user manuals are effective; they assure that a customer will familiarize himself with the whole material, and won't skip complicated, technical information of Mitsubishi Electronics FX0S.

Why one should read the manuals?

It is mostly in the manuals where we will find the details concerning construction and possibility of the Mitsubishi Electronics FX0S item, and its use of respective accessory, as well as information concerning all the functions and facilities.

After a successful purchase of an item one should find a moment and get to know with every part of an instruction. Currently the manuals are carefully prearranged and translated, so they could be fully understood by its users. The manuals will serve as an informational aid.

Table of contents for the manual

  • Page 1

    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 )[...]

  • Page 2

    [...]

  • Page 3

    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. • Before a ttemptin g to[...]

  • Page 4

    FX Series Programmable Controllers ii[...]

  • Page 5

    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. However ,to continue this process [...]

  • Page 6

    FX Series Programmable Controllers iv[...]

  • Page 7

    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. The defini tion of such a person o r persons i s as follo ws; a) A[...]

  • Page 8

    FX Series Programmable Controllers vi[...]

  • Page 9

    i Contents 1. Introduction ............................................. ........................ ....................... 1-1 1.1 Ov ervi ew ........ .... ..... .... ..... .... ..... .... .... ..... ...... ..... .... ..... .... .... ..... .... ..... .... ..... ...... ..... 1-1 1.2 Wha t is a Pr o g ramm able Con trolle r? ...... .... ..... .... ...[...]

  • Page 10

    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 . .... ..... .... ..... ...... ..... .... .... ..... .... ..... .... .... ..... .... ....... .... ...[...]

  • Page 11

    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.11.2 Avai labilit y of Hi g h Speed Cou nters on FX 0 , FX 0S and FX 0N PLC’s . ..........[...]

  • Page 12

    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) ................ ............. ............. ............. ............. ............. .........[...]

  • Page 13

    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) .................... ............. ............. ............ ............. ............. ............. ........ 5 -53 5.6.2 REFF (FNC 51) .................. ............. ............. ............ ............[...]

  • Page 14

    vi 5.11 Floati n g Poin t 1 & 2 - Fu nctions 110 to 129 ...... ............. ............. ............ ........ 5-119 5.11.1 ECM P (FNC 110) ........ ............. ............. ................... ............. ............. ............. ...... 5-12 1 5.11.2 EZCP (FNC 111 ) ................ ............. ............. ............ ..........[...]

  • Page 15

    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 ... ..... .... ..... .... .... ..... .... ..... .... .... ....... .... .[...]

  • Page 16

    viii 10.15PID Pro g ramm in g Techniques ...... ......... ......... ......... .......... ......... ........... ......... 10-24 10. 15.1K eepin g MV withi n a set ran g e .................... ............ ............. ............. ............. ...... 10 -24 10.15.2Manual /Autom atic cha n g e over ...... ...... ....... ...... ...... ....... .....[...]

  • Page 17

    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 System Devices 10 Points of T echnique 11 I n d e x FX Series Programmable Controllers Introductio n 1[...]

  • Page 18

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

  • Page 19

    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). For all information r elatin g to the PLC hardware and install ation, refer to the appropriate manual suppli ed[...]

  • Page 20

    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. These events are t ri gg ered b y stimul i (usuall y called inputs) received at the PLC or throu g h dela y ed actions such as time [...]

  • Page 21

    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). These ch an g es are similar to th ose experien[...]

  • Page 22

    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 .The us er must pro g ram the ’mimic’ instru ction with t he modif y in g M coil in a SET instruction immediat el y before the ins tructio[...]

  • Page 23

    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.00 FX-20DU-E Supports up to FX devices onl y FX-25DU-E from V 2.[...]

  • Page 24

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

  • Page 25

    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 System Devices 10 Points of T echnique 11 I n d e x FX Series Programmable Controllers Basic Program Instructions 2[...]

  • Page 26

    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? .. ....... .... ..... .... .... ..... .... ..... .... .... ..... ...... ..... .... ..... .... ..... .... .... ... 2 -1 2.2 Outli ne of [...]

  • Page 27

    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. Not all pro g rammin g tools c an work in al l pro g rammin g forms. Generall [...]

  • Page 28

    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. However , the basic princi ple remains the same. A coil d rives direct outputs of th e [...]

  • Page 29

    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). Mnem[...]

  • Page 30

    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 . - It is possible to connect multipl e OUT instructions i n parallel (for example see [...]

  • Page 31

    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. The example pro g ram shown opposite identifies a doubl e coil situation; t here are t[...]

  • Page 32

    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”). - The output pro[...]

  • Page 33

    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. T o connect a block that contains more than one cont act connec ted in se ries to another circui t block in parallel, use an OR B instructi on[...]

  • Page 34

    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 . - Or use LDP and LDF inst ructions to defi ne a new block of pr o g ram when usin g the ORB and ANB instructions (s ee late[...]

  • Page 35

    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 . - ANP is active for one pro g ram scan after the associated d e[...]

  • Page 36

    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 . - ORP is active for one pro g ram scan after the associated d[...]

  • Page 37

    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 . - Use the ORB instruc tion to connect mult i-contact cir cuits (usuall y serial circuit bl ocks) to the prece din g circu[...]

  • Page 38

    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 associated with an y device number - Use the ANB instruction t o connect multi-contact ci rcuits (usuall y paralle l circuit blocks ) to the precedi n g circui[...]

  • Page 39

    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. - MPS stores the connection poi nt o[...]

  • Page 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 [...]

  • Page 41

    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. An MC R in stru ction retur ns th is to th e ori g inal bus line. - The MC ins[...]

  • Page 42

    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. Level N1 : MCRN2 ex ecutes a nd restores b us line (C). If the MCR had reset N 0 then the[...]

  • Page 43

    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 . Y0 remains OFF even after X1 tu rns OFF . - SET and RST instructions can be used for the [...]

  • Page 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, 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). On resettin g , all active contacts, coils a nd[...]

  • Page 45

    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. The output contact i[...]

  • Page 46

    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. - When a PLF instruction is executed, ob j ect devices Y [...]

  • Page 47

    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. -U s a g e is the same as for AND and ANI; see earlier . Mnemonic Function For m at Devices[...]

  • Page 48

    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. - It is possible t o chan g e the operat ion of a circ uit b y replacin g pro g rammed inst ructio[...]

  • Page 49

    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. - Inserti n g END instructions in the mid dle of the pro g ram helps pro g ram[...]

  • Page 50

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

  • Page 51

    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 System Devices 10 Points of T echnique 11 I n d e x FX Series Programmable Controllers STL Pro gramming 3[...]

  • Page 52

    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? ........... ............. ............. ............ ............ 3-1 3.2 H ow STL Oper ates . .... ..... .... ..... ...... ..[...]

  • Page 53

    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. W e at Mitsubishi would like to take this opportuni t y t[...]

  • Page 54

    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. STL de rives it s stren g th b y or g anizin g a lar g er pro g ram into smaller[...]

  • Page 55

    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.3 How T o Start And End An STL P rogram Before an y complex pro g r[...]

  • Page 56

    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 . The STL ste p started in this manner is often referred to as the[...]

  • Page 57

    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. It was als o noted that usin g an OUT s tatemen t to drivin g a state co il[...]

  • Page 58

    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’. OUT is used for loops and jumps If a user wishes to ‘ j ump’ back up a pro g [...]

  • Page 59

    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. These a re hi g hli g hted in this secti on. 3.5.1 Basic Notes On [...]

  • Page 60

    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. If timers are dual coiled car e m[...]

  • Page 61

    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. Method 1 - Using locking devices In this ex ample it is necessar y to pr o g ram separate l ockin[...]

  • Page 62

    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. Other instruc tion restrictions are l iste[...]

  • Page 63

    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. For example certain machines re[...]

  • Page 64

    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 . Appl ications coul[...]

  • Page 65

    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. The flow whic h completes fast est would then activate a j oin in g function (“ Fir st State Mer g e” descr ibed in the previo us section) OR b) The STL flow [...]

  • Page 66

    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 . Hence, the poss ibilit y exist s for a sin g le ini tial st ate to branch to 8 branch f[...]

  • Page 67

    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 . As par t of thi s abilit y it can read and con vert exist in g STL pro g rams back into SFC flow s even if the y were never ori g inall y pro g rammed usin [...]

  • Page 68

    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. This is [...]

  • Page 69

    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.e. M2 is reset. If M2 was reset (in state S21) the pr o g ram ‘ j[...]

  • Page 70

    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 . Th[...]

  • Page 71

    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 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 do[...]

  • Page 72

    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. When t he IST instruction is used an au tomatic assi g nmen t of stat e rela y s,[...]

  • Page 73

    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 System Devices 10 Points of T echnique 11 I n d e x FX Series Programmable Controllers Devices in Detail 4[...]

  • Page 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[...]

  • Page 75

    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.e. X0 t o X7, X1[...]

  • Page 76

    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) Output (Y) Output (coil / rela y / contact) A vailable forms: NO ( ) and NC contacts and output coil s ( ) (see ex am ple device usa g e for refe ren ces[...]

  • Page 77

    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 / contact/ fl a g ) M (co il/ re la y / conta ct /fl a g ) M (bit) dev i ce A vailable forms: NO ( ) and NC contacts and output coil s ( ) (see ex am ple devi[...]

  • Page 78

    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. When operation is resu[...]

  • Page 79

    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. a) Usin g contacts of specia l auxiliar y rela y s - Coils are driven automat icall y b y the[...]

  • Page 80

    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 ) S (coil/ re la y / contact /fl a g ) STL step (coil/ rela y / contac t /fla g ) Annuncia tor fla g A vailable forms: NO ( ) and NC contacts and out[...]

  • Page 81

    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. When operation is resumed [...]

  • Page 82

    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. Th e step identifi ed[...]

  • Page 83

    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. These i nstructions are; ANS function 46: ANnunci ato r Set - see pa g e 5-47 ANR function 47: ANnunci ato r Reset - see pa g e [...]

  • Page 84

    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. Devices numbered in: Decimal, i.e. P0 to P9, P10 to P19 Further us es: Can[...]

  • Page 85

    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). De[...]

  • Page 86

    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. The pro g ram sequence returns from the interr u[...]

  • Page 87

    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. Howe ver for all PLC t y pes the head add[...]

  • Page 88

    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 forms: Numeric data v alue, when used for 16bit dat a, values can be selected from the ran g e -32,768 to +32,767 For 32bit dat a, values from t he ran [...]

  • Page 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 c oil sets int ernal PLC contact s (NO and NC cont acts availabl e). V arious timer resolutions are possible, from 1 to 100 msec, but availabilit y and quantit y var y from PLC to PL[...]

  • Page 90

    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. The overall durati on o r elapsed ti me, for a timers operation c y cle, is c a lc ula[...]

  • Page 91

    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. Because the[...]

  • Page 92

    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. The output cont act is activated when a coil ins[...]

  • Page 93

    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). V ari ous count er resolutions are poss ible inclu d in g ; General/latched 16bit up counters - see pa g e 4-20 [...]

  • Page 94

    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). After this, the count er data remains unchan g ed whe[...]

  • Page 95

    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 . The [...]

  • Page 96

    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). There are various t y pes of hi g h speed[...]

  • Page 97

    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. The refore , if an input is alr ead y bein g used b y a hi g h speed counter , it cannot be used for an y other hi[...]

  • Page 98

    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 available hi g h speed counters on both the FX 0 , FX 0S and t he FX 0N ; Ke y : U - up cou nter input D - down counter i nput R - reset counter (input) S [...]

  • Page 99

    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 . Ke y : U - up cou nter input D - down counter i nput R - reset counter (input) S - star t counter (i nput) A - A[...]

  • Page 100

    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. • Please take care[...]

  • Page 101

    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. Thus, the y can be treated in the same wa y as the 1 phase counters when calculat in [...]

  • Page 102

    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) . Ke y : U - up counter input D - down counter i nput R - reset counter (input) S - star t counter (i nput) A - A phase [...]

  • Page 103

    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. When X1 1 is ON, C235 resets to 0 (zero). All contacts of the counte r C235 are also reset. [...]

  • Page 104

    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. When it is OFF C245 will c ount up. When X14 is O[...]

  • Page 105

    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. When X10 is ON, C246 resets in the same wa y as standar d 32bit counter s. Counter C246 uses[...]

  • Page 106

    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. Dependin g on the counter used[...]

  • Page 107

    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 e g ister/ devi ce/ word) D (re g iste r) D Word A vailable forms : General use re g ister s - s ee p a g e 4-34 Batter y backed/lat ched re g isters [...]

  • Page 108

    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 . A sin g le data re g ister contains 16b its or one word. Howev er , two consec utive data re g ist[...]

  • Page 109

    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. The ran g e of devices that is batter y ba[...]

  • Page 110

    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 block s of 500 and are avail- able on FX 0N , FX, F X 2C and FX 2 N(C) products - RAM re g isters - t hese o ccup y a special data area a nd are availab[...]

  • Page 111

    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. This is a built in feature and requires no additi[...]

  • Page 112

    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. Alias: (V/ Z) Re g iste r Index (re g ister/ addressin g / modifier) Offset(s) (r e g ister/ addressi n g / modifier) Indices Modifier A vailable forms: For 16bit data V or Z (2 de[...]

  • Page 113

    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.13.2 Misuse of the Modifiers Modif y in g Kn devic[...]

  • Page 114

    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. Some of the covered topics are ; Bit devices ,[...]

  • Page 115

    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. K1 to K4 are allow ed for 16bit data opera ti ons but K1 to K8 are val id for 32bit operatio[...]

  • Page 116

    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. F or the mo st part these devices a re 16 bit re g isters. However , certain variations do have 3 2 bit capab ilities, a s can pairs of con secut ive data re g [...]

  • Page 117

    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. This is the smallest numbe r available with 1[...]

  • Page 118

    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. The conversi on will not be cor[...]

  • Page 119

    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. It is us ed to represent ne g ative numbers and to perfor [...]

  • Page 120

    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. These are what is known as ‘inte g er ’ formats or ‘whole number [...]

  • Page 121

    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. One device contains a data strin g of the ac[...]

  • Page 122

    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 to represent fr actional portions of whol e numbers, for example; Performin g and displ a y in g the calculation of 22 div ided b y 7 would y ield the[...]

  • Page 123

    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. FLT (FNC 49) FLT (FNC 49) + M8023 ON Floatin g Point Numbers (1 × 32 bit[...]

  • Page 124

    FX Series Programmable Controllers Devices in Detail 4 4-5 0 MEMO[...]

  • Page 125

    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 System Devices 10 Points of T echnique 11 I n d e x FX Series Programmable Controllers Applied Instructio ns 5[...]

  • Page 126

    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 ........................ ............ ............. ............. ............. .......... 5-4 5.1.1 CJ (FNC 00 ) .. ...... [...]

  • Page 127

    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. V arious identification lett ers will be used to associate each operand with it s f[...]

  • Page 128

    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. T y pical inst[...]

  • Page 129

    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. 2. 3. 4. 5. 6. 7. 8. 9. 10. 1 1. 12. 13. 14. 15. 16.  Pro g ra[...]

  • Page 130

    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 Return FNC 02 5-8 IRET - Interr upt Return FNC 03 5-9 EI - Enable I nterrupt FNC 04 5-9 DI - Disable Interrupt FNC 05 5-9 FEND - Fi rst End FNC 06 5-1[...]

  • Page 131

    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 alid p ointers from the ran g e 0 to 63 CJ , CJP:3steps Jump p ointer P PP : 1 step P9 CJ P9 X20 [ D ] X21 P 9 P 9 CJ P9 X20 CJ X1 P 0 CJ P0 X0 M8000 [...]

  • Page 132

    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.e . to-w ar ds th e END instruction OR it can j ump backwards towards step 0. If a backwards j ump is us ed care must be taken not to overrun the watchdo g tim er settin g otherwise the PLC will e[...]

  • Page 133

    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. Subro utine pointers and the pointers used for CJ (FNC 00) instr[...]

  • Page 134

    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. Points t o note: a) SRET can onl y be used with the CALL instruction[...]

  • Page 135

    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 . Once the interrupt has been processed the main pro g ram flow cont [...]

  • Page 136

    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. The EI instr uction must be used to activat e the interrupt fac ilities. All interrupts which ph y sicall y occur dur in g the pro g ram scan period from the EI instruction u ntil the F[...]

  • Page 137

    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.e. output proc[...]

  • Page 138

    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. It is assumed that if this ti m e limi t is exceeded there is an erro r at so[...]

  • Page 139

    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 . Points t o note: a) The FOR ins truction operates in a 16 b i t m[...]

  • Page 140

    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. As each new FOR-NEXT nest level is encountered the number of times [...]

  • Page 141

    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. 2. 3. 4. 5. 6. 7. 8. 9. 10. 1 1. 12. 13. 14. 15. 16.  Pro g r[...]

  • Page 142

    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-18 SMOV - Shift Move FNC 13 5-18 CML - Compliment FNC 14 5- 19 BMOV - Block Move FNC 15 5-20 FMOV - Fill Move FNC 16 5-21 XCH - Exchan g e FNC 17 5-2[...]

  • Page 143

    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. The b it devices indicate : S 2 is less than S 1 - bit device D is ON S 2 is equal to S 1 - bit device D +1 is ON S 2[...]

  • Page 144

    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. 5.2.4 SMOV (FNC 13) Operation 1: This instruction copies a specified numbe[...]

  • Page 145

    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.e. This instruction co[...]

  • Page 146

    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) . This is moved to the dest ination d evice (D) [...]

  • Page 147

    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). If the s pecified number of destination devices (n) [...]

  • Page 148

    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) . If the conve rted BCD number exceeds the oper ational ran g es of 0 to 9, 999 (16 bit operation) and 0 to 99[...]

  • Page 149

    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. 2. 3. 4. 5. 6. 7. 8. 9. 10. 1 1. 12. 13. 14. 15. 16.  Pro g r[...]

  • Page 150

    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 MUL - M ultiplication FNC 22 5-27 DIV - Division FNC 23 5-28 INC - Increment FNC 24 5-29 DEC - Decrement FNC 25 5-29 W AND - Word AND FNC 26 5-30 WOR - [...]

  • Page 151

    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). Points t o note: a) All calculation s are al g ebraical l y processed, i.e. 5 + (-8)= -3. [...]

  • Page 152

    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. When M8023 is reset, i.e. OFF floatin g poin t man[...]

  • Page 153

    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). Not e the nor mal rules of al g ebra appl y . Points t o note: a) When op eratin g the MUL i[...]

  • Page 154

    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 . Points to n ote: a) When operat in g the DIV instruction i[...]

  • Page 155

    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. In 16 bi t operation, when +32,767 is reached, the next in crement will write a value of -32,768 to the[...]

  • Page 156

    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). The followin g rules are us ed to deter[...]

  • Page 157

    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). The followin g rules are used to determine[...]

  • Page 158

    FX Series Programmable Controlers Applied Instructio ns 5 5-3 2 MEMO[...]

  • Page 159

    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. 2. 3. 4. 5. 6. 7. 8. 9. 10. 1 1. 12. 13. 14. 15. 16.  Pro g r[...]

  • Page 160

    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 - Rotation Ri g ht with Carr y FNC 32 5-36 RCL - Rotation Lef t with Carr y FNC 33 5-36 SF TR - (Bit) Shift Ri g ht FNC 34 5-37 SF TL - (Bit) Shift Left F[...]

  • Page 161

    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. The exam ple shown left i s based on the ins truction n[...]

  • Page 162

    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. On the followin g operat ion of the instruction M8022[...]

  • Page 163

    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. An y bit dat a movin g to a position exceedin g the n 1 limit is[...]

  • Page 164

    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. An y word data mov in g to a posi tion exceedin g the n 1 limi[...]

  • Page 165

    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. The destinatio n device (D) is t he head a ddress of the FIFO stack . The contents of D identif y [...]

  • Page 166

    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). This instru ction reads the first piece of d ata from [...]

  • Page 167

    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. 2. 3. 4. 5. 6. 7. 8. 9. 10. 1 1. 12. 13. 14. 15. 16.  Pro g r[...]

  • Page 168

    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-44 SUM - The Sum Of Active Bits FNC 43 5-45 BON - Check Specified Bit Status FNC 44 5-45 MEAN - Mean FNC 45 5-46 ANS - (T imed) Annuncia tor Set FNC [...]

  • Page 169

    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.e. also set to 0 (zero). The specif ied device ran g e[...]

  • Page 170

    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). Points t o note: a) The readabl e ran g e is defined b y the lar g est[...]

  • Page 171

    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) . If a double word format is used, bo th the source an d destinatio n device s us[...]

  • Page 172

    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. The va lue of a ll the d evice s wi thin th e so urce ran g e is summed and th en di[...]

  • Page 173

    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 . When the timer comple tes its c y cle the assi g ned annunciator ( D) is set ON. If the instruc t ion is switched OFF durin g or afte r completion of the timin g c y cle the timer is a[...]

  • Page 174

    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). The operat ion is conducte d enti rel y in whol e in te g ers render in g the square root answer rounded to the lowest whole numb[...]

  • Page 175

    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). Please note that two consecutive devices (D and D +1 ) will[...]

  • Page 176

    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. M8021, Borrow: is activated when the result is sma ller[...]

  • Page 177

    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. 2. 3. 4. 5. 6. 7. 8. 9. 10. 1 1. 12. 13. 14. 15. 16.  Pro g r[...]

  • Page 178

    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-53 MTR - Input matrix FNC 52 5-54 HSCS - Hi g h speed counter set FNC 53 5-55 HSCR - Hi g h speed coun ter reset FNC 54 5-56 HSZ - Hi g h speed counter[...]

  • Page 179

    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. The R EF in[...]

  • Page 180

    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. The result is stored i n[...]

  • Page 181

    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. As a g eneral pr ecau[...]

  • Page 182

    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.e. Y0-7, M10-17. c) A ll hi g h speed cou nter fu ncti ons use an i nte rrupt p rocess, h ence, all des ti nation d evi ce[...]

  • Page 183

    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 ). Also, all of the outp[...]

  • Page 184

    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 . The data table is pr ocessed one ‘record number’ at a time, i.e onl y 1 reco rd is ever active[...]

  • Page 185

    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. This then[...]

  • Page 186

    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. The time remaini n g on the current ‘ timed count’, is displa y ed i[...]

  • Page 187

    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. Points t o note: a) Users of the FX PLC can specif y output[...]

  • Page 188

    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 ). And how lon g , also[...]

  • Page 189

    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. This ins truction is use[...]

  • Page 190

    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. f) If the number of pulses is not enou[...]

  • Page 191

    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. 2. 3. 4. 5. 6. 7. 8. 9. 10. 1 1. 12. 13. 14. 15. 16.  Pro g r[...]

  • Page 192

    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 Drum FNC 62 5-70 INCD - Incremental Drum FNC 63 5-71 TTMR - T eachin g T imer FNC 64 5-72 STMR - Special T imer - Definab le FNC 65 5-72 AL T - Alterna[...]

  • Page 193

    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. Points t o note: a) The IST instr uction automaticall y assi g ns and uses man y bit fla g s a[...]

  • Page 194

    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. Ther e are sub-modes to these g roups. Thei r operation i s defined as: Manual Manual (selected b y device S+0)- Powe r suppl y to individual loads is t urned ON and OFF b y usin g a separatel[...]

  • Page 195

    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. Poi[...]

  • Page 196

    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. Points t o note: a) The current value of the selecte d counter (S2) is compared a g ai[...]

  • Page 197

    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) . Points t o note: a) This ins truction uses a ‘data table’ [...]

  • Page 198

    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.[...]

  • Page 199

    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 . This will occur on ever y pro g ram scan unless a pulse modifi er or a pro[...]

  • Page 200

    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. This means when the cur rent value of D equals S2the RA MP instruction[...]

  • Page 201

    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. These ar e listed on the ri g[...]

  • Page 202

    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). Before startin g an y new operation it is advisable to ensure th e rotar y table is initialized b y movin g the ‘zero poi nt’ drive do g or marker around to th e ‘zero p[...]

  • Page 203

    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 . The resulti n g (new) da[...]

  • Page 204

    FX Series Programmable Controlers Applied Instructio ns 5 5-7 8 MEMO[...]

  • Page 205

    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. 2. 3. 4. 5. 6. 7. 8. 9. 10. 1 1. 12. 13. 14. 15. 16.  Pro g r[...]

  • Page 206

    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 DSW - Di g ital Switch (Thumbwheel input) FNC 72 5-83 SEGD - Seven Se g ment Decoder FNC 73 5-84 SEGL - Seven Se g men t With Latch FNC 74 5-85 AR W S[...]

  • Page 207

    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.[...]

  • Page 208

    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. Points t o note: a) Each of the first 10 mu[...]

  • Page 209

    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.e. M8039 is set ON and a user defined scan time is writ ten to re g ister D8039. Ho[...]

  • Page 210

    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.e. thos e usin g the fi rst 4 inputs, is read i nto data devi ce D 2 . The data from th[...]

  • Page 211

    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 ). Beca use the lo g ic used with latch ed seven se g ment displa y s varies between displa y manufact ur es, this i nstruction can be modified t o suit m[...]

  • Page 212

    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.07. FX units wit[...]

  • Page 213

    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. Th e data wi thin D 1 is actuall y in a standar d decimal f ormat but is automatical l y conver ted to BCD for displa y on the sev [...]

  • Page 214

    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). The source dat a is converted to its associated ASCII c[...]

  • Page 215

    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 ). The final two destination bits provide a strobe si g nal (D +10 , nu[...]

  • Page 216

    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 spec ial fu nction blo ck with the lo g ical bloc k posit ion specified as m 1, The rea d data is s tored in t he PLC at head address D f or n word devic[...]

  • Page 217

    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. This is ach ieved b y controllin g the spe cial auxilia r y fla[...]

  • Page 218

    FX Series Programmable Controlers Applied Instructio ns 5 5-9 2 MEMO[...]

  • Page 219

    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. 2. 3. 4. 5. 6. 7. 8. 9. 10. 1 1. 12. 13. 14. 15. 16.  Pro g r[...]

  • Page 220

    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 FNC 81 5-96 ASCI - Hexadecimal to ASCII FNC 82 5-98 HEX - ASCII to Hexadecimal FNC 83 5-99 CCD - Check Code FNC 84 5-100 VRRD - FX-8A V V olume Read [...]

  • Page 221

    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. e. FX 0N -232ADP , FX- 232ADP etc. Points t o note: a) This i nstruction has man[...]

  • Page 222

    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. Points t o note: a) Paral lel link comm[...]

  • Page 223

    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. This means if K4X20 was moved usin g the PRUN instruction to K4M920, data wo[...]

  • Page 224

    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. Points t o note: Pleas e note th at data is co[...]

  • Page 225

    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. Points t o note: Please note that this in struc[...]

  • Page 226

    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. These two pieces of data are then stored at the dest i nation (D). Points t o note:[...]

  • Page 227

    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. 5.9.7 VRSD (FNC 86[...]

  • Page 228

    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 ). The difference or error betw een th e two v alues is then processed throu g h a PID loop to produce a correct ion factor whic h also takes into accoun t pre[...]

  • Page 229

    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 us E rror V alu e D n- 1 = the previous Derivati ve V alue SV = the Set Point V alue (S 1 ) K P = the Proportion Constant PV n = the current Pro cess [...]

  • Page 230

    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. Para m ete rs S 3 +0 t[...]

  • Page 231

    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. P - proportional chan ge When a prop ortional facto r is app[...]

  • Page 232

    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 on the Current V alue, there is a filterin g mechanism which allows the PID instruction to observe and account f or an y si g nificant fluctuati ons ov[...]

  • Page 233

    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. The PI D instruc tion will be activated when M4 is On. From the PI D in struction at t[...]

  • Page 234

    FX Series Programmable Controlers Applied Instructio ns 5 5-108 MEMO[...]

  • Page 235

    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. 2. 3. 4. 5. 6. 7. 8. 9. 10. 1 1. 12. 13. 14. 15. 16.  Pro g [...]

  • Page 236

    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 Read FNC 91 5-1 1 1 ANWR - F 2 -6A, Analo g Wr it e FNC 92 5-1 12 RMST - F 2 -32RM, RM Start FNC 93 5-1 12 RMWR - F 2 -32RM, RM Write FNC 94 5-1 13 RMRD[...]

  • Page 237

    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. The head addr ess I/O numbers for both S and D ar e determined b y the posit ion of the FX 2 - 24EI (conne cted to th[...]

  • Page 238

    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. The written an alo g value is stored in source devi ce S 1 . The head addr ess I/O numbers f or both S 2 and Dare determined b y the posi tion of the FX 2 - 24EI[...]

  • Page 239

    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. The head addr ess I/O numbers f or bot[...]

  • Page 240

    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. The head a ddress I/O numbe rs for both Sand D 1 are det ermined b y th e position of the FX 2 - 24EI (conne cted to the F 2 -3 2RM) wi[...]

  • Page 241

    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. Points t o note: a) The head address I/ O numbers for both Sand D 1 are determined b y the position of the FX 2 - 24EI[...]

  • Page 242

    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.e. 0 to 77 a nd are prefixed b y M. Points t o note: a) The head address I/ O number for [...]

  • Page 243

    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. 2. 3. 4. 5. 6. 7. 8. 9. 10. 1 1. 12. 13. 14. 15. 16.  Pro g [...]

  • Page 244

    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 - Float Zone Compare FNC 1 1 1 5-1 19 - Not Available FNC 1 12 to 1 17 EBCD - Float to Scientific FNC 1 18 5-120 EBIN - Scientific to Float FNC 1 19 5-12[...]

  • Page 245

    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. The bit de vices indicate: S 2 is less than < S 1 - bi t device D is ON S 2 is equal to = S 1 - bi t de vi[...]

  • Page 246

    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. The destinat ions D and D +1 represent the mantissa a nd expon[...]

  • Page 247

    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.e., D EADD or D EADDP . All [...]

  • Page 248

    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. See pa g e 5-12[...]

  • Page 249

    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. No remainder i s calc ulated. Points t o note: Points a, b, c, d of the EADD instru ction appl [...]

  • Page 250

    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. For sin g le word (16 bit ) op[...]

  • Page 251

    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. 2. 3. 4. 5. 6. 7. 8. 9. 10. 1 1. 12. 13. 14. 15. 16.  Pro g [...]

  • Page 252

    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. S - Source device. m, n- Number of active d evices, bit[...]

  • Page 253

    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.e., D SIN or D SINP . All source and destination da ta will[...]

  • Page 254

    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. See pa g e 5-127. 5.12.3 T AN (FNC[...]

  • Page 255

    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. 2. 3. 4. 5. 6. 7. 8. 9. 10. 1 1. 12. 13. 14. 15. 16.  Pro g [...]

  • Page 256

    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. S - Source device. m, n- Number of active d evices, bits or an operat ional const[...]

  • Page 257

    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). Points t o note: a) In si n g le word (16 bi t) operation the up per and lower b y te of the sourc[...]

  • Page 258

    FX Series Programmable Controlers Applied Instructio ns 5 5-132 MEMO[...]

  • Page 259

    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. 2. 3. 4. 5. 6. 7. 8. 9. 10. 1 1. 12. 13. 14. 15. 16.  Pro g [...]

  • Page 260

    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 161 5-136 T ADD - Time Add FNC 162 5-137 TSUB - T ime Subtract FNC 163 5-138 - Not Available FNC 164 to 165 TRD - Read R TC data FNC 166 5-139 TWR - Se[...]

  • Page 261

    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. The result is indicated i n the 3 bit devices speci fied b y the head address D. Th[...]

  • Page 262

    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. The bit devices[...]

  • Page 263

    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. Points t o note: a) The addition is perform ed ac[...]

  • Page 264

    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. Points t o note: a) The s ubtraction is perfo[...]

  • Page 265

    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 . This ca n be chan g e to [...]

  • Page 266

    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 . When s ettin g the [...]

  • Page 267

    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. 2. 3. 4. 5. 6. 7. 8. 9. 10. 1 1. 12. 13. 14. 15. 16.  Pro g [...]

  • Page 268

    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. S - Source device. m, n- Number of active d evices, bits or an operat i[...]

  • Page 269

    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. For example, i[...]

  • Page 270

    FX Series Programmable Controlers Applied Instructio ns 5 5-144 MEMO[...]

  • Page 271

    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. 2. 3. 4. 5. 6. 7. 8. 9. 10. 1 1. 12. 13. 14. 15. 16.  Pro g [...]

  • Page 272

    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. S - Source device. m, n- Number of active d evices, bits or an oper[...]

  • Page 273

    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. If the comparison is f als e then the LD contact is not active. Points t o note: The LD compari[...]

  • Page 274

    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. If the comparison is false then the AND contact is not a ctive. Points t o note: The AND compa[...]

  • Page 275

    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. If the compar ison is false then the OR contact is not active. Points t o note: The OR c ompar[...]

  • Page 276

    FX Series Programmable Controlers Applied Instructio ns 5 5-150 MEMO[...]

  • Page 277

    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 System Devic es 10 Points of T echnique 11 I n d e x FX Series Programmable Controllers Diagnostic Devices 6[...]

  • Page 278

    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) ..................... ................... .... 6-2 6.2 Clock Dev ices (M8010 to M8019 and D8010 t o D8019) ........[...]

  • Page 279

    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 . There are so me var iation s in the appli cation of thes e devices t o members of the F X PLC famil y , thes e are noted wher e appropr[...]

  • Page 280

    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 contact D8000 ( ) W atchdo g timer FX, FX 2C : 100ms FX 0 , FX 0S , FX 0N , FX 2N : 200ms See note 1 M8001 ( ) RUN monitor NC contact D8001 ( ) PLC t y p[...]

  • Page 281

    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). Diagnostic Dev[...]

  • Page 282

    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. AC input filt ers are not ad j ustable. Diagnostic Device Operati on Diagnostic Device Operatio [...]

  • Page 283

    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 .V LED no t lit D8030 ( ) (FX 0N only) V alue read f [...]

  • Page 284

    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. General note: • All STL states are updated when the END instructi on is executed. Diagnostic Device Operatio n Diagnostic Devic e Oper ation M8040 ( ) STL transfer disab le When ON S TL state t[...]

  • Page 285

    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. Diagnostic Device Operatio n Diagnostic Devic e Oper ation M8050 ( ) I00 disabl e When the E I (FNC 04) instruc tion i s driv en in t he user pr o g ram, all interrupts are enabl ed unles s the [...]

  • Page 286

    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.E LED PLC ST A TUS M8060 ( ) I/O confi g ura- tion error (No t FX 0(S) , FX 0N ) Whil e the PLC is in RUN OFF RUN D806 0 ( ) (No t FX 0(S) , FX 0N )[...]

  • Page 287

    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. Diagnostic Device O peration Dia gnostic Device Operatio n M8070 ( R)[...]

  • Page 288

    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. e. 232A DP , 485ADP (M8120 to M8 129 and D8120 to D8129) Diagnostic Device O peration Dia gnostic Device Operatio n D8102 ( ) Memor y Capacit y 0002: 2K steps 0004: 4K steps 0008:[...]

  • Page 289

    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 O peration Dia gnostic Device Operatio n M8130 Selec ts co mparis on tabl es to be used with the HSZ instru ction D8130 ( )( ) Contains the num ber of[...]

  • Page 290

    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 M8160 Selec tion o f XCH ope ration to swap b y tes i n a sin g le data word M8180 Reser ved M8161 Selec tion o f 8 bi t operati ons for appli ed ins tru[...]

  • Page 291

    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 r e g ister D8181 ( ) D8191 ( ) V5 ind ex re g iste r D8182 ( ) Z1 index re g ister D8192 ( ) Z6 in dex re g ister D8183 ( ) V1 ind ex re g ister D819[...]

  • Page 292

    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. Diagnostic Device Operatio n Diagnostic Devic e Operat ion M8200 - M8234 ( ) Wh en M8 is [...]

  • Page 293

    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 Check the cable c onnec- tion betwee n the pr o- g rammin g devic e and the PL C 6101 RA M error 6102 O peratio n circ uit error 6103 I/ O bus error (M80[...]

  • Page 294

    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 param eter mode , set the correc t data 6401 Pro g ram su m check error 6402 Memor y capaci t y settin g erro r 6403 La tched device a rea sett in g erro[...]

  • Page 295

    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. Se lect p ro- g rammin g mode and correct the identi fie[...]

  • Page 296

    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. Select p r[...]

  • Page 297

    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. Note: oper ation erro [...]

  • Page 298

    FX Series Programmable Controller Diagnostic Devices 6 6-2 0 MEMO[...]

  • Page 299

    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 System Devic es 10 Points of T echnique 11 I n d e x FX Series Programmable Controllers Instruction Execution T imes 7[...]

  • Page 300

    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 ... .... ..... .... ..... .... .... ..... ...... ..... .... ..... .... .... ..... .... ..... .... ..... ...... ..... 7-1 7.2 A ppli ed In st ruc[...]

  • Page 301

    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.07) , FX 2C FX 2N(C) ON OFF ON OFF ON OFF ON OFF ON OFF LD X,Y ,M ,S,T ,C and sp ec[...]

  • Page 302

    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. Mnemonic Object Devices St eps Execution [...]

  • Page 303

    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 .4 9.6 20.0 10. [...]

  • Page 304

    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. 4 70.8 21.6 1 15.5 3 3.3 51 8.8 - 27 .6 6[...]

  • Page 305

    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.6 + 18.0 n 33.3[...]

  • Page 306

    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 .0+ 4.9n 33.3 35[...]

  • Page 307

    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.7 33.3 153 23 - 97[...]

  • Page 308

    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.0 89.0 8[...]

  • Page 309

    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.1 6.4 128 Func ti[...]

  • Page 310

    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. “n” can be equal or l ess than 512. 3: • Where “ n” i[...]

  • Page 311

    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. 15: • Where " m1" is refer red to this identif[...]

  • Page 312

    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'. This means the secondar y pro g ram construct ion is included within t he complete operatin g boundaries of t he primar y pr[...]

  • Page 313

    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'. This means the secondar y pro g ram construction starts within t he complete operatin g boundaries of the pri mar y pro g ram construction but finis hes o utsi de of the primar y constru[...]

  • Page 314

    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. In other wo rds, ever y time the pro g ram is processed for m start to end the followin g[...]

  • Page 315

    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. - A[...]

  • Page 316

    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 . For P LC applicabi lit y please check eit her the detailed e xplanatio[...]

  • Page 317

    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 System Devic es 10 Points of T echnique 11 I n d e x FX Series Programmable Controllers PLC Device Tables 8[...]

  • Page 318

    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 ....... .... ..... .... ..... ...... ..... .... ..... 8 -1 8.2 Perfor mance Specification Of The FX 0N .... ..... .[...]

  • Page 319

    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 ation b y stored p ro g ram I/O co ntrol method Ba tch pr ocessi n g method (w hen END ins truction is exec uted) I/O re fresh i nstru ction is avai [...]

  • Page 320

    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 s D0 to D31 T y pe:16 bit data stor a g e re g iste r pair for 3 2 bit devic e Latched 2 points (subse t) D30 t o D31 T y pe:16 bit data stor a g e r[...]

  • Page 321

    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 .67 se c 31 poin ts T32 to T62 when s pecial M c oil M8028 is driv[...]

  • Page 322

    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.... Item Specification Re marks Oper at ion con trol met hod C y clic oper ation b y stored p ro g ram I/O co ntrol method Ba tch pr ocessi n g method (w hen END ins truction is exec uted) I/O re[...]

  • Page 323

    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 . Note all c ounters are latc hed C235 to C24 0 6 points 1 phase c/w s[...]

  • Page 324

    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.... Item Specification Re marks Oper at ion con trol met hod C y clic oper ation b y stored p ro g ram I/O co ntrol method Ba tch pr ocessi n g method (w hen END ins truction [...]

  • Page 325

    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 . Note all c ounters are latc hed C235 to C24 0 6 points 1 phase c/w s[...]

  • Page 326

    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 clic oper ation b y stored p ro g ram I/O co ntrol method Ba tch pr ocessi n g method (w hen END ins truction is exec uted) I/O refresh ins tructi on i[...]

  • Page 327

    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 . Note all c ounters are latc hed C235 to C24 0 6 points 1 phase c/w s[...]

  • Page 328

    FX Series Programmable Controllers PLC Device Tables 8 8-1 0[...]

  • Page 329

    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 System Devic es 10 Points of T echnique 11 I n d e x FX Series Programmable Controllers Assig ning System Devices 9[...]

  • Page 330

    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 .......... ................... .................. .................. .......... 9-1 9.2 U sin g The FX 2 -24EI With F Serie s S[...]

  • Page 331

    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 . Addressing Additi onal Discrete I/O Thi[...]

  • Page 332

    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 to an one of the foll owin g F series speci a l function blocks: a) The F-1 6NT/NP , a Melsec Net Mini interfac e b) The F2-6A, a combine analo g 4 inp[...]

  • Page 333

    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. The d ia g ram below shows how movin g the positi on of the FX 2 -24EI used alters th[...]

  • Page 334

    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. The I/O channel will alwa y s re[...]

  • Page 335

    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. The I/O numbers can be sel[...]

  • Page 336

    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. There are two models of paral l el link adapter providi n g two dif ferent communication mediums: a) Fiber -optic link - FX 2 -40AP T r ansmission distanc e:[...]

  • Page 337

    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. The time data of the R TC cassette is batter y backed. Thi s means when t he PLC is[...]

  • Page 338

    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 . When the c lock i s stoppe d the t[...]

  • Page 339

    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 System Devic es 10 Points of T echnique 11 I n d e x FX Series Programmable Controllers Points of Technique 10[...]

  • Page 340

    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 ...... ..... .... .. ..... .... .... ... .... .... ..... .. ..... .... .... ... .... .... . 10 -1 10.2 Users o f DC Powe re d [...]

  • Page 341

    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. This chapter will point out one or two useful tec hni ques while also providin g the user wit[...]

  • Page 342

    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.e. the pro g ram contained is executed. Consequentl y when[...]

  • Page 343

    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. These includes such items as computers, the Mitsubishi FX data acce[...]

  • Page 344

    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. Under normal conditions the PLC’s scan[...]

  • Page 345

    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. These dev ices can be used for max imum advanta g e b y allowin g the PLC to co ntinue from it s last operat ion status j ust before the power fa ilur[...]

  • Page 346

    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. It ma y be requ ired that ce rtain dat a value[...]

  • Page 347

    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. Ther efor , this example sh ows how the special h i g h accura c y devic[...]

  • Page 348

    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. Explanation: The main control of this pro g ram rests in [...]

  • Page 349

    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 . 5) The g rip and product ar e lowere d to the bottom limit [...]

  • Page 350

    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. When the IST instruction is us ed there are 5 select able modes which acces s [...]

  • Page 351

    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. A t th is p oint t he D U sc reen chan g es to the 'ze[...]

  • Page 352

    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. The use of the rotar y switch mea ns that the selected modes are mutuall y excl usiv e in their opera tion[...]

  • Page 353

    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. In this example pro g ram the iso l ation of 'Manual' and 'Zero return' modes b y the use of separate DU contr ol screens,[...]

  • Page 354

    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 8043 74 OUT T 0 3 OUT M 8044 39 ANI Y 1 K 10 5 L D M 8000 40 SET S 10 77 LD T 0 6 IST 60 42 STL S 10 78 S ET S 2 2 M 30 43 R ST Y 1 80 STL S 2 2 S2 0 4[...]

  • Page 355

    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 . If this confi g uration is used th e followin g ripple circu it will be required betwee n the PLC’s P WM output and the inverte rs input termin al[...]

  • Page 356

    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: e m = Maximum output volta g e E = pulse (square wave) output vol ta g e (see circuit on the pr evious pa g e) t = PWM pulse duration (se e previous [...]

  • Page 357

    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 . PWM paramete[...]

  • Page 358

    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. The communicati on parameters are select ed b y a bit patt ern which is stor[...]

  • Page 359

    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. The default setti n g for the header stored in D8124 i s 'STX' (or 02H)and the terminator default sett in g stored i n D8125 is 'E[...]

  • Page 360

    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.0 *When usin g FX 0N , FX, FX 2C this s hould be 2 x s can time or mor e 2) T erminal mode D8120 (b12, b1 1, b10) = (0, 0, 1) a) Send Onl y b) recei ve onl y Res[...]

  • Page 361

    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.00 Reset usin g a pro g ram . When it is not turned of f, t he next dat[...]

  • Page 362

    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. 1) No Hardware Handshakin g D8120 (B12, b1 1, b10) = (0,0, 0) 2) T erminal Mode The control li ne and transmission sequence are identic al to those in the FX, on pa g [...]

  • Page 363

    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. Thi s actual l y means th at both b y tes of a 16 bit da ta dev ice a[...]

  • Page 364

    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. The followin g pro g ram uses this to keep MV under control when it[...]

  • Page 365

    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 . In or der to prevent the PID inst ruction from ru nnin g out of control the MV value set b y the operat or shou ld be fed i n t o the MV[...]

  • Page 366

    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 . -S 3 +1 bit 5: Output V alue ra n g e limi t fla g . -S 3 +22: Output V alue upper limit. -S 3 +2[...]

  • Page 367

    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 followin g variables: - The direction o f the process; Forward or Rev erse (S 3 +1, bi t 0) - The proportional g ain constant; K P (S 3 +3) - The int[...]

  • Page 368

    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. • K500 D500 FNC 12 MOV P K1800 D5 02 FNC 12 MOV P K3000 D5 10 FNC 12 MOV P H0030 D511 FNC 12 MOV P K 0 D515 FNC 12 MOV P K 0 D533 FNC 12 MOV P K2000 D5 32[...]

  • Page 369

    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 System Devic es 10 Points of T echnique 11 Index FX Series Programmable Logic Con trollers Index 11[...]

  • Page 370

    FX Series Programmable Logic Con trollers Index 11 Chapter contents 11.Index .................. ........................ ........................ ........................ ......... 11-1 11.1 I ndex . .... ..... .... ....... .... .... ..... .... ..... .... ..... .... .... ..... ...... ..... .... ..... .... ..... .... .... ..... .... ... 1 1-1 11.2 A[...]

  • Page 371

    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 ........... .................. .................... ................... . 5-25 Addressin g spe cial f unc tion blo cks ..... .... .... ..... [...]

  • Page 372

    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' ... .... ..... .... ..... .... ....... .... ..... .... .... ..... .... ..[...]

  • Page 373

    FX Series Programmable Controllers Index 11 11-3 E Encode data, ENCO instructi on ......... ........... ............. ............. ............. ............. .......... 5-44 END .. .... ..... .... .... ..... .... ..... .... .... ..... ....... .... .... ..... .... ..... .... .... ..... .... ..... ...... ..... .... ..... .... ... . 2-23 End in str [...]

  • Page 374

    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 ................... .. .. . ................... .. . ................... . ....... 5-101 V olum[...]

  • Page 375

    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 .. ..... .... ..... ...... ..... .... .... ..... .... ..... .... ..... .... .... . 10 -5 Initia l sta te cont rol, I[...]

  • Page 376

    FX Series Programmable Controllers Index 11 11- 6 OUT . .... ....... .... ..... .... .... ..... .... ..... .... ..... .... ....... .... .... ..... .... ..... .... .... ..... .... ..... ...... ..... .... . .. . 2-4 T imer a nd c ount er va r ia ti ons ... .. ... .. .... ..... .... .. ..... .... .... ... .... .... ..... .. ..... .... .... ... .... ..[...]

  • Page 377

    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 ..... .... ..... .... ..... .... .... ..... .... ..... .... ....... .... .[...]

  • Page 378

    FX Series Programmable Controllers Index 11 11- 8 Ti m e r s , Basi c ti mers ...... .... ....... .... ..... .... ..... .... ..... .... .... ..... .... ....... .... ..... .... ..... .... .... ..... .... ... 2 -18 Device details and exampl es ....... .. ............. ............. ............. ............ ........... .. ....... 4-15 General ac cur[...]

  • Page 379

    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 acce ssible (SP) 0 @ P @ p 1 !1 A Q a q 2 “2 B R br 3 #3 C Sc s 4 $4 D Td t 5 %5 E U e u 6 &6 F V f v 7 ‘7 G W g w 8 (8 H X h x 9 )9IYi y A *: J[...]

  • Page 380

    FX Series Programmable Controllers Index 11 11-10 1 1.3 Applied Instruction List q q q[...]

  • Page 381

    [...]

  • Page 382

    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 . 1999 Specif ication are sub j ect to chan g e without notice. PROGRAMMING MANUAL THE FX SERI ES O F PRO GRAM M ABL E CO N TROLL ER (F X 0 , F X 0S , F X 0N , F X , F X [...]