Jump to content

Joe Tauser

MVP 2014
  • Content count

    1,209
  • Joined

  • Last visited

  • Days Won

    113

Everything posted by Joe Tauser

  1. You did a good job troubleshooting by taking a lot of readings to verify the problem was not in the signal. The only additional thing I would have done was put an oscilloscope on the input terminal to see if there was any noise. Swapping in a different PLC was then the next logical thing to try. The A/D converter on your module has become flaky. But you already know that Joe T.
  2. Data Logger Help

    I'm guessing you're using the Data Tables Write Row function block. Do you have a program you can post? Joe T.
  3. OK, I had it backwards. I got a PLC out and loaded it up to check the operation for myself. The Reload value is a target, not a preset. The counter counts up from 0, not down from the reload value. When Reload is reached, the counter reset immediately to 0 and counts up (or down) to the reload value. The Reload Event bit (MB 1) comes on for one scan when this happens. I personally never use Reload, as I prefer to have exact control over what happens. I use compare blocks in an interrupt routine. What is it exactly that you are trying to do? Joe T. ENC1_JT1.vlp
  4. Take a look at this- https://www.petri.com/install-hebrew-on-windows-7 I didn't try it, but I'm very curious if it works. Let us know. Joe T.
  5. Reload only happens when the Reload Event is triggered - MB 1 in your case. You don't have it anywhere in your logic. Nor is the Reload Enabled (MB 2). I've attached something that may work, but not tested. Let me know if it does. Look over the Help on "Reload" again, too. Joe T. ENC1 JT.vlp
  6. That's a new one on me. Is Visilogic or Windows generating it? Screenshot? Joe T.
  7. Meir- You need to put an MI in the hardware configuration and set all the reload values that way. The accuracy is not a function of the direction. Are you turning a real output on or off when the reload event is triggered? If so, you will still run into a scan time issue. Speaking of accuracy, there is a lot more to consider- 1. How are you sensing the bar length - with a wheel? What is it's size? Can it possibly slip? 2. What is the specification on the encoder? Is it quadrature or single channel? 3. Are you trying to cut the bar? What is the response time of the shear? How much does the material move when you try to cut it? So often people post here and pick on the "accuracy" of the PLC when actually their machine is not capable of doing what they want. All the PLC can do is read pulses and react in about 2 milliseconds under the best of circumstances. It's up to you to provide the rest of the physical ability to get the "accuracy" you are looking for. Joe T.
  8. Trigger valve when count reaches 30

    It's always good to try your hand at writing logic and then post your code with questions. Often we can make some tweaks to make it work. Joe T.
  9. Looked at your code. You're using Immediate inputs but not the high-speed Interrupt routine - go look at the Help on how to do that. It will be faster. The Counter Target Value can be an MI or an ML. I would write some code to load it with the value you want as opposed to hard coding it. The bits triggered by the HSC hardware will be a bit faster, but you still have to write code to interpret them. Once again, look at the high-speed interrupt routine. Joe T.
  10. You can set the time using Info Mode on the PLC or in Visilogic use Connection->Communication & OS-> 2nd tab "Set RTC" button to synchronize the PLC with your computer. Joe T.
  11. I've used I/O repeaters before, but none of them are physically small. Here's an example: http://www.dutec.net/dsrepeater.htm Then I Googled "trendy thermostat". This is one of the images that came up: Hope that doesn't happen. Joe T.
  12. Remote Operator Issues

    Wacky timer presets is a sign the memory was corrupted. Make sure your battery is OK, and that you have the latest OS installed. There may be something in your collective email code that's getting out of the memory sandbox. Are you doing Modbus TCP or talking to the PLC with a custom program in this application? Either one of these scenarios has the ability to screw the RAM up with un-intended values. Joe T.
  13. Take a swing at it and post your code if it doesn't work right. Ask very specific questions. From previous other posts, it looks like smtp2go.com is the last of the free email servers we can use with a Vision system. All the others require SSL, which the Vision doesn't (and won't) support. Joe t.
  14. You weren't specific about which variable you're talking about, but opening the program I'm guessing it's on screen N11 and it's variable 284 and 285. It's a matter of display formatting. Unfortunately, you can't use the 3D style and get what you want. On variable 284, I changed the style to Flat and in the "Text After" field I entered a "." and widened the field to accommodate it. If you don't want the negative sign to show up check the "Do not reserve space for sign" box. On variable 285, I changed the "Leading" field to "Leading Zeros". I also checked the "Do not reserve space for sign" box. Then I resized stuff until it looked right. I generally make display-only variables flat and user-entry variables 3D for user clarity. Hopefully this gives you close to the look you're going for. Joe T. PRU.vlp
  15. Yes - you want INV(A+B/n). Look over the Help on how it works. You can attach your .vlp file to a post to let us look at it. Joe T.
  16. What will happen when the input to the block is out of your range is it will continue to linearize as it should, going above and below your 819 and 4096 points in a linear fashion. What will happen with the analog output is it will continue down to zero mA on the low end and if you get above 4095 it will also go to zero mA. Yep. Joe T.
  17. Unfortunately, that's one thing you can't specify when a float is involved. We've asked. As a workaround, you can convert the float to two integers and display it that way. Let us know if you need help with that. If you post your code I can quickly hack it in for you. Joe T.
  18. Unilogic Simulator

    There was one once, developed by Ash Neilson- http://virtualplc.co.nz/ This was developed a few years ago. I've tried contacting the developer a couple of times and got no response. It looks like the last time the site had any activity was 2014. Being a distributor, I have the luxury of grabbing one out of stock when I need to try something. Maybe you'll have better luck. Joe T.
  19. Analog input to Digital output

    Move the scaled temperature out of the system integers and then repeat your logic for the next input. The system integers can be called as often as you like during a scan. Your application will use them as buffers, not final results. Joe T.
  20. Jazz and pt 100

    That model is for a 1000 ohm RTD. A PT100 won't work. Joe T.
  21. Remote Connection

    Joe T.
  22. Unilogic Simulator

    No. There is no simulator. Joe T.
  23. Analog input to Digital output

    I didn't even look at the display - I can't remember the last time I used that feature. I find it's not very useful for this very reason. Good catch. Joe T.
  24. Excellent! Your solution of putting the Stream variable at location 2 is good - there's no question of which message was received. Joe T.
  25. JAZZ PID Autotunne

    I have found that Auto tuning doesn't always work well, regardless of the vendor. Some processes require a manual touch. Your best option is to do some research on the Internet on loop tuning so you understand what the algorithm is supposed to do and how changing the parameters affects it. If the variation is big it means your P value is too small. Joe T.
×