Categories: 学习经验

西门子PID功能块FB41(CONT_C)基本应用

<h2>FB41(CONT&lowbar;C)<&sol;h2>&NewLine;<p>西门子PID功能块FB41&OpenCurlyDoubleQuote;CONT&lowbar;C”用于在SIMATIC S7可编程控制器上,控制带有连续输入和输出变量的工艺过程。在参数分配期间,用户可以激活或取消激活PID控制器的部分功能,如积分冻结等,以使控制器适合实际的工艺过程。<&sol;p>&NewLine;<p>西门子PID功能块FB41&OpenCurlyDoubleQuote;CONT&lowbar;C”可以将控制器用作PID固定设定值控制器,或者在多回路控制中用作级联、混合或比率控制器。控制器的功能基于采样控制器的PID控制算法,采样控制器带有一个模拟信号;如果需要的话,还可以扩展控制器的功能,增加一个脉冲生成器环节,以产生脉宽调制的输出信号,用于带有比例执行器的两步或三步控制器。<&sol;p>&NewLine;<p>西门子PID功能块FB41&OpenCurlyDoubleQuote;CONT&lowbar;C”必须在OB定时中断内调用,并将CYCLE(采样时间)管脚的调用时间与 OB定时中断保持一致,即相等 。<&sol;p>&NewLine;<p><img class&equals;"aligncenter wp-image-1421 size-full" src&equals;"https&colon;&sol;&sol;www&period;xuezdh&period;com&sol;wp-content&sol;uploads&sol;2021&sol;01&sol;01FB41&lowbar;block&lowbar;diagram&period;png" alt&equals;"FB41&quot&semi;CONT&lowbar;C&quot&semi; 的方框图" width&equals;"637" height&equals;"664" &sol;><&sol;p>&NewLine;<p>图1&period;FB41"CONT&lowbar;C" 的方框图<&sol;p>&NewLine;<h3>主要参数<&sol;h3>&NewLine;<p><img class&equals;"aligncenter wp-image-1422 size-full" src&equals;"https&colon;&sol;&sol;www&period;xuezdh&period;com&sol;wp-content&sol;uploads&sol;2021&sol;01&sol;02FB41&period;png" alt&equals;"FB41&quot&semi;CONT&lowbar;C&quot&semi; 程序块" width&equals;"402" height&equals;"619" &sol;><&sol;p>&NewLine;<p>图2&period; FB41"CONT&lowbar;C" 程序块<&sol;p>&NewLine;<p>注:以<a href&equals;"https&colon;&sol;&sol;www&period;xuezdh&period;com&sol;tag&sol;tia-portal&sol;" title&equals;"查看与 TIA Portal 相关的文章" target&equals;"&lowbar;blank"><span class&equals;"tag-key">TIA Portal<&sol;span><&sol;a> V13 SP1为例,该功能块在<a href&equals;"https&colon;&sol;&sol;www&period;xuezdh&period;com&sol;tag&sol;step-7&sol;" title&equals;"查看与 STEP 7 相关的文章" target&equals;"&lowbar;blank"><span class&equals;"tag-key">STEP 7<&sol;span><&sol;a>中的管脚与其相同<&sol;p>&NewLine;<p>表1&period; FB41"CONT&lowbar;C" 的输入参数<&sol;p>&NewLine;<table border&equals;"1" width&equals;"100&percnt;">&NewLine;<tbody>&NewLine;<tr>&NewLine;<th scope&equals;"col" width&equals;"12&percnt;">参数<&sol;th>&NewLine;<th scope&equals;"col" width&equals;"10&percnt;">变量类型<&sol;th>&NewLine;<th scope&equals;"col" width&equals;"10&percnt;">数据类型<&sol;th>&NewLine;<th scope&equals;"col" width&equals;"15&percnt;">取值范围<&sol;th>&NewLine;<th scope&equals;"col" width&equals;"10&percnt;">默认<&sol;th>&NewLine;<th scope&equals;"col" width&equals;"18&percnt;">描述<&sol;th>&NewLine;<th scope&equals;"col" width&equals;"25&percnt;">应用<&sol;th>&NewLine;<&sol;tr>&NewLine;<tr>&NewLine;<th scope&equals;"row">COM&lowbar;RST<&sol;th>&NewLine;<td>IN<&sol;td>&NewLine;<td>BOOL<&sol;td>&NewLine;<td><&sol;td>&NewLine;<td>FALSE<&sol;td>&NewLine;<td>完全重启动<&sol;td>&NewLine;<td>置位后需手动去复位<&sol;td>&NewLine;<&sol;tr>&NewLine;<tr>&NewLine;<th scope&equals;"row" height&equals;"60">MAN&lowbar;ON<&sol;th>&NewLine;<td>IN<&sol;td>&NewLine;<td>BOOL<&sol;td>&NewLine;<td><&sol;td>&NewLine;<td>TRUE<&sol;td>&NewLine;<td>手&sol;自动切换按钮<&sol;td>&NewLine;<td>MAN&lowbar;ON&colon;<br &sol;>&NewLine;0&colon;自动<br &sol;>&NewLine;1&colon;手动<&sol;td>&NewLine;<&sol;tr>&NewLine;<tr>&NewLine;<th scope&equals;"row">PVPER&lowbar;ON<&sol;th>&NewLine;<td>IN<&sol;td>&NewLine;<td>BOOL<&sol;td>&NewLine;<td><&sol;td>&NewLine;<td>FALSE<&sol;td>&NewLine;<td>设定值选择外设<&sol;td>&NewLine;<td>PVPER&lowbar;ON&colon;<br &sol;>&NewLine;0&colon;当前值选择PV&lowbar;IN<br &sol;>&NewLine;1&colon;当前值选择PV&lowbar;PER<&sol;td>&NewLine;<&sol;tr>&NewLine;<tr>&NewLine;<th scope&equals;"row">PV&lowbar;IN<&sol;th>&NewLine;<td>IN<&sol;td>&NewLine;<td>REAL<&sol;td>&NewLine;<td>-100~100&lpar;&percnt;&rpar;或者 物理值<&sol;td>&NewLine;<td>0&period;0<&sol;td>&NewLine;<td>过程变量输入<&sol;td>&NewLine;<td>必须与SP&lowbar;INT单位一致<&sol;td>&NewLine;<&sol;tr>&NewLine;<tr>&NewLine;<th scope&equals;"row">PV&lowbar;PER<&sol;th>&NewLine;<td>IN<&sol;td>&NewLine;<td>WORD<&sol;td>&NewLine;<td><&sol;td>&NewLine;<td>16&num;0000<&sol;td>&NewLine;<td>外设过程变量输入<&sol;td>&NewLine;<td>PIW xxx<&sol;td>&NewLine;<&sol;tr>&NewLine;<tr>&NewLine;<th scope&equals;"row">SP&lowbar;INT<&sol;th>&NewLine;<td>IN<&sol;td>&NewLine;<td>REAL<&sol;td>&NewLine;<td>-100~100&lpar;&percnt;&rpar;或者 物理值<&sol;td>&NewLine;<td>0&period;0<&sol;td>&NewLine;<td>内部设定值<&sol;td>&NewLine;<td><&sol;td>&NewLine;<&sol;tr>&NewLine;<tr>&NewLine;<th scope&equals;"row">P&lowbar;SEL<&sol;th>&NewLine;<td>IN<&sol;td>&NewLine;<td>BOOL<&sol;td>&NewLine;<td><&sol;td>&NewLine;<td>TRUE<&sol;td>&NewLine;<td>比例作用激活<&sol;td>&NewLine;<td>P&lowbar;SEL&colon;<br &sol;>&NewLine;0&colon;关闭比例作用<br &sol;>&NewLine;1&colon;激活比例作用<&sol;td>&NewLine;<&sol;tr>&NewLine;<tr>&NewLine;<th scope&equals;"row">I&lowbar;SEL<&sol;th>&NewLine;<td>IN<&sol;td>&NewLine;<td>BOOL<&sol;td>&NewLine;<td><&sol;td>&NewLine;<td>TRUE<&sol;td>&NewLine;<td>积分作用激活<&sol;td>&NewLine;<td>I&lowbar;SEL&colon;<br &sol;>&NewLine;0&colon;关闭积分作用<br &sol;>&NewLine;1&colon;激活积分作用<&sol;td>&NewLine;<&sol;tr>&NewLine;<tr>&NewLine;<th scope&equals;"row">INT&lowbar;HOLD<&sol;th>&NewLine;<td>IN<&sol;td>&NewLine;<td>BOOL<&sol;td>&NewLine;<td><&sol;td>&NewLine;<td>FALSE<&sol;td>&NewLine;<td>积分冻结<&sol;td>&NewLine;<td>冻结当前积分作用<br &sol;>&NewLine;&lpar;仅自动模式有用&rpar;<&sol;td>&NewLine;<&sol;tr>&NewLine;<tr>&NewLine;<th scope&equals;"row">I&lowbar;ITL&lowbar;ON<&sol;th>&NewLine;<td>IN<&sol;td>&NewLine;<td>BOOL<&sol;td>&NewLine;<td><&sol;td>&NewLine;<td>FALSE<&sol;td>&NewLine;<td>积分设定值<&sol;td>&NewLine;<td>I&lowbar;ITL&lowbar;ON&colon;<br &sol;>&NewLine;0&colon;积分作用值由偏差计算<br &sol;>&NewLine;1&colon;积分作用值为I&lowbar;ITLVAL<&sol;td>&NewLine;<&sol;tr>&NewLine;<tr>&NewLine;<th scope&equals;"row">I&lowbar;ITLVAL<&sol;th>&NewLine;<td>IN<&sol;td>&NewLine;<td>REAL<&sol;td>&NewLine;<td>-100~100&lpar;&percnt;&rpar;<&sol;td>&NewLine;<td>0&period;0<&sol;td>&NewLine;<td>积分初始值<&sol;td>&NewLine;<td><&sol;td>&NewLine;<&sol;tr>&NewLine;<tr>&NewLine;<th scope&equals;"row">D&lowbar;SEL<&sol;th>&NewLine;<td>IN<&sol;td>&NewLine;<td>BOOL<&sol;td>&NewLine;<td><&sol;td>&NewLine;<td>FALSE<&sol;td>&NewLine;<td>微分作用打开<&sol;td>&NewLine;<td>I&lowbar;SEL&colon;<br &sol;>&NewLine;0&colon;关闭微分作用<br &sol;>&NewLine;1&colon;激活微分作用<&sol;td>&NewLine;<&sol;tr>&NewLine;<tr>&NewLine;<th scope&equals;"row">CYCLE<&sol;th>&NewLine;<td>IN<&sol;td>&NewLine;<td>TIME<&sol;td>&NewLine;<td>&gt&semi;&equals;1 ms<&sol;td>&NewLine;<td>T&num;1s<&sol;td>&NewLine;<td>采样时间<&sol;td>&NewLine;<td>建议:与定时中断时间设置相同<&sol;td>&NewLine;<&sol;tr>&NewLine;<tr>&NewLine;<th scope&equals;"row">MAN<&sol;th>&NewLine;<td>IN<&sol;td>&NewLine;<td>REAL<&sol;td>&NewLine;<td>-100~100&lpar;&percnt;&rpar;<&sol;td>&NewLine;<td>0&period;0<&sol;td>&NewLine;<td>手动值<&sol;td>&NewLine;<td><&sol;td>&NewLine;<&sol;tr>&NewLine;<tr>&NewLine;<th scope&equals;"row">GAIN<&sol;th>&NewLine;<td>IN<&sol;td>&NewLine;<td>REAL<&sol;td>&NewLine;<td><&sol;td>&NewLine;<td>2&period;0<&sol;td>&NewLine;<td>比例因子<&sol;td>&NewLine;<td><&sol;td>&NewLine;<&sol;tr>&NewLine;<tr>&NewLine;<th scope&equals;"row">TI<&sol;th>&NewLine;<td>IN<&sol;td>&NewLine;<td>TIME<&sol;td>&NewLine;<td>&gt&semi;&equals;CYCLE<&sol;td>&NewLine;<td>T&num;20s<&sol;td>&NewLine;<td>积分时间<&sol;td>&NewLine;<td><&sol;td>&NewLine;<&sol;tr>&NewLine;<tr>&NewLine;<th scope&equals;"row">TD<&sol;th>&NewLine;<td>IN<&sol;td>&NewLine;<td>TIME<&sol;td>&NewLine;<td>&gt&semi;&equals;CYCLE<&sol;td>&NewLine;<td>T&num;10s<&sol;td>&NewLine;<td>微分时间<&sol;td>&NewLine;<td><&sol;td>&NewLine;<&sol;tr>&NewLine;<tr>&NewLine;<th scope&equals;"row">TM&lowbar;LAG<&sol;th>&NewLine;<td>IN<&sol;td>&NewLine;<td>TIME<&sol;td>&NewLine;<td>〉&equals;CYCLE&sol;2<&sol;td>&NewLine;<td>T&num;2s<&sol;td>&NewLine;<td>微分作用的时间延迟<&sol;td>&NewLine;<td>TM&lowbar;LAG越大,微分作用越小<&sol;td>&NewLine;<&sol;tr>&NewLine;<tr>&NewLine;<th scope&equals;"row">DEAD&lowbar;W<&sol;th>&NewLine;<td>IN<&sol;td>&NewLine;<td>REAL<&sol;td>&NewLine;<td>&gt&semi;&equals;0&period;0<&sol;td>&NewLine;<td>0&period;0<&sol;td>&NewLine;<td>死区宽度<&sol;td>&NewLine;<td>SP&lowbar;INT-DEAD&lowbar;W&lt&semi;PV&lowbar;IN&lt&semi;SP&lowbar;INT&plus;DEAD&lowbar;W<br &sol;>&NewLine;当前值在该范围内,PID输出保持不变<&sol;td>&NewLine;<&sol;tr>&NewLine;<tr>&NewLine;<th scope&equals;"row">LMN&lowbar;HLM<&sol;th>&NewLine;<td>IN<&sol;td>&NewLine;<td>REAL<&sol;td>&NewLine;<td><&sol;td>&NewLine;<td>100&period;0<&sol;td>&NewLine;<td>调节值上限<&sol;td>&NewLine;<td><&sol;td>&NewLine;<&sol;tr>&NewLine;<tr>&NewLine;<th scope&equals;"row">LMN&lowbar;LLM<&sol;th>&NewLine;<td>IN<&sol;td>&NewLine;<td>REAL<&sol;td>&NewLine;<td><&sol;td>&NewLine;<td>0&period;0<&sol;td>&NewLine;<td>调节值上限<&sol;td>&NewLine;<td><&sol;td>&NewLine;<&sol;tr>&NewLine;<tr>&NewLine;<th scope&equals;"row">PV&lowbar;FAC<&sol;th>&NewLine;<td>IN<&sol;td>&NewLine;<td>REAL<&sol;td>&NewLine;<td><&sol;td>&NewLine;<td>1&period;0<&sol;td>&NewLine;<td>过程变量因子<&sol;td>&NewLine;<td><&sol;td>&NewLine;<&sol;tr>&NewLine;<tr>&NewLine;<th scope&equals;"row">PV&lowbar;OFF<&sol;th>&NewLine;<td>IN<&sol;td>&NewLine;<td>REAL<&sol;td>&NewLine;<td><&sol;td>&NewLine;<td>0&period;0<&sol;td>&NewLine;<td>过程变量偏移量<&sol;td>&NewLine;<td><&sol;td>&NewLine;<&sol;tr>&NewLine;<tr>&NewLine;<th scope&equals;"row">LMN&lowbar;FAC<&sol;th>&NewLine;<td>IN<&sol;td>&NewLine;<td>REAL<&sol;td>&NewLine;<td><&sol;td>&NewLine;<td>1&period;0<&sol;td>&NewLine;<td>调节值因子<&sol;td>&NewLine;<td><&sol;td>&NewLine;<&sol;tr>&NewLine;<tr>&NewLine;<th scope&equals;"row">LMN&lowbar;OFF<&sol;th>&NewLine;<td>IN<&sol;td>&NewLine;<td>REAL<&sol;td>&NewLine;<td><&sol;td>&NewLine;<td>0&period;0<&sol;td>&NewLine;<td>调节值偏移量<&sol;td>&NewLine;<td><&sol;td>&NewLine;<&sol;tr>&NewLine;<tr>&NewLine;<th scope&equals;"row">DISV<&sol;th>&NewLine;<td>IN<&sol;td>&NewLine;<td>REAL<&sol;td>&NewLine;<td>-100~100&lpar;&percnt;&rpar;<&sol;td>&NewLine;<td>0&period;0<&sol;td>&NewLine;<td>干扰变量<&sol;td>&NewLine;<td><&sol;td>&NewLine;<&sol;tr>&NewLine;<&sol;tbody>&NewLine;<&sol;table>&NewLine;<p>表2&period; FB41"CONT&lowbar;C" 的输出参数<&sol;p>&NewLine;<table border&equals;"1" width&equals;"100&percnt;">&NewLine;<tbody>&NewLine;<tr>&NewLine;<th scope&equals;"col" width&equals;"12&percnt;">参数<&sol;th>&NewLine;<th scope&equals;"col" width&equals;"10&percnt;">变量类型<&sol;th>&NewLine;<th scope&equals;"col" width&equals;"10&percnt;">数据类型<&sol;th>&NewLine;<th scope&equals;"col" width&equals;"15&percnt;">取值范围<&sol;th>&NewLine;<th scope&equals;"col" width&equals;"10&percnt;">默认<&sol;th>&NewLine;<th scope&equals;"col" width&equals;"18&percnt;">描述<&sol;th>&NewLine;<th scope&equals;"col" width&equals;"25&percnt;">应用<&sol;th>&NewLine;<&sol;tr>&NewLine;<tr>&NewLine;<th scope&equals;"row">LMN<&sol;th>&NewLine;<td>OUT<&sol;td>&NewLine;<td>REAL<&sol;td>&NewLine;<td><&sol;td>&NewLine;<td>0&period;0<&sol;td>&NewLine;<td>调节值<&sol;td>&NewLine;<td><&sol;td>&NewLine;<&sol;tr>&NewLine;<tr>&NewLine;<th scope&equals;"row">LMN&lowbar;PER<&sol;th>&NewLine;<td>OUT<&sol;td>&NewLine;<td>WORD<&sol;td>&NewLine;<td><&sol;td>&NewLine;<td>16&num;0000<&sol;td>&NewLine;<td>外设调节值<&sol;td>&NewLine;<td>PQW xxx<&sol;td>&NewLine;<&sol;tr>&NewLine;<tr>&NewLine;<th scope&equals;"row">QLMN&lowbar;HLM<&sol;th>&NewLine;<td>OUT<&sol;td>&NewLine;<td>BOOL<&sol;td>&NewLine;<td><&sol;td>&NewLine;<td>FALSE<&sol;td>&NewLine;<td>调节值上限报警<&sol;td>&NewLine;<td><&sol;td>&NewLine;<&sol;tr>&NewLine;<tr>&NewLine;<th scope&equals;"row">QLMN&lowbar;LLM<&sol;th>&NewLine;<td>OUT<&sol;td>&NewLine;<td>BOOL<&sol;td>&NewLine;<td><&sol;td>&NewLine;<td>FALSE<&sol;td>&NewLine;<td>调节值下限报警<&sol;td>&NewLine;<td><&sol;td>&NewLine;<&sol;tr>&NewLine;<tr>&NewLine;<th scope&equals;"row">LMN&lowbar;P<&sol;th>&NewLine;<td>OUT<&sol;td>&NewLine;<td>REAL<&sol;td>&NewLine;<td><&sol;td>&NewLine;<td>0&period;0<&sol;td>&NewLine;<td>比例分量<&sol;td>&NewLine;<td><&sol;td>&NewLine;<&sol;tr>&NewLine;<tr>&NewLine;<th scope&equals;"row">LMN&lowbar;I<&sol;th>&NewLine;<td>OUT<&sol;td>&NewLine;<td>REAL<&sol;td>&NewLine;<td><&sol;td>&NewLine;<td>0&period;0<&sol;td>&NewLine;<td>积分分量<&sol;td>&NewLine;<td><&sol;td>&NewLine;<&sol;tr>&NewLine;<tr>&NewLine;<th scope&equals;"row">LMN&lowbar;D<&sol;th>&NewLine;<td>OUT<&sol;td>&NewLine;<td>REAL<&sol;td>&NewLine;<td><&sol;td>&NewLine;<td>0&period;0<&sol;td>&NewLine;<td>微分分量<&sol;td>&NewLine;<td><&sol;td>&NewLine;<&sol;tr>&NewLine;<tr>&NewLine;<th scope&equals;"row">PV<&sol;th>&NewLine;<td>OUT<&sol;td>&NewLine;<td>REAL<&sol;td>&NewLine;<td><&sol;td>&NewLine;<td>0&period;0<&sol;td>&NewLine;<td>当前值输出<&sol;td>&NewLine;<td><&sol;td>&NewLine;<&sol;tr>&NewLine;<tr>&NewLine;<th scope&equals;"row">ER<&sol;th>&NewLine;<td>OUT<&sol;td>&NewLine;<td>REAL<&sol;td>&NewLine;<td><&sol;td>&NewLine;<td>0&period;0<&sol;td>&NewLine;<td>偏差<&sol;td>&NewLine;<td>ER&equals;SP&lowbar;INT-PV&lowbar;IN<&sol;td>&NewLine;<&sol;tr>&NewLine;<&sol;tbody>&NewLine;<&sol;table>&NewLine;<h2>基本功能<&sol;h2>&NewLine;<p>由图 1 可知,FB41可以分为偏差产生、PID运算、PID输出三部分。<&sol;p>&NewLine;<p>以下为管道压力控制实例说明:<&sol;p>&NewLine;<p>升压时,阀门开度增加;降压时,阀门开度减小。<&sol;p>&NewLine;<p>被控对象:0-100Kpa (压力)输入信号:4-20mA<&sol;p>&NewLine;<p>设 定 值 :60Kpa<&sol;p>&NewLine;<p>执行元件:0-100&percnt; (阀门)输出信号:4-20mA<&sol;p>&NewLine;<h3>手&sol;自动选择(MAN&lowbar;ON)<&sol;h3>&NewLine;<p>表3&period;MAN&lowbar;ON的选择<&sol;p>&NewLine;<table border&equals;"1" width&equals;"100&percnt;">&NewLine;<tbody>&NewLine;<tr>&NewLine;<th scope&equals;"col" width&equals;"20&percnt;">参数<&sol;th>&NewLine;<th scope&equals;"col" width&equals;"20&percnt;">状态<&sol;th>&NewLine;<th scope&equals;"col" width&equals;"60&percnt;">说明<&sol;th>&NewLine;<&sol;tr>&NewLine;<tr>&NewLine;<td>MAN&lowbar;ON<&sol;td>&NewLine;<td>0<&sol;td>&NewLine;<td>自动控制:PID经过程序块计算输出<&sol;td>&NewLine;<&sol;tr>&NewLine;<tr>&NewLine;<td>MAN&lowbar;ON<&sol;td>&NewLine;<td>1<&sol;td>&NewLine;<td>手动控制:直接由MAN控制输出<&sol;td>&NewLine;<&sol;tr>&NewLine;<&sol;tbody>&NewLine;<&sol;table>&NewLine;<h3>当前值PV&lowbar;IN与PV&lowbar;PER的选择<&sol;h3>&NewLine;<p>表4&period;PVPER&lowbar;ON的选择<&sol;p>&NewLine;<table border&equals;"1" width&equals;"100&percnt;">&NewLine;<tbody>&NewLine;<tr>&NewLine;<th scope&equals;"col" width&equals;"20&percnt;">参数<&sol;th>&NewLine;<th scope&equals;"col" width&equals;"20&percnt;">状态<&sol;th>&NewLine;<th scope&equals;"col" width&equals;"60&percnt;">说明<&sol;th>&NewLine;<&sol;tr>&NewLine;<tr>&NewLine;<td>PVPER&lowbar;ON<&sol;td>&NewLine;<td>0<&sol;td>&NewLine;<td>PV&lowbar;IN有效<&sol;td>&NewLine;<&sol;tr>&NewLine;<tr>&NewLine;<td>PVPER&lowbar;ON<&sol;td>&NewLine;<td>1<&sol;td>&NewLine;<td>PV&lowbar;PER有效<&sol;td>&NewLine;<&sol;tr>&NewLine;<&sol;tbody>&NewLine;<&sol;table>&NewLine;<p><strong>注:无论当前值选择哪个管脚,SP&lowbar;INT必须与其量纲相同<&sol;strong><&sol;p>&NewLine;<h3><strong>PVPER&lowbar;ON&equals;0<&sol;strong><&sol;h3>&NewLine;<p>利用量程转换块<a href&equals;"https&colon;&sol;&sol;www&period;xuezdh&period;com&sol;tag&sol;fc105&sol;" title&equals;"查看与 FC105 相关的文章" target&equals;"&lowbar;blank"><span class&equals;"tag-key">FC105<&sol;span><&sol;a>"SCALE"将过程变量转换为实际工程量<&sol;p>&NewLine;<p><img class&equals;"aligncenter wp-image-1423 size-full" src&equals;"https&colon;&sol;&sol;www&period;xuezdh&period;com&sol;wp-content&sol;uploads&sol;2021&sol;01&sol;03FC105&period;png" alt&equals;"FC105&OpenCurlyDoubleQuote;SCALE”量程转换块" width&equals;"376" height&equals;"172" &sol;><&sol;p>&NewLine;<p>图3&period;FC105&OpenCurlyDoubleQuote;SCALE”量程转换块<&sol;p>&NewLine;<p>注:以TIA Portal V13 SP1为例,该功能块在<a href&equals;"https&colon;&sol;&sol;www&period;xuezdh&period;com&sol;tag&sol;step-7&sol;" title&equals;"查看与 STEP 7 相关的文章" target&equals;"&lowbar;blank"><span class&equals;"tag-key">STEP 7<&sol;span><&sol;a>中的管脚与其相同<&sol;p>&NewLine;<p>表5&period;FC105&OpenCurlyDoubleQuote;SCALE”参数引脚<&sol;p>&NewLine;<table border&equals;"1" width&equals;"100&percnt;">&NewLine;<tbody>&NewLine;<tr>&NewLine;<th scope&equals;"col" width&equals;"15&percnt;">参数<&sol;th>&NewLine;<th scope&equals;"col" width&equals;"15&percnt;">变量类型<&sol;th>&NewLine;<th scope&equals;"col" width&equals;"15&percnt;">数据类型<&sol;th>&NewLine;<th scope&equals;"col" width&equals;"15&percnt;">描述<&sol;th>&NewLine;<th scope&equals;"col" width&equals;"40&percnt;">说明<&sol;th>&NewLine;<&sol;tr>&NewLine;<tr>&NewLine;<th scope&equals;"row">IN<&sol;th>&NewLine;<td>IN<&sol;td>&NewLine;<td>INT<&sol;td>&NewLine;<td>输入<&sol;td>&NewLine;<td>PIW xxx<&sol;td>&NewLine;<&sol;tr>&NewLine;<tr>&NewLine;<th scope&equals;"row">HI&lowbar;LIM<&sol;th>&NewLine;<td>IN<&sol;td>&NewLine;<td>REAL<&sol;td>&NewLine;<td>输出值上限<&sol;td>&NewLine;<td><&sol;td>&NewLine;<&sol;tr>&NewLine;<tr>&NewLine;<th scope&equals;"row">LO&lowbar;LIM<&sol;th>&NewLine;<td>IN<&sol;td>&NewLine;<td>REAL<&sol;td>&NewLine;<td>输出值下限<&sol;td>&NewLine;<td><&sol;td>&NewLine;<&sol;tr>&NewLine;<tr>&NewLine;<th scope&equals;"row">BIPOLAR<&sol;th>&NewLine;<td>IN<&sol;td>&NewLine;<td>BOOL<&sol;td>&NewLine;<td>极性选择<&sol;td>&NewLine;<td>&NewLine;<p align&equals;"left">BIPOLAR:<br &sol;>&NewLine;0:单极性<br &sol;>&NewLine;1:双极性<&sol;p>&NewLine;<&sol;td>&NewLine;<&sol;tr>&NewLine;<tr>&NewLine;<th scope&equals;"row">RET&lowbar;VAL<&sol;th>&NewLine;<td>OUT<&sol;td>&NewLine;<td>WORD<&sol;td>&NewLine;<td>错误信息<&sol;td>&NewLine;<td><&sol;td>&NewLine;<&sol;tr>&NewLine;<tr>&NewLine;<th scope&equals;"row">OUT<&sol;th>&NewLine;<td>OUT<&sol;td>&NewLine;<td>REAL<&sol;td>&NewLine;<td>输出<&sol;td>&NewLine;<td><&sol;td>&NewLine;<&sol;tr>&NewLine;<&sol;tbody>&NewLine;<&sol;table>&NewLine;<p><img class&equals;"aligncenter wp-image-1424 size-full" src&equals;"https&colon;&sol;&sol;www&period;xuezdh&period;com&sol;wp-content&sol;uploads&sol;2021&sol;01&sol;04PVPER&lowbar;ON&period;png" alt&equals;"PVPER&lowbar;ON&equals;0时,PV&lowbar;IN有效" width&equals;"421" height&equals;"654" &sol;><&sol;p>&NewLine;<p>图4&period;PVPER&lowbar;ON&equals;0时,PV&lowbar;IN有效<&sol;p>&NewLine;<h3>PVPER&lowbar;ON&equals;1<&sol;h3>&NewLine;<p>直接将过程变量输入到PV&lowbar;PER管脚,会按照以下公式进行规格化转换。<&sol;p>&NewLine;<p><strong>公式&colon;PV&equals;&lpar;PV&lowbar;PER&ast;100&sol;27648&rpar;&ast;PV&lowbar;FAC&plus;PV&lowbar;OFF<&sol;strong><&sol;p>&NewLine;<p>默认转换为0-100(&percnt;)<&sol;p>&NewLine;<p><img class&equals;"aligncenter wp-image-1425 size-full" src&equals;"https&colon;&sol;&sol;www&period;xuezdh&period;com&sol;wp-content&sol;uploads&sol;2021&sol;01&sol;05PVPER&lowbar;ON&period;png" alt&equals;"PVPER&lowbar;ON&equals;1时,PV&lowbar;PER有效" width&equals;"373" height&equals;"613" &sol;><&sol;p>&NewLine;<p>图5&period;PVPER&lowbar;ON&equals;1时,PV&lowbar;PER有效<&sol;p>&NewLine;<h3>PID参数输入<&sol;h3>&NewLine;<p>表6&period;PID参数设定<&sol;p>&NewLine;<table border&equals;"1" width&equals;"100&percnt;">&NewLine;<tbody>&NewLine;<tr>&NewLine;<th scope&equals;"col" width&equals;"20&percnt;">参数<&sol;th>&NewLine;<th scope&equals;"col" width&equals;"20&percnt;">描述<&sol;th>&NewLine;<th scope&equals;"col" width&equals;"60&percnt;">说明<&sol;th>&NewLine;<&sol;tr>&NewLine;<tr>&NewLine;<th scope&equals;"row">GAIN<&sol;th>&NewLine;<td>比例增益<&sol;td>&NewLine;<td>1&comma;GAIN越大,比例作用越大&semi;<br &sol;>&NewLine;2&comma;PID输出正&sol;反作用由GAIN参数正负选择:<br &sol;>&NewLine;&plus;:正作用:输出增大,偏差减小<br &sol;>&NewLine;-:反作用:输出减小,偏差减小<&sol;td>&NewLine;<&sol;tr>&NewLine;<tr>&NewLine;<th scope&equals;"row">TI<&sol;th>&NewLine;<td>积分时间<&sol;td>&NewLine;<td>TI越大,积分作用越小<&sol;td>&NewLine;<&sol;tr>&NewLine;<tr>&NewLine;<th scope&equals;"row">TD<&sol;th>&NewLine;<td>微分时间<&sol;td>&NewLine;<td>TD越大,微分作用越大<&sol;td>&NewLine;<&sol;tr>&NewLine;<&sol;tbody>&NewLine;<&sol;table>&NewLine;<h3>PID输出LMN与LMN&lowbar;PER选择<&sol;h3>&NewLine;<p>表7&period;PID输出管脚<&sol;p>&NewLine;<table border&equals;"1" width&equals;"100&percnt;">&NewLine;<tbody>&NewLine;<tr>&NewLine;<th scope&equals;"col" width&equals;"20&percnt;">参数<&sol;th>&NewLine;<th scope&equals;"col" width&equals;"20&percnt;">类型<&sol;th>&NewLine;<th scope&equals;"col" width&equals;"60&percnt;">说明<&sol;th>&NewLine;<&sol;tr>&NewLine;<tr>&NewLine;<td>LMN<&sol;td>&NewLine;<td>REAL<&sol;td>&NewLine;<td>默认输出0-100&lpar;&percnt;&rpar;<&sol;td>&NewLine;<&sol;tr>&NewLine;<tr>&NewLine;<td>LMN&lowbar;PER<&sol;td>&NewLine;<td>WORD<&sol;td>&NewLine;<td>16&num;0-16&num;6C00<br &sol;>&NewLine;&lpar;0-27648&rpar;<&sol;td>&NewLine;<&sol;tr>&NewLine;<&sol;tbody>&NewLine;<&sol;table>&NewLine;<h3>LMN输出<&sol;h3>&NewLine;<p>利用量程转换块<a href&equals;"https&colon;&sol;&sol;www&period;xuezdh&period;com&sol;tag&sol;fc106&sol;" title&equals;"查看与 FC106 相关的文章" target&equals;"&lowbar;blank"><span class&equals;"tag-key">FC106<&sol;span><&sol;a>"UNSCALE"将LMN转换为0-27648的工程量<&sol;p>&NewLine;<p><img class&equals;"aligncenter wp-image-1426 size-full" src&equals;"https&colon;&sol;&sol;www&period;xuezdh&period;com&sol;wp-content&sol;uploads&sol;2021&sol;01&sol;06FC106&period;png" alt&equals;"FC106&quot&semi;UNSCALE&quot&semi;量程转换块" width&equals;"430" height&equals;"172" &sol;><&sol;p>&NewLine;<p>图6&period;FC106"UNSCALE"量程转换块<&sol;p>&NewLine;<p><span style&equals;"color&colon; &num;ff0000&semi;">注:以TIA Portal V13 SP1为例,该功能块在STEP 7中的管脚与其相同<&sol;span><&sol;p>&NewLine;<p>表8&period;FC106"UNSCALE"参数引脚<&sol;p>&NewLine;<table border&equals;"1" width&equals;"100&percnt;">&NewLine;<tbody>&NewLine;<tr>&NewLine;<th scope&equals;"col" width&equals;"15&percnt;">参数<&sol;th>&NewLine;<th scope&equals;"col" width&equals;"10&percnt;">变量类型<&sol;th>&NewLine;<th scope&equals;"col" width&equals;"10&percnt;">数据类型<&sol;th>&NewLine;<th scope&equals;"col" width&equals;"10&percnt;">取值范围<&sol;th>&NewLine;<th scope&equals;"col" width&equals;"10&percnt;">描述<&sol;th>&NewLine;<th scope&equals;"col" width&equals;"45&percnt;">说明<&sol;th>&NewLine;<&sol;tr>&NewLine;<tr>&NewLine;<th scope&equals;"row">IN<&sol;th>&NewLine;<td>IN<&sol;td>&NewLine;<td>REAL<&sol;td>&NewLine;<td><&sol;td>&NewLine;<td>输入<&sol;td>&NewLine;<td><&sol;td>&NewLine;<&sol;tr>&NewLine;<tr>&NewLine;<th scope&equals;"row">HI&lowbar;LIM<&sol;th>&NewLine;<td>IN<&sol;td>&NewLine;<td>REAL<&sol;td>&NewLine;<td><&sol;td>&NewLine;<td>输入值上限<&sol;td>&NewLine;<td><&sol;td>&NewLine;<&sol;tr>&NewLine;<tr>&NewLine;<th scope&equals;"row">LO&lowbar;LIM<&sol;th>&NewLine;<td>IN<&sol;td>&NewLine;<td>REAL<&sol;td>&NewLine;<td><&sol;td>&NewLine;<td>输入值下限<&sol;td>&NewLine;<td><&sol;td>&NewLine;<&sol;tr>&NewLine;<tr>&NewLine;<th scope&equals;"row">BIPOLAR<&sol;th>&NewLine;<td>IN<&sol;td>&NewLine;<td>BOOL<&sol;td>&NewLine;<td><&sol;td>&NewLine;<td>极性选择<&sol;td>&NewLine;<td>&NewLine;<p align&equals;"left">BIPOLAR:<br &sol;>&NewLine;0:单极性<br &sol;>&NewLine;1:双极性<&sol;p>&NewLine;<&sol;td>&NewLine;<&sol;tr>&NewLine;<tr>&NewLine;<th scope&equals;"row">RET&lowbar;VAL<&sol;th>&NewLine;<td>OUT<&sol;td>&NewLine;<td>WORD<&sol;td>&NewLine;<td><&sol;td>&NewLine;<td>错误信息<&sol;td>&NewLine;<td><&sol;td>&NewLine;<&sol;tr>&NewLine;<tr>&NewLine;<th scope&equals;"row">OUT<&sol;th>&NewLine;<td>OUT<&sol;td>&NewLine;<td>INT<&sol;td>&NewLine;<td><&sol;td>&NewLine;<td>输出<&sol;td>&NewLine;<td><&sol;td>&NewLine;<&sol;tr>&NewLine;<&sol;tbody>&NewLine;<&sol;table>&NewLine;<h3>LMN&lowbar;PER<&sol;h3>&NewLine;<p>直接将PQWxxx连接到LMN&lowbar;PER管脚控制输出<&sol;p>&NewLine;<p><img class&equals;"aligncenter wp-image-1427 size-full" src&equals;"https&colon;&sol;&sol;www&period;xuezdh&period;com&sol;wp-content&sol;uploads&sol;2021&sol;01&sol;07FB41&lowbar;OUT&period;png" alt&equals;"FB41&quot&semi;CONT&lowbar;C&quot&semi;LMN&lowbar;PER输出" width&equals;"440" height&equals;"318" &sol;><&sol;p>&NewLine;<p>图7&period;FB41"CONT&lowbar;C"LMN&lowbar;PER输出<&sol;p>&NewLine;

最新文章

西门子TIA Portal V16虚拟机分享,含更新

Windows操作系统版本 W…

7 月 ago

西门子TIA Portal V21虚拟机分享下载

Windows操作系统版本 V…

7 月 ago

S7-200 SMART V3.0 新增功能

只有固件版本为 V3.0 的 …

1 年 ago