Jump to content

Recommended Posts

Posted
Hello.
I need help creating a counting feature based on 2 high speed counter. 
The program shall count how many meters a fishing net has been pulled out.
I haven't made any program yet, because I'm a little lost.
I am using the Vision V350
I have a swivel with 24 counting points and 2 High Speed Counter to show the number of meters released or retracted. 
Diameter is 1050mm.

I'm not sure how to get the program to know if wire is being pulled in or released?
I think I need to use Float MF to get the most accurate meter number?
Really appreciate all the help I can get.
Posted

The best way to learn is to jump in and try and write as much as you can.  If you show the effort the people in this forum jump in and help any way they can.  If you’re looking for someone to write the program for you; it’s never going to happen.  The people here are great.  Give it a good effort on your own and then you’ll have tons of help.  

  • MVP 2023
Posted
7 hours ago, viscoelastic said:

 If you’re looking for someone to write the program for you; it’s never going to happen.

+1.  But we can help get started.

You need a quadrature signal to determine which way you're going.  If you don't know what this is-

http://www.ni.com/product-documentation/4763/en/

You mentioned you have a swivel with 24 points.  You'll need two signals to feed into the V350's inputs to get what you want.  I've been known to use two photoeyes or two prox sensors mounted offset on the same wheel to generate my own signal. Do you have a mechanical drawing of your swivel and how the sensor will be mounted?

By the way, use an ML to track your counts initially.  There's no such thing as a fractional pulse so a float won't do you any good.

If you've started on a program and have questions then post it here.  There are also example programs under Help->Examples.

Joe T.

  • Like 1
Posted

Hi and thanks for the quick response.

Here I upload the program I created before knowing that it should be 2 HSC, and that it should know which way the swivel is going.

the Program, it counts correct, but needs help getting it to subtract meters if it turns the other way.

Joe T.: Sorry but I have no designs on the swivel. Just be told that there is always only one sensor that hits one of the 24 points at a time.

HSC.vlp

  • MVP 2023
Posted
19 hours ago, Haver said:

but needs help getting it to subtract meters if it turns the other way.

Without the quadrature signal or something else to tell the PLC what's going on there's no way to do this.

Are there any outputs on the PLC that control which way it's going?

Joe T.

  • 2 weeks later...
Posted

By setting it to x4 it will count up and down. So depending on how you wire or program it it will lets say count up to 1000 when it reaches end of the line and ans it retracts it will count down. You can then scale total counts =1050mm. Use the Linear Function for this. Math->Linearization->Linearization

image.png.fb9354edd1949a6cbfcb5ccbf0edad9b.png

 

Net/wire length:

Min(x1) =0

Max(x2)=1050mm

 

After you zero Encoder Counts when fully retracted:
Min(y1)=0

Max(y2)= (extend wire counts)

X=HSC1

Y=Output.

Set X to Zero to Zero Encoder

image.png.baebc0d3cbc9c989dd2a2eb1736809a0.png

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.