Download  Print this page

Mitsubishi Electric MELSEC iQ-R Series Programming Manual

Process control function blocks.
Hide thumbs
   
1
2
3
4
5
Table of Contents
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

Advertisement

MELSEC iQ-R Programming Manual
(Process Control Function Blocks)

Advertisement

Table of Contents

   Summary of Contents for Mitsubishi Electric MELSEC iQ-R Series

  • Page 1 MELSEC iQ-R Programming Manual (Process Control Function Blocks)
  • Page 3: Safety Precautions

    (Read these precautions before using this product.) Before using MELSEC iQ-R series programmable controllers, please read the manuals for the product and the relevant manuals introduced in those manuals carefully, and pay full attention to safety to handle the product correctly.
  • Page 4 • When the SIL2 Process CPU is used (1) Although MELCO has obtained the certification for Product's compliance to the international safety standards IEC61508, IEC61511 from TUV Rheinland, this fact does not guarantee that Product will be free from any malfunction or failure.
  • Page 5: Introduction

    Before using this product, please read this manual and the relevant manuals carefully and develop familiarity with the functions and performance of the MELSEC iQ-R series programmable controller to handle the product correctly. When applying the program examples provided in this manual to an actual system, ensure the applicability and confirm that it will not cause system control problems.
  • Page 6: Table Of Contents

    CONTENTS SAFETY PRECAUTIONS ..............1 CONDITIONS OF USE FOR THE PRODUCT .
  • Page 7 PART 3 GENERAL PROCESS FB CHAPTER 4 ANALOG VALUE SELECTION AND AVERAGE VALUE High Selector (M+P_HS(_E))............. . . 60 Low Selector (M+P_LS(_E)) .
  • Page 8 PART 4 TAG ACCESS FB CHAPTER 9 I/O CONTROL Analog Input Processing (M+P_IN) ............144 Output Processing-1 with Mode Switching (With Input Addition) (M+P_OUT1) .
  • Page 9 CHAPTER 11 TAG SPECIAL 11.1 Change Control Mode (M+P_MCHG) ............338 PART 5 TAG FB CHAPTER 12 LOOP TAG...
  • Page 10 12.36 Program Setter (M+M_PGS) ............. . 426 12.37 Multi-Point Program Setter (M+M_PGS2_) .
  • Page 11 MVAL1 ................562 MVAL2 .
  • Page 12: Relevant Manuals

    Print book [SH-080370E] controlling of the DDC processing using the tag FB e-Manual refers to the Mitsubishi Electric FA electronic book manuals that can be browsed using a dedicated tool. e-Manual has the following features: • Required information can be cross-searched in multiple manuals.
  • Page 13: Terms

    The assignment information of the tag data assigned to the file register. The device information of the CPU module is stored. CPU module The abbreviation for the MELSEC iQ-R series CPU module Engineering tool The product name of the software package for the MELSEC programmable controllers...
  • Page 14: Manual Page Organization

    MANUAL PAGE ORGANIZATION In this manual, pages are organized and the symbols are used as shown below. How to read chapters 4 to 15 The following illustration is for explanation purpose only, and should not be referred to as an actual documentation. Analog Input Processing (M+P_IN) Ò...
  • Page 15  Function block symbol • A function block followed by parentheses indicates multiple function blocks. For example, "M+P_HS(_E)" includes two function blocks: M+P_HS and M+P_HS_E.  Description formats of the FBD/LD language  Corresponding tag type (For tag access FB and tag FB) ...
  • Page 16 MEMO...
  • Page 17: Part 1 Overview

    PART 1 OVERVIEW This part consists of the following chapters. 1 PROCESS CONTROL FUNCTION BLOCK 2 PROCEDURE BEFORE USING PROCESS CONTROL FUNCTION BLOCK...
  • Page 18: Chapter 1 Process Control Function Block

    (tag data). A process control function block can be used with the Process CPU and SIL2 Process CPU (standard program only) for MELSEC iQ-R series. Program using the tag FB (M+M_2PIDH_) which optimizes responsive performance for a setting value and control...
  • Page 19: Program Supporting Process Control Function Blocks

    Program Supporting Process Control Function Blocks A process control function block can be used in an FBD/LD program for process control. A FBD/LD program for process control can be created when the process control extension is enabled on the "Properties" window of the program file.
  • Page 20: Tag Fb

    Tag FB A Tag FB and a user-defined tag FB perform process control operation as a controller or an indicator. They perform processing by accessing tag data defined as global labels. The tag data defines data relevant to the instrumentation system as a structure. The execution status can be checked and controlled by accessing the tag data from the faceplate of the engineering tool.
  • Page 21: Tag Fb Categories

    Tag FB categories The tag FB is classified into four categories according to the tag type. The following table lists the tag type classification. Classification Description Loop tag Used for loop control processing. This is equivalent to the loop tag used in process control instructions. Status tag Used for monitoring or control of the on/off states.
  • Page 22: Initial Values For Tag Data And Operation Constants (public Variables)

    Initial values for tag data and operation constants (public variables) The tag FB requires the initial value settings for tag data and operation constants (public variables). The initial values for tag data and public variables of each tag FB part can be set on the "FB Property" window of the engineering tool.
  • Page 23: I/o Modes

    I/O modes Inputs and outputs of the tag FB is connected or disconnected with the I/O module in accordance with the I/O mode setting. Also, the input processing and loop control operation of the tag FB can be stopped. The tag FB has four I/O modes as follows. Symbol I/O mode Description...
  • Page 24: User-defined Tag Fb And Tag Access Fb

    User-defined Tag FB and Tag Access FB A tag FB with unique processing (user-defined tag FB) can be created with tag access FBs, standard functions, or standard function FBs. The tag access FB performs processing by accessing tag data of the arranged user-defined tag FB. Device/label memory Tag data (1) Tag access FB...
  • Page 25: Tag Type List

    Tag type list The following table lists the tag types, structure data types, structure labels for tag data reference, and application examples available in the user-defined tag FB. Classification Tag type Name Tag data Structure label Application structure type for tag data example in user- reference defined tag FB...
  • Page 26: Program Execution Control

    Program Execution Control An FBD/LD program for process control can be set a program execution cycle. There are two methods for executing a program: timer execution and interrupt execution (fixed scan). Select either of the methods in accordance with the intended use of the program. Timer execution An FBD/LD program for process control is executed in the execution cycle (T) which is set to each program.
  • Page 27 Phase and execution order For the normal/low-speed execution cycle, set the phase. With the phase setting, a program block can be executed at a timing shifted by a constant interval from the set execution cycle. Set the phase on the "Properties" window of the program block. Phase for the normal-speed execution cycle of 800ms On the "Options"...
  • Page 28 Fixed period execution of program block without phase The execution time of A differs every time. 800ms 800ms (800±α)ms The program blocks A and B have the same execution cycle of 800ms, and the program block A is first executed. In this case, the program blocks are executed simultaneously, and the program block A is executed at an interval of 800ms and the program block B is executed after the execution of the program block A ends.
  • Page 29 ■Program block with the same execution cycle and phase When multiple program blocks are set to be executed in the same phase, the program blocks are executed in the order set on the "Program File Setting" window of the engineering tool. Fixed period execution of program blocks with the same execution cycle and phase 800ms 800ms...
  • Page 30 Control cycle (CT) A control cycle is the cycle in which the loop control operation is performed. Set an integral multiple of the execution cycle as the control cycle for each tag. The execution cycles are counted, and the loop control operation is performed when the specified number of control cycles is reached. When the control cycle of M+M_PID is 1s in the program block with the execution cycle of 200ms Program block (ΔT = 200ms) Input...
  • Page 31: Interrupt Execution (fixed Scan)

    ■Setting the control cycle (CT) Set the control cycle in the "FB Property" of the engineering tool. Item Name Setting/Storage range Unit Initial value Data type Number of digits after the Low limit High limit decimal point Control cycle 9999 1.00 REAL The following table lists the available tag types and tag access FBs performing operations every control cycle.
  • Page 32: Chapter 2 Procedure Before Using Process Control Function Block

    PROCEDURE BEFORE USING PROCESS CONTROL FUNCTION BLOCK This chapter describes how to create an FBD/LD program for process control using tag FBs. Overview Creating a project Create a new project using the engineering tool. ( GX Works3 Operating Manual) Setting CPU parameters Set the following items in the CPU parameter.
  • Page 33: Setting Cpu Parameters

    Setting CPU Parameters Set the following items in the CPU parameter. • File Register Setting • Index Register Setting • Label Initial Value Reflection Setting File Register Setting Set the file register. [CPU Parameter]  [File Setting]  [File Register Setting] Operating procedure Select "Use Common File Register in All Programs"...
  • Page 34: Index Register Setting

    Index Register Setting Check that seven points or more are set to the index register (Z). (The default setting is 20 points.) [CPU Parameter]  [Memory/Device Setting]  [Index Register Setting] Precautions The range displayed in the option of the engineering tool (Z0 to Z6) is used for internal processing. Therefore, do not use Z0 to Z6 of the index register in the program where the process control extension is enabled, and functions and function blocks used in that program.
  • Page 35: Declaring A Tag Fb (tag Fb Setting)

    Declaring a tag FB (Tag FB Setting) Declare a tag FB to be used in an FBD/LD program for process control. Operating procedure Click the "Tag FB Setting" button (1) on the toolbar to display the "Tag FB Setting" window. When the "Tag FB Setting"...
  • Page 36: Editing An Fbd/ld Program For Process Control

    Editing an FBD/LD Program for Process Control Drag and drop a tag FB onto the FBD/LD editor and edit a program. Operating procedure Select an instance of the declared tag FB on the element selection window and drag and drop it (1) to any place on the FBD/LD editor. The setting dialog to use the process control function block (2) is displayed.
  • Page 37 Specifying tag data and public variables The following describes how to specify tag data and public variables in programs. ■Specifying tag data To use tag data of a tag FB in an FBD/LD program for process control, specify the tag data as "Tag name.Tag data name". When using the manipulated value (MV) of the tag data (TIC001) (1) Specify "TIC001.MV"...
  • Page 38 Precautions • Before placing a tag FB on the FBD/LD editor, declare the tag FB on the "Tag FB Setting" window. • Do not use a process control function block in program files with the process control extension disabled. Doing so causes an error in programs.
  • Page 39: Creating A User-defined Tag Fb

    Creating a user-defined tag FB The following shows the procedure to create a user-defined tag FB. Operating procedure Create a new function block. Set the items of "Program Configuration" as follows on the "New Data" window. (1) Select "FBD/LD". (2) Select "Yes". (3) Select a tag type.
  • Page 40 Specifying tag data of a user-defined tag FB The following describes how to specify tag data of a user-defined tag FB to be used in a program. ■When specifying the tag data from an FBD/LD program for process control To use tag data of a user-defined tag FB in an FBD/LD program for process control, specify the tag data as "Tag name.Tag data name".
  • Page 41: Setting Initial Values Of Fbs (fb Property)

    Setting Initial Values of FBs (FB Property) Set initial values of tag data and public variables in the "FB Property" window. Operating procedure Select a tag FB and display the "FB Property" window. [View]  [Docking Window]  [FB Property] Set initial values to the tag data or public variables.
  • Page 42: Checking Fb Operation (faceplate)

    Checking FB Operation (Faceplate) Set the operating status of the CPU module to RUN, and monitor and change the tag FB operation and current values. Operating procedure Set the operating status of the CPU module to RUN to start monitoring. Select a tag FB in an FBD/LD program for process control, and click (1).
  • Page 43: Block

    Troubleshooting of when an error has occurred in a process control function block Display the module diagnostics (CPU diagnostics) in the engineering tool. [Diagnostics]  [Module Diagnostics (CPU Diagnostics)] Check the error code and detailed information on the module diagnostics (CPU diagnostics) window. In the above example figure, the error code and detailed information are displayed as follows.
  • Page 44 MEMO 2 PROCEDURE BEFORE USING PROCESS CONTROL FUNCTION BLOCK 2.8 Troubleshooting...
  • Page 45: Part 2 Lists Of Process Control Function Block

    PART 2 LISTS OF PROCESS CONTROL FUNCTION BLOCK This part consists of the following chapters. 3 LISTS OF PROCESS CONTROL FUNCTION BLOCK...
  • Page 46: Chapter 3 Lists Of Process Control Function Block

    LISTS OF PROCESS CONTROL FUNCTION BLOCK How to read the lists is shown below. Item Description Function block symbol A function block name is shown. Processing details An overview of the function blocks is explained. Reference Indicates the reference of detailed information. •...
  • Page 47 Correction Operation The following FBs perform operation processing such as broken line correction, standard filter, engineering value conversion, temperature/pressure correction, and summation. ■Function Generator Function block symbol Processing details Reference M+P_FG Outputs (OUT_) values according to the function generator pattern that consists of SN break points Page 70 M+P_FG with regard to the input (IN).
  • Page 48 Arithmetic Operation The following FBs perform operation processing such as addition/subtraction, multiplication/division, and square root. ■Addition (with coefficient) Function block symbol Processing details Reference M+P_ADD Adds values with coefficients and bias to the inputs (IN1 to IN5) and outputs (OUT_) the result. Page 91 M+P_ADD ■Subtraction (with coefficient) Function block symbol...
  • Page 49 Comparison Operation The following FBs perform comparison operation (, >, =, <, ). ■Comparison (>) with setting value Function block symbol Processing details Reference M+P_GT Compares (>) the input 1 (IN1) with the input 2 (IN2) using a setting value and hysteresis and Page 101 M+P_GT outputs the result to the comparison output (B_).
  • Page 50 Control Operation The following FBs control operation of lead-lag, integration, derivative, high/low limiter, variation rate limiter, dead band, bumpless transfer, and analog memory. ■Lead-Lag Function block symbol Processing details Reference M+P_LLAG When the operation signal (INVLD) is FALSE, this function block performs lead-lag compensation Page 111 M+P_LLAG to the input (IN) and outputs (OUT_) the result.
  • Page 51: Tag Access Fbs

    Tag Access FBs I/O Control Operation The following FBs perform I/O processing including analog input/output, pulse integration, and batch counter. ■Analog Input Processing Function block symbol Processing details Reference M+P_IN Performs range check, input limiter, engineering value inverse conversion, and digital filter Page 144 M+P_IN processing.
  • Page 52 Loop Control Operation The following FBs perform loop control processing including ratio control, various PID controls, two-position (on/off) control, three-position (on/off) control, program setter, and loop selector. ■Ratio Control (Enable Tracking for primary loop) Function block symbol Processing details Reference M+P_R_T Controls two sets of control amount at a constant ratio and outputs the result (MV).
  • Page 53 ■Position Type PID Control (Enable Tracking for primary loop/Enable Tracking from secondary loop) Function block symbol Processing details Reference M+P_PIDP_EX_T_ Performs PID operations using process variable differential, inexact differential, and position type, Page 243 and outputs the result. M+P_PIDP_EX_T_ It also allows manipulated value bumpless switching and tracking from the primary loop and secondary loop at a change of control mode.
  • Page 54 ■2 position ON/OFF Control (Disable Tracking for primary loop) Function block symbol Processing details Reference M+P_ONF2 Performs two-position (on/off) control. Page 298 M+P_ONF2 ■3 position ON/OFF Control (Enable Tracking for primary loop) Function block symbol Processing details Reference M+P_ONF3_T Performs three-position (on/off) control. The primary loop can be tracked. Page 301 M+P_ONF3_T ■3 position ON/OFF Control (Disable Tracking for primary loop)
  • Page 55: Tag Fbs

    Tag FBs Loop tag The following FBs perform loop control processing including ratio control, various PID controls, two-position (on/off) control, three-position (on/off) control, program setter, and loop selector. ■Velocity Type PID Control (Enable Tracking for primary loop) Function block symbol Processing details Reference M+M_PID_T...
  • Page 56 ■Position Type PID Control (Enable Tracking for primary loop/Disable Tracking from secondary loop) Function block symbol Processing details Reference M+M_PIDP_T Performs position type PID control combining the functions of M+P_IN, M+P_PHPL, and Page 370 M+P_PIDP_T into a single FB. The primary loop can be tracked. M+M_PIDP_T ■Position Type PID Control (Disable Tracking for primary loop/Disable Tracking from secondary loop)
  • Page 57 ■Ratio Control (Enable Tracking for primary loop) Function block symbol Processing details Reference M+M_R_T Performs ratio control combining the functions of M+P_IN, M+P_PHPL, M+P_R_T, and Page 396 M+M_R_T M+P_OUT2 into a single FB. The primary loop can be tracked. ■Ratio Control (Disable Tracking for primary loop) Function block symbol Processing details Reference...
  • Page 58 ■Loop Selector (Enable Tracking for primary loop by CASIN_T1/_T2) Function block symbol Processing details Reference M+M_SEL_T2 Performs loop selector combining the functions of M+P_SEL_T2 into a single FB. The primary loop Page 420 of the input 1 and 2 is tracked, but tracking from the secondary loop is not performed. M+M_SEL_T2 ■Loop Selector (Enable Tracking from secondary loop to primary loop) Function block symbol...
  • Page 59 Status tag The following FBs perform reversible/irreversible operation and ON/OFF operation and operates as a timer and a counter. ■Motor Irreversible (2 Input/2 Output) Function block symbol Processing details Reference M+M_NREV Performs irreversible operation and controls a solenoid valve. Page 452 M+M_NREV ■Motor Reversible (2 Input/3 Output) Function block symbol Processing details...
  • Page 60 Alarm tag The following FBs perform alarm notification. ■Alarm Function block symbol Processing details Reference M+M_ALARM Displays the alarms for the input pins ALMIN1 to ALMIN8 to which TRUE is input on the "Alarm Page 482 List" window of the PX Developer monitor tool. M+M_ALARM ■64 Points Alarm Function block symbol...
  • Page 61 PART 3 GENERAL PROCESS FB This part consists of the following chapters. 4 ANALOG VALUE SELECTION AND AVERAGE VALUE 5 CORRECTION OPERATION 6 ARITHMETIC OPERATION 7 COMPARISON OPERATION 8 CONTROL OPERATION...
  • Page 62: Chapter 4 Analog Value Selection And Average Value

    ANALOG VALUE SELECTION AND AVERAGE VALUE The following FBs output the maximum, minimum, middle, average, and absolute values of input values. High Selector (M+P_HS(_E)) M+P_HS(_E) These FBs output the maximum value of input values (array). FBD/LD [Without EN/ENO] [With EN/ENO] M+P_HS M+P_HS_E OUT1...
  • Page 63 Processing details ■Operation processing These functions output the maximum value of the values input to the input variables IN[0] to IN[15] from the output variable OUT1. They set the bit corresponding to the input value selected as the maximum value from the input variables IN[0] to IN[NUM] specified by the input number NUM to 1 and output the bit from the output variable OUT2.
  • Page 64: Low Selector (m+p_ls(_e))

    Low Selector (M+P_LS(_E)) M+P_LS(_E) These FBs output the minimum value of input values (array). FBD/LD [Without EN/ENO] [With EN/ENO] M+P_LS_E M+P_LS OUT1 OUT2 OUT1 OUT2 ■Block diagram M+P_LS (_E) Execution condition Output status Minimum value OUT1 processing OUT2 Processing in the dashed part is only carried out in functions with EN/ENO pins. Setting data ■Input/output variable Variable...
  • Page 65 Processing details ■Operation processing These functions output the minimum value of the values input to the input variables IN[0] to IN[15] from the output variable OUT1. They set the bit corresponding to the input value selected as the minimum value from the input variables IN[0] to IN[NUM] specified by the input number NUM to 1 and output the bit from the output variable OUT2.
  • Page 66: Middle Value Selection (m+p_mid(_e))

    Middle Value Selection (M+P_MID(_E)) M+P_MID(_E) These FBs output the middle value of input values (array). FBD/LD [Without EN/ENO] [With EN/ENO] M+P_MID_E M+P_MID OUT1 OUT2 OUT1 OUT2 ■Block diagram M+P_MID (_E) Execution condition Output status Intermediate value OUT1 processing OUT2 Processing in the dashed part is only carried out in functions with EN/ENO pins. Setting data ■Input/output variable Variable...
  • Page 67 Processing details ■Operation processing These functions output the intermediate value of the values input to the input variables IN[0] to IN[15] from the output variable OUT1. • They rearrange the input values in order from the smallest one to the largest one, and output the intermediate value of the input values.
  • Page 68: Average Value (m+p_ave(_e))

    Average Value (M+P_AVE(_E)) M+P_AVE(_E) These FBs output the average value of input values (array). FBD/LD [Without EN/ENO] [With EN/ENO] M+P_AVE_E M+P_AVE OUT1 OUT1 ■Block diagram M+P_AVE(_E) Execution condition Output status Average value OUT1 processing Processing in the dashed part is only carried out in functions with EN/ENO pins. Setting data ■Input/output variable Variable...
  • Page 69 Processing details ■Operation processing These functions output the mean value of the values input to the input variables IN[0] to IN[15] from the output variable OUT1. OUT = (IN[0] + IN[1] + IN[2] + ... + IN[15])  NUM IN[0] to IN[15]: Input value, OUT1: Output value, NUM: Input number ■Operation result •...
  • Page 70: Absolute Value (m+p_abs(_e))

    Absolute Value (M+P_ABS(_E)) M+P_ABS(_E) These FBs output the absolute value of an input value. FBD/LD [Without EN/ENO] [With EN/ENO] M+P_ABS M+P_ABS_E OUT1 OUT2 OUT1 OUT2 ■Block diagram M+P_ABS(_E) Execution condition Output status Absolute value OUT1 processing OUT2 Processing in the dashed part is only carried out in functions with EN/ENO pins. Setting data ■Input/output variable Variable...
  • Page 71 Processing details ■Operation processing These functions output the absolute value of a value input to the input variable IN from the output variable OUT1, and output the sign determination of the input value from the output variable OUT2. • Processing of OUT1 Input value (IN) Processing Output value (OUT1)
  • Page 72: Chapter 5 Correction Operation

    CORRECTION OPERATION The following FBs perform operation processing such as broken line correction, standard filter, engineering value conversion, temperature/pressure correction, and summation. To set initial values of public variables of the general process FB arranged on a user-defined tag FB in "FB Property"...
  • Page 73 Processing details ■Broken line correction processing This function block outputs values according to a function generator pattern that consists of SN (the number of break points = 0 to 48) from the output variable OUT_ with regard to the values input from the input variable IN. When the number of break points is 5 (SN = 5) Output(OUT_) Input(IN)
  • Page 74 Operation error Error code Description (SD0) 3400H An invalid operation (such as division by zero) is performed. 3402H Input data (IN) or operation constant (X1_ to X48_, Y1_ to Y48_) is a subnormal number or NaN (not a number). 3403H An overflow has occurred.
  • Page 75: Inverse Function Generator (m+p_ifg)

    Inverse Function Generator (M+P_IFG) M+P_IFG This FB outputs (OUT_) values according to the function generator pattern that consists of SN break points with regard to the input (IN). FBD/LD M+P_IFG OUT_ ■Block diagram M+P_IFG OUT_ Inverse broken line correction processing Setting data ■Input/output variable Variable...
  • Page 76 Processing details ■Inverse broken line correction This function block outputs values according to a function generator pattern that consists of SN (the number of break points = 0 to 48) from the output variable OUT_ with regard to the values input from the input variable IN. When the number of break points is 4 (SN = 4) Input(IN) Output(OUT_)
  • Page 77 Operation error Error code Description (SD0) 3400H An invalid operation (such as division by zero) is performed. 3402H Input data (IN) or operation constant (X1_ to X48_, Y1_ to Y48_) is a subnormal number or NaN (not a number). 3403H An overflow has occurred.
  • Page 78: Standard Filter (moving Average) (m+p_flt)

    Standard Filter (moving average) (M+P_FLT) M+P_FLT This FB outputs (OUT_) the average value of SN pieces of data of the input (IN) collected the at data collection interval ST. FBD/LD M+P_FLT OUT_ ■Block diagram M+P_FLT OUT_ Standard filter processing Setting data ■Input/output variable Variable Description...
  • Page 79 Processing details ■Standard filter processing This function block outputs the mean value of SN pieces of data of the input (IN) value collected at the data collection interval ST_ (s) from the output variable OUT_. This function block performs the following operations. IN1+IN2+IN3+ OUT_= SN: Sampling count, IN1 to IN...
  • Page 80: Engineering Value Conversion (m+p_eng)

    Engineering Value Conversion (M+P_ENG) M+P_ENG This FB converts a value (%) of the input (IN) in percentage into an engineering value such as temperature and pressure and outputs (OUT_) the result. FBD/LD M+P_ENG OUT_ ■Block diagram M+P_ENG OUT_ Engineering value conversion processing Setting data ■Input/output variable...
  • Page 81 Processing details ■Engineering value conversion processing This function block converts a value in percentage (%) input from the input variable IN into an engineering value, such as temperature and pressure and outputs the result from the output variable OUT_. Output(OUT_) Input(IN) 100(%) OUT_= {(RH-RL)×...
  • Page 82: Engineering Value Inverse Conversion (m+p_ieng)

    Engineering Value Inverse Conversion (M+P_IENG) M+P_IENG This FB converts an input engineering value (IN) such as temperature and pressure into a value in percentage (%) and outputs (OUT_) the result. FBD/LD M+P_IENG OUT_ ■Block diagram M+P_IENG OUT_ Inverse engineering value conversion processing Setting data ■Input/output variable...
  • Page 83 Processing details ■Engineering value inverse conversion processing This function block converts an engineering value input from the input variable IN, such as temperature and pressure, into a value in percentage (%) and outputs the result from the output variable OUT_. Output(OUT_) 100(%) Input(IN)
  • Page 84: Temperature/pressure Correction (m+p_tpc)

    Temperature/Pressure Correction (M+P_TPC) M+P_TPC This FB executes temperature/pressure correction (or either of temperature correction or pressure correction) to the input (IN) of the differential pressure (%) and outputs (OUT_) the result. FBD/LD M+P_TPC OUT_ PVTEMP PVPRES ■Block diagram M+P_TPC OUT_ Temperature/pressure correction PVTEMP...
  • Page 85 Processing details ■Temperature/pressure correction processing This function block executes temperature/pressure correction (or either of temperature correction or pressure correction) to the differential pressure (%) value input from the input variable IN and outputs the result from the output variable OUT_. Temperature/pressure correction selection Output (OUT_) Temperature correction...
  • Page 86: Summation (m+p_sum)

    Summation (M+P_SUM) M+P_SUM When the integration start signal (START) is TRUE, this function block performs integration processing to the input (IN) and outputs (OUT_) the result. Use M+P_SUM2_ to reduce the influence of information loss in the single-precision floating-point operation. (...
  • Page 87 Processing details ■Analog integration processing When the integration start signal (START) is TRUE, this function block performs integration processing to the value input from the input variable IN and outputs the result from the output variable OUT_. Integration start signal (START) Input (IN) Output (OUT_) FALSE (Stop)
  • Page 88: Summation (internal Integer Integration) (m+p_sum2_)

    Summation (Internal Integer Integration) (M+P_SUM2_) M+P_SUM2_ When the integration start signal (START) is TRUE, this function block performs integration processing to the input (IN) and outputs the result. Internal integration for the integral part is executed with signed 32-bit integers. FBD/LD M+P_SUM2_ START...
  • Page 89 Variable Description Recommended range Initial value Set by Data type name CYCLIC TRUE: When the integrated value exceeds the high limit, TRUE, FALSE TRUE User BOOL the value returns to 0. FALSE: When the integrated value exceeds the high limit, the high limit value is held. *1 The surplus to the integration high limit is added.
  • Page 90 ■Timing chart The following shows the timing chart for the integration start signal (START), integrated value, integration reset signal, and integration high limit. When CYCLIC is FALSE START HILMT Integration value When CYCLIC is TRUE When initial value is 0 Surplus to the high limit RST_ Operation error...
  • Page 91: Range Conversion (m+p_range_)

    Range Conversion (M+P_RANGE_) M+P_RANGE_ This FB executes range conversion to the input (IN) and outputs (OUT_) the result. FBD/LD M+P_RANGE_ OUT_ ■Block diagram M+P_RANGE_ OUT_ Engineering value conversion processing Setting data ■Input/output variable Variable Description Recommended Type Data type name range Input -999999 to 999999...
  • Page 92 Processing details ■Engineering value conversion processing This function block executes range conversion to the value input from the input variable IN and outputs the result from the output variable OUT_. Output (OUT_) OUT_NMAX OUT_NMIN Input (IN) IN_NMIN IN_NMAX (OUT_NMAX-OUT_NMIN)×(IN-IN_NMIN) OUT_= + OUT_NMIN IN_NMAX-IN_NMIN OUT_NMAX: Output High Limit Alarm...
  • Page 93: Chapter 6 Arithmetic Operation

    ARITHMETIC OPERATION The following FBs perform operation processing such as addition/subtraction, multiplication/division, and square root. To set initial values of public variables of the general process FB arranged on a user-defined tag FB in "FB Property" of the engineering tool, refer to the following. ...
  • Page 94 Processing details ■Addition processing This function block multiplies the values input from the input variables IN1 to IN5 with coefficients and bias and outputs the result from the output variable OUT_. Input (IN) Output (OUT_) OUT_ = (K_1  IN1) + (K_2  IN2) + (K_3  IN3) + (K_4  IN4) + (K_5  IN5) + B_ IN1 to IN5 IN1 to IN5: Input value, K_1 to K_5: Coefficient, B_: Bias When no value to be input exists for any of the inputs (IN1 to IN5), input 0.
  • Page 95: Subtraction (with Coefficient) (m+p_sub)

    Subtraction (with coefficient) (M+P_SUB) M+P_SUB This FB subtracts values with coefficients and bias from the values of the inputs (IN1 to IN5) and outputs (OUT_) the result. FBD/LD M+P_SUB OUT_ ■Block diagram M+P_SUB OUT_ Subtraction processing (with coefficient and bias) Setting data ■Input/output variable Variable...
  • Page 96 Processing details ■Subtraction processing This function block subtracts values with coefficients and bias from the values input from the input variables IN1 to IN5 and outputs the result from the output variable OUT_. Input (IN) Output (OUT_) OUT_ = (K_1  IN1) - (K_2  IN2) - (K_3  IN3) - (K_4  IN4) - (K_5  IN5) + B_ IN1 to IN5 IN1 to IN5: Input, K_1 to K_5: Coefficient, B_: Bias When no value to be input exists for any of the inputs (IN1 to IN5), input 0.
  • Page 97: Multiplication (with Coefficient) (m+p_mul)

    Multiplication (with coefficient) (M+P_MUL) M+P_MUL This FB multiplies the values of the inputs (IN1 to IN5) with coefficients and bias and outputs (OUT_) the result. FBD/LD M+P_MUL OUT_ ■Block diagram M+P_MUL OUT_ Multiplication operation (with coefficient and bias) Setting data ■Input/output variable Variable Description...
  • Page 98 Processing details ■Multiplication processing This function block multiplies the values input from the input variables IN1 to IN5 with coefficients and bias and outputs the result from the output variable OUT_. Input (IN) Output (OUT_) OUT_ = (K_1  IN1)  (K_2  IN2)  (K_3  IN3)  (K_4  IN4)  (K_5  IN5) + B_ IN1 to IN5 IN1 to IN5: Input, K_1 to K_5: Coefficient, B_: Bias When no value to be input exists for any of the inputs (IN1 to IN5), input 1 to both the input and coefficient.
  • Page 99: Division (with Coefficient) (m+p_div)

    Division (with coefficient) (M+P_DIV) M+P_DIV This FB divides the values of the inputs (IN1, IN2) with coefficients and bias and outputs (OUT_) the result. FBD/LD M+P_DIV OUT_ ■Block diagram M+P_DIV OUT_ Division processing (with coefficient and bias) Setting data ■Input/output variable Variable Description Recommended...
  • Page 100 Processing details ■Division processing This function block divides the values input from the input variables IN1 to IN2 with coefficients and bias and outputs the result from the output variable OUT_. Input (IN2), coefficient (K_2), bias (B2_): Denominator Output (OUT_) K_2 ...
  • Page 101: Square Root (with Coefficient) (m+p_sqr)

    Square Root (with coefficient) (M+P_SQR) M+P_SQR This FB executes square root extraction with coefficients to the value of the input (IN) and outputs (OUT_) the result. FBD/LD M+P_SQR OUT_ ■Block diagram M+P_SQR OUT_ Square root processing (with coefficient) Setting data ■Input/output variable Variable Description...
  • Page 102 Processing details ■Square root processing This function block executes square root extraction with coefficients to the value input from the input variable IN and outputs the result from the output variable OUT_. Input (IN) Processi Output (OUT_)  Input(IN) Output(OUT_) Input (IN) Output low cut-off value (OLC) Output (OUT_)
  • Page 103: Chapter 7 Comparison Operation

    COMPARISON OPERATION The following FBs perform comparison operation (, >, =, <, ). To set initial values of public variables of the general process FB arranged on a user-defined tag FB in "FB Property" of the engineering tool, refer to the following. ...
  • Page 104 Processing details ■Comparison (>) processing This function block compares (>) the value input from the input variable IN1 with the value input from the input variable IN2 using a setting value and hysteresis and outputs the comparison result from the output variable B_. This function block always outputs values to the input variable IN1 from the output variable OUT_.
  • Page 105: Comparison (<) With Setting Value (m+p_lt)

    Comparison (<) with setting value (M+P_LT) M+P_LT This FB compares (<) the input 1 (IN1) with the input 2 (IN2) using a setting value and hysteresis and outputs the result to the comparison output (B_). This function block always outputs values to the input 1 (IN1) from the output (OUT_). FBD/LD M+P_LT OUT_...
  • Page 106 Processing details ■Comparison (<) processing This function block compares (<) the value input from the input variable IN1 with the value input from the input variable IN2 using a setting value and hysteresis and outputs the comparison result from the output variable B_. This function block always outputs values to the input variable IN1 from the output variable OUT_.
  • Page 107: Comparison (=) With Setting Value (m+p_eq)

    Comparison (=) with setting value (M+P_EQ) M+P_EQ This FB compares (=) the input 1 (IN1) with the input 2 (IN2) using a setting value and outputs the result to the comparison output (B_). This function block always outputs values to the input 1 (IN1) from the output (OUT_). FBD/LD M+P_EQ OUT_...
  • Page 108 Processing details ■Comparison (=) processing This function block compares (=) the value input from the input variable IN1 with the value input from the input variable IN2 using a setting value and outputs the comparison result from the output variable B_. This function block always outputs values to the input variable IN1 from the output variable OUT_.
  • Page 109: Comparison (>=) With Setting Value (m+p_ge)

    Comparison (>=) with setting value (M+P_GE) M+P_GE This FB compares () the input 1 (IN1) with the input 2 (IN2) using a setting value and hysteresis and outputs the result to the comparison output (B_). This function block always outputs values to the input 1 (IN1) from the output (OUT_). FBD/LD M+P_GE OUT_...
  • Page 110 Processing details ■Comparison () processing This function block compares () the value input from the input variable IN1 with the value input from the input variable IN2 using a setting value and hysteresis and outputs the comparison result from the output variable B_. This function block always outputs values to the input variable IN1 from the output variable OUT_.
  • Page 111: Comparison (<=) With Setting Value (m+p_le)

    Comparison (<=) with setting value (M+P_LE) M+P_LE This FB compares () the input 1 (IN1) with the input 2 (IN2) using a setting value and hysteresis and outputs the result to the comparison output (B_). This function block always outputs values to the input 1 (IN1) from the output (OUT_). FBD/LD M+P_LE OUT_...
  • Page 112 Processing details ■Comparison () processing This function block compares () the value input from the input variable IN1 with the value input from the input variable IN2 using a setting value and hysteresis and outputs the comparison result from the output variable B_. This function block always outputs values to the input variable IN1 from the output variable OUT_.
  • Page 113: Chapter 8 Control Operation

    CONTROL OPERATION The following FBs control operation of lead-lag, integration, derivative, high/low limiter, variation rate limiter, dead band, bumpless transfer, and analog memory. To set initial values of public variables of the general process FB arranged on a user-defined tag FB in "FB Property"...
  • Page 114 Processing details ■Lead-lag compensation processing When the operation signal (INVLD) is FALSE, this function block performs lead-lag compensation to the value input from the input variable IN and outputs the result from the output variable OUT_. Condition Input (IN) Lead-lag Output (OUT_) compensation Operation...
  • Page 115 Operation error Error code Description (SD0) 3400H An invalid operation (such as division by zero) is performed. 3402H Input data (INVLD, IN), output data (OUT_), or operation constant (T1_, T2_) is a subnormal number or NaN (not a number). 3403H An overflow has occurred.
  • Page 116: Integration (m+p_i)

    Integration (M+P_I) M+P_I When the operation signal (INVLD) is FALSE, this function block performs integral operation to the input (IN) and outputs (OUT_) the result. FBD/LD M+P_I INVLD OUT_ ■Block diagram M+P_I Operation signal OUT_ INVLD TRUE: Invalid FALSE: Valid Integral control action processing Setting data...
  • Page 117 Processing details ■Integral operation processing When the operation signal (INVLD) is FALSE, this function block performs integral operation to the value input from the input variable IN and outputs the result from the output variable OUT_. Condition Input (IN) Integral Output (OUT_) operation Operation...
  • Page 118 Operation error Error code Description (SD0) 3400H An invalid operation (such as division by zero) is performed. 3402H Input data (INVLD, IN), output data, or operation constant (T_, Ys) is a subnormal number or NaN (not a number). 3403H An overflow has occurred. 8 CONTROL OPERATION 8.2 Integration (M+P_I)
  • Page 119: Derivative (m+p_d)

    Derivative (M+P_D) M+P_D When the operation signal (INVLD) is FALSE, this function block performs derivative operation to the input (IN) and outputs (OUT_) the result. FBD/LD M+P_D INVLD OUT_ ■Block diagram M+P_D Operation signal OUT_ INVLD TRUE: Invalid FALSE: Valid Derivative action processing Setting data...
  • Page 120 Processing details ■Derivative operation processing When the operation signal (INVLD) is FALSE, this function block performs derivative operation to the value input from the input variable IN and outputs the result from the output variable OUT_. Condition Input (IN) Derivative Output (OUT_) operation Operation...
  • Page 121: Dead Time (m+p_ded)

    Dead Time (M+P_DED) M+P_DED When the operation signal (INVLD) is FALSE, this function block outputs (OUT_) the result with a delay by the dead time to the input (IN). FBD/LD M+P_DED INVLD OUT_ ■Block diagram M+P_DED Operation signal OUT_ INVLD TRUE: Invalid FALSE: Valid Dead time...
  • Page 122 Processing details ■Dead time processing When the operation signal (INVLD) is FALSE, this function block outputs the input value from the input variable IN with a delay by the dead time from the output variable OUT_. When the sampling count (SN) is 3 Input (IN) Output (OUT_) Output delays the Dead time=ST_×SN(s) for input...
  • Page 123 Operation error Error code Description (SD0) 3400H An invalid operation (such as division by zero) is performed. 3402H Input data (INVLD, IN) or operation constant (ST_, SN, Ys, OCHG) is a subnormal number or NaN (not a number). 3403H An overflow has occurred. 8 CONTROL OPERATION 8.4 Dead Time (M+P_DED)
  • Page 124: High/low Limiter (m+p_limt)

    High/Low Limiter (M+P_LIMT) M+P_LIMT This FB applies high/low limiters with hysteresis to the input (IN) and outputs (OUT_) the result. FBD/LD M+P_LIMT OUT_ ■Block diagram M+P_LIMT OUT_ High/low limiter processing Setting data ■Input/output variable Variable Description Recommended Type Data type name range Input...
  • Page 125 Processing details ■High/low limiter processing This function block applies high/low limiters with hysteresis to the value input from the input variable IN and outputs the result from the output variable OUT_. Input (IN) Input (IN) Output (OUT_) (broken line) Output(OUT_) (solid line) HILMT LOLMT...
  • Page 126 Operation error Error code Description (SD0) 3402H Input data (IN) or operation constant (HILMT, LOLMT, HS1, or HS2) is a subnormal number or NaN (not a number). 3403H An overflow has occurred. 3405H The high limit hysteresis (HS1) is less than 0 or low limit hysteresis (HS2) is less than 0. The low limit value (LOLMT) is greater than high limit value (HILMT).
  • Page 127: Variation Rate Limiter 1 (m+p_vlmt1)

    Variation Rate Limiter 1 (M+P_VLMT1) M+P_VLMT1 This FB limits the variation speed to the input (IN) and outputs (OUT_) the result. FBD/LD M+P_VLMT1 OUT_ V1LMT V2LMT ■Block diagram M+P_VLMT1 OUT_ Variation rate limiter processing 1 V1LMT V2LMT Setting data ■Input/output variable Variable Description Recommended...
  • Page 128 Processing details ■Variation rate limiter 1 processing This function block limits the variation speed to the value input from the input variable IN and outputs the result from the output variable OUT_. • Positive direction • Negative direction Input (IN_) Input (IN) Output (OUT_)
  • Page 129 Operation error Error code Description (SD0) 3402H Input data (IN) or operation constant (V1_, V2_, HS1, HS2) is a subnormal number or NaN (not a number). 3403H An overflow has occurred. 3405H The positive direction hysteresis (HS1) is less than 0 or negative direction hysteresis (HS2) is less than 0. 8 CONTROL OPERATION 8.6 Variation Rate Limiter 1 (M+P_VLMT1)
  • Page 130: Variation Rate Limiter 2 (m+p_vlmt2)

    Variation Rate Limiter 2 (M+P_VLMT2) M+P_VLMT2 This FB limits the output variation speed to the input (IN) and outputs (OUT_) the result. FBD/LD M+P_VLMT2 OUT_ V1LMT V2LMT ■Block diagram M+P_VLMT2 OUT_ Variation rate limiter processing 2 V1LMT V2LMT Setting data ■Input/output variable Variable Description...
  • Page 131 Processing details ■Variation rate limiter 2 processing This function block limits the variation speed to the value input from the input variable IN and outputs the result from the output variable OUT_. Input (IN) Output (OUT_) When positive direction limit value is over, output (OUT_) holds the previous value.
  • Page 132 Operation error Error code Description (SD0) 3402H Input data (IN) or operation constant (V1_, V2_, HS1, HS2) is a subnormal number or NaN (not a number). 3403H An overflow has occurred. 3405H The positive direction hysteresis (HS1) is less than 0 or negative direction hysteresis (HS2) is less than 0. 8 CONTROL OPERATION 8.7 Variation Rate Limiter 2 (M+P_VLMT2)
  • Page 133: Dead Band (m+p_dbnd)

    Dead Band (M+P_DBND) M+P_DBND This FB sets a dead band to the input (IN) and outputs (OUT_) the result. FBD/LD M+P_DBND OUT_ DBND ■Block diagram M+P_DBND OUT_ Dead band processing DBND Setting data ■Input/output variable Variable Description Recommended Type Data type name range Input...
  • Page 134 Processing details ■Dead band processing This function block sets a dead band for the value input from the input variable IN and outputs the result from the output variable OUT_. Output (OUT_) Within the dead band range D1_+D2_ OUT_= Input (IN) TRUE (within the dead band range)
  • Page 135: Bump-less Transfer (m+p_bump)

    Bump-less Transfer (M+P_BUMP) M+P_BUMP This FB changes the output (OUT_) from the output control value CTRLV to the output setting value SETV smoothly when the mode (MODE) is changed from FALSE (MANUAL) to TRUE (AUTO). FBD/LD M+P_BUMP MODE OUT_ SETV CTRLV ■Block diagram M+P_BUMP...
  • Page 136 Processing details ■Bumpless transfer processing This function block changes the values output from the output variable OUT_ from the output control value CTRLV to the output setting value SETV smoothly when the input variable MODE (mode switching) changes from FALSE (MANUAL) to TRUE (AUTO).
  • Page 137: Analog Memory (m+p_amr)

    8.10 Analog Memory (M+P_AMR) M+P_AMR This FB increases or decreases the output (OUT_) at a fixed rate. FBD/LD M+P_AMR MODE OUT_ INC_ DEC_ INCV DECV SETV ■Block diagram M+P_AMR MODE OUT_ Analog memory processing INC_ DEC_ INCV DECV SETV Setting data ■Input/output variable Variable Description...
  • Page 138 Processing details ■Analog memory processing This function block increases or decreases values at a fixed rate and outputs the result from the output variable OUT_. Output (OUT_) Output addition value (INCV)/s Output subtraction value (DECV)/s Output high value (d1_) Output setting value (SETV) Output low value (d2_) TRUE (AUTO mode) Mode switching (Mode)
  • Page 139: Points Time Proportional Output (m+p_duty_8pt_)

    8.11 8 Points Time Proportional Output (M+P_DUTY_8PT_) M+P_DUTY_8PT_ This FB performs output ON time conversion for input values and outputs the result in bits. This FB also adjusts the phase of output cycles automatically to suppress overlapping of output (for example, peak current). FBD/LD M+P_DUTY_8PT_ LINKIN...
  • Page 140 Processing details ■Output ON time conversion/Output phase processing This function block captures an input value (MVn) every control output cycle (CTDUTY) and outputs a duty manipulated value (MVBn) to the input value. At the same time, this function block adjusts the phase of output cycles automatically to suppress peak current. Item Description Duty manipulated value (MVBn) ON time = ON time execution cycle count ...
  • Page 141 • Changing nine or more bit ON/OFF duty output phases If multiple P_DUTY_8PT_ function blocks are connected, nine or more bit ON/OFF duty output phases can be changed. When connecting multiple P_DUTY_8PT_ function blocks, connect LINKOUT of the preceding FB with LINKIN of the following FB, set PRIMARY of the preceding FB to TRUE, and PRIMARY of the following FB to FALSE.
  • Page 142 Operation error Error code Description (SD0) 3400H An invalid operation (such as division by zero) is performed. 3402H Input data (MV0 to MV7) or operation constant is a subnormal number or NaN (not a number). 3403H An overflow has occurred. Program example •...
  • Page 143 • When multiple M+P_DUTY_8PT_ function blocks are connected (when nine or more bit ON/OFF duty output phases is changed) Target FB Variable type/pin Variable name Description Setting/connection method Start FB Public variable PRIMARY Lead FB specified TRUE Input pin LINKIN Link input Not connected Output pin...
  • Page 144 MEMO 8 CONTROL OPERATION 8.11 8 Points Time Proportional Output (M+P_DUTY_8PT_)
  • Page 145 PART 4 TAG ACCESS FB This part consists of the following chapters. 9 I/O CONTROL 10 LOOP CONTROL OPERATION 11 TAG SPECIAL...
  • Page 146: Chapter 9 I/o Control

    I/O CONTROL The following FBs perform I/O processing including analog input/output, pulse integration, and batch counter. To set initial values of public variables of the tag access FB arranged on a user-defined tag FB in "FB Property" of the engineering tool, refer to the following. ...
  • Page 147 Setting data ■Input/output variable Variable Description Recommended Type Data type name range Input from a module NMIN to NMAX Input variable REAL PV output 0 to 100[%] Output variable REAL ■Public variable (operation constant) Variable Description Recommended Initial value Set by Data type name range...
  • Page 148 Processing details ■Range check This function block checks the range of an input value. High limit range error (HH) High limit range error reset (H_) Input value Low limit range error reset (L_) Low limit range error (LL) Sensor error Sensor error occur occur Sensor error reset...
  • Page 149 ■Engineering value inverse conversion This function block converts an engineering value input from the A/D converter module into a value in percentage (%). Inverse engineering value conversion result (T2) 100(%) 0(%) Input value (T1) NMIN NMAX T1-NMIN T2 (%)= ×100(%) NMAX-NMIN T1: Input value T2: Engineering value inverse conversion processing result (%)
  • Page 150 ■Processing operation : Performed, : Not performed Control mode Processing operation Range check Input limiter Engineering Digital filter Alarm value inverse conversion      MAN, CMV, AUT, CAS, CSV, CASDR *1 An alarm whose corresponding bit is TRUE (Valid) in the disable alarm detection (INH) is not detected. Operation error Error code Description...
  • Page 151: Output Processing-1 With Mode Switching (with Input Addition) (m+p_out1)

    Output Processing-1 with Mode Switching (With Input Addition) (M+P_OUT1) M+P_OUT1 This FB performs input addition, variation rate & high/low limiter, reset windup, and output conversion processing to an input value (MV) and outputs a manipulated value. (with integral and anti-reset windup processing) FBD/LD M+P_OUT1 CASOUT...
  • Page 152 Setting data ■Input/output variable Variable Description Recommended Type Data type name range MV input -999999 to 999999[%] Input variable REAL Output to a module NMIN to NMAX Output variable REAL CASOUT Cascade output 0 to 100[%] Output variable REAL CASOUT_T Cascade output (With tracking) (Indirect address) 0 to 100[%] Output variable...
  • Page 153 Processing details ■Input addition A tentative manipulated value (T) is calculated from the input value (MV). (MV is output from an FB (such as M+P_PID) before this FB every control cycle (CT).) ΔMV input (MVD) ΔMV3 ΔMV1 ΔMV2 MVP=T ΔMV3 ΔMV1 ΔMV2 Execution cycle (ΔT)
  • Page 154 • High/low limiter High/low limiter High/low limiter processing result Variation rate limiter processing value processing value Output high limit (MH) Output low limit (ML) Execution cycle (ΔT) Control cycle (CT) Control cycle (CT) Control cycle (CT) Condition High/low limiter processing Alarm (ALM) result Output low limit (MLA)
  • Page 155 ■Disable alarm detection This function block sets whether to detect alarms (ALM) or not in the variation rate & high/low limiter processing. Item Disable alarm detection processing Disable alarm detection by setting tag data If the following bits in the disable alarm detection (INH) are TRUE, no DMLA, MHA, or MLA of the alarm (ALM) will be detected.
  • Page 156: Output Processing-2 With Mode Switching (without Input Addition) (m+p_out2)

    Output Processing-2 with Mode Switching (Without Input Addition) (M+P_OUT2) M+P_OUT2 This FB performs variation rate & high/low limiter processing and output conversion processing to an input value (MV), and outputs a manipulated value. (without integral and anti-reset windup processing) FBD/LD M+P_OUT2 CASOUT Applicable tag type...
  • Page 157 Setting data ■Input/output variable Variable Description Recommended Type Data type name range MV input 0 to 100[%] Input variable REAL Output to a module NMIN to NMAX Output variable REAL CASOUT Cascade output 0 to 100[%] Output variable REAL ■Public variable (operation constant) Variable Description Recommended...
  • Page 158 Processing details ■Variation rate & high/low limiter This function block checks the variation rate and high/low limits of the input value. • Variation rate limiter Variation rate limiter Tentative MV value (T) Variation rate limiter processing result processing value Execution cycle (ΔT) Control cycle (CT) Control cycle (CT) Control cycle (CT)
  • Page 159 ■Disable alarm detection This function block sets whether to detect alarms (ALM) or not in the variation rate & high/low limiter processing. Item Disable alarm detection processing Disable alarm detection by setting tag data If the following bits in the disable alarm detection (INH) are TRUE, no DMLA, MHA, or MLA of the alarm (ALM) will be detected.
  • Page 160: Output Processing-3 With Mode Switching (with Input Addition And Compensation)

    Output Processing-3 with Mode Switching (With Input Addition and Compensation) (M+P_OUT3_) M+P_OUT3_ This FB performs input addition, MV compensation, preset MV, MV hold, MV tracking, variation rate & high/low limiter, reset windup, tight shut/full open, MV reverse, and output conversion processing to an input value (MV) and outputs a manipulated value.
  • Page 161 Setting data ■Input/output variable Variable Description Recommended Type Data type name range MV input -999999 to 999999[%] Input variable REAL CASDR_MVIN MV input for cascade direct 0 to 100[%] Input variable REAL Output to a module NMIN to NMAX Output variable REAL CASOUT Cascade output...
  • Page 162 ■Public variable (others) • Simulation processing Variable Description Recommended Initial value Set by Data type name range SIMOUT Simulation Output NMIN to NMAX System REAL • MV compensation processing Variable Description Recommended Initial value Set by Data type name range MV_CMPOUT Output for MV compensation -999999 to 999999[%]...
  • Page 163 ■Cascade direct This function block sets the tentative manipulated value as a manipulated value of the primary loop. Condition Processing result Control mode = CASCADE DIRECT (CAS = TRUE and CASDR = TRUE) CASDR_MVIN Control mode ≠ CASCADE DIRECT (CASDR = FALSE) CASDR_MVIN: MV input for cascade direct, T: Tentative manipulated value ■MV tracking This function block switches a manipulated value with a tracking input.
  • Page 164 ■Variation rate & high/low limiter This function block checks the variation rate and high/low limits of the input value. • Variation rate limiter Variation rate limiter Tentative MV value (T) Variation rate limiter processing result processing value Execution cycle (ΔT) Control cycle (CT) Control cycle (CT) Control cycle (CT)
  • Page 165 ■Reset windup This function block performs processing without considering the value of ARW_EX_EN. As countermeasures against reset windup, this function block sets a manipulated value to the high/low limit value when the manipulated value has exceeded the limit value, and quickly responds to a control target when deviation is inverted. Condition Countermeasure processing against reset windup ΔT...
  • Page 166 ■Output conversion This function block performs output conversion processing. Converted output (MVN) NMAX NMIN Manipulated variable (MV) (-10(%)) 0(%) 100(%) (110(%)) MVREV Converted output (MVN)={(NMAX-NMIN)× }+NMIN NMAX: Output conversion high limit value NMIN: Output conversion low limit value MVREV: Output after processing of MV reverse for internal operation (%) MVN: Output conversion output value ■Disable alarm detection This function block sets whether to detect alarms (ALM) or not in the variation rate &...
  • Page 167 ■Processing operation : Performed, : Not performed Control mode Processing operation Loop stop Mode Input addition Cascade Preset MV MV hold determination compensation direct        MAN, CMV AUT, CAS, CSV     ...
  • Page 168: Manual Output (m+p_mout)

    Manual Output (M+P_MOUT) M+P_MOUT This FB reads a manipulated value (MV) of tag data, performs output conversion processing, and outputs a manipulated value. FBD/LD M+P_MOUT Applicable tag type MOUT, MWM Control mode      ■Block diagram M+P_MOUT (MV output) Output conversion...
  • Page 169 Setting data ■Input/output variable Variable Description Recommended Type Data type name range Output to a module NMIN to NMAX Output variable REAL ■Public variable (operation constant) Variable Description Recommended Initial value Set by Data type name range NMAX Output Conversion High Limit -999999 to 999999 100.0 User...
  • Page 170: Time Proportioning Output (m+p_duty)

    Time Proportioning Output (M+P_DUTY) M+P_DUTY This function block performs input addition, variation rate & high/low limiter, reset windup, output ON time conversion, and output conversion processing to an input value (MV) and outputs the value as bits. FBD/LD M+P_DUTY CASOUT CASOUT_T Applicable tag type BPI, IPD, PID, SPI, 2PID...
  • Page 171 Setting data ■Input/output variable Variable Description Recommended Type Data type name range MV (%) input -999999 to 999999 Input variable REAL Bit ON/OFF duty output to a module TRUE, FALSE Output BOOL variable CASOUT Cascade output 0 to 100[%] Output REAL variable CASOUT_T...
  • Page 172 ■Variation rate & high/low limiter This function block checks the variation rate and high/low limits of the input value. • Variation rate limiter Variation rate limiter Tentative MV value (T) Variation rate limiter processing result processing value Execution cycle (ΔT) Control cycle (CT) Control cycle (CT) Control cycle (CT)
  • Page 173 ■Output ON time conversion/output conversion This function block outputs a duty manipulated value (MVB) to a manipulated value (MV). Item Description Duty manipulated value (MVB) ON time = ON time execution cycle count  T Duty manipulated value (MVB) ON time The ON time execution cycle count is defined as the following value with the first digit after the decimal point rounded off.
  • Page 174 ■Processing operation : Performed, : Not performed Control mode Processing operation Input Variation rate & Reset windup Output ON time Output Alarm processing high/low limiter conversion conversion       MAN, CMV      ...
  • Page 175: Pulse Integrator (m+p_psum)

    Pulse Integrator (M+P_PSUM) M+P_PSUM When the integration start signal (RUN) is TRUE, this function block performs input value increment operation, integrated value calculation, and output conversion processing to a count value (CIN) and outputs the result. FBD/LD M+P_PSUM SUMOUT1 HOLD SUMOUT2 STPRS RS_START...
  • Page 176 Setting data ■Input/output variable Variable Description Recommended range Type Data type name Integration start signal TRUE: Execute Input variable BOOL FALSE: Stop HOLD Integration pause signal TRUE: Execute Input variable BOOL FALSE: Stop STPRS Reset signal after integration pause TRUE: Execute Input variable BOOL FALSE: Stop...
  • Page 177 ■Integrated value calculation This function block performs the following processing to the input value increment calculated by input value increment operation processing. Integration start signal (RUN) Integration pause signal (HOLD) Integrated value calculation processing result (T2: Integrated value (integral part), T3: Integrated value (decimal part)) FALSE FALSE...
  • Page 178: Batch Counter (m+p_bc)

    Batch Counter (M+P_BC) M+P_BC This function block compares the input (CIN) with the estimated value 1 and estimated value 2, and outputs a completion signal when the input reaches an estimated value. At this time, this function block performs the high limit check, variation rate check, and output conversion processing to the input (CIN).
  • Page 179 Processing details ■High limit check This function block performs the high limit check to the input (CIN). Condition Alarm (ALM) Input high limit (PHA) CIN > PH_ TRUE (Detected) Others FALSE (Reset) CIN: Count value, PH_: PV high limit alarm value ■Variation rate check During the variation rate alarm check time (CTIM), this function block compares input changes with the variation rate alarm value (DPL) every execution cycle T and checks variation rate alarms.
  • Page 180 ■Output conversion This function block performs output conversion processing. Input value Setting value 1 (SV1) completed output COMP1 Setting value 2 (SV2) completed output COMP2 Condition Setting value 1 (SV1) completed output Setting value 2 (SV2) completed output (COMP1) (COMP2) CIN <...
  • Page 181: Manual Setter (m+p_mset_)

    Manual Setter (M+P_MSET_) M+P_MSET_ This function block performs SV variation rate & high/low limiter processing, sets the result as the set value (current) (SVC) of tag data, and outputs the value (SVC). FBD/LD M+P_MSET_ CASOUT CASIN CASOUT_T Applicable tag type Control mode ...
  • Page 182 ■Public variable (operation constant) Variable Description Recommended Initial value Set by Data type name range DVLS Large Deviation Alarm Hysteresis 0 to 100 User REAL Reverse action and direct action 0: Reverse action User 1: Direct action SVPTN_B0 Setting Value (SV) Used TRUE: Not used TRUE User...
  • Page 183 ■SV variation rate & high/low limiter This function block checks the variation rate and high/low limits to the set value every control cycle (CT). • Variation rate limiter The SV variation rate high limit value input in percentage is converted into an engineering value, and the processing will be performed.
  • Page 184 ■Processing operation : Performed, : Not performed Control mode Processing operation Deviation check Engineering value Alarm SV variation rate & high/ conversion low limiter     MAN, AUT     CAS, CSV *1 The processing of this tag access FB is performed every control cycle (CT). *2 An alarm whose corresponding bit is TRUE (Valid) in the disable alarm detection (INH) is not detected.
  • Page 185: Chapter 10 Loop Control Operation

    LOOP CONTROL OPERATION The following FBs perform loop control processing including ratio control, various PID controls, two-position (on/off) control, three-position (on/off) control, program setter, and loop selector. To set initial values of public variables of the tag access FB arranged on a user-defined tag FB in "FB Property"...
  • Page 186 Setting data ■Input/output variable Variable Description Recommended Type Data type name range PV input (unit: %) 0 to 100[%] Input variable REAL CASIN_T Cascade SV input (unit: %) (With tracking) (Indirect 0 to 100[%] Input variable DWORD address) MV output (unit: %) -999999 to 999999[%] Output variable REAL...
  • Page 187 ■Ratio calculation This function block performs ratio calculation processing. Setting value (SPR) Current ratio (Rn) SPR, DR: Variation rate limit (DR) Control cycle Control cycle Control cycle Control cycle Control cycle Control cycle Control cycle (CT) (CT) (CT) (CT) (CT) (CT) (CT) Rn-RMIN...
  • Page 188 Operation error Error code Description (SD0) 3400H An invalid operation (such as division by zero) is performed. 3402H Input data (PVP) or operation constant (TRK, SVPTN_B0, SVPTN_B1) is a subnormal number or NaN (not a number). 3403H An overflow has occurred. 3405H The control cycle (CT) setting is less than 0.
  • Page 189: Ratio Control (disable Tracking For Primary Loop) (m+p_r)

    10.2 Ratio Control (Disable Tracking for primary loop) (M+P_R) M+P_R This FB controls two sets of control amount at a constant ratio and outputs the result (MV). FBD/LD M+P_R CASIN Applicable tag type Control mode      ■Block diagram M+P_R Ratio...
  • Page 190 Processing details ■Engineering value conversion This function block performs engineering value conversion processing. RMAX-RMIN SPR= ×CASIN+RMIN SPR: Setting value (%) RMIN: Ratio low limit (%) RMAX: Ratio high limit (%) CASIN: Setting value (%) from primary loop ■Variation rate limiter This function block performs variation rate limiter processing.
  • Page 191 ■Loop stop processing When the stop alarm (SPA) of the alarm (ALM) is TRUE, this function block performs the following processing. • Outputs (MVP) are held. • The control mode is automatically switched to MANUAL. ■Processing operation : Performed, : Not performed Control mode Processing operation Ratio calculation...
  • Page 192: Velocity Type Pid Control (enable Tracking For Primary Loop) (m+p_pid_t)

    10.3 Velocity Type PID Control (Enable Tracking for primary loop) (M+P_PID_T) M+P_PID_T This FB performs PID operations using process variable differential, inexact differential, and velocity type, and outputs the result (MV). The primary loop can be tracked. FBD/LD M+P_PID_T CASIN_T Applicable tag type Control mode ...
  • Page 193 ■Public variable (operation constant) Variable Description Recommended Initial value Set by Data type name range Derivative Gain 0 to 9999 User REAL DVLS Large Deviation Alarm Hysteresis 0 to 100 User REAL Reverse Action/Direct Action 0: Reverse action User 1: Direct action Tracking Flag 0: Not executed User...
  • Page 194 ■PID operation • Gain (Kp) is calculated as follows. Kp = K  PROPORTIONAL K: Output gain, PROPORTIONAL: Gain • Output gain (K) is calculated as follows. Condition Output gain (K) • K value to the deviation (DV) of when the gap width (GW) is equal to 0 K = 1 DV’...
  • Page 195 • PID operations are conducted as follows. Item Direct action Reverse action Deviation (DVn) DVn = PVn - SVn DVn = SVn - PVn Output variation (MV) ΔMV = Kp × { (DV - DV × DV Derivative Proportional Gain Integral (imperfect derivative) The following shows a proportional term, integral term, and derivative term of MV.
  • Page 196 ■Inverse engineering value conversion This function block converts the setting value (SV) of an engineering value into a setting value (SV) in percentage (%). SV(%)= ×(SV-RL) RH-RL RH: Engineering value high limit, RL: Engineering value low limit, SV: Setting value ■Tracking processing The following table shows whether tracking processing to the input variable CASIN_T is performed or not.
  • Page 197 Operation error Error code Description (SD0) 3400H An invalid operation (such as division by zero) is performed. 3402H Input data (PVP), operation constant (MTD, DVLS, PN, TRK, SVPTN_B0, SVPTN_B1), or tag data is a subnormal number or NaN (not a number).
  • Page 198: Velocity Type Pid Control (disable Tracking For Primary Loop) (m+p_pid)

    10.4 Velocity Type PID Control (Disable Tracking for primary loop) (M+P_PID) M+P_PID This FB performs PID operations using process variable differential, inexact differential, and velocity type, and outputs the result (MV). FBD/LD M+P_PID CASIN Applicable tag type Control mode  ...
  • Page 199 ■Public variable (operation constant) Variable Description Recommended Initial value Set by Data type name range Derivative Gain 0 to 9999 User REAL DVLS Large Deviation Alarm Hysteresis 0 to 100 User REAL Reverse Action/Direct Action 0: Reverse action User 1: Direct action SVPTN_B0 Setting Value (SV) Used TRUE: Not used...
  • Page 200 ■PID operation • Gain (Kp) is calculated as follows. Kp = K  PROPORTIONAL K: Output gain, PROPORTIONAL: Gain • Output gain (K) is calculated as follows. Condition Output gain (K) • K value to the deviation (DV) of when the gap width (GW) is equal to 0 K = 1 DV’...
  • Page 201 • PID operations are conducted as follows. Item Direct action Reverse action Deviation (DVn) DVn = PVn - SVn DVn = SVn - PVn Output variation (MV) ΔMV = Kp × { (DV - DV × DV Derivative Proportional Gain Integral (imperfect derivative) The following shows a proportional term, integral term, and derivative term of MV.
  • Page 202 ■Inverse engineering value conversion This function block converts the setting value (SV) of an engineering value into a setting value (SV) in percentage (%). SV(%)= ×(SV-RL) RH-RL RH: Engineering value high limit, RL: Engineering value low limit, SV: Setting value ■Disable alarm detection This function block sets whether to detect alarms (ALM) or not in the deviation check.
  • Page 203 Operation error Error code Description (SD0) 3400H An invalid operation (such as division by zero) is performed. 3402H Input data (PVP), operation constant (MTD, DVLS, PN, SVPTN_B0), or tag data is a subnormal number or NaN (not a number). 3403H An overflow has occurred.
  • Page 204: 2-degree-of-freedom Pid Control (enable Tracking For Primary Loop) (m+p_2pid_t)

    10.5 2-degree-of-freedom PID Control (Enable Tracking for primary loop) (M+P_2PID_T) M+P_2PID_T This FB optimizes the responsive performance (tracking performance) in a setting value change and control performance to a disturbance, and outputs the result (MV). The primary loop can be tracked. FBD/LD M+P_2PID_T CASIN_T...
  • Page 205 ■Public variable (operation constant) Variable Description Recommended Initial value Set by Data type name range Derivative Gain 0 to 9999 User REAL DVLS Large Deviation Alarm Hysteresis 0 to 100 User REAL Reverse Action/Direct Action 0: Reverse action User 1: Direct action Tracking Flag 0: Not executed User...
  • Page 206 • Output gain (K) is calculated as follows. Condition Output gain (K) • K value to the deviation (DV) of when the gap width (GW) is equal to 0 K = 1 DV’ (Positive) DV (Positive) DV (Negative) DV’(Negative) When |DV|  GW •...
  • Page 207 • PID operations are conducted as follows. Item Direct action Reverse action Deviation (DVn) DVn = PVn - SVn DVn = SVn - PVn Output variation (MV) ΔMV = Kp × { (1 - α) × (DV - DV × DV Gain Proportional Integral...
  • Page 208 ■Engineering value conversion This function block converts the setting value (%) from the primary loop in the CAS or CSV mode into an engineering value. RH-RL × Setting value (%) from the primary loop + RL RH: Engineering value high limit, RL: Engineering value low limit, SV: Setting value ■Inverse engineering value conversion This function block converts the setting value (SV) of an engineering value into a setting value (SV) in percentage (%).
  • Page 209 ■Processing operation : Performed, : Not performed Control mode Processing operation Deviation Two-degree- Engineering Inverse Tracking Alarm Auto tuning check of-freedom value engineering PID operation conversion value conversion        MAN, CMV, AUT   ...
  • Page 210: 2-degree-of-freedom Pid Control (disable Tracking For Primary Loop) (m+p_2pid)

    10.6 2-degree-of-freedom PID Control (Disable Tracking for primary loop) (M+P_2PID) M+P_2PID This FB optimizes the responsive performance (tracking performance) in a setting value change and control performance to a disturbance, and outputs the result (MV). FBD/LD M+P_2PID CASIN Applicable tag type 2PID Control mode ...
  • Page 211 ■Public variable (operation constant) Variable Description Recommended Initial value Set by Data type name range Derivative Gain 0 to 9999 User REAL DVLS Large Deviation Alarm Hysteresis 0 to 100 User REAL Reverse Action/Direct Action 0: Reverse action User 1: Direct action SVPTN_B0 Setting Value (SV) Used TRUE: Not used...
  • Page 212 ■Two-degree-of-freedom PID operation • Gain (Kp) is calculated as follows. Kp = K  PROPORTIONAL K: Output gain, PROPORTIONAL: Gain • Output gain (K) is calculated as follows. Condition Output gain (K) • K value to the deviation (DV) of when the gap width (GW) is equal to 0 K = 1 DV’...
  • Page 213 • PID operations are conducted as follows. Item Direct action Reverse action Deviation (DVn) DVn = PVn - SVn DVn = SVn - PVn Output variation (MV) ΔMV = Kp × { (1 - α) × (DV - DV × DV Gain Proportional Integral...
  • Page 214 ■Engineering value conversion This function block converts the setting value (%) from the primary loop in the CAS or CSV mode into an engineering value. RH-RL × Setting value (%) from the primary loop + RL RH: Engineering value high limit, RL: Engineering value low limit, SV: Setting value ■Inverse engineering value conversion This function block converts the setting value (SV) of an engineering value into a setting value (SV) in percentage (%).
  • Page 215 Operation error Error code Description (SD0) 3400H An invalid operation (such as division by zero) is performed. 3402H Input data (PVP), operation constant (MTD, DVLS, PN, SVPTN_B0), or tag data is a subnormal number or NaN (not a number). 3403H An overflow has occurred.
  • Page 216: 2-degree-of-freedom Advanced Pid Control (enable Tracking For Primary Loop) (m+p_2pidh_t_)

    10.7 2-degree-of-freedom Advanced PID Control (Enable Tracking for primary loop) (M+P_2PIDH_T_) M+P_2PIDH_T_ This FB optimizes the responsive performance (tracking performance) in a setting value change and control performance to a disturbance, and outputs the result (MV). It also performs two-degree-of-freedom PID operation, PV tracking, integration stop, derivative stop, and SV variation rate &...
  • Page 217 Setting data ■Input/output variable Variable name Description Recommended Type Data type range PV input (unit: %) 0 to 100[%] Input variable REAL CASIN_T Cascade SV input (unit: %) (With tracking) (Indirect 0 to 100[%] Input variable DWORD address)  MV output (unit: %) -999999 to 999999[%] Output variable REAL...
  • Page 218 ■Two-degree-of-freedom PID operation • Gain (Kp) is calculated as follows. Kp = K  PROPORTIONAL K: Output gain, PROPORTIONAL: Gain • Output gain (K) is calculated as follows. Condition Output gain (K) • K value to the deviation (DV) of when the gap width (GW) is equal to 0 K = 1 DV’...
  • Page 219 • PID operations are conducted as follows. Item Direct action Reverse action Deviation (DVn) DVn = PVn - SVn DVn = SVn - PVn Output variation (MV) ΔMV = Kp × { (1 - α) × (DV - DV × DV Gain Proportional Integral...
  • Page 220 ■Engineering value conversion This function block converts the setting value (%) from the primary loop in the CAS or CSV mode into an engineering value. RH-RL × Setting value (%) from the primary loop + RL RH: Engineering value high limit, RL: Engineering value low limit, SV: Setting value (target) ■Inverse engineering value conversion This function block converts SVC of an engineering value into SVC in percentage (%).
  • Page 221 ■PV tracking function To avoid sudden changes of the manipulated value at mode switching (from MAN to AUT), this function block matches the setting value (target) with the process variable when the control mode is MAN or CMV and keeps the value. Condition PV tracking processing When PVTRK_EN is TRUE and the control mode is "MAN (CMV)"...
  • Page 222 ■Derivative stop This function block stops a derivative element operation. Condition Processing DSTP = TRUE The derivative element operation is stopped. DSTP = FALSE Non-processing ■Integration stop at MV variation rate limiter occurrence This function block stops an integral element operation when an MV variation rate limiter alarm occurs. Condition Processing When LMT_ISTP is TRUE and a DMLA alarm has...
  • Page 223 Operation error Error code Description (SD0) 3400H An invalid operation (such as division by zero) is performed. 3402H Input data, operation constant, tag data, or operation result within a function block is a subnormal number or NaN (not a number). 3403H An overflow has occurred.
  • Page 224: 2-degree-of-freedom Advanced Pid Control (disable Tracking For Primary Loop) (m+p_2pidh_)

    10.8 2-degree-of-freedom Advanced PID Control (Disable Tracking for primary loop) (M+P_2PIDH_) M+P_2PIDH_ This FB optimizes the responsive performance (tracking performance) in a setting value change and control performance to a disturbance, and outputs the result (MV). It also performs two-degree-of-freedom PID operation, PV tracking, integration stop, derivative stop, and SV variation rate &...
  • Page 225 Setting data ■Input/output variable Variable name Description Recommended Type Data type range PV input (unit: %) 0 to 100[%] Input variable REAL CASIN Cascade SV input (unit: %) 0 to 100[%] Input variable REAL MV output (unit: %) -999999 to 999999[%] Output variable REAL CASDR_MVOUT...
  • Page 226 ■Two-degree-of-freedom PID operation • Gain (Kp) is calculated as follows. Kp = K  PROPORTIONAL K: Output gain, PROPORTIONAL: Gain • Output gain (K) is calculated as follows. Condition Output gain (K) • K value to the deviation (DV) of when the gap width (GW) is equal to 0 K = 1 DV’...
  • Page 227 • PID operations are conducted as follows. Item Direct action Reverse action Deviation (DVn) DVn = PVn - SVn DVn = SVn - PVn Output variation (MV) ΔMV = Kp × { (1 - α) × (DV - DV × DV Gain Proportional Integral...
  • Page 228 ■Engineering value conversion This function block converts the setting value (%) from the primary loop in the CAS or CSV mode into an engineering value. RH-RL × Setting value (%) from the primary loop + RL RH: Engineering value high limit, RL: Engineering value low limit, SV: Setting value (target) ■Inverse engineering value conversion This function block converts SVC of an engineering value into SVC in percentage (%).
  • Page 229 ■SV variation rate & high/low limiter This function block checks the variation rate and high/low limits to the setting value every control cycle (CT). • Variation rate limiter When the control mode is AUT, CAS, or CSV The SV variation rate high limit value input in percentage is converted into an engineering value, and the processing will be performed.
  • Page 230 ■Loop stop processing When the stop alarm (SPA) of the alarm (ALM) or the tag stop (TSTP) of the monitor output buffer (DOM) is TRUE, this function block performs the following processing. • MV is cleared to 0. • The control mode is automatically switched to MANUAL. •...
  • Page 231: Position Type Pid Control (enable Tracking For Primary Loop/disable Tracking From Secondary Loop)

    10.9 Position Type PID Control (Enable Tracking for primary loop/Disable Tracking from secondary loop) (M+P_PIDP_T) M+P_PIDP_T This FB performs PID operations using process variable differential, inexact differential, and position type, and outputs the result. The primary loop can be tracked. FBD/LD M+P_PIDP_T CASIN_T CASOUT...
  • Page 232 ■Public variable (operation constant) Variable Description Recommended Initial value Set by Data type name range Derivative Gain 0 to 9999 User REAL DVLS Large Deviation Alarm Hysteresis 0 to 100 User REAL Reverse Action/Direct Action 0: Reverse action User 1: Direct action Tracking Flag 0: Not executed User...
  • Page 233 ■PIDP operation • Gain (Kp) is calculated as follows. Kp = K  PROPORTIONAL K: Output gain, PROPORTIONAL: Gain • Output gain (K) is calculated as follows. Condition Output gain (K) • K value to the deviation (DV) of when the gap width (GW) is equal to 0 K = 1 DV’...
  • Page 234 • PIDP operations are conducted as follows. Item Direct action Reverse action Deviation (DVn) DVn = PVn - SVn DVn = SVn - PVn Output variation (MV) MV = Kp × { DV Derivative Integral Proportional Gain ×DV Md×Td Md×Td ×...
  • Page 235 ■Inverse engineering value conversion This function block converts the setting value (SV) of an engineering value into a setting value (SV) in percentage (%). ×(SV-RL) SV(%)= RH-RL RH: Engineering value high limit, RL: Engineering value low limit, SV: Setting value ■Tracking processing The following table shows whether tracking processing to the input variable CASIN_T is performed or not.
  • Page 236 ■Output conversion This function block performs output conversion processing. Converted output (MVN) NMAX NMIN Manipulated variable (MV) (-10(%)) 0(%) 100(%) (110(%)) Converted output (MVN) ={(NMAX-NMIN)× }+NMIN NMAX: Output conversion high limit value NMIN: Output conversion low limit MV: Manipulated value (%) MVN: Output conversion output value ■Disable alarm detection This function sets whether to detect alarms (ALM) or not in the deviation check and variation rate &...
  • Page 237 Operation error Error code Description (SD0) 3400H An invalid operation (such as division by zero) is performed. 3402H Input data (PVP), operation constant (MTD, DVLS, PN, TRK, SVPTN_B0, SVPTN_B1, NMAX, NMIN), or tag data is a subnormal number or NaN (not a number). 3403H An overflow has occurred.
  • Page 238: Position Type Pid Control (disable Tracking For Primary Loop/disable Tracking From Secondary Loop)

    10.10 Position Type PID Control (Disable Tracking for primary loop/Disable Tracking from secondary loop) (M+P_PIDP) M+P_PIDP This FB performs PID operations using process variable differential, inexact differential, and position type, and outputs the result. FBD/LD M+P_PIDP CASIN CASOUT Applicable tag type PIDP Control mode ...
  • Page 239 ■Public variable (operation constant) Variable Description Recommended Initial value Set by Data type name range Derivative Gain 0 to 9999 User REAL DVLS Large Deviation Alarm Hysteresis 0 to 100 User REAL Reverse Action/Direct Action 0: Reverse action User 1: Direct action SVPTN_B0 Setting Value (SV) Used TRUE: Not used...
  • Page 240 ■PIDP operation • Gain (Kp) is calculated as follows. Kp = K  PROPORTIONAL K: Output gain, PROPORTIONAL: Gain • Output gain (K) is calculated as follows. Condition Output gain (K) • K value to the deviation (DV) of when the gap width (GW) is equal to 0 K = 1 DV’...
  • Page 241 • PIDP operations are conducted as follows. Item Direct action Reverse action Deviation (DVn) DVn = PVn - SVn DVn = SVn - PVn Output variation (MV) MV = Kp × { DV Derivative Integral Proportional Gain ×DV Md×Td Md×Td ×...
  • Page 242 ■Engineering value conversion This function block converts the setting value (%) from the primary loop in the CAS or CSV mode into an engineering value. RH-RL × Setting value (%) from the primary loop + RL RH: Engineering value high limit, RL: Engineering value low limit, SV: Setting value ■Inverse engineering value conversion This function block converts the setting value (SV) of an engineering value into a setting value (SV) in percentage (%).
  • Page 243 ■Output conversion This function block performs output conversion processing. Converted output (MVN) NMAX NMIN Manipulated variable (MV) (-10(%)) 0(%) 100(%) (110(%)) Converted output (MVN) ={(NMAX-NMIN)× }+NMIN NMAX: Output conversion high limit value NMIN: Output conversion low limit MV: Manipulated value (%) MVN: Output conversion output value ■Disable alarm detection This function sets whether to detect alarms (ALM) or not in the deviation check and variation rate &...
  • Page 244 Operation error Error code Description (SD0) 3400H An invalid operation (such as division by zero) is performed. 3402H Input data (PVP), operation constant (MTD, DVLS, PN, SVPTN_B0, NMAX, NMIN), or tag data is a subnormal number or NaN (not a number).
  • Page 245: Position Type Pid Control (enable Tracking For Primary Loop/enable Tracking From Secondary Loop)

    10.11 Position Type PID Control (Enable Tracking for primary loop/Enable Tracking from secondary loop) (M+P_PIDP_EX_T_) M+P_PIDP_EX_T_ This FB performs PID operations using process variable differential, inexact differential, and position type, and outputs the result. It also allows manipulated value bumpless switching and tracking from the primary loop and secondary loop at a change of control mode.
  • Page 246 Setting data ■Input/output variable Variable Description Recommended Type Data type name range PV input (unit: %) 0 to 100[%] Input variable REAL CASIN_T Cascade SV input (unit: %) (With tracking) (Indirect address) 0 to 100[%] Input variable DWORD MV output NMIN to NMAX Output variable REAL...
  • Page 247 Processing details ■Deviation check This function block performs deviation check processing. DVLS DVLS -DVL DVLA DVLA DVLA DVLA occur reset occur reset Condition Alarm (ALM) Large deviation (DVLA) DVL < |DV| TRUE (Detected) |DV|  (DVL - DVLS) FALSE (Reset) DV: Deviation (%), DVLS: Large deviation alarm hysteresis (%), DVL: Deviation limit value (%) ■PIDP operation •...
  • Page 248 • Deviation for PIDP operation (DV') is calculated as follows. Condition Deviation for PIDP operation (DV') DV' = -(GG  GW) + (DV + GW) DV < -GW |DV|  GW DV' = GG  DV DV' = GG  GW + (DV - GW) DV >...
  • Page 249 The integral term and derivative term are as follows under the following conditions. Item Condition Processing Derivative When Td = 0 Bn = 0 term When the control mode is MAN When the control mode is CMV Integral When Ti = 0 term ×DV When an MH error has occurred and the following expression is...
  • Page 250 ■Inverse engineering value conversion This function block converts the setting value (SV) of an engineering value into a setting value (SV) in percentage (%). SV(%)= ×(SV-RL) RH-RL RH: Engineering value high limit, RL: Engineering value low limit, SV: Setting value ■Tracking processing The following table shows whether tracking processing to the input variable CASIN_T is performed or not.
  • Page 251 ■Output conversion This function block performs output conversion processing. Converted output (MVN) NMAX NMIN Manipulated variable (MV) (-10(%)) 0(%) 100(%) (110(%)) Converted output (MVN) ={(NMAX-NMIN)× }+NMIN NMAX: Output conversion high limit value NMIN: Output conversion low limit MV: Manipulated value (%) MVN: Output conversion output value ■Disable alarm detection This function sets whether to detect alarms (ALM) or not in the deviation check and variation rate &...
  • Page 252 Operation error Error code Description (SD0) 3400H An invalid operation (such as division by zero) is performed. 3402H Input data (PVP), operation constant (MTD, DVLS, PN, TRK, SVPTN_B0, SVPTN_B1, NMAX, NMIN), or tag data is a subnormal number or NaN (not a number). 3403H An overflow has occurred.
  • Page 253: Position Type Pid Control (disable Tracking For Primary Loop/enable Tracking From Secondary Loop)

    10.12 Position Type PID Control (Disable Tracking for primary loop/Enable Tracking from secondary loop) (M+P_PIDP_EX_) M+P_PIDP_EX_ This FB performs PID operations using process variable differential, inexact differential, and position type, and outputs the result. It also allows manipulated value bumpless switching and tracking from the secondary loop at a change of control mode. FBD/LD M+P_PIDP_EX_ CASIN...
  • Page 254 Setting data ■Input/output variable Variable Description Recommended Type Data type name range PV input (unit: %) 0 to 100[%] Input variable REAL CASIN Cascade SV input (unit: %) 0 to 100[%] Input variable REAL MV output NMIN to NMAX Output variable REAL CASOUT Cascade MV output (unit: %)
  • Page 255 Processing details ■Deviation check This function block performs deviation check processing. DVLS DVLS -DVL DVLA DVLA DVLA DVLA occur reset occur reset Condition Alarm (ALM) Large deviation (DVLA) DVL < |DV| TRUE (Detected) |DV|  (DVL - DVLS) FALSE (Reset) DV: Deviation (%), DVLS: Large deviation alarm hysteresis (%), DVL: Deviation limit value (%) ■PIDP operation •...
  • Page 256 • Deviation for PIDP operation (DV') is calculated as follows. Condition Deviation for PIDP operation (DV') DV' = -(GG  GW) + (DV + GW) DV < -GW |DV|  GW DV' = GG  DV DV' = GG  GW + (DV - GW) DV >...
  • Page 257 The integral term and derivative term are as follows under the following conditions. Item Condition Processing Derivative When Td = 0 Bn = 0 term When the control mode is MAN When the control mode is CMV Integral When Ti = 0 term ×DV When an MH error has occurred and the following expression is...
  • Page 258 ■Variation rate & high/low limiter This function block checks the variation rate and high/low limits of the input value. • Variation rate limiter Variation rate limiter Tentative MV value (T) Variation rate limiter processing result processing value Execution cycle (ΔT) Control cycle (CT) Control cycle (CT) Control cycle (CT)
  • Page 259 ■Output conversion This function block performs output conversion processing. Converted output (MVN) NMAX NMIN Manipulated variable (MV) (-10(%)) 0(%) 100(%) (110(%)) Converted output (MVN) ={(NMAX-NMIN)× }+NMIN NMAX: Output conversion high limit value NMIN: Output conversion low limit MV: Manipulated value (%) MVN: Output conversion output value ■Disable alarm detection This function sets whether to detect alarms (ALM) or not in the deviation check and variation rate &...
  • Page 260 Operation error Error code Description (SD0) 3400H An invalid operation (such as division by zero) is performed. 3402H Input data (PVP), operation constant (MTD, DVLS, PN, SVPTN_B0, NMAX, NMIN), or tag data is a subnormal number or NaN (not a number).
  • Page 261: Sample Pi Control (enable Tracking For Primary Loop) (m+p_spi_t)

    10.13 Sample PI Control (Enable Tracking for primary loop) (M+P_SPI_T) M+P_SPI_T This FB performs PI control during operating time (ST_) and outputs the result (MV). It holds the output (MV = 0) during hold time (HT). The primary loop can be tracked. FBD/LD M+P_SPI_T CASIN_T...
  • Page 262 ■Public variable (operation constant) Variable Description Recommended Initial value Set by Data type name range DVLS Large Deviation Alarm Hysteresis 0 to 100 User REAL Reverse Action/Direct Action 0: Reverse action User 1: Direct action Tracking Flag 0: Not executed User 1: Executed SVPTN_B...
  • Page 263 ■SPI operation • Gain (Kp) is calculated as follows. Kp = K  PROPORTIONAL K: Output gain, PROPORTIONAL: Gain • Output gain (K) is calculated as follows. Condition Output gain (K) • K value to the deviation (DV) of when the gap width (GW) is equal to 0 K = 1 DV’...
  • Page 264 • SPI operations are conducted as follows. Output variation (ΔMV) +ΔMV -ΔMV STHT STHT STHT STHT STHT ST_: Operating time, STHT: Sample time, HT: Hold time (=STHT-ST_) Item Direct action Reverse action Deviation (DVn) DVn = PVn - SVn DVn = SVn - PVn Output variation MV during operating time (ST_) ΔT ΔMV = Kp ×...
  • Page 265 ■Engineering value conversion This function block converts the setting value (%) from the primary loop in the CAS or CSV mode into an engineering value. RH-RL × Setting value (%) from the primary loop + RL RH: Engineering value high limit, RL: Engineering value low limit, SV: Setting value ■Inverse engineering value conversion This function block converts the setting value (SV) of an engineering value into a setting value (SV) in percentage (%).
  • Page 266 Operation error Error code Description (SD0) 3400H An invalid operation (such as division by zero) is performed. 3402H Input data (PVP), operation constant (DVLS, PN, TRK, SVPTN_B0, SVPTN_B1), or tag data is a subnormal number or NaN (not a number). 3403H An overflow has occurred.
  • Page 267: Sample Pi Control (disable Tracking For Primary Loop) (m+p_spi)

    10.14 Sample PI Control (Disable Tracking for primary loop) (M+P_SPI) M+P_SPI This FB performs PI control during operating time (ST_) and outputs the result (MV). It holds the output (MV = 0) during hold time (HT). FBD/LD M+P_SPI CASIN Applicable tag type Control mode ...
  • Page 268 ■Public variable (operation constant) Variable Description Recommended Initial value Set by Data type name range DVLS Large Deviation Alarm Hysteresis 0 to 100 User REAL Reverse Action/Direct Action 0: Reverse action User 1: Direct action SVPTN_B0 Setting Value (SV) Used TRUE: Not used TRUE User...
  • Page 269 ■SPI operation • Gain (Kp) is calculated as follows. Kp = K  PROPORTIONAL K: Output gain, PROPORTIONAL: Gain • Output gain (K) is calculated as follows. Condition Output gain (K) • K value to the deviation (DV) of when the gap width (GW) is equal to 0 K = 1 DV’...
  • Page 270 • SPI operations are conducted as follows. Output variation (ΔMV) +ΔMV -ΔMV STHT STHT STHT STHT STHT ST_: Operating time, STHT: Sample period, HT: Hold time (STHT-ST_) Item Direct action Reverse action Deviation (DVn) DVn = PVn - SVn DVn = SVn - PVn Output variation MV during operating time (ST_) ΔT ΔMV = Kp ×...
  • Page 271 ■Inverse engineering value conversion This function block converts the setting value (SV) of an engineering value into a setting value (SV) in percentage (%). ×(SV-RL) SV(%)= RH-RL RH: Engineering value high limit, RL: Engineering value low limit, SV: Setting value ■Disable alarm detection This function block sets whether to detect alarms (ALM) or not in the deviation check.
  • Page 272: I-pd Control (enable Tracking For Primary Loop) (m+p_ipd_t)

    10.15 I-PD Control (Enable Tracking for primary loop) (M+P_IPD_T) M+P_IPD_T This function block controls values to slowly respond to a change of the setting value without any shocks and outputs the result (MV) by using the process variable in the proportional term and derivative term. The primary loop can be tracked. FBD/LD M+P_IPD_T CASIN_T...
  • Page 273 ■Public variable (operation constant) Variable Description Recommended range Initial value Set by Data type name Derivative Gain 0 to 9999 User REAL DVLS Large Deviation Alarm Hysteresis 0 to 100 User REAL Reverse Action/Direct Action 0: Reverse action User 1: Direct action Tracking Flag 0: Not executed User...
  • Page 274 ■IPD operation • Gain (Kp) is calculated as follows. Kp = K  PROPORTIONAL K: Output gain, PROPORTIONAL: Gain • Output gain (K) is calculated as follows. Condition Output gain (K) • K value to the deviation (DV) of when the gap width (GW) is equal to 0 K = 1 DV’...
  • Page 275 • IPD operations are conducted as follows. Item Direct action Reverse action Deviation (DVn) DVn = PVn - SVn DVn = SVn - PVn Output variation (MV) ΔMV = Kp × { × DV + (PV - PV ) + B ΔMV = Kp ×...
  • Page 276 ■Engineering value conversion This function block converts the setting value (%) from the primary loop in the CAS or CSV mode into an engineering value. RH-RL × Setting value (%) from the primary loop + RL RH: Engineering value high limit, RL: Engineering value low limit, SV: Setting value ■Inverse engineering value conversion This function block converts the setting value (SV) of an engineering value into a setting value (SV) in percentage (%).
  • Page 277 Operation error Error code Description (SD0) 3400H An invalid operation (such as division by zero) is performed. 3402H Input data (PVP), operation constant (MTD, DVLS, PN, TRK, SVPTN_B0, SVPTN_B1), or tag data is a subnormal number or NaN (not a number).
  • Page 278: I-pd Control (disable Tracking For Primary Loop) (m+p_ipd)

    10.16 I-PD Control (Disable Tracking for primary loop) (M+P_IPD) M+P_IPD This function block controls values to slowly respond to a change of the setting value without any shocks and outputs the result (MV) by using the process variable in the proportional term and derivative term. FBD/LD M+P_IPD CASIN...
  • Page 279 ■Public variable (operation constant) Variable Description Recommended range Initial value Set by Data type name Derivative Gain 0 to 9999 User REAL DVLS Large Deviation Alarm Hysteresis 0 to 100 User REAL Reverse Action/Direct Action 0: Reverse action User 1: Direct action SVPTN_B0 Setting Value (SV) Used TRUE: Not used...
  • Page 280 ■IPD operation • Gain (Kp) is calculated as follows. Kp = K  PROPORTIONAL K: Output gain, PROPORTIONAL: Gain • Output gain (K) is calculated as follows. Condition Output gain (K) • K value to the deviation (DV) of when the gap width (GW) is equal to 0 K = 1 DV’...
  • Page 281 • IPD operations are conducted as follows. Item Direct action Reverse action Deviation (DVn) DVn = PVn - SVn DVn = SVn - PVn Output variation (MV) ΔMV = Kp × { × DV + (PV - PV ) + B ΔMV = Kp ×...
  • Page 282 ■Engineering value conversion This function block converts the setting value (%) from the primary loop in the CAS or CSV mode into an engineering value. RH-RL × Setting value (%) from the primary loop + RL RH: Engineering value high limit, RL: Engineering value low limit, SV: Setting value ■Inverse engineering value conversion This function block converts the setting value (SV) of an engineering value into a setting value (SV) in percentage (%).
  • Page 283: Blend Pi Control (enable Tracking For Primary Loop) (m+p_bpi_t)

    10.17 Blend PI Control (Enable Tracking for primary loop) (M+P_BPI_T) M+P_BPI_T This FB is used when the control amount vibrates in a short period but is stable in a long period. The primary loop can be tracked. FBD/LD M+P_BPI_T CASIN_T Applicable tag type Control mode ...
  • Page 284 ■Public variable (operation constant) Variable Description Recommended range Initial Set by Data type name value DVLS Large Deviation Alarm Hysteresis 0 to 100 User REAL Reverse Action/Direct Action 0: Reverse action User 1: Direct action Tracking Flag 0: Not executed User 1: Executed SVPTN_B0...
  • Page 285 ■BPI operation • Gain (Kp) is calculated as follows. Kp = K  PROPORTIONAL K: Output gain, PROPORTIONAL: Gain • Output gain (K) is calculated as follows. Condition Output gain (K) • K value to the deviation (DV) of when the gap width (GW) is equal to 0 K = 1 DV’...
  • Page 286 • BPI operations are conducted as follows. Item Direct action Reverse action Deviation (DVn) DVn = PVn - SVn DVn = SVn - PVn Output variation (MV) ΔMV=Kp×ΔT×{DV ×ΣDV Kp: Gain Ti: Integral time T: Execution cycle CT: Control cycle DVi: DVn cumulative value DVn: Deviation PVn: Process variable...
  • Page 287 ■Disable alarm detection This function block sets whether to detect alarms (ALM) or not in the deviation check. Item Disable alarm detection processing Disable alarm detection by setting tag data If the following bits in the disable alarm detection (INH) are TRUE, no DVLA of the alarm (ALM) will be detected.
  • Page 288: Blend Pi Control (disable Tracking For Primary Loop) (m+p_bpi)

    10.18 Blend PI Control (Disable Tracking for primary loop) (M+P_BPI) M+P_BPI This FB is used when the control amount vibrates in a short period but is stable in a long period. FBD/LD M+P_BPI CASIN Applicable tag type Control mode  ...
  • Page 289 ■Public variable (operation constant) • Operation processing Variable Description Recommended range Initial Set by Data type name value DVLS Large Deviation Alarm Hysteresis 0 to 100 User REAL Reverse Action/Direct Action 0: Reverse action User 1: Direct action SVPTN_B0 Setting Value (SV) Used TRUE: Not used TRUE User...
  • Page 290 ■BPI operation • Gain (Kp) is calculated as follows. Kp = K  PROPORTIONAL K: Output gain, PROPORTIONAL: Gain • Output gain (K) is calculated as follows. Condition Output gain (K) • K value to the deviation (DV) of when the gap width (GW) is equal to 0 K = 1 DV’...
  • Page 291 • BPI operations are conducted as follows. Item Direct action Reverse action Deviation (DVn) DVn = PVn - SVn DVn = SVn - PVn Output variation (MV) ΔMV=Kp×ΔT×{DV ×ΣDV Kp: Gain Ti: Integral time T: Execution cycle CT: Control cycle DVi: DVn cumulative value DVn: Deviation PVn: Process variable...
  • Page 292 ■Disable alarm detection This function block sets whether to detect alarms (ALM) or not in the deviation check. Item Disable alarm detection processing Disable alarm detection by setting tag data If the following bits in the disable alarm detection (INH) are TRUE, no DVLA of the alarm (ALM) will be detected.
  • Page 293: High/low Limit Alarm Check (m+p_phpl)

    10.19 High/Low Limit Alarm Check (M+P_PHPL) M+P_PHPL This FB performs the high high limit/high limit/low limit/low low limit checks and the variation rate check to the input (PVPI) and outputs the results. If a value has exceeded an allowable range, an alarm occurs. FBD/LD M+P_PHPL PVPI...
  • Page 294 Processing details ■High high limit/high limit/low limit/low low limit check This function block performs the high/low limit checks to the input value. HH’ PH’ Input value PVPI(%) PL’ LL’ Occurred Input high high limit (HHA) Occurred Input high limit (PHA) Occurred Input low limit (PLA) Occurred...
  • Page 295 ■Variation rate check During the variation rate alarm check time (CTIM), this function block compares input changes with the variation rate alarm value (DPL) every execution cycle T and checks variation rate alarms. Alarm Alarm occurred Alarm recovered Variation rate Basing alarm value point...
  • Page 296 ■Processing operation : Performed, : Not performed Control mode Processing operation High high limit/high limit/low limit/low Variation rate Engineering Alarm low limit check check value conversion     MAN, CMV, AUT, CAS, CSV, CASDR *1 An alarm whose corresponding bit is TRUE (Valid) in the disable alarm detection (INH) is not detected. Operation error Error code Description...
  • Page 297: Position On/off Control (enable Tracking For Primary Loop) (m+p_onf2_t)

    10.20 2 position ON/OFF Control (Enable Tracking for primary loop) (M+P_ONF2_T) M+P_ONF2_T This FB performs two-position (on/off) control. The primary loop can be tracked. FBD/LD M+P_ONF2_T CASIN_T CASOUT Applicable tag type ONF2 Control mode      ■Block diagram M+P_ONF2_T correction Tracking...
  • Page 298 ■Public variable (operation constant) Variable Description Recommended range Initial value Set by Data type name Reverse Action/Direct Action 0: Reverse action User 1: Direct action Tracking Flag 0: Not executed User 1: Executed SVPTN_B0 Setting Value (SV) Used TRUE: Not used TRUE User BOOL...
  • Page 299 ■Engineering value conversion This function block converts the setting value (%) from the primary loop in the CAS or CSV mode into an engineering value. RH-RL × Setting value (%) from the primary loop + RL RH: Engineering value high limit, RL: Engineering value low limit, SV: Setting value ■Inverse engineering value conversion This function block converts the setting value (SV) of an engineering value into a setting value (SV) in percentage (%).
  • Page 300: Position On/off Control (disable Tracking For Primary Loop) (m+p_onf2)

    10.21 2 position ON/OFF Control (Disable Tracking for primary loop) (M+P_ONF2) M+P_ONF2 This FB performs two-position (on/off) control. FBD/LD M+P_ONF2 CASIN CASOUT Applicable tag type ONF2 Control mode      ■Block diagram M+P_ONF2 correction CASOUT AUT, CAS, Inverse MAN, Engineering...
  • Page 301 ■Public variable (operation constant) Variable Description Recommended Initial value Set by Data type name range Reverse Action/Direct Action 0: Reverse action User 1: Direct action SVPTN_B0 Setting Value (SV) Used TRUE: Not used TRUE User BOOL FALSE: Used ■Tag data For details on tag data that is read or written with this tag access FB, refer to the following.
  • Page 302 ■Engineering value conversion This function block converts the setting value (%) from the primary loop in the CAS or CSV mode into an engineering value. RH-RL ×Setting value (%) from primary loop + RL RH: Engineering value high limit, RL: Engineering value low limit, SV: Setting value ■Inverse engineering value conversion This function block converts the setting value (SV) of an engineering value into a setting value (SV) in percentage (%).
  • Page 303: Position On/off Control (enable Tracking For Primary Loop) (m+p_onf3_t)

    10.22 3 position ON/OFF Control (Enable Tracking for primary loop) (M+P_ONF3_T) M+P_ONF3_T This FB performs three-position (on/off) control. The primary loop can be tracked. FBD/LD M+P_ONF3_T CASIN_T CASOUT MVB1 MVB2 Applicable tag type ONF3 Control mode     ...
  • Page 304 ■Public variable (operation constant) Variable Description Recommended range Initial value Set by Data type name Reverse Action/Direct Action 0: Reverse action User 1: Direct action Tracking Flag 0: Not executed User 1: Executed SVPTN_B0 Setting Value (SV) Used TRUE: Not used TRUE User BOOL...
  • Page 305 ■Three-position (on/off) control This function block performs three-position (on/off) control in accordance with a manipulated value. Condition Three-position (on/off) output MVB1 MVB2 MV  75 (%) TRUE FALSE 25 (%)  MV < 75 (%) FALSE FALSE MV < 25 (%) FALSE TRUE MVB1, MVB2: Three-position (on/off) output, MV: MV output...
  • Page 306 Operation error Error code Description (SD0) 3400H An invalid operation (such as division by zero) is performed. 3402H Input data (PVP) or tag data is a subnormal number or NaN (not a number). 3403H An overflow has occurred. 3405H Hysteresis 0 (HS0) is less than 0. The control cycle (CT) setting is less than 0.
  • Page 307: Position On/off Control (disable Tracking For Primary Loop) (m+p_onf3)

    10.23 3 position ON/OFF Control (Disable Tracking for primary loop) (M+P_ONF3) M+P_ONF3 This FB performs three-position (on/off) control. FBD/LD M+P_ONF3 CASIN CASOUT MVB1 MVB2 Applicable tag type ONF3 Control mode      ■Block diagram M+P_ONF3 correction CASOUT AUT, CAS, Inverse...
  • Page 308 ■Public variable (operation constant) Variable Description Recommended Initial value Set by Data type name range Reverse Action/Direct Action 0: Reverse action User 1: Direct action SVPTN_B0 Setting Value (SV) Used TRUE: Not used TRUE User BOOL FALSE: Used ■Tag data For details on tag data that is read or written with this tag access FB, refer to the following.
  • Page 309 ■Engineering value conversion This function block converts the setting value (%) from the primary loop in the CAS or CSV mode into an engineering value. RH-RL ×Setting value (%) from primary loop + RL RH: Engineering value high limit, RL: Engineering value low limit, SV: Setting value ■Inverse engineering value conversion This function block converts the setting value (SV) of an engineering value into a setting value (SV) in percentage (%).
  • Page 310: Program Setter (m+p

    10.24 Program Setter (M+P_PGS) M+P_PGS This FB registers time width sets and setting value programs of up to 16 steps, and outputs a setting value corresponding to the progress time of each step with linear interpolation. ( Page 615 Program setter (PGS)) FBD/LD M+P_PGS CASOUT...
  • Page 311 Processing details ■PGS operation This function block outputs predetermined values as time proceeds. There are the following three operation types: hold type, return type, and cyclic type. Operation type Description Hold Outputs data while holding the value of setting time (SVn). Return Sets the set value (SV) to 0 and outputs the last value of the manipulated value (MV).
  • Page 312 ■High/low limit check This function block performs the high/low limit checks. Control mode Description MAN, CMV MVpgs • MVpgs is not fixed with MH or ML even though MVn is equal to or greater than MH or MVn is equal to or smaller than ML.
  • Page 313 ■Processing operation : Performed, : Not performed Control mode Processing operation PGS pattern operation High/low limit check Alarm , CMV       AUT, CAS, CSV When an operation constant "Number of points" (PTNO) is 0, the same processing as loop stop processing is performed and the control mode will be switched to MANUAL.
  • Page 314: Multi-point Program Setter (m+p_pgs2_)

    10.25 Multi-Point Program Setter (M+P_PGS2_) M+P_PGS2_ This FB registers time width sets and setting value programs of up to 32 steps, and outputs a setting value corresponding to the progress time of each step with linear interpolation. ( Page 616 Multi-point program setter (PGS2)) FBD/LD M+P_PGS2_ PVIN...
  • Page 315 Setting data ■Input/output variable Variable Description Recommended Type Data type name range PVIN Process input (Engineering value) -32768 to 32767 Input variable REAL ADVANCE Advance command TRUE, FALSE Input variable BOOL INITSTART Initial start command TRUE, FALSE Input variable BOOL LINKIN Link input (Indirect address) ...
  • Page 316 Processing details ■PV start At the start of a control (when the AUT mode is switched), this function block reduces a gap with process variable by referring to the process variable and adjusting the control start point. The adjusted control start point is set as the start point (current) (SV0C).
  • Page 317 • (4) PV start 2 (Start point searching: PVSTART = 2) The process variable and the PV start search start step (PVSTARTNO) are used to search a match point within the range specified by the PV start search end step (PVENDNO), and the control will start with the step number or time. When no match point is found, the closest point (maximum point or minimum point) is used.
  • Page 318 • (5) Starting a control when STC = 0 and T_  0 The control will start from the current time (T_) at STC = 1 using the start point (SV0) as the control start point. Setting value (SV) Time (T_) Starts from the current time (T_) at STC=1.
  • Page 319 ■PGS calculation In the AUT mode, this function block outputs setting values to the time predetermined by each step as time proceeds. There are the following three operation types: hold type, return type, and cyclic type. Time width sets and setting values of up to 32 steps can be registered in the format of (Tn_, SVn). The control start point depends on the PV start type (PVSTART) setting.
  • Page 320 • Processing of when the last step processing is completed In the AUT mode, the pattern end output (PTNEND) is turned on by one cycle and the following processing is performed after patterns are performed and the last step is ended. Item Operation Type Hold...
  • Page 321 ■Advance function In the AUT mode, this function block proceeds to the next step by forcibly ending the step in execution. This function is executed on the rising edge of the input variable ADVANCE command and proceeds the processing by one step.
  • Page 322 ■Disable alarm detection This function block sets whether to detect alarms (ALM) or not in the setting value high/low limiter processing. Item Disable alarm detection processing Disable alarm detection by setting tag data If the following bits in the disable alarm detection (INH) are TRUE, SVHA or SVLA of the alarm (ALM) will not be detected.
  • Page 323 ■Inverse engineering value conversion This function block converts the setting value (SV) into a value in percentage (%) within the engineering value range of RL to SV-RL CASOUT(%) = × 100 RH-RL CASOUT: Cascade output RH: Engineering value high limit RL: Engineering value low limit SV: Setting value CASOUT(%)
  • Page 324 ■Loop stop processing When the stop alarm (SPA) of the alarm (ALM) or the tag stop (TSTP) of the monitor output buffer (DOM) is TRUE, this function block performs loop stop processing. Loop stop processing result Input (PV) Executing Step No. Output (SV) Mode Alarm reset...
  • Page 325: Loop Selector (disable Tracking For Primary Loop) (m+p_sel)

    10.26 Loop Selector (Disable Tracking for primary loop) (M+P_SEL) M+P_SEL This FB selects an input value depending on the setting of the select signal and outputs the result. The input 1 and 2 are not tracked. FBD/LD M+P_SEL PVP1 PVP2 CASOUT SELECT Applicable tag type...
  • Page 326 ■Public variable (operation constant) Variable Description Recommended Initial value Set by Data type name range NMAX Output Conversion High Limit -999999 to 999999 100.0 User REAL NMIN Output Conversion Low Limit -999999 to 999999 User REAL ■Tag data For details on tag data that is read or written with this tag access FB, refer to the following. Page 544 SEL Processing details ■Input selection processing...
  • Page 327 ■Engineering value conversion This function block converts an input value (%) to an engineering value. RH-RL PVn= × PVPn(%)+RL RH: Engineering value high limit RL: Engineering value low limit PVPn: PV input value (%) PVn: PV1, PV2 ■Output conversion This function block performs output conversion processing. Converted output (MVN) NMAX NMIN...
  • Page 328: Loop Selector (enable Tracking For Primary Loop Only By Casin_t) (m+p_sel_t1)

    10.27 Loop Selector (Enable Tracking for primary loop only by CASIN_T) (M+P_SEL_T1) M+P_SEL_T1 This FB selects an input value depending on the setting of the select signal and outputs the result. The input 1 is not tracked. The primary loop of the input 2 is tracked, but tracking from the secondary loop is not performed. FBD/LD M+P_SEL_T1 CASIN_T...
  • Page 329 ■Public variable (operation constant) Variable Description Recommended Initial value Set by Data type name range NMAX Output Conversion High Limit -999999 to 999999 100.0 User REAL NMIN Output Conversion Low Limit -999999 to 999999 User REAL Tracking Flag 0: Not executed User 1: Executed SVPTN_B4...
  • Page 330 • High/low limiter High/low limiter processing result Variation rate limiter processing value High/low limiter processing value Output high limit (MH) Output low limit (ML) Execution cycle (ΔT) Condition High/low limiter processing Alarm (ALM) result Output Low Limit Alarm (MLA) Output High Limit Alarm (MHA) Variation rate limiter processing result FALSE (Reset)
  • Page 331 ■Loop stop processing When the stop alarm (SPA) of the alarm (ALM) is TRUE, this function block performs the following processing. • Outputs (MVN) are held. • The control mode is automatically switched to MANUAL. • When DMLA, MHA, or MLA of the alarm (ALM) has occurred, the DMLA, MHA, or MLA is reset. •...
  • Page 332: Loop Selector (enable Tracking For Primary Loop By Casin_t1/_t2) (m+p_sel_t2)

    10.28 Loop Selector (Enable Tracking for primary loop by CASIN_T1/_T2) (M+P_SEL_T2) M+P_SEL_T2 This FB selects an input value depending on the setting of the select signal and outputs the result. The primary loop of the input 1 and 2 is tracked, but tracking from the secondary loop is not performed. FBD/LD M+P_SEL_T2 CASIN_T1...
  • Page 333 ■Public variable (operation constant) Variable Description Recommended Initial value Set by Data type name range NMAX Output Conversion High Limit -999999 to 999999 100.0 User REAL NMIN Output Conversion Low Limit -999999 to 999999 User REAL Tracking Flag 0: Not executed User 1: Executed SVPTN_B1...
  • Page 334 • High/low limiter High/low limiter processing result Variation rate limiter processing value High/low limiter processing value Output high limit (MH) Output low limit (ML) Execution cycle (ΔT) Condition High/low limiter processing Alarm (ALM) result Output Low Limit Alarm (MLA) Output High Limit Alarm (MHA) Variation rate limiter processing result FALSE (Reset)
  • Page 335 ■Loop stop processing When the stop alarm (SPA) of the alarm (ALM) is TRUE, this function block performs the following processing. • Outputs (MVN) are held. • The control mode is automatically switched to MANUAL. • When DMLA, MHA, or MLA of the alarm (ALM) has occurred, the DMLA, MHA, or MLA is reset. •...
  • Page 336: Loop Selector (enable Tracking From Secondary Loop To Primary Loop) (m+p_sel_t3_)

    10.29 Loop Selector (Enable Tracking from secondary loop to primary loop) (M+P_SEL_T3_) M+P_SEL_T3_ This FB selects two input values depending on the setting of the select signal and outputs the result. The primary loop of the input 1 and 2 is tracked from the secondary loop. FBD/LD M+P_SEL_T3_ CASIN_T1...
  • Page 337 ■Public variable (operation constant) Variable Description Recommended Initial value Set by Data type name range NMAX Output Conversion High Limit -999999 to 999999 100.0 User REAL NMIN Output Conversion Low Limit -999999 to 999999 User REAL Tracking Flag 0: Not executed User 1: Executed SVPTN_B1...
  • Page 338 • High/low limiter High/low limiter processing result Variation rate limiter processing value High/low limiter processing value Output high limit (MH) Output low limit (ML) Execution cycle (ΔT) Condition High/low limiter processing Alarm (ALM) result Output Low Limit Alarm (MLA) Output High Limit Alarm (MHA) Variation rate limiter processing result FALSE (Reset)
  • Page 339 ■Loop stop processing When the stop alarm (SPA) of the alarm (ALM) is TRUE, this function block performs the following processing. • Outputs (MVN) are held. • The control mode is automatically switched to MANUAL. • When DMLA, MHA, or MLA of the alarm (ALM) has occurred, the DMLA, MHA, or MLA is reset. •...
  • Page 340: Chapter 11 Tag Special

    TAG SPECIAL The following FB changes the control mode. To set initial values of public variables of the tag access FB arranged on a user-defined tag FB in "FB Property" of the engineering tool, refer to the following.  GX Works3 Operating Manual 11.1 Change Control Mode (M+P_MCHG) M+P_MCHG...
  • Page 341 Setting data ■Input/output variable Variable Description Recommended range Type Data type name MODEIN Mode Change Signal 1 to 6 Input variable 1: MAN 2: AUT 3: CAS 4: CMV 5: CSV 6: CASDR Enable Mode Change TRUE: Execute Input variable BOOL FALSE: Stop ■Tag data...
  • Page 342 ■Processing operation : Performed, : Not performed Control mode Processing operation Mode change signal Mode transition disable Change request Mode switching output range check mode detection     MAN, CMV, AUT, CAS, CSV, CASDR Operation error There is no operation error. 11 TAG SPECIAL 11.1 Change Control Mode (M+P_MCHG)
  • Page 343: Part 5 Tag Fb

    PART 5 TAG FB This part consists of the following chapters. 12 LOOP TAG 13 STATUS TAG 14 ALARM TAG 15 MESSAGE TAG...
  • Page 344: Chapter 12 Loop Tag

    LOOP TAG The following FBs perform loop control processing including ratio control, various PID controls, two-position (on/off) control, three-position (on/off) control, program setter, and loop selector. 12.1 Velocity Type PID Control (Enable Tracking for primary loop) (M+M_PID_T) M+M_PID_T This FB performs velocity type PID control combining the functions of M+P_IN, M+P_PHPL, M+P_PID_T, and M+P_OUT1 into a single FB.
  • Page 345 ■Public variable (operation constant) Variable name Description Recommended range Initial value Set by Data type IN_NMAX Input High Limit -999999 to 999999 100.0 User REAL IN_NMIN Input Low Limit -999999 to 999999 User REAL IN_HH High Limit Range Error -999999 to 999999 102.0 User REAL...
  • Page 346 Processing details This tag FB consists of the following function blocks. Item Function block Reference IN function M+P_IN Page 144 M+P_IN PHPL function M+P_PHPL Page 291 M+P_PHPL PID function M+P_PID_T Page 190 M+P_PID_T OUT1 function M+P_OUT1 Page 149 M+P_OUT1 MCHG function M+P_MCHG Page 338 M+P_MCHG Operation error...
  • Page 347: Velocity Type Pid Control (disable Tracking For Primary Loop) (m+m_pid)

    12.2 Velocity Type PID Control (Disable Tracking for primary loop) (M+M_PID) M+M_PID This FB performs velocity type PID control combining the functions of M+P_IN, M+P_PHPL, M+P_PID, and M+P_OUT1 into a single FB. FBD/LD M+M_PID CASIN CASOUT CASOUT_T Applicable tag type Control mode ...
  • Page 348 ■Public variable (operation constant) Variable name Description Recommended range Initial value Set by Data type IN_NMAX Input High Limit -999999 to 999999 100.0 User REAL IN_NMIN Input Low Limit -999999 to 999999 User REAL IN_HH High Limit Range Error -999999 to 999999 102.0 User REAL...
  • Page 349: Velocity Type Pid Control And Duty Output (enable Tracking For Primary Loop)

    12.3 Velocity Type PID Control and DUTY Output (Enable Tracking for primary loop) (M+M_PID_DUTY_T) M+M_PID_DUTY_T This FB performs velocity type PID control and duty output combining the functions of M+P_IN, M+P_PHPL, M+P_PID_T, and M+P_DUTY into a single FB. The primary loop can be tracked. FBD/LD M+M_PID_DUTY_T CASIN_T...
  • Page 350 ■Public variable (operation constant) Variable name Description Recommended Initial value Set by Data type range IN_NMAX Input High Limit -999999 to 999999 100.0 User REAL IN_NMIN Input Low Limit -999999 to 999999 User REAL IN_HH High Limit Range Error -999999 to 999999 102.0 User REAL...
  • Page 351: (m+m_pid_duty)

    12.4 Velocity Type PID Control and DUTY Output (Disable Tracking for primary loop) (M+M_PID_DUTY) M+M_PID_DUTY This FB performs velocity type PID control and duty output combining the functions of M+P_IN, M+P_PHPL, M+P_PID, and M+P_DUTY into a single FB. FBD/LD M+M_PID_DUTY CASIN CASOUT CASOUT_T...
  • Page 352 ■Public variable (operation constant) • Operation processing Variable name Description Recommended Initial value Set by Data type range IN_NMAX Input High Limit -999999 to 999999 100.0 User REAL IN_NMIN Input Low Limit -999999 to 999999 User REAL IN_HH High Limit Range Error -999999 to 999999 102.0 User...
  • Page 353: 2-degree-of-freedom Pid Control (enable Tracking For Primary Loop) (m+m_2pid_t)

    12.5 2-degree-of-freedom PID Control (Enable Tracking for primary loop) (M+M_2PID_T) M+M_2PID_T This FB performs two-degree-of-freedom PID control combining the functions of M+P_IN, M+P_PHPL, M+P_2PID_T, and M+P_OUT1 into a single FB. The primary loop can be tracked. FBD/LD M+M_2PID_T CASIN_T CASOUT CASOUT_T Applicable tag type 2PID...
  • Page 354 ■Public variable (operation constant) Variable name Description Recommended range Initial value Set by Data type IN_NMAX Input High Limit -999999 to 999999 100.0 User REAL IN_NMIN Input Low Limit -999999 to 999999 User REAL IN_HH High Limit Range Error -999999 to 999999 102.0 User REAL...
  • Page 355 Processing details This tag FB consists of the following function blocks. Item Function block Reference IN function M+P_IN Page 144 M+P_IN PHPL function M+P_PHPL Page 291 M+P_PHPL 2PID function M+P_2PID_T Page 202 M+P_2PID_T OUT1 function M+P_OUT1 Page 149 M+P_OUT1 MCHG function M+P_MCHG Page 338 M+P_MCHG Operation error...
  • Page 356: 2-degree-of-freedom Pid Control (disable Tracking For Primary Loop) (m+m_2pid)

    12.6 2-degree-of-freedom PID Control (Disable Tracking for primary loop) (M+M_2PID) M+M_2PID This FB performs two-degree-of-freedom PID control combining the functions of M+P_IN, M+P_PHPL, M+P_2PID, and M+P_OUT1 into a single FB. FBD/LD M+M_2PID CASIN CASOUT CASOUT_T Applicable tag type 2PID Control mode ...
  • Page 357 ■Public variable (operation constant) Variable name Description Recommended range Initial value Set by Data type IN_NMAX Input High Limit -999999 to 999999 100.0 User REAL IN_NMIN Input Low Limit -999999 to 999999 User REAL IN_HH High Limit Range Error -999999 to 999999 102.0 User REAL...
  • Page 358: M+m_2pid_duty_t

    12.7 2-degree-of-freedom PID Control and DUTY O/P (Enable Tracking for primary loop) (M+M_2PID_DUTY_T) M+M_2PID_DUTY_T This FB performs two-degree-of-freedom PID control and duty output combining the functions of M+P_IN, M+P_PHPL, M+P_2PID_T, and M+P_DUTY into a single FB. The primary loop can be tracked. FBD/LD M+M_2PID_DUTY_T CASIN_T...
  • Page 359 ■Public variable (operation constant) Variable name Description Recommended Initial value Set by Data type range IN_NMAX Input High Limit -999999 to 999999 100.0 User REAL IN_NMIN Input Low Limit -999999 to 999999 User REAL IN_HH High Limit Range Error -999999 to 999999 102.0 User REAL...
  • Page 360: (m+m_2pid_duty)

    12.8 2-degree-of-freedom PID Control and DUTY O/P (Disable Tracking for primary loop) (M+M_2PID_DUTY) M+M_2PID_DUTY This FB performs two-degree-of-freedom PID control and duty output combining the functions of M+P_IN, M+P_PHPL, M+P_2PID, and M+P_DUTY into a single FB. FBD/LD M+M_2PID_DUTY CASIN CASOUT CASOUT_T Applicable tag type 2PID...
  • Page 361 ■Public variable (operation constant) Variable name Description Recommended Initial Set by Data type range value IN_NMAX Input High Limit -999999 to 999999 100.0 User REAL IN_NMIN Input Low Limit -999999 to 999999 User REAL IN_HH High Limit Range Error -999999 to 999999 102.0 User REAL...
  • Page 362: 2-degree-of-freedom Advanced Pid Control (enable Tracking For Primary Loop) (m+m_2pidh_t_)

    12.9 2-degree-of-freedom Advanced PID Control (Enable Tracking for primary loop) (M+M_2PIDH_T_) M+M_2PIDH_T_ This FB performs two-degree-of-freedom PID control combining the functions of M+P_IN, M+P_PHPL, M+P_2PIDH_T_, and M+P_OUT3_ into a single FB with PV/MV correction. The primary loop can be tracked. FBD/LD M+M_2PIDH_T_ CASIN_T...
  • Page 363 Setting data ■Input/output variable Variable name Description Recommended range Type Data type Input from a module -999999 to 999999 Input variable REAL CASIN_T Primary loop SV input (Unit: %) (With tracking) 0 to 100[%] Input variable DWORD (Indirect address) PV_CMPIN PV compensation value -999999 to 999999 Input variable...
  • Page 364 Variable name Description Recommended range Initial Set by Data type value LLAG_EN First Order Lag: Execution condition TRUE: Execute FALSE User BOOL FALSE: Stop LLAG_T1 First Order Lag: Delay Time (Sec) 0 to 999999[s] User REAL PVCMP_EN PV Compensation Execution condition TRUE: Execute FALSE User...
  • Page 365 Variable name Description Recommended range Initial Set by Data type value OUT3_MVREV_EN MV Reverse Execution condition TRUE: Execute FALSE User BOOL FALSE: Stop OUT3_FOTS_EN Tight Shut/Full Open Execution condition TRUE: Execute FALSE User BOOL FALSE: Stop OUT3_MVFO Output Value for Full Open (Unit: %) 100 to 125[%] 112.5 User...
  • Page 366 ■PV compensation This function block adds an externally-input compensation value to a process variable or replaces a process variable with an externally-input compensation value. Condition Processing result PVCMP_EN = TRUE PVCMP_MODE = 0 (addition) IN + PV_CMPIN PVCMP_MODE = 1 (replacement) PV_CMPIN PVCMP_EN = FALSE IN: Input value (Process variable), PV_CMPIN: Compensation value, PVCMP_MODE: Compensation mode...
  • Page 367: 2-degree-of-freedom Advanced Pid Control (disable Tracking For Primary Loop) (m+m_2pidh_)

    12.10 2-degree-of-freedom Advanced PID Control (Disable Tracking for primary loop) (M+M_2PIDH_) M+M_2PIDH_ This FB performs two-degree-of-freedom PID control combining the functions of M+P_IN, M+P_PHPL, M+P_2PIDH_, and M+P_OUT3_ into a single FB with PV/MV correction. FBD/LD M+M_2PIDH_ CASIN CASOUT PV_CMPIN CASOUT_T PVD_CMPIN PV_CMPOUT MVD_CMPIN...
  • Page 368 Setting data ■Input/output variable Variable name Description Recommended range Type Data type Input from a module -999999 to 999999 Input variable REAL CASIN Primary loop SV input (Unit: %) 0 to 100[%] Input variable REAL PV_CMPIN PV compensation value -999999 to 999999 Input variable REAL PV compensation value...
  • Page 369 Variable name Description Recommended range Initial Set by Data type value LLAG_T1 First Order Lag: Delay Time (Sec) 0 to 999999[s] User REAL PVCMP_EN PV Compensation Execution condition TRUE: Execute FALSE User BOOL FALSE: Stop PVCMP_MODE PV Compensation Mode 0: Addition User 1: Replacement PV Compensation Execution condition...
  • Page 370 ■Public variable (others) • Simulation processing Variable name Description Recommended range Initial Set by Data type value SIMIN Simulation Input NMIN to NMAX User REAL SIMOUT Simulation Output NMIN to NMAX System REAL • Control mode change processing (MCHG function) Variable name Description Recommended range...
  • Page 371 ■PV compensation This function block adds a PV compensation value (PVD_CMPIN) to an internal addition value (PVD_CMPIN) when PVDCMP_EN is enabled. PVD_CMPIN is added to a process variable. ■MV compensation This function block adds an externally-input compensation value to MV or replaces MV with an externally-input compensation value.
  • Page 372: M+m_pidp_t

    12.11 Position Type PID Control (Enable Tracking for primary loop/Disable Tracking from secondary loop) (M+M_PIDP_T) M+M_PIDP_T This FB performs position type PID control combining the functions of M+P_IN, M+P_PHPL, and M+P_PIDP_T into a single FB. The primary loop can be tracked. FBD/LD M+M_PIDP_T CASIN_T...
  • Page 373 ■Public variable (operation constant) Variable name Description Recommended range Initial Set by Data type value IN_NMAX Input High Limit -999999 to 999999 100.0 User REAL IN_NMIN Input Low Limit -999999 to 999999 User REAL IN_HH High Limit Range Error -999999 to 999999 102.0 User REAL...
  • Page 374 Processing details This tag FB consists of the following function blocks. Item Function block Reference IN function M+P_IN Page 144 M+P_IN PHPL function M+P_PHPL Page 291 M+P_PHPL PIDP function M+P_PIDP_T Page 229 M+P_PIDP_T MCHG function M+P_MCHG Page 338 M+P_MCHG Operation error An error may occur in a function block that is used in a tag FB.
  • Page 375: (m+m_pidp)

    12.12 Position Type PID Control (Disable Tracking for primary loop/Disable Tracking from secondary loop) (M+M_PIDP) M+M_PIDP This FB performs position type PID control combining the functions of M+P_IN, M+P_PHPL, and M+P_PIDP into a single FB. FBD/LD M+M_PIDP CASIN CASOUT Applicable tag type PIDP Control mode ...
  • Page 376 ■Public variable (operation constant) • Operation processing Variable name Description Recommended range Initial Set by Data type value IN_NMAX Input High Limit -999999 to 999999 100.0 User REAL IN_NMIN Input Low Limit -999999 to 999999 User REAL IN_HH High Limit Range Error -999999 to 999999 102.0 User...
  • Page 377: M+m_pidp_ex_t

    12.13 Position Type PID Control (Enable Tracking for primary loop/Enable Tracking from secondary loop) (M+M_PIDP_EX_T_) M+M_PIDP_EX_T_ This FB performs position type PID control combining the functions of M+P_IN, M+P_PHPL, and M+P_PIDP_EX_T_ into a single FB. It also allows manipulated value bumpless switching and tracking from the primary loop and secondary loop at a change of control mode.
  • Page 378 ■Public variable (operation constant) Variable name Description Recommended range Initial Set by Data type value IN_NMAX Input High Limit -999999 to 999999 100.0 User REAL IN_NMIN Input Low Limit -999999 to 999999 User REAL IN_HH High Limit Range Error -999999 to 999999 102.0 User REAL...
  • Page 379 Processing details This tag FB consists of the following function blocks. Item Function block Reference IN function M+P_IN Page 144 M+P_IN PHPL function M+P_PHPL Page 291 M+P_PHPL PIDP function M+P_PIDP_EX_T_ Page 243 M+P_PIDP_EX_T_ MCHG function M+P_MCHG Page 338 M+P_MCHG Operation error An error may occur in a function block that is used in a tag FB.
  • Page 380: M+m_pidp_ex

    12.14 Position Type PID Control (Disable Tracking for primary loop/Enable Tracking from secondary loop) (M+M_PIDP_EX_) M+M_PIDP_EX_ This FB performs position type PID control combining the functions of M+P_IN, M+P_PHPL, and M+P_PIDP_EX_ into a single FB. It also allows manipulated value bumpless switching and tracking from the secondary loop at a change of control mode. FBD/LD M+M_PIDP_EX_ CASIN...
  • Page 381 ■Public variable (operation constant) Variable name Description Recommended range Initial Set by Data type value IN_NMAX Input High Limit -999999 to 999999 100.0 User REAL IN_NMIN Input Low Limit -999999 to 999999 User REAL IN_HH High Limit Range Error -999999 to 999999 102.0 User REAL...
  • Page 382: Sample Pi Control (enable Tracking For Primary Loop) (m+m_spi_t)

    12.15 Sample PI Control (Enable Tracking for primary loop) (M+M_SPI_T) M+M_SPI_T This FB performs sample PI control combining the functions of M+P_IN, M+P_PHPL, M+P_SPI_T, and M+P_OUT1 into a single FB. The primary loop can be tracked. FBD/LD M+M_SPI_T CASIN_T CASOUT CASOUT_T Applicable tag type Control mode...
  • Page 383 ■Public variable (operation constant) Variable Description Recommended range Initial Set by Data type name value IN_NMAX Input High Limit -999999 to 999999 100.0 User REAL IN_NMIN Input Low Limit -999999 to 999999 User REAL IN_HH High Limit Range Error -999999 to 999999 102.0 User REAL...
  • Page 384 Processing details This tag FB consists of the following function blocks. Item Function block Reference IN function M+P_IN Page 144 M+P_IN PHPL function M+P_PHPL Page 291 M+P_PHPL SPI function M+P_SPI_T Page 259 M+P_SPI_T OUT1 function M+P_OUT1 Page 149 M+P_OUT1 MCHG function M+P_MCHG Page 338 M+P_MCHG Operation error...
  • Page 385: Sample Pi Control (disable Tracking For Primary Loop) (m+m_spi)

    12.16 Sample PI Control (Disable Tracking for primary loop) (M+M_SPI) M+M_SPI This FB performs sample PI control combining the functions of M+P_IN, M+P_PHPL, M+P_SPI, and M+P_OUT1 into a single FBD/LD M+M_SPI CASIN CASOUT CASOUT_T Applicable tag type Control mode  ...
  • Page 386 ■Public variable (operation constant) Variable Description Recommended range Initial Set by Data type name value IN_NMAX Input High Limit -999999 to 999999 100.0 User REAL IN_NMIN Input Low Limit -999999 to 999999 User REAL IN_HH High Limit Range Error -999999 to 999999 102.0 User REAL...
  • Page 387: I-pd Control (enable Tracking For Primary Loop) (m+m_ipd_t)

    12.17 I-PD Control (Enable Tracking for primary loop) (M+M_IPD_T) M+M_IPD_T This FB performs I-PD control combining the functions of M+P_IN, M+P_PHPL, M+P_IPD_T, and M+P_OUT1 into a single FB. The primary loop can be tracked. FBD/LD M+M_IPD_T CASIN_T CASOUT CASOUT_T Applicable tag type Control mode ...
  • Page 388 ■Public variable (operation constant) Variable Description Recommended range Initial Set by Data type name value IN_NMAX Input High Limit -999999 to 999999 100.0 User REAL IN_NMIN Input Low Limit -999999 to 999999 User REAL IN_HH High Limit Range Error -999999 to 999999 102.0 User REAL...
  • Page 389 Processing details This tag FB consists of the following function blocks. Item Function block Reference IN function M+P_IN Page 144 M+P_IN PHPL function M+P_PHPL Page 291 M+P_PHPL IPD function M+P_IPD_T Page 270 M+P_IPD_T OUT1 function M+P_OUT1 Page 149 M+P_OUT1 MCHG function M+P_MCHG Page 338 M+P_MCHG Operation error...
  • Page 390: I-pd Control (disable Tracking For Primary Loop) (m+m_ipd)

    12.18 I-PD Control (Disable Tracking for primary loop) (M+M_IPD) M+M_IPD This FB performs I-PD control combining the functions of M+P_IN, M+P_PHPL, M+P_IPD, and M+P_OUT1 into a single FB. FBD/LD M+M_IPD CASIN CASOUT CASOUT_T Applicable tag type Control mode   ...
  • Page 391 ■Public variable (operation constant) Variable Description Recommended range Initial Set by Data type name value IN_NMAX Input High Limit -999999 to 999999 100.0 User REAL IN_NMIN Input Low Limit -999999 to 999999 User REAL IN_HH High Limit Range Error -999999 to 999999 102.0 User REAL...
  • Page 392: Blend Pi Control (enable Tracking For Primary Loop) (m+m_bpi_t)

    12.19 Blend PI Control (Enable Tracking for primary loop) (M+M_BPI_T) M+M_BPI_T This FB performs blend PI control combining the functions of M+P_IN, M+P_PHPL, M+P_BPI_T, and M+P_OUT1 into a single FB. The primary loop can be tracked. FBD/LD M+M_BPI_T CASIN_T CASOUT CASOUT_T Applicable tag type Control mode...
  • Page 393 ■Public variable (operation constant) Variable name Description Recommended range Initial Set by Data type value IN_NMAX Input High Limit -999999 to 999999 100.0 User REAL IN_NMIN Input Low Limit -999999 to 999999 User REAL IN_HH High Limit Range Error -999999 to 999999 102.0 User REAL...
  • Page 394 ■Tag data For details on tag data that is read or written with this tag FB, refer to the following. Page 519 BPI Processing details This tag FB consists of the following function blocks. Item Function block Reference IN function M+P_IN Page 144 M+P_IN PHPL function...
  • Page 395: Blend Pi Control (disable Tracking For Primary Loop) (m+m_bpi)

    12.20 Blend PI Control (Disable Tracking for primary loop) (M+M_BPI) M+M_BPI This FB performs blend PI control combining the functions of M+P_IN, M+P_PHPL, M+P_BPI, and M+P_OUT1 into a single FBD/LD M+M_BPI CASIN CASOUT CASOUT_T Applicable tag type Control mode  ...
  • Page 396 ■Public variable (operation constant) Variable name Description Recommended range Initial Set by Data type value IN_NMAX Input High Limit -999999 to 999999 100.0 User REAL IN_NMIN Input Low Limit -999999 to 999999 User REAL IN_HH High Limit Range Error -999999 to 999999 102.0 User REAL...
  • Page 397 Processing details This tag FB consists of the following function blocks. Item Function block Reference IN function M+P_IN Page 144 M+P_IN PHPL function M+P_PHPL Page 291 M+P_PHPL BPI function M+P_BPI Page 286 M+P_BPI OUT1 function M+P_OUT1 Page 149 M+P_OUT1 MCHG function M+P_MCHG Page 338 M+P_MCHG Operation error...
  • Page 398: Ratio Control (enable Tracking For Primary Loop) (m+m_r_t)

    12.21 Ratio Control (Enable Tracking for primary loop) (M+M_R_T) M+M_R_T This FB performs ratio control combining the functions of M+P_IN, M+P_PHPL, M+P_R_T, and M+P_OUT2 into a single FB. The primary loop can be tracked. FBD/LD M+M_R_T CASIN_T CASOUT Applicable tag type Control mode ...
  • Page 399 ■Public variable (operation constant) Variable Description Recommended range Initial Set by Data type name value IN_NMAX Input High Limit -999999 to 999999 100.0 User REAL IN_NMIN Input Low Limit -999999 to 999999 User REAL IN_HH High Limit Range Error -999999 to 999999 102.0 User REAL...
  • Page 400: Ratio Control (disable Tracking For Primary Loop) (m+m_r)

    12.22 Ratio Control (Disable Tracking for primary loop) (M+M_R) M+M_R This FB performs ratio control combining the functions of M+P_IN, M+P_PHPL, M+P_R, and M+P_OUT2 into a single FB. FBD/LD M+M_R CASIN CASOUT Applicable tag type Control mode    ...
  • Page 401 ■Public variable (operation constant) Variable Description Recommended range Initial Set by Data type name value IN_NMAX Input High Limit -999999 to 999999 100.0 User REAL IN_NMIN Input Low Limit -999999 to 999999 User REAL IN_HH High Limit Range Error -999999 to 999999 102.0 User REAL...
  • Page 402: Position On/off Control (enable Tracking For Primary Loop) (m+m_onf2_t)

    12.23 2 position ON/OFF Control (Enable Tracking for primary loop) (M+M_ONF2_T) M+M_ONF2_T This FB performs two-position (on/off) control combining the functions of M+P_IN, M+P_PHPL, and M+P_ONF2_T into a single FB. The primary loop can be tracked. FBD/LD M+M_ONF2_T CASIN_T CASOUT Applicable tag type ONF2 Control mode...
  • Page 403 ■Public variable (operation constant) Variable name Description Recommended range Initial Set by Data type value IN_NMAX Input High Limit -999999 to 999999 100.0 User REAL IN_NMIN Input Low Limit -999999 to 999999 User REAL IN_HH High Limit Range Error -999999 to 999999 102.0 User REAL...
  • Page 404: Position On/off Control (disable Tracking For Primary Loop) (m+m_onf2)

    12.24 2 position ON/OFF Control (Disable Tracking for primary loop) (M+M_ONF2) M+M_ONF2 This FB performs two-position (on/off) control combining the functions of M+P_IN, M+P_PHPL, and M+P_ONF2 into a single FBD/LD M+M_ONF2 CASIN CASOUT Applicable tag type ONF2 Control mode  ...
  • Page 405 ■Public variable (operation constant) Variable name Description Recommended range Initial Set by Data type value IN_NMAX Input High Limit -999999 to 999999 100.0 User REAL IN_NMIN Input Low Limit -999999 to 999999 User REAL IN_HH High Limit Range Error -999999 to 999999 102.0 User REAL...
  • Page 406: Position On/off Control (enable Tracking For Primary Loop) (m+m_onf3_t)

    12.25 3 position ON/OFF Control (Enable Tracking for primary loop) (M+M_ONF3_T) M+M_ONF3_T This FB performs three-position (on/off) control combining the functions of M+P_IN, M+P_PHPL, and M+P_ONF3_T into a single FB. The primary loop can be tracked. FBD/LD M+M_ONF3_T CASIN_T CASOUT MVB1 MVB2 Applicable tag type...
  • Page 407 ■Public variable (operation constant) Variable name Description Recommended range Initial Set by Data type value IN_NMAX Input High Limit -999999 to 999999 100.0 User REAL IN_NMIN Input Low Limit -999999 to 999999 User REAL IN_HH High Limit Range Error -999999 to 999999 102.0 User REAL...
  • Page 408: Position On/off Control (disable Tracking For Primary Loop) (m+m_onf3)

    12.26 3 position ON/OFF Control (Disable Tracking for primary loop) (M+M_ONF3) M+M_ONF3 This FB performs three-position (on/off) control combining the functions of M+P_IN, M+P_PHPL, and M+P_ONF3 into a single FB. FBD/LD M+M_ONF3 CASIN CASOUT MVB1 MVB2 Applicable tag type ONF3 Control mode ...
  • Page 409 ■Public variable (operation constant) Variable name Description Recommended range Initial Set by Data type value IN_NMAX Input High Limit -999999 to 999999 100.0 User REAL IN_NMIN Input Low Limit -999999 to 999999 User REAL IN_HH High Limit Range Error -999999 to 999999 102.0 User REAL...
  • Page 410: Monitor (m+m_moni)

    12.27 Monitor (M+M_MONI) M+M_MONI This FB performs monitoring combining the functions of M+P_IN and M+P_PHPL into a single FB. FBD/LD M+M_MONI Applicable tag type MONI Control mode      ■Block diagram M+M_MONI IN function PHPL function (M+P_IN)* (M+P_PHPL)* * (M+P_ ) indicates the main structure member tag access FB which is the main component of each function.
  • Page 411 Processing details This tag FB consists of the following function blocks. Item Function block Reference IN function M+P_IN Page 144 M+P_IN PHPL function M+P_PHPL Page 291 M+P_PHPL Operation error An error may occur in a function block that is used in a tag FB. For details on the error, refer to corresponding function blocks. 12 LOOP TAG 12.27 Monitor (M+M_MONI)
  • Page 412: Manual Output With Monitor (m+m_mwm)

    12.28 Manual Output with Monitor (M+M_MWM) M+M_MWM This FB performs manual output with monitor combining the functions of M+P_IN, M+P_PHPL, and M+P_MOUT into a single FBD/LD M+M_MWM Applicable tag type Control mode      ■Block diagram M+M_MWM MCHG function (M+P_MCHG)* IN function...
  • Page 413 ■Public variable (operation constant) Variable Description Recommended range Initial value Set by Data type name IN_NMAX Input High Limit -999999 to 999999 100.0 User REAL IN_NMIN Input Low Limit -999999 to 999999 User REAL IN_HH High Limit Range Error -999999 to 999999 102.0 User REAL...
  • Page 414: Batch Preparation (m+m_bc)

    12.29 Batch Preparation (M+M_BC) M+M_BC This FB performs batch preparation combining the functions of M+P_PSUM and M+P_BC into a single FB. FBD/LD M+M_BC COMP1 HOLD COMP2 STPRS COMP_ RS_START Applicable tag type Control mode      ■Block diagram M+M_BC Faceplate COMP1...
  • Page 415 Setting data ■Input/output variable Variable name Description Recommended range Type Data type Integration start signal TRUE: Execute Input variable BOOL FALSE: Stop HOLD Integration stop signal TRUE: Execute Input variable BOOL FALSE: Stop STPRS Reset signal after integration stop TRUE: Execute Input variable BOOL FALSE: Stop...
  • Page 416: Pulse Integrator (m+m_psum)

    12.30 Pulse Integrator (M+M_PSUM) M+M_PSUM This FB performs pulse integration combining the functions of M+P_PSUM into a single FB. FBD/LD M+M_PSUM SUMOUT1 HOLD SUMOUT2 STPRS RS_START Applicable tag type PSUM Control mode      ■Block diagram M+M_PSUM Faceplate SUMOUT1 (Interation value)
  • Page 417 Setting data ■Input/output variable Variable name Description Recommended range Type Data type Integration start signal TRUE: Execute Input variable BOOL FALSE: Stop HOLD Integration stop signal TRUE: Execute Input variable BOOL FALSE: Stop STPRS Reset signal after integration stop TRUE: Execute Input variable BOOL FALSE: Stop...
  • Page 418: Loop Selector (disable Tracking For Primary Loop) (m+m_sel)

    12.31 Loop Selector (Disable Tracking for primary loop) (M+M_SEL) M+M_SEL This FB performs loop selector combining the functions of M+P_SEL into a single FB. FBD/LD M+M_SEL PVP1 PVP2 CASOUT SELECT Applicable tag type Control mode      ■Block diagram M+M_SEL MCHG function...
  • Page 419 ■Public variable (others) • Control mode change processing (MCHG function) Variable Description Recommended range Initial value Set by Data type name MODEIN Mode Change Signal 1 to 5 User 1: MAN 2: AUT 3: CAS 4: CMV 5: CSV Enable Mode Change TRUE: Execute FALSE User...
  • Page 420: Loop Selector (enable Tracking For Primary Loop Only By Casin_t) (m+m_sel_t1)

    12.32 Loop Selector (Enable Tracking for primary loop only by CASIN_T) (M+M_SEL_T1) M+M_SEL_T1 This FB performs loop selector combining the functions of M+P_SEL_T1 into a single FB. The input 1 is not tracked. The primary loop of the input 2 is tracked, but tracking from the secondary loop is not performed. FBD/LD M+M_SEL_T1 CASIN_T...
  • Page 421 ■Public variable (operation constant) Variable name Description Recommended range Initial value Set by Data type SEL_NMAX Output Conversion High Limit -999999 to 999999 User REAL SEL_NMIN Output Conversion Low Limit -999999 to 999999 User REAL SEL_TRK Tracking Flag 0: Not executed User 1: Executed SEL_SVPTN_B4...
  • Page 422: Loop Selector (enable Tracking For Primary Loop By Casin_t1/_t2) (m+m_sel_t2)

    12.33 Loop Selector (Enable Tracking for primary loop by CASIN_T1/_T2) (M+M_SEL_T2) M+M_SEL_T2 This FB performs loop selector combining the functions of M+P_SEL_T2 into a single FB. The primary loop of the input 1 and 2 is tracked, but tracking from the secondary loop is not performed. FBD/LD M+M_SEL_T2 CASIN_T1...
  • Page 423 ■Public variable (operation constant) Variable name Description Recommended range Initial value Set by Data type SEL_NMAX Output Conversion High Limit -999999 to 999999 100.0 User REAL SEL_NMIN Output Conversion Low Limit -999999 to 999999 User REAL SEL_TRK Tracking Flag 0: Not executed User 1: Executed SEL_SVPTN_B1...
  • Page 424: Loop Selector (enable Tracking From Secondary Loop To Primary Loop) (m+m_sel_t3_)

    12.34 Loop Selector (Enable Tracking from secondary loop to primary loop) (M+M_SEL_T3_) M+M_SEL_T3_ This FB performs loop selector combining the functions of M+P_SEL_T3_ into a single FB. The primary loop of the input 1 and 2 can be tracked from the secondary loop. FBD/LD M+M_SEL_T3_ CASIN_T1...
  • Page 425 ■Public variable (operation constant) Variable name Description Recommended range Initial value Set by Data type SEL_NMAX Output Conversion High Limit -999999 to 999999 100.0 User REAL SEL_NMIN Output Conversion Low Limit -999999 to 999999 User REAL SEL_TRK Tracking Flag 0: Not executed User 1: Executed SEL_SVPTN_B1...
  • Page 426: Manual Output (m+m_mout)

    12.35 Manual Output (M+M_MOUT) M+M_MOUT This FB performs manual output combining the functions of M+P_MOUT into a single FB. FBD/LD M+M_MOUT Applicable tag type MOUT Control mode    ■Block diagram M+M_MOUT MCHG function (M+P_MCHG)* MOUT function (M+P_MOUT)* * (M+P_ ) indicates the main structure member tag access FB which is the main component of each function. Setting data ■Input/output variable Variable...
  • Page 427 ■Public variable (others) • Control mode change processing (MCHG function) Variable Description Recommended range Initial value Set by Data type name MODEIN Mode Change Signal 1 to 5 User 1: MAN 2: AUT 3: CAS 4: CMV 5: CSV Enable Mode Change TRUE: Execute FALSE User...
  • Page 428: Program Setter (m+m

    12.36 Program Setter (M+M_PGS) M+M_PGS This FB performs program settings combining the functions of M+P_PGS into a single FB. FBD/LD M+M_PGS CASOUT Applicable tag type Control mode      ■Block diagram M+M_PGS MCHG function (M+P_MCHG)* PGS function (M+P_PGS)* CASOUT * (M+P_ ) indicates the main structure member tag access FB which is the main component of each function.
  • Page 429 ■Tag data For details on tag data that is read or written with this tag FB, refer to the following. Page 547 PGS Processing details This tag FB consists of the following function blocks. Item Function block Reference PGS function M+P_PGS Page 308 M+P_PGS MCHG function...
  • Page 430: Multi-point Program Setter (m+m_pgs2_)

    12.37 Multi-Point Program Setter (M+M_PGS2_) M+M_PGS2_ This FB performs program settings combining the functions of M+P_PGS2_ into a single FB. Multiple FBs can be connected to execute time width sets and setting value programs of 32 steps or more. FBD/LD M+M_PGS2_ PVIN CASOUT...
  • Page 431 ■Public variable (operation constant) Variable name Description Recommended range Initial value Set by Data type PGS2_PVSTARTNO PV Start Search Start Step 1 to 32 User PGS2_PVENDNO PV Start Search End Step 1 to 32 User PGS2_PRIMARY Lead FB specified TRUE: Lead TRUE User BOOL...
  • Page 432 Program example ■When the output of a single M+M_PGS2_ function block is used Set the following items. Type/pin Variable name Description Setting/connection method Public variable PGS2_PRIMARY Lead FB specified TRUE Input pin LINKIN Link input Not connected. 12 LOOP TAG 12.37 Multi-Point Program Setter (M+M_PGS2_)
  • Page 433 ■When multiple M+M_PGS2_ function blocks are connected (When a program with 32 steps or more is used) Set the following items. Target FB Type/pin Variable name Description Setting/connection method Lead FB Public variable PGS2_PRIMARY Lead FB specified TRUE Input pin LINKIN Link input Not connected.
  • Page 434: Manual Setter With Monitor (m+m_swm_)

    12.38 Manual Setter with Monitor (M+M_SWM_) M+M_SWM_ This FB performs manual settings with monitor combining the functions of M+P_IN, M+P_PHPL, and M+P_MSET_ into a single FB. FBD/LD M+M_SWM_ CASIN CASOUT CASOUT_T Applicable tag type Control mode     ...
  • Page 435 ■Public variable (operation constant) Variable name Description Recommended range Initial value Set by Data type IN_NMAX Input High Limit -999999 to 999999 100.0 User REAL IN_NMIN Input Low Limit -999999 to 999999 User REAL IN_HH High Limit Range Error -999999 to 999999 102.0 User REAL...
  • Page 436: Position Proportional Output (m+m_pval_t_)

    12.39 Position Proportional Output (M+M_PVAL_T_) M+M_PVAL_T_ This FB outputs open/close command bits to operate the motor valve opening according to the deviation of opening between the feedback input and setting value. The primary loop can be tracked. FBD/LD M+M_PVAL_T_ OPEN CASIN_T CLOSE OPEN_SET...
  • Page 437 Setting data ■Input/output variable Variable name Description Recommended range Type Data type Valve opening feedback input -999999 to 999999 Input variable REAL CASIN_T Primary loop SV input (Unit: %) (With tracking) 0 to 100[%] Input variable DWORD (Indirect address) OPEN_SET External input of OPEN operation TRUE, FALSE Input variable...
  • Page 438 ■Public variable (others) • Simulation processing Variable name Description Recommended range Initial Set by Data type value SIMIN Simulation Input 0 to 100 User REAL SIMOUT_OPEN Simulation Output of Open Command Signal TRUE, FALSE FALSE System BOOL SIMOUT_CLOSE Simulation Output of Close Command Signal TRUE, FALSE FALSE System...
  • Page 439 ■Proportional output operation To perform control with a motor valve, use this function block with a loop tag FB as shown below. Setting value of valve Position opening proportional Open/ output FB close Loop tag output Motor valve opening Sensor Motor valve This function block outputs open/close command bits to operate the motor valve opening according to the deviation (of opening) between the motor valve opening (PV) and the setting value of valve opening (current) (SVC).
  • Page 440 ■Output at high or low limit of valve opening The following operations can be selected with the output enabled at high/low limit for opening (LMTOUT_EN) for when PV (motor valve opening) is 0% or less, or 100% or more during command signal output: output the result of a proportional output operation as it is or turn off the output forcibly.
  • Page 441 ■Tracking processing The following table shows whether tracking processing to the input variable CASIN_T is performed or not. Condition Result Tracking Flag (TRK) Setting Value (SV) Used (SVPTN_B0) FALSE The input variable CASIN_T is tracked. TRUE The input variable CASIN_T is not tracked. FALSE or TRUE ■SV variation rate &...
  • Page 442 ■SIM/OVER answer back time delay signal In SIMULATION mode or OVERRIDE mode, this function block creates a status answer signal after a command signal output in the CPU module. The lag time of this status answer signal is set with the simulation answer time (SIMT). Input signal from the faceplate or the input pin (rising edge detection) Command pulse signal...
  • Page 443 ■Processing operation : Performed, : Not performed Control Processing operation mode Deviation check PV tracking Proportional output Output at high or low One-shot output for operation limit of valve command pulse opening period        ...
  • Page 444: Heating And Cooling Output (m+m_htcl_t_)

    12.40 Heating and Cooling Output (M+M_HTCL_T_) M+M_HTCL_T_ This FB outputs two manipulated values after split conversion and output conversion to setting values. It can perform temperature control by outputting the values to both the heating and cooling operation terminal. The primary loop can be tracked.
  • Page 445 ■Public variable (operation constant) Variable Description Recommended range Initial value Set by Data type name NMAX_HT Heating Output Conversion High Limit -999999 to 999999 100.0 User REAL NMIN_HT Heating Output Conversion Low Limit -999999 to 999999 User REAL MVREV_HT_EN Heating MV Reverse Execution condition TRUE: Valid FALSE User...
  • Page 446 Processing details ■Split conversion The function block is used to control two (heating and cooling) operation terminals with a loop tag FB as shown in the following figure. Loop tag Heating and cooling output FB Thermometer Steam Tank Cooling water •...
  • Page 447 ■Variation rate & high/low limiter This function block checks the variation rate and the high/low limit of each tentative manipulated value for heating and cooling (T_HT, T_CL) after split conversion. • Variation rate limiter Variation rate limiter processing result Variation rate limiter processing value Tentative MV Output variation rate (T_HT, T_CL)
  • Page 448 Condition High/low limiter processing Alarm (ALM) result Output low limit alarm Output high limit alarm (MLA_CL) (MHA_CL) ML_CL  Result of variation rate limiter processing for Variation rate limiter processing FALSE (Reset) FALSE (Reset) cooling  MH_CL value for cooling MH_CL: Output high limit for cooling, ML_CL: Output low limit for cooling ■Tight shut/full open This tight shut/full open function is used to completely open or close a control valve.
  • Page 449 ■Output conversion This function block performs output conversion processing. Converted output (MVN_HT, MVN_CL) NMAX_HT (NMAX_CL) NMIN_HT (NMIN_CL) Manipulated variable (-10(%)) 0(%) 100(%) 110(%) (MVREV_HT, MVREV_CL) MVREV_HT Converted output (MVN_HT) = {(NMAX_HT - NMIN_HT) × } + NMIN_HT MVREV_CL Converted output (MVN_CL) = {(NMAX_CL - NMIN_CL) × } + NMIN_CL NMAX_HT: Heating output conversion high limit value NMIN_HT: Heating output conversion low limit value...
  • Page 450 When the auto tuning result reflection function is used, the tag types connectable as primary loops are as follows. • PID • 2PID • 2PIDH When PID parameters are tracked, the parameter values stored in this tag FB are not restored even though "Restore"...
  • Page 451 ■Tracking (PID parameter) When all the following conditions for tracking PID parameters are satisfied, this function block tracks PID parameters for heating and cooling to the primary loop. • PRM_TRK = 1 • SVPTN_B0 = FALSE • SVPTN_B1 = FALSE The following table shows the description on the processing.
  • Page 452 ■Disable alarm detection Set whether to detect alarms (ALM) or not in the variation rate & high/low limiter and heater burnout detection. Item Disable alarm detection processing Disable alarm detection by setting tag data If the following bits in the disable alarm detection (INH) are TRUE, DMLA_HT, MHA_HT, MLA_HT, DMLA_CL, MHA_CL, MLA_CL, or HBOA of the alarm (ALM) will not be detected.
  • Page 453 ■Processing operation : Performed, : Not performed Control Processing operation mode Split conversion Variation rate & Tight shut/full MV reverse Tracking Output high/low limiter open conversion       MAN, CMV       ...
  • Page 454: Chapter 13 Status Tag

    STATUS TAG The following FBs perform reversible/irreversible operation and ON/OFF operation and operates as a timer and a counter. 13.1 Motor Irreversible (2 Input/2 Output) (M+M_NREV) M+M_NREV This FB performs irreversible operation and controls a solenoid valve. FBD/LD M+M_NREV RUN_SET STOP_SET STOP_ TO_RST STATUS...
  • Page 455 Setting data ■Input/output variable Variable Description Recommended range Type Data type name RUN_SET External input for RUN operation TRUE, FALSE Input variable BOOL FALSE  TRUE: RUN STOP_SET External input for STOP operation TRUE, FALSE Input variable BOOL FALSE  TRUE: STOP TO_RST Time-out error external reset input TRUE, FALSE...
  • Page 456 Processing details ■One-shot output for command pulse period This function block performs one-shot output for command pulse period according to the operation from the faceplate or the input from the input variables (RUN_SET, STOP_SET). • When the setting is performed with the faceplate or the value of the input variable (RUN_SET) is changed from FALSE to TRUE, this function block outputs a command pulse signal (TRUE) from the output variable RUN by the time period set with the command pulse period (DOT).
  • Page 457 Operation error There is no operation error. If the STOP command (or RUN command) is issued while a command pulse signal (TRUE) is output from the output variable RUN (or output variable STOP_), the command pulse signals (TRUE) are output simultaneously from the output variable RUN and output variable STOP_.
  • Page 458: Motor Reversible (2 Input/3 Output) (m+m_rev)

    13.2 Motor Reversible (2 Input/3 Output) (M+M_REV) M+M_REV This FB performs reversible operation. FBD/LD M+M_REV FWD_SET STOP_SET STOP_ REV_SET TO_RST FWD_ST REV_ST TRIP LOCAL REMOTE Applicable tag type Control mode      ■Block diagram M+M_REV MCHG function (M+P_MCHG) Faceplate FWD_SET...
  • Page 459 Setting data ■Input/output variable Variable Description Recommended range Type Data type name FWD_SET External input of FWD (forward rotation) TRUE, FALSE Input variable BOOL FALSE  TRUE: FWD STOP_SET External input for STOP operation TRUE, FALSE Input variable BOOL FALSE  TRUE: STOP REV_SET External input of REV (reverse rotation) TRUE, FALSE...
  • Page 460 Processing details ■One-shot output for command pulse period This function block performs one-shot output for command pulse period according to the operation from the faceplate or the input from the input variables (FWD_SET, STOP_SET, REV_SET). • When the setting is performed with the faceplate or the value of the input variable (FWD_SET) is changed from FALSE to TRUE, this function block outputs a command pulse signal (TRUE) from the output variable FWD by the time period set with the command pulse period (DOT).
  • Page 461 ■Disable alarm detection This function block sets whether to detect alarms (ALM) or not. Item Disable alarm detection processing Disable alarm detection by setting tag data If the following bits in the disable alarm detection (INH) are TRUE, no TRIPA and TOA of the alarm (ALM) will be detected.
  • Page 462: On/off Operation (2 Input/2 Output) (m+m_mval1)

    13.3 ON/OFF Operation (2 Input/2 Output) (M+M_MVAL1) M+M_MVAL1 This FB controls an ON/OFF motor valve and solenoid valve. FBD/LD M+M_MVAL1 OPEN_SET OPEN CLOSE_SET CLOSE TO_RST OPEN_ST CLOSE_ST TRIP LOCAL REMOTE Applicable tag type MVAL1 Control mode     ...
  • Page 463 Setting data ■Input/output variable Variable Description Recommended range Type Data type name OPEN_SET External input for OPEN operation TRUE, FALSE Input variable BOOL FALSE  TRUE: OPEN CLOSE_SET External input for CLOSE operation TRUE, FALSE Input variable BOOL FALSE  TRUE: CLOSE TO_RST Time-out error external reset input TRUE, FALSE...
  • Page 464 Processing details ■One-shot output for command pulse period This function block performs one-shot output for command pulse period according to the operation from the faceplate or the input from the input variables (OPEN_SET, CLOSE_SET). • When the setting is performed with the faceplate or the value of the input variable (OPEN_SET) is changed from FALSE to TRUE, this function block outputs a command pulse signal (TRUE) from the output variable OPEN by the time period set with the command pulse period (DOT).
  • Page 465 Operation error There is no operation error. If the CLOSE command (or OPEN command) is issued while a command pulse signal (TRUE) is output from the output variable OPEN (or output variable CLOSE), the command pulse signals (TRUE) are output simultaneously from the output variable OPEN and output variable CLOSE.
  • Page 466: On/off Operation (2 Input/3 Output) (m+m_mval2)

    13.4 ON/OFF Operation (2 Input/3 Output) (M+M_MVAL2) M+M_MVAL2 This FB controls an ON/OFF motor valve (with intermediate status). FBD/LD M+M_MVAL2 OPEN_SET OPEN STOP_SET STOP_ CLOSE_SET CLOSE TO_RST OPEN_ST CLOSE_ST TRIP LOCAL REMOTE Applicable tag type MVAL2 Control mode   ...
  • Page 467 Setting data ■Input/output variable Variable Description Recommended range Type Data type name OPEN_SET External input for OPEN operation TRUE, FALSE Input variable BOOL FALSE  TRUE: OPEN STOP_SET External input for STOP operation TRUE, FALSE Input variable BOOL FALSE  TRUE: STOP CLOSE_SET External input for CLOSE operation TRUE, FALSE...
  • Page 468 Processing details ■One-shot output for command pulse period This function block performs one-shot output for command pulse period according to the operation from the faceplate or the input from the input variables (OPEN_SET, STOP_SET, CLOSE_SET). • When the setting is performed with the faceplate or the value of the input variable (OPEN_SET) is changed from FALSE to TRUE, this function block outputs a command pulse signal (TRUE) from the output variable OPEN by the time period set with the command pulse period (DOT).
  • Page 469 ■Disable alarm detection This function block sets whether to detect alarms (ALM) or not. Item Disable alarm detection processing Disable alarm detection by setting tag data If the following bits in the disable alarm detection (INH) are TRUE, no TRIPA and TOA of the alarm (ALM) will be detected.
  • Page 470: Timer 1 (timer Stops When Complete Flag Is On) (m+m_timer1)

    13.5 Timer 1 (Timer stops when COMPLETE flag is ON) (M+M_TIMER1) M+M_TIMER1 This function block is a clock timer. It stops counting the time when the timer count value reaches the set value. FBD/LD M+M_TIMER1 PRE_COMP COMP_ RST_ RS_START Applicable tag type TIMER1 Control mode ...
  • Page 471 Setting data ■Input/output variable Variable Description Recommended range Type Data type name External input for RUN operation TRUE, FALSE Input variable BOOL FALSE  TRUE: RUN External input for STOP operation TRUE, FALSE Input variable BOOL FALSE  TRUE: STOP RST_ External input for RESET operation TRUE, FALSE...
  • Page 472: Timer 2 (timer Continues When Complete Flag Is On) (m+m_timer2)

    13.6 Timer 2 (Timer continues when COMPLETE flag is ON) (M+M_TIMER2) M+M_TIMER2 This function block is a clock timer. It continues to count the time even if the time count value exceeds the set value, and the timer stops when the time count value reaches the timer high limit value. FBD/LD M+M_TIMER2 PRE_COMP...
  • Page 473 Setting data ■Input/output variable Variable Description Recommended range Type Data type name External input for RUN operation TRUE, FALSE Input variable BOOL FALSE  TRUE: RUN External input for STOP operation TRUE, FALSE Input variable BOOL FALSE  TRUE: STOP RST_ External input for RESET operation TRUE, FALSE...
  • Page 474: Counter 1 (counter Stops When Complete Flag Is On) (m+m_counter1)

    13.7 Counter 1 (Counter stops when COMPLETE flag is ON) (M+M_COUNTER1) M+M_COUNTER1 This function block is a counter that counts contact signal inputs. It stops counting the inputs when the count value reaches the set value. FBD/LD M+M_COUNTER1 PRE_COMP COMP_ RST_ RS_START Applicable tag type...
  • Page 475 Setting data ■Input/output variable Variable Description Recommended range Type Data type name External input for RUN operation TRUE, FALSE Input variable BOOL FALSE  TRUE: RUN External input for STOP operation TRUE, FALSE Input variable BOOL FALSE  TRUE: STOP RST_val External input for RESET operation TRUE, FALSE...
  • Page 476 ■Count processing Count RUN status RESET RESET/START Count initialization STOP (count value → low value) RESET Count stop status When the setting is performed with the faceplate or the value of the input variable (RUN) is changed from FALSE to TRUE, this function block stores the current value + 1 (counter value) in the process variable (PV) in the unit set with the counter multiplying factor (MULT).
  • Page 477: Counter 2 (counter Continues When Complete Flag Is On) (m+m_counter2)

    13.8 Counter 2 (Counter continues when COMPLETE flag is ON) (M+M_COUNTER2) M+M_COUNTER2 This function block is a counter that counts contact signal inputs. It continues to count the inputs even if the count value exceeds the set value, and stops counting the input when the count value reaches the counter high limit value. FBD/LD M+M_COUNTER2 PRE_COMP...
  • Page 478 Setting data ■Input/output variable Variable Description Recommended range Type Data type name External input for RUN operation TRUE, FALSE Input variable BOOL FALSE  TRUE: RUN External input for STOP operation TRUE, FALSE Input variable BOOL FALSE  TRUE: STOP RST_ External input for RESET operation TRUE, FALSE...
  • Page 479 ■Count processing Count RUN status RESET RESET/START STOP Count initialization (Count value → Low value) RESET Count STOP status When the setting is performed with the faceplate or the value of the input variable (RUN) is changed from FALSE to TRUE, this function block stores the current value + 1 (counter value) in the process variable (PV) in the unit set with the counter multiplying factor (MULT).
  • Page 480: Push Button Operation (5 Input/5 Output) (m+m_pb_)

    13.9 Push Button Operation (5 Input/5 Output) (M+M_PB_) M+M_PB_ This FB performs push button operation. FBD/LD M+M_PB_ SET1 OUT1 SET2 OUT2 SET3 OUT3 SET4 OUT4 SET5 OUT5 STATUS1 STATUS2 STATUS3 STATUS4 STATUS5 Applicable tag type Control mode    ...
  • Page 481 Setting data ■Input/output variable Variable Description Recommended range Type Data type name SET1 External input of OUT1 operation TRUE, FALSE Input variable BOOL FALSE  TRUE: ON SET2 External input of OUT2 operation TRUE, FALSE Input variable BOOL FALSE  TRUE: ON SET3 External input of OUT3 operation TRUE, FALSE...
  • Page 482 Processing details ■One-shot output for command pulse period This function block performs one-shot output for command pulse period according to the operation from the faceplate or the input from the input variable (SET1 to SET5). • When the setting is performed with the faceplate or the value of the input variable (SET1 to SET5) is changed from FALSE to TRUE, this function block outputs a command pulse signal (TRUE) from the output variable (OUT1 to OUT5) by the time period set with the command pulse period (DOT).
  • Page 483 Program example Configuring a radio button with three buttons On the faceplate, a one-shot command can be output by clicking each button, and the name of the ON/OFF state can be displayed. In addition, combinations of the buttons enable operations similar to radio buttons. 13 STATUS TAG 13.9 Push Button Operation (5 Input/5 Output) (M+M_PB_)
  • Page 484: Chapter 14 Alarm Tag

    ALARM TAG The following FBs perform alarm notification. 14.1 Alarm (M+M_ALARM) M+M_ALARM This function block displays the alarms for the input pins ALMIN1 to ALMIN8 to which TRUE is input on the "Alarm List" window of the PX Developer monitor tool. FBD/LD M+M_ALARM ALMIN1...
  • Page 485 Setting data ■Input/output variable Variable Description Recommended Type Data type name range ALMIN1 Alarm 1 input signal TRUE: Detected Input variable BOOL FALSE: Reset ALMIN2 Alarm 2 input signal TRUE: Detected Input variable BOOL FALSE: Reset ALMIN3 Alarm 3 input signal TRUE: Detected Input variable BOOL...
  • Page 486: Points Alarm (m+m_alarm_64pt_)

    14.2 64 Points Alarm (M+M_ALARM_64PT_) M+M_ALARM_64PT_ This function block displays the alarms for the bits of the input pins ALMIN_W1 to ALMIN_W4 to which TRUE is input on the "Alarm List" window of the PX Developer monitor tool. FBD/LD M+M_ALARM_64PT_ ALMIN_W1 ALMIN_W2 ALMIN_W3...
  • Page 487 Operation error There is no operation error. 14 ALARM TAG 14.2 64 Points Alarm (M+M_ALARM_64PT_)
  • Page 488: Chapter 15 Message Tag

    MESSAGE TAG The following FBs perform message notification. 15.1 Message (M+M_MESSAGE) M+M_MESSAGE This function block displays the events for the input pins MSGIN1 to MSGIN8 to which TRUE is input on the "Event List" window of the PX Developer monitor tool. FBD/LD M+M_MESSAGE MSGIN1...
  • Page 489 Setting data ■Input/output variable Variable Description Recommended Type Data type name range MSGIN1 Message 1 input signal TRUE: Detected Input variable BOOL FALSE: Reset MSGIN2 Message 2 input signal TRUE: Detected Input variable BOOL FALSE: Reset MSGIN3 Message 3 input signal TRUE: Detected Input variable BOOL...
  • Page 490: Points Message (m+m_message_64pt_)

    15.2 64 Points Message (M+M_MESSAGE_64PT_) M+M_MESSAGE_64PT_ This function block displays the events for the bits of the input pins MSGIN_W1 to MSGIN_W4 to which TRUE is input on the "Event List" window of the PX Developer monitor tool. FBD/LD M+M_MESSAGE_64PT_ MSGIN_W1 MSGIN_W2 MSGIN_W3...
  • Page 491 Operation error There is no operation error. 15 MESSAGE TAG 15.2 64 Points Message (M+M_MESSAGE_64PT_)
  • Page 492: Appendices

    APPENDICES Appendix 1 Tag Data List How to read items in the list is shown below. Item Description Offset Indicates the offset word of memory data inside the tags. Label Indicates tag data (tag member). Data type Indicates the memory data structure. •...
  • Page 493: Pid

    Structure name: M+TM_PID Offset Label Data Setting/ Initial Number Unit Application Storage Tag access type Storage range value of digits after the High decimal limit limit point FUNC   Tag Function Code System    BOOL FALSE TRUE TRUE Control Mode: User...
  • Page 494 Offset Label Data Setting/ Initial Number Unit Application Storage Tag access type Storage range value of digits after the High decimal limit limit point   BOOL FALSE TRUE FALSE Output Low Limit User Common Alarm (condition 2)   BOOL FALSE TRUE...
  • Page 495 Offset Label Data Setting/ Initial Number Unit Application Storage Tag access type Storage range value of digits after the High decimal limit limit point    BOOL FALSE TRUE FALSE Alarm Level of Output User Low Limit Alarm  ...
  • Page 496 Offset Label Data Setting/ Initial Number Unit Application Storage Tag access type Storage range value of digits after the High decimal limit limit point REAL UNIT PV Low Limit Alarm User M+P_PHPL Value REAL 100.0 UNIT PV High High Limit User M+P_PHPL Alarm Value...
  • Page 497 Offset Label Data Setting/ Initial Number Unit Application Storage Tag access type Storage range value of digits after the High decimal limit limit point    DOM_AT_START_SET BOOL FALSE TRUE FALSE Monitor Output Buffer: Tag data Start Setting access control ...
  • Page 498: 2pid

    2PID Structure name: M+TM_2PID Offset Label Data Setting/ Initial Number Unit Application Storage Tag access type Storage range value of digits after the High decimal limit limit point FUNC   Tag Function Code System  BOOL FALSE TRUE TRUE ...
  • Page 499 Offset Label Data Setting/ Initial Number Unit Application Storage Tag access type Storage range value of digits after the High decimal limit limit point   BOOL FALSE TRUE FALSE Output Low Limit User Common Alarm (condition 2)   BOOL FALSE TRUE...
  • Page 500 Offset Label Data Setting/ Initial Number Unit Application Storage Tag access type Storage range value of digits after the High decimal limit limit point    BOOL FALSE TRUE FALSE Alarm Level of Output User Low Limit Alarm  ...
  • Page 501 Offset Label Data Setting/ Initial Number Unit Application Storage Tag access type Storage range value of digits after the High decimal limit limit point REAL UNIT PV Low Limit Alarm User M+P_PHPL Value REAL 100.0 UNIT PV High High Limit User M+P_PHPL Alarm Value...
  • Page 502 Offset Label Data Setting/ Initial Number Unit Application Storage Tag access type Storage range value of digits after the High decimal limit limit point AT1TOUT2 REAL 9999 10.0 Time-out Interval after User M+P_2PID(_T) Maximum Slope for    DOM_AT_START_SET BOOL FALSE TRUE...
  • Page 503: 2pidh

    2PIDH Structure name: M+TM_2PIDH Offset Label Data Setting/ Initial Number Unit Application Storage Tag access FB type Storage range value of digits after the High decimal limit limit point FUNC   Tag Function Code System    BOOL FALSE TRUE TRUE...
  • Page 504 Offset Label Data Setting/ Initial Number Unit Application Storage Tag access FB type Storage range value of digits after the High decimal limit limit point   BOOL FALSE TRUE FALSE Output Low Limit User Common Alarm (condition 2)  ...
  • Page 505 Offset Label Data Setting/ Initial Number Unit Application Storage Tag access FB type Storage range value of digits after the High decimal limit limit point    BOOL FALSE TRUE FALSE Alarm Level of User Output Low Limit Alarm ...
  • Page 506 Offset Label Data Setting/ Initial Number Unit Application Storage Tag access FB type Storage range value of digits after the High decimal limit limit point REAL -999999 999999 UNIT PV Engineering User M+P_PHPL Value Low Limit REAL 100.0 UNIT PV High Limit User M+P_PHPL Alarm Value...
  • Page 507 Offset Label Data Setting/ Initial Number Unit Application Storage Tag access FB type Storage range value of digits after the High decimal limit limit point AT1ST REAL 9999 Sampling Interval User M+P_2PIDH(_T)_ Time for AT1 AT1TOUT1 REAL 9999 100.0 Time-out Interval User M+P_2PIDH(_T)_ for AT1/AT2...
  • Page 508 Offset Label Data Setting/ Initial Number Unit Application Storage Tag access FB type Storage range value of digits after the High decimal limit limit point    DIM_AT_RUN BOOL FALSE TRUE FALSE Monitor Input System Buffer: Tuning   ...
  • Page 509: Pidp

    PIDP Structure name: M+TM_PIDP Offset Label Data Setting/ Initial Number Unit Application Storage Tag access FB type Storage range value of digits after the High decimal limit limit point FUNC   Tag Function Code System    BOOL FALSE TRUE TRUE...
  • Page 510 Offset Label Data Setting/ Initial Number Unit Application Storage Tag access FB type Storage range value of digits after the High decimal limit limit point   BOOL FALSE TRUE FALSE Output Low Limit User Common Alarm (condition 2)  ...
  • Page 511 Offset Label Data Setting/ Initial Number Unit Application Storage Tag access FB type Storage range value of digits after the High decimal limit limit point    BOOL FALSE TRUE FALSE Alarm Level of User Output Low Limit Alarm ...
  • Page 512 Offset Label Data Setting/ Initial Number Unit Application Storage Tag access FB type Storage range value of digits after the High decimal limit limit point REAL -999999 999999 UNIT PV Engineering User M+P_PHPL Value Low Limit REAL 100.0 UNIT PV High Limit User M+P_PHPL Alarm Value...
  • Page 513: Spi

    Structure name: M+TM_SPI Offset Label Data Setting/ Initial Number Unit Application Storage Tag access type Storage range value of digits after the High decimal limit limit point FUNC   Tag Function Code System    BOOL FALSE TRUE TRUE Control Mode: User...
  • Page 514 Offset Label Data Setting/ Initial Number Unit Application Storage Tag access type Storage range value of digits after the High decimal limit limit point   BOOL FALSE TRUE FALSE Output Low Limit User Common Alarm (condition 2)   BOOL FALSE TRUE...
  • Page 515 Offset Label Data Setting/ Initial Number Unit Application Storage Tag access type Storage range value of digits after the High decimal limit limit point    BOOL FALSE TRUE FALSE Alarm Level of Output User Low Limit Alarm  ...
  • Page 516 Offset Label Data Setting/ Initial Number Unit Application Storage Tag access type Storage range value of digits after the High decimal limit limit point REAL 100.0 UNIT PV High High Limit User M+P_PHPL Alarm Value REAL UNIT PV Low Low Limit User M+P_PHPL Alarm Value...
  • Page 517: Ipd

    Structure name: M+TM_IPD Offset Label Data Setting/ Initial Number Unit Application Storage Tag access type Storage range value of digits after the High decimal limit limit point FUNC   Tag Function Code System    BOOL FALSE TRUE TRUE Control Mode: User...
  • Page 518 Offset Label Data Setting/ Initial Number Unit Application Storage Tag access type Storage range value of digits after the High decimal limit limit point   BOOL FALSE TRUE FALSE Output Low Limit User Common Alarm (condition 2)   BOOL FALSE TRUE...
  • Page 519 Offset Label Data Setting/ Initial Number Unit Application Storage Tag access type Storage range value of digits after the High decimal limit limit point    BOOL FALSE TRUE FALSE Alarm Level of Output User Low Limit Alarm  ...
  • Page 520 Offset Label Data Setting/ Initial Number Unit Application Storage Tag access type Storage range value of digits after the High decimal limit limit point REAL 100.0 UNIT PV High High Limit User M+P_PHPL Alarm Value REAL UNIT PV Low Low Limit User M+P_PHPL Alarm Value...
  • Page 521: Bpi

    Structure name: M+TM_BPI Offset Label Data Setting/ Initial Number Unit Application Storage Tag access type Storage range value of digits after the High decimal limit limit point FUNC   Tag Function Code System    BOOL FALSE TRUE TRUE Control Mode: User...
  • Page 522 Offset Label Data Setting/ Initial Number Unit Application Storage Tag access type Storage range value of digits after the High decimal limit limit point   BOOL FALSE TRUE FALSE Output Low Limit User Common Alarm (condition 2)   BOOL FALSE TRUE...
  • Page 523 Offset Label Data Setting/ Initial Number Unit Application Storage Tag access type Storage range value of digits after the High decimal limit limit point    BOOL FALSE TRUE FALSE Alarm Level of Output User Low Limit Alarm  ...
  • Page 524 Offset Label Data Setting/ Initial Number Unit Application Storage Tag access type Storage range value of digits after the High decimal limit limit point REAL 100.0 UNIT PV High High Limit User M+P_PHPL Alarm Value REAL UNIT PV Low Low Limit User M+P_PHPL Alarm Value...
  • Page 525 Structure name: M+TM_R Offset Label Data Setting/ Initial Number Unit Application Storage Tag access type Storage range value of digits after the High decimal limit limit point FUNC   Tag Function Code System    BOOL FALSE TRUE TRUE Control Mode: User...
  • Page 526 Offset Label Data Setting/ Initial Number Unit Application Storage Tag access type Storage range value of digits after the High decimal limit limit point   BOOL FALSE TRUE FALSE Output Low Limit User Common Alarm (condition 2)   BOOL FALSE TRUE...
  • Page 527 Offset Label Data Setting/ Initial Number Unit Application Storage Tag access type Storage range value of digits after the High decimal limit limit point    BOOL FALSE TRUE FALSE Alarm Level of Output User Low Limit Alarm  ...
  • Page 528 Offset Label Data Setting/ Initial Number Unit Application Storage Tag access type Storage range value of digits after the High decimal limit limit point REAL UNIT PV Low Low Limit User M+P_PHPL Alarm Value  REAL RMIN RMAX 100.0 SV High Limit Value User ...
  • Page 529: Onf2

    ONF2 Structure name: M+TM_ONF2 Offset Label Data Setting/ Initial Number Unit Application Storage Tag access type Storage range value of digits after the High decimal limit limit point FUNC   Tag Function Code System    BOOL FALSE TRUE TRUE Control Mode:...
  • Page 530 Offset Label Data Setting/ Initial Number Unit Application Storage Tag access type Storage range value of digits after the High decimal limit limit point   DPNI BOOL FALSE TRUE FALSE Disable Negative User Common Variation Rate Alarm   DPPI BOOL FALSE...
  • Page 531 Offset Label Data Setting/ Initial Number Unit Application Storage Tag access type Storage range value of digits after the High decimal limit limit point REAL -999999 999999 UNIT PV Engineering User M+P_PHPL Value Low Limit REAL 100.0 UNIT PV High Limit Alarm User M+P_PHPL Value...
  • Page 532: Onf3

    ONF3 Structure name: M+TM_ONF3 Offset Label Data Setting/ Initial Number Unit Application Storage Tag access type Storage range value of digits after the High decimal limit limit point FUNC   Tag Function Code System  BOOL FALSE TRUE TRUE ...
  • Page 533 Offset Label Data Setting/ Initial Number Unit Application Storage Tag access type Storage range value of digits after the High decimal limit limit point   DPNI BOOL FALSE TRUE FALSE Disable Negative User Common Variation Rate Alarm   DPPI BOOL FALSE...
  • Page 534 Offset Label Data Setting/ Initial Number Unit Application Storage Tag access type Storage range value of digits after the High decimal limit limit point REAL -999999 999999 100.0 UNIT PV Engineering User M+P_PHPL Value High Limit REAL -999999 999999 UNIT PV Engineering User M+P_PHPL...
  • Page 535: Moni

    MONI Structure name: M+TM_MONI Offset Label Data Setting/ Initial Number Unit Application Storage Tag access type Storage range value of digits after the High decimal limit limit point FUNC   Tag Function Code System     OVRI BOOL FALSE TRUE...
  • Page 536 Offset Label Data Setting/ Initial Number Unit Application Storage Tag access type Storage range value of digits after the High decimal limit limit point    CTNO Lockout Tag No. System    CTFN WORD H0002 H0000 Lockout Tag Function System ...
  • Page 537: Swm

    Structure name: M+TM_SWM Offset Label Data Setting/ Initial Number Unit Application Storage Tag access type Storage range value of digits after the High decimal limit limit point FUNC   Tag Function Code System    BOOL FALSE TRUE TRUE Control Mode: User...
  • Page 538 Offset Label Data Setting/ Initial Number Unit Application Storage Tag access type Storage range value of digits after the High decimal limit limit point   DVLI BOOL FALSE TRUE FALSE Disable Large User Common Deviation Alarm   DPNI BOOL FALSE TRUE...
  • Page 539 Offset Label Data Setting/ Initial Number Unit Application Storage Tag access type Storage range value of digits after the High decimal limit limit point REAL -999999 999999 UNIT PV Engineering Value User M+P_PHPL Low Limit REAL 100.0 UNIT PV High Limit Alarm User M+P_PHPL Value...
  • Page 540: Mwm

    Structure name: M+TM_MWM Offset Label Data Setting/ Initial Number Unit Application Storage Tag access type Storage range value of digits after the High decimal limit limit point FUNC   Tag Function Code System  BOOL FALSE TRUE TRUE  ...
  • Page 541 Offset Label Data Setting/ Initial Number Unit Application Storage Tag access type Storage range value of digits after the High decimal limit limit point   DPNI BOOL FALSE TRUE FALSE Disable Negative User Common Variation Rate Alarm   DPPI BOOL FALSE...
  • Page 542 Offset Label Data Setting/ Initial Number Unit Application Storage Tag access type Storage range value of digits after the High decimal limit limit point REAL UNIT PV Low Limit Alarm User M+P_PHPL Value REAL 100.0 UNIT PV High High Limit User M+P_PHPL Alarm Value...
  • Page 543 Structure name: M+TM_BC Offset Label Data Setting/Storage Initial Number Unit Application Storage type range value of digits access after the High decimal limit limit point FUNC   Tag Function Code System    DPPA BOOL FALSE TRUE FALSE Positive Variation User Common...
  • Page 544 Offset Label Data Setting/Storage Initial Number Unit Application Storage type range value of digits access after the High decimal limit limit point    DIM_RUN BOOL FALSE TRUE FALSE Monitor Input Buffer: System    DIM_HOLD BOOL FALSE TRUE FALSE Monitor Input Buffer:...
  • Page 545: Psum

    PSUM Structure name: M+TM_PSUM Offset Label Data Setting/Storage Initial Number Unit Application Storage type range value of digits access after the High decimal limit limit point FUNC   Tag Function Code System     CTNO Lockout Tag No. System CTFN WORD...
  • Page 546: Sel

    Structure name: M+TM_SEL Offset Label Data Setting/ Initial Number Unit Application Storage Tag access type Storage range value of digits after the High decimal limit limit point FUNC   Tag Function Code System  BOOL FALSE TRUE TRUE  ...
  • Page 547 Offset Label Data Setting/ Initial Number Unit Application Storage Tag access type Storage range value of digits after the High decimal limit limit point    BOOL FALSE TRUE FALSE Alarm Level of Output User Low Limit Alarm  ...
  • Page 548: Mout

    MOUT Structure name: M+TM_MOUT Offset Label Data Setting/ Initial Number Unit Application Storage Tag access type Storage range value of digits after the High decimal limit limit point FUNC   Tag Function Code System  BOOL FALSE TRUE TRUE ...
  • Page 549: Pgs

    Structure name: M+TM_PGS Offset Label Data Setting/ Initial Number Unit Application Storage Tag access type Storage range value of digits after the High decimal limit limit point FUNC   Tag Function Code System    BOOL FALSE TRUE TRUE Control Mode: User...
  • Page 550 Offset Label Data Setting/ Initial Number Unit Application Storage Tag access type Storage range value of digits after the High decimal limit limit point REAL 999999 Setting Value User M+P_PGS   Operation Type User M+P_PGS REAL 100.0 MV High Limit Value User M+P_PGS REAL...
  • Page 551 Offset Label Data Setting/ Initial Number Unit Application Storage Tag access type Storage range value of digits after the High decimal limit limit point REAL Setting Output 6 User M+P_PGS REAL Setting Output 7 User M+P_PGS REAL Setting Output 8 User M+P_PGS REAL...
  • Page 552: Pgs2

    PGS2 Structure name: M+TM_PGS2 Offset Label Data Setting/ Initial Number Unit Application Storage type Storage range value of digits access FB after the High decimal limit limit point FUNC   Tag Function Code System  BOOL FALSE TRUE TRUE ...
  • Page 553 Offset Label Data Setting/ Initial Number Unit Application Storage type Storage range value of digits access FB after the High decimal limit limit point  -32768 32767 UNIT Engineering Value High User M+P_PGS2_ Limit  -32768 32767 UNIT Engineering Value Low User M+P_PGS2_ Limit...
  • Page 554 Offset Label Data Setting/ Initial Number Unit Application Storage type Storage range value of digits access FB after the High decimal limit limit point  T23_ 32767 s(min) Time Span of Step 23 User M+P_PGS2_  SV23 -32768 32767 UNIT Setting Value of Step 23 User M+P_PGS2_...
  • Page 555: Pval

    PVAL Structure name: M+TM_PVAL Offset Label Data Setting/ Initial Number Unit Application Storage Tag access type Storage range value of digits after the High decimal limit limit point FUNC   Tag Function Code System    BOOL FALSE TRUE TRUE Control Mode:...
  • Page 556 Offset Label Data Setting/ Initial Number Unit Application Storage Tag access type Storage range value of digits after the High decimal limit limit point   BOOL FALSE TRUE FALSE Disable Time-out User Common Alarm   TRIPI BOOL FALSE TRUE FALSE Disable Trip Alarm...
  • Page 557 Offset Label Data Setting/ Initial Number Unit Application Storage Tag access type Storage range value of digits after the High decimal limit limit point  REAL -100 Deviation of Valve System Opening REAL Hysteresis User  DBND REAL Dead Band User ...
  • Page 558 Offset Label Data Setting/ Initial Number Unit Application Storage Tag access type Storage range value of digits after the High decimal limit limit point  REAL Setting Value of Valve User Opening (Target)  DSVL REAL 100.0 SV Variation Rate User High Limit Value ...
  • Page 559: Htcl

    HTCL Structure name: M+TM_HTCL Offset Label Data Setting/ Initial Number Unit Application Storage Tag access type Storage range value of digits after the High decimal limit limit point FUNC   Tag Function Code System    BOOL FALSE TRUE TRUE Control Mode:...
  • Page 560 Offset Label Data Setting/ Initial Number Unit Application Storage Tag access type Storage range value of digits after the High decimal limit limit point   MLI_HT BOOL FALSE TRUE FALSE Disable Heating User Common Output Low Limit Alarm  ...
  • Page 561 Offset Label Data Setting/ Initial Number Unit Application Storage Tag access type Storage range value of digits after the High decimal limit limit point  MH_HT REAL 100.0 Heating MV High Limit User Value ML_HT REAL Heating MV Low Limit User ...
  • Page 562: Nrev

    NREV Structure name: M+TM_NREV Offset Label Data Setting/ Initial Number Unit Application Storage type Storage range value of digits after the High decimal limit limit point FUNC   Tag Function Code System BOOL FALSE TRUE TRUE   Control Mode: MANUAL User (condition 1) ...
  • Page 563: Rev

    Structure name: M+TM_REV Offset Label Data Setting/ Initial Number Unit Application Storage type Storage range value of digits after the High decimal limit limit point FUNC   Tag Function Code System   BOOL FALSE TRUE TRUE Control Mode: MANUAL User (condition 1) ...
  • Page 564: Mval1

    MVAL1 Structure name: M+TM_MVAL1 Offset Label Data Setting/ Initial Number Unit Application Storage type Storage range value of digits after the High decimal limit limit point FUNC   Tag Function Code System BOOL FALSE TRUE TRUE   Control Mode: MANUAL User (condition 1) ...
  • Page 565: Mval2

    MVAL2 Structure name: M+TM_MVAL2 Offset Label Data Setting/ Initial Number Unit Application Storage type Storage range value of digits after the High decimal limit limit point FUNC   Tag Function Code System   BOOL FALSE TRUE TRUE Control Mode: MANUAL User (condition 1) ...
  • Page 566: Timer1

    TIMER1 Structure name: M+TM_TIMER1 Offset Label Data Setting/Storage Initial Number Unit Application Storage type range value of digits after the High decimal limit limit point FUNC   Tag Function Code System CTNO   Lockout Tag No. System  ...
  • Page 567: Timer2

    TIMER2 Structure name: M+TM_TIMER2 Offset Label Data Setting/Storage Initial Number Unit Application Storage type range value of digits after the High decimal limit limit point FUNC   Tag Function Code System   CTNO Lockout Tag No. System CTFN WORD H0002 H0000...
  • Page 568: Count1

    COUNT1 Structure name: M+TM_COUNT1 Offset Label Data Setting/Storage Initial Number Unit Application Storage type range value of digits after the High decimal limit limit point FUNC   Tag Function Code System CTNO   Lockout Tag No. System  ...
  • Page 569: Count2

    COUNT2 Structure name: M+TM_COUNT2 Offset Label Data Setting/Storage Initial Number Unit Application Storage type range value of digits after the High decimal limit limit point FUNC   Tag Function Code System   CTNO Lockout Tag No. System CTFN WORD H0002 H0000...
  • Page 570 Structure name: M+TM_PB Offset Label Data Setting/ Initial Number Unit Application Storage type Storage range value of digits after the High decimal limit limit point FUNC   Tag Function Code System BOOL FALSE TRUE TRUE   Control Mode: MANUAL User (condition 1) ...
  • Page 571: Alm

    Structure name: M+TM_ALM Offset Label Data Setting/Storage range Initial Unit Application Storage type value Low limit High limit FUNC  Tag Function Code System  ALM1 BOOL FALSE TRUE FALSE Alarm 1 System  ALM2 BOOL FALSE TRUE FALSE Alarm 2 System ...
  • Page 572: Alm_64pt

    ALM_64PT Structure name: M+TM_ALM_64PT Offset Label Data Setting/Storage range Initial Unit Application Storage type value Low limit High limit  FUNC Tag Function Code System  ALM1 BOOL FALSE TRUE FALSE Alarm 1 to 16: Alarm 1 System  ALM2 BOOL FALSE TRUE...
  • Page 573 Offset Label Data Setting/Storage range Initial Unit Application Storage type value Low limit High limit ALM33 BOOL FALSE TRUE FALSE  Alarm 33 to 48: Alarm 33 System  ALM34 BOOL FALSE TRUE FALSE Alarm 33 to 48: Alarm 34 System ALM35 BOOL...
  • Page 574 Offset Label Data Setting/Storage range Initial Unit Application Storage type value Low limit High limit  ALML1 BOOL FALSE TRUE FALSE Alarm Level 1 to 16: Alarm Level of User Alarm 1 ALML2 BOOL FALSE TRUE FALSE  Alarm Level 1 to 16: Alarm Level of User Alarm 2 ...
  • Page 575 Offset Label Data Setting/Storage range Initial Unit Application Storage type value Low limit High limit ALML17 BOOL FALSE TRUE FALSE  Alarm Level 17 to 32: Alarm Level of User Alarm 17  ALML18 BOOL FALSE TRUE FALSE Alarm Level 17 to 32: Alarm Level of User Alarm 18 ...
  • Page 576 Offset Label Data Setting/Storage range Initial Unit Application Storage type value Low limit High limit  ALML33 BOOL FALSE TRUE FALSE Alarm Level 33 to 48: Alarm Level of User Alarm 33 ALML34 BOOL FALSE TRUE FALSE  Alarm Level 33 to 48: Alarm Level of User Alarm 34 ...
  • Page 577 Offset Label Data Setting/Storage range Initial Unit Application Storage type value Low limit High limit ALML49 BOOL FALSE TRUE FALSE  Alarm Level 49 to 64: Alarm Level of User Alarm 49  ALML50 BOOL FALSE TRUE FALSE Alarm Level 49 to 64: Alarm Level of User Alarm 50 ...
  • Page 578 Offset Label Data Setting/Storage range Initial Unit Application Storage type value Low limit High limit  ALM25NO 10000 Alarm 25 Name No. User  ALM26NO 10000 Alarm 26 Name No. User  ALM27NO 10000 Alarm 27 Name No. User  ALM28NO 10000 Alarm 28 Name No.
  • Page 579: Msg

    Structure name: M+TM_MSG Offset Label Data Setting/Storage range Initial Unit Application Storage type value Low limit High limit FUNC  Tag Function Code System  MSG1 BOOL FALSE TRUE FALSE Message: Message 1 System  MSG2 BOOL FALSE TRUE FALSE Message: Message 2 System ...
  • Page 580: Msg_64pt

    MSG_64PT Structure name: M+TM_MSG_64PT Offset Label Data Setting/Storage range Initial Unit Application Storage type value Low limit High limit  FUNC Tag Function Code System  MSG1 BOOL FALSE TRUE FALSE Message 1 to 16: Message 1 System  MSG2 BOOL FALSE TRUE...
  • Page 581 Offset Label Data Setting/Storage range Initial Unit Application Storage type value Low limit High limit MSG33 BOOL FALSE TRUE FALSE  Message 33 to 48: Message 33 System  MSG34 BOOL FALSE TRUE FALSE Message 33 to 48: Message 34 System MSG35 BOOL...
  • Page 582 Offset Label Data Setting/Storage range Initial Unit Application Storage type value Low limit High limit  MSGCHK1 BOOL FALSE TRUE FALSE Message Check 1 to 16: Message User Check 1 MSGCHK2 BOOL FALSE TRUE FALSE  Message Check 1 to 16: Message User Check 2 ...
  • Page 583 Offset Label Data Setting/Storage range Initial Unit Application Storage type value Low limit High limit MSGCHK17 BOOL FALSE TRUE FALSE  Message Check 17 to 32: Message User Check 17  MSGCHK18 BOOL FALSE TRUE FALSE Message Check 17 to 32: Message User Check 18 ...
  • Page 584 Offset Label Data Setting/Storage range Initial Unit Application Storage type value Low limit High limit  MSGCHK33 BOOL FALSE TRUE FALSE Message Check 33 to 48: Message User Check 33 MSGCHK34 BOOL FALSE TRUE FALSE  Message Check 33 to 48: Message User Check 34 ...
  • Page 585 Offset Label Data Setting/Storage range Initial Unit Application Storage type value Low limit High limit MSGCHK49 BOOL FALSE TRUE FALSE  Message Check 49 to 64: Message User Check 49  MSGCHK50 BOOL FALSE TRUE FALSE Message Check 49 to 64: Message User Check 50 ...
  • Page 586 Offset Label Data Setting/Storage range Initial Unit Application Storage type value Low limit High limit  MSG25NO 10000 Message 25 Name No. User  MSG26NO 10000 Message 26 Name No. User  MSG27NO 10000 Message 27 Name No. User  MSG28NO 10000 Message 28 Name No.
  • Page 587: Correspondence Table Of Tag Types And Tag Access Fbs

    Correspondence table of tag types and tag access FBs The following table lists tag access FBs that can be used in user-defined tag FBs. Classification Tag type Tag access FB Loop tag M+P_IN, M+P_OUT1, M+P_DUTY, M+P_PID(_T), M+P_PHPL, M+P_MCHG 2PID M+P_IN, M+P_OUT1, M+P_DUTY, M+P_2PID(_T), M+P_PHPL, M+P_MCHG 2PIDH M+P_IN, M+P_OUT3_, M+P_PHPL, M+P_2PIDH(_T)_, M+P_MCHG PIDP...
  • Page 588: Correspondence Table Of Tag Types And Tag Fbs

    Correspondence table of tag types and tag FBs The following table lists tag FBs that correspond to each of tag types. Classification Tag type Tag FB Loop tag M+M_PID(_T), M+M_PID_DUTY(_T) 2PID M+M_2PID(_T), M+M_2PID_DUTY(_T) 2PIDH M+M_2PIDH(_T)_ PIDP M+M_PIDP(_T), M+M_PIDP_EX(_T)_ M+M_SPI(_T) M+M_IPD(_T) M+M_BPI(_T) M+M_R(_T) ONF2...
  • Page 589: Correspondence Table Of Tag Types And Alarms

    Correspondence table of tag types and alarms The following table lists alarms that correspond to each of tag types. Classification Tag type Alarm Loop tag SPA, DMLA, OOA, SEA, HHA, LLA, PHA, PLA, DPPA, DPNA, DVLA, MHA, MLA 2PID SPA, DMLA, OOA, SEA, HHA, LLA, PHA, PLA, DPPA, DPNA, DVLA, MHA, MLA 2PIDH SPA, DMLA, OOA, SEA, HHA, LLA, PHA, PLA, DPPA, DPNA, DVLA, MHA, MLA, SVHA, SVLA, DSVLA...
  • Page 590: Correspondence Table Of Tag Types And Control Modes

    Correspondence table of tag types and control modes The following table lists control modes that correspond to each of tag types. (Only for the tag types that can switch the control mode) Classification Tag type Control mode Loop tag MAN, AUT, CAS, CMV, CSV 2PID MAN, AUT, CAS, CMV, CSV 2PIDH...
  • Page 591: Correspondence Table Of Tag Types And I/o Modes

    Correspondence table of tag types and I/O modes The following table lists I/O modes that correspond to each of tag types. (Only for the tag types that can switch the I/O mode) Classification Tag type I/O mode Loop tag NOR, SIM, OVR, AT1 2PID NOR, SIM, OVR, AT1 2PIDH...
  • Page 592: Appendix 2 Approximate Number Of Steps

    Appendix 2 Approximate Number of Steps List of number of steps The following table lists the approximate number of steps of the process control function blocks. Item Approximate number of steps M+P_HS M+P_HS_E M+P_LS M+P_LS_E M+P_MID M+P_MID_E M+P_AVE M+P_AVE_E M+P_ABS M+P_ABS_E M+P_FG M+P_IFG...
  • Page 593 Item Approximate number of steps M+P_BC M+P_MSET_ M+P_R_T M+P_R M+P_PID_T M+P_PID M+P_2PID_T M+P_2PID M+P_2PIDH_T_ 1810 M+P_2PIDH_ 1770 M+P_PIDP_T M+P_PIDP M+P_PIDP_EX_T_ M+P_PIDP_EX_ M+P_SPI_T M+P_SPI M+P_IPD_T M+P_IPD M+P_BPI_T M+P_BPI M+P_PHPL M+P_ONF2_T M+P_ONF2 M+P_ONF3_T M+P_ONF3 M+P_PGS M+P_PGS2_ 1770 M+P_SEL M+P_SEL_T1 M+P_SEL_T2 M+P_SEL_T3_ M+P_MCHG M+M_PID_T M+M_PID M+M_PID_DUTY_T...
  • Page 594 Item Approximate number of steps M+M_R M+M_ONF2_T M+M_ONF2 M+M_ONF3_T M+M_ONF3 M+M_MONI M+M_MWM M+M_BC M+M_PSUM M+M_SEL M+M_SEL_T1 M+M_SEL_T2 M+M_SEL_T3_ M+M_MOUT M+M_PGS M+M_PGS2_ M+M_SWM_ M+M_PVAL_T_ 1350 M+M_HTCL_T_ 1380 M+M_NREV M+M_REV M+M_MVAL1 M+M_MVAL2 M+M_TIMER1 M+M_TIMER2 M+M_COUNTER1 M+M_COUNTER2 M+M_PB_ M+M_ALARM M+M_ALARM_64PT_ M+M_MESSAGE M+M_MESSAGE_64PT_ APPX Appendix 2 Approximate Number of Steps...
  • Page 595: Increasing Number Of Steps By The Process Control Extension

    Increasing number of steps by the process control extension When the process control extension is enabled, the number of steps increases comparing when it is not used. The following table lists the increasing number of steps. Execution type of program file Program block Increasing number of steps Scan...
  • Page 596: Appendix 3 Related Functions Of Process

    Appendix 3 Related Functions of Process This section describes functions related to process control. Auto tuning The auto tuning function detects dynamic characteristics of a control target and automatically tunes the proportional gain (Kp), integral time (Ti), and derivative time (Td) for PID to suitable values. The auto tuning function has two methods: step response method and limit cycle method.
  • Page 597 Step response method ■Operation method and processing details Perform the following procedure after the manipulated value is held and the process variable is stabilized. Display the auto tuning window of the PX Developer monitor tool. [Control Panel]  [Details] button on the faceplate  [Auto Tuning] button  [Select Auto Tuning Operations] window  Select [Executes Auto Tuning by Step Response method].
  • Page 598 ■Operation details of step response method The manipulated value is output in step form to the actual plant, and each constant is determined according to the maximum slope and equivalent dead time. The following operations are automatically performed. The generated value is saved in P, I, and D areas of the tag data. Manipulated Step manipulated variable variable MV...
  • Page 599 ■Fine tuning after auto tuning After auto tuning is completed, the change of process variable (PV) in relation to the setting value (SV) is observed on the tuning setting execution window of the PX Developer monitor tool. The optimal values are obtained by adjusting the P, I, and D values.
  • Page 600 Limit cycle method ■Operation method and processing details Display the [Execute Auto Tuning (Limit Cycle method)] window of the PX Developer monitor tool. [Control Panel]  [Details] button on the faceplate  [Auto Tuning] button  [Select Auto Tuning Operations] window  Select [Executes Auto Tuning by Limit Cycle method].
  • Page 601 ■Operation details of the limit cycle method ● Generation and measurement of the limit cycle waveform In the AUTO TUNING mode, the PV limit cycle waveform is generated by performing the 2-position ON/OFF operation of MV output three times. The 2-position ON/OFF operation is performed under the following conditions. Control operation First MV output 2-position ON/OFF operation...
  • Page 602 PV > SV (PN = 0) Oscillation period Tc Oscillation Hysteresis amplitude Xc AT2HS Hysteresis Oscillation AT2HS amplitude Xc AT2MVH (2-position output) AT2MVL Auto Auto tuning mode Auto mode mode (1) 1st 2-position operation (2) 2nd 2-position operation (3) 3rd 2-position operation The oscillation amplitude Xc is calculated by measuring and averaging out plus side and minus side maximum values of |PV - SV|.
  • Page 603: Various Controls

    Various controls Cascade control The cascade control consists of the primary loop and secondary loop. This control detects disturbance entering secondary loop in an early stage and absorbs them into secondary loop to remove the effect on the process and improve the whole control performance.
  • Page 604 ■Cascade direct For 2PIDH tags, the CASCADE DIRECT mode can be selected as the control mode. In the cascade direct control, the output value of the primary loop is directly output as that of the secondary loop in the cascade connection. In case of the input sensor failure in the secondary loop, the output result of the primary loop is substituted for and directly output as the output value of the secondary loop since the PID operation result of the secondary loop will be improper.
  • Page 605 Tracking For tracking, there are two functions as shown below. Item Description At AUTO  MANUAL mode switching, this function prevents the step change caused by the sharp change of the Bumpless function manipulated variable (MV) output and allows MV bumpless switching. Output limiter processing function This function sets the upper/lower limit for the manipulated variable (MV) that is output by PID operation in the AUTO mode.
  • Page 606 Tracking of loop selector Loop 1 Loop 3 Loop 2 (1) MV of SEL (loop selector) is transferred to the primary loop when the control mode of SEL is manual (MANUAL, COMPUTER MV) or when the variation rate and high/low limiter alarm occurs in other than the MANUAL (AUTO, CASCADE, COMPUTER SV) mode. The primary loop with tracking setting to the SEL is tracked.
  • Page 607 ■Cascade connection when tracking is not required Connect CASOUT of the primary loop with CASIN of the secondary loop. The tag FB of the secondary loop should be the one with CASIN. (1) Primary loop (2) Secondary loop When tracking is not executed, the operation constant of the secondary loop tag FB is as follows. Variable name Description Range...
  • Page 608: I/o Mode

    I/O mode The following describes the simulation function (SIMULATION mode), override function (OVERRIDE mode), and tag stop function (TAG STOP mode). For the overview of I/O mode, refer to the following. Page 21 I/O modes Simulation function (SIMULATION mode) This function performs simulations without actual input/output for I/O modules. Execute the simulation function (SIMULATION mode) after changing the mode to SIMULATION with I/O mode change of the faceplate.
  • Page 609 ■Sample programs of the loop tag FB simulation function (SIMULATION mode) The following describes the sample programs for the simulation function (SIMULATION mode) when the loop tag FB is used. For the typical loop with the same range for PVN and MVN •...
  • Page 610 For the cascade connection • Program example for the simulation function (SIMULATION mode) NORMAL mode SIMULATION mode (1) Analog input module CH1 digital output value (2) Analog input module CH2 digital output value (3) Analog output module CH1 digital value APPX Appendix 3 Related Functions of Process...
  • Page 611 • Program example for the simulation function (SIMULATION mode) (with Primary delay + Dead time) NORMAL mode SIMULATION mode (1) Analog input module CH1 digital output value (2) Analog input module CH2 digital output value (3) Analog output module CH1 digital value For the cascade connection, the simulation loopback input data of the secondary loop (FIC002.SIMIN in the example above) is used as the simulation input data of primary loop (LIC001.SIMIN in the example above).
  • Page 612 When the ranges of PVN and MVN are different (the range of A/D conversion module (AIN_4CH) is 0 to 32000, and the range of D/A conversion module (AOUT_4CH) is -32000 to 32000) • Program example for the simulation function (SIMULATION mode) M+P_ENG and M+P_IENG convert FIC001_FB.SIMOUT into FIC001_FB.SIMIN for connection.
  • Page 613 Override function (OVERRIDE mode) This function enables the PV setting on the pop-up tuning window of the PX Developer monitor tool when a correct input signal cannot be acquired due to a failure of the sensor, limit switch or A/D conversion module. External outputs of the manual manipulated value and ON/OFF signal are performed.
  • Page 614: Stop Alarm Processing In Loop Control

    Stop alarm processing in loop control Stop alarm (SPA) overview When an error related to the loop tag data such as a sensor error (SEA) occurs, the control mode can be changed to MANUAL forcibly by switching the stop alarm (SPA) from FALSE to TRUE. Switch the stop alarm (SPA) from FALSE to TRUE using a user program as necessary.
  • Page 615 When using the stop alarm in a program, refer to the following example. When a loop sensor error (SEA) of FIC001 occurs Sensor error FIC001 In the example above, the sensor error (SEA) can be acquired with the tag data label of the variable part. Relation between stop alarm (SPA) and other alarm processing The following table shows the relation between the status of the stop alarm (SPA) and other loop alarm processing.
  • Page 616: How To Use The Output Open Alarm

    How to use the output open alarm The output open alarm (OOA) of loop tag data is designed for displaying the wire break detection signal as an alarm on the loop tag FB of the output source when a disconnection is detected on the module FB on the output side. The following shows a program example to feed back a signal from the module FB that is to detect a disconnection to the loop tag FB that is to display it as an alarm.
  • Page 617: Program Setter Setting Method

    Program setter setting method The following describes the setting method of the program setter (PGS) and multi-point program setter (PGS2). Program setter (PGS) ■Operation method The X-Y graph method is used. The output MV is calculated by using the X-Y graph function according to the SV (time) of the whole program.
  • Page 618 Multi-point program setter (PGS2) ■Operation method Steps (time width and setting value) are registered and the progress of each step is managed. The setting value (SV) is calculated according to the time in the step (T) in each step. ■Relation between the program setting method and each variable Register each step data as shown below.
  • Page 619: Tight Shut/full Open Function

    Tight shut/full open function To use the tight shut/full open function with a module that has the extended mode in the range setting, set the extended mode in the output range setting. To use the tight shut/full open function with a module that does not have the extended mode in the range setting, set 0 to 20mA and 0 to 5V in the range setting and set the output conversion high/low limit values of the two-degree-of-freedom advanced PID control FB again.
  • Page 620: Appendix 4 Program Example

    Appendix 4 Program Example This section describes a program example with the process control function blocks. For details on the FBD/LD language, refer to the following.  MELSEC iQ-R Programming Manual (Program Design) Control mode switching The following indicates the program which switches the control mode of two-degree-of-freedom advanced PID control (M+M_2PIDH_) to one of MANUAL, AUTO, CASCADE, COMPUTER MV, or COMPUTER SV in the control mode.
  • Page 621 User-defined FB (MCHG_M_A_C_CSV_CMV) ■Input/output variable Variable name Description Type Data type TRUE: MANUAL Input variable BOOL AUTO TRUE: AUTO Input variable BOOL TRUE: CASCADE Input variable BOOL TRUE: COMPUTER MV Input variable BOOL TRUE: COMPUTER SV Input variable BOOL MODE_IN Control mode (1: MANUAL, 2: AUTO, 3: CASCADE, 4: COMPUTER MV, or 5: Output variable COMPUTER SV)
  • Page 622: Writing Mv Or Sv With The Host Computer

    Writing MV or SV with the host computer The following indicates the program which writes MV or SV when the control mode of the tag FB is COMPUTER MV or COMPUTER SV. Program example Tag FB MV value writing from the host computer when in COMPUTER MV SV value writing from the host computer when in COMPUTER SV...
  • Page 623: Single Solenoid

    Single solenoid The following indicates the program which continuously outputs TRUE for open command and FALSE for close command when the control mode is AUTO. Program example (1) Open command (BOOL) (2) Close command (BOOL) (3) Open answer ( BOOL) (4) Close answer (BOOL) (5) Output (BOOL) Open: TRUE, Close: FALSE...
  • Page 624: Double Solenoid

    Double solenoid The following indicates the program which continuously outputs TRUE into the open output (OUT1) for open command and TRUE into the close output (OUT2) for close command from outside when the control mode is AUTO. Program example (1) Open command (BOOL) (2) Close command (BOOL) (3) Open answer ( BOOL) (4) Close answer (BOOL)
  • Page 625: Index

    INDEX ......28 Control cycle ......20 Control mode .
  • Page 626: Instruction Index

    INSTRUCTION INDEX ......66 M+P_AVE(_E) ......176 M+P_BC .
  • Page 627 ......84 M+P_SUM ......86 M+P_SUM2_ .