Changes for page 11 PID Control Instruction
Last modified by Iris on 2025/09/17 20:56
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Attachments (0 modified, 7 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -158,7 +158,7 @@ 158 158 |4D81H|Input filter constant (α) is out of range (α<0 or α>1023) 159 159 |4D82H|The maximum ascent rate (△//T//) is out of range.(△//T//<0 or △//T//>1023) 160 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) 161 +|4D87H|The proportional gain (K//p//) is out of range.(K//p//<1 or K//p//>32000) 162 162 |4D88H|The integral time constant (Ti) is out of range.(K//i//<0 or K//i//>3600) 163 163 |4D89H|The differential time constant (T//d//) is out of range.(K//d//<0 or K//d//>1000) 164 164 |4D90H|The upper limit of CCPID output is less than the lower limit. ... ... @@ -614,7 +614,152 @@ 614 614 (% style="text-align:center" %) 615 615 [[image:11_html_74a7527eace55103.gif||class="img-thumbnail"]] 616 616 617 +== ** CCPIN_SHT operation** == 617 617 619 +**CCPIN_SHT** 620 + 621 +This instruction is used to perform PID control that changes the output value according to the variation of the input. 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 + 618 618 == **LAGCDL Large time-delay temperature control instruction** == 619 619 620 620 **LAGCDL**
- 1758113204827-229.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Iris - Size
-
... ... @@ -1,0 +1,1 @@ 1 +1.8 KB - Content
- 1758113217569-229.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Iris - Size
-
... ... @@ -1,0 +1,1 @@ 1 +1.7 KB - Content
- 1758113227549-844.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Iris - Size
-
... ... @@ -1,0 +1,1 @@ 1 +1.9 KB - Content
- 1758113243743-809.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Iris - Size
-
... ... @@ -1,0 +1,1 @@ 1 +1.7 KB - Content
- 1758113269397-376.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Iris - Size
-
... ... @@ -1,0 +1,1 @@ 1 +31.9 KB - Content
- 企业微信截图_17581134583885.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Iris - Size
-
... ... @@ -1,0 +1,1 @@ 1 +28.1 KB - Content
- 企业微信截图_17581134696804.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Iris - Size
-
... ... @@ -1,0 +1,1 @@ 1 +23.9 KB - Content