FM350-1使用
- 格式:doc
- 大小:181.50 KB
- 文档页数:5
First Steps in CommissioningThis guide uses a specific example to introduce you to starting up your FM 350-1 module. It uses four steps to lead to a functioning application in which you count the switching operations of a contact and become familiar with and test the basic functions of the hardware and software of your FM 350-1. The references to the manual are intended to give you an initial overview of the information in the manual. The references refer to the “FM 350-1 Function Module” manual wi th the number A5E00073040-01. The timerequired to work through the example will be approximately 1 to 2 hours, depending on how experienced you are.RequirementsThe following requirements must be fulfilled:•You must have an S7-300 station comprising a power supply module and a CPU.•STEP 7 (≥V4.02 is correctly installed on your programming device (the example given in this Getting Started was carried out with STEP 7 V5.0.•You have set up a project for the S7-300 station.•The programming device must be connected to the CPU.•You must have an FM 350-1 module, the configuration package for the FM 350-1, and the necessary accessories such as a bus connector, front connector, sensors or switches, and wiring material.Installing the Configuration Package on the Programming Device(Manual Chapter 5The configuration package contains a configuration tool for the FM 350-1, the functions (FC and the data structure (UDT required, and a sample program.Insert the CD in the CD drive.Under Windows start the dialog for installing software by double-clicking the “Add/Remove Programs”symbol in “Control Panel”.Click Install... , start the Setup.exe file on the CD in the FMx50-1\Disk1 folder and follow the instructions of the installation program.Installing and Wiring the FM 350-1 (Manual Chapter 3 and 4To connect the 24-V sensor used in the example you must insert the coding key on the module in position D before you insert the FM 350-1. This sets the adjustment to the sensor level (you will find more information on the coding key in Sections 1.3 and 3.2 of the manual.Plug the bus connector supplied with the FM 350-1 into the bus connector on the CPU. Hang theFM 350-1 into the rail, swing it downwards, and screw it in place (you will find more detailed instructions in Section 3.2 of the manual.Wire up the front connector as follows (you will find the full pin assignment of the front connector in Chapter 4 of the manual:Insert the front connector in the FM 350-1 and snap it into place.Test:Switch on the voltage on the power supply module. The red LED SF lights up. After you have switched on the power supply module for the first time, the FM 350-1 is in the preset default state (refer to Section 4.3 of the manual for default settings.Assigning Parameters to the FM 350-1Open your project in the SIMATIC Manager.Open the configuration table (HW Config in your project.From the hardware catalog select the FM 350-1 with the correct order number and drag it to the required slot (in the example: slot 4.Call the parameter assignment screen forms by double-clicking on this FM 350-1. To do this, you may have to close the dialog asking you to save the configuration with OK.Select the following settings by clicking on the buttons in the parameter assignment screen forms (please leave all other settings unchanged, as they are not yet required for commissioning:•Operating Modes:0 to +32 Bit, Continuous Counting, Hardware Gate•Encoders:24V Initiator, P Switch•Inputs:Level-Controlled Hardware Gate•Process interrupt enable:not p ossible as deselected in basic parameters•Outputs:DQ0 Inactive, DQ1 Inactive•Reaction to CPU stop:STOPEnter the FM 350-1 parameter assignments in your configuration using the menu command File →Save and close the parameter assignment window.Save the configuration created by you in your project using Station>Save and Compile.Download the configuration with the CPU in STOP mode using the menu command PLC →Download T o Module.The data are now downloaded directly to the CPU and into the FM 350-1. The red LED SF extinguishes. From now on, as long as the configuration remains buffered in theCPU, the data will be transferred from the CPU to the FM 350-1 every time the CPU switches from STOP to RUN.Test:You can now run simple tests without a program:Close the gate contact: the green LED I0 lights up.Close and open the count contact several times: you can monitor the state of the leastsignificant bit of the FM 350-1 counter via the green LED CR.Note that a mechanical count contact can bounce.When you open the gate contact, the gate LED I0 extinguishes and no more switchingoperations are counted (the timing diagram for this function can be found in Section 2.2 of the manual.Integrating into the User ProgramOpen the library FMx50LIB in the SIMATIC Manager using the menu command File →Open...Libraries.Copy the functions FC0 and FC1 and the user-defined data type UDT1 from the “Blocks” container of the FMx50LIB library to the “Blocks” container of your project.Insert DB1 in the “Blocks” container using the menu command Insert → S7 Block → Data Block. Open DB1 and create the DB1 as a data block referencing the user-defined data type UDT1.Save the DB 1 with File>Save and then close with File>Close.Open the popup menu in HW Config by clicking with the right mouse button on the FM350-1 entry. Using the Object Properties menu command start the Properties –FM350-1 COUNTER screen form. Using the Mod Addr... button you can now automatically enter the module address (MOD_ADR (in the example: 256 corresponds to 100 Hex, the channel address (CH-ADR and the channel length set under Addresses in the channel data block.You can achieve this by clicking the Select DB button in the Module Address for DB screen form. Click and select the DB 1 in the Open dialog which was started . By clicking OK the values are stored inDB 1 and the Open and Module address for DB screen forms are automatically closed. Exit the Properties – FM350-1 COUNTER screen form with OK.Alternatively you can also supply these parameters to DB1 in OB100 (see manual, Section 6.1. Open OB 1 in your project.Call FC0 in OB1 and supply parameters to FC0 (see manual, Section 6.1:CALL FC 0DB_NO := 1::Assign all remaining parameters of FC0 with free memory bits.Save OB1 using the menu command File → Sav e.Select all the blocks in your project (apart from VAT and UDT.Download your program to the CPU using the menu command PLC → Download.Test:Using the “Monitoring and Modifying Variables” application you can now monitor the count value and the gate, for example:In your project select the “Blocks” container. Insert the variable table VAT1 using the menucommand Insert → S7 Block → Variable T able and confirm with OK.Open the variable table VAT1 and enter the following variables in the “Address” column:db1.dbd34(actual count valuedb1.dbx43.6(status of internal gateSave the variable table VAT1 using the menu command Table → Sav e.Switch online using the menu command PLC → Connect To →Configured CPU.Switch to monitoring using the menu command Variable → Monitor.Switch the CPU to RUN-P.Generate pulses with the count contact and monitor the count value with relation to the state of your gate contact.DiagnosticsErrors can occur as a result of incorrect operation, incorrect wiring, or contradictory parameter assignments which the FM 350-1 displays with the group error LED SF.Refer to Section 6.2 and Chapter 13 of the manual for information on how you can diagnose errors and messages.ExampleIn the zEn23-1 project you will find another example which you can use to guide you and which you can adapt to your application.。
Simotion连接FM350模块Simotion Connect with FM350摘要 本使用入门做为 SIMOTION 附加编程参考文档的一部分,为SIMATIC FM 350-1 高速计数功能模块手册提供了如何通过Simotion来控制它的补充说明,为正确将FM350-1模块集成到Simotion控制系统中并完成调试提供帮助。
关键词Simotion,FM350-1Key Words Simotion,FM350-1IA&DT Service & Support Page 2-21目录一、概述 (4)二、产品描述 (4)三、安装及连接 (5)四、在SIMOTION项目中插入功能模块 (6)1.硬件组态 FM 350-1(分布式应用) (6)2.在用户项目中集成FM 350-1控制功能块 (6)五、FM350-1功能块 (9)1.概述 (9)2.功能块“_FM3501_control” (9)3.功能块“_FM3501_diagnostic” (12)4.FM350-1的数据结构 (14)5.功能块调用 (16)五、FM350-1应用程序示例 (19)1.使用的输入符号 (19)2.使用的输出符号 (19)3.示例内容 (19)IA&DT Service & Support Page 3-21一、概述本章描述了FM350模块在 SIMOTION 系统及 SIMATIC 系统中运行的相同及不同之处,它做为SIMATIC 手册“FM 350–1 Function Module Installation and Parameter Assignment”的补充部分。
对于Simotion系统,需要下述软件版本:• SIMOTION SCOUT V4.0 或更高• SIMOTION Kernel V4.0或更高• SIMOTION technology packages V4.0或更高Simotion 功能块不支持FM 350-1 模块(订货号:6ES7 350-1AH03-0AE0)的下述新功能: • 同步模式• 测量模式 (频率测量,速度测量,周期测量)二、产品描述FM 350-1FM 350-1 计数模块是一个单通道的高速计数模块,计数范围为:• 0 to 232 - 1• -231 to 231 - 1计数信号的最大输入频率为 500 kHz。
FM350 高速计数器模块怎么用
如题,请教高速计数器模块如何使用?
看程序是调用标准功能FC0,这个功能的各个形参代表什么呢?
为什么我两个编码器,都是用的FM350计数器模块,转动时间大致差不多,但是一个输入值9000多,另外一个输入值20000多,哪里可以设置吗?
最佳答案
FM350高速计数器模块怎么用,你可以下载入门手册进行学习——
《FM350-1/FM350-2常问问题集》下载:
/download/Upload/AS/faq/F050 9.pdf
《FM350-1工作原理及使用入门》下载:
/download/Upload/AS/applicati on/A0479.pdf
《FM350-1使用入门文档》下载:
/download/Upload/AS/applicati on/A0370.pdf
《FM350-2快速入门》下载:
/Download/Upload/AS/applicati on/A0025.pdf
《FM350-2计数模块的安装和参数配置》下载:
/download/Upload/AS/manual/1 105178.pdf
《SIMATICFM350-1功能模块》下载:
/download/Upload/AS/manual/1 086726.pdf。
FM350-1/FM350-2常问问题集∙文献∙涉及产品问题1:SIMATIC S7-300系列有哪些模板可以用于高速计数?解答表1 SIMATIC S7-300高速计数模板问题2:在哪里可以找到高速计数模块的手册和相关文档?解答:您可通过以下步骤获取您所需的文档:-请登陆网站:-在页面中点击技术资源库中:全球技术资源-在新窗口右上角的搜栏中输入“<关键字>”,并搜索-搜索结束后在窗口右侧列表中点击“只搜索手册/操作指南、只搜索证书、只搜索证书、只搜索FAQ常问问题只搜索更新信息”-最后列表中名为“<文档名称>”的条目即为您所需的文档。
常用文档的下载链接如下,您可以直接登陆如下网址下载相关资料:CPU31xC技术功能手册中文版:/CN/view/zh/12429336 FM350-1模板手册下载:/CN/view/zh/1086726FM350-2模板手册下载:/CN/view/zh/1105178关于西门子计数模板应用的文档可以参考相关产品手册,或登录下载中心网站/download/,搜索下载如下文档:(见表2 )表2 计数模板应用文档列表问题3:在哪里可以找到FM350-1/-2模块的软件包?解答:常用的驱动软件下载链接如下,您可以直接登陆如下网址下载相关软件:FM350-1 软件包下载:/CN/view/zh/28291262FM350-2 软件包下载:/CN/view/zh/28554065问题4:为何FM350-1 或FM350-2的软件包不能正常安装,提示1324 错误(见图1 )?图1解答:FM350-1/2 软件包安装时需要将计算机中的区域语言及高级选项中的语言改为“英语(美国)”,具体如下:控制面板->区域语言-> 区域选项(高级选项Advanced中也需要更改语言),更改后电脑会自动重新启动,启动后即可安装,安装完成后将语言改回“中文”即可(见图2 )。
电子组装设备1产品系列:电子组装设备产品名称:FM-350全电脑无铅波峰焊机产品型号:FM-350产品特点:(1)直联式入板结构,特制不锈钢链条传输,经久耐用;(2)预热系统采用远红外发热管,温度控制采用PID方式,使温控精度达到±2℃。
本预热区与焊接区的温度下降值≤5℃;(3)喷雾系统采用精密型调节阀进行数字化调节,方便管理。
喷嘴采用步进马达。
助焊剂自动稳压供给,可使喷雾流量迅速达到饱和,上下及后侧两级抽风过滤系统;(4)运输系统采用分段浮动式结构,有效防止导轨变形;(5)锡炉采用外热式加热,锡炉内胆采用铸铁制作,温度控制采用PID方式,控温精度达到±2℃。
两波峰近距离设计,第1波峰不带摇摆,完全适合无铅焊接;(6)强制式冷却系统,保证冷却速度在4~6℃/秒(可调);(7)PC+PLC控制系统控制电脑,WINXP操作系统,工艺曲线/数据自动存储功能,温度曲线测试功能;电源缺相报警;助焊剂液面过低过高报警;锡液面过低报警;规格:型号FM-350运输马达3∮220V 90W运输速度0.5-1.8m/min运输链爪Spring Pressed Type(弹簧压片爪)基板尺寸50-350mm助焊剂装置气压/容量3-5Bar/Approx.18 L喷雾移动Stepping Motor预加热器1.6M(L) 3段220V 1000W x 18pcs锡炉发热板220V 1500W x 9pcs锡炉容量Approx. 500Kg波峰马达 3 ∮220V 180W x2pcs锡炉温度MAX 300℃冷却风机1∮220V 550W洗爪泵1∮220V 10W运输角度Adjustable4-6°机体尺寸3500(L)X1420(W)X1760(H)mm 总功率Approx. 37kw电源 3 ∮380V 50Hz控制系统PC+PLC净重Approx. 1100Kg整体示意图:01 液晶显示器02 接驳系统03 助焊剂自动供给系统04 洗爪装置05 排风风机06 助焊剂喷雾系统07 预热器08 锡炉升降装置09 双波峰锡炉10 冷却系统11 角度调节12 运输系统。
说明:
●FM350-1,FM350-2两种高速计数模块只能连接增量型码盘
●软件安装问题,如果安装期间出现“路径存在非法字符“等类似的故障,则可以通过更
改语言来解决
测试过程
●接线
以0通道为例, 接线情况如下
21 L+
22M
3 A
7 B
硬件组态:在软件安装完成后,在硬件组态窗口中双击该模块会弹出下面的窗口,然后接着按下图设置
上图中的1024输入窗口,是在下图选择ROTATION SPEED MEASUREMENT一项后才会出现编辑状态的
上面的10*10MS是指测量的时间段,既在100MS时间里接收的脉冲数
上面的窗口是在编辑选项栏里选出的,可以将源通道的设置拷贝到目标通道中。
程序测试:
将LIBRARY里的FC2,FC4,FB4拷贝到程序中,然后创建一个源自UDT1的数据块DB452 程序FC452中编写了相关程序,其中调用了FC2,FC4
可以从DB452中直接读取数据。
FM350无法计数问题
我按照FM350的相关手册组态了硬件,用FC2(程序里改成了FC32,),配置如附件,但一直无法计数,而且我用的是软件门,已经把门打开了,但无计数,诊断里说modulewithoutparaeters,是说!模块没参数吗?但配置已经下载,为何说无参数呢?应该如何操作才正确?谢谢!
FM350-1接了一个5-26V(配置成24V)的编码器(图11;12),另一个FM350-1外接了一个NPN的接近开关,(图21;22)
图片说明:1,351_1 配置12 2,module without parameters 3,351_1 配置11
最佳答案
FM350设置的时候需要选择一个数据块DB来存参数的,确保这个DB块已经建立,然后设定参数后,随硬件组太,程序一起下载到PLC中.。
西门子FM350—1在同步控制系统中的应用随着我国科技的不断发展,我国的飞机制造业在不断的进步。
在生产中,科技水平越来越先进,为了能够实现对飞机生产性中两天输送链板的情况进行实时监控和实时控制,通过西门子FM350-1模块与高速编码器共同完成,建立起西门子控制器以及SIMOTION控制系统。
可以实现西门子FM350-1的同步控制功能,对于如何实现西门子FM350-1模块的高精度控制和运输,本文通过对西门子FM350-1在同步控制中的应用,分析和探讨同步控制系统的高精度和可靠性的实现。
标签:西门子FM350-1;同步控制系统;飞机运输;高精度随着我国科技的不断发展,在飞机制造中,飞机结构的装配是一项非常复杂的工作,对于目前的飞机装配工艺,已经不能适应时代的发展,适应不了多重型号的飞机装配。
随着数字化的不断深入,在飞机装配中引入数字化,能够有效地提高生产效率。
对于飞机制造领域来说,提高飞机装配的质量和装配周期,同时降低飞机的制造成本是一项重要的研究话题,通过数字化技术进行深入探讨。
1 西门子FM350-1模块简介和应用在飞机的生产过程中,由于飞机的制造中运输距离较长,对运输的精度要求非常高,同时需要很大的关系,所以对整个系统的要求也相对比较高,西门子控制系统在飞机的运输过程中主要是的以SIMOTION为控制系统,通过FM350-1模块进行编码的。
西门子FM350-1模块在编码中,通过对四根轴的编码计数,与四根轴的间接检测保持同步。
西门子功能模块一般是通过S7-300或M7-300的编程控制器进行高速编程,通过对软件的设置,使计数器的计数范围保持标准技术。
计数器的最大频率是500KHz;西门子模块可以实现连续计数、周期计数、单一计数、转速测量、频率测量以及周期测量等。
同时,西门子FM350-1功能模块一般用于高频信号和触发预设状态自动应答技术,主要有包装设备、分类设备以及定量给料设备等。
通过软门和硬门控制系统的启动和停止。
计数模板FM350-2快速使用入门1. FM350-21.1824 8.2 NAMUR( )/ //1.2S7-300 PLC 12KB CPU FM 350-2 40STEP 7 (> V4.0.2.1) FM350-2S7-300 11cpu1.3FM350-2FM350-2 40 2 32340/123 A0 04 A1 15 A2 26 A3 37 B0 08 B1 19 B2 210 B3 311 I0 012 I1 113 I2 214 I3 315 Q0 0 0.5A16 Q1 1 0.5A17 Q2 2 0.5A18 Q3 3 0.5A19 P8V2 NAMUR 8.2V20 P8V2 NAMUR 8.2V21 L+ 24V22 M 0V23 A4 424 A5 525 A6 626 A7 727 B4 428 B5 529 B6 630 B7 731 I4 432 I5 533 I6 634 I7 735 Q4 4 0.5A36 Q5 5 0.5A37 Q6 6 0.5A38 Q7 7 0.5A39 P8V2 NAMUR 8.2V40 P8V2 NAMUR 8.2V 8.2 VDC24V 8.2V 200mA 19 20 39 40 NAMUR NAMUR A0 A7 B0 B7DIN19234 NAMUR A0 A724V A0 A7 B0 B724V A0 A7 B0 B724V A0 A7“Encoder Signals and Their Evaluation”I0 I7I0 I7Q0 Q7Q0 Q7 FM350-21.4FM350-2 SF 20FM350-2 5.2 Default Parameter Assignment 1.5 FM350-2SIMATIC Manager fm_cntli BlockUDT1 Data Block1.6 FM350-2hardware configurationFM350-2 Object Properties 44Object Properties AddressObject Properties Basic Parameters “Module address for datablock” “Select data block” data block 55Object Properties CPUParameters FM350-2 “AssigningParameters” 66Encoder“Encoder Signals and Their Evaluation”Operating Modes“Operating Modes, Settings, Parameters, and Jobs” Interrupt Enable Outputs save “Assigning Parameters” OK “Object Properties”Save and compile PLCCPU FM350-2 CPU STOP STOPFM350-21.7FM350-2FM350-2 “Assigning Parameters” Debug>Commission ing 77FM350-2 “Assigning Parameters” Debug>Diagnostics 88FM350-2 “Assigning Parameters” Debug>Service99FM350-2 “Assigning Parameters” Debug>Modify Mode CPU 10101.81.8.1.1.8.1.1.FM350-2 STEP 7 Library FM350-2fm_cntli Sample Projects FM350-2 fm_cntex zXX34_01_FM350-2FC2 CNT2_CTR FM350-2FC3 CNT2_WR FM350-2FC4 CNT2_RD FM350-2FC5DIAG_RDFM350-2 OB82Data block “counter DB”UDT1 FM350-2Programming the FM 350-21.8.1.2.FM350-2 CPU IM360 IM361 IM 153-1 6ES7153-1AA02-0XB0 IM 153-2 6ES7153-2AA00-0XB0 1.8.1.3.I.Work MemoryII. FM350-2 FC2 CNT2_CTRIII. FM350-2 DB 36.7 CHECKBACK_SIGNALS.PARA1.8.1.4. I/OFM 350-2 I/O “ ”I/O“ ” “Word” “Dword”“Dword” “ ” “Word”L PIW Word L PID DwordI. Word FM350-2 HW Config. +8 +10 +12 +14 FM350-2256 L PIW 264 L PIW 266 L PIW 268 L PIW 270II. Dword FM350-2 HW Config. +8 +12 FM350-2 256 L PID 264 L PID 268 “FC CNT2_RD” 2 ms I/O “FC CNT2_RD”“ ”FM350-2“ - FM350-2 ” “ ” 1111FM350-2 [ Parameter ] [ EDIT ] > 12121.8.2.FM350-2 7 Continuous Counting Single Counting Periodic Counting Frequency Measurement Rotational Speed Measurement Period Duration Measurement Proportioning Continuous CountingSingle CountingPeriodic Counting11Frequency Measurement1Rotational Speed Measurement1Period Duration MeasurementProportioning 4 1: 0: 08 Operatiing Modes, Settings, Parameters, and Jobs1.8.3. Data BlockCPU FC FM350-2 UDT1 Data Block FM350-2 Data Block FM350-2 Data Block 12.0 14.0 1.50.0 JOB_WR.NO BYTE B#16#01.0 JOB_WR.BUSY BOOL FALSE1.1 JOB_WR.DONE BOOL FALSE1.2 JOB_WR.IMPOSS BOOL FALSE1.3 JOB_WE.UNKOWN BOOL FALSE2.0 JOB_RD.NO BYTE B#16#03.0 JOB_RD.BUSY BOOL FALSE3.1 JOB_RD.DONE BOOL FALSE3.2 JOB_RD.IMPOSS BOOL FALSE3.3 JOB_RD.UNKNOWN BOOL FALSE12.0 MOD_ADR WORD W#16#0 14.0 CH_ADR DWORD DW#16#0 18.0 DS_OFFS BYTE B#16#0BOOL FALSE Output 0 21.0 CONTROL_SIGNALS.CTRL_DQ0BOOL FALSE Output 1 21.1 CONTROL_SIGNALS.CTRL_DQ1BOOL FALSE Output 2 21.2 CONTROL_SIGNALS.CTRL_DQ2BOOL FALSE Output 3 LS.CTRL_DQ3BOOL FALSE Output 4 21.4 CONTROL_SIGNA LS.CTRL_DQ4BOOL FALSE Output 5 21.5 CONTROL_SIGNA LS.CTRL_DQ521.6 CONTROL_SIGNABOOL FALSE Output 6 LS.CTRL_DQ6BOOL FALSE Output 7 21.7 CONTROL_SIGNA LS.SET_DQ7BOOL FALSE Output 0 22.0 CONTROL_SIGNA LS.SET_DQ022.1 CONTROL_SIGNABOOL FALSE Output 1 LS.SET_DQ1BOOL FALSE Output 2 22.2 CONTROL_SIGNA LS.SET_DQ2BOOL FALSE Output 3 22.3 CONTROL_SIGNA LS.SET_DQ322.4 CONTROL_SIGNABOOL FALSE Output 4 LS.SET_DQ4BOOL FALSE Output 5 22.5 CONTROL_SIGNA LS.SET_DQ5BOOL FALSE Output 6 22.6 CONTROL_SIGNA LS.SET_DQ6BOOL FALSE Output 7 22.7 CONTROL_SIGNA LS.SET_DQ7BOOL FALSE 023.0 CONTROL_SIGNALS.SW_GATE0BOOL FALSE 1LS.SW_GATE1BOOL FALSE 223.2 CONTROL_SIGNALS.SW_GATE2BOOL FALSE 323.3 CONTROL_SIGNALS.SW_GATE323.4 CONTROL_SIGNABOOL FALSE 4 LS.SW_GATE4 BOOL FALSE 523.5 CONTROL_SIGNALS.SW_GATE5BOOL FALSE 623.6 CONTROL_SIGNALS.SW_GATE623.7 CONTROL_SIGNABOOL FALSE 7 LS.SW_GATE7 BOOL FALSE 36.1 CHECKBACK_SIG NALS.STS_TFBBOOL FALSE36.4 CHECKBACK_SIGNALS.DATA_ERRBOOL FALSE 36.7 CHECKBACK_SIG NALS.PARA37.0 CHECKBACK_SIGBOOL FALSE 0 NALS.STS_CMP0 BOOL FALSE 1 37.1 CHECKBACK_SIG NALS.STS_CMP137.2 CHECKBACK_SIGBOOL FALSE 2 NALS.STS_CMP2 37.3 CHECKBACK_SIGBOOL FALSE 3 NALS.STS_CMP3 37.4 CHECKBACK_SIGBOOL FALSE 4 NALS.STS_CMP4 BOOL FALSE 5 37.5 CHECKBACK_SIG NALS.STS_CMP537.6 CHECKBACK_SIGBOOL FALSE 6 NALS.STS_CMP6 37.7 CHECKBACK_SIGBOOL FALSE 7 NALS.STS_CMP7 BOOL FALSE 0 38.0 CHECKBACK_SIG NALS.STS_UFLW0BOOL FALSE 1 38.1 CHECKBACK_SIG NALS.STS_UFLW1BOOL FALSE 2 38.2 CHECKBACK_SIG NALS.STS_UFLW238.3 CHECKBACK_SIGBOOL FALSE 3 NALS.STS_UFLW3 BOOL FALSE 4 38.4 CHECKBACK_SIG NALS.STS_UFLW4BOOL FALSE 5 38.5 CHECKBACK_SIG NALS.STS_UFLW5BOOL FALSE 6 38.6 CHECKBACK_SIG NALS.STS_UFLW6BOOL FALSE 7 38.7 CHECKBACK_SIG NALS.STS_UFLW7BOOL FALSE 0 39.0 CHECKBACK_SIG NALS.STS_OFLW0BOOL FALSE 1 39.1 CHECKBACK_SIGNALS.STS_OFLW1BOOL FALSE 2 39.2 CHECKBACK_SIG NALS.STS_OFLW239.3 CHECKBACK_SIGBOOL FALSE 3 NALS.STS_OFLW3 BOOL FALSE 4 39.4 CHECKBACK_SIG NALS.STS_OFLW4BOOL FALSE 5 39.5 CHECKBACK_SIG NALS.STS_OFLW539.6 CHECKBACK_SIGBOOL FALSE 6 NALS.STS_OFLW6 BOOL FALSE 7 39.7 CHECKBACK_SIG NALS.STS_OFLW7BOOL FALSE 0 40.0 CHECKBACK_SIG NALS.STS_DIR0BOOL FALSE 1 40.1 CHECKBACK_SIG NALS.STS_DIR140.2 CHECKBACK_SIGBOOL FALSE 2 NALS.STS_DIR2 BOOL FALSE 3 40.3 CHECKBACK_SIG NALS.STS_DIR340.4 CHECKBACK_SIGBOOL FALSE 4 NALS.STS_DIR4 40.5 CHECKBACK_SIGBOOL FALSE 5 NALS.STS_DIR5 40.6 CHECKBACK_SIGBOOL FALSE 6 NALS.STS_DIR6 BOOL FALSE 7 40.7 CHECKBACK_SIG NALS.STS_DIR741.0 CHECKBACK_SIGBOOL FALSE 0 NALS.STS_DI041.1 CHECKBACK_SIGBOOL FALSE 1 NALS.STS_DI1 BOOL FALSE 2 41.2 CHECKBACK_SIG NALS.STS_DI2BOOL FALSE 3 41.3 CHECKBACK_SIG NALS.STS_DI3BOOL FALSE 4 41.4 CHECKBACK_SIG NALS.STS_DI441.5 CHECKBACK_SIGBOOL FALSE 5 NALS.STS_DI5 BOOL FALSE 6 41.6 CHECKBACK_SIG NALS.STS_DI6BOOL FALSE 7 41.7 CHECKBACK_SIG NALS.STS_DI7BOOL FALSE 0 42.0 CHECKBACK_SIG NALS.STS_DO0BOOL FALSE 1 42.1 CHECKBACK_SIG NALS.STS_DO1BOOL FALSE 2 42.2 CHECKBACK_SIG NALS.STS_DO2BOOL FALSE 3 42.3 CHECKBACK_SIG NALS.STS_DO3BOOL FALSE 4 42.4 CHECKBACK_SIG NALS.STS_DO4。
与FM350-1相比:FM350-2为8路高速计数器,最高计数频率为10K;而FM350-1为1路高速计数,最高计数频率为500K;使用上略有不同。
在使用FM350-2之前须安装随模块所附带的光盘里的程序,否则找不到控制高速计数器所使用的功能块。
一、接线如上图所示,端子解释如下:(1)(2)(3)A0(4)A1(5)A2(6)A3(7)B0(8)B1(9)B2(10)B3(11)数字输入(12)数字输入(13)数字输入(14)数字输入(15)数字输出(16)数字输出(17)数字输出(18)数字输出(19)(20)(21)模块电源正(24VDC+)(22)模块电源负(24VDC-)(23)A4(24)A5(25)A6(26)A7(27)B4(28)B5(29)B6(30)B7(31)数字输入(32)数字输入(33)数字输入(34)数字输入(35)数字输出(36)数字输出(37)数字输出(38)数字输出(39)8.2V输出(40)8.2V输出二、组态(1)新建项目。
硬件组态如下:完成后保存组态(2)复制高速计数器特殊功能块。
在SIMATIC Manager界面下单击“file”下的”open”。
在弹出的对话框中选择“”选项“Libraries”选项。
选择Fm_cntli双击打开,选择FC2(CNT2-CTR)、FC3(CNT2-WR)、FC4(CNT2-RD)和UDT1复制到高速计数器项目中。
(3)建立背景DB数据块。
在工程项目下建一DB数据块(4)背景数据块与高速计数模块连接。
返回硬件组态中,选中FM350-2并右击,选择“object properties”。
连接DB数据块和高速计数器模块,在弹出的对话框中单击“Mod addr”按钮,在弹出对话框中选择“select DB”按钮,在弹出对话框中选择上一步建立的DB块后单击“OK”后退出,再单击“OK”完成背景数据块连接。
(5)设置高速计数器工作模式及参数。
怎样读出FM350-2的计数值?解答:1)首先给FM350-2接线,pin21(+)、pin22(-)接入24v电源给模板供电,pin3-pin6前4通道A相,pin7-pin10前4通道B相,pin23-pin26后4通道A相,pin27-pin30后4通道B相。
FM350-2只能接24vPNP A、B相编码器,如是开关点,一段接入A相端,公共端接入pin22。
2)写FM350-2地址:在Step7中硬件组态插入FM350-2,然后存盘,这样可以在你的目录下生成"S7_Program",再打开例子程序,file->open->sample project->fm_cntex,打开"Bausteine"(Block),复制UDT1到你的程序(Block)中,在(Block)中插入一个DB块。
例如,DB1选"DB of type"为UDT1。
再次打开硬件组态,双击FM350-2,单击"addresses",然后点击"general",这样出现一个对话框,单击"select date block"。
在你的程序目录中选择用UDT1生成的DB1,这样FM350-2的地址就写入到DB1中。
如有多块FM350-2,则需用UDT1生成多个DB块,分别写入FM350-2地址。
3)组态单击"parameters"进入组态画面,选择所需的选项,如:编码器类型,在操作模式中选择计数方式或频率测量,是否用软件门和硬件门(门的作用:只有在门打开时,计数值有效)等等,作好之后,存盘并下载。
4)读值・用测试工具在读值,CPU处于Stop状态,在组态画面中选择debug->commissioning中,设置"SW-Gate"和"Apply",转动编码器时,在"Count"栏中会出现当前计数值。
怎样快速下载计数器模块FM 350-1 / FM 450-1 的初始值?用法:对于某些应用场合,一个重要的功能是使计数器达到某个比较值时尽可能快地复位为初始值。
此外,通常在复位时需要进行一系列计算,以确定下一个比较值(以便优化原料的交点)。
在没有标准功能FC CNT_CTRL也可以选择进行复位操作。
下面的配置过程可以对计数器进行快速复位:1.在计数器模块的“Properties”对话框中的“Basic parameters”区内,将选项生成中断设成“YES”,然后将中断选择设成“Process”。
这样,在复位时会生成一个中断。
2.在“Outputs”参数界面中组态数字输出DQ0,以便在达到比较值时激活它。
3.在“Inputs”参数界面中的“Set counter”域中,设置选项为“multiple”。
注意事项:在相关通道数据块中,必须将位DBX 27.0 或DBX 27.1 ( CTRL_DQ0) 设置为1,以便使能数字量输出。
4.在“Interrupt release”参数界面中,选择选项“Set counter”,以便在数字输入SET处出现一个上升沿时触发该中断。
5.功能模块FM 350-1 / FM 450-1 的数字输入 I2是用于把计数器重置为初始值的。
该输入与数字输出 Q0 相连接(FM 350-1 / FM 450-1相同)。
注意事项:在相关通道的数据块中,必须预先将数据双字DBD 14(LOAD_VAL)赋值为初始值(如L#0)。
数据双字DBD18 (CMP_V1)必须赋值为比较值。
必须通过触发一次在FC CNT_CTRL 上置相应的触发位来把这些值传送到FM 去。
本文完技成培训网整理。
FM350-1高速计数模块使用
一、安装
1、信号类型
2、外部接线
二、设置
1、计数范围:
2、计数方式:
连续计数:当向上计数,在到达计数上限后,在下一个脉冲到来,计数值跳到下限然后再次开始加计数。
单向计数:计数器从装载值开始计数。
当向上计数,在到达计数上限后,在下一个脉冲到来,计数值跳到计数下限值,并且即使再有脉冲到
来,计数值仍保持在计数下限值。
当向下计数,在到达计数下限值后,在下一个脉冲到来,计数值
跳到计数上限值,并且即使再有脉冲到来,计数值仍保持在计数
上限。
周期计数:计数器从装载值开始计数。
当向上计数,在到达计数上限后,在
下一个脉冲到来,计数值跳到装载值然后再次开始加计数。
当向下计数,在到达计数下限值后,在下一个脉冲到来,计数值
跳到装载值然后再次开始减计数。
三、编程
1、“L-DIRECT”、“L-PREPAR”参数:
“L-DIRECT”参数定义:将装载值传送到装载寄存器,并直接进入计数器;
“L-DIRECT”参数定义:将装载值仅仅储存在装载寄存器;
2、“Gate”功能
3、计数器控制功能“FC0”。