Jump to content

Recommended Posts

Posted

I am trying to get an encoder to work with a IO-DI16 module that is connected to a Vision 280. This is an area of programming that I am not that familiar with. The encoder is a rotary encoder with an A, B and Z output I simply want to connect to a shaft to monitor the position of the turntable connected to the shaft.

From what I can see,  the last two connections on the module can be used as a high speed counter. I have set the module up for this but after that I'm lost. Where do I set up the high speed counter in Visilogic and how do I incorporate into my ladder logic to be able to monitor the output?

Any help is appreciated.

  • MVP 2023
Posted

The last input on an IO-DI16 (I15) can be a single channel high speed input.   I14 can be configured to reset it.

This will not work for an encoder if you're looking to connect A and B in quadrature.  You'll need one of the V200 Snap IO modules for that.

Also, nothing Unitronics offers supports a Z pulse.

If your turntable never goes backwards you can connect the A channel to I15 and just count in one direction.  When you set up your hardware configuration in Visilogic you can click on the picture of the module and assign an  MI to hold the count value.  You can then manipulate that MI in your code like any other register.

If you want to take a swing at setting up your configuration and post your code here we'd be happy to have a look and make suggestions.

 

Some Joe T. personal side observations and opinions:

1.  The top frequency of the HS input on the DI16 is 5 kHz.  This is half of the 10 kHz rating of the V200-18-E1B which also capable of quadrature inputs.

2.  The count input in the DI16 can only be assigned to an MI, which limits your count to 32767.  The -E1B is a 32 bit counter so you can assign an ML or a DW and literally get millions of counts.

3.  The V280 is a "Standard" controller and has been discontinued due to the fact that Unitronics can no longer source the display.  I've personally used many of them in projects over the years and while they were the top of the line in 2009 they are woefully underpowered compared to the Enhanced controllers available today.  If your project can afford an upgraded processor I would seriously consider it.

 

Joe T.

Posted

Thank you Joe, but that's kind of my problem. I have everything set up but now what do I do to manipulate  the code, so that I can see the value of M1? Very new at working with counters, registers, etc.

 

  • MVP 2023
Posted

Use compare blocks to work with numbers like this.  In Visilogic under the Help menu there is a category called "Examples" that will take you to the directory where all the example programs are and you can have a look.

Have you put a program together that you can upload?

Joe T.

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.