资源描述
Hauptteiltext,Zweite Ebene,Dritte Ebene,Folientitel,Date:,*,File:Analog.,*,SIMATIC,S7,Siemens AG 2003.All rights reserved.,SITRAIN,Training for,Automation and Drives,目标,学习了本章之后,你将.,.了解模拟量处理的原理,.能够使用“,HW Config“,工具给模拟量模板赋值并能够设置模板的量程卡模块到正确位置,.能够给模拟量模板编址,.能够解释模板的分辨率,.能够在程序中处理模拟量的结果,模拟量模板的用途,生产过程,物理量,标准的模拟,信号,传感器,变送器,压力,温度,流量,速度,pH,值,粘性,等,500,mV,1V,5V,10V,20mA,4.20mA,等,DAC,PQW.,PQW.,:,PQW.,模拟量输出模板,MR,模块,ADC,结果,存储器,PIW.,PIW.,:,PIW.,模拟量输入模板,CPU,:,:,:,:,:,:,L PIW 304,T PQW 320,:,模拟,执行器,物理量,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,量程卡,模拟量模板的参数,双击,模拟输入模板,SM335(,输入),SM331,模拟输出模板,SM335(,输出),SM332,模拟量的表达方式和测量值的分辨率,2,0,2,1,2,2,2,3,2,4,2,5,2,6,2,7,2,8,2,9,2,10,2,11,2,12,2,13,2,14,VZ,16进制,.,位值,十进制,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,位的序号,单位,位的,分辨率,+符号,1,*,1,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,15,*,=,0,或,1,80,0,0,0,0,0,0,0,*,128,*,*,*,*,*,*,*,*,8,40,20,10,8,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,*,64,*,32,*,16,*,8,*,4,*,2,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,9,10,11,12,13,14,在不同测量范围下模拟量的表达方式,范围,超上限,超上界,额定范围,超下界,超下限,测量范围,10,V,电压,例如:,=11.759,11.7589,:10.0004,10.00,7.50 0,-7.50,-10.00,-10.0004,:-11.759,=22.815,22.810,:20.0005,20.000,16.000 :,:,4.000,3.9995,:1.1852,=1000.1,1000.0,:850.1,850.0,:,:,-200.0,-200.1,:-243.0,=352.778,352.767,:300.011,300.000,225.000 :,:,0.000,不允许,负值,单位,32767,32511,:27649,27648,20736 :,:,0,-32768,-1,:-4864,模拟输出量的表达形式,范围,超上限,超上界,额定范围,超下界,超下限,单位,=32767,32511,:27649,27648,:0,:,-6912,-6913,:,:,:,-27648,-27649,:-32512,=-32513,输出范围:,电压,0,11.7589,:10.0004,10.0000,:0,0,to 10V,1,to 5V,0,5.8794,:5.0002,5.0000,:1.0000,0,11.7589,:10.0004,10.0000,:0,:,:,:,:,:,:,:,-10.0000,-10.0004,:-11.7589,0,10,V,0,0.9999,0,0,输出范围:,电流,0,23.515,:20.0007,20.000,:0,0,to 20mA,4,to 20mA,0,22.81,:20.005,20.000,:4.000,0,23.515,:20.0007,20.000,:0,:,:,:,:,:,:,:,-20.000,-20.007,:-23.515,0,20,mA,0,3.9995,0,0,S7-300,模拟量模板的寻址,IM,256,to,270,336,to,350,352,to,366,368,to,382,304,to,318,320,to,334,272,to,286,288,to,302,(发送),槽口号 2 3 4 5 6 7 8 9 10 11,384,to,398,400,to,414,432,to,446,448,to,462,464,to,478,480,to,494,496,to,510,416,to,430,机架,1,机架,0,电源,模板,IM,(接收),电源,模板,CPU,512,to,526,528,to,542,544,to,558,560,to,574,576,to,590,592,to,606,608,to,622,624,to,638,机架,2,IM,(接收),电源,模板,机架,3,640,to,654,656,to,670,672,to,686,688,to,702,704,to,718,720,to,734,736,to,750,752,to,766,IM,(接收),电源,模板,练习,:,配置模拟量模板,SM331,练习:用诊断中断的硬件诊断,双击,练习,:,被传送的零件的记录和重量显示,AI2,AI1,重量,0,至 500,kg,-15,V.+15V,AI1,AI2,AO1,AO2,V,0,10,模拟器,0.10,V,PIW 304,AI,模板,0.27648,QW 6,DO,模板,0至,500 kg,BCD,显示,1,2,3,0,重量显示,当,I 0.6=1,如果你想知道更多,模拟输入量的规范化,HI_LIM=500.0,LO_LIM=0.0,0,27648,-27648,双向,(M 0.0=1),(,传感器也提供负电压,),B,27648,HI_LIM=500.0,LO_LIM=0.0,0,单向,(,M 0.0=0),(,传感器只提供正电压),A,OUT,IN,IN,OUT,x,x+1,x,x+1,练习(选做),:,结构化的极限监视功能,FB9,ACTV,HL,LL,HYS,QH,QL,LIMIT,模拟变量,的实际值,HL,LL,HYS,HYS,QH,QL,t,功能,符号,LO_LIM,HI_LIM,
展开阅读全文