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, 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 188.8.131.52 on PLC and 184.108.40.206 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.