I am using the Rest API on unilogic to query a MiR robot Rest API server. I am using the basic authentication within the Rest API, but I'm having a problem with the password. The PLC should be including BASE64(username:password) in the header of the packet, but instead it's just sending BASE64(username:). It is completely dropping the password. Therefore, the server is rejecting due to authentication. It will sometimes work but on reboot or a new download it will random start/stop working. Any help would be great, thanks!
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.
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.