您好,欢迎光临本网站![请登录][注册会员]  
文件名称: 西门子S7-300 STL编写PID例程(英文).pdf
  所属分类: 其它
  开发工具:
  文件大小: 184kb
  下载次数: 0
  上传时间: 2019-10-20
  提 供 者: weixin_********
 详细说明:西门子S7-300 STL编写PID例程(英文)pdf,西门子S7-300 STL编写PID例程(英文) Address Data Type Comment 1 basicPID FB101 M101 BOOL dDB D101 DE101 4 raw OUTPUT INT F PIW! 256 INT MW O NT 7 loop_scheduler T 0 TIMER 口tmE M 6.1 BOOL 9|m 42 BOOL 10 lOOp OUT POW 256 INT 11 B100 Cmy1e七卫 estart Oe ethel1: r restart,int1a1z巨卫工D1a□p t pID l 卫g卫 araMeTE上st 七ia1Wa11已三, A good, safe starting point for gain is 1.0 EN EN口 N OUT pidDB.gain Tetryl2:卫 ate tends ta make fast1 oops unstar1e,s0立t立s0 tten set to0 MOVE EN EN口 0.00000e+口I N 口UT dEBat Metall3:Se三t工m。t。5000m11立三色cds,a5三ead MOVE EN EN口 100Doe+00号 口UT Network4:1aP三品mP1tim=500丑工1立三是Yd 12s色巴□d M口vE EN EN口 5.0apoe+a口 N 口UT pi山B".samp1e oBI Example program shoring PID loop operation Netvr 1- pID lo cheduling timer 1口口p七工卫e DT s 1apt立m BCD R twork2:Pex1dca11y二a]1P工Df1n1ct1a1上工ock CDR loop time asic工D EN ENO mmode recr r modt raw pT"Pl PsP raw OUTPUT" HOUT Network 3 Copy output to Analog Output point. M口uE EK口 raw OUTPUT"HIN 口UT 1p口tT" Address Decl Synbol Data Type Initial TalueComment 0.0i lode re BOOL F豆LSE requested mode false=manual true=auto PT 工TT process variable in 0..27648 range 4.0a1t BOOL FALSE C1yynt.mdef沍1s已= sitL-1七Yue〓u口 6.oin out SP 工yr setpoint in 0. range o in out OUT 工T output in 0. range 10.stat REAL 1-000000e+ooo proportional gain factor 14.stat RE豆L 0.000000e+ooo derivative time, in msec 18.0零七a七 上已已t 1.000000e+004integration time, in msec 2stat sample REAL 1-000000e+002 sample time 26.ostat PTscl 00000ue-001P 0.0st Pscl REAL 5.000000e-001sP, scaled to0..1 34.ostat TTs二1 R盈L lOUT 0..1 8. stat ra上 RE豆L 0. 000000eto00error ter 4 三七邑 h立邑 RR豆L 000000eto00 integration accumulato 46.0s七 p。1 REAL 5.000000e-0o1 last sammple's pT term 0.000000et000 precalculated integration coefficient 54.0多a|DCa色£E 「RRAL 0.00000色+000 preca1 culated derivative c。e丘 ficient BOOL FALSE current mode. false=manuel. true=aut 58.1sta七 le BOOL FALSE aLc且term口dech Mp RE盈L 图 proportla1 ter of pid 4.temp M R豆AL ine叮上a七 1of ter丘卫工D 8.temp Md CeriTatτ e term of工 12.templA REAL CD卫七r立上ut立口卫 七 FB101:B阻s口P工D,Wit丑au旦1axms,pt立0ms,巳t已 This function block performs a simple, position algorithm pID calculation. The k1cksk。1dbea1 led Tit上 a separat色inst盘 ce dat盘上1 for each p工D1P For each PID loop, the block should be called regularly at the interval specified in the #sample parameter The enginee1ise多pns上1 e for setting appropriate T=1ue三 in the cai1,并工ate 工e三e, and *samp1ef立e1 ds in the inst arce data h1ck. The other fie1 ds in the be changed by the programmer: these fields are used by the loop for internal C三1cuLa七立Q卫s While in Manual mode, the loop does not per form the PID calculation. The user may write values to the OUT parameter to manually control the output while in Manual mode. While in Auto mode, the loop does the PID calculation and writes to the out put Manual Auto transition, the loop does a "Bumpless Transter TH loop t三t三p1Yt( sp paramete) to the1eYp, end sets the 1p'siYt“ai七m(欺上主盘s)tt上e已1EEeP1:t(0UTp盘益et色).T三 t上 e attest口ie 七1ga111atgd1 口1 cUt at t上 a =an Ts11 t上 last Manual mode loop output after putting a loop in Auto mode, you should change the sp (setpoint to the required walue as the Bumpless Transfer will re changed it equal the pt
(系统自动生成,下载前可以参看下载内容)

下载文件列表

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.
 输入关键字,在本站1000多万海量源码库中尽情搜索: