Mitsubishi Electronics FXCPU 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
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838

Ir para a página of

Bom manual de uso

As regras impõem ao revendedor a obrigação de fornecer ao comprador o manual com o produto Mitsubishi Electronics FXCPU. A falta de manual ou informações incorretas fornecidas ao consumidor são a base de uma queixa por não conformidade do produto com o contrato. De acordo com a lei, pode anexar o manual em uma outra forma de que em papel, o que é frequentemente utilizado, anexando uma forma gráfica ou manual electrónicoMitsubishi Electronics FXCPU vídeos instrutivos para os usuários. A condição é uma forma legível e compreensível.

O que é a instrução?

A palavra vem do latim "Instructio" ou instruir. Portanto, no manual Mitsubishi Electronics FXCPU você pode encontrar uma descrição das fases do processo. O objetivo do manual é instruir, facilitar o arranque, a utilização do equipamento ou a execução de determinadas tarefas. O manual é uma coleção de informações sobre o objeto / serviço, um guia.

Infelizmente, pequenos usuários tomam o tempo para ler o manual Mitsubishi Electronics FXCPU, e um bom manual não só permite conhecer uma série de funcionalidades adicionais do dispositivo, mas evita a formação da maioria das falhas.

Então, o que deve conter o manual perfeito?

Primeiro, o manual Mitsubishi Electronics FXCPU deve conte:
- dados técnicos do dispositivo Mitsubishi Electronics FXCPU
- nome do fabricante e ano de fabricação do dispositivo Mitsubishi Electronics FXCPU
- instruções de utilização, regulação e manutenção do dispositivo Mitsubishi Electronics FXCPU
- sinais de segurança e certificados que comprovam a conformidade com as normas pertinentes

Por que você não ler manuais?

Normalmente, isso é devido à falta de tempo e à certeza quanto à funcionalidade específica do dispositivo adquirido. Infelizmente, a mesma ligação e o arranque Mitsubishi Electronics FXCPU não são suficientes. O manual contém uma série de orientações sobre funcionalidades específicas, a segurança, os métodos de manutenção (mesmo sobre produtos que devem ser usados), possíveis defeitos Mitsubishi Electronics FXCPU e formas de resolver problemas comuns durante o uso. No final, no manual podemos encontrar as coordenadas do serviço Mitsubishi Electronics na ausência da eficácia das soluções propostas. Atualmente, muito apreciados são manuais na forma de animações interessantes e vídeos de instrução que de uma forma melhor do que o o folheto falam ao usuário. Este tipo de manual é a chance que o usuário percorrer todo o vídeo instrutivo, sem ignorar especificações e descrições técnicas complicadas Mitsubishi Electronics FXCPU, como para a versão papel.

Por que ler manuais?

Primeiro de tudo, contem a resposta sobre a construção, as possibilidades do dispositivo Mitsubishi Electronics FXCPU, uso dos acessórios individuais e uma gama de informações para desfrutar plenamente todos os recursos e facilidades.

Após a compra bem sucedida de um equipamento / dispositivo, é bom ter um momento para se familiarizar com cada parte do manual Mitsubishi Electronics FXCPU. Atualmente, são cuidadosamente preparados e traduzidos para sejam não só compreensíveis para os usuários, mas para cumprir a sua função básica de informação

Índice do manual

  • Página 1

    FXCPU Structured Programming Manual Basic & Applied Instruction[...]

  • Página 2

    [...]

  • Página 3

    1 FXCPU Structured Programming Manual [Basic & Applied Instruction] FXCPU Structured Programming Manual [Basic & Applied Instruction] Foreword This manual contains text, diagrams and explanations which will guide the reader through the safe and correct installation, use, and operation of the FX Series programmable controller function for st[...]

  • Página 4

    2 FXCPU Structured Programming Manual [Basic & Applied Instruction] Outline Precautions • This manual provides information for the use of the FX Se ries Programmable Controllers. The manual has been written to be used by trained and competent personnel . The definition of such a person or persons is as follows; 1) Any engineer who is responsi[...]

  • Página 5

    3 Table of Contents FXCPU Structured Programming Manual [Basic & Applied Instruction] Table of Contents Positioning of This Manual..... .............. .............. ........... .............. .............. ........... .............. .... 11 Related Manuals ............. ............ .............. ........... .............. .............. ...[...]

  • Página 6

    4 Table of Contents FXCPU Structured Programming Manual [Basic & Applied Instruction] 5.13 END...................................................................................................................... ....................... 91 5.14 NOP (for simple project only) .......................................................................[...]

  • Página 7

    5 Table of Contents FXCPU Structured Programming Manual [Basic & Applied Instruction] 10. Applied Instructions (Rotation and Shift Operation) 195 10.1 ROR / Rotation Right ..................................................................................................... ......... 196 10.2 ROL / Rotation Left .................................[...]

  • Página 8

    6 Table of Contents FXCPU Structured Programming Manual [Basic & Applied Instruction] 13.5 TTMR / Teaching Timer.................................................................................................... ....... 334 13.6 STMR / Special Timer................................................................................................[...]

  • Página 9

    7 Table of Contents FXCPU Structured Programming Manual [Basic & Applied Instruction] 18. Applied Instructions (Floating Point) 439 18.1 DECMP / Floating Point Compare.......................................................................................... 4 41 18.2 DEZCP / Floating Point Zone Compare ..........................................[...]

  • Página 10

    8 Table of Contents FXCPU Structured Programming Manual [Basic & Applied Instruction] 21. Applied Instructions (Real Time Clock Co ntrol) 540 21.1 TCMP / RTC Data Compare .................................................................................................. .. 541 21.2 TZCP / RTC Data Zone Compare ...................................[...]

  • Página 11

    9 Table of Contents FXCPU Structured Programming Manual [Basic & Applied Instruction] 27. Applied Instructions (Data Operation 3) 653 27.1 FDEL / Deleting Data from Tables ......................................................................................... 654 27.2 FINS / Inserting Data to Tables ...........................................[...]

  • Página 12

    10 Table of Contents FXCPU Structured Programming Manual [Basic & Applied Instruction] 33.4 LOGR / Logging R and ER.................................................................................................. .... 761 33.5 RWER / Rewrite to ER .................................................................................................[...]

  • Página 13

    11 FXCPU Structured Programming Manual [Basic & Applied Instruction] Positioning of This Manual This manual explains sequence instructions for struct ured programs provided by GX Works2. Refer to other manuals for devices, parameters and application functions. Refer to each corresponding manual for analog, communication, positioning control and[...]

  • Página 14

    12 FXCPU Structured Programming Manual [Basic & Applied Instruction] 2. When using FX 1S /FX 1N /FX 1NC /FX 2N /FX 2NC PLCs (Additional Manual) (Additional Manual) (Additional Manual) (Additional Manual) MELSEC-Q/L/F Structured Programming Manual (Fundamentals) This manual explains programming methods, specifications, functions, etc. required t[...]

  • Página 15

    13 FXCPU Structured Programming Manual [Basic & Applied Instruction] 3. When using FX 0S /FX 0 /FX 0N /FX U /FX 2C PLCs (Additional Manual) (Additional Manual) (Additional Manual) (Additional Manual) (Additional Manual) MELSEC-Q/L/F Structured Programming Manual (Fundamentals) This manual explains programming methods, specifications, functions,[...]

  • Página 16

    14 FXCPU Structured Programming Manual [Basic & Applied Instruction] Related Manuals This manual explains devices and parameters fo r structured programs provided by GX Works2. Refer to other manuals for sequence instructions and applied functions. This chapter introduces only reference manuals for this manual and manuals which describe the har[...]

  • Página 17

    15 FXCPU Structured Programming Manual [Basic & Applied Instruction] FX 1S /FX 1N /FX 1NC PLCs FX 2N /FX 2NC PLCs [who se production is finished] PLC main unit FX 3S Series Ha rdware Manual JY997D48301 Supplied with prod uct I/O specifi cations , wiring and in stallation of the PLC main unit FX 3S extracted from the FX 3S Series User's Ma [...]

  • Página 18

    16 FXCPU Structured Programming Manual [Basic & Applied Instruction] FX 0S /FX 0 /FX 0N /FX U /FX 2C PLCs [whose production is finished] Manuals of models whose prod uction is finished Production is finished for FX 0S /FX 0 /FX 0N /FX U /FX 2C /FX 2N /FX 2NC PLCs. Manual name Manual number Supplied wi th product or Additional Manual Contents Mo[...]

  • Página 19

    17 FXCPU Structured Programming Manual [Basic & Applied Instruction] Generic Names and Abbreviations Used in Manuals Abbreviation /generic name Name PLCs FX 3U Series o r FX 3U PLC Generic name of FX 3U Series PLCs FX 3UC Series or F X 3UC PLC Generic name of FX 3UC Series PLCs FX 3G Series or FX 3G PLC Generic name of FX 3G Series PLCs FX 3GC [...]

  • Página 20

    18 1 Outline 1.1 Outline of Structured Pro grams and Programming languag es FXCPU Structured Programming Manual [Basic & Applied Instruction] 1. Outline This manual explains setting of sequence instructions for structured programs provided by GX Works2. Refer to another manuals for device, parameter, and application functions for structured pro[...]

  • Página 21

    1 Outline 1.1 Outline of Structured Pro grams and Programming languag es 19 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Inst[...]

  • Página 22

    20 1 Outline 1.2 PLC Series and Programming Soft ware Version FXCPU Structured Programming Manual [Basic & Applied Instruction] 1.2 PLC Series and Progra mming Software Version 1.3 Cautions on Creation of Fundamental Programs This section explains cautions on programming. Refer to the following manual for cautions on structured programs and pro[...]

  • Página 23

    1 Outline 1.3 Cautions on Creati on of Fundamental Programs 21 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi ons (Mo[...]

  • Página 24

    22 1 Outline 1.3 Cautions on Creati on of Fundamental Programs FXCPU Structured Programming Manual [Basic & Applied Instruction] 1.3.3 Circuits which cannot be create d by structured ladder programs and countermeasures 1. Bridge circui t A circuit in which the current flows in both directions should be changed as s hown in the figure on the rig[...]

  • Página 25

    1 Outline 1.3 Cautions on Creati on of Fundamental Programs 23 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi ons (Mo[...]

  • Página 26

    24 1 Outline 1.3 Cautions on Creati on of Fundamental Programs FXCPU Structured Programming Manual [Basic & Applied Instruction] 2. Introduction of method for using flags in an y positions other than directly under sequence instructions. When two or more s equence instruction s are programmed, general flags turn ON o r OFF when each sequence in[...]

  • Página 27

    1 Outline 1.3 Cautions on Creati on of Fundamental Programs 25 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi ons (Mo[...]

  • Página 28

    26 1 Outline 1.3 Cautions on Creati on of Fundamental Programs FXCPU Structured Programming Manual [Basic & Applied Instruction] 1.3.7 Limitation in the number of instructions and limitation in simultaneous instruction ins tances Each sequence instruction has a limitation in the number of using the instruction and the number of simultaneous ins[...]

  • Página 29

    1 Outline 1.3 Cautions on Creati on of Fundamental Programs 27 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi ons (Mo[...]

  • Página 30

    2 Instruction List 2.1 Basic Instructions 28 FXCPU Structured Programming Manual [Basic & Applied Instruction] 2. Instruction List This chapter introduces a list of instructions available in programming. 2.1 Basic Instructions *1. The instruction is provided in the FX 3U and FX 3UC PLCs Ver. 2.30 or later. Instructio n name Function Applicable [...]

  • Página 31

    2 Instruction List 2.2 Step Ladder Instructions 29 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi ons (Move and Compa[...]

  • Página 32

    2 Instruction List 2.3 Applie d Instructions 30 FXCPU Structured Programming Manual [Basic & Applied Instruction] *1. The instruction is provided in the FX U PLC Ver. 2.30 or later. Instructio n name Execution condition Function Applicable PLCs Reference FX 3U(C) FX 3G(C) FX 3S FX 2N(C) FX 1N(C) FX 1S FX U /FX 2C FX 0N FX 0(S) Move and Compare [...]

  • Página 33

    2 Instruction List 2.3 Applie d Instructions 31 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi ons (Move and Compare)[...]

  • Página 34

    2 Instruction List 2.3 Applie d Instructions 32 FXCPU Structured Programming Manual [Basic & Applied Instruction] *1. The instruction is provided in the FX U PLC Ver. 2.30 or later. *2. The instruction is provided in the FX 3G PLC Ver. 1.10 or later. *3. The instruction is provided in the FX U PLC Ver. 3.07 or later. *4. The 32-bit operations a[...]

  • Página 35

    2 Instruction List 2.3 Applie d Instructions 33 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi ons (Move and Compare)[...]

  • Página 36

    2 Instruction List 2.3 Applie d Instructions 34 FXCPU Structured Programming Manual [Basic & Applied Instruction] *1. The instruction is provided in the FX 3U and FX 3UC PLCs Ver. 2.70 or later. *2. Though programmed, this instruction is not valid because the FX 1NC , FX 2NC or FX 3GC PLC does not have a volume to read out under this instructio[...]

  • Página 37

    2 Instruction List 2.3 Applie d Instructions 35 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi ons (Move and Compare)[...]

  • Página 38

    2 Instruction List 2.3 Applie d Instructions 36 FXCPU Structured Programming Manual [Basic & Applied Instruction] *1. The instruction is provided in the FX 3UC PLC Ver. 2.20 or later. *2. The instruction is provided in the FX 2N and FX 2NC PLCs Ver. 3.00 or later. Instructio n name Execution condition Function Applicable PLCs Reference FX 3U(C)[...]

  • Página 39

    2 Instruction List 2.3 Applie d Instructions 37 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi ons (Move and Compare)[...]

  • Página 40

    2 Instruction List 2.3 Applie d Instructions 38 FXCPU Structured Programming Manual [Basic & Applied Instruction] *1. The instruction is provided in the FX 3UC PLC Ver. 2.20 or later. Instructio n name Execution condition Function Applicable PLCs Reference FX 3U(C) FX 3G(C) FX 3S FX 2N(C) FX 1N(C) FX 1S FX U /FX 2C FX 0N FX 0(S) Block Data Oper[...]

  • Página 41

    2 Instruction List 2.3 Applie d Instructions 39 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi ons (Move and Compare)[...]

  • Página 42

    2 Instruction List 2.3 Applie d Instructions 40 FXCPU Structured Programming Manual [Basic & Applied Instruction] *1. The instruction is provided in the FX 3UC PLC Ver. 2.20 or later. *2. The instruction is provided in the FX 3G PLC Ver. 1.10 or later. *3. The instruction is provided in the FX 3U and FX 3UC PLCs Ver. 2.70 or later. *4. The inst[...]

  • Página 43

    2 Instruction List 2.3 Applie d Instructions 41 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi ons (Move and Compare)[...]

  • Página 44

    42 3 Configuration of Instru ction 3.1 Expression and Operation Fo rm of Sequence Instructions FXCPU Structured Programming Manual [Basic & Applied Instruction] 3. Configuration of Instruction This chapter explains the configuration of sequence instructions. 3.1 Expression and Operation Form of Sequence Instructions Instructions and arguments ?[...]

  • Página 45

    3 Configuration of Instru ction 3.1 Expression and Operation Fo rm of Sequence Instructions 43 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program F[...]

  • Página 46

    44 3 Configuration of Instru ction 3.2 Labels FXCPU Structured Programming Manual [Basic & Applied Instruction] 3.2 Labels Types of labels Labels are either global labels or local labels. • Global labels are available for use in program blocks and function blocks. • Local labels are available for use only in a declared program part. Label c[...]

  • Página 47

    3 Configuration of Instru ction 3.2 Labels 45 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi ons (Move and Compare) 9[...]

  • Página 48

    46 3 Configuration of Instru ction 3.2 Labels FXCPU Structured Programming Manual [Basic & Applied Instruction] • The universal data type is the data type of a label that puts together several b asic data types. The data type name starts with "ANY". ANY ANY_SIMPLE Wor d [unsigned]/ Bit String [16-bit] Double Word [unsigned]/ Bit Str[...]

  • Página 49

    3 Configuration of Instru ction 3.3 Devices and Addresses 47 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi ons (Move[...]

  • Página 50

    48 3 Configuration of Instru ction 3.4 EN and ENO FXCPU Structured Programming Manual [Basic & Applied Instruction] 3.4 EN and ENO The execution control is available for an instruction with "EN". • EN is for entering an execution condition of instruction. • ENO is for outputting the state of execution of instruction. • The table[...]

  • Página 51

    3 Configuration of Instru ction 3.4 EN and ENO 49 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi ons (Move and Compar[...]

  • Página 52

    4 How to R ead Explanation of Instructions 50 FXCPU Structured Programming Manual [Basic & Applied Instruction] 4. How to Read Explanation of Instructions The following shows one of the pages that explains the instructions. * The above is different from the actual page, as it is provided for explanation only.[...]

  • Página 53

    4 How to R ead Explanation of Instructions 51 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi ons (Move and Compare) 9[...]

  • Página 54

    5 Basic Instru ction 52 FXCPU Structured Programming Manual [Basic & Applied Instruction] 5. Basic Instruction This chapter introduces the instructions for the s tructured project corresponding to the basic instructions fo r the simple project. Instruction name Function Refere nce LD Ini tial logic al operatio n of NO (normally op en) contac ts[...]

  • Página 55

    5 Basic Instru ction 5.1 LD, LDI, AND, ANI, OR, ORI 53 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi ons (Move and C[...]

  • Página 56

    5 Basic Instru ction 5.1 LD, LDI, AND, ANI, OR, ORI 54 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. LD (Initial logical operation of NO (normally open) contacts) 2. LDI (Initial logical operation of NC (normally closed) contact type) 3. AND (Serial connection of NO (normally open) conta[...]

  • Página 57

    5 Basic Instru ction 5.1 LD, LDI, AND, ANI, OR, ORI 55 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi ons (Move and C[...]

  • Página 58

    5 Basic Instru ction 5.1 LD, LDI, AND, ANI, OR, ORI 56 FXCPU Structured Programming Manual [Basic & Applied Instruction] 7. Relationship with AND (...) The parallel connection by OR or ORI instruction is connected to the preceding LD or LDI instruction in principle. The "AND (... ) after" instruction, however, the parallel connection [...]

  • Página 59

    5 Basic Instru ction 5.2 LDP, LDF, ANDP, ANDF, ORP, ORF 57 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi ons (Move a[...]

  • Página 60

    5 Basic Instru ction 5.2 LDP, LDF, ANDP, ANDF, ORP, ORF 58 FXCPU Structured Programming Manual [Basic & Applied Instruction] 3. Applicable devices S : Refer to "Cautions". Function and operation explanation 1. LDP, ANDP, ORP (Initial logical operation of rising edg e pulse, serial connection and parallel connection) In the example sho[...]

  • Página 61

    5 Basic Instru ction 5.2 LDP, LDF, ANDP, ANDF, ORP, ORF 59 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi ons (Move a[...]

  • Página 62

    5 Basic Instru ction 5.2 LDP, LDF, ANDP, ANDF, ORP, ORF 60 FXCPU Structured Programming Manual [Basic & Applied Instruction] 5. Differences in the ope ration caused by auxiliary r elay (M) numbers Not supported by the FX 1S , FX 1N or FX 1NC PLC. When an auxiliary relay (M) is specified as a device in LDP, LDF, A NDP, ANDF, ORP and ORF instruct[...]

  • Página 63

    5 Basic Instru ction 5.2 LDP, LDF, ANDP, ANDF, ORP, ORF 61 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi ons (Move a[...]

  • Página 64

    5 Basic Instru ction 5.3 OUT (Excluding timers and counters) 62 FXCPU Structured Programming Manual [Basic & Applied Instruction] 5.3 OUT (Excluding timers and counters) Outline This instruction outputs the operation result up to the execution of the OUT instruction to the specified device. 1. Format and operation, execution form 2. Set da ta 3[...]

  • Página 65

    5 Basic Instru ction 5.3 OUT (Excluding timers and counters) 63 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi ons (M[...]

  • Página 66

    5 Basic Instru ction 5.3 OUT (Excluding timers and counters) 64 FXCPU Structured Programming Manual [Basic & Applied Instruction] Cautions 1) Some restrictions to applicable devices S 1: The FX 3U and FX 3UC PLCs only are applicable. S 2: Only the FX 3U and FX 3UC PLCs are capable of indexing applicable devices. The following devices cannot be [...]

  • Página 67

    5 Basic Instru ction 5.4 Operating Ti mer 65 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi ons (Move and Compare) 9 [...]

  • Página 68

    5 Basic Instru ction 5.4 Operating Ti mer 66 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. OUT_T operation 1) When the operation result up to the OUT_T instruction operation is ON, the timer coils is ON and counts until the set value is reached. When the set time expires (or reaches the [...]

  • Página 69

    5 Basic Instru ction 5.4 Operating Ti mer 67 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi ons (Move and Compare) 9 [...]

  • Página 70

    5 Basic Instru ction 5.4 Operating Ti mer 68 FXCPU Structured Programming Manual [Basic & Applied Instruction] Program example 1. Program that turns ON Y010 and Y014 in 10 seconds after X000 turns ON. 2. Program that sets the BCD data of X010 to X01F to a timer. 3. Program that turns ON Y010 in 250 milliseconds after X000 turns ON. OUT_T EN ENO[...]

  • Página 71

    5 Basic Instru ction 5.5 Operating Counters 69 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi ons (Move and Compare) [...]

  • Página 72

    5 Basic Instru ction 5.5 Operating Counters 70 FXCPU Structured Programming Manual [Basic & Applied Instruction] 2. Counter reset After comp leting to co unt, the co unt value and contact condition does not cha nge until the RST instruct ion is executed. 3. Counter set value The set value of t he counter can be sp ecified directly by a decimal [...]

  • Página 73

    5 Basic Instru ction 5.6 AND(...), OR(...) 71 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi ons (Move and Compare) 9[...]

  • Página 74

    5 Basic Instru ction 5.6 AND(...), OR(...) 72 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. AND( ... )(Serial connection of circuit blocks) AND (...) is an independent instruction not associated with any device number in the same way as the OR (... ) instruction described later. When the[...]

  • Página 75

    5 Basic Instru ction 5.7 MPS, MRD, MPP 73 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi ons (Move and Compare) 9 App[...]

  • Página 76

    5 Basic Instru ction 5.7 MPS, MRD, MPP 74 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation These instructions are convenient in programming branched multi-output circuits. 1. MPS, MRD, MPP (Stack push down, stack read and stack popup) 1) Use MPS instruction to store the intermediate result of [...]

  • Página 77

    5 Basic Instru ction 5.7 MPS, MRD, MPP 75 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi ons (Move and Compare) 9 App[...]

  • Página 78

    5 Basic Instru ction 5.7 MPS, MRD, MPP 76 FXCPU Structured Programming Manual [Basic & Applied Instruction] 3. Program example 3 (Two stacks) 4. Program example 4 (Four stacks) In programming a circuit on the upper side, it is necessary to use MPS instruction three times. By changing the circuit on t he upper side into the circuit on the lower [...]

  • Página 79

    5 Basic Instru ction 5.8 INV 77 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi ons (Move and Compare) 9 Applied Instr[...]

  • Página 80

    5 Basic Instru ction 5.8 INV 78 FXCPU Structured Programming Manual [Basic & Applied Instruction] 2. Operation range of INV instruction When INV instruction is used in a complica ted circui t containing ORB and ANB ins tructions, the ope ration range of INV instruction is as shown in the figure below: INV instruction inverts the operation resul[...]

  • Página 81

    5 Basic Instru ction 5.9 MEP, MEF 79 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi ons (Move and Compare) 9 Applied [...]

  • Página 82

    5 Basic Instru ction 5.9 MEP, MEF 80 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. MEP(ON during rising edge of driving contacts results) 2. MEF(ON during falling edge of driving contacts results) Cautions 1) MEP and MEF instructions are provided in the FX 3U and FX3 UC PLCs Ver. 2.30 or[...]

  • Página 83

    5 Basic Instru ction 5.10 SET, RST 81 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi ons (Move and Compare) 9 Applied[...]

  • Página 84

    5 Basic Instru ction 5.10 SET, RST 82 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation SET instruction drives the coil for an output relay (Y), auxiliary relay (M), state relay (S) and bit specification of data register (D). 1. When using a bit device SET instructions located in parallel can b[...]

  • Página 85

    5 Basic Instru ction 5.10 SET, RST 83 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi ons (Move and Compare) 9 Applied[...]

  • Página 86

    5 Basic Instru ction 5.10 SET, RST 84 FXCPU Structured Programming Manual [Basic & Applied Instruction] 3. Indexing Devices used in SET and RST instructions can be indexed with index registers (V, Z). (State relays (S), special auxiliary relays (M), 32-bit counters, "D  .b" and word devices cannot be indexed.) This is applicable on[...]

  • Página 87

    5 Basic Instru ction 5.11 PLS, PLF 85 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi ons (Move and Compare) 9 Applied[...]

  • Página 88

    5 Basic Instru ction 5.11 PLS, PLF 86 FXCPU Structured Programming Manual [Basic & Applied Instruction] 3. Output drive side The following two circuits cause a same operation. In each case, M0 is ON during only one operation cycle when X000 changes from OFF to ON. In each case, MOV instruction is executed only once when X000 changes from OFF to[...]

  • Página 89

    5 Basic Instru ction 5.12 MC, MCR 87 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi ons (Move and Compare) 9 Applied [...]

  • Página 90

    5 Basic Instru ction 5.12 MC, MCR 88 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation When MC instruc tion is exec uted, inst ructions from MC t o MCR are exe cuted. When MC instruction is not executed, the operation with the contact OFF is executed. In the prog ram exampl e below, t he instru[...]

  • Página 91

    5 Basic Instru ction 5.12 MC, MCR 89 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi ons (Move and Compare) 9 Applied [...]

  • Página 92

    5 Basic Instru ction 5.12 MC, MCR 90 FXCPU Structured Programming Manual [Basic & Applied Instruction] 2. When the nesting structure is adopted. When using MC instructions inside MC instruction, increase the nesting level "N" in turn in the way "N0 → N1 → N2 → N3 → N4 → N5 → N6 → N7". For returning from the ne [...]

  • Página 93

    5 Basic Instru ction 5.13 END 91 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi ons (Move and Compare) 9 Applied Inst[...]

  • Página 94

    6 Step Ladder Inst ructions 6.1 Step Ladder 92 FXCPU Structured Programming Manual [Basic & Applied Instruction] 6. Step Ladder Instructions 6.1 Step Ladder This chapt er introduces the instruc tions of struc tured proj ect that co rrespond to th e MELSEC-LD step ladder instructions. 6.1.1 Outline In programs usin g step ladder ins tructions, a[...]

  • Página 95

    6 Step Ladder Inst ructions 6.1 Step Ladder 93 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi ons (Move and Compare) [...]

  • Página 96

    6 Step Ladder Inst ructions 6.1 Step Ladder 94 FXCPU Structured Programming Manual [Basic & Applied Instruction] • Special auxiliary relays For efficiently creating step ladder programs, it is nece ssary to use some special auxiliary relays. The table below shows major ones. *1. Processed when END instruction is executed. •B l o c k When th[...]

  • Página 97

    6 Step Ladder Inst ructions 6.1 Step Ladder 95 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi ons (Move and Compare) [...]

  • Página 98

    6 Step Ladder Inst ructions 6.1 Step Ladder 96 FXCPU Structured Programming Manual [Basic & Applied Instruction] • Example of selective recombination Do not use MPS, MRD, MPP, AND ( … ) and OR ( … ) instructions in a transfer processing program with branches and recombination. Even in a load driving circuit, MPS instructions cannot be use[...]

  • Página 99

    6 Step Ladder Inst ructions 6.1 Step Ladder 97 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi ons (Move and Compare) [...]

  • Página 100

    6 Step Ladder Inst ructions 6.1 Step Ladder 98 FXCPU Structured Programming Manual [Basic & Applied Instruction] 2) Parallel recombination and parallel branch 3) Selective recombination and parallel branch 4) Parallel recombination and selective branch S20 STL EN ENO s S30 STL EN ENO s SET EN ENO d S101 X00 0 S101 STL EN ENO s SET EN ENO d S50 [...]

  • Página 101

    6 Step Ladder Inst ructions 6.1 Step Ladder 99 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi ons (Move and Compare) [...]

  • Página 102

    6 Step Ladder Inst ructions 6.2 STL 100 FXCPU Structured Programming Manual [Basic & Applied Instruction] 6.2 STL Outline In programs using step ladder instru ctions, a s tate relay Sta te S is assig ned to each process based on machine operation s, and input conditio n and output con trol are programme d as sequence s connecte d to the state o[...]

  • Página 103

    6 Step Ladder Inst ructions 6.3 RET 101 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi ons (Move and Compare) 9 Appli[...]

  • Página 104

    6 Step Ladder Inst ructions 6.3 RET 102 FXCPU Structured Programming Manual [Basic & Applied Instruction] 4. Caution The following examples show how MELSEC-LD step ladders are expressed in the structured programs. Reference: MELSEC-LD step ladder expression Expressing step ladder in structured program 1) Structured ladder/FBD 1) When expressing[...]

  • Página 105

    7 Applied Instructions (Program F low) 103 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi ons (Move and Compare) 9 Ap[...]

  • Página 106

    7 Applied Instructions (Program F low) 7.1 CJ / Conditional Jump 104 FXCPU Structured Programming Manual [Basic & Applied Instruction] 7.1 CJ / Conditional Jump Outline CJ or CJP instruction jumps to the specified pointer number or ladder block label. The sequence program steps between CJ or CJP instruction and the pointer are not executed. 1. [...]

  • Página 107

    7 Applied Instructions (Program F low) 7.1 CJ / Conditional Jump 105 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi o[...]

  • Página 108

    7 Applied Instructions (Program F low) 7.1 CJ / Conditional Jump 106 FXCPU Structured Programming Manual [Basic & Applied Instruction] 4) When the pointer number or ladder block label specified by is same and there is one jump destination, the following operation is caused. When X020 turns ON, the program execution jumps from CJ instruction cor[...]

  • Página 109

    7 Applied Instructions (Program F low) 7.1 CJ / Conditional Jump 107 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi o[...]

  • Página 110

    7 Applied Instructions (Program F low) 7.1 CJ / Conditional Jump 108 FXCPU Structured Programming Manual [Basic & Applied Instruction] CJ instruction and operations of contact and coil In the program example shown below, when X000 turns ON , the program execution jumps from CJ instruction in the first circuit to the pointe r P8. While X000 is O[...]

  • Página 111

    7 Applied Instructions (Program F low) 7.1 CJ / Conditional Jump 109 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi o[...]

  • Página 112

    7 Applied Instructions (Program F low) 7.1 CJ / Conditional Jump 110 FXCPU Structured Programming Manual [Basic & Applied Instruction] Timing chart Relationship between mast er control instruction and jump instruction The figure below shows the contents of operation and the relationship between the master control instruction. Avoid using 2), 4)[...]

  • Página 113

    7 Applied Instructions (Program F low) 7.2 CALL / Call Subroutine 111 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi [...]

  • Página 114

    7 Applied Instructions (Program F low) 7.2 CALL / Call Subroutine 112 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 16-bit operation While the command input is ON, CALL instruction is executed and the program execution jumps to a step with a specified pointer number or ladder block label[...]

  • Página 115

    7 Applied Instructions (Program F low) 7.2 CALL / Call Subroutine 113 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi [...]

  • Página 116

    7 Applied Instructions (Program F low) 7.2 CALL / Call Subroutine 114 FXCPU Structured Programming Manual [Basic & Applied Instruction] Cautions on subroutines and interrupt routines This section explains cautions on creating pr ograms in subroutines and interrupt routines. The explanation below is given for subroutines, but the situation also [...]

  • Página 117

    7 Applied Instructions (Program F low) 7.2 CALL / Call Subroutine 115 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi [...]

  • Página 118

    7 Applied Instructions (Program F low) 7.3 SRET / Subro utine Return 116 FXCPU Structured Programming Manual [Basic & Applied Instruction] 7.3 SRET / Subroutine Return Outline This instruction returns the program execut ion from a subroutine to the main program. 1. Format and operation, execution form 2. Set da ta 3. Applicable devices Function[...]

  • Página 119

    7 Applied Instructions (Program F low) 7.4 IRET / Interrupt Return 117 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi[...]

  • Página 120

    7 Applied Instructions (Program F low) 7.4 IRET / Interrupt Return 118 FXCPU Structured Programming Manual [Basic & Applied Instruction] Cautions 1) Create a task for the interrupt program and the main program. 2) Use "Event" to specify the interrupt pointer to be used for the task for the interrupt program. → For the interrupt po i[...]

  • Página 121

    7 Applied Instructions (Program F low) 7.4 IRET / Interrupt Return 119 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi[...]

  • Página 122

    7 Applied Instructions (Program F low) 7.5 DI / Disable Interrupt 120 FXCPU Structured Programming Manual [Basic & Applied Instruction] 7.5 DI / Disable Interrupt Outline This instruction disables interrupts after interrupts were enabled by EI instruction. 1. Format and operation, execution form 2. Set da ta 3. Applicable devices Function and o[...]

  • Página 123

    7 Applied Instructions (Program F low) 7.6 EI / Enable Int errupt 121 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi [...]

  • Página 124

    7 Applied Instructions (Program F low) 7.6 EI / Enable Int errupt 122 FXCPU Structured Programming Manual [Basic & Applied Instruction] Cautions 1) Refer to the following items for the cautions on the interrupt program. → Refer to Section 7.4. 2) Use the EI instruction as follows when the FX U , FX 2C , FX 2N , FX 2NC , FX 3U and FX 3UC PLCs [...]

  • Página 125

    7 Applied Instructions (Program F low) 7.7 FEND / Main Routine Program End 123 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied I[...]

  • Página 126

    7 Applied Instructions (Program F low) 7.7 FEND / Main Routine Program End 124 FXCPU Structured Programming Manual [Basic & Applied Instruction] 2. In the case of CALL instruction *1. If task names other than "MELSEC_MAIN" are used, FEND instruction is added automatically, and cause an error. Refer to item 6 of "Cautions". C[...]

  • Página 127

    7 Applied Instructions (Program F low) 7.8 WDT / Watchdog Time r Refresh 125 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Ins[...]

  • Página 128

    7 Applied Instructions (Program F low) 7.8 WDT / Watchdog Time r Refresh 126 FXCPU Structured Programming Manual [Basic & Applied Instruction] Cautions 1) Instructions of pulse operation type are not provided in the FX 0S , FX 0 or FX 0N PLC. To execute pulse operation, make the instruction execution condition pulse type. 2) A watchdog timer er[...]

  • Página 129

    7 Applied Instructions (Program F low) 7.8 WDT / Watchdog Time r Refresh 127 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Ins[...]

  • Página 130

    7 Applied Instructions (Program F low) 7.9 FOR / Start a FOR/NEXT Loop 128 FXCPU Structured Programming Manual [Basic & Applied Instruction] 7.9 FOR / Start a FOR/NEXT Loop Outline FOR instruction specifies the number of repetition of the loop between FOR and NEXT instructions. 1. Format and operation, execution form 2. Set da ta 3. Applicable [...]

  • Página 131

    7 Applied Instructions (Program F low) 7.10 NEXT / End a FOR/NEXT Loop 129 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instr[...]

  • Página 132

    7 Applied Instructions (Program F low) 7.10 NEXT / End a FOR/NEXT Loop 130 FXCPU Structured Programming Manual [Basic & Applied Instruction] Cautions FOR-NEXT loop can be nested up to 5 levels. Error 1) When FOR-NEXT loop is repeated many times, the operation cycle (D8010) is too long, and a watchdog timer error may occur. In such a case, chang[...]

  • Página 133

    7 Applied Instructions (Program F low) 7.10 NEXT / End a FOR/NEXT Loop 131 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instr[...]

  • Página 134

    8 Applied Instructions (Move and Compare) 132 FXCPU Structured Programming Manual [Basic & Applied Instruction] 8. Applied Instructions (Move and Compare) This chapter introduces fundamental data processing instructions such as data transfer and data comparison which are regarded as most important in applied instructions. Instruction name Funct[...]

  • Página 135

    8 Applied Instructions (Move and Compare) 8.1 CMP / Compare 133 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi ons (M[...]

  • Página 136

    8 Applied Instructions (Move and Compare) 8.1 CMP / Compare 134 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 16-bit operation(CMP, CMPP) The comparison value specifie d by and the comparison source s pecified by are compared with each other. According to the result (sma ller, equal or l[...]

  • Página 137

    8 Applied Instructions (Move and Compare) 8.1 CMP / Compare 135 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi ons (M[...]

  • Página 138

    8 Applied Instructions (Move and Compare) 8.2 ZC P / Zone C ompare 136 FXCPU Structured Programming Manual [Basic & Applied Instruction] 8.2 ZCP / Zone Compare Outline This instruction compares two values (zone) with the comparison source, and outputs the result (upper, equal or lower) to bit devices (3 points). 1. Format and operation, executi[...]

  • Página 139

    8 Applied Instructions (Move and Compare) 8.2 ZC P / Zone C ompare 137 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi[...]

  • Página 140

    8 Applied Instructions (Move and Compare) 8.2 ZC P / Zone C ompare 138 FXCPU Structured Programming Manual [Basic & Applied Instruction] Cautions 1) Some restrictions to applicable devices S 1:The FX 3U and FX 3UC PLCs only are applicable. Not indexed (V,Z). S 2:The FX 3G , FX 3GC , FX 3U and FX 3UC PLCs only are applicable. S 3:The FX 3U and F[...]

  • Página 141

    8 Applied Instructions (Move and Compare) 8.3 MOV / Move 139 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi ons (Move[...]

  • Página 142

    8 Applied Instructions (Move and Compare) 8.3 MOV / Move 140 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 16-bit operation(MOV, MOVP) The contents of the transfer source specified by ar e transferred to the transfer destination spec ified by . • While the command input is OFF, the tra[...]

  • Página 143

    8 Applied Instructions (Move and Compare) 8.3 MOV / Move 141 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi ons (Move[...]

  • Página 144

    8 Applied Instructions (Move and Compare) 8.3 MOV / Move 142 FXCPU Structured Programming Manual [Basic & Applied Instruction] Program examples 1. When reading the current value of a timer and counter 2. When indirectly specifying the set value of a timer or counter As the set value of the timer T20, two values can be specified by turning ON or[...]

  • Página 145

    8 Applied Instructions (Move and Compare) 8.4 SMOV / Shift Move 143 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi on[...]

  • Página 146

    8 Applied Instructions (Move and Compare) 8.4 SMOV / Shift Move 144 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 16-bit operation(SMOV, SMOVP) The contents of the transfer source specified by and transfer destination specified by are converted into 4-digit BCD (0000 to 9999) respectivel[...]

  • Página 147

    8 Applied Instructions (Move and Compare) 8.4 SMOV / Shift Move 145 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi on[...]

  • Página 148

    8 Applied Instructions (Move and Compare) 8.5 CML / Complement 146 FXCPU Structured Programming Manual [Basic & Applied Instruction] 8.5 CML / Complement Outline This instruction inverts data in units of bit, and then transfers (copies) the inverted data. 1. Format and operation, execution form 2. Set da ta 3. Applicable devices S : Refer to &q[...]

  • Página 149

    8 Applied Instructions (Move and Compare) 8.5 CML / Complement 147 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi ons[...]

  • Página 150

    8 Applied Instructions (Move and Compare) 8.5 CML / Complement 148 FXCPU Structured Programming Manual [Basic & Applied Instruction] Program examples 1. When receiving an inverted input The sequence program can be written by CML instruction. 2. When four bits are specif ied for a device with digit sp ecification X000 X001 X002 X003 X000 X001 X0[...]

  • Página 151

    8 Applied Instructions (Move and Compare) 8.6 BMOV / Block Move 149 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi on[...]

  • Página 152

    8 Applied Instructions (Move and Compare) 8.6 BMOV / Block Move 150 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation BMOV instruction transfe rs "n" points of dat a from the device specified by to the device specified by at one time. • If the device number range is exceeded, data i[...]

  • Página 153

    8 Applied Instructions (Move and Compare) 8.6 BMOV / Block Move 151 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi on[...]

  • Página 154

    8 Applied Instructions (Move and Compare) 8.6 BMOV / Block Move 152 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function of transfer between file registers and data registers BMOV instruction has a special function to file registers (D1000 and late r). The maximum number of file register differs from one PLC to another. Th[...]

  • Página 155

    8 Applied Instructions (Move and Compare) 8.6 BMOV / Block Move 153 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi on[...]

  • Página 156

    8 Applied Instructions (Move and Compare) 8.7 FMO V / Fill M ove 154 FXCPU Structured Programming Manual [Basic & Applied Instruction] 8.7 FMOV / Fill Move Outline This instruction transfers same data to specified number of devices. 1. Format and operation, execution form 2. Set da ta 3. Applicable devices S : Refer to "Cautions". FX [...]

  • Página 157

    8 Applied Instructions (Move and Compare) 8.7 FMO V / Fill M ove 155 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi o[...]

  • Página 158

    8 Applied Instructions (Move and Compare) 8.7 FMO V / Fill M ove 156 FXCPU Structured Programming Manual [Basic & Applied Instruction] Program examples 1. When writing specified data to two or more devices X000 K0 D0 FMOV EN s n ENO d K5 K 0 K 0 D 0 K 0 D 1 K 0 D 2 K 0 D 3 K 0 D 4 Before execution After execution K 3 K 0 K 5 K 0 K 65 K 0 K 7 K [...]

  • Página 159

    8 Applied Instructions (Move and Compare) 8.8 XCH / Exchange 157 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi ons ([...]

  • Página 160

    8 Applied Instructions (Move and Compare) 8.8 XCH / Exchange 158 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 16-bit operation(XCH, XCHP) Data is exchanged between the device specified by and the device specified by . 2. 32-bit operati on(DXCH , DXCHP) Data is exchanged between the devi[...]

  • Página 161

    8 Applied Instructions (Move and Compare) 8.9 BCD / Conversion to Binary Coded De cimal 159 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow[...]

  • Página 162

    8 Applied Instructions (Move and Compare) 8.9 BCD / Conversion to Binary Coded De cimal 160 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 16-bit operation(BCD, BCDP) This instruction converts the binary (BIN) data spec ified by into binary-coded decimal (BCD) data, and transfers the conv[...]

  • Página 163

    8 Applied Instructions (Move and Compare) 8.9 BCD / Conversion to Binary Coded De cimal 161 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow[...]

  • Página 164

    8 Applied Instructions (Move and Compare) 8.9 BCD / Conversion to Binary Coded De cimal 162 FXCPU Structured Programming Manual [Basic & Applied Instruction] Program examples 1. When the seven-segment display unit has 1 digit 2. When the seven-segment display unit has 2 to 4 digits 3. When the seven-segment display unit has 5 to 8 digits PLC BC[...]

  • Página 165

    8 Applied Instructions (Move and Compare) 8.10 BIN / Conversion to Binary 163 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied In[...]

  • Página 166

    8 Applied Instructions (Move and Compare) 8.10 BIN / Conversion to Binary 164 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 16-bit operation(BIN, BINP) This instruction converts the binary-coded decimal (BCD) data specified by into binary (BIN) data, and transfers the converted binary da[...]

  • Página 167

    8 Applied Instructions (Move and Compare) 8.10 BIN / Conversion to Binary 165 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied In[...]

  • Página 168

    8 Applied Instructions (Move and Compare) 8.10 BIN / Conversion to Binary 166 FXCPU Structured Programming Manual [Basic & Applied Instruction] Program examples 1. When the digital switch has 1 digit 2. When the digital switch has 2 to 4 digits 3. When the digital switch has 5 to 8 digits MOV instruction can be used instead. X000 D0 BIN EN s EN[...]

  • Página 169

    9 Applied In structions (Arithmeti c and Lo gical Oper ation) 167 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi ons [...]

  • Página 170

    9 Applied In structions (Arithmeti c and Lo gical Oper ation) 9.1 ADDP / Addition 168 FXCPU Structured Programming Manual [Basic & Applied Instruction] 9.1 ADDP / Addition Outline This instruction executes addition by two values to obtain the result (A + B = C) → For the floating point addition instru ction [DEADD], refer to Section 18.8. 1. [...]

  • Página 171

    9 Applied In structions (Arithmeti c and Lo gical Oper ation) 9.1 ADDP / Addition 169 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Ap[...]

  • Página 172

    9 Applied In structions (Arithmeti c and Lo gical Oper ation) 9.1 ADDP / Addition 170 FXCPU Structured Programming Manual [Basic & Applied Instruction] Extension function(FX U and FX 2C PLCs) The FX U PLC of V2.30 or earlier does not support the extension function. When executing an instruction with M8023 ON, a binary float operation takes plac[...]

  • Página 173

    9 Applied In structions (Arithmeti c and Lo gical Oper ation) 9.2 SUBP / Subtracti on 171 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) [...]

  • Página 174

    9 Applied In structions (Arithmeti c and Lo gical Oper ation) 9.2 SUBP / Subtracti on 172 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 16-bit operation(SUBP) The data specified by is subtracted from the dat a specified by in the binary format, and the subtraction result is transferred t[...]

  • Página 175

    9 Applied In structions (Arithmeti c and Lo gical Oper ation) 9.2 SUBP / Subtracti on 173 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) [...]

  • Página 176

    9 Applied In structions (Arithmeti c and Lo gical Oper ation) 9.3 MULP / Multi plication 174 FXCPU Structured Programming Manual [Basic & Applied Instruction] 9.3 MULP / Multiplication Outline This instruction executes multiplication by two values to obtain the result (A × B = C). → For the floating point m ultiplication inst ruction [DEMUL][...]

  • Página 177

    9 Applied In structions (Arithmeti c and Lo gical Oper ation) 9.3 MULP / Multi plication 175 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flo[...]

  • Página 178

    9 Applied In structions (Arithmeti c and Lo gical Oper ation) 9.3 MULP / Multi plication 176 FXCPU Structured Programming Manual [Basic & Applied Instruction] 2. 32-bit operation(DMUL, DMULP) The data specified by is multiplied b y the data specified b y in the binary format, and the multiplication result is transferred to 64-bit (four word dev[...]

  • Página 179

    9 Applied In structions (Arithmeti c and Lo gical Oper ation) 9.3 MULP / Multi plication 177 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flo[...]

  • Página 180

    9 Applied In structions (Arithmeti c and Lo gical Oper ation) 9.4 DIVP / Division 178 FXCPU Structured Programming Manual [Basic & Applied Instruction] 9.4 DIVP / Division Outline This instruction executes division by two values to obtain the result [A ÷ B =C...(remainder)]. → For the floating p oint division instru ction [DEDIV], refer to S[...]

  • Página 181

    9 Applied In structions (Arithmeti c and Lo gical Oper ation) 9.4 DIVP / Division 179 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Ap[...]

  • Página 182

    9 Applied In structions (Arithmeti c and Lo gical Oper ation) 9.4 DIVP / Division 180 FXCPU Structured Programming Manual [Basic & Applied Instruction] Cautions 1) Some restrictions to applicable devices S 1:The FX 3G , FX 3GC , FX 3U and FX 3UC PLCs only are applicable. S 2:The FX 3U and FX 3UC PLCs only are applicable. S 3:Available only for [...]

  • Página 183

    9 Applied In structions (Arithmeti c and Lo gical Oper ation) 9.5 INC / Increment 181 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Ap[...]

  • Página 184

    9 Applied In structions (Arithmeti c and Lo gical Oper ation) 9.5 INC / Increment 182 FXCPU Structured Programming Manual [Basic & Applied Instruction] Cautions 1) Instructions of pulse operation type are not provided in the FX 0S , FX 0 or FX 0N PLC. To execute pulse operation, make the instruction execution condition pulse type. 2) Note that [...]

  • Página 185

    9 Applied In structions (Arithmeti c and Lo gical Oper ation) 9.6 DEC / Decrement 183 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Ap[...]

  • Página 186

    9 Applied In structions (Arithmeti c and Lo gical Oper ation) 9.6 DEC / Decrement 184 FXCPU Structured Programming Manual [Basic & Applied Instruction] Cautions 1) Instructions of pulse operation type are not provided in the FX 0S , FX 0 or FX 0N PLC. To execute pulse operation, make the instruction execution condition pulse type. 2) In a 16-bi[...]

  • Página 187

    9 Applied In structions (Arithmeti c and Lo gical Oper ation) 9.7 WAND / Logical Word AND 185 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Fl[...]

  • Página 188

    9 Applied In structions (Arithmeti c and Lo gical Oper ation) 9.7 WAND / Logical Word AND 186 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 16-bit operation(WAND, WANDP) The logical product (AND) operation is executed to the contents specified by and in units of bit, and the result is tr[...]

  • Página 189

    9 Applied In structions (Arithmeti c and Lo gical Oper ation) 9.8 WOR / Logical Word OR 187 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow[...]

  • Página 190

    9 Applied In structions (Arithmeti c and Lo gical Oper ation) 9.8 WOR / Logical Word OR 188 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 16-bit operation(WOR, WORP) The logical sum (OR) operation is executed to the contents specified by and in units of bit, and the result is transferred[...]

  • Página 191

    9 Applied In structions (Arithmeti c and Lo gical Oper ation) 9.9 WXOR / Logical Exclusive OR 189 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Progra[...]

  • Página 192

    9 Applied In structions (Arithmeti c and Lo gical Oper ation) 9.9 WXOR / Logical Exclusive OR 190 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 16-bit operation(WXOR, WXORP) The exclusive logic al sum (XOR) ope ration is executed to the contents spe cified by and in units of bit, and the[...]

  • Página 193

    9 Applied In structions (Arithmeti c and Lo gical Oper ation) 9.9 WXOR / Logical Exclusive OR 191 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Progra[...]

  • Página 194

    9 Applied In structions (Arithmeti c and Lo gical Oper ation) 9.10 NEG / Negation 192 FXCPU Structured Programming Manual [Basic & Applied Instruction] 9.10 NEG / Negation Outline This instruction obtains the 2's complement of a numeric value (by inverting each bit and adding "1"). A sign of a numeric value can be converted by th[...]

  • Página 195

    9 Applied In structions (Arithmeti c and Lo gical Oper ation) 9.10 NEG / Negation 193 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Ap[...]

  • Página 196

    9 Applied In structions (Arithmeti c and Lo gical Oper ation) 9.10 NEG / Negation 194 FXCPU Structured Programming Manual [Basic & Applied Instruction] 2. Obtaining the absolute value by SUB (subtract ion) instruction Even if NEG instruction (complement operation) is not used, D30 always stores the a bsolute value of the difference. Negative va[...]

  • Página 197

    10 Applied Inst ructions (R otation and Shift Operation) 195 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Applied Instructi ons (Move[...]

  • Página 198

    10 Applied Inst ructions (R otation and Shift Operation) 10.1 ROR / Rotation Ri ght 196 FXCPU Structured Programming Manual [Basic & Applied Instruction] 10.1 ROR / Rotation Right Outline This instruction shifts and rotates the bit inf ormation rightward by the specified number of bits without the carry flag. 1. Format and operation, execution [...]

  • Página 199

    10 Applied Inst ructions (R otation and Shift Operation) 10.1 ROR / Rotation Ri ght 197 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 [...]

  • Página 200

    10 Applied Inst ructions (R otation and Shift Operation) 10.1 ROR / Rotation Ri ght 198 FXCPU Structured Programming Manual [Basic & Applied Instruction] Related device → For the carry flag use met hod, refer to Section 1.3.4. Cautions 1) Some restrictions to applicable devices S 1:K4Y , K4M and K4S are valid for a 16-bit operation. K8Y , K8M[...]

  • Página 201

    10 Applied Inst ructions (R otation and Shift Operation) 10.2 ROL / Rotation Left 199 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Ap[...]

  • Página 202

    10 Applied Inst ructions (R otation and Shift Operation) 10.2 ROL / Rotation Left 200 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 16-bit operation (ROL, ROLP) "n" bits out of 16 bits of the device specified by are rotated leftward. • The final bit is stored in the carry fla[...]

  • Página 203

    10 Applied Inst ructions (R otation and Shift Operation) 10.2 ROL / Rotation Left 201 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8 Ap[...]

  • Página 204

    10 Applied Inst ructions (R otation and Shift Operation) 10.3 RCR / Rotation Right with Carry 202 FXCPU Structured Programming Manual [Basic & Applied Instruction] 10.3 RCR / Rotation Right with Carry Outline This instruction shifts and rotates the bit informatio n rightward b y the specified n umber of bits together with the carry flag. 1. For[...]

  • Página 205

    10 Applied Inst ructions (R otation and Shift Operation) 10.3 RCR / Rotation Right with Carry 203 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Progra[...]

  • Página 206

    10 Applied Inst ructions (R otation and Shift Operation) 10.3 RCR / Rotation Right with Carry 204 FXCPU Structured Programming Manual [Basic & Applied Instruction] Related device → For the carry flag use met hod, refer to Section 1.3.4. Cautions 1) Some restrictions to applicable devices S 1:K4Y , K4M and K4S are valid for a 16-bit operation.[...]

  • Página 207

    10 Applied Inst ructions (R otation and Shift Operation) 10.4 RCL / Rotation Left with Carry 205 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program[...]

  • Página 208

    10 Applied Inst ructions (R otation and Shift Operation) 10.4 RCL / Rotation Left with Carry 206 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 16-bit operation (RCL, RCLP) "n" bits out of 16 bits of the device specified by and 1 bit (carry flag M8022) are rotated leftward. The [...]

  • Página 209

    10 Applied Inst ructions (R otation and Shift Operation) 10.4 RCL / Rotation Left with Carry 207 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program[...]

  • Página 210

    10 Applied Inst ructions (R otation and Shift Operation) 10.5 SFTR / Bit Shif t Right 208 FXCPU Structured Programming Manual [Basic & Applied Instruction] 10.5 SFTR / Bit Shift Right Outline This instruction shifts bit devices of the specified bit length rightward by the specified number of bits. After shift, the bit device specified by is tra[...]

  • Página 211

    10 Applied Inst ructions (R otation and Shift Operation) 10.5 SFTR / Bit Shif t Right 209 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) [...]

  • Página 212

    10 Applied Inst ructions (R otation and Shift Operation) 10.6 SFT L / Bit Shift L eft 210 FXCPU Structured Programming Manual [Basic & Applied Instruction] 10.6 SFTL / Bit Shift Left Outline This instruction shifts bit devices of the specified bit length leftward by the specified number of bits. After shift, the bit device specified by is trans[...]

  • Página 213

    10 Applied Inst ructions (R otation and Shift Operation) 10.6 SFT L / Bit Shift L eft 211 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) [...]

  • Página 214

    10 Applied Inst ructions (R otation and Shift Operation) 10.6 SFT L / Bit Shift L eft 212 FXCPU Structured Programming Manual [Basic & Applied Instruction] Program examples(Conditional stepping of 1-bit data) By setting X000 to X007 to ON in turn, Y000 to Y007 are activated in turn. If the order is wrong, activation is disabled. X000 S 0 M8046 [...]

  • Página 215

    10 Applied Inst ructions (R otation and Shift Operation) 10.7 WSFR / Word Shift Right 213 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) [...]

  • Página 216

    10 Applied Inst ructions (R otation and Shift Operation) 10.7 WSFR / Word Shift Right 214 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 16-bit operation (WSFR, WSFRP) For "n1" word devices starting from the device specified by , "n2" words are shif ted rightward (1) a[...]

  • Página 217

    10 Applied Inst ructions (R otation and Shift Operation) 10.7 WSFR / Word Shift Right 215 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) [...]

  • Página 218

    10 Applied Inst ructions (R otation and Shift Operation) 10.8 WSFL / Word Shift Left 216 FXCPU Structured Programming Manual [Basic & Applied Instruction] 10.8 WSFL / Word Shift Left Outline This instruction shifts the word data information leftward by the specified number of words. 1. Format and operation, execution form 2. Set da ta 3. Applic[...]

  • Página 219

    10 Applied Inst ructions (R otation and Shift Operation) 10.8 WSFL / Word Shift Left 217 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Program Flow) 8[...]

  • Página 220

    10 Applied Inst ructions (R otation and Shift Operation) 10.8 WSFL / Word Shift Left 218 FXCPU Structured Programming Manual [Basic & Applied Instruction] Program examples 1. Shifting devices with digit specification 3) 2) Y017 Y016 Y015 Y014 Y013 Y012 Y011 Y010 Y007 Y006 Y005 Y004 Y003 Y002 Y001 Y000 Specify a same digit for devices with digit[...]

  • Página 221

    10 Applied Inst ructions (R otation and Shift Operation) 10.9 SFWR / Shift Writ e [FIFO/FILO Control] 219 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions[...]

  • Página 222

    10 Applied Inst ructions (R otation and Shift Operation) 10.9 SFWR / Shift Writ e [FIFO/FILO Control] 220 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 16-bit operation (SFWR, SFWRP) The contents of the device specified by are written to "n-1" devices from the device specified [...]

  • Página 223

    10 Applied Inst ructions (R otation and Shift Operation) 10.9 SFWR / Shift Writ e [FIFO/FILO Control] 221 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions[...]

  • Página 224

    10 Applied Inst ructions (R otation and Shift Operation) 10.10 SFRD / Shift Read [FIFO Control] 222 FXCPU Structured Programming Manual [Basic & Applied Instruction] 10.10 SFRD / Shift R ead [FIFO Control] Outline This instruction reads data for first-in first-out control. 1. Format and operation, execution form 2. Set da ta 3. Applicable devic[...]

  • Página 225

    10 Applied Inst ructions (R otation and Shift Operation) 10.10 SFRD / Shift Read [FIFO Control] 223 FXCPU Structured Programming Manual [Basic & Applied Instruction] 1 Outline 2 Instruction List 3 Configuration of Instruction 4 How to R ead Explanation of Instructions 5 Basic Instruction 6 S tep Ladder Instructions 7 Applied Instruct ions (Prog[...]

  • Página 226

    11 Applied Instructions (D ata Operation) 224 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11. Applied Instructions (Data Operation) This chapter introduces the instructions for executing complicated processing for applied instructions move, compare, arithmetic operations, rotation and shift operation instructions. Instruct[...]

  • Página 227

    11 Applied Instructions (D ata Operation) 11.1 ZRST / Zone Reset 225 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Instru ctio[...]

  • Página 228

    11 Applied Instructions (D ata Operation) 11.1 ZRST / Zone Reset 226 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 16-bit operation (ZRST, ZRSTP) Same type of devices specified by to are reset at one time. When the devices specified by and are bit devices "OFF (reset)" is writt[...]

  • Página 229

    11 Applied Instructions (D ata Operation) 11.1 ZRST / Zone Reset 227 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Instru ctio[...]

  • Página 230

    11 Applied Instructions (D ata Operation) 11.1 ZRST / Zone Reset 228 FXCPU Structured Programming Manual [Basic & Applied Instruction] 5) Caution on simultaneous instances of the ZRST instruction and a counter The ZRST instruction resets also the last stage and reset state of T and C coils. Accordingly, if the drive contact of X000 is ON in the[...]

  • Página 231

    11 Applied Instructions (D ata Operation) 11.2 DECO / Decode 229 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Instru ctions ([...]

  • Página 232

    11 Applied Instructions (D ata Operation) 11.2 DECO / Decode 230 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 16-bit operation (DECO, DECOP) One bit among the devices specified by [ to +2 n -1] is set to O N according to the value of the device specified by . 1) When the device specifie[...]

  • Página 233

    11 Applied Instructions (D ata Operation) 11.2 DECO / Decode 231 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Instru ctions ([...]

  • Página 234

    11 Applied Instructions (D ata Operation) 11.2 DECO / Decode 232 FXCPU Structured Programming Manual [Basic & Applied Instruction] 2. Turning ON the bit out of word devices ac cording to the contents of bit devices The value expressed by X00 0 to X002 is decoded to D0 (X000 and X001 are ON, and X002 is OFF in this example). • When the values [...]

  • Página 235

    11 Applied Instructions (D ata Operation) 11.3 ENCO / Encode 233 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Instru ctions ([...]

  • Página 236

    11 Applied Instructions (D ata Operation) 11.3 ENCO / Encode 234 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 16-bit operation (ENCO, ENCOP) The 2 n bit of the data specified b y is encoded, and t he result value is s tored to the devic e specified by . This instruction converts data in[...]

  • Página 237

    11 Applied Instructions (D ata Operation) 11.3 ENCO / Encode 235 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Instru ctions ([...]

  • Página 238

    11 Applied Instructions (D ata Operation) 11.4 SUM / Sum of Active Bits 236 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11.4 SUM / Sum of Active Bits Outline This instruction counts the number of "1" (ON) bits in the data of a specified device. 1. Format and operation, execution form 2. Set da ta 3. Applicable de[...]

  • Página 239

    11 Applied Instructions (D ata Operation) 11.4 SUM / Sum of Active Bits 237 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Inst[...]

  • Página 240

    11 Applied Instructions (D ata Operation) 11.4 SUM / Sum of Active Bits 238 FXCPU Structured Programming Manual [Basic & Applied Instruction] 3. Operation result of the device specifie d by according to the value specified by (in 16-bit operation) Cautions 1) While the command input is OFF, the instruction is not executed. The output of the num[...]

  • Página 241

    11 Applied Instructions (D ata Operation) 11.5 BON / Chec k Specified Bit Status 239 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 App[...]

  • Página 242

    11 Applied Instructions (D ata Operation) 11.5 BON / Chec k Specified Bit Status 240 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 16-bit operation(BON, BONP) The status (ON or OFF) of the bit "n" in the device specified by is output to the device specified by . [When the bit &[...]

  • Página 243

    11 Applied Instructions (D ata Operation) 11.5 BON / Chec k Specified Bit Status 241 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 App[...]

  • Página 244

    11 Applied Instructions (D ata Operation) 11.6 MEAN / Mean 242 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11.6 MEAN / Mean Outline This instruction obtains the mean value of data. 1. Format and operation, execution form 2. Set da ta 3. Applicable devices S : Refer to "Cautions". FX 3U(C) FX 3G(C) FX 3S FX 2N(C) [...]

  • Página 245

    11 Applied Instructions (D ata Operation) 11.6 MEAN / Mean 243 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Instru ctions (Ex[...]

  • Página 246

    11 Applied Instructions (D ata Operation) 11.7 ANS / Timed Annunciat or Set 244 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11.7 ANS / Timed Annunciator Set Outline This instruction sets a state relay as an annunciator. 1. Format and operation, execution form 2. Set da ta 3. Applicable devices S : Refer to "Cautions&q[...]

  • Página 247

    11 Applied Instructions (D ata Operation) 11.7 ANS / Timed Annunciat or Set 245 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied [...]

  • Página 248

    11 Applied Instructions (D ata Operation) 11.8 ANR / Annunciator Reset 246 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11.8 ANR / Annunciator Reset Outline This instruction resets an annunciator in the ON status with the smallest number. 1. Format and operation, execution form 2. Set da ta 3. Applicable devices Function an[...]

  • Página 249

    11 Applied Instructions (D ata Operation) 11.8 ANR / Annunciator Reset 247 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Instr[...]

  • Página 250

    11 Applied Instructions (D ata Operation) 11.9 SQR / Square Root 248 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11.9 SQR / Square Root Outline This instruction obtains the square root. The DESQR instruction obtains the square root in floating point operation. → For DESQR instruction, refer to Section 18.15. 1. Format an[...]

  • Página 251

    11 Applied Instructions (D ata Operation) 11.9 SQR / Square Root 249 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Instru ctio[...]

  • Página 252

    11 Applied Instructions (D ata Operation) 11.10 FLT / Conversi on to Floating Point 250 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11.10 FLT / Conversion to Floating Point Outline This instruction converts a binary integer into a binary floating point (real number). 1. Format and operation, execution form 2. Set da ta 3. [...]

  • Página 253

    11 Applied Instructions (D ata Operation) 11.10 FLT / Conversi on to Floating Point 251 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 [...]

  • Página 254

    11 Applied Instructions (D ata Operation) 11.10 FLT / Conversi on to Floating Point 252 FXCPU Structured Programming Manual [Basic & Applied Instruction] Program examples 1. Arithmetic operations by binary floating point operations The sequence program shown below is constructed as follows: 1) Calculation example × K34.5 (D 0) (X017 to X010) 1[...]

  • Página 255

    11 Applied Instructions (D ata Operation) 11.10 FLT / Conversi on to Floating Point 253 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 [...]

  • Página 256

    12 Applied Instructi ons (High S peed Proces sing) 254 FXCPU Structured Programming Manual [Basic & Applied Instruction] 12. Applied Instructions (High Speed Processing) This chapter in troduces interrup t processing type high-speed instruc tions that exec ute sequence co ntrol using the latest I/O information and utilize the high-speed process[...]

  • Página 257

    12 Applied Instructi ons (High S peed Proces sing) 255 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Instru ctions (External D[...]

  • Página 258

    12 Applied Instructi ons (High S peed Proces sing) 256 FXCPU Structured Programming Manual [Basic & Applied Instruction] 12.1 REF / Refresh Function and operation explanation 1. 16-bit operation(REF, REFP) 1) When refreshing outputs (Y) "n" points are refreshed from the output of the device specified by . ("n" must be a mult[...]

  • Página 259

    12 Applied Instructi ons (High S peed Proces sing) 257 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Instru ctions (External D[...]

  • Página 260

    12 Applied Instructi ons (High S peed Proces sing) 258 FXCPU Structured Programming Manual [Basic & Applied Instruction] 12.1 REF / Refresh 12.1.1 What should be understood before using the REF instruction 1. Changing the input filter The input filter value is determined by the contents of D8020 (initial value: 10 ms). Use the MOV instruction, [...]

  • Página 261

    12 Applied Instructi ons (High S peed Proces sing) 259 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Instru ctions (External D[...]

  • Página 262

    12 Applied Instructi ons (High S peed Proces sing) 260 FXCPU Structured Programming Manual [Basic & Applied Instruction] 12.2 REFF / Refresh and Filter Adjust • When the input turns ON "n × 1 ms" before the instruction is executed, the input image memo ry is set to ON. When the input turns OFF "n × 1 ms" before the instr[...]

  • Página 263

    12 Applied Instructi ons (High S peed Proces sing) 261 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Instru ctions (External D[...]

  • Página 264

    12 Applied Instructi ons (High S peed Proces sing) 262 FXCPU Structured Programming Manual [Basic & Applied Instruction] 12.2 REFF / Refresh and Filter Adjust 12.2.1 What should be understood before using REFF instruction Generally, a C-R filter of approximat ely 10 ms is prov ided for inputs in PLCs as c ountermeasures ag ainst chattering and [...]

  • Página 265

    12 Applied Instructi ons (High S peed Proces sing) 263 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Instru ctions (External D[...]

  • Página 266

    12 Applied Instructi ons (High S peed Proces sing) 264 FXCPU Structured Programming Manual [Basic & Applied Instruction] 12.3 MTR / Input Matrix Function and operation explanation 1. 16-bit operation (MTR) An input signal of 8 points × "n" columns is con trolled in the time division method using 8 inputs of the device specified by an[...]

  • Página 267

    12 Applied Instructi ons (High S peed Proces sing) 265 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Instru ctions (External D[...]

  • Página 268

    12 Applied Instructi ons (High S peed Proces sing) 266 FXCPU Structured Programming Manual [Basic & Applied Instruction] 12.3 MTR / Input Matrix 12.3.1 Operation and cautions for MTR instruction 1. Command input 1) Setting the command input to normally ON For the MTR instruction, set the command input to normally ON. 2. Input numbers used in MT[...]

  • Página 269

    12 Applied Instructi ons (High S peed Proces sing) 267 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Instru ctions (External D[...]

  • Página 270

    12 Applied Instructi ons (High S peed Proces sing) 268 FXCPU Structured Programming Manual [Basic & Applied Instruction] 12.4 DHSCS, DHSCS_I / High Speed Coun ter Set, High Speed Interrupt Counter Set Function and operation explanation 1. 32-bit operation (DHSCS) When the current val ue of a high speed counter of t he device speci fied by becom[...]

  • Página 271

    12 Applied Instructi ons (High S peed Proces sing) 269 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Instru ctions (External D[...]

  • Página 272

    12 Applied Instructi ons (High S peed Proces sing) 270 FXCPU Structured Programming Manual [Basic & Applied Instruction] 12.4 DHSCS, DHSCS_I / High Speed Coun ter Set, High Speed Interrupt Counter Set 4. Some restrictions to applicable de vices S 1: The FX 3U and FX 3UC PLCs only are applicable. Not indexe d (V, Z). S 2: The FX 3G , FX 3GC , FX[...]

  • Página 273

    12 Applied Instructi ons (High S peed Proces sing) 271 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Instru ctions (External D[...]

  • Página 274

    12 Applied Instructi ons (High S peed Proces sing) 272 FXCPU Structured Programming Manual [Basic & Applied Instruction] 12.4 DHSCS, DHSCS_I / High Speed Coun ter Set, High Speed Interrupt Counter Set 2) Operation Even if the condition for set ting the output to ON or OFF is given as the comparison result, the comparison result does not change [...]

  • Página 275

    12 Applied Instructi ons (High S peed Proces sing) 273 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Instru ctions (External D[...]

  • Página 276

    12 Applied Instructi ons (High S peed Proces sing) 274 FXCPU Structured Programming Manual [Basic & Applied Instruction] 12.4 DHSCS, DHSCS_I / High Speed Coun ter Set, High Speed Interrupt Counter Set Operation of FX 3U and FX 3UC PLCs *1. To change the comparison results by the instructions (1) to (3) and (5) in the previous page, change the c[...]

  • Página 277

    12 Applied Instructi ons (High S peed Proces sing) 275 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Instru ctions (External D[...]

  • Página 278

    12 Applied Instructi ons (High S peed Proces sing) 276 FXCPU Structured Programming Manual [Basic & Applied Instruction] 12.5 DHSCR / High Speed Counter Reset Function and operation explanation 1. 32-bit operation (DHSCR) When the current v alue of the hig h speed counter of the device specif ied by becomes the comparis on value of the device s[...]

  • Página 279

    12 Applied Instructi ons (High S peed Proces sing) 277 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Instru ctions (External D[...]

  • Página 280

    12 Applied Instructi ons (High S peed Proces sing) 278 FXCPU Structured Programming Manual [Basic & Applied Instruction] 12.5 DHSCR / High Speed Counter Reset S 3: The FX 3U and FX 3UC PLCs only are applicable. S 4: The same counter of the device specified by can be used. (See the program example.) 4. Specifying input and output variables When [...]

  • Página 281

    12 Applied Instructi ons (High S peed Proces sing) 279 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Instru ctions (External D[...]

  • Página 282

    12 Applied Instructi ons (High S peed Proces sing) 280 FXCPU Structured Programming Manual [Basic & Applied Instruction] 12.6 DHSZ / High Speed Counter Zone Compare Function and operation explanation 1. 32-bit operation (DHSZ) The current value of the high speed counter of the device specified by is compared with two comparison points (comparis[...]

  • Página 283

    12 Applied Instructi ons (High S peed Proces sing) 281 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Instru ctions (External D[...]

  • Página 284

    12 Applied Instructi ons (High S peed Proces sing) 282 FXCPU Structured Programming Manual [Basic & Applied Instruction] 12.6 DHSZ / High Speed Counter Zone Compare For FX U and FX 2C PLCs 2. Device specificat ion range Only high speed counters can be specified as . For details, refer to the following manual. → FX Structured Prog rammin g Man[...]

  • Página 285

    12 Applied Instructi ons (High S peed Proces sing) 283 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Instru ctions (External D[...]

  • Página 286

    12 Applied Instructi ons (High S peed Proces sing) 284 FXCPU Structured Programming Manual [Basic & Applied Instruction] 12.6 DHSZ / High Speed Counter Zone Compare Timing chart In the part 1) in the tim ing chart, Y010 remains OFF if the current value of a high speed c ounter (C235 in the example below) is "0" when restoring the powe[...]

  • Página 287

    12 Applied Instructi ons (High S peed Proces sing) 285 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Instru ctions (External D[...]

  • Página 288

    12 Applied Instructi ons (High S peed Proces sing) 286 FXCPU Structured Programming Manual [Basic & Applied Instruction] 12.6 DHSZ / High Speed Counter Zone Compare 2. Operation M8002 K123 DMOV EN s ENO d D200 H10 MOV EN s ENO d D202 K1 MOV EN s ENO d D203 K234 DMOV EN s ENO d D204 H10 MOV EN s ENO d D206 K0 MOV EN s ENO d D207 K345 DMOV EN s E[...]

  • Página 289

    12 Applied Instructi ons (High S peed Proces sing) 287 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Instru ctions (External D[...]

  • Página 290

    12 Applied Instructi ons (High S peed Proces sing) 288 FXCPU Structured Programming Manual [Basic & Applied Instruction] 12.6 DHSZ / High Speed Counter Zone Compare Cautions 1. Limitation in the number of DHSZ instruction This instruction can be programmed only once in a program. With regard to the DHSCS, DHSCR, DHSZ a nd DHSCT instructions use[...]

  • Página 291

    12 Applied Instructi ons (High S peed Proces sing) 289 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Instru ctions (External D[...]

  • Página 292

    12 Applied Instructi ons (High S peed Proces sing) 290 FXCPU Structured Programming Manual [Basic & Applied Instruction] 12.6 DHSZ / High Speed Counter Zone Compare Command input K20 DMOVP EN s ENO d D300 DMOVP EN s ENO d DMOVP EN s ENO d K500 DMOVP EN s ENO d D306 DMOVP EN s ENO d DMOVP EN s ENO d K800 DMOVP EN s ENO d DMOVP EN s ENO d DMOVP E[...]

  • Página 293

    12 Applied Instructi ons (High S peed Proces sing) 291 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Instru ctions (External D[...]

  • Página 294

    12 Applied Instructi ons (High S peed Proces sing) 292 FXCPU Structured Programming Manual [Basic & Applied Instruction] 12.7 SPD / Speed Detection 12.7 SPD / Speed Detection Outline This instruction counts the input pulse for a specified period of time as interrupt input. The function of this instruction varies depending on the version. 1. For[...]

  • Página 295

    12 Applied Instructi ons (High S peed Proces sing) 293 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Instru ctions (External D[...]

  • Página 296

    12 Applied Instructi ons (High S peed Proces sing) 294 FXCPU Structured Programming Manual [Basic & Applied Instruction] 12.7 SPD / Speed Detection 2. 32-bit operation (DSPD) [FX 3GC PLCs Ver. 1.40 or later, FX 3UC PLCs Ver. 2.20 or later, and FX 3S /FX 3G /FX 3U PLCs] The input pulse specified by is counted only for the period of "time sp[...]

  • Página 297

    12 Applied Instructi ons (High S peed Proces sing) 295 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Instru ctions (External D[...]

  • Página 298

    12 Applied Instructi ons (High S peed Proces sing) 296 FXCPU Structured Programming Manual [Basic & Applied Instruction] 12.8 PLSY / Pulse Y Output 12.8 PLSY / Pulse Y Output Outline This instruction generates a pulse signal. 1. Format and operation, execution form 2. Set da ta 3. Applicable devices S : Refer to "Cautions". FX 3U(C) F[...]

  • Página 299

    12 Applied Instructi ons (High S peed Proces sing) 297 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Instru ctions (External D[...]

  • Página 300

    12 Applied Instructi ons (High S peed Proces sing) 298 FXCPU Structured Programming Manual [Basic & Applied Instruction] 12.8 PLSY / Pulse Y Output 2. Monitoring the current num ber of generated pulses The number of pulses output from Y000 or Y001 is stored in the following special data resistors. *1. The FX 0S , FX 0 , FX 0N , FX U or FX 2C PL[...]

  • Página 301

    12 Applied Instructi ons (High S peed Proces sing) 299 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Instru ctions (External D[...]

  • Página 302

    12 Applied Instructi ons (High S peed Proces sing) 300 FXCPU Structured Programming Manual [Basic & Applied Instruction] 12.8 PLSY / Pulse Y Output 6. Handling of pulse output te rminals in the main units The outputs Y000 and Y001 are the high speed response type. When using a pulse output instruction or positioning instruction, ad just the loa[...]

  • Página 303

    12 Applied Instructi ons (High S peed Proces sing) 301 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Instru ctions (External D[...]

  • Página 304

    12 Applied Instructi ons (High S peed Proces sing) 302 FXCPU Structured Programming Manual [Basic & Applied Instruction] 12.8 PLSY / Pulse Y Output Program examples (When outputting pulses without any limitation) When the device specified by is set to K0, pulses are output without any limitation. No limitation (K0) 1000Hz Y000 Command input DPL[...]

  • Página 305

    12 Applied Instructi ons (High S peed Proces sing) 303 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Instru ctions (External D[...]

  • Página 306

    12 Applied Instructi ons (High S peed Proces sing) 304 FXCPU Structured Programming Manual [Basic & Applied Instruction] 12.9 PWM / Pulse Width Modulation Cautions about writing during RUN Avoid writing during RUN aft er either of the following op erations in a ci rcuit block including the pulse output instruction or positioning instruction. ?[...]

  • Página 307

    12 Applied Instructi ons (High S peed Proces sing) 305 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Instru ctions (External D[...]

  • Página 308

    12 Applied Instructi ons (High S peed Proces sing) 306 FXCPU Structured Programming Manual [Basic & Applied Instruction] 12.10 PLSR / Acceleration/Deceleration Setup 12.10 PLSR / Acceleratio n/Deceleration Setup Outline This pulse output instruction has the acceleration/deceleration function. 1. Format and operation, execution form 2. Set da ta[...]

  • Página 309

    12 Applied Instructi ons (High S peed Proces sing) 307 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Instru ctions (External D[...]

  • Página 310

    12 Applied Instructi ons (High S peed Proces sing) 308 FXCPU Structured Programming Manual [Basic & Applied Instruction] 12.10 PLSR / Acceleration/Deceleration Setup Related devices 1. Instruction execution complet e flag 2. Monitoring the number of generated pulses The number of pulses output from Y000 or Y001 is stored in the following specia[...]

  • Página 311

    12 Applied Instructi ons (High S peed Proces sing) 309 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Instru ctions (External D[...]

  • Página 312

    12 Applied Instructi ons (High S peed Proces sing) 310 FXCPU Structured Programming Manual [Basic & Applied Instruction] 12.10 PLSR / Acceleration/Deceleration Setup • The pulse output is controlled by the dedicated hardware not affected by the sequence program (operation cycle). • If the command input is set to OFF during continuous pulse [...]

  • Página 313

    13 Applied Instructio ns (Handy Ins truction) 311 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Instru ctions (External Device[...]

  • Página 314

    13 Applied Instructio ns (Handy Ins truction) 13.1 IST / Init ial State 312 FXCPU Structured Programming Manual [Basic & Applied Instruction] 13.1 IST / Initial State Outline This is a comm and for cont rolling the init ial stat e and special a uxiliary relay aut omatically in a program by stepladder. 1. Format and operation, execution form 2. [...]

  • Página 315

    13 Applied Instructio ns (Handy Ins truction) 13.1 IST / Init ial State 313 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Inst[...]

  • Página 316

    13 Applied Instructio ns (Handy Ins truction) 13.1 IST / Init ial State 314 FXCPU Structured Programming Manual [Basic & Applied Instruction] Cautions 1. Devices designated in and sw itches to be used Not all mode selection switches are used. Vacant numbers (not usable in other applications) are designated in switches not in use. 2. Program seq[...]

  • Página 317

    13 Applied Instructio ns (Handy Ins truction) 13.1 IST / Init ial State 315 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Inst[...]

  • Página 318

    13 Applied Instructio ns (Handy Ins truction) 13.1 IST / Init ial State 316 FXCPU Structured Programming Manual [Basic & Applied Instruction] IST command introduction examples (examp les of work transfer mechanism) 1. Operation mode 2. Transfer mechanism The home positio n is the upper left corner , and the work is sequ entially trans ferred fr[...]

  • Página 319

    13 Applied Instructio ns (Handy Ins truction) 13.1 IST / Init ial State 317 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Inst[...]

  • Página 320

    13 Applied Instructio ns (Handy Ins truction) 13.1 IST / Init ial State 318 FXCPU Structured Programming Manual [Basic & Applied Instruction] 4. Special a uxiliary rela ys for IST c ommand(M) Auxiliary relays (M) used in IST co mmand are divided into those controlled automatically by the command depending on the circumstances, an d others that [...]

  • Página 321

    13 Applied Instructio ns (Handy Ins truction) 13.1 IST / Init ial State 319 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Inst[...]

  • Página 322

    13 Applied Instructio ns (Handy Ins truction) 13.1 IST / Init ial State 320 FXCPU Structured Programming Manual [Basic & Applied Instruction] c) Return to home position Program is not required when return home mode is not available. However, befo re automatic operation, return home end M8043 must be once set. SET EN ENO d M8043 [Structured ladd[...]

  • Página 323

    13 Applied Instructio ns (Handy Ins truction) 13.1 IST / Init ial State 321 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Inst[...]

  • Página 324

    13 Applied Instructio ns (Handy Ins truction) 13.1 IST / Init ial State 322 FXCPU Structured Programming Manual [Basic & Applied Instruction] SET EN ENO d [Structured ladder/FBD] X003 Y000 STL EN ENO SET EN ENO d SET EN ENO S24 STL EN s ENO S24 s d STL EN ENO RST EN ENO d Y002 X002 STL EN ENO SET EN ENO S25 Y001 S27 Right limit S26 d S23 Upper [...]

  • Página 325

    13 Applied Instructio ns (Handy Ins truction) 13.2 SER / Search a Data Stack 323 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied[...]

  • Página 326

    13 Applied Instructio ns (Handy Ins truction) 13.2 SER / Search a Data Stack 324 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 16-bit operation In n pieces of data beginning from the device designated in , same data as the device designated in is searched, and the result is stored in the[...]

  • Página 327

    13 Applied Instructio ns (Handy Ins truction) 13.2 SER / Search a Data Stack 325 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied[...]

  • Página 328

    13 Applied Instructio ns (Handy Ins truction) 13.2 SER / Search a Data Stack 326 FXCPU Structured Programming Manual [Basic & Applied Instruction] Cautions 1. Comparison of magnitude To be calculated algebraically. (-10 < 2) 2. When minimum value and maximum value are present in a plurality If there are a pluralit y of minimu m valu e and ma[...]

  • Página 329

    13 Applied Instructio ns (Handy Ins truction) 13.3 ABSD / Absolute Drum Sequencer 327 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Ap[...]

  • Página 330

    13 Applied Instructio ns (Handy Ins truction) 13.3 ABSD / Absolute Drum Sequencer 328 FXCPU Structured Programming Manual [Basic & Applied Instruction] IST command equivalent circuit 1. 16-bit operation(ABSD) This is an example for explaining t he ON/OFF control of the output by one revolutio n of table (0 to 360 degrees). (Rotation angle signa[...]

  • Página 331

    13 Applied Instructio ns (Handy Ins truction) 13.3 ABSD / Absolute Drum Sequencer 329 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Ap[...]

  • Página 332

    13 Applied Instructio ns (Handy Ins truction) 13.3 ABSD / Absolute Drum Sequencer 330 FXCPU Structured Programming Manual [Basic & Applied Instruction] Cautions 1. Designation of high speed counter DABSD command can designate a high-speed counter in the device designated in . When the high-speed counter is specified, as c ompared with the count[...]

  • Página 333

    13 Applied Instructio ns (Handy Ins truction) 13.4 INCD / Incrementa l Drum Sequencer 331 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 1[...]

  • Página 334

    13 Applied Instructio ns (Handy Ins truction) 13.4 INCD / Incrementa l Drum Sequencer 332 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 16-bit operation(INCD) Data table (n lines × 1 p oint occupied) of n lines from the device designated in is compared with th e present value o f the co[...]

  • Página 335

    13 Applied Instructio ns (Handy Ins truction) 13.4 INCD / Incrementa l Drum Sequencer 333 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 1[...]

  • Página 336

    13 Applied Instructio ns (Handy Ins truction) 13.5 TTMR / Teaching Timer 334 FXCPU Structured Programming Manual [Basic & Applied Instruction] 13.5 TTMR / Teaching Timer Outline This is a command for measuring the ON duration of TTMR command. This is used when adjusting the timer setting time by pushbutton. 1. Format and operation, execution fo[...]

  • Página 337

    13 Applied Instructio ns (Handy Ins truction) 13.5 TTMR / Teaching Timer 335 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Ins[...]

  • Página 338

    13 Applied Instructio ns (Handy Ins truction) 13.5 TTMR / Teaching Timer 336 FXCPU Structured Programming Manual [Basic & Applied Instruction] Program examples Write teaching time in ten data registers. Set values should be preliminarily written in D400 to D409. M8000 RUN monitor Timer selection by digital switch The input of one-digit digital [...]

  • Página 339

    13 Applied Instructio ns (Handy Ins truction) 13.6 STMR / Specia l Timer 337 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Ins[...]

  • Página 340

    13 Applied Instructio ns (Handy Ins truction) 13.6 STMR / Specia l Timer 338 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 16-bit operation(STMR) The value desi gnated in m is determ ined as the set valu e for the timer of the de vice designate d in , and is issued to four points from th[...]

  • Página 341

    13 Applied Instructio ns (Handy Ins truction) 13.6 STMR / Specia l Timer 339 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Ins[...]

  • Página 342

    13 Applied Instructio ns (Handy Ins truction) 13.7 ALT / Alternate State 340 FXCPU Structured Programming Manual [Basic & Applied Instruction] 13.7 ALT / Alternate State Outline This is the command for inverting the bit device (ON to OFF, OFF to ON) when the input is turned ON. 1. Format and operation, execution form 2. Set da ta 3. Applicable [...]

  • Página 343

    13 Applied Instructio ns (Handy Ins truction) 13.7 ALT / Alternate State 341 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Ins[...]

  • Página 344

    13 Applied Instructio ns (Handy Ins truction) 13.7 ALT / Alternate State 342 FXCPU Structured Programming Manual [Basic & Applied Instruction] 2. Flicker operation 1) When the input X006 is turned ON, the contact of timer T2 operates momentarily in every 5 seconds. 2) Every time the contact of T2 is turned ON, the output Y007 is alternately tur[...]

  • Página 345

    13 Applied Instructio ns (Handy Ins truction) 13.8 RAMP / Ramp Varia ble Value 343 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Appli[...]

  • Página 346

    13 Applied Instructio ns (Handy Ins truction) 13.8 RAMP / Ramp Varia ble Value 344 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 16-bit operation(RAMP) The starting value and the desired end value are designated in and , and when the command input is turned ON, the value equ ally divided[...]

  • Página 347

    13 Applied Instructio ns (Handy Ins truction) 13.8 RAMP / Ramp Varia ble Value 345 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Appli[...]

  • Página 348

    13 Applied Instructio ns (Handy Ins truction) 13.9 ROTC / Rotary Tabl e Control 346 FXCPU Structured Programming Manual [Basic & Applied Instruction] 13.9 ROTC / Rotary Table Control Outline This is a command suited for turning the table by a shortcut route depending on the demanding window when putting on or taking out articles on the rotary t[...]

  • Página 349

    13 Applied Instructio ns (Handy Ins truction) 13.9 ROTC / Rotary Tabl e Control 347 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Appl[...]

  • Página 350

    13 Applied Instructio ns (Handy Ins truction) 13.9 ROTC / Rotary Tabl e Control 348 FXCPU Structured Programming Manual [Basic & Applied Instruction] Operation condition The condition necessary for using this command is as shown in the example below. 1) Rotation detection signal: X → a) Please install two-phase switch (X000, X001) for de tect[...]

  • Página 351

    13 Applied Instructio ns (Handy Ins truction) 13.10 SORT / SORT Tabulated Data 349 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Appli[...]

  • Página 352

    13 Applied Instructio ns (Handy Ins truction) 13.10 SORT / SORT Tabulated Data 350 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 16-bit operation(SORT) This command reshuffles the data table (reshuffling origin) composed of (m1 × m2) points from the device designated in in the ascending[...]

  • Página 353

    13 Applied Instructio ns (Handy Ins truction) 13.10 SORT / SORT Tabulated Data 351 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Appli[...]

  • Página 354

    14 Applied Instruc tions (External FX I/O Device) 352 FXCPU Structured Programming Manual [Basic & Applied Instruction] 14. Applied Instructions (External FX I/O Device) This chapter introduces t he instructions to rec eive data from and se nd data to extern al devices mainly using inputs and outputs in PLCs. Instruction name Function Refere nc[...]

  • Página 355

    14 Applied Instruc tions (External FX I/O Device) 14.1 TKY / Ten Key Input 353 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied I[...]

  • Página 356

    14 Applied Instruc tions (External FX I/O Device) 14.1 TKY / Ten Key Input 354 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 16-bit operation(TKY) By pressing key from the input for connec ting the numeric keys ( device designated in ), the entered numerical value i s stored in the devic[...]

  • Página 357

    14 Applied Instruc tions (External FX I/O Device) 14.1 TKY / Ten Key Input 355 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied I[...]

  • Página 358

    14 Applied Instruc tions (External FX I/O Device) 14.1 TKY / Ten Key Input 356 FXCPU Structured Programming Manual [Basic & Applied Instruction] Program examples This is an explanatio n of an example in which the in put X000 is the beginni ng, and numeric keys 0 to 9 are connected. 1. Program 2. Wiring diagram This wiring diagram is an example [...]

  • Página 359

    14 Applied Instruc tions (External FX I/O Device) 14.2 HKY / Hexadecimal Input 357 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Appli[...]

  • Página 360

    14 Applied Instruc tions (External FX I/O Device) 14.2 HKY / Hexadecimal Input 358 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 16-bit operation(HKY) The numerical value scanned by the signals of the input for connecting 16 keys (0 to F) (device designated in ) and the row o utput (devi[...]

  • Página 361

    14 Applied Instruc tions (External FX I/O Device) 14.2 HKY / Hexadecimal Input 359 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Appli[...]

  • Página 362

    14 Applied Instruc tions (External FX I/O Device) 14.2 HKY / Hexadecimal Input 360 FXCPU Structured Programming Manual [Basic & Applied Instruction] Cautions 1. Limit of number of times of use of command Only one of HKY command and DHKY command can be used in the program. If desired to use plural times, you can progr am by the index modifier (V[...]

  • Página 363

    14 Applied Instruc tions (External FX I/O Device) 14.3 DSW / Digital Switch (Thumb wheel Input) 361 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O[...]

  • Página 364

    14 Applied Instruc tions (External FX I/O Device) 14.3 DSW / Digital Switch (Thumb wheel Input) 362 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 16-bit operation(DSW) The value of digital switch connected to the device designated in is processed by time divisio n (entered sequentially f[...]

  • Página 365

    14 Applied Instruc tions (External FX I/O Device) 14.3 DSW / Digital Switch (Thumb wheel Input) 363 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O[...]

  • Página 366

    14 Applied Instruc tions (External FX I/O Device) 14.3 DSW / Digital Switch (Thumb wheel Input) 364 FXCPU Structured Programming Manual [Basic & Applied Instruction] 4. Method of using by relay output type You can also use the relay output type PLC by providing with "digital switch reading input." When pushbutton (X000) is pressed, th[...]

  • Página 367

    14 Applied Instruc tions (External FX I/O Device) 14.4 SEGD / Sev en Segment Deco der 365 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 1[...]

  • Página 368

    14 Applied Instruc tions (External FX I/O Device) 14.4 SEGD / Sev en Segment Deco der 366 FXCPU Structured Programming Manual [Basic & Applied Instruction] 2. 7-segement decoding table Cautions 1) Number of bits occupied Lower 8 bits from the output of the device designated in are occupied, and the upper 8 bits are not changed. 2) Some restrict[...]

  • Página 369

    14 Applied Instruc tions (External FX I/O Device) 14.5 SEGL / Seven Segment Wit h Latch 367 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device)[...]

  • Página 370

    14 Applied Instruc tions (External FX I/O Device) 14.5 SEGL / Seven Segment Wit h Latch 368 FXCPU Structured Programming Manual [Basic & Applied Instruction] When using 4 digits and 1 set(n=K0 to K3) → As for selection of "n", refer to section 14.5.2. 1) Data and strobe signal The 4-digit numerical value of is converte d from BIN t [...]

  • Página 371

    14 Applied Instruc tions (External FX I/O Device) 14.5 SEGL / Seven Segment Wit h Latch 369 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device)[...]

  • Página 372

    14 Applied Instruc tions (External FX I/O Device) 14.5 SEGL / Seven Segment Wit h Latch 370 FXCPU Structured Programming Manual [Basic & Applied Instruction] 14.5.1 Selection procedure of 7-segment display unit You can select the 7-s egment displa y unit depending on t he electric al content by referring to the examp le below. → As for the ac[...]

  • Página 373

    14 Applied Instruc tions (External FX I/O Device) 14.5 SEGL / Seven Segment Wit h Latch 371 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device)[...]

  • Página 374

    14 Applied Instruc tions (External FX I/O Device) 14.6 ARWS / Arrow Switch 372 FXCPU Structured Programming Manual [Basic & Applied Instruction] 14.6 ARWS / Arrow Switch Outline This instruction enters data by arrow switches for di git move and increase and decrease of numerical value of each digit. 1. Format and operation, execution form 2. Se[...]

  • Página 375

    14 Applied Instruc tions (External FX I/O Device) 14.6 ARWS / Arrow Switch 373 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied I[...]

  • Página 376

    14 Applied Instruc tions (External FX I/O Device) 14.6 ARWS / Arrow Switch 374 FXCPU Structured Programming Manual [Basic & Applied Instruction] Cautions 1. Setting of parameter n Refer to the parameter setting of SEGL instruction. However, the setting range is 0 to 3. 2. Output format of PLC Use the PLC of transistor output type. 3. Scan time [...]

  • Página 377

    14 Applied Instruc tions (External FX I/O Device) 14.6 ARWS / Arrow Switch 375 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied I[...]

  • Página 378

    14 Applied Instruc tions (External FX I/O Device) 14.7 ASC / ASCII Code Data I nput 376 FXCPU Structured Programming Manual [Basic & Applied Instruction] 14.7 ASC / ASCII Code Data Input Outline This instruction converts the 1-byte alphanumeric character string into ASCII code. This is used when selecting and displaying plural messages in the e[...]

  • Página 379

    14 Applied Instruc tions (External FX I/O Device) 14.7 ASC / ASCII Code Data I nput 377 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 [...]

  • Página 380

    14 Applied Instruc tions (External FX I/O Device) 14.8 PR / Print (ASCII Code) 378 FXCPU Structured Programming Manual [Basic & Applied Instruction] 14.8 PR / Print (ASCII Code) Outline This instruction performs parallel output of ASCII code data to the output (Y). 1. Format and operation, execution form 2. Set da ta 3. Applicable devices S : R[...]

  • Página 381

    14 Applied Instruc tions (External FX I/O Device) 14.8 PR / Print (ASCII Code) 379 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Appli[...]

  • Página 382

    14 Applied Instruc tions (External FX I/O Device) 14.8 PR / Print (ASCII Code) 380 FXCPU Structured Programming Manual [Basic & Applied Instruction] 2) Timing chart (When M8027=ON) Related devices *1. Cleared when changed from RUN to STOP. Cautions 1. Command input and operation of instruction Command input=ON : Even in the midst of continuous [...]

  • Página 383

    14 Applied Instruc tions (External FX I/O Device) 14.9 FROM / Read From A Special Fu nction Block 381 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I[...]

  • Página 384

    14 Applied Instruc tions (External FX I/O Device) 14.9 FROM / Read From A Special Fu nction Block 382 FXCPU Structured Programming Manual [Basic & Applied Instruction] 3. Applicable devices S : Refer to "Cautions". Function and operation explanation 1. 16-bit operation (FROM, FROMP) → As for the common terms of FROM/TO instruction, [...]

  • Página 385

    14 Applied Instruc tions (External FX I/O Device) 14.9 FROM / Read From A Special Fu nction Block 383 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I[...]

  • Página 386

    14 Applied Instruc tions (External FX I/O Device) 14.9 FROM / Read From A Special Fu nction Block 384 FXCPU Structured Programming Manual [Basic & Applied Instruction] 14.9.1 Common terms of FROM /TO instruction (detail) Specification content of operand 1. Unit number n1 of special extension unit/block Unit number is used for specifying which e[...]

  • Página 387

    14 Applied Instruc tions (External FX I/O Device) 14.9 FROM / Read From A Special Fu nction Block 385 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I[...]

  • Página 388

    14 Applied Instruc tions (External FX I/O Device) 14.10 TO / Write To A Special Funct ion Block 386 FXCPU Structured Programming Manual [Basic & Applied Instruction] 14.10 TO / Write To A Sp ecial Function Block Outline This instruction writes data from PLC into the buffer memory (BFM) of special extension unit/block. By this instruction, when [...]

  • Página 389

    14 Applied Instruc tions (External FX I/O Device) 14.10 TO / Write To A Special Funct ion Block 387 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O[...]

  • Página 390

    14 Applied Instruc tions (External FX I/O Device) 14.10 TO / Write To A Special Funct ion Block 388 FXCPU Structured Programming Manual [Basic & Applied Instruction] Cautions 1) About bit device digit specification to be specified by Specify K1 to K4 in the case of 16-bit operation instruction, or K1 to K8 in the case of 32-bit operation. 2) Th[...]

  • Página 391

    15 Applied Instructions (E xter nal Device (optional device) ) 389 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Instru ctions[...]

  • Página 392

    15 Applied Instructions (E xter nal Device (optional device) ) 15.1 RS / Serial Communi cation 390 FXCPU Structured Programming Manual [Basic & Applied Instruction] 15.1 RS / Serial Communication Outline This instruction sends and receives data in no-protocol communication by way of a serial port (only the ch1) in accordance with RS-232C or RS-[...]

  • Página 393

    15 Applied Instructions (E xter nal Device (optional device) ) 15.1 RS / Serial Communi cation 391 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O [...]

  • Página 394

    15 Applied Instructions (E xter nal Device (optional device) ) 15.1 RS / Serial Communi cation 392 FXCPU Structured Programming Manual [Basic & Applied Instruction] Cautions → For other cautions, ref er to the Data Comm unication Edition manual. 1) RS instruction can be used for ch1 only (cannot be used for ch0 *1 and ch2 *1 ). 2) Do not driv[...]

  • Página 395

    15 Applied Instructions (E xter nal Device (optional device) ) 15.2 PRUN / Parallel Run (Octal Mode) 393 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External F[...]

  • Página 396

    15 Applied Instructions (E xter nal Device (optional device) ) 15.2 PRUN / Parallel Run (Octal Mode) 394 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 16-bit operati on(PRUN, PRUNP) From octal number bit d evice to decimal number bit device From decimal number bit device to octal number [...]

  • Página 397

    15 Applied Instructions (E xter nal Device (optional device) ) 15.3 ASCI / Hexadecimal to ASCII Conversi on 395 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (Ext[...]

  • Página 398

    15 Applied Instructions (E xter nal Device (optional device) ) 15.3 ASCI / Hexadecimal to ASCII Conversi on 396 FXCPU Structured Programming Manual [Basic & Applied Instruction] 2. <16-bit conversion mode> When M816 1=OFF( M8161 is used commonly with RS, H EX, CCD, CRC instructions) Each digit of HEX data stored after the device specified[...]

  • Página 399

    15 Applied Instructions (E xter nal Device (optional device) ) 15.3 ASCI / Hexadecimal to ASCII Conversi on 397 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (Ext[...]

  • Página 400

    15 Applied Instructions (E xter nal Device (optional device) ) 15.3 ASCI / Hexadecimal to ASCII Conversi on 398 FXCPU Structured Programming Manual [Basic & Applied Instruction] Devices after (D100)=0ABCH (D101)=1234H (D102)=5678H Number of digits (characters) sp ecified and result of conversion Bit composition in the case of n=K2 • When issu[...]

  • Página 401

    15 Applied Instructions (E xter nal Device (optional device) ) 15.4 HEX / ASCII to Hexadecimal Conversi on 399 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (Exte[...]

  • Página 402

    15 Applied Instructions (E xter nal Device (optional device) ) 15.4 HEX / ASCII to Hexadecimal Conversi on 400 FXCPU Structured Programming Manual [Basic & Applied Instruction] 2. <16-bit conversion mode> When M8161=OFF(M8161 is used commonly with RS, ASCI, CCD, CRC instructions) ASCII characters stored in higher and lower 8 bits (bytes) [...]

  • Página 403

    15 Applied Instructions (E xter nal Device (optional device) ) 15.4 HEX / ASCII to Hexadecimal Conversi on 401 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (Exte[...]

  • Página 404

    15 Applied Instructions (E xter nal Device (optional device) ) 15.4 HEX / ASCII to Hexadecimal Conversi on 402 FXCPU Structured Programming Manual [Basic & Applied Instruction] Conversion source data Number of characters specified and result of conversion "." is 0. • When the input data is BCD, after execution of this instruction, y[...]

  • Página 405

    15 Applied Instructions (E xter nal Device (optional device) ) 15.5 CCD / Check Code 403 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15[...]

  • Página 406

    15 Applied Instructions (E xter nal Device (optional device) ) 15.5 CCD / Check Code 404 FXCPU Structured Programming Manual [Basic & Applied Instruction] 2. <16-bit conversion mode> When M816 1=OFF(M8161 is used commonly with RS, A SCI, HEX, CRC instructions) Of the data of n points starting from the device specified by , the addition da[...]

  • Página 407

    15 Applied Instructions (E xter nal Device (optional device) ) 15.5 CCD / Check Code 405 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15[...]

  • Página 408

    15 Applied Instructions (E xter nal Device (optional device) ) 15.6 VRRD / Volume Read 406 FXCPU Structured Programming Manual [Basic & Applied Instruction] 15.6 VRRD / Volume Read Outline This instruction reads out the value determined by the variable resistor. 1. Format and operation, execution form 2. Set da ta 3. Applicable devices S : Refe[...]

  • Página 409

    15 Applied Instructions (E xter nal Device (optional device) ) 15.6 VRRD / Volume Read 407 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) [...]

  • Página 410

    15 Applied Instructions (E xter nal Device (optional device) ) 15.6 VRRD / Volume Read 408 FXCPU Structured Programming Manual [Basic & Applied Instruction] Program example Variable resistor values are read out sequentially. Depending on variable resistors VR0 to VR7, the specified values of VRRD instruction are K0 to K7. In the example below, [...]

  • Página 411

    15 Applied Instructions (E xter nal Device (optional device) ) 15.7 VRSC / Volume Scale 409 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device)[...]

  • Página 412

    15 Applied Instructions (E xter nal Device (optional device) ) 15.7 VRSC / Volume Scale 410 FXCPU Structured Programming Manual [Basic & Applied Instruction] Cautions 1) The FX 1NC , FX 2NC and FX 3GC PLCs are not provided with variable resistors for reading out by this instruction, and hence do not function even if programmed. 2) In FX 3S PLCs[...]

  • Página 413

    15 Applied Instructions (E xter nal Device (optional device) ) 15.8 RS2 / Seria l Communic ation 2 411 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX [...]

  • Página 414

    15 Applied Instructions (E xter nal Device (optional device) ) 15.8 RS2 / Seria l Communic ation 2 412 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 16-bit operation(RS2) This instruction transmits and receives data by no- procedure communication v ia serial port of RS-232C or RS-485 ins[...]

  • Página 415

    15 Applied Instructions (E xter nal Device (optional device) ) 15.8 RS2 / Seria l Communic ation 2 413 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX [...]

  • Página 416

    15 Applied Instructions (E xter nal Device (optional device) ) 15.9 PID / PID Control Loop 414 FXCPU Structured Programming Manual [Basic & Applied Instruction] 15.9 PID / PID Control Loop Outline This instruction executes PID control for changin g the output values de pending on the chang e value of the input. → As for the detail, refer to t[...]

  • Página 417

    15 Applied Instructions (E xter nal Device (optional device) ) 15.9 PID / PID Control Loop 415 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Devi[...]

  • Página 418

    15 Applied Instructions (E xter nal Device (optional device) ) 15.9 PID / PID Control Loop 416 FXCPU Structured Programming Manual [Basic & Applied Instruction] *1. + 20 to + 24 will be occupied in the case of bit1 = 1, bit2 = 1, or bit5 = 1 of + 1 action setting (ACT) *2. FX 2N , FX 2NC , FX 1N , FX 1NC , FX 1S , FX U , FX 2C PLCs are not usab[...]

  • Página 419

    15 Applied Instructions (E xter nal Device (optional device) ) 15.9 PID / PID Control Loop 417 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Devi[...]

  • Página 420

    16 Applied Instructio ns (External Device) 418 FXCPU Structured Programming Manual [Basic & Applied Instruction] 16. Applied Instructions (External Device) This chapter introduces the instructions for control of F 2 PLC special extension equipment. Instruction name Function Refere nce MNET F-16NP/NT co mmunication Section 16.1 MNETP ANRD Read f[...]

  • Página 421

    16 Applied Instructio ns (External Device) 16.1 MNET / F-16NP/NT communication 419 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Appli[...]

  • Página 422

    16 Applied Instructio ns (External Device) 16.1 MNET / F-16NP/NT communication 420 FXCPU Structured Programming Manual [Basic & Applied Instruction] Cautions 1) In the case of FX-16NP/NT, FX-16NP/NT-S3 type interface block, this instruction is not used, and FX 2 - 24EI is not needed. 2) The instruction is not provided in the FX U and FX 2C PLCs[...]

  • Página 423

    16 Applied Instructio ns (External Device) 16.2 ANRD / Read from F2-6A 421 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Instr[...]

  • Página 424

    16 Applied Instructio ns (External Device) 16.2 ANRD / Read from F2-6A 422 FXCPU Structured Programming Manual [Basic & Applied Instruction] Program example This is intended to determine the average of three poin ts of time series data in 100 ms unit in order to suppress fluctuations of the analog input. [Structured ladder/FBD] M8000 RUN monito[...]

  • Página 425

    16 Applied Instructio ns (External Device) 16.3 ANWR / Write to F2-6A 423 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Instru[...]

  • Página 426

    16 Applied Instructio ns (External Device) 16.4 RMST / F2-32RM start 424 FXCPU Structured Programming Manual [Basic & Applied Instruction] 16.4 RMST / F 2 -32RM start Outline This instruction gives sta rt signal from the PLC o r receives status info rmation, in the F 2 -32RM type programmable cam switch. 1. Format and operation, execution form [...]

  • Página 427

    16 Applied Instructio ns (External Device) 16.5 RMWR / Wr ite to F2- 32RM 425 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied In[...]

  • Página 428

    16 Applied Instructio ns (External Device) 16.5 RMWR / Wr ite to F2- 32RM 426 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation • This instruction sends output prohibit information from the PLC to the F 2 -32RM type programmable cam switch. • The content of the device specified by , is dete[...]

  • Página 429

    16 Applied Instructio ns (External Device) 16.6 RMRD / Read from F2-32RM 427 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Ins[...]

  • Página 430

    16 Applied Instructio ns (External Device) 16.6 RMRD / Read from F2-32RM 428 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation • This instruction reads out the ON/OFF state of output of the F 2 -32RM type programmable cam switch to the PLC. • The content of the device specified by , is dete[...]

  • Página 431

    16 Applied Instructio ns (External Device) 16.7 RMMN / F2-32RM monitor 429 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Instr[...]

  • Página 432

    16 Applied Instructio ns (External Device) 16.8 BLK / Specify F2-30GM 430 FXCPU Structured Programming Manual [Basic & Applied Instruction] 16.8 BLK / Specify F 2 -30GM Outline This instruction specifies the block number for the F 2 -30GM type pulse output unit from the PLC. 1. Format and operation, execution form 2. Set da ta 3. Applicable dev[...]

  • Página 433

    16 Applied Instructio ns (External Device) 16.8 BLK / Specify F2-30GM 431 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Instru[...]

  • Página 434

    16 Applied Instructio ns (External Device) 16.9 MCDE / F2-30GM code 432 FXCPU Structured Programming Manual [Basic & Applied Instruction] 16.9 MCDE / F 2 -30GM code Outline This instruction sends the M code numbers M0 to M77 to the PLC from the F 2 -30GM type pulse o utput unit. 1. Format and operation, execution form 2. Set da ta 3. Applicable[...]

  • Página 435

    17 Applied Instructions (Data Transfer 2) 433 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Instru ctions (External Device (op[...]

  • Página 436

    17 Applied Instructions (Data Transfer 2) 17.1 ZPUSH / Batch St ore of Index Reg ister 434 FXCPU Structured Programming Manual [Basic & Applied Instruction] 17.1 ZPUSH / Batch Store of Index Register Outline This instruction temporarily retracts the present values of index registers V0 to V7, Z0 to Z7. To return the retracted present values to [...]

  • Página 437

    17 Applied Instructions (Data Transfer 2) 17.1 ZPUSH / Batch St ore of Index Reg ister 435 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) [...]

  • Página 438

    17 Applied Instructions (Data Transfer 2) 17.1 ZPUSH / Batch St ore of Index Reg ister 436 FXCPU Structured Programming Manual [Basic & Applied Instruction] Program example This is a program fo r retracting the contents of index registers Z0 t o Z7, V0 to V7 before e xecution of subroutine program after D0, when using the index register in the [...]

  • Página 439

    17 Applied Instructions (Data Transfer 2) 17.2 ZPOP / Batch POP of Index Register 437 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Ap[...]

  • Página 440

    17 Applied Instructions (Data Transfer 2) 17.2 ZPOP / Batch POP of Index Register 438 FXCPU Structured Programming Manual [Basic & Applied Instruction] Related instructions Caution • The instruction is provided in the FX 3UC PLC Ver. 2.20 or later. Error It is an op eration error in the following case , and error fla g M8067 is t urned ON, an[...]

  • Página 441

    18 Applied Instructi ons (Float ing Point) 439 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Instru ctions (External Device (o[...]

  • Página 442

    440 18 Applied Instructi ons (Float ing Point) FXCPU Structured Programming Manual [Basic & Applied Instruction] DRAD Floating Point Degre es to Radians Co nversion Section 18. 24 DRADP DDEG Floating Point Radians to Degrees Conve rsion S ection 18.2 5 DDEGP Instruction name Function Refere nce[...]

  • Página 443

    18 Applied Instructi ons (Float ing Point) 18.1 DECMP / Floating Po int Compare 441 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Appl[...]

  • Página 444

    442 18 Applied Instructi ons (Float ing Point) 18.1 DECMP / Floating Po int Compare FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 32-bit operation (DECMP, DECMPP) The compared value spec ified by a nd the comparison source sp ecified by are compared as floating decimal point data, and de[...]

  • Página 445

    18 Applied Instructi ons (Float ing Point) 18.2 DEZCP / Floating Poin t Zone Compare 443 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15[...]

  • Página 446

    444 18 Applied Instructi ons (Float ing Point) 18.2 DEZCP / Floating Poin t Zone Compare FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 32-bit operation (DEZCP, DEZCPP) The compared value specif ied by , and the compa rison source specifie d by are compared a s floating decimal point data[...]

  • Página 447

    18 Applied Instructi ons (Float ing Point) 18.3 DEMOV / Floating Point Move 445 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied [...]

  • Página 448

    446 18 Applied Instructi ons (Float ing Point) 18.3 DEMOV / Floating Point Move FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 32-bit operation (DEMOV/DEMOVP) The content (binary floating decimal point data) of tran sfer source of device specified by is transferred to the device specified[...]

  • Página 449

    18 Applied Instructi ons (Float ing Point) 18.4 DESTR / Floating Po int to Character String Conversi on 447 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (Externa[...]

  • Página 450

    448 18 Applied Instructi ons (Float ing Point) 18.4 DESTR / Floating Po int to Character String Conversi on FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 32-bit operation (DESTR/DESTRP) The content (binary floating decimal point data) of the device specified by is converted into characte[...]

  • Página 451

    18 Applied Instructi ons (Float ing Point) 18.4 DESTR / Floating Po int to Character String Conversi on 449 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (Externa[...]

  • Página 452

    450 18 Applied Instructi ons (Float ing Point) 18.4 DESTR / Floating Po int to Character String Conversi on FXCPU Structured Programming Manual [Basic & Applied Instruction] 3. In the case of exponential type • The number of all digits that can be specifi ed by +1 is as follows. (Maximum: 24 digits) When the number of digits below decimal poi[...]

  • Página 453

    18 Applied Instructi ons (Float ing Point) 18.4 DESTR / Floating Po int to Character String Conversi on 451 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (Externa[...]

  • Página 454

    452 18 Applied Instructi ons (Float ing Point) 18.4 DESTR / Floating Po int to Character String Conversi on FXCPU Structured Programming Manual [Basic & Applied Instruction] Error In the following cases, it is a n operation error, and error flag (M8067) is turned ON, and error code is stored in D8067. • When is not within the following range.[...]

  • Página 455

    18 Applied Instructi ons (Float ing Point) 18.4 DESTR / Floating Po int to Character String Conversi on 453 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (Externa[...]

  • Página 456

    454 18 Applied Instructi ons (Float ing Point) 18.5 DEVAL / Character String to Float ing Point Conversion FXCPU Structured Programming Manual [Basic & Applied Instruction] 18.5 DEVAL / Character String to Floating Point Conversion Outline This instruction converts the character string (A SCII code) into binary floating decimal point data. You [...]

  • Página 457

    18 Applied Instructi ons (Float ing Point) 18.5 DEVAL / Character String to Float ing Point Conversion 455 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External[...]

  • Página 458

    456 18 Applied Instructi ons (Float ing Point) 18.5 DEVAL / Character String to Float ing Point Conversion FXCPU Structured Programming Manual [Basic & Applied Instruction] b) In the case of exponential type • To be converted as positive value when "2BH" (+) is specified by the sign or the sign is omitted in the decimal point type. [...]

  • Página 459

    18 Applied Instructi ons (Float ing Point) 18.5 DEVAL / Character String to Float ing Point Conversion 457 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External[...]

  • Página 460

    458 18 Applied Instructi ons (Float ing Point) 18.5 DEVAL / Character String to Float ing Point Conversion FXCPU Structured Programming Manual [Basic & Applied Instruction] Program example 1) This is a program for converting the character string stored after R0 when the X000 is turned ON, into binary floating decimal point, and storing in D0, D[...]

  • Página 461

    18 Applied Instructi ons (Float ing Point) 18.6 DEBCD / Floa ting Point to Scien tific Notation Co nversion 459 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (Ext[...]

  • Página 462

    460 18 Applied Instructi ons (Float ing Point) 18.6 DEBCD / Floa ting Point to Scien tific Notation Co nversion FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 32-bit operation (DEBCD, DE BCDP) The binary floating decimal point of the device specified by is converted into decimal floating [...]

  • Página 463

    18 Applied Instructi ons (Float ing Point) 18.7 DEBIN / Scient ific Notatio n to Floati ng Point Conversi on 461 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (Ex[...]

  • Página 464

    462 18 Applied Instructi ons (Float ing Point) 18.7 DEBIN / Scient ific Notatio n to Floati ng Point Conversi on FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 32-bit operation (DEBIN, DEBINP) The decimal floating decimal point of the device specif ied by is converted into binary floating[...]

  • Página 465

    18 Applied Instructi ons (Float ing Point) 18.8 DEADD / Floati ng Point Addit ion 463 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Ap[...]

  • Página 466

    464 18 Applied Instructi ons (Float ing Point) 18.8 DEADD / Floati ng Point Addit ion FXCPU Structured Programming Manual [Basic & Applied Instruction] Cautions 1) When the same devices are specified, the same device numbers can be specified in and and . In this case, when the continuous execution type instruction (DEADD) is used, it must be no[...]

  • Página 467

    18 Applied Instructi ons (Float ing Point) 18.9 DESUB / Floating Po int Subtractio n 465 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15[...]

  • Página 468

    466 18 Applied Instructi ons (Float ing Point) 18.9 DESUB / Floating Po int Subtractio n FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 32-bit operation (DESUB, DESUBP) The binary floating decimal point data in the device s pecified by are subtracted from the device specified by , and the[...]

  • Página 469

    18 Applied Instructi ons (Float ing Point) 18.10 DEMUL / Floating Point Multiplication 467 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) [...]

  • Página 470

    468 18 Applied Instructi ons (Float ing Point) 18.10 DEMUL / Floating Point Multiplication FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 32-bit operation (DEMUL, DEMULP) The binary floating decimal point data in the device specified by and in the device sp ecified by are multiplied, and [...]

  • Página 471

    18 Applied Instructi ons (Float ing Point) 18.11 DEDIV / Floating Poin t Division 469 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Ap[...]

  • Página 472

    470 18 Applied Instructi ons (Float ing Point) 18.11 DEDIV / Floating Poin t Division FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 32-bit operation (DEDIV, DEDIVP) The binary floating decimal point data in the device specified by and in the device sp ecified by are divided, and the resu[...]

  • Página 473

    18 Applied Instructi ons (Float ing Point) 18.12 DEXP / Floating Po int Exponent 471 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 App[...]

  • Página 474

    472 18 Applied Instructi ons (Float ing Point) 18.12 DEXP / Floating Po int Exponent FXCPU Structured Programming Manual [Basic & Applied Instruction] Error In the following cases, it is an operation error, error flag (M8067) is turned ON, and error code is stored in D8067. • When the operation result is out of the following range. (Error cod[...]

  • Página 475

    18 Applied Instructi ons (Float ing Point) 18.13 DLOGE / Floating Point Natu ral Logarithm 473 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Devi[...]

  • Página 476

    474 18 Applied Instructi ons (Float ing Point) 18.13 DLOGE / Floating Point Natu ral Logarithm FXCPU Structured Programming Manual [Basic & Applied Instruction] Error In the following cases, it is an operation error, error flag (M8067) is turned ON, and error code is stored in D8067. • When the value specified by is negative. (Error code: K67[...]

  • Página 477

    18 Applied Instructi ons (Float ing Point) 18.14 DLOG10 / Floating Point Common Log arithm 475 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Devi[...]

  • Página 478

    476 18 Applied Instructi ons (Float ing Point) 18.14 DLOG10 / Floating Point Common Log arithm FXCPU Structured Programming Manual [Basic & Applied Instruction] Error In the following cases, it is an operation error, error flag (M8067) is turned ON, and error code is stored in D8067. • When the value specified by is negative. (Error code: K67[...]

  • Página 479

    18 Applied Instructi ons (Float ing Point) 18.15 DESQR / Floating Poi nt Square Root 477 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15[...]

  • Página 480

    478 18 Applied Instructi ons (Float ing Point) 18.15 DESQR / Floating Poi nt Square Root FXCPU Structured Programming Manual [Basic & Applied Instruction] Cautions 1) The instruction is provided in the FX 3G PLC Ver. 1.10 or later. 2) Some restrictions to applicable devices. S 1: The FX 3G , FX 3GC , FX 3U and FX 3UC PLCs only are applicable. S[...]

  • Página 481

    18 Applied Instructi ons (Float ing Point) 18.16 DENEG / Floating Point Negation 479 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 App[...]

  • Página 482

    480 18 Applied Instructi ons (Float ing Point) 18.17 INT / Floating Poi nt to Integer Conversion FXCPU Structured Programming Manual [Basic & Applied Instruction] 18.17 INT / Floating Poin t to Integer Conversion Outline This instructi on converts the binary floati ng decimal point into BIN intege r in normal data type in th e PLC. (From binary[...]

  • Página 483

    18 Applied Instructi ons (Float ing Point) 18.17 INT / Floating Poi nt to Integer Conversion 481 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O De[...]

  • Página 484

    482 18 Applied Instructi ons (Float ing Point) 18.18 DSIN / Floati ng Point Sine FXCPU Structured Programming Manual [Basic & Applied Instruction] 18.18 DSIN / Floating Point Sine Outline This instruction determines the SIN value of angle (RAD). → As for handling of floating d ecimal point, refer to FX Structured Prog ramming Manual [Device &[...]

  • Página 485

    18 Applied Instructi ons (Float ing Point) 18.18 DSIN / Floati ng Point Sine 483 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied[...]

  • Página 486

    484 18 Applied Instructi ons (Float ing Point) 18.19 DCOS / Floating Point Cosi ne FXCPU Structured Programming Manual [Basic & Applied Instruction] 18.19 DCOS / Floating Point Cosine Outline This instruction determines the COS value of angle (RAD). → As for handling of floating d ecimal point, refer to FX Structured Prog ramming Manual [Devi[...]

  • Página 487

    18 Applied Instructi ons (Float ing Point) 18.20 DTAN / Floating Point Tan gent 485 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Appl[...]

  • Página 488

    486 18 Applied Instructi ons (Float ing Point) 18.21 DASIN / Floating Point Arc Sine FXCPU Structured Programming Manual [Basic & Applied Instruction] 18.21 DASIN / Floating Point Arc Sine Outline This instruction executes SIN -1 operation. → As for handling of floating d ecimal point, refer to FX Structured Prog ramming Manual [Device & [...]

  • Página 489

    18 Applied Instructi ons (Float ing Point) 18.21 DASIN / Floating Point Arc Sine 487 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 App[...]

  • Página 490

    488 18 Applied Instructi ons (Float ing Point) 18.22 DACOS / Floating Poin t Arc Cosine FXCPU Structured Programming Manual [Basic & Applied Instruction] 18.22 DACOS / Floating Point Arc Cosine Outline This instruction executes COS -1 operation. → As for handling of floating d ecimal point, refer to FX Structured Prog ramming Manual [Device &[...]

  • Página 491

    18 Applied Instructi ons (Float ing Point) 18.22 DACOS / Floating Poin t Arc Cosine 489 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 [...]

  • Página 492

    490 18 Applied Instructi ons (Float ing Point) 18.23 DATAN / Floating Point Arc Tangent FXCPU Structured Programming Manual [Basic & Applied Instruction] 18.23 DATAN / Floating Point Arc Tangent Outline This instruction executes TAN -1 operation. → As for handling of floating d ecimal point, refer to FX Structured Prog ramming Manual [Device [...]

  • Página 493

    18 Applied Instructi ons (Float ing Point) 18.23 DATAN / Floating Point Arc Tangent 491 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 [...]

  • Página 494

    492 18 Applied Instructi ons (Float ing Point) 18.24 DRAD / Floating Po int Degrees to Radian s Conversion FXCPU Structured Programming Manual [Basic & Applied Instruction] 18.24 DRAD / Floating Point De grees to Radians Conversion Outline This instruction converts the value of angle unit to the radian unit. → As for handling of floating d ec[...]

  • Página 495

    18 Applied Instructi ons (Float ing Point) 18.24 DRAD / Floating Po int Degrees to Radian s Conversion 493 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External[...]

  • Página 496

    494 18 Applied Instructi ons (Float ing Point) 18.25 DDEG / Floating Po int Radians to Degree s Conversion FXCPU Structured Programming Manual [Basic & Applied Instruction] 18.25 DDEG / Floating Point Ra dians to Degrees Conversion Outline This instruction converts the radian unit value into the angle (DEG) unit. → As for handling of floating[...]

  • Página 497

    18 Applied Instructi ons (Float ing Point) 18.25 DDEG / Floating Po int Radians to Degree s Conversion 495 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External[...]

  • Página 498

    19 Applied Instructio ns (Data Operation 2) 496 FXCPU Structured Programming Manual [Basic & Applied Instruction] 19. Applied Instructions (Data Operation 2) This chapter introduces the instructions for executing comp licated processing for fundamental applied instructions and for executing special processing. Instruction name Function Refere n[...]

  • Página 499

    19 Applied Instructio ns (Data Operation 2) 19.1 WSUM / Sum of Word Data 497 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Ins[...]

  • Página 500

    19 Applied Instructio ns (Data Operation 2) 19.1 WSUM / Sum of Word Data 498 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 16-bit operation (WSUM/WSUMP) The total value of n points of 16-bit data from the device specified by is stored in the device specified by as 32-bit data. 2. 32-bit [...]

  • Página 501

    19 Applied Instructio ns (Data Operation 2) 19.1 WSUM / Sum of Word Data 499 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Ins[...]

  • Página 502

    19 Applied Instructio ns (Data Operation 2) 19.2 WTOB / WORD to BYTE 500 FXCPU Structured Programming Manual [Basic & Applied Instruction] 19.2 WTOB / WORD to BYTE Outline This instruction separates continuous 16-bit data in byte (8-bit) unit. 1. Format and operation, execution form 2. Set da ta 3. Applicable devices FX 3U(C) FX 3G(C) FX 3S FX [...]

  • Página 503

    19 Applied Instructio ns (Data Operation 2) 19.2 WTOB / WORD to BYTE 501 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Instru [...]

  • Página 504

    19 Applied Instructio ns (Data Operation 2) 19.2 WTOB / WORD to BYTE 502 FXCPU Structured Programming Manual [Basic & Applied Instruction] Error In the following case, it is an operation error, error fla g M8067 is turned ON, and error code is stored in D8067. 1) When devices to +n/2 of separation source exceed the device range of specified dev[...]

  • Página 505

    19 Applied Instructio ns (Data Operation 2) 19.3 BTO W / BYTE to WORD 503 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Instru[...]

  • Página 506

    19 Applied Instructio ns (Data Operation 2) 19.3 BTO W / BYTE to WORD 504 FXCPU Structured Programming Manual [Basic & Applied Instruction] 2) Higher byte (8 bits) of 16-bit data (after ) in the coupling source is ignored. 3) When n is an odd number, as shown below, higher byte (8 bits) of the data coupled in the last place is set to 00H. For e[...]

  • Página 507

    19 Applied Instructio ns (Data Operation 2) 19.3 BTO W / BYTE to WORD 505 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Instru[...]

  • Página 508

    19 Applied Instructio ns (Data Operation 2) 19.4 UNI / 4-bit Linkin g of Word Data 506 FXCPU Structured Programming Manual [Basic & Applied Instruction] 19.4 UNI / 4-bit Linking of Word Data Outline This instruction couples lower 4 bits of continuous 16-bit data. 1. Format and operation, execution form 2. Set da ta 3. Applicable devices Functio[...]

  • Página 509

    19 Applied Instructio ns (Data Operation 2) 19.4 UNI / 4-bit Linkin g of Word Data 507 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 A[...]

  • Página 510

    19 Applied Instructio ns (Data Operation 2) 19.5 DIS / 4-bit Groupin g of Word Data 508 FXCPU Structured Programming Manual [Basic & Applied Instruction] 19.5 DIS / 4-bit Gro uping of Word Data Outline This instruction separates 16-bit data in 4-bit unit. 1. Format and operation, execution form 2. Set da ta 3. Applicable devices FX 3U(C) FX 3G([...]

  • Página 511

    19 Applied Instructio ns (Data Operation 2) 19.5 DIS / 4-bit Groupin g of Word Data 509 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 [...]

  • Página 512

    19 Applied Instructio ns (Data Operation 2) 19.6 SWAP / Byte Swap 510 FXCPU Structured Programming Manual [Basic & Applied Instruction] 19.6 S WAP / Byte Swap Outline This instruction swaps higher 8 bits and lower 8 bits of word data. 1. Format and operation, execution form 2. Set da ta 3. Applicable devices S : Refer to "Cautions". F[...]

  • Página 513

    19 Applied Instructio ns (Data Operation 2) 19.6 SWAP / Byte Swap 511 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Instru cti[...]

  • Página 514

    19 Applied Instructio ns (Data Operation 2) 19.7 SORT2 / So rt Tabula ted Data 2 512 FXCPU Structured Programming Manual [Basic & Applied Instruction] 19.7 SORT2 / Sort Tabulated Data 2 Outline This instruction sorts the da ta table composed of data (rows ) and group data (columns) in the ascen ding order/descending order in row unit on the bas[...]

  • Página 515

    19 Applied Instructio ns (Data Operation 2) 19.7 SORT2 / So rt Tabula ted Data 2 513 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 App[...]

  • Página 516

    19 Applied Instructio ns (Data Operation 2) 19.7 SORT2 / So rt Tabula ted Data 2 514 FXCPU Structured Programming Manual [Basic & Applied Instruction] 2. 32-bit operation (DSORT2) This instruction sorts the data rows of data table (sorting source) of (m1 × m2) points from the device specified by in the ascending order/descendin g order on the [...]

  • Página 517

    19 Applied Instructio ns (Data Operation 2) 19.7 SORT2 / So rt Tabula ted Data 2 515 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 App[...]

  • Página 518

    19 Applied Instructio ns (Data Operation 2) 19.7 SORT2 / So rt Tabula ted Data 2 516 FXCPU Structured Programming Manual [Basic & Applied Instruction] Related devices → As for the manner of using th e instruction execution complete flag, refer to section 1.3.4. Related instructions Cautions 1) During operation, do not change the content of th[...]

  • Página 519

    20 Applied Instructio ns (Positio ning Contro l) 517 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Instru ctions (External Dev[...]

  • Página 520

    20 Applied Instructio ns (Positio ning Contro l) 20.1 DSZR / Dog Search Zero Return 518 FXCPU Structured Programming Manual [Basic & Applied Instruction] 20.1 DSZR / Dog Search Zero Return Outline This instruction matches the mechanical position and the current value register in the PLC by zero return. This instruction can perform following ope[...]

  • Página 521

    20 Applied Instructio ns (Positio ning Contro l) 20.1 DSZR / Dog Search Zero Return 519 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 [...]

  • Página 522

    20 Applied Instructio ns (Positio ning Contro l) 20.2 DVIT / Interrupt Po sitioning 520 FXCPU Structured Programming Manual [Basic & Applied Instruction] 20.2 DVIT / Interrupt Positioning Outline This instruction executes one-speed interrupt inching. → As for explanation of the instructio n, see the positioning control manual. → As for caut[...]

  • Página 523

    20 Applied Instructio ns (Positio ning Contro l) 20.2 DVIT / Interrupt Po sitioning 521 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 [...]

  • Página 524

    20 Applied Instructio ns (Positio ning Contro l) 20.2 DVIT / Interrupt Po sitioning 522 FXCPU Structured Programming Manual [Basic & Applied Instruction] Cautions 1) Some restrictions to applicable devices. S 1: Please specify Y000, Y001, Y002 of transistor output of basic unit, or Y000, Y001, Y002 *2 , Y003 *2 of high speed output special adap[...]

  • Página 525

    20 Applied Instructio ns (Positio ning Contro l) 20.3 DTBL / Batch Data Position ing Mode 523 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Devic[...]

  • Página 526

    20 Applied Instructio ns (Positio ning Contro l) 20.3 DTBL / Batch Data Position ing Mode 524 FXCPU Structured Programming Manual [Basic & Applied Instruction] Cautions 1) The instruction is provided in the FX 3UC PLC Ver. 2.20 or later. 2) Some restrictions to applicable devices. S 1: Please specify Y000, Y001, Y002 *1 of transistor output of [...]

  • Página 527

    20 Applied Instructio ns (Positio ning Contro l) 20.4 DABS / Absolu te Current Value R ead 525 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Devi[...]

  • Página 528

    20 Applied Instructio ns (Positio ning Contro l) 20.4 DABS / Absolu te Current Value R ead 526 FXCPU Structured Programming Manual [Basic & Applied Instruction] Cautions 1) The instruction is provided in the FX 2N and FX 2NC PLCs Ver. 3.00 or later. 2) Since ABS data is read out in pulse converted value, please specify "Motor system" [...]

  • Página 529

    20 Applied Instructio ns (Positio ning Contro l) 20.5 ZRN / Zero Return 527 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Inst[...]

  • Página 530

    20 Applied Instructio ns (Positio ning Contro l) 20.5 ZRN / Zero Return 528 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation Cautions about writing during RUN Avoid writing during RUN aft er either of the following op erations in a ci rcuit block including the pulse output instruction or posit[...]

  • Página 531

    20 Applied Instructio ns (Positio ning Contro l) 20.5 ZRN / Zero Return 529 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Applied Inst[...]

  • Página 532

    20 Applied Instructio ns (Positio ning Contro l) 20.5 ZRN / Zero Return 530 FXCPU Structured Programming Manual [Basic & Applied Instruction] 6) Specify the speed of return zero point in . The setting range is as follows. a) In the case of 16-bit operation •F X 3S , FX 3G , FX 3GC , FX 3U , FX 3UC PLCs 10 to 32,767 (Hz) •F X 1S , FX 1N PLCs[...]

  • Página 533

    20 Applied Instructio ns (Positio ning Contro l) 20.6 PLSV / Variabl e Speed Pulse Output 531 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Devic[...]

  • Página 534

    20 Applied Instructio ns (Positio ning Contro l) 20.6 PLSV / Variabl e Speed Pulse Output 532 FXCPU Structured Programming Manual [Basic & Applied Instruction] Cautions about writing during RUN Avoid writing during RUN aft er either of the following op erations in a ci rcuit block including the pulse output instruction or positioning instructio[...]

  • Página 535

    20 Applied Instructio ns (Positio ning Contro l) 20.6 PLSV / Variabl e Speed Pulse Output 533 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Devic[...]

  • Página 536

    20 Applied Instructio ns (Positio ning Contro l) 20.7 DRVI / Drive to Increment 534 FXCPU Structured Programming Manual [Basic & Applied Instruction] 20.7 DRVI / Drive to Increment Outline This instruction performs one-speed po sitioning by rela tive drive. The moving distance from the present position is spe cified togethe r with plus or min u[...]

  • Página 537

    20 Applied Instructio ns (Positio ning Contro l) 20.7 DRVI / Drive to Increment 535 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Appl[...]

  • Página 538

    20 Applied Instructio ns (Positio ning Contro l) 20.7 DRVI / Drive to Increment 536 FXCPU Structured Programming Manual [Basic & Applied Instruction] 2) Some restrictions to applicable devices. S 1: <FX 3S , FX 3G , FX 3G C , FX 3U , FX 3UC PLCs> Please specify Y000, Y001, Y002 *1 of transistor output of basic unit, or Y000, Y001, Y002 *3[...]

  • Página 539

    20 Applied Instructio ns (Positio ning Contro l) 20.8 DRVA / Drive to Absolute 537 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Appli[...]

  • Página 540

    20 Applied Instructio ns (Positio ning Contro l) 20.8 DRVA / Drive to Absolute 538 FXCPU Structured Programming Manual [Basic & Applied Instruction] Cautions about writing during RUN Avoid writing during RUN aft er either of the following op erations in a ci rcuit block including the pulse output instruction or positioning instruction. • Chan[...]

  • Página 541

    20 Applied Instructio ns (Positio ning Contro l) 20.8 DRVA / Drive to Absolute 539 FXCPU Structured Programming Manual [Basic & Applied Instruction] 11 Applied Instructi ons (Data Operat ion ) 12 Applied Instructio ns (High S peed Processing) 13 Applied Instructi ons (Handy Instruction) 14 Applied Instruct ions (External FX I/O Device) 15 Appli[...]

  • Página 542

    21 Applie d Instructions (R eal Time C lock Contro l) 540 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21. Applied Instructions (Real Time Clock Control) This chapter introduces operation and comparison instructions for the time data. Instruction name Function Refere nce TCMP RTC Data Compare Section 21.1 TCMPP TZCP RTC Dat[...]

  • Página 543

    21 Applie d Instructions (R eal Time C lock Contro l) 21.1 TCMP / RTC Data C ompare 541 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 Applied Inst[...]

  • Página 544

    21 Applie d Instructions (R eal Time C lock Contro l) 21.1 TCMP / RTC Data C ompare 542 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 16-bit operation (TCMP) The time of comparison time (hour, minute, second ) , , is compared with the time data (hour, minute, second ) of the dev ice spec[...]

  • Página 545

    21 Applie d Instructions (R eal Time C lock Contro l) 21.1 TCMP / RTC Data C ompare 543 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 Applied Inst[...]

  • Página 546

    21 Applie d Instructions (R eal Time C lock Contro l) 21.2 TZCP / RTC Data Zone Compare 544 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21.2 TZCP / RTC Data Zone Compare Outline The comparison time of higher and lower points and the time data are compared, and the bit device is turned ON or OFF depending on the magnitude o[...]

  • Página 547

    21 Applie d Instructions (R eal Time C lock Contro l) 21.2 TZCP / RTC Data Zone Compare 545 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 Applied [...]

  • Página 548

    21 Applie d Instructions (R eal Time C lock Contro l) 21.2 TZCP / RTC Data Zone Compare 546 FXCPU Structured Programming Manual [Basic & Applied Instruction] Program example The range of "hour" is 0 to 23. The range of "minute" is 0 to 59. The range of "second" is 0 to 59. [Structured ladder/FBD] [ST] TZCP(X000,D20[...]

  • Página 549

    21 Applie d Instructions (R eal Time C lock Contro l) 21.3 TADD / RTC Data Addition 547 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 Applied Inst[...]

  • Página 550

    21 Applie d Instructions (R eal Time C lock Contro l) 21.3 TADD / RTC Data Addition 548 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 16-bit operation (TADD) Time data (hour, minute, second) of the device specified by , and time data (hour, minute, second) of the device specified by are [...]

  • Página 551

    21 Applie d Instructions (R eal Time C lock Contro l) 21.4 TSUB / RTC Data Subtraction 549 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 Applied I[...]

  • Página 552

    21 Applie d Instructions (R eal Time C lock Contro l) 21.4 TSUB / RTC Data Subtraction 550 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 16-bit operation (TSUB, TSUBP) From the time data (hour, minute, second) of the device specified by , the t ime data (hour, minut e, second) of the dev[...]

  • Página 553

    21 Applie d Instructions (R eal Time C lock Contro l) 21.5 HTOS / Hour to Second Conversion 551 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 Appl[...]

  • Página 554

    21 Applie d Instructions (R eal Time C lock Contro l) 21.5 HTOS / Hour to Second Conversion 552 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 16-bit operation (HTOS/HTOSP) The time data (h our, minute , second) of the device sp ecified by is con verted into the second unit, and the resul[...]

  • Página 555

    21 Applie d Instructions (R eal Time C lock Contro l) 21.5 HTOS / Hour to Second Conversion 553 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 Appl[...]

  • Página 556

    21 Applie d Instructions (R eal Time C lock Contro l) 21.6 STOH / Second to Hour Conversion 554 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21.6 STOH / Second to Hour Conversion Outline This instruction converts the time data in second unit into time data in "hour, minute, second" unit. 1. Format and operation, e[...]

  • Página 557

    21 Applie d Instructions (R eal Time C lock Contro l) 21.6 STOH / Second to Hour Conversion 555 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 Appl[...]

  • Página 558

    21 Applie d Instructions (R eal Time C lock Contro l) 21.6 STOH / Second to Hour Conversion 556 FXCPU Structured Programming Manual [Basic & Applied Instruction] Program example This is a program for converting the se cond unit data stored in D0, D1 when the X020 is t urned ON, into the "hour, minute, second" unit, and storing the res[...]

  • Página 559

    21 Applie d Instructions (R eal Time C lock Contro l) 21.7 TRD / Read RTC dat a 557 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 Applied Instru c[...]

  • Página 560

    21 Applie d Instructions (R eal Time C lock Contro l) 21.7 TRD / Read RTC dat a 558 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 16-bit operation (TRD) The clock data (D8013 to D8019) of the real-time clock built in t he PLC is read out into the device specified by in the following form[...]

  • Página 561

    21 Applie d Instructions (R eal Time C lock Contro l) 21.8 TWR / Set RTC data 559 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 Applied Instru cti[...]

  • Página 562

    21 Applie d Instructions (R eal Time C lock Contro l) 21.8 TWR / Set RTC data 560 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation The setting clock data stored in the device specified by is written into the clock data (D8013 to D8019) of the real-time clock built in the PLC. 1) D8018 (year da[...]

  • Página 563

    21 Applie d Instructions (R eal Time C lock Contro l) 21.8 TWR / Set RTC data 561 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 Applied Instru cti[...]

  • Página 564

    21 Applie d Instructions (R eal Time C lock Contro l) 21.8 TWR / Set RTC data 562 FXCPU Structured Programming Manual [Basic & Applied Instruction] 4) When connecting with the data access unit of FX-10DU, FX-20DU, FX-25DU types, please set the year in two-digit mode. If set in four-digit mode, the year is not displayed correctly in the present [...]

  • Página 565

    21 Applie d Instructions (R eal Time C lock Contro l) 21.9 HOUR / Hour Met er 563 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 Applied Instru cti[...]

  • Página 566

    21 Applie d Instructions (R eal Time C lock Contro l) 21.9 HOUR / Hour Met er 564 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 16-bit operation When the cumulative total of ON time durat ion of command input exceeds t he time of t he device specified by , the device specified by is turn[...]

  • Página 567

    21 Applie d Instructions (R eal Time C lock Contro l) 21.9 HOUR / Hour Met er 565 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 Applied Instru cti[...]

  • Página 568

    22 Applied Instructio ns (External Device) 566 FXCPU Structured Programming Manual [Basic & Applied Instruction] 22. Applied Instructions (External Device) This chapter introduces con version instructi ons for gray codes used in absolu te type rotary encoders and instructions dedicated to analog blocks. Instruction name Function Refere nce GRY [...]

  • Página 569

    22 Applied Instructio ns (External Device) 22.1 GRY / Decim al to Gray Code Conversion 567 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 Applied I[...]

  • Página 570

    22 Applied Instructio ns (External Device) 22.1 GRY / Decim al to Gray Code Conversion 568 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 16-bit operation (GRY, GRYP) 1) The device specified by can store a value from 0 to 32,767. 2. 32-bit operation (DGRY, DGRYP) 1) A binary value can be [...]

  • Página 571

    22 Applied Instructio ns (External Device) 22.2 GBIN / Gray Code to Decimal Conversion 569 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 Applied I[...]

  • Página 572

    22 Applied Instructio ns (External Device) 22.2 GBIN / Gray Code to Decimal Conversion 570 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 16-bit operation (GBIN, GBINP) 1) This instruction can be used for detecting an absolute position by a gray code type encoder. 2) The device specified [...]

  • Página 573

    22 Applied Instructio ns (External Device) 22.3 RD3A / Read form Dedicated Analo g Block 571 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 Applied[...]

  • Página 574

    22 Applied Instructio ns (External Device) 22.3 RD3A / Read form Dedicated Analo g Block 572 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 16-bit operation (RD3A, RD3AP) <For FX 3G , FX 3GC , FX 3U and FX 3UC PLCs> This instruction reads an analog input value from the analog block [...]

  • Página 575

    22 Applied Instructio ns (External Device) 22.4 WR3A / Write to Dedicated An alog Block 573 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 Applied [...]

  • Página 576

    22 Applied Instructio ns (External Device) 22.4 WR3A / Write to Dedicated An alog Block 574 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 16-bit operation (WR3A, WR3AP) <For FX 3G , FX 3GC , FX 3U and FX 3UC PLCs> This instruction writes a digital value to the analog block FX 0N -3[...]

  • Página 577

    23 Applied Instructions (Ex tension Function) 575 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 Applied Instru ctions (Block Data Oper atio n) 26 [...]

  • Página 578

    23 Applied Instructions (Ex tension Function) 23.1 EXTR_IN / Extern al ROM function 576 FXCPU Structured Programming Manual [Basic & Applied Instruction] 23.1 EXTR_IN / External ROM function Outline This instruction writes the operation control instructions and parameters of the memory for extension function. 1. Format and operation, execution [...]

  • Página 579

    23 Applied Instructions (Ex tension Function) 23.1 EXTR_IN / Extern al ROM function 577 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 Applied Inst[...]

  • Página 580

    23 Applied Instructions (Ex tension Function) 23.1 EXTR_IN / Extern al ROM function 578 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation2 (Writing inverter parameters) → For the details of the instruction, re fer to Commu nication Control Manual. This instruction is for using the optional me[...]

  • Página 581

    23 Applied Instructions (Ex tension Function) 23.2 EXTR_OUT / External ROM funct ion 579 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 Applied Ins[...]

  • Página 582

    23 Applied Instructions (Ex tension Function) 23.2 EXTR_OUT / External ROM funct ion 580 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanati on1 (Transmitting short mail) → For the details of the instruction, re fer to Commu nication Control Manual. This instruction is for using the optional memo[...]

  • Página 583

    23 Applied Instructions (Ex tension Function) 23.2 EXTR_OUT / External ROM funct ion 581 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 Applied Ins[...]

  • Página 584

    23 Applied Instructions (Ex tension Function) 23.2 EXTR_OUT / External ROM funct ion 582 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation3 (Reading inverter parameters) → For the details of the instruction, re fer to Commu nication Control Manual. This instruction is for using the optional m[...]

  • Página 585

    24 Applied Instructi ons (Others) 583 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 Applied Instru ctions (Block Data Oper atio n) 26 Applied Inst[...]

  • Página 586

    24 Applied Instructi ons (Others) 24.1 COMRD / Read Device Comment Data 584 FXCPU Structured Programming Manual [Basic & Applied Instruction] 24.1 COMRD / Read Device Comment Data Outline This instruction reads the comment data for registered devices written to the PLC by programming software such as GX Works2. 1. Format and operation, executio[...]

  • Página 587

    24 Applied Instructi ons (Others) 24.1 COMRD / Read Device Comment Data 585 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 Applied Instru ctions (B[...]

  • Página 588

    24 Applied Instructi ons (Others) 24.1 COMRD / Read Device Comment Data 586 FXCPU Structured Programming Manual [Basic & Applied Instruction] Cautions 1) Specify a device number in the device specified by for which a comment is registered in the PLC. If a comment is not registered for the device specified by , "20H" (space) is stored [...]

  • Página 589

    24 Applied Instructi ons (Others) 24.2 RND / Random Number Generation 587 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 Applied Instru ctions (Blo[...]

  • Página 590

    24 Applied Instructi ons (Others) 24.2 RND / Random Number Generation 588 FXCPU Structured Programming Manual [Basic & Applied Instruction] Program examples In the program example shown below, a random number is stored to D100 every time X01 0 turns ON. When the PLC mode switches from STOP to RUN, the time data conv erted into se conds and ad d[...]

  • Página 591

    24 Applied Instructi ons (Others) 24.3 DUTY / Timing Pulse Generati on 589 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 Applied Instru ctions (Bl[...]

  • Página 592

    24 Applied Instructi ons (Others) 24.3 DUTY / Timing Pulse Generati on 590 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 16-bit operation (DUTY) 1) The timing clock output of the device specified by is set to ON and OFF with the ON duration for "n1" scans and OFF duration for &[...]

  • Página 593

    24 Applied Instructi ons (Others) 24.3 DUTY / Timing Pulse Generati on 591 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 Applied Instru ctions (Bl[...]

  • Página 594

    24 Applied Instructi ons (Others) 24.4 CRC / Cycl ic Redundancy Chec k 592 FXCPU Structured Programming Manual [Basic & Applied Instruction] 24.4 CRC / Cyclic Redundancy Check Outline This CRC instruction ca lculates the CRC (cyclic redundanc y check) va lue which is an e rror check method used in communication. In addition to CRC value, there [...]

  • Página 595

    24 Applied Instructi ons (Others) 24.4 CRC / Cycl ic Redundancy Chec k 593 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 Applied Instru ctions (Bl[...]

  • Página 596

    24 Applied Instructi ons (Others) 24.4 CRC / Cycl ic Redundancy Chec k 594 FXCPU Structured Programming Manual [Basic & Applied Instruction] 2) 8-bit conversion mode [M8161 = ON] In this mode, the operatio n is executed only for low-order 8 bits (low-order byte ) of device specified by . With regard to t he operation result, low- order 8 bi ts [...]

  • Página 597

    24 Applied Instructi ons (Others) 24.4 CRC / Cycl ic Redundancy Chec k 595 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 Applied Instru ctions (Bl[...]

  • Página 598

    24 Applied Instructi ons (Others) 24.5 DHCMOV / High Speed Count er Move 596 FXCPU Structured Programming Manual [Basic & Applied Instruction] 24.5 DHCMOV / High Speed Counter Move Outline This instruction transfers the current value of a specified high speed counter or ring counter. The function of this instruction varies depending on the PLC [...]

  • Página 599

    24 Applied Instructi ons (Others) 24.5 DHCMOV / High Speed Count er Move 597 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 Applied Instru ctions ([...]

  • Página 600

    24 Applied Instructi ons (Others) 24.5 DHCMOV / High Speed Count er Move 598 FXCPU Structured Programming Manual [Basic & Applied Instruction] 3) If two or more DHCMOV instructions are used in one i nput interrupt program, only the first instruction (just after the interrupt pointer) is executed when the interrupt is generated. The rest of the [...]

  • Página 601

    24 Applied Instructi ons (Others) 24.5 DHCMOV / High Speed Count er Move 599 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 Applied Instru ctions ([...]

  • Página 602

    25 Applied Instructi ons (Block Data Operation) 600 FXCPU Structured Programming Manual [Basic & Applied Instruction] 25. Applied Instructions (Block Data Operation) This chapter introduces the instructions for adding, subtracting and comparing block data. Instruction name Function Refere nce BK+ Block Data A ddition Section 25.1 BK+P DBK+ DBK+[...]

  • Página 603

    25 Applied Instructi ons (Block Data Operation) 25.1 BK+ / Block Data Addi tion 601 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 Applied Instru c[...]

  • Página 604

    25 Applied Instructi ons (Block Data Operation) 25.1 BK+ / Block Data Addi tion 602 FXCPU Structured Programming Manual [Basic & Applied Instruction] 3. Applicable devices Function and operation explanation 1. 16-bit operation (BK+/BK+P) 1) "n" 16-bit binary data starting from the device sp ecified by are added to "n" 16-bit[...]

  • Página 605

    25 Applied Instructi ons (Block Data Operation) 25.1 BK+ / Block Data Addi tion 603 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 Applied Instru c[...]

  • Página 606

    25 Applied Instructi ons (Block Data Operation) 25.1 BK+ / Block Data Addi tion 604 FXCPU Structured Programming Manual [Basic & Applied Instruction] Error An operation error is cause d in the following cases. The error flag M8067 turns ON, and the error code is stored in D8067. 1) When "n" ("2n" in 32-bit operation) devices[...]

  • Página 607

    25 Applied Instructi ons (Block Data Operation) 25.2 BK- / Block Data Sub traction 605 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 Applied Instr[...]

  • Página 608

    25 Applied Instructi ons (Block Data Operation) 25.2 BK- / Block Data Sub traction 606 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 16-bit operation (BK-/BK-P) 1) "n" 16-bit binary data starting from the device spec ified by are subtracted from "n" 16-bit binary data[...]

  • Página 609

    25 Applied Instructi ons (Block Data Operation) 25.2 BK- / Block Data Sub traction 607 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 Applied Instr[...]

  • Página 610

    25 Applied Instructi ons (Block Data Operation) 25.2 BK- / Block Data Sub traction 608 FXCPU Structured Programming Manual [Basic & Applied Instruction] Program examples In the program shown be low, the con stant "8765" is subt racted from the dat a stored in D100 to D102 wh en X010 is set to ON, and the operation result is stored in [...]

  • Página 611

    25 Applied Instructi ons (Block Data Operation) 25.3 BKCMP=, >, <, < >, <=, >= / Block Data Comp are 609 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Ins[...]

  • Página 612

    25 Applied Instructi ons (Block Data Operation) 25.3 BKCMP=, >, <, < >, <=, >= / Block Data Comp are 610 FXCPU Structured Programming Manual [Basic & Applied Instruction] *1. Refer to "Cautions". Instructio n name Operatio n Execution form Expression in each langua ge Structured ladde r/FBD ST *1 BKCMP<P 16 bits P[...]

  • Página 613

    25 Applied Instructi ons (Block Data Operation) 25.3 BKCMP=, >, <, < >, <=, >= / Block Data Comp are 611 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Ins[...]

  • Página 614

    25 Applied Instructi ons (Block Data Operation) 25.3 BKCMP=, >, <, < >, <=, >= / Block Data Comp are 612 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 16-bit operation (BKCMP=, BKCMP> , BKCMP<, BKCMP<>, BKCMP< =, BKCMP>=, B KCMP=P, BKCMP>P, BK CMP&l[...]

  • Página 615

    25 Applied Instructi ons (Block Data Operation) 25.3 BKCMP=, >, <, < >, <=, >= / Block Data Comp are 613 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Ins[...]

  • Página 616

    25 Applied Instructi ons (Block Data Operation) 25.3 BKCMP=, >, <, < >, <=, >= / Block Data Comp are 614 FXCPU Structured Programming Manual [Basic & Applied Instruction] Related device Cautions 1) The instruction is provided in the FX 3UC PLC Ver. 2.20 or later. 2) When using 32-bit counters (high speed counters) For comparin[...]

  • Página 617

    25 Applied Instructi ons (Block Data Operation) 25.3 BKCMP=, >, <, < >, <=, >= / Block Data Comp are 615 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Ins[...]

  • Página 618

    26 Applied Instructions (Cha racter String Co ntrol) 616 FXCPU Structured Programming Manual [Basic & Applied Instruction] 26. Applied Instructions (Character String Control) This chapter introduc es the instructions for controlling charact er strings such a s linking character st ring data, replacing some characters and extracting character st[...]

  • Página 619

    26 Applied Instructions (Cha racter String Co ntrol) 26.1 STR / BIN to Character String Conversion 617 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) [...]

  • Página 620

    26 Applied Instructions (Cha racter String Co ntrol) 26.1 STR / BIN to Character String Conversion 618 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 16-bit operation (STR/STRP) 1) All digits (specified by ) of 16-bit binary data of the device specified by are converted into character str[...]

  • Página 621

    26 Applied Instructions (Cha racter String Co ntrol) 26.1 STR / BIN to Character String Conversion 619 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) [...]

  • Página 622

    26 Applied Instructions (Cha racter String Co ntrol) 26.1 STR / BIN to Character String Conversion 620 FXCPU Structured Programming Manual [Basic & Applied Instruction] 5) Converted character string data is stored in and later as shown below. a) For the sign, "space" (20H) is stored when the 32-bit binary data stored in is positive, a[...]

  • Página 623

    26 Applied Instructions (Cha racter String Co ntrol) 26.1 STR / BIN to Character String Conversion 621 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) [...]

  • Página 624

    26 Applied Instructions (Cha racter String Co ntrol) 26.2 VAL / Character String to BIN Conversi on 622 FXCPU Structured Programming Manual [Basic & Applied Instruction] 26.2 VAL / Character Stri ng to BIN Conversion Outline This instruction converts a character string (ASCII codes) into binary data. On the other hand, EVAL instruction converts[...]

  • Página 625

    26 Applied Instructions (Cha racter String Co ntrol) 26.2 VAL / Character String to BIN Conversi on 623 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others)[...]

  • Página 626

    26 Applied Instructions (Cha racter String Co ntrol) 26.2 VAL / Character String to BIN Conversi on 624 FXCPU Structured Programming Manual [Basic & Applied Instruction] 3) The device specified by stores the number of all digits. The number of all digits indicates the number of all characters (including the number, sign and decimal point). 4) T[...]

  • Página 627

    26 Applied Instructions (Cha racter String Co ntrol) 26.2 VAL / Character String to BIN Conversi on 625 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others)[...]

  • Página 628

    26 Applied Instructions (Cha racter String Co ntrol) 26.2 VAL / Character String to BIN Conversi on 626 FXCPU Structured Programming Manual [Basic & Applied Instruction] Error An operation error is cause d in the following cases. The error flag M8067 turns ON, and the error code is stored in D8067. 1) When the number of characters of the charac[...]

  • Página 629

    26 Applied Instructions (Cha racter String Co ntrol) 26.2 VAL / Character String to BIN Conversi on 627 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others)[...]

  • Página 630

    26 Applied Instructions (Cha racter String Co ntrol) 26.3 $+ / Link Character Strings 628 FXCPU Structured Programming Manual [Basic & Applied Instruction] 26.3 $+ / Link Character Strings Outline This instruction links a character string to another character string. 1. Format and operation, execution form *1. Refer to "Cautions". 2. [...]

  • Página 631

    26 Applied Instructions (Cha racter String Co ntrol) 26.3 $+ / Link Character Strings 629 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 Applied In[...]

  • Página 632

    26 Applied Instructions (Cha racter String Co ntrol) 26.3 $+ / Link Character Strings 630 FXCPU Structured Programming Manual [Basic & Applied Instruction] Program examples In the program example shown below, a charac ter string stor ed in D10 to D12 (abcde) is lin ked to the character string "ABCD", and the result is stored to D100 a[...]

  • Página 633

    26 Applied Instructions (Cha racter String Co ntrol) 26.4 LEN / Ch aracter String Lengt h Detection 631 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others)[...]

  • Página 634

    26 Applied Instructions (Cha racter String Co ntrol) 26.4 LEN / Ch aracter String Lengt h Detection 632 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 16-bit operation (LEN/LENP) The length of a character string stored in the device specified by and later is detected, and stored to the de[...]

  • Página 635

    26 Applied Instructions (Cha racter String Co ntrol) 26.4 LEN / Ch aracter String Lengt h Detection 633 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others)[...]

  • Página 636

    26 Applied Instructions (Cha racter String Co ntrol) 26.5 RIGHT / Extracting Character String Data from the Right 634 FXCPU Structured Programming Manual [Basic & Applied Instruction] 26.5 RIGHT / Extracting Character String Data from the Right Outline This instruction extracts a specified number of characte rs from the right end of a specified[...]

  • Página 637

    26 Applied Instructions (Cha racter String Co ntrol) 26.5 RIGHT / Extracting Character String Data from the Right 635 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct[...]

  • Página 638

    26 Applied Instructions (Cha racter String Co ntrol) 26.5 RIGHT / Extracting Character String Data from the Right 636 FXCPU Structured Programming Manual [Basic & Applied Instruction] Cautions 1) When handling character codes other than ASCII codes, note the following contents: a) The number of characters is handled in byte units (8 bits). Acco[...]

  • Página 639

    26 Applied Instructions (Cha racter String Co ntrol) 26.6 LEFT / Ext racting Cha racter String Data f rom the Left 637 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruc[...]

  • Página 640

    26 Applied Instructions (Cha racter String Co ntrol) 26.6 LEFT / Ext racting Cha racter String Data f rom the Left 638 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 16-bit operation (LEFT/LEFTP) "n" characters are extracted from the left end (that is , from the head) of the cha[...]

  • Página 641

    26 Applied Instructions (Cha racter String Co ntrol) 26.6 LEFT / Ext racting Cha racter String Data f rom the Left 639 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruc[...]

  • Página 642

    26 Applied Instructions (Cha racter String Co ntrol) 26.7 MIDR / Random Selection of Character St rings 640 FXCPU Structured Programming Manual [Basic & Applied Instruction] 26.7 MIDR / Random Selectio n of Character Strings Outline This instruction ex tracts a spe cified number of chara cters from arb itrary positi ons of a specified character[...]

  • Página 643

    26 Applied Instructions (Cha racter String Co ntrol) 26.7 MIDR / Random Selection of Character St rings 641 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Oth[...]

  • Página 644

    26 Applied Instructions (Cha racter String Co ntrol) 26.7 MIDR / Random Selection of Character St rings 642 FXCPU Structured Programming Manual [Basic & Applied Instruction] Cautions 1) When handling character codes other than ASCII codes, note the following contents: a) The number of characters is handled in byte units (8 bits). Accordingly, i[...]

  • Página 645

    26 Applied Instructions (Cha racter String Co ntrol) 26.8 MIDW / Random Replacement of Character Strings 643 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Ot[...]

  • Página 646

    26 Applied Instructions (Cha racter String Co ntrol) 26.8 MIDW / Random Replacement of Character Strings 644 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 16-bit operation (MIDW/MIDWP) Character data specified by " + 1" are extracted from the lef t end (that is, the head) of th[...]

  • Página 647

    26 Applied Instructions (Cha racter String Co ntrol) 26.8 MIDW / Random Replacement of Character Strings 645 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Ot[...]

  • Página 648

    26 Applied Instructions (Cha racter String Co ntrol) 26.8 MIDW / Random Replacement of Character Strings 646 FXCPU Structured Programming Manual [Basic & Applied Instruction] Program examples In the program example shown below, four characters are extracted from the character string data stored in D0 and later, and stored to the third character[...]

  • Página 649

    26 Applied Instructions (Cha racter String Co ntrol) 26.9 INSTR / Character string se arch 647 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 Appli[...]

  • Página 650

    26 Applied Instructions (Cha racter String Co ntrol) 26.9 INSTR / Character string se arch 648 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 16-bit operation (INSTR/INSTRP) 1) The character string stored in the device specified by and later is searched for within the character string of [...]

  • Página 651

    26 Applied Instructions (Cha racter String Co ntrol) 26.9 INSTR / Character string se arch 649 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 Appli[...]

  • Página 652

    26 Applied Instructions (Cha racter String Co ntrol) 26.10 $MOV / Character String Transfer 650 FXCPU Structured Programming Manual [Basic & Applied Instruction] 26.10 $MOV / Character String Transfer Outline This instruction transfers character string data. 1. Format and operation, execution form *1. Refer to "Cautions". 2. Set da ta[...]

  • Página 653

    26 Applied Instructions (Cha racter String Co ntrol) 26.10 $MOV / Character String Transfer 651 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 Appl[...]

  • Página 654

    26 Applied Instructions (Cha racter String Co ntrol) 26.10 $MOV / Character String Transfer 652 FXCPU Structured Programming Manual [Basic & Applied Instruction] Error An operation error is cause d in the following cases. The error flag M8067 turns ON, and the error code is stored in D8067. 1) When "00H" does not exist in the range sp[...]

  • Página 655

    27 Applied Instructio ns (Data Operation 3) 653 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 Applied Instru ctions (Block Data Oper atio n) 26 Ap[...]

  • Página 656

    27 Applied Instructio ns (Data Operation 3) 27.1 FDEL / Del eting Data fro m Tables 654 FXCPU Structured Programming Manual [Basic & Applied Instruction] 27.1 FDEL / Deleting Data from Tables Outline This instruction deletes an arbitrary piece of data from a data table. 1. Format and operation, execution form 2. Set da ta 3. Applicable devices [...]

  • Página 657

    27 Applied Instructio ns (Data Operation 3) 27.1 FDEL / Del eting Data fro m Tables 655 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 Applied Inst[...]

  • Página 658

    27 Applied Instructio ns (Data Operation 3) 27.1 FDEL / Del eting Data fro m Tables 656 FXCPU Structured Programming Manual [Basic & Applied Instruction] Program examples In the program example shown below, the second data is deleted from the data table stored in D100 to D105, and the deleted data is stored in D0 when X010 is set to ON. When th[...]

  • Página 659

    27 Applied Instructio ns (Data Operation 3) 27.2 FINS / Inserting Data to Tables 657 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 Applied Instru [...]

  • Página 660

    27 Applied Instructio ns (Data Operation 3) 27.2 FINS / Inserting Data to Tables 658 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 16-bit operation (FINS/FINSP) 1) 16-bit data of the device specified by is inserted in "n"th position in a data table (stored in the device specifi[...]

  • Página 661

    27 Applied Instructio ns (Data Operation 3) 27.2 FINS / Inserting Data to Tables 659 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 Applied Instru [...]

  • Página 662

    27 Applied Instructio ns (Data Operation 3) 27.3 POP / Shift Last Da ta Read [FI LO Control] 660 FXCPU Structured Programming Manual [Basic & Applied Instruction] 27.3 POP / Shift Last Da ta Read [FILO Control] Outline This instruction reads the last data written by the shift write (SFWR) instruction for the first-in first-out and first- in las[...]

  • Página 663

    27 Applied Instructio ns (Data Operation 3) 27.3 POP / Shift Last Da ta Read [FI LO Control] 661 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 App[...]

  • Página 664

    27 Applied Instructio ns (Data Operation 3) 27.3 POP / Shift Last Da ta Read [FI LO Control] 662 FXCPU Structured Programming Manual [Basic & Applied Instruction] Related instruction Cautions 1) When this instruction is programmed in the continuous operation type, the instruction is executed in every operation cycle. As a result, an expected op[...]

  • Página 665

    27 Applied Instructio ns (Data Operation 3) 27.3 POP / Shift Last Da ta Read [FI LO Control] 663 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 App[...]

  • Página 666

    27 Applied Instructio ns (Data Operation 3) 27.4 SFR / Bit Shift Right with Carry 664 FXCPU Structured Programming Manual [Basic & Applied Instruction] 27.4 SFR / Bit Shift Right with Carry Outline This instruction shifts 16 bits stored in a word device rightward by "n" bits. 1. Format and operation, execution form 2. Set da ta 3. App[...]

  • Página 667

    27 Applied Instructio ns (Data Operation 3) 27.4 SFR / Bit Shift Right with Carry 665 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 Applied Instru[...]

  • Página 668

    27 Applied Instructio ns (Data Operation 3) 27.5 SFL / Bi t Shift Left wi th Carry 666 FXCPU Structured Programming Manual [Basic & Applied Instruction] 27.5 SFL / Bit Shift Left with Carry Outline This instruction shifts 16 bits stored in a word device leftward by "n" bits. 1. Format and operation, execution form 2. Set da ta 3. Appl[...]

  • Página 669

    27 Applied Instructio ns (Data Operation 3) 27.5 SFL / Bi t Shift Left wi th Carry 667 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 Applied Instr[...]

  • Página 670

    28 Applied Instructions (Data Comp arison) 668 FXCPU Structured Programming Manual [Basic & Applied Instruction] 28. Applied Instructions (Data Comparison) This chapter introduces data comparison instruct ions which can be h andled as contact sy mbols in programming such as LD, AND and OR. Instruction name Function Refere nce LD= Data Compar is[...]

  • Página 671

    28 Applied Instructions (Data Comp arison) 28.1 LD =, >, <, <>, <=, >= / Data Co mparison 669 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions [...]

  • Página 672

    28 Applied Instructions (Data Comp arison) 28.1 LD =, >, <, <>, <=, >= / Data Co mparison 670 FXCPU Structured Programming Manual [Basic & Applied Instruction] *1. Refer to "Cautions". 2. Set da ta 3. Applicable devices S : Refer to "Cautions" Function and operation explanation These data comparison instruc[...]

  • Página 673

    28 Applied Instructions (Data Comp arison) 28.1 LD =, >, <, <>, <=, >= / Data Co mparison 671 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions [...]

  • Página 674

    28 Applied Instructions (Data Comp arison) 28.2 AND=, >, <, < >, <=, >= / Data Co mparison 672 FXCPU Structured Programming Manual [Basic & Applied Instruction] 28.2 AND=, >, <, < >, <=, >= / Data Comparison Outline These instructions compare numeric values, and set a contact to ON when the condition agrees. [...]

  • Página 675

    28 Applied Instructions (Data Comp arison) 28.2 AND=, >, <, < >, <=, >= / Data Co mparison 673 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions[...]

  • Página 676

    28 Applied Instructions (Data Comp arison) 28.2 AND=, >, <, < >, <=, >= / Data Co mparison 674 FXCPU Structured Programming Manual [Basic & Applied Instruction] Cautions 1) Negative values When the most significant bit is "1" in the data stored in the device specified by or , it is regarded as a negative value in com[...]

  • Página 677

    28 Applied Instructions (Data Comp arison) 28.3 OR=, >, <, < >, <=, >= / Data Co mparison 675 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions [...]

  • Página 678

    28 Applied Instructions (Data Comp arison) 28.3 OR=, >, <, < >, <=, >= / Data Co mparison 676 FXCPU Structured Programming Manual [Basic & Applied Instruction] *1. Refer to "Cautions". 2. Set da ta 3. Applicable devices S : Refer to "Cautions" Instruction name Operatio n Execution form Expressi on in ea ch [...]

  • Página 679

    28 Applied Instructions (Data Comp arison) 28.3 OR=, >, <, < >, <=, >= / Data Co mparison 677 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions [...]

  • Página 680

    29 Applied Instructions (Data T able Operation) 678 FXCPU Structured Programming Manual [Basic & Applied Instruction] 29. Applied Instructions (Data Table Operation) Instruction name Function Refere nce LIMIT Limit Control Section 2 9.1 LIMITP DLIMIT DLIMITP BAND Dead Band Contro l Section 29. 2 BANDP DBAND DBANDP ZONE Zone Control Section 29.3[...]

  • Página 681

    29 Applied Instructions (Data T able Operation) 29.1 LIMIT / Limit Control 679 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 Applied Instru ctions[...]

  • Página 682

    29 Applied Instructions (Data T able Operation) 29.1 LIMIT / Limit Control 680 FXCPU Structured Programming Manual [Basic & Applied Instruction] 3. Applicable devices Function and operation explanation 1. 16-bit operation (LIMIT/LIMITP) Depending on how the input value (16-bit binary value) of the device specified by compares to the upper and l[...]

  • Página 683

    29 Applied Instructions (Data T able Operation) 29.1 LIMIT / Limit Control 681 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 Applied Instru ctions[...]

  • Página 684

    29 Applied Instructions (Data T able Operation) 29.1 LIMIT / Limit Control 682 FXCPU Structured Programming Manual [Basic & Applied Instruction] Program example 1. Program ex ample 1 In the program example s hown below, the BCD data set in X020 to X037 is cont rolled by the limit values "500" to "5000", and the controlled va[...]

  • Página 685

    29 Applied Instructions (Data T able Operation) 29.2 BAND / Dead Band Control 683 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 Applied Instru cti[...]

  • Página 686

    29 Applied Instructions (Data T able Operation) 29.2 BAND / Dead Band Control 684 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 16-bit operation (BAND/BANDP) Depending on how the input value (16-bit binary value) of the device specified by compares to the upper and lower limit dead band [...]

  • Página 687

    29 Applied Instructions (Data T able Operation) 29.2 BAND / Dead Band Control 685 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 Applied Instru cti[...]

  • Página 688

    29 Applied Instructions (Data T able Operation) 29.2 BAND / Dead Band Control 686 FXCPU Structured Programming Manual [Basic & Applied Instruction] 2. Program ex ample 2 In the program example shown below, the BCD data set in X020 to X057 is controlled by the dead band from "-10000" to "10000", and a controlled value is outp[...]

  • Página 689

    29 Applied Instructions (Data T able Operation) 29.3 ZONE / Zone Control 687 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 Applied Instru ctions ([...]

  • Página 690

    29 Applied Instructions (Data T able Operation) 29.3 ZONE / Zone Control 688 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 16-bit operation (ZONE/ZONEP) The bias value specifie d by or is added to the input value specified by , and output to the device specified by . The bias value is ad[...]

  • Página 691

    29 Applied Instructions (Data T able Operation) 29.3 ZONE / Zone Control 689 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 Applied Instru ctions ([...]

  • Página 692

    29 Applied Instructions (Data T able Operation) 29.3 ZONE / Zone Control 690 FXCPU Structured Programming Manual [Basic & Applied Instruction] 2. Program ex ample 2 In the program example below, th e B CD data set in X0 20 to X057 is controlled by the zone from "-10000" t o "10000", and the controlled value is output to D11 [...]

  • Página 693

    29 Applied Instructions (Data T able Operation) 29.4 SCL / Scaling (Coordinat e by Point Data) 691 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 A[...]

  • Página 694

    29 Applied Instructions (Data T able Operation) 29.4 SCL / Scaling (Coordinat e by Point Data) 692 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 16-bit operation (SCL/SCLP) The input value of the device specified by is processed by scaling for the specified conversion characteristics, an[...]

  • Página 695

    29 Applied Instructions (Data T able Operation) 29.4 SCL / Scaling (Coordinat e by Point Data) 693 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 A[...]

  • Página 696

    29 Applied Instructions (Data T able Operation) 29.4 SCL / Scaling (Coordinat e by Point Data) 694 FXCPU Structured Programming Manual [Basic & Applied Instruction] Error An operation error is cause d in the following cases. The error flag M8067 turns ON, and the error code is stored in D8067. 1) When the Xn data is not set in the ascending ord[...]

  • Página 697

    29 Applied Instructions (Data T able Operation) 29.5 DABIN / Decimal ASCII to BIN Conversion 695 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 App[...]

  • Página 698

    29 Applied Instructions (Data T able Operation) 29.5 DABIN / Decimal ASCII to BIN Conversion 696 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 16-bit operation (DABIN/DABINP) 1) Data expressed in decimal ASCII codes (30H to 39H) and stored in the device specified by is converted into 16-[...]

  • Página 699

    29 Applied Instructions (Data T able Operation) 29.5 DABIN / Decimal ASCII to BIN Conversion 697 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 App[...]

  • Página 700

    29 Applied Instructions (Data T able Operation) 29.6 BINDA / BIN to Decimal ASCII Conversion 698 FXCPU Structured Programming Manual [Basic & Applied Instruction] 29.6 BINDA / BIN to Deci mal ASCII Conversion Outline This instruction converts binary data into decimal ASCII codes (30H to 39H). 1. Format and operation, execution form 2. Set da ta[...]

  • Página 701

    29 Applied Instructions (Data T able Operation) 29.6 BINDA / BIN to Decimal ASCII Conversion 699 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 App[...]

  • Página 702

    29 Applied Instructions (Data T able Operation) 29.6 BINDA / BIN to Decimal ASCII Conversion 700 FXCPU Structured Programming Manual [Basic & Applied Instruction] 2. 32-bit operation (DBINDA/DBINDAP) 1) Each digit of 32-bit binary data stored in the dev ice specified by is converted into an ASCII code (30H to 39H), and stored in the device spec[...]

  • Página 703

    29 Applied Instructions (Data T able Operation) 29.6 BINDA / BIN to Decimal ASCII Conversion 701 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 App[...]

  • Página 704

    29 Applied Instructions (Data T able Operation) 29.7 SCL2 / Scaling 2 (Coordina te by X/Y Data) 702 FXCPU Structured Programming Manual [Basic & Applied Instruction] 29.7 S CL2 / Scaling 2 (Coor dinate by X/Y Data) Outline This instruction executes scaling of the input value using a specified data table, and outputs the result. SCL instruction [...]

  • Página 705

    29 Applied Instructions (Data T able Operation) 29.7 SCL2 / Scaling 2 (Coordina te by X/Y Data) 703 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 [...]

  • Página 706

    29 Applied Instructions (Data T able Operation) 29.7 SCL2 / Scaling 2 (Coordina te by X/Y Data) 704 FXCPU Structured Programming Manual [Basic & Applied Instruction] 3. Setting the conversion table for scaling The convers ion table f or scaling is set based on the data table store d in a devic e specified in and later. The data table has the fo[...]

  • Página 707

    29 Applied Instructions (Data T able Operation) 29.7 SCL2 / Scaling 2 (Coordina te by X/Y Data) 705 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 [...]

  • Página 708

    29 Applied Instructions (Data T able Operation) 29.7 SCL2 / Scaling 2 (Coordina te by X/Y Data) 706 FXCPU Structured Programming Manual [Basic & Applied Instruction] Error An operation error is cause d in the following cases. The error flag M8067 turns ON, and the error code is stored in D8067. 1) When the Xn data is not set in the ascending or[...]

  • Página 709

    30 Applied Ins tructions (Ext ernal Device Communica tion) 707 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 Applied Instru ctions (Block Data Ope[...]

  • Página 710

    30 Applied Ins tructions (Ext ernal Device Communica tion) 30.1 IVCK / Inverter Status Check 708 FXCPU Structured Programming Manual [Basic & Applied Instruction] 30.1 IVCK / Inverter Status Check Outline This instru ction reads th e operation status of an inverter to a PLC using the co mputer link o peration func tion of the inverter. Applicab[...]

  • Página 711

    30 Applied Ins tructions (Ext ernal Device Communica tion) 30.1 IVCK / Inverter Status Check 709 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 App[...]

  • Página 712

    30 Applied Ins tructions (Ext ernal Device Communica tion) 30.1 IVCK / Inverter Status Check 710 FXCPU Structured Programming Manual [Basic & Applied Instruction] Cautions → For other cautions, ref er to the Data Comm unication Edition manual. 1) The instruction is provided in the FX 3G PLC Ver. 1.10 or later. 2) It is not permitted to use an[...]

  • Página 713

    30 Applied Ins tructions (Ext ernal Device Communica tion) 30.2 IVDR / Inverter Drive 711 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 Applied In[...]

  • Página 714

    30 Applied Ins tructions (Ext ernal Device Communica tion) 30.2 IVDR / Inverter Drive 712 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation → For detailed explanation of the instruction, re fer to the Data Comm unication Edition manual. 1. 16-bit operation (IVDR) The control value specified i[...]

  • Página 715

    30 Applied Ins tructions (Ext ernal Device Communica tion) 30.2 IVDR / Inverter Drive 713 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 Applied In[...]

  • Página 716

    30 Applied Ins tructions (Ext ernal Device Communica tion) 30.3 IVR D / Inverter Pa rameter Rea d 714 FXCPU Structured Programming Manual [Basic & Applied Instruction] 30.3 IVRD / Inverter Parameter Read Outline This instruction reads an inverter para meter to the PLC using the computer link operation funct ion of the inverter. This instruction[...]

  • Página 717

    30 Applied Ins tructions (Ext ernal Device Communica tion) 30.3 IVR D / Inverter Pa rameter Rea d 715 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 2[...]

  • Página 718

    30 Applied Ins tructions (Ext ernal Device Communica tion) 30.4 IVWR / Inverte r Parameter Writ e 716 FXCPU Structured Programming Manual [Basic & Applied Instruction] 30.4 IVWR / Inverter Parameter Write Outline This instruction writes a parameter of an inverter usi ng the computer link operation function of the inverter. This instruction corr[...]

  • Página 719

    30 Applied Ins tructions (Ext ernal Device Communica tion) 30.4 IVWR / Inverte r Parameter Writ e 717 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 2[...]

  • Página 720

    30 Applied Ins tructions (Ext ernal Device Communica tion) 30.4 IVWR / Inverte r Parameter Writ e 718 FXCPU Structured Programming Manual [Basic & Applied Instruction] Cases in which a password reset error occurs in an inverter communication instruction, and the actual number of times of reset error in such cases. - When a wrong password is wri[...]

  • Página 721

    30 Applied Ins tructions (Ext ernal Device Communica tion) 30.5 IVBWR / Invert er Parameter Bl ock Write 719 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Ot[...]

  • Página 722

    30 Applied Ins tructions (Ext ernal Device Communica tion) 30.5 IVBWR / Invert er Parameter Bl ock Write 720 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation → For detailed explanation of the instruction, re fer to the Data Comm unication Edition manual. 1. 16-bit operation (IVBWR) A data ta[...]

  • Página 723

    30 Applied Ins tructions (Ext ernal Device Communica tion) 30.6 IVMC / Invert er Multi Command 721 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 A[...]

  • Página 724

    30 Applied Ins tructions (Ext ernal Device Communica tion) 30.6 IVMC / Invert er Multi Command 722 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 16-bit operation This instructi on executes multiple comman ds of an inverter con nected to a communicatio n port n wh ose station number is sp[...]

  • Página 725

    30 Applied Ins tructions (Ext ernal Device Communica tion) 30.6 IVMC / Invert er Multi Command 723 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 A[...]

  • Página 726

    30 Applied Ins tructions (Ext ernal Device Communica tion) 30.7 ADPR W / MODBU S Read/Write 724 FXCPU Structured Programming Manual [Basic & Applied Instruction] 30.7 ADPRW / MODBUS Read/Write Outline This instruction allows the MODBUS Master to communicate (read/write data) with its associated Slaves. 1. Format and operation, execution form 2.[...]

  • Página 727

    30 Applied Ins tructions (Ext ernal Device Communica tion) 30.7 ADPR W / MODBU S Read/Write 725 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 Appl[...]

  • Página 728

    30 Applied Ins tructions (Ext ernal Device Communica tion) 30.7 ADPR W / MODBU S Read/Write 726 FXCPU Structured Programming Manual [Basic & Applied Instruction] 8H Diagnosis (Available onl y in FX 3U and FX 3UC PLCs) Sub-func tion: 3H Change AS CII Input Delimiter Sub-functi on Data (ASCII Mode End of Messa ge Character): 00H to FFH (Slave re [...]

  • Página 729

    30 Applied Ins tructions (Ext ernal Device Communica tion) 30.7 ADPR W / MODBU S Read/Write 727 FXCPU Structured Programming Manual [Basic & Applied Instruction] 21 Applied Instructi ons (Real T ime Clock Control) 22 Applied Instructio ns (Externa l Device ) 23 Applied Instructi ons (Extension Function) 24 Applied Instruct ions (Others) 25 Appl[...]

  • Página 730

    31 Applied Instructions (Data Transfer 3) 728 FXCPU Structured Programming Manual [Basic & Applied Instruction] 31. Applied Instructions (Data Transfer 3) This chapter introduces the instructions for executing more complicated processing for fundamental applied instructions and for special processing. Instruction name Function Refere nce RBFM D[...]

  • Página 731

    31 Applied Instructions (Data Transfer 3) 31.1 RBFM / Divided BFM Read 729 FXCPU Structured Programming Manual [Basic & Applied Instruction] 31 Applied Instructi ons (Data T ransfer 3) 32 Applied Instructio ns (High S peed Processing 2) 33 Applied Instructi ons (Extension File Register Control) 34 Applied Instruct ions (FX 3U -CF-ADP) 35 Interr[...]

  • Página 732

    31 Applied Instructions (Data Transfer 3) 31.1 RBFM / Divided BFM Read 730 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 16-bit operation (RBFM) "n1" buffer memory (BFM) units at location No. "m2" in special function block/unit No. "m1" are transf erred (rea[...]

  • Página 733

    31 Applied Instructions (Data Transfer 3) 31.1 RBFM / Divided BFM Read 731 FXCPU Structured Programming Manual [Basic & Applied Instruction] 31 Applied Instructi ons (Data T ransfer 3) 32 Applied Instructio ns (High S peed Processing 2) 33 Applied Instructi ons (Extension File Register Control) 34 Applied Instruct ions (FX 3U -CF-ADP) 35 Interr[...]

  • Página 734

    31 Applied Instructions (Data Transfer 3) 31.1 RBFM / Divided BFM Read 732 FXCPU Structured Programming Manual [Basic & Applied Instruction] Cautions 1) A watchdog timer error may occur when many num bers of points are transferred in one operation cycle. In such a case, take either of the following countermeasures. a) Change the watchdog timer [...]

  • Página 735

    31 Applied Instructions (Data Transfer 3) 31.1 RBFM / Divided BFM Read 733 FXCPU Structured Programming Manual [Basic & Applied Instruction] 31 Applied Instructi ons (Data T ransfer 3) 32 Applied Instructio ns (High S peed Processing 2) 33 Applied Instructi ons (Extension File Register Control) 34 Applied Instruct ions (FX 3U -CF-ADP) 35 Interr[...]

  • Página 736

    31 Applied Instructions (Data Transfer 3) 31.1 RBFM / Divided BFM Read 734 FXCPU Structured Programming Manual [Basic & Applied Instruction] 2) When X001 is set to ON, the buffer memories (BFM ) #2001 to #2080 (80 points) in the special function block and unit whos e unit number is No. 2 are written to D20 0 to D279 by 16 point s in each operat[...]

  • Página 737

    31 Applied Instructions (Data Transfer 3) 31.2 WBFM / Divided BFM Write 735 FXCPU Structured Programming Manual [Basic & Applied Instruction] 31 Applied Instructi ons (Data T ransfer 3) 32 Applied Instructio ns (High S peed Processing 2) 33 Applied Instructi ons (Extension File Register Control) 34 Applied Instruct ions (FX 3U -CF-ADP) 35 Inter[...]

  • Página 738

    31 Applied Instructions (Data Transfer 3) 31.2 WBFM / Divided BFM Write 736 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 16-bit operation (WBFM) "n1" word units from the device specified by in t he PLC are transferred (written) to buffer memory (BFM) location No. "m2"[...]

  • Página 739

    32 Applied Instruction s (High Speed Proces sing 2) 737 FXCPU Structured Programming Manual [Basic & Applied Instruction] 31 Applied Instructi ons (Data T ransfer 3) 32 Applied Instructio ns (High S peed Processing 2) 33 Applied Instructi ons (Extension File Register Control) 34 Applied Instruct ions (FX 3U -CF-ADP) 35 Interrupt Function and Pu[...]

  • Página 740

    32 Applied Instruction s (High Speed Proces sing 2) 32.1 DHSCT / High Speed Count er Compare With Data Table 738 FXCPU Structured Programming Manual [Basic & Applied Instruction] 32.1 DHSCT / High Speed Counte r Compare With Data Table Outline This instruction co mpares the current value of a high speed counter with a data table of comparison p[...]

  • Página 741

    32 Applied Instruction s (High Speed Proces sing 2) 32.1 DHSCT / High Speed Count er Compare With Data Table 739 FXCPU Structured Programming Manual [Basic & Applied Instruction] 31 Applied Instructi ons (Data T ransfer 3) 32 Applied Instructio ns (High S peed Processing 2) 33 Applied Instructi ons (Extension File Register Control) 34 Applied I[...]

  • Página 742

    32 Applied Instruction s (High Speed Proces sing 2) 32.1 DHSCT / High Speed Count er Compare With Data Table 740 FXCPU Structured Programming Manual [Basic & Applied Instruction] Operation example *1. If this instruction is not executed, no processing is executed for outputs. In the operation example shown above, the command contact is "OF[...]

  • Página 743

    32 Applied Instruction s (High Speed Proces sing 2) 32.1 DHSCT / High Speed Count er Compare With Data Table 741 FXCPU Structured Programming Manual [Basic & Applied Instruction] 31 Applied Instructi ons (Data T ransfer 3) 32 Applied Instructio ns (High S peed Processing 2) 33 Applied Instructi ons (Extension File Register Control) 34 Applied I[...]

  • Página 744

    32 Applied Instruction s (High Speed Proces sing 2) 32.1 DHSCT / High Speed Count er Compare With Data Table 742 FXCPU Structured Programming Manual [Basic & Applied Instruction] Program example In the program example shown belo w, the current value of C235 (counti ng X000) is compared with the comparison data table set in R0 and later, and a s[...]

  • Página 745

    33 Applied Instructio ns (Extens ion File Re gister Con trol) 743 FXCPU Structured Programming Manual [Basic & Applied Instruction] 31 Applied Instructi ons (Data T ransfer 3) 32 Applied Instructio ns (High S peed Processing 2) 33 Applied Instructi ons (Extension File Register Control) 34 Applied Instruct ions (FX 3U -CF-ADP) 35 Interrupt Funct[...]

  • Página 746

    33 Applied Instructio ns (Extens ion File Re gister Con trol) 33.1 LOADR / Load From ER 744 FXCPU Structured Programming Manual [Basic & Applied Instruction] 33.1 LOADR / Load From ER Outline This instruction re ads the current values of exten sion file registers (ER) store d in a memory cassette (flash memory and EEPROM) or the file r egisters[...]

  • Página 747

    33 Applied Instructio ns (Extens ion File Re gister Con trol) 33.1 LOADR / Load From ER 745 FXCPU Structured Programming Manual [Basic & Applied Instruction] 31 Applied Instructi ons (Data T ransfer 3) 32 Applied Instructio ns (High S peed Processing 2) 33 Applied Instructi ons (Extension File Register Control) 34 Applied Instruct ions (FX 3U -[...]

  • Página 748

    33 Applied Instructio ns (Extens ion File Re gister Con trol) 33.1 LOADR / Load From ER 746 FXCPU Structured Programming Manual [Basic & Applied Instruction] b) When not connecting to a memory cassette The contents (current values) of extension file registers (ER) stored in PLC's built-in EEPROM having the same numbers with the exten sion [...]

  • Página 749

    33 Applied Instructio ns (Extens ion File Re gister Con trol) 33.1 LOADR / Load From ER 747 FXCPU Structured Programming Manual [Basic & Applied Instruction] 31 Applied Instructi ons (Data T ransfer 3) 32 Applied Instructio ns (High S peed Processing 2) 33 Applied Instructi ons (Extension File Register Control) 34 Applied Instruct ions (FX 3U -[...]

  • Página 750

    33 Applied Instructio ns (Extens ion File Re gister Con trol) 33.2 SAVER / Save to ER 748 FXCPU Structured Programming Manual [Basic & Applied Instruction] 33.2 SAVER / Save to ER Outline This instruction writes the current values of extension registers (R) stored in the PLC's built-in RAM to extension file registers (ER) stored in a memor[...]

  • Página 751

    33 Applied Instructio ns (Extens ion File Re gister Con trol) 33.2 SAVER / Save to ER 749 FXCPU Structured Programming Manual [Basic & Applied Instruction] 31 Applied Instructi ons (Data T ransfer 3) 32 Applied Instructio ns (High S peed Processing 2) 33 Applied Instructi ons (Extension File Register Control) 34 Applied Instruct ions (FX 3U -CF[...]

  • Página 752

    33 Applied Instructio ns (Extens ion File Re gister Con trol) 33.2 SAVER / Save to ER 750 FXCPU Structured Programming Manual [Basic & Applied Instruction] Cautions 1. Cautions on writing data to a memory cassette Memory cassettes adopt flash memory. Note the following contents when writing data to extension file registers in a memory cassettes[...]

  • Página 753

    33 Applied Instructio ns (Extens ion File Re gister Con trol) 33.2 SAVER / Save to ER 751 FXCPU Structured Programming Manual [Basic & Applied Instruction] 31 Applied Instructi ons (Data T ransfer 3) 32 Applied Instructio ns (High S peed Processing 2) 33 Applied Instructi ons (Extension File Register Control) 34 Applied Instruct ions (FX 3U -CF[...]

  • Página 754

    33 Applied Instructio ns (Extens ion File Re gister Con trol) 33.2 SAVER / Save to ER 752 FXCPU Structured Programming Manual [Basic & Applied Instruction] Program example 1) In the case of FX 3UC PLCs Ver. 1.30 or later and FX 3U PLCs Ver. 2.20 or later In the program example shown below, the changed contents of extension registers R10 to R19 [...]

  • Página 755

    33 Applied Instructio ns (Extens ion File Re gister Con trol) 33.2 SAVER / Save to ER 753 FXCPU Structured Programming Manual [Basic & Applied Instruction] 31 Applied Instructi ons (Data T ransfer 3) 32 Applied Instructio ns (High S peed Processing 2) 33 Applied Instructi ons (Extension File Register Control) 34 Applied Instruct ions (FX 3U -CF[...]

  • Página 756

    33 Applied Instructio ns (Extens ion File Re gister Con trol) 33.2 SAVER / Save to ER 754 FXCPU Structured Programming Manual [Basic & Applied Instruction] 2) In the case of FX 3UC PLCs former than Ver. 1.30 In the program example shown below, the changed contents of the extension registers R10 to R19 (sector 0) used for setting data are reflec[...]

  • Página 757

    33 Applied Instructio ns (Extens ion File Re gister Con trol) 33.2 SAVER / Save to ER 755 FXCPU Structured Programming Manual [Basic & Applied Instruction] 31 Applied Instructi ons (Data T ransfer 3) 32 Applied Instructio ns (High S peed Processing 2) 33 Applied Instructi ons (Extension File Register Control) 34 Applied Instruct ions (FX 3U -CF[...]

  • Página 758

    33 Applied Instructio ns (Extens ion File Re gister Con trol) 33.2 SAVER / Save to ER 756 FXCPU Structured Programming Manual [Basic & Applied Instruction] HFFFF R2047 K2048 R0 HFFFF R1 HFFFF R10 HFFFF R11 HFFFF Setting data Device number Current value Extension registers (R) R12 HFFFF R19 HFFFF R99 HFFFF R100 HFFFF HFFFF R2047 Setting backup d[...]

  • Página 759

    33 Applied Instructio ns (Extens ion File Re gister Con trol) 33.3 INITR / Init ialize R and ER 757 FXCPU Structured Programming Manual [Basic & Applied Instruction] 31 Applied Instructi ons (Data T ransfer 3) 32 Applied Instructio ns (High S peed Processing 2) 33 Applied Instructi ons (Extension File Register Control) 34 Applied Instruct ions [...]

  • Página 760

    33 Applied Instructio ns (Extens ion File Re gister Con trol) 33.3 INITR / Init ialize R and ER 758 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 16-bit operation (INITR/INITRP) "n" sectors of extension registers in the PLC's bu ilt-in RAM starting from the one specified b[...]

  • Página 761

    33 Applied Instructio ns (Extens ion File Re gister Con trol) 33.3 INITR / Init ialize R and ER 759 FXCPU Structured Programming Manual [Basic & Applied Instruction] 31 Applied Instructi ons (Data T ransfer 3) 32 Applied Instructio ns (High S peed Processing 2) 33 Applied Instructi ons (Extension File Register Control) 34 Applied Instruct ions [...]

  • Página 762

    33 Applied Instructio ns (Extens ion File Re gister Con trol) 33.3 INITR / Init ialize R and ER 760 FXCPU Structured Programming Manual [Basic & Applied Instruction] Error An operation error is cause d in the following cases. The error flag M8067 turns ON, and the error code is stored in D8067. 1) When any device number other than the head devi[...]

  • Página 763

    33 Applied Instructio ns (Extens ion File Re gister Con trol) 33.4 LOGR / Loggi ng R and ER 761 FXCPU Structured Programming Manual [Basic & Applied Instruction] 31 Applied Instructi ons (Data T ransfer 3) 32 Applied Instructio ns (High S peed Processing 2) 33 Applied Instructi ons (Extension File Register Control) 34 Applied Instruct ions (FX [...]

  • Página 764

    33 Applied Instructio ns (Extens ion File Re gister Con trol) 33.4 LOGR / Loggi ng R and ER 762 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 16-bit operation (LOGR/LOGRP) While the instruction is driven, "m" devices starti ng from the device specified by are logged until "[...]

  • Página 765

    33 Applied Instructio ns (Extens ion File Re gister Con trol) 33.4 LOGR / Loggi ng R and ER 763 FXCPU Structured Programming Manual [Basic & Applied Instruction] 31 Applied Instructi ons (Data T ransfer 3) 32 Applied Instructio ns (High S peed Processing 2) 33 Applied Instructi ons (Extension File Register Control) 34 Applied Instruct ions (FX [...]

  • Página 766

    33 Applied Instructio ns (Extens ion File Re gister Con trol) 33.4 LOGR / Loggi ng R and ER 764 FXCPU Structured Programming Manual [Basic & Applied Instruction] Program example In the program example shown below, D1 and D2 ar e logged to the area from R2048 to R6143 every time X001 turns ON. LOGRP EN ENO s m n d1 d2 X001 D1 K2 K2 R2048 D100 [S[...]

  • Página 767

    33 Applied Instructio ns (Extens ion File Re gister Con trol) 33.5 RWER / Rewrite to ER 765 FXCPU Structured Programming Manual [Basic & Applied Instruction] 31 Applied Instructi ons (Data T ransfer 3) 32 Applied Instructio ns (High S peed Processing 2) 33 Applied Instructi ons (Extension File Register Control) 34 Applied Instruct ions (FX 3U -[...]

  • Página 768

    33 Applied Instructio ns (Extens ion File Re gister Con trol) 33.5 RWER / Rewrite to ER 766 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 16-bit operation (RWER) 1) For the FX 3U and FX 3UC PLCs The contents (current values) of "n" extension regist ers (R) starting from ar e wr[...]

  • Página 769

    33 Applied Instructio ns (Extens ion File Re gister Con trol) 33.5 RWER / Rewrite to ER 767 FXCPU Structured Programming Manual [Basic & Applied Instruction] 31 Applied Instructi ons (Data T ransfer 3) 32 Applied Instructio ns (High S peed Processing 2) 33 Applied Instructi ons (Extension File Register Control) 34 Applied Instruct ions (FX 3U -[...]

  • Página 770

    33 Applied Instructio ns (Extens ion File Re gister Con trol) 33.5 RWER / Rewrite to ER 768 FXCPU Structured Programming Manual [Basic & Applied Instruction] 2. Cautions on writing data to the memory cassette (EEPROM) for th e FX 3G PLCs Memory cassettes adopt EEPROM. Note the following contents when writin g data to extension file registers in[...]

  • Página 771

    33 Applied Instructio ns (Extens ion File Re gister Con trol) 33.5 RWER / Rewrite to ER 769 FXCPU Structured Programming Manual [Basic & Applied Instruction] 31 Applied Instructi ons (Data T ransfer 3) 32 Applied Instructio ns (High S peed Processing 2) 33 Applied Instructi ons (Extension File Register Control) 34 Applied Instruct ions (FX 3U -[...]

  • Página 772

    33 Applied Instructio ns (Extens ion File Re gister Con trol) 33.6 INITER / In itialize ER 770 FXCPU Structured Programming Manual [Basic & Applied Instruction] 33.6 INITER / Initialize ER Outline This instruction initialize s extension file registers (ER) to "HFF FF" (<K-1>) in a memo ry cassette (flas h memory) before executin[...]

  • Página 773

    33 Applied Instructio ns (Extens ion File Re gister Con trol) 33.6 INITER / In itialize ER 771 FXCPU Structured Programming Manual [Basic & Applied Instruction] 31 Applied Instructi ons (Data T ransfer 3) 32 Applied Instructio ns (High S peed Processing 2) 33 Applied Instructi ons (Extension File Register Control) 34 Applied Instruct ions (FX 3[...]

  • Página 774

    33 Applied Instructio ns (Extens ion File Re gister Con trol) 33.6 INITER / In itialize ER 772 FXCPU Structured Programming Manual [Basic & Applied Instruction] Cautions 1. About 25 ms is required to initialize one sector. When initializing two or more sectors, take either measure shown below. 1) Set a large value to the watchdog timer D8000 us[...]

  • Página 775

    33 Applied Instructio ns (Extens ion File Re gister Con trol) 33.6 INITER / In itialize ER 773 FXCPU Structured Programming Manual [Basic & Applied Instruction] 31 Applied Instructi ons (Data T ransfer 3) 32 Applied Instructio ns (High S peed Processing 2) 33 Applied Instructi ons (Extension File Register Control) 34 Applied Instruct ions (FX 3[...]

  • Página 776

    34 Applied Instructions (F X3U-CF-ADP) 774 FXCPU Structured Programming Manual [Basic & Applied Instruction] 34. Applied Instructions (FX 3U -CF-ADP) Instruction name Function Refere nce FLCRT File create • ch eck Section 34.1 FLDEL File delete • CF card form at Section 34 .2 FLWR Data wr ite Section 34.3 FLRD Data read Section 34.4 FLCMD F[...]

  • Página 777

    34 Applied Instructions (F X3U-CF-ADP) 34.1 FLCRT / File cr eate • check 775 FXCPU Structured Programming Manual [Basic & Applied Instruction] 31 Applied Instructi ons (Data T ransfer 3) 32 Applied Instructio ns (High S peed Processing 2) 33 Applied Instructi ons (Extension File Register Control) 34 Applied Instruct ions (FX 3U -CF-ADP) 35 In[...]

  • Página 778

    34 Applied Instructions (F X3U-CF-ADP) 34.1 FLCRT / File cr eate • check 776 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 16-bit operation (FLCRT) 1) When the file ID is "K0" When is "K0", the FLCRT instruction creates a FIFO file. When the PLC creates two or more [...]

  • Página 779

    34 Applied Instructions (F X3U-CF-ADP) 34.1 FLCRT / File cr eate • check 777 FXCPU Structured Programming Manual [Basic & Applied Instruction] 31 Applied Instructi ons (Data T ransfer 3) 32 Applied Instructio ns (High S peed Processing 2) 33 Applied Instructi ons (Extension File Register Control) 34 Applied Instruct ions (FX 3U -CF-ADP) 35 In[...]

  • Página 780

    34 Applied Instructions (F X3U-CF-ADP) 34.1 FLCRT / File cr eate • check 778 FXCPU Structured Programming Manual [Basic & Applied Instruction] Cautions 1) When the file ID is "K0" a) The CF-ADP can create up to 1000 files (within the CompactFlash TM card capacity). b) The file name is set to "FILE0000.CSV" to "FILE099[...]

  • Página 781

    34 Applied Instructions (F X3U-CF-ADP) 34.2 FLDEL / File del ete • CF card f ormat 779 FXCPU Structured Programming Manual [Basic & Applied Instruction] 31 Applied Instructi ons (Data T ransfer 3) 32 Applied Instructio ns (High S peed Processing 2) 33 Applied Instructi ons (Extension File Register Control) 34 Applied Instruct ions (FX 3U -CF-[...]

  • Página 782

    34 Applied Instructions (F X3U-CF-ADP) 34.2 FLDEL / File del ete • CF card f ormat 780 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 16-bit operation (FLDEL) The FLDEL instruction deletes files stored in the CompactFlash TM card, or formats the CompactFlash TM card in the following met[...]

  • Página 783

    34 Applied Instructions (F X3U-CF-ADP) 34.3 FLWR / Data writ e 781 FXCPU Structured Programming Manual [Basic & Applied Instruction] 31 Applied Instructi ons (Data T ransfer 3) 32 Applied Instructio ns (High S peed Processing 2) 33 Applied Instructi ons (Extension File Register Control) 34 Applied Instruct ions (FX 3U -CF-ADP) 35 Interrupt Func[...]

  • Página 784

    34 Applied Instructions (F X3U-CF-ADP) 34.3 FLWR / Data writ e 782 FXCPU Structured Programming Manual [Basic & Applied Instruction] Function and operation explanation 1. 16-bit operation (FLWR) The FLWR instruction writes data spe cified by the device to a file stored in the Comp actFlash TM card specified by the file ID or to the buffer insid[...]

  • Página 785

    34 Applied Instructions (F X3U-CF-ADP) 34.3 FLWR / Data writ e 783 FXCPU Structured Programming Manual [Basic & Applied Instruction] 31 Applied Instructi ons (Data T ransfer 3) 32 Applied Instructio ns (High S peed Processing 2) 33 Applied Instructi ons (Extension File Register Control) 34 Applied Instruct ions (FX 3U -CF-ADP) 35 Interrupt Func[...]

  • Página 786

    34 Applied Instructions (F X3U-CF-ADP) 34.3 FLWR / Data writ e 784 FXCPU Structured Programming Manual [Basic & Applied Instruction] Cautions 1) The FLWR instruction is completed abnormally if a CompactFlash TM card is not mounted. 2) The user should pay close attention to the number of times data is written when the writing destination is set [...]

  • Página 787

    34 Applied Instructions (F X3U-CF-ADP) 34.4 FLRD / Data read 785 FXCPU Structured Programming Manual [Basic & Applied Instruction] 31 Applied Instructi ons (Data T ransfer 3) 32 Applied Instructio ns (High S peed Processing 2) 33 Applied Instructi ons (Extension File Register Control) 34 Applied Instruct ions (FX 3U -CF-ADP) 35 Interrupt Functi[...]

  • Página 788

    34 Applied Instructions (F X3U-CF-ADP) 34.4 FLRD / Data read 786 FXCPU Structured Programming Manual [Basic & Applied Instruction] Detailed explanati on of setting data Details of the setting data in the FLRD instruction are as shown below. Cautions 1) The FLRD instruction is completed abnormally if a CompactFlash TM card is not mounted. 2) The[...]

  • Página 789

    34 Applied Instructions (F X3U-CF-ADP) 34.5 FLCMD / FX3U-CF-ADP command 787 FXCPU Structured Programming Manual [Basic & Applied Instruction] 31 Applied Instructi ons (Data T ransfer 3) 32 Applied Instructio ns (High S peed Processing 2) 33 Applied Instructi ons (Extension File Register Control) 34 Applied Instruct ions (FX 3U -CF-ADP) 35 Inter[...]

  • Página 790

    34 Applied Instructions (F X3U-CF-ADP) 34.5 FLCMD / FX3U-CF-ADP command 788 FXCPU Structured Programming Manual [Basic & Applied Instruction] Detailed explanati on of setting data Details of the setting data in the FLCMD instruction are as shown below. *1. The CompactFlash TM card is available in the "mounted" status. *2. The CompactF[...]

  • Página 791

    34 Applied Instructions (F X3U-CF-ADP) 34.6 FLSTRD / FX3U-CF-ADP status read 789 FXCPU Structured Programming Manual [Basic & Applied Instruction] 31 Applied Instructi ons (Data T ransfer 3) 32 Applied Instructio ns (High S peed Processing 2) 33 Applied Instructi ons (Extension File Register Control) 34 Applied Instruct ions (FX 3U -CF-ADP) 35 [...]

  • Página 792

    34 Applied Instructions (F X3U-CF-ADP) 34.6 FLSTRD / FX3U-CF-ADP status read 790 FXCPU Structured Programming Manual [Basic & Applied Instruction] Detailed explanati on of setting data Details of the setting data in the FLSTRD instruction are as shown below. • When is "K0" to "K63" The FLSTRD instruction reads the final li[...]

  • Página 793

    34 Applied Instructions (F X3U-CF-ADP) 34.6 FLSTRD / FX3U-CF-ADP status read 791 FXCPU Structured Programming Manual [Basic & Applied Instruction] 31 Applied Instructi ons (Data T ransfer 3) 32 Applied Instructio ns (High S peed Processing 2) 33 Applied Instructi ons (Extension File Register Control) 34 Applied Instruct ions (FX 3U -CF-ADP) 35 [...]

  • Página 794

    35 Interrupt Fu nction and Pulse Catch Function 792 FXCPU Structured Programming Manual [Basic & Applied Instruction] 35.1 Outline 35. Interrupt Function and Pulse Catch Function This chapter explains the built-in interrupt function and pulse catch function in FX PLCs. The input, special devices and timers in the explanations relate to the FX 3[...]

  • Página 795

    35 Interrupt Fu nction and Pulse Catch Function 793 FXCPU Structured Programming Manual [Basic & Applied Instruction] 31 Applied Instructi ons (Data T ransfer 3) 32 Applied Instructio ns (High S peed Processing 2) 33 Applied Instructi ons (Extension File Register Control) 34 Applied Instruct ions (FX 3U -CF-ADP) 35 Interrupt Function and Pulse [...]

  • Página 796

    35 Interrupt Fu nction and Pulse Catch Function 794 FXCPU Structured Programming Manual [Basic & Applied Instruction] 35.2 Common items 35.2.2 How to disable interrupt function and pulse catch function This section describes how to disable the interrupt function and pulse catch function . 1. Limiting the program interrupt range [int errupt func[...]

  • Página 797

    35 Interrupt Fu nction and Pulse Catch Function 795 FXCPU Structured Programming Manual [Basic & Applied Instruction] 31 Applied Instructi ons (Data T ransfer 3) 32 Applied Instructio ns (High S peed Processing 2) 33 Applied Instructi ons (Extension File Register Control) 34 Applied Instruct ions (FX 3U -CF-ADP) 35 Interrupt Function and Pulse [...]

  • Página 798

    35 Interrupt Fu nction and Pulse Catch Function 796 FXCPU Structured Programming Manual [Basic & Applied Instruction] 35.2 Common items 35.2.4 Cautions on use (common) This section explains common cautions on using the interrupt function or pulse catch function. Specific cautions on each interrupt function are explained in the description of ea[...]

  • Página 799

    35 Interrupt Fu nction and Pulse Catch Function 797 FXCPU Structured Programming Manual [Basic & Applied Instruction] 31 Applied Instructi ons (Data T ransfer 3) 32 Applied Instructio ns (High S peed Processing 2) 33 Applied Instructi ons (Extension File Register Control) 34 Applied Instruct ions (FX 3U -CF-ADP) 35 Interrupt Function and Pulse [...]

  • Página 800

    35 Interrupt Fu nction and Pulse Catch Function 798 FXCPU Structured Programming Manual [Basic & Applied Instruction] 35.3 Input Interrupt (Int errupt Triggered by External Signal) [ Without Delay Function] 35.3 Input Interrupt (Interrupt Triggere d by External Signal) [Without Delay Function] 35.3.1 Input Interrupt (Interrupt Triggered by Exte[...]

  • Página 801

    35 Interrupt Fu nction and Pulse Catch Function 799 FXCPU Structured Programming Manual [Basic & Applied Instruction] 31 Applied Instructi ons (Data T ransfer 3) 32 Applied Instructio ns (High S peed Processing 2) 33 Applied Instructi ons (Extension File Register Control) 34 Applied Instruct ions (FX 3U -CF-ADP) 35 Interrupt Function and Pulse [...]

  • Página 802

    35 Interrupt Fu nction and Pulse Catch Function 800 FXCPU Structured Programming Manual [Basic & Applied Instruction] 35.3 Input Interrupt (Int errupt Triggered by External Signal) [ Without Delay Function] 7. Program ex ample 1) When using both an external input interrupt at the rising edge and the output refresh (REF instruction) In the progr[...]

  • Página 803

    35 Interrupt Fu nction and Pulse Catch Function 801 FXCPU Structured Programming Manual [Basic & Applied Instruction] 31 Applied Instructi ons (Data T ransfer 3) 32 Applied Instructio ns (High S peed Processing 2) 33 Applied Instructi ons (Extension File Register Control) 34 Applied Instruct ions (FX 3U -CF-ADP) 35 Interrupt Function and Pulse [...]

  • Página 804

    35 Interrupt Fu nction and Pulse Catch Function 802 FXCPU Structured Programming Manual [Basic & Applied Instruction] 35.3 Input Interrupt (Int errupt Triggered by External Signal) [ Without Delay Function] 35.3.2 Examples of practical programs (p rograms to measure short pulse width) By using a 1 ms retentive type time r or the special data re[...]

  • Página 805

    35 Interrupt Fu nction and Pulse Catch Function 803 FXCPU Structured Programming Manual [Basic & Applied Instruction] 31 Applied Instructi ons (Data T ransfer 3) 32 Applied Instructio ns (High S peed Processing 2) 33 Applied Instructi ons (Extension File Register Control) 34 Applied Instruct ions (FX 3U -CF-ADP) 35 Interrupt Function and Pulse [...]

  • Página 806

    35 Interrupt Fu nction and Pulse Catch Function 804 FXCPU Structured Programming Manual [Basic & Applied Instruction] 35.4 Input Int errupt (Inte rrupt by Exte rnal Signal) [Wit h Delay function] 35.4 Input Interrupt (Interrupt by Ex ternal Signal) [With Delay function] 1. Outline An input interrupt has the function to delay execution of an int[...]

  • Página 807

    35 Interrupt Fu nction and Pulse Catch Function 805 FXCPU Structured Programming Manual [Basic & Applied Instruction] 31 Applied Instructi ons (Data T ransfer 3) 32 Applied Instructio ns (High S peed Processing 2) 33 Applied Instructi ons (Extension File Register Control) 34 Applied Instruct ions (FX 3U -CF-ADP) 35 Interrupt Function and Pulse [...]

  • Página 808

    35 Interrupt Fu nction and Pulse Catch Function 806 FXCPU Structured Programming Manual [Basic & Applied Instruction] 35.5 Timer Interr upt (Interru pt in Constant Cycle) 6. Program ex ample In the program exam ple shown below, data is adde d and addition result is compared wit h the set value at every 10 ms. 1) Program example 35.5.2 Example o[...]

  • Página 809

    35 Interrupt Fu nction and Pulse Catch Function 807 FXCPU Structured Programming Manual [Basic & Applied Instruction] 31 Applied Instructi ons (Data T ransfer 3) 32 Applied Instructio ns (High S peed Processing 2) 33 Applied Instructi ons (Extension File Register Control) 34 Applied Instruct ions (FX 3U -CF-ADP) 35 Interrupt Function and Pulse [...]

  • Página 810

    35 Interrupt Fu nction and Pulse Catch Function 808 FXCPU Structured Programming Manual [Basic & Applied Instruction] 35.5 Timer Interr upt (Interru pt in Constant Cycle) 3. Cautions 1) When the HKY, SEGL or PR instruction is used in an interrupt program, the instruction turns ON M8029 in the interrupt program. When M8029 is referred to in the [...]

  • Página 811

    35 Interrupt Fu nction and Pulse Catch Function 809 FXCPU Structured Programming Manual [Basic & Applied Instruction] 31 Applied Instructi ons (Data T ransfer 3) 32 Applied Instructio ns (High S peed Processing 2) 33 Applied Instructi ons (Extension File Register Control) 34 Applied Instruct ions (FX 3U -CF-ADP) 35 Interrupt Function and Pulse [...]

  • Página 812

    35 Interrupt Fu nction and Pulse Catch Function 810 FXCPU Structured Programming Manual [Basic & Applied Instruction] 35.6 Counter I nterrupt - I nterrupt Triggered by Counting Up of High Speed Cou nter 35.6 Counter Interrupt - Interrupt Trig gered by Counting Up of High Speed Counter 1. Outline This type of interrupt utilizes the current value[...]

  • Página 813

    35 Interrupt Fu nction and Pulse Catch Function 811 FXCPU Structured Programming Manual [Basic & Applied Instruction] 31 Applied Instructi ons (Data T ransfer 3) 32 Applied Instructio ns (High S peed Processing 2) 33 Applied Instructi ons (Extension File Register Control) 34 Applied Instruct ions (FX 3U -CF-ADP) 35 Interrupt Function and Pulse [...]

  • Página 814

    35 Interrupt Fu nction and Pulse Catch Function 812 FXCPU Structured Programming Manual [Basic & Applied Instruction] 35.7 Pulse Catch Function[M8170 to M8177] 2. Program ex ample *1. When using the pulse catch function at 5 μ s or when receiving a pulse whose response frequency is 50 kHz to 100 kHz using a high speed counter, perform the foll[...]

  • Página 815

    35 Interrupt Fu nction and Pulse Catch Function 813 FXCPU Structured Programming Manual [Basic & Applied Instruction] 31 Applied Instructi ons (Data T ransfer 3) 32 Applied Instructio ns (High S peed Processing 2) 33 Applied Instructi ons (Extension File Register Control) 34 Applied Instruct ions (FX 3U -CF-ADP) 35 Interrupt Function and Pulse [...]

  • Página 816

    35 Interrupt Fu nction and Pulse Catch Function 814 FXCPU Structured Programming Manual [Basic & Applied Instruction] 35.8 Pulse width/Pulse per iod measurement func tion [M8075 to M8083, D8074 to D8097] 2) Pulse period measurement The pulse period of the input signal from X000 is measured. - Timing chart The pulse period is not measured when t[...]

  • Página 817

    35 Interrupt Fu nction and Pulse Catch Function 815 FXCPU Structured Programming Manual [Basic & Applied Instruction] 31 Applied Instructi ons (Data T ransfer 3) 32 Applied Instructio ns (High S peed Processing 2) 33 Applied Instructi ons (Extension File Register Control) 34 Applied Instruct ions (FX 3U -CF-ADP) 35 Interrupt Function and Pulse [...]

  • Página 818

    35 Interrupt Fu nction and Pulse Catch Function 816 FXCPU Structured Programming Manual [Basic & Applied Instruction] 35.8 Pulse width/Pulse per iod measurement func tion [M8075 to M8083, D8074 to D8097] *1. The ring counter offers 32-bit data including the most significant bit. The DSUB instruction does not give a correct value because it hand[...]

  • Página 819

    35 Interrupt Fu nction and Pulse Catch Function 817 FXCPU Structured Programming Manual [Basic & Applied Instruction] 31 Applied Instructi ons (Data T ransfer 3) 32 Applied Instructio ns (High S peed Processing 2) 33 Applied Instructi ons (Extension File Register Control) 34 Applied Instruct ions (FX 3U -CF-ADP) 35 Interrupt Function and Pulse [...]

  • Página 820

    Appendix A: Relation ships be tween devic es and ad dresses 818 FXCPU Structured Programming Manual [Basic & Applied Instruction] Appendix A: Relationships between devices and addresses The table below shows the relationships between devices and addresses. Device Device a nd address Example of corresponding device and address Device Address Dev[...]

  • Página 821

    Appendix A: Relationships betwee n devices and addresses 819 FXCPU Structured Programming Manual [Basic & Applied Instruction] 31 Applied Instructi ons (Data T ransfer 3) 32 Applied Instructio ns (High S peed Processing 2) 33 Applied Instructi ons (Extension File Register Control) 34 Applied Instruct ions (FX 3U -CF-ADP) 35 Interrupt Function a[...]

  • Página 822

    Appendix B: Applied Instruction List [by Instruction Type / in Alphabetic Order] Appendix B-1 Applied in structions [by instruction type] 820 FXCPU Structured Programming Manual [Basic & Applied Instruction] Appendix B: Applied Instruction List [by Instruction Type / in Alphabetic Order] Appendix B-1 Applied instruct ions [by instruction type] [...]

  • Página 823

    Appendix B: Applied Instruction List [by Instruction Type / in Alphabetic Order] Appendix B-1 Applied in structions [by instruction type] 821 FXCPU Structured Programming Manual [Basic & Applied Instruction] 31 Applied Instructi ons (Data T ransfer 3) 32 Applied Instructio ns (High S peed Processing 2) 33 Applied Instructi ons (Extension File R[...]

  • Página 824

    Appendix B: Applied Instruction List [by Instruction Type / in Alphabetic Order] Appendix B-1 Applied in structions [by instruction type] 822 FXCPU Structured Programming Manual [Basic & Applied Instruction] 3. Comparison instructions 4. Arithmetic operation instruction s Mnemonic Function Ref. Page DBKCMP<> Block Data Compare ≠ 609 DBK[...]

  • Página 825

    Appendix B: Applied Instruction List [by Instruction Type / in Alphabetic Order] Appendix B-1 Applied in structions [by instruction type] 823 FXCPU Structured Programming Manual [Basic & Applied Instruction] 31 Applied Instructi ons (Data T ransfer 3) 32 Applied Instructio ns (High S peed Processing 2) 33 Applied Instructi ons (Extension File R[...]

  • Página 826

    Appendix B: Applied Instruction List [by Instruction Type / in Alphabetic Order] Appendix B-1 Applied in structions [by instruction type] 824 FXCPU Structured Programming Manual [Basic & Applied Instruction] 10. Character string operation instructions ZONE Zone Contr ol 68 7 ZONEP DZONE DZONEP SCL Scaling (Coor dinate by Point D ata) 691 SCLP D[...]

  • Página 827

    Appendix B: Applied Instruction List [by Instruction Type / in Alphabetic Order] Appendix B-1 Applied in structions [by instruction type] 825 FXCPU Structured Programming Manual [Basic & Applied Instruction] 31 Applied Instructi ons (Data T ransfer 3) 32 Applied Instructio ns (High S peed Processing 2) 33 Applied Instructi ons (Extension File R[...]

  • Página 828

    Appendix B: Applied Instruction List [by Instruction Type / in Alphabetic Order] Appendix B-1 Applied in structions [by instruction type] 826 FXCPU Structured Programming Manual [Basic & Applied Instruction] 19. Other handy inst ructions Mnemonic Function Ref. Page WDT Watchdog Timer Ref resh 125 WDTP ALT Alternate State 340 ALTP ANS Timed Annu[...]

  • Página 829

    Appendix B: Applied Instruction List [by Instruction Type / in Alphabetic Order] Appendix B-2 Applied instructions [in alphabetical order] 827 FXCPU Structured Programming Manual [Basic & Applied Instruction] 31 Applied Instructi ons (Data T ransfer 3) 32 Applied Instructio ns (High S peed Processing 2) 33 Applied Instructi ons (Extension File [...]

  • Página 830

    Appendix B: Applied Instruction List [by Instruction Type / in Alphabetic Order] Appendix B-2 Applied instructions [in alphabetical order] 828 FXCPU Structured Programming Manual [Basic & Applied Instruction] D DABIN Decimal ASCII to BIN Conve rsion 695 DABINP DABS Absolute Curren t Value Read 52 5 DABSD Absolute Drum Se quencer 327 DACOS Float[...]

  • Página 831

    Appendix B: Applied Instruction List [by Instruction Type / in Alphabetic Order] Appendix B-2 Applied instructions [in alphabetical order] 829 FXCPU Structured Programming Manual [Basic & Applied Instruction] 31 Applied Instructi ons (Data T ransfer 3) 32 Applied Instructio ns (High S peed Processing 2) 33 Applied Instructi ons (Extension File [...]

  • Página 832

    Appendix B: Applied Instruction List [by Instruction Type / in Alphabetic Order] Appendix B-2 Applied instructions [in alphabetical order] 830 FXCPU Structured Programming Manual [Basic & Applied Instruction] D DVIT Interrupt Posit ioning 520 DWSUM Sum of Word Data 497 DWSUMP DXCH Exchange 157 DXCHP DXOR Logical Ex clusive OR 18 9 DXORP DZCP Zo[...]

  • Página 833

    Appendix B: Applied Instruction List [by Instruction Type / in Alphabetic Order] Appendix B-2 Applied instructions [in alphabetical order] 831 FXCPU Structured Programming Manual [Basic & Applied Instruction] 31 Applied Instructi ons (Data T ransfer 3) 32 Applied Instructio ns (High S peed Processing 2) 33 Applied Instructi ons (Extension File [...]

  • Página 834

    Appendix B: Applied Instruction List [by Instruction Type / in Alphabetic Order] Appendix B-2 Applied instructions [in alphabetical order] 832 FXCPU Structured Programming Manual [Basic & Applied Instruction] S SFR Bit Shift Righ t with Carry 664 SFRD Shift Read [FIFO Control] 222 SFRDP SFRP Bit Shift Right with Carry 664 SFTL Bit Shift Lef t 2[...]

  • Página 835

    833 Warranty FXCPU Structured Programming Manual [Basic & Applied Instruction] Warranty Please confirm the following product warranty details before using this product. 1. Gratis Warranty Term and Gratis Warranty Range [Gratis Warranty Term] If any faults or defects (hereinafter "Failure") found to be the responsibility of Mitsubishi [...]

  • Página 836

    834 Revised History FXCPU Structured Programming Manual [Basic & Applied Instruction] Revised History Date created Revision Descriptio n 1/2009 A F irst edition 7/2009 B • In structions was added : INV, MEP, MEF, RS,FLCRT, FLDE L, FLWR, FLRD, FLCMD, FLSTRD • The follow ing instructions are p rovided in the FX 3G series. RD3A, RD3AP, WR 3A, [...]

  • Página 837

    [...]

  • Página 838

    HEAD OFFICE: TOKYO BUILDING, 2-7-3 MARUNOUCHI, CHIYODA- KU, TOKYO 100-8310, JAPAN HIMEJI WORKS: 840, CHIYODA CHO, HIMEJI, JAPAN JY997D34701L (MEE) Effective Sep. 2013 Specifications are subject to chang e without notice. MODEL FX-KP-SM-E MODEL CODE 09R926 FXCPU Structured Programming Manual Basic & Applied Instruction[...]