fm350高速計(jì)數(shù)器模塊速成使用手冊(cè)_第1頁(yè)
fm350高速計(jì)數(shù)器模塊速成使用手冊(cè)_第2頁(yè)
fm350高速計(jì)數(shù)器模塊速成使用手冊(cè)_第3頁(yè)
fm350高速計(jì)數(shù)器模塊速成使用手冊(cè)_第4頁(yè)
fm350高速計(jì)數(shù)器模塊速成使用手冊(cè)_第5頁(yè)
已閱讀5頁(yè),還剩3頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、 First Steps in Commissioning This 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 hardwar

2、e 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 with the number A5E00073040-01. The time required to work through the example will be approximate

3、ly 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 car

4、ried 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, an

5、d 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 th

6、e 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-1Disk1 folder and follow the instructions of the installation program.Installing and Wiring the FM 350-1 (Manual Chapter 3 and 4To c

7、onnect 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 w

8、ith 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

9、 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 Se

10、ction 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 examp

11、le: 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 oth

12、er settings unchanged, as they are not yet required for commissioning:Operating Modes:0 to +32 Bit, Continuous Counting, Hardware GateEncoders:24V Initiator, P SwitchInputs:Level-Controlled Hardware GateProcess interrupt enable:not possible as deselected in basic parametersOutputs:DQ0 Inactive, DQ1

13、InactiveReaction 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 i

14、n 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 the CPU, the data will be transferred from the CPU to the FM 350-1 every time t

15、he 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 mecha

16、nical 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 us

17、ing 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 a

18、nd 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

19、 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 Sele

20、ct 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.Al

21、ternatively 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

22、File Save.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 inte

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論