Jump to content

Shaft encoder speed and TCP/IP comm on v1040 with V200-18-E3XB, V200-19-ET2


Recommended Posts

Hello,

 

I have a project involving a drum with wire spooled on it. The encoder is mounted on a measurement wheel for the wire from drum. The encoder has A,B as outputs and 100 points per rev. I put the A,B outputs of the encoder to I 0,1 on the snap in expansion. I linked the I 0,1 inputs with ML 0 as (A,B) shaft encoder X2. I use liniarization for the encoder to know the lenght of the wire that exited the drum through the measurement system.

 

1. Now i need to know how to measure the rotational speed of the encoder to convert it to meters per minute.

I tried making a function for this but i couldnt figured it out. The function was like this :

ML1 was liniarization value of ML0

ML2 is the value of ML1 at the time=T

After t=0.5 sec i substract ML2 from ML1 and the result will be multiplied by 120.

This didnt work because of timer issues. Didn't find the way to make it hapen.

 

 

2. The connection of the PLC with a PC(laptop) couldn't be done on another IP/class than 198.168.1.50 on PLC and 198.168.1.51 for the PC (through a hub/switch).

 

3. There is a way/function to activate a single pulse bit after a timer of t and not to keep it rised. And then to recycle the timer.

 

Thanks

 

 

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...