5/18/2007 7:04 PM | |
Joined: 1/7/2006 Last visit: 12/23/2024 Posts: 2705 Rating: (320)
|
Hi, HAve you installed the FM 350-2 option package, when you did then there will be a example installed for STEP7 please look when you open a project in the "Sample Projects" tab, the third from the left, or the 2nd of the right Also directly with the FM option package the handbook and a getting started is installed. When not, then see the link Getting Started FM 350-2and all your questions will be answered. |
I hope that the answer will help, if you have still questions, don't hesitate to ask me. |
|
5/21/2007 8:03 AM | |
Joined: 5/18/2007 Last visit: 11/27/2024 Posts: 25 Rating: (0) |
Hi I have been using the getting started fm 350-2 document and it got me started :) the only information i need now is how to reset the counter to 0 when the "zero-position" sensor is activated. And as i said in my earlier post i was not able to sort it out by reading the manual. I have looked at the sample project also without getting seeing how to do it and it's all in stl and thats make it's even harder for me to follow the code I have used the fm350-1 counter in the past and there it was really easy to reset the counter to zero so i guess it's quite easy with the 350-2 also but i fail to understand.. |
5/22/2007 4:26 PM | |
Joined: 3/27/2006 Last visit: 10/11/2024 Posts: 90 Rating: (13) |
I don't know why the high-speed counters have to be so complicated. I too have had trouble implementing the FM350-2. I studied the examples for hours and ended up just figuring it out on my own. When the gate is switched on the count is reset. For example, if the counter accumulated value is 9876543 and you turn the gate off, the count stays at 9876543 and will not change. When you switch the gate on, the count is reset to zero and the counting begins again. Here is my code. My application was a length measurement where I had to know how far a belt had travelled in meters per minute. Each second I sample the counter's PIW value, convert to real, multiply by 60 (to get 1 minute), and then divide by a constant pulses/meter to determine how far the belt moved. I never could get the Counter Read FC to work - that is why I amreading the PIW directly. If the counter starting address is 376 then PIW384 is the accumulated value for channel 0. AttachmentFm350-2_.zip (2700 Downloads) |
"I never let a cowboy make the coffee." |
|
This contribution was helpful to3 thankful Users |
5/23/2007 5:01 PM | |
Joined: 5/18/2007 Last visit: 11/27/2024 Posts: 25 Rating: (0) |
Haha was closing and reopen the gate all i had to do! that was easy. Thank you very much for all the help & the code |
9/17/2010 10:12 AM | |
Joined: 9/16/2010 Last visit: 9/17/2010 Posts: 1 Rating: (0) |
Hi, after 3 years, what you wrote was helpfull !!! Thanks. |
This contribution was helpful to1 thankful Users |
4/22/2014 11:28 AM | |
Posts: 340 Rating: (6) |
new question is splittet to PLC SF appear when I call FC2 |
Follow us on