Last modified by Iris on 2025/09/17 20:56

From version 4.4
edited by Iris
on 2025/09/17 20:52
Change comment: There is no comment for this version
To version 2.4
edited by Iris
on 2025/09/17 19:48
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -107,8 +107,10 @@
107 107  
108 108  **Example**
109 109  
110 -== **CCPID/CCPID calculation** ==
110 +See manual.
111 111  
112 +== {{id name="_Toc32463"/}}{{id name="_Toc21837"/}}{{id name="_Toc31152"/}}**CCPID/CCPID calculation** ==
113 +
112 112  **CCPID**
113 113  
114 114  This instruction is used to perform PID control that changes the output value according to the amount of input change.
... ... @@ -150,24 +150,30 @@
150 150  
151 151  **Error code**
152 152  
153 -
154 154  |**Error code**|**Content**
155 155  |4085H|When the device specified in the read application instructions (s1), (s2), (s3), (d) exceeds the range of the corresponding device.
156 156  |4086H|When the device specified in the write application instruction (s3) and (d) exceeds the range of the corresponding device.
157 157  |4D80H|The sampling time is out of range.​(T,,S,,≤0)
158 -|4D81H|Input filter constant (α) is out of range (α​<0 or α>1023)
159 -|4D82H|The maximum ascent rate (△//T//) is out of range.(△//T//​<0 or △//T//​>1023)
160 -|4D86H|The sampling time (Ts) is less than the operation cycle.​​​​(T//s//<Scanning cycle)
161 -|4D87H|The proportional gain (K//p//) is out of range.​​​​(K//p//<1 or K//p//>32000)
162 -|4D88H|The integral time constant (Ti) is out of range.(K//i​//<0 or K//i//>3600)
163 -|4D89H|The differential time constant (T//d//) is out of range.(K//d//<0 or K//d//>1000)
164 -|4D90H|The upper limit of CCPID output is less than the lower limit.
159 +|4D81H|Input filter constant (Co) is out of range (Co<0 or Co≥1023)
160 +|4D82H|The maximum ascent rate (△//T//) is out of range.(△//T//​<0 or △//T//​>32000)
161 +|4D83H|(((
162 +The proportional gain (Kp) is out of range. Kp<0[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml11524\wps287.png]]
163 +)))
164 +|(((
165 +4D84H
166 +)))|(((
167 +The integral gain (Ki) is out of range. Ki<0[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml11524\wps288.png]]
168 +)))
169 +|4D85H|(((
170 +The differential gain (Kd) is out of range. Kd<0[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml11524\wps289.png]]
171 +)))
172 +|4D86H|The sampling time (Ts) is less than the operation cycle.​​​​​​​​​​​(T//s//<Scan cycle)
165 165  
166 166  **Example**
167 167  
168 -See "CCPID Instruction Manual".
176 +See "__CCPID Instruction Manual__".
169 169  
170 -== **FPID/FPID calculation** ==
178 +== **{{id name="_Toc8661"/}}{{id name="_Toc13227"/}}{{id name="_Toc18478"/}}{{id name="_Toc29418"/}}{{id name="_Toc5268"/}}{{id name="_Toc5168"/}}{{id name="_Toc307"/}}**FPID/FPID calculation ==
171 171  
172 172  **FPID**
173 173  
... ... @@ -356,8 +356,8 @@
356 356  [[image:11_html_6dcdd8fc88703a47.jpg]] +22 to [[image:11_html_6dcdd8fc88703a47.jpg]] +51 is the parameter space used in the auto-tuning process.
357 357  
358 358  |**Unit**|**Features**|**Setting instructions**|**Supplement**
359 -|[[image:11_html_6dcdd8fc88703a47.jpg]]|Sample time (TS)|The set range is 1 to 32,767 (ms), but greater than PLC program scan cycle.|It is how often the instruction calculates and updates the output value (MV). When TS is less than one scan time, PID instruction is executed with one scan time and alarm 4D86H. When TS ≤ 0, alarm 4D80H and no execution.
360 -|[[image:11_html_6dcdd8fc88703a47.jpg]]+1|Action direction (ACT)|(((
367 +| |Sample time (TS)|The set range is 1 to 32,767 (ms), but greater than PLC program scan cycle.|It is how often the instruction calculates and updates the output value (MV). When TS is less than one scan time, PID instruction is executed with one scan time and alarm 4D86H. When TS ≤ 0, alarm 4D80H and no execution.
368 +|+1|Action direction (ACT)|(((
361 361  bit0: 0=positive action; 1=reverse action bit2: auto-tuning transition zone switch. 0=not open;1=open
362 362  
363 363  bit3: 0=unidirection; 1=bidirection
... ... @@ -378,12 +378,12 @@
378 378  
379 379  bit4: **✎**When bit4=1 and bit6 and bit7 are not 1, auto-tuning is not executed. **✎**When bit4=0 and one of bit6 and bit7 is 1, auto-tuning is not executed. **✎**When bit4=1 and bit6 and bit7 are both 1, auto-tuning is executed
380 380  )))
381 -|[[image:11_html_6dcdd8fc88703a47.jpg]]+2|Filter coefficient|The first-order inertia filter of feedback amount (0 to 100%) has a range of 0 to100|When the value is greater than or equal to 100, it will be executed as 0, that is, no filtering will be executed;
382 -|[[image:11_html_6dcdd8fc88703a47.jpg]]+3|Proportional gain(Kp)|Set range: 0 to 30,000[%]|Overrun error 4D87H
383 -|[[image:11_html_6dcdd8fc88703a47.jpg]]+4|Integration time (Ti)|Ti is integration time, and the range is 0 to 3,600 (s)|Overrun error 4D88H
384 -|[[image:11_html_6dcdd8fc88703a47.jpg]]+5|Differential time (Td)|Td is derivative time, and the range is 0 to 1,000 (s)|Overrun error 4D89H
385 -|[[image:11_html_6dcdd8fc88703a47.jpg]]+6|Working interval|Operating temperature setting enabled by PID (0 indicates no effect) The range is 0 to 1,000|It is recommended to be greater than 5°C, that is, 50 (precision 0.1°C). If it exceeds the range, the boundary value will be taken.
386 -|[[image:11_html_6dcdd8fc88703a47.jpg]]+7|Output low limit|(((
389 +|+2|Filter coefficient|The first-order inertia filter of feedback amount (0 to 100%) has a range of 0 to100|When the value is greater than or equal to 100, it will be executed as 0, that is, no filtering will be executed;
390 +|+3|Proportional gain(Kp)|Set range: 0 to 30,000[%]|Overrun error 4D87H
391 +|+4|Integration time (Ti)|Ti is integration time, and the range is 0 to 3,600 (s)|Overrun error 4D88H
392 +|+5|Differential time (Td)|Td is derivative time, and the range is 0 to 1,000 (s)|Overrun error 4D89H
393 +|+6|Working interval|Operating temperature setting enabled by PID (0 indicates no effect) The range is 0 to 1,000|It is recommended to be greater than 5°C, that is, 50 (precision 0.1°C). If it exceeds the range, the boundary value will be taken.
394 +|+7|Output low limit|(((
387 387  Range: -10,000 to 10,000.
388 388  
389 389  Recommended setting range: -2,000 or 0 (when S3+1 bit3=0, the lower limit = 0;
... ... @@ -398,7 +398,7 @@
398 398  
399 399  2. During the control process, the lower limit is dynamically adjustable. If the lower limit is greater than or equal to the upper limit, error 4D90H will be reported.
400 400  )))
401 -|[[image:11_html_6dcdd8fc88703a47.jpg]]+8|Output upper limit|(((
409 +|+8|Output upper limit|(((
402 402  Value range: -10,000 to 10,000.
403 403  
404 404  Recommended setting value is 2,000
... ... @@ -411,7 +411,7 @@
411 411  
412 412  2. During the control process, the upper limit is dynamically adjustable. If the lower limit is greater than or equal to the upper limit, error 4D90H will be reported.
413 413  )))
414 -|[[image:11_html_6dcdd8fc88703a47.jpg]]+9|Mode setting|(((
422 +|+9|Mode setting|(((
415 415  0: Overshoot allowed
416 416  
417 417  1: Slight overshoot or no overshoot
... ... @@ -422,44 +422,44 @@
422 422  
423 423  1: Slight overshoot or no overshoot mode (ukd = 300)
424 424  )))
425 -|[[image:11_html_6dcdd8fc88703a47.jpg]]+10|(((
433 +|+10|(((
426 426  Scale factor
427 427  
428 428  (ukp)
429 429  )))|Typically sets value to 100 (default 100) [enabled when S3+9 is set to 2].The range is 1 to 500.|When the value is less than or equal to 0, or greater than 500, the boundary value will be taken.
430 -|[[image:11_html_6dcdd8fc88703a47.jpg]]+11|Integral coefficient (uki)|Typically sets value to 50 (default 50) [enabled when S3+9 is set to 2]. The range is 1 to 300.|When the value is less than or equal to 0, or greater than 300, the boundary value will be taken.
431 -|[[image:11_html_6dcdd8fc88703a47.jpg]]+12|Differential coefficient (ukd)|Typically sets value to 50 (default 100. 300 to 400 can be set when slight overshoot is required) [Enable when S3+9 is set to 2]. The range is 1 to 500.|When the value is less than or equal to 0, or greater than 500, the boundary value will be taken.
432 -|[[image:11_html_6dcdd8fc88703a47.jpg]]+13|Maximum ascent rate (DeltaT)|The range is 0 to 32,000, which is the threshold of integral increment|Overrun error 4D82H
433 -|[[image:11_html_6dcdd8fc88703a47.jpg]]+14|Filtering (C0)|The range is 0 to 1,023, integral part filtering|Overrun error 4D81H
434 -|[[image:11_html_6dcdd8fc88703a47.jpg]]+15|(% rowspan="3" %)reserved for internal control|(% rowspan="3" %)Internal control space occupation|(% rowspan="3" %)
438 +|+11|Integral coefficient (uki)|Typically sets value to 50 (default 50) [enabled when S3+9 is set to 2]. The range is 1 to 300.|When the value is less than or equal to 0, or greater than 300, the boundary value will be taken.
439 +|+12|Differential coefficient (ukd)|Typically sets value to 50 (default 100. 300 to 400 can be set when slight overshoot is required) [Enable when S3+9 is set to 2]. The range is 1 to 500.|When the value is less than or equal to 0, or greater than 500, the boundary value will be taken.
440 +|+13|Maximum ascent rate (DeltaT)|The range is 0 to 32,000, which is the threshold of integral increment|Overrun error 4D82H
441 +|+14|Filtering (C0)|The range is 0 to 1,023, integral part filtering|Overrun error 4D81H
442 +|+15|(% rowspan="3" %)reserved for internal control|(% rowspan="3" %)Internal control space occupation|(% rowspan="3" %)
435 435  |┆
436 -|[[image:11_html_6dcdd8fc88703a47.jpg]]+21
437 -|[[image:11_html_6dcdd8fc88703a47.jpg]]+22|(% rowspan="3" %)used space for self-tuning|(% rowspan="3" %)New self-tuning space for internal use|(% rowspan="3" %)
444 +|+21
445 +|+22|(% rowspan="3" %)used space for self-tuning|(% rowspan="3" %)New self-tuning space for internal use|(% rowspan="3" %)
438 438  |┆
439 -|[[image:11_html_6dcdd8fc88703a47.jpg]]+51
447 +|+51
440 440  
441 441  1) The auto-tuning process occupies the space of S3+22 to S3+51. When the auto-tuning is successful, the adjusted parameters will be written into the space of S3+2 to S3+21.
442 442  
443 -2)[[image:11_html_6dcdd8fc88703a47.jpg]] +2 filter coefficient α: Processing in first-order inertial filter
451 +2) +2 filter coefficient α: Processing in first-order inertial filter
444 444  
445 445  Formula: **T,,now,,=(100-α)×T,,α,,+α×T,,old,,**
446 446  
447 447  T,,α ,,is the currently measured temperature. T,,old ,,is the temperature that participated in the PID calculation last time. T,,now ,,is the temperature used for the current PID calculation. α is the filter coefficient (when α=0, no filtering is performed, and the range of α is 0 to 100.(If there is a temperature with a small overshoot but a long stabilization time, the parameter can be set to 80, and analyze the specific problems in detail)
448 448  
449 -3)[[image:11_html_6dcdd8fc88703a47.jpg]] +6 work range: Twork(example: 170 represents 17℃)
457 +3) +6 work range: Twork(example: 170 represents 17℃)
450 450  
451 451  (% style="text-align:center" %)
452 -[[image:企业微信截图_17581105436817.png||height="197" width="652"]]
460 +[[image:11_html_7ab814bb49fffa5a.gif||class="img-thumbnail"]]
453 453  
454 -4) [[image:11_html_6dcdd8fc88703a47.jpg]]+9 working mode:
462 +4) +9 working mode:
455 455  
456 456  0: Working mode that allows overshoot
457 457  
458 458  1: Slight overshoot or no overshoot working mode
459 459  
460 -2: Custom settings; to achieve by setting [[image:1758111151287-920.png||height="15" width="28"]]+10, [[image:1758111151287-920.png||height="15" width="28"]]+11, [[image:1758111151287-920.png||height="15" width="28"]]+12 three coefficients.
468 +2: Custom settings; to achieve by setting +10, +11, +12 three coefficients.
461 461  
462 -5)[[image:11_html_6dcdd8fc88703a47.jpg]] +1 bit2 self-tuning transition zone switch: (upper limit 1℃, low limit 0.5℃)
470 +5) +1 bit2 self-tuning transition zone switch: (upper limit 1℃, low limit 0.5℃)
463 463  
464 464  The transition zone description in forward control:
465 465  
... ... @@ -545,7 +545,7 @@
545 545  |D101|Control detail settings
546 546  |D102|First-order inertial filter coefficient
547 547  |D106|Working interval
548 -|D109|Working mode
556 +|D109|Operating mode
549 549  
550 550  **(4) Parameter control effect description**
551 551  
... ... @@ -614,156 +614,11 @@
614 614  (% style="text-align:center" %)
615 615  [[image:11_html_74a7527eace55103.gif||class="img-thumbnail"]]
616 616  
617 -== ** CCPIN_SHT operation** ==
618 618  
619 -**CCPIN_SHT**
626 +**11.6 LAGCDL Large time-delay temperature control instruction**
620 620  
621 -This instruction is used to perform PID control that changes the output value according to the variation of the input.
628 +[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml11524\wps243.png]]**LAGCDL**
622 622  
623 --[CCPID_SHT (s1) (s2)  (s3) (d)]
624 -
625 -**Content, range and data type**
626 -
627 -|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)**
628 -|(s1)|The device number that stores the target value (SV)|-32767 to 32767|Signed BIN 16 bit|ANY16
629 -|(s2)|The device number that stores the measured value (SV)|-32767 to 32767|Signed BIN 16 bit|ANY16
630 -|(s3)|The device number that stores parameters|1 to 32767|Signed BIN 16 bit|ANY16
631 -|(d)|The device number that stores the output value (SV)|-32767 to 32767|Signed BIN 16 bit|ANY16
632 -
633 -**Device used**
634 -
635 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="3" %)**Devices**|(((
636 -**Offset**
637 -
638 -**modification**
639 -)))|(((
640 -**Pulse**
641 -
642 -**extension**
643 -)))
644 -|**D**|**R**|**SD**|**[D]**|**XXP**
645 -|(% rowspan="4" %)CCPID_SHT|Parameter 1|●|●|●| |
646 -|Parameter 2|●|●|●| |
647 -|Parameter 3|●|●|●| |
648 -|Parameter 4|●|●|●| |
649 -
650 -**Features**
651 -
652 -This instruction is to complete the temperature control operation, used to control the parameters of the closed-loop control system.
653 -
654 -[[image:1758113204827-229.png]] is the target value of CCPID SHT control (SV).
655 -
656 -[[image:1758113217569-229.png]] is the measured feedback value (PV).
657 -
658 -[[image:1758113227549-844.png]] is the start address of the cache where the parameters required by CCPID_SHT operation and intermediate results are saved,
659 -
660 -occupying a total of 36 variable units of subsequent addresses. The value range is from D0 to D7946 or from R0 to R29964. It is better to specify power failure retention, and the setting value remains after power supply is off. Otherwise, the cache needs to be assigned value before starting the calculation for the first time. The function and parameter description of each unit are described in this section.
661 -
662 -[[image:1758113243743-809.png]] is the storage unit of the CCPID_SHT calculation result. Please specify it as a non-battery retentive area, otherwise it needs to be initialized and cleared before the first start of calculation.
663 -
664 -**Programming example**
665 -
666 -[[image:1758113269397-376.png]]
667 -
668 -
669 -The parameter description is as follows:
670 -
671 -The target value of CCPID_SHT adjustment is stored in D1, and D0 is the closed-loop feedback value. Note that D0 and D9 must be of the same dimension, such as both 0.01MPa units, or 1℃ units, etc..
672 -
673 -A total of 36 units of D1000 to D1035 are used to store the set value and process value of CCPID_SHT operation. These values must be set item by item before the first CCPID_SHT calculation.
674 -
675 -D100 unit is used to store the calculated control output value to control the execution of the action.
676 -
677 -[[image:1758113227549-844.png]]The functions and setting methods of the parameter values of each unit at the beginning are described in the table below:
678 -
679 - [[image:1758113227549-844.png]]to[[image:1758113227549-844.png]] +15 is the parameter range that can be set (parameters set when CCPID_SHT is executed).
680 -
681 -[[image:1758113227549-844.png]]+2 to [[image:1758113227549-844.png]]+31 is the parameter space used in the self-tuning process. (This space is multiplexed with the parameter space during control)
682 -
683 -
684 -The functions and setting methods of the parameter values of each unit started by are described in the following table:
685 -
686 -|(% style="width:106px" %)**Unit**|(% style="width:146px" %)**Function**|**Description**
687 -|(% style="width:106px" %)[[image:1758113227549-844.png]]|(% style="width:146px" %)Sampling time (TS)|Range: 1 to 32767 (ms). It must be longer than PLC program scan cycle.
688 -|(% style="width:106px" %)[[image:1758113227549-844.png]]+1|(% style="width:146px" %)Control flag bit|(((
689 -bit0: 0=Forward action; 1=Reverse action
690 -
691 -bit3: 0=one-way; 1=two-way
692 -
693 -bit4: 0=Self-tuning does not act; 1=Perform self-tuning and the others are not available.
694 -
695 -bit6: 0=Two-segment self-tuning does not act; 1=Perform two-segment self-tuning (bit4 must set to 1)
696 -
697 -bit7: 0=Three-segment self-tuning does not act; 1=Perform three-segment self-tuning (bit4 must set to 1)
698 -
699 -Bit15: The instruction initialization flag bit. When initialization is complete, it is set to 1.
700 -)))
701 -|(% style="width:106px" %)[[image:1758113227549-844.png]]+2|(% style="width:146px" %)Maximum rate of increase (DeltaT)|Range: 0 to 32000. Threshold of integral increment
702 -|(% style="width:106px" %)[[image:1758113227549-844.png]]+3|(% style="width:146px" %)Proportional gain (Kp)|Range: 0 to 32767. This value is magnified 256 times and the actual value is Kp/256.
703 -|(% style="width:106px" %)[[image:1758113227549-844.png]]+4|(% style="width:146px" %)Integral gain (Ki)|Range: 0 to 32767, Ki=16384Ts/Ti,Ti is integral time
704 -|(% style="width:106px" %)[[image:1758113227549-844.png]]+5|(% style="width:146px" %)Differential gain (Kd)|Range: 0 to 32767, Kd≈Td/Ts, Td is differential time
705 -|(% style="width:106px" %)[[image:1758113227549-844.png]]+6|(% style="width:146px" %)Filter constant (Co)|Range: 0 to 1023, Integral partial filtering.
706 -|(% style="width:106px" %)[[image:1758113227549-844.png]]+7|(% style="width:146px" %)Output lower limit|Recommended setting range: -2000 to 2000
707 -|(% style="width:106px" %)[[image:1758113227549-844.png]]+8|(% style="width:146px" %)Output upper limit|Recommended setting value: 2000. When the upper and lower limits are both 0, the upper limit becomes 2000 and the lower limit becomes 0.
708 -|(% style="width:106px" %)[[image:1758113227549-844.png]]+9|(% style="width:146px" %)Reserved|Reserved for internal use
709 -|(% style="width:106px" %)┇|(% style="width:146px" %)┇|┇
710 -|(% style="width:106px" %)[[image:1758113227549-844.png]]+35|(% style="width:146px" %)Reserved|Reserved for internal use
711 -
712 -Parameter space corresponding to the self-tuning time
713 -
714 -|(% style="width:106px" %)**Unit**|(% style="width:141px" %)**Function**|**Description**
715 -|(% style="width:106px" %)[[image:1758113227549-844.png]]|(% style="width:141px" %)Sampling time (TS)|Range: 1 to 32767 (ms). It must be longer than PLC program scan cycle.
716 -|(% style="width:106px" %)[[image:1758113227549-844.png]]+1|(% style="width:141px" %)Control flag bit|(((
717 -bit0: 0=Forward action; 1=Reverse action
718 -
719 -bit3: 0=one-way; 1=two-way
720 -
721 -bit4: 0=Self-tuning does not act; 1=Perform self-tuning and the others are not available.
722 -
723 -bit6: 0=Two-segment self-tuning does not act; 1=Perform two-segment self-tuning (bit4 must set to 1)
724 -
725 -bit7: 0=Three-segment self-tuning does not act; 1=Perform three-segment self-tuning (bit4 must set to 1)
726 -
727 -Bit15: This instruction initializes the flag bit. When initialization is complete, the position is set to 1.
728 -)))
729 -|(% style="width:106px" %)[[image:1758113227549-844.png]]+2|(% style="width:141px" %)Sampling time of PID running after self-tuning|Setting range: 1 to 32767 ms(). When Ts≦0, Ts=3000
730 -|(% style="width:106px" %)[[image:1758113227549-844.png]]+3|(% style="width:141px" %)Coefficient ukp for PID parameter calculation|Setting range: 0 to 500. When ukp≦0, ukp=100; When ukp≧500, ukp=500.
731 -|(% style="width:106px" %)[[image:1758113227549-844.png]]+4|(% style="width:141px" %)Coefficient uki for PID parameter calculation|Setting range: 0 to 32767. When uki≦0, uki=50.
732 -|(% style="width:106px" %)[[image:1758113227549-844.png]]+5|(% style="width:141px" %)Coefficient ukd for PID parameter calculation|Setting range: 0 to 32767. When ukd≦0, ukd=50.
733 -|(% style="width:106px" %)[[image:1758113227549-844.png]]+6|(% style="width:141px" %)Reserved|Reserved
734 -|(% style="width:106px" %)[[image:1758113227549-844.png]]+7|(% style="width:141px" %)Output lower limit|Recommended setting range: -2000 to 2000
735 -|(% style="width:106px" %)[[image:1758113227549-844.png]]+8|(% style="width:141px" %)Output upper limit|Recommended setting value: 2000. When the upper and lower limits are both 0, the upper limit becomes 2000 and the lower limit becomes 0.
736 -|(% style="width:106px" %)[[image:1758113227549-844.png]]+9|(% style="width:141px" %)Reserved|Reserved for internal use
737 -|(% style="width:106px" %)┇|(% style="width:141px" %)┇|┇
738 -|(% style="width:106px" %)[[image:1758113227549-844.png]]+35|(% style="width:141px" %)Reserved|Reserved for internal use
739 -
740 -**Error code**
741 -
742 -|**Error code**|**Content**
743 -|4085H|Read application instruction (S1), (S2), (S3) and (d) output results exceed the range of device.
744 -|4086H|The devices specified in write application instruction (S3) and (d) exceed the range of the corresponding device.
745 -|4DB0H|Sampling time (Ts) exceeds the range the object (Ts≦0)
746 -|4DB1H|Output filter constant (Co) exceeds the range the object (Co<0 or Co>1023)
747 -|4DB2H|Maximum rate of increase (DeltaT) exceeds the range the object (deltaT<0 or deltaT>32000)
748 -|4DB3H|Proportional gain (Kp) exceeds the range the object (Kp≦0)
749 -|4DB4H|Integral gain (Ki) exceeds the range the object (Ki≦0)
750 -|4DB5H|Differential gain (Kd) exceeds the range the object (Kd≦0)
751 -|4DB6H|Sampling time (Ts) < operation cycle
752 -
753 -**Example**
754 -
755 -
756 -
757 -(% style="text-align:center" %)
758 -[[image:企业微信截图_17581134583885.png]]
759 -
760 -(% style="text-align:center" %)
761 -[[image:企业微信截图_17581134696804.png]]
762 -
763 -== **LAGCDL Large time-delay temperature control instruction** ==
764 -
765 -**LAGCDL**
766 -
767 767  This instruction is used to perform large time-delay system temperature control that changes the output value according to changes in the input.
768 768  
769 769  -[LAGCDL (s1) (s2)  (s3) (d)]
... ... @@ -778,7 +778,7 @@
778 778  
779 779  **Device used**
780 780  
781 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="8" %)**Devices**|(((
644 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|(((
782 782  **Offset**
783 783  
784 784  **modification**
... ... @@ -787,29 +787,29 @@
787 787  
788 788  **extension**
789 789  )))
790 -|**D**|**R**|**SD**|**LC**|**HSC**|**K**|**H**|**E**|**[D]**|**XXP**
791 -|(% rowspan="4" %)LAGCDL|Parameter 1|●|●|●| | | | | | |
792 -|Parameter 2|●|●|●| | | | | | |
793 -|Parameter 3|●|●|●| | | | | | |
794 -|Parameter 4|●|●|●| | | | | | |
653 +|**X**|**Y**|**M**|**S**|**SM**|**T(bit)**|**C(bit)**|**LC(bit)**|**HSC(bit)**|**D.b**|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**LC**|**HSC**|**K**|**H**|**E**|**[D]**|**XXP**
654 +|(% rowspan="4" %)LAGCDL|Parameter 1| | | | | | | | | | | | | | | | |●|●|●| | | | | | |
655 +|Parameter 2| | | | | | | | | | | | | | | | |●|●|●| | | | | | |
656 +|Parameter 3| | | | | | | | | | | | | | | | |●|●|●| | | | | | |
657 +|Parameter 4| | | | | | | | | | | | | | | | |●|●|●| | | | | | |
795 795  
796 796  **Features**
797 797  
798 798  This instruction is to complete large time-delay system control operation, and used to control the parameters of the closed-loop control system.
799 799  
800 -[[image:1758111592778-873.png]]is the target value of CCPID SHT control (SV).
663 +[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml11524\wps244.png]] is the target value of CCPID SHT control (SV).
801 801  
802 -[[image:1758111614838-309.png]]is the measured feedback value (PV).
665 +[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml11524\wps245.png]] is the measured feedback value (PV).
803 803  
804 - ​​​​[[image:1758111642557-547.png]]is the start address of the cache where the parameters required by LAGCDL operation and intermediate results are saved,
667 +[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml11524\wps246.png]] is the start address of the cache where the parameters required by LAGCDL operation and intermediate results are saved,
805 805  
806 806  occupying a total of 634 variable units of subsequent addresses. The value range is from D0 to D7974 or from R0 to R35000. It is better to specify power failure retention, and the setting value remains after power supply is off. Otherwise, the cache needs to be assigned value before starting the calculation for the first time. The function and parameter description of each unit are described in this section.
807 807  
808 -[[image:1758111693192-390.png]] is the storage unit of the LAGCDL calculation result. Please specify it as a non-battery retentive area, otherwise it needs to be initialized and cleared before the first start of calculation.
671 +[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml11524\wps247.png]] is the storage unit of the LAGCDL calculation result. Please specify it as a non-battery retentive area, otherwise it needs to be initialized and cleared before the first start of calculation.
809 809  
810 810  **Programming example**
811 811  
812 -[[image:1758111738993-165.png||height="64" width="430"]]
675 +[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml11524\wps248.jpg]]
813 813  
814 814  The parameter description is as follows:
815 815  
... ... @@ -819,15 +819,15 @@
819 819  
820 820  D100 unit is used to store the calculated control output value to control the execution of the action.
821 821  
822 -[[image:1758111862269-781.png]] to [[image:1758111862269-781.png]]+15 is the parameter range that can be set (parameters set when LAGCDL is executed). [[image:1758111862269-781.png]]+28 to [[image:1758111862269-781.png]]+631 is the historical data space for LAGCDL control internal use. [[image:1758111862269-781.png]]+4 to [[image:1758111862269-781.png]]+27 is the parameter space used in the self-tuning process. (This space is multiplexed with the parameter space during control)
685 +[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml11524\wps249.png]] to [[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml11524\wps250.png]]+15 is the parameter range that can be set (parameters set when LAGCDL is executed). [[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml11524\wps251.png]]+28 to [[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml11524\wps252.png]]+631 is the historical data space for LAGCDL control internal use. [[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml11524\wps253.png]]+4 to [[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml11524\wps254.png]]+27 is the parameter space used in the self-tuning process. (This space is multiplexed with the parameter space during control)
823 823  
824 -The functions and setting methods of the parameter values of each unit started by [[image:1758111862269-781.png]] are described in the following table:
687 +The functions and setting methods of the parameter values of each unit started by [[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml11524\wps255.png]] are described in the following table:
825 825  
826 826  
827 827  
828 -|(% style="width:108px" %)**Unit**|(% style="width:230px" %)**Function**|**Description**
829 -|(% style="width:108px" %)[[image:1758111862269-781.png]]|(% style="width:230px" %)Sampling time (TS)|Range: 1 to 32767 (ms). It must be longer than PLC program scan cycle.
830 -|(% style="width:108px" %)[[image:1758111862269-781.png]]+1|(% style="width:230px" %)Control flag bit|(((
691 +|**Unit**|**Function**|**Description**
692 +|[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml11524\wps256.png]]|Sampling time (TS)|Range: 1 to 32767 (ms). It must be longer than PLC program scan cycle.
693 +|[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml11524\wps257.png]]+1|Control flag bit|(((
831 831  bit0: 0=Forward action; 1=Reverse action
832 832  
833 833  bit1: Overshoot power limit output enable bit. 0=no limit; 1=limited
... ... @@ -840,32 +840,32 @@
840 840  
841 841  Bit15: The instruction initializes the flag bit. When initialization is complete, it is set to 1.
842 842  )))
843 -|(% style="width:108px" %)[[image:1758111862269-781.png]]+2|(% style="width:230px" %)Output lower limit|Range: -32000 to 32000. Recommended setting range: -2000 or 0.
844 -|(% style="width:108px" %)[[image:1758111862269-781.png]]+3|(% style="width:230px" %)Output upper limit|Range: 0 to 32000. Recommended setting value is 2000. When the upper and lower limits are both 0, the upper limit becomes 2000 and the lower limit becomes 0.
845 -|(% style="width:108px" %)[[image:1758111862269-781.png]]+4|(% style="width:230px" %)Full power output boundary|The suggested value can be obtained by self-tuning, and can also be adjusted according to the actual situation.
846 -|(% style="width:108px" %)[[image:1758111862269-781.png]]+5|(% style="width:230px" %)Half-power output boundary|The suggested value can be obtained by self-tuning, and can also be adjusted according to the actual situation.
847 -|(% style="width:108px" %)[[image:1758111862269-781.png]]+6|(% style="width:230px" %)Stop output boundary|The suggested value can be obtained by self-tuning, and can also be adjusted according to the actual situation.
848 -|(% style="width:108px" %)[[image:1758111862269-781.png]]+7|(% style="width:230px" %)The maximum rate of increase of the controlled system|Given by self-tuning
849 -|(% style="width:108px" %)[[image:1758111862269-781.png]]+8|(% style="width:230px" %)The lagged time of the controlled system|Given by self-tuning. Unit: s
850 -|(% style="width:108px" %)[[image:1758111862269-781.png]]+9|(% style="width:230px" %)The time constant of the controlled system|Given by self-tuning. Unit: s
851 -|(% style="width:108px" %)[[image:1758111862269-781.png]]+10|(% style="width:230px" %)Ideal closed-loop time constant|Given by self-tuning. Unit: s
852 -|(% style="width:108px" %)[[image:1758111862269-781.png]]+11|(% style="width:230px" %)Ideal closed-loop sampling time|Given by self-tuning. This parameter can be adjusted during the control process. Unit: s
853 -|(% style="width:108px" %)[[image:1758111862269-781.png]]+12|(% style="width:230px" %)Maximum temperature difference during setting|Given by self-tuning. (for your reference)
854 -|(% style="width:108px" %)[[image:1758111862269-781.png]]+13|(% style="width:230px" %)The temperature difference between the residual heat and temperature rise|Given by self-tuning. (for your reference)
855 -|(% style="width:108px" %)[[image:1758111862269-781.png]]+14|(% style="width:230px" %)Heating time|Given by self-tuning. (for your reference)
856 -|(% style="width:108px" %)[[image:1758111862269-781.png]]+15|(% style="width:230px" %)Setting time|Given by self-tuning. (for your reference)
857 -|(% style="width:108px" %)[[image:1758111862269-781.png]]+16|(% rowspan="3" style="width:230px" %)Self-tuning use space|(% rowspan="3" %)Reserved for internal use
858 -|(% style="width:108px" %)
859 -|(% style="width:108px" %)[[image:1758111862269-781.png]]+27
860 -|(% style="width:108px" %)[[image:1758111862269-781.png]]+28|(% style="width:230px" %)Current temperature difference|Used during control
861 -|(% style="width:108px" %)[[image:1758111862269-781.png]]+29|(% style="width:230px" %)Previous temperature difference|Used during control
862 -|(% style="width:108px" %)[[image:1758111862269-781.png]]+30|(% style="width:230px" %)The 1st operation flag bit|Used during control
863 -|(% style="width:108px" %)[[image:1758111862269-781.png]]+31|(% style="width:230px" %)Number of valid history outputs|Used during control
864 -|(% style="width:108px" %)[[image:1758111862269-781.png]]+32|(% rowspan="3" style="width:230px" %)Historical output data|(% rowspan="3" %)Used during control
865 -|(% style="width:108px" %)
866 -|(% style="width:108px" %)[[image:1758111862269-781.png]]+631
867 -|(% style="width:108px" %)[[image:1758111862269-781.png]]+632|(% rowspan="2" style="width:230px" %)Previous sampling time stamp|(% rowspan="2" %)Reserved for internal use
868 -|(% style="width:108px" %)[[image:1758111862269-781.png]]+633
706 +|[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml11524\wps258.png]]+2|Output lower limit|Range: -32000 to 32000. Recommended setting range: -2000 or 0.
707 +|[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml11524\wps259.png]]+3|Output upper limit|Range: 0 to 32000. Recommended setting value is 2000. When the upper and lower limits are both 0, the upper limit becomes 2000 and the lower limit becomes 0.
708 +|[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml11524\wps260.png]]+4|Full power output boundary|The suggested value can be obtained by self-tuning, and can also be adjusted according to the actual situation.
709 +|[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml11524\wps261.png]]+5|Half-power output boundary|The suggested value can be obtained by self-tuning, and can also be adjusted according to the actual situation.
710 +|[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml11524\wps262.png]]+6|Stop output boundary|The suggested value can be obtained by self-tuning, and can also be adjusted according to the actual situation.
711 +|[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml11524\wps263.png]]+7|The maximum rate of increase of the controlled system|Given by self-tuning
712 +|[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml11524\wps264.png]]+8|The lagged time of the controlled system|Given by self-tuning. Unit: s
713 +|[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml11524\wps265.png]]+9|The time constant of the controlled system|Given by self-tuning. Unit: s
714 +|[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml11524\wps266.png]]+10|Ideal closed-loop time constant|Given by self-tuning. Unit: s
715 +|[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml11524\wps267.png]]+11|Ideal closed-loop sampling time|Given by self-tuning. This parameter can be adjusted during the control process. Unit: s
716 +|[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml11524\wps268.png]]+12|Maximum temperature difference during setting|Given by self-tuning. (for your reference)
717 +|[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml11524\wps269.png]]+13|The temperature difference between the residual heat and temperature rise|Given by self-tuning. (for your reference)
718 +|[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml11524\wps270.png]]+14|Heating time|Given by self-tuning. (for your reference)
719 +|[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml11524\wps271.png]]+15|Setting time|Given by self-tuning. (for your reference)
720 +|[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml11524\wps272.png]]+16|(% rowspan="3" %)Self-tuning use space|(% rowspan="3" %)Reserved for internal use
721 +|┇
722 +|[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml11524\wps273.png]]+27
723 +|[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml11524\wps274.png]]+28|Current temperature difference|Used during control
724 +|[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml11524\wps275.png]]+29|Previous temperature difference|Used during control
725 +|[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml11524\wps276.png]]+30|The 1st operation flag bit|Used during control
726 +|[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml11524\wps277.png]]+31|Number of valid history outputs|Used during control
727 +|[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml11524\wps278.png]]+32|(% rowspan="3" %)Historical output data|(% rowspan="3" %)Used during control
728 +|┇
729 +|[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml11524\wps279.png]]+631
730 +|[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml11524\wps280.png]]+632|(% rowspan="2" %)Previous sampling time stamp|(% rowspan="2" %)Reserved for internal use
731 +|[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml11524\wps281.png]]+633
869 869  
870 870  **Error code**
871 871  
... ... @@ -880,9 +880,8 @@
880 880  
881 881  **Example**
882 882  
746 +[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml11524\wps282.png]]
883 883  
884 -(% style="text-align:center" %)
885 -[[image:企业微信截图_17581120459254.png]]
886 886  
887 887  == **PRUN/Octal digit transmission (16-bit data)** ==
888 888  
1758111151287-920.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Iris
Size
... ... @@ -1,1 +1,0 @@
1 -7.0 KB
Content
1758111592778-873.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Iris
Size
... ... @@ -1,1 +1,0 @@
1 -2.3 KB
Content
1758111614838-309.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Iris
Size
... ... @@ -1,1 +1,0 @@
1 -2.0 KB
Content
1758111642557-547.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Iris
Size
... ... @@ -1,1 +1,0 @@
1 -2.2 KB
Content
1758111693192-390.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Iris
Size
... ... @@ -1,1 +1,0 @@
1 -2.0 KB
Content
1758111738993-165.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Iris
Size
... ... @@ -1,1 +1,0 @@
1 -13.6 KB
Content
1758111862269-781.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Iris
Size
... ... @@ -1,1 +1,0 @@
1 -2.3 KB
Content
1758113204827-229.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Iris
Size
... ... @@ -1,1 +1,0 @@
1 -1.8 KB
Content
1758113217569-229.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Iris
Size
... ... @@ -1,1 +1,0 @@
1 -1.7 KB
Content
1758113227549-844.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Iris
Size
... ... @@ -1,1 +1,0 @@
1 -1.9 KB
Content
1758113243743-809.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Iris
Size
... ... @@ -1,1 +1,0 @@
1 -1.7 KB
Content
1758113269397-376.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Iris
Size
... ... @@ -1,1 +1,0 @@
1 -31.9 KB
Content
wps291.jpg
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Iris
Size
... ... @@ -1,1 +1,0 @@
1 -42.2 KB
Content
企业微信截图_17581105436817.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Iris
Size
... ... @@ -1,1 +1,0 @@
1 -9.7 KB
Content
企业微信截图_17581120459254.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Iris
Size
... ... @@ -1,1 +1,0 @@
1 -42.1 KB
Content
企业微信截图_17581134583885.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Iris
Size
... ... @@ -1,1 +1,0 @@
1 -28.1 KB
Content
企业微信截图_17581134696804.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Iris
Size
... ... @@ -1,1 +1,0 @@
1 -23.9 KB
Content