Jump to content

Joe Tauser

MVP 2023
  • Posts

    2,859
  • Joined

  • Last visited

  • Days Won

    308

Everything posted by Joe Tauser

  1. 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.
  2. 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
  3. 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.
  4. 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.
  5. 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.
  6. 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.
  7. 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.
  8. That model is for a 1000 ohm RTD. A PT100 won't work. Joe T.
  9. No. There is no simulator. Joe T.
  10. 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.
  11. Excellent! Your solution of putting the Stream variable at location 2 is good - there's no question of which message was received. Joe T.
  12. 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.
  13. You used the compare function correctly. But this is not your program. There is no linearization in it. Joe T.
  14. Send a request to support@unitronics.com. They may or may not share that information with you. Joe T.
  15. Don't forget my little friend SI 101 - TCP Retries Timeout (in units of 100 ms). Set it from 2 to at least 5. Or maybe 10. If you ping the unit when it's not working you may be able to get a feel for response time. Set the PLC higher than your worst case. My son demonstrated this to me playing Call of Duty online with his Xbox. "Dad, we need better Internet! This sucks - the ping is really slow today." He was running about 200 ms during a time of day when a lot of people are online. Joe T.
  16. If they touch that thing a lot I would seriously consider putting some buttons on the panel for frequently used commands such as "START". I was onsite today working on a touchscreen that failed after 18 months because of multiple daily operator interactions. I don't care what Unitronics or any other touchscreen vendor says. Touchscreens are not meant to be frequently touched. I haven't seen one yet that's made with Gorilla Glass. Joe T. P.S. @Flex727 - A Samba is SO much better than an M91. I would do that in a heartbeat. P.P.S. With all the politicians in the news lately getting in trouble for touching things, I wonder if political correctness is going to kick in and we'll start calling them "Personal Non-Offensive Interaction with Finger Screens"
  17. Unlike actual Unitronics support employees, I don't have a selection of all PLC models to test on. So I had to size the graphics down to the PLC I have handy. Don't move the graphics around until it's working so I can easily help. I tested the program again seems to be working on my end. Notice the value in MI 1302 - Index of Message. MI 1302 = 0 is valid - it means it received the first message. The block starts counting at 0. Look at the numbers in the purple column of the Protocol Scan block config window. When it goes to -1 it means the block didn't understand what was sent and it didn't match any of the defined message formats. But it did scan. MB 1302 will not come on if it doesn't find a legitimate message. And when it does it only stays on for one scan. I added MB 0 to net 5 - Session complete memory. It comes on when the PLC receives a legal message. You have to press Clear Screen to reset it. I changed net 4 to look for message index = 0, not 1. I think it works the way you expect now. You can reset MI 1302 to 0 and see for yourself if you send an improperly formatted message such as "ABC", as opposed to the properly formatted "#ABC*". That's what the STX and the ETX check boxes are for. Play with it some more to get a better feel for the block. It's not the simplest thing in the world. Joe T. RS232COMMAND JT 1.vlp
  18. I just wanted to know if there were a lot of decimal places to worry about. Example attached. Joe T. Rounding example.vlp
  19. Depending on the usage, they may have beat the ENTER key to death and that particular key has failed. If you can go on site, go into Info Mode and check whether SB 53 comes on when you press the ENTER key. You can not re-assign it. They should probably replace the unit. Joe T.
  20. Can you give us an example of the decimal value you want to round? Joe T.
  21. Sounds like you need to program a small sequence, now that you've told us what you're trying to do. Your button becomes a START button, which cycles the cylinder through it's movement. I've attached an example. I edited your I/O to have one button and two switches. You don't have to hold the button while the cylinder is moving. And you can't stop it mid-stroke - I'll leave that as an exercise for you. Joe T. P.S. @Flex727 - You know I love my state machines. test_analog-out_BL_JT.U90
  22. Not the answer you wanted to hear, but I'm glad they reported back that there is problem with the module. At least you know you're not crazy. That way, anyway. Joe T.
  23. You're looking at a basic recipe program. This can be fairly easily done with a data table. Have you had a go at starting a program yet? Joe T.
×
×
  • Create New...