Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by JohnR

  1. And on the subject of UniCan.... You can also easily monitor the status of MB's from one PLC to another; use the "Bit to Num" to encode a block of 16 MB's (MB 100-MB 115)to an MI (MI 100) compare the number in the Bit to Num MI to the previously stored number if it has changed, then trigger a UniCAN SEND then update the Last Bit to Num with a Store The order of these three nets is important.... On the other PLC (after setting up the UniCAN INIT and PLC Net ID), All you need is the complementing "Num to Bit" to decode this number back to discreet bits. You can map whatever you want to the MB's at each end. Reverse the process with a different block of MB's to send bits back the other way.
  2. Well, there ya go.... I could see that the conversion to exponent was happening on numbers smaller than 0.0xxx but never thought this would be happening within the Vision logic/math. The mass flow sensor has a lower threshold setting that below this setting it outputs a zero. The Quality Assurance guy working with this data was freaking out because he was getting zeros (even though I affirmed that this is the nature of the process, sometimes the control backs off enough that it stops the flow). I had turned down this threshold setting so we we getting more numbers than zeros, which I believe is when we started seeing the exponents, which freaked out the QA guy even more. probably my quickest fix is to bump up that threshold until I get above that 0.0xxx point. Thanks Joe...... JohnR
  3. I captured this today, the Vision data table on the left, the DataXport created Excel file (.csv format) on the right the number is stored in the data table as E-notation, and shortened when stored into the excel file at this point I'm still guessing this is created within the mass flow device, I've not yet been able to verify this with the oem but I cant see that vision would be reformatting this on a modbus read
  4. Hey Aus, Thanks for the input.... Unfortunately, I blow out the data table every morning, so by the time I wanted to compare that to the data in the excel file it was already gone. I will have to monitor it through out to day and see if I can catch it misbehaving. in yesterdays data my numbers range from 0.1059184 up to 7.88904 (and everything in between), and the two exponents come in with one zero after the decimal place. 0.0924 & 0.0856, so perhaps this device just outputs in exp when the numbers get this small. I will have to get hold of the tech from the mass flow place and see if he can confirm JohnR
  5. Hey All I have a data monitoring control that talks to a mass flow meter via modbus. I"m simply reading a float number and storing it to a data table every minute. I then use DataXport to put the data table into an Excel file that our bean counters use for what ever they do.... An issue I've been shown is that occasionally I get an number in exponential form, and this of course muks up the bean counters report. At this point I'm trying to figure out if this is what Unitronics does when it sees too many decimal places in a float or if that's what I'm getting from this mass flow device. Anyone have any insight on this? Is there an easy way to limit how many decimal places, or round it off at X number of places UPDATE I was thinking that I was getting an exponential when the number had too many decimal places. but I've dug out my scientific calculator and see this is not the case two numbers on yesterdays data are ; 9.24E-02 which converts to 0.0924 8.56E-02 which converts to 0.0856 so at this point I'm leaning to the issue being from the device not something with in unitronics Opinions???? JohnR
  6. here"s a little "Modbus Checker" program that I use with a V120 for testing Modbus controls to A-B powerflex VFD's You can dissect this and see how the Modbus is done in Vision Of course there are some hardware settings also, you must set the jumpers in the V120 to make port-2 RS485 and set the powerflex to run on modbus you will also need a cable going from RJ-11 to RJ-45 I don't have the pin-out in front of me but I'm sure it's easy to find... JohnR V120 PowerFlex.vlp
  7. This is interesting, as I have been running like this for several years without issue. I copy the entire DataXport folder and rename it. It seems more that something has corrupted the .ulp as I copied it to another PC and get the same error. I did some digging and found an archived copy and it started without issue, so I got that under control. Something else I noticed while dealing with this; DataXport wants to open with the last .ulp it ran (which is expected), but if the last .ulp wont run (as in my case), then DataXport just falls flat on it's face. You would think (that like most programs) it would tell you that the file cant be opened, and prompt you to start a new file. Just my opinion... JohnR
  8. Hey All, I ran into a snag this morning, I have a pc whose only job is to run 3 instances of DataXport, and collect data from different processes around the plant and dump them into folders on out network. Something happened overnight, and my DataXports stopped responding, I got them to shut down, then rebooted the pc. One of them started up ok, but the other two wont start. One gives me this error; And the other this; Anyone a way to fix these? Regards JohnR
  9. Hey All, I have a possible upgrade project coming up, replacing some old automation direct plc/touchscreen controls. my first plan was to use a V570 (or V700) and do my I/O expansion rack style so I can have the HMI in the panel door and put my I/O a couple foot away without re-routing (much) existing wiring. But, now I'm thinking of going UniLogic/UniStream, a bit overkill for the project, but would be my introduction into this product line. I've played around with UniLogic a bit but haven't yet built a real project. I've been going through the hardware aspect on Unitronics Website and think I got it figured out but thought I'd throw this out to the forum community to double check my thinking. the existing project consists of; 20 digital inputs (sinking) 18 relay outputs 10 analog in 2 analog out So going through the Uni-I/O list I come up with the following modules to cover my needs: (2) UID-W1616R to cover my digital ins and relay outs (1) UIA-0800N for 8 of my analog ins (1) UIA-0402N for 2 more analog in and 2 analog out then it looks like I need; (1) UAG-XK125 Uni-Local expansion adapter (1) USC-P-B10 CPU-for-Panel (1) USP-070-B08 HMI Panel Does this look correct, or am I missing something? Regards, JohnR
  10. I always tell my guys that get confused, "to a computer, zero is a much a number as one is, only people think zero means nothing"
  11. +1 Aus, I've mentioned a couple times in the past that I have made up a drill template that I lay over the snap module and put some holes in it. seems it's been a few years back when the PCB on the snap was changed to allow clearance in the corners, and screw bosses were added to the PLC's, so it seems there was a plan for screwing the snap on, but just never implemented. I would like to see the snaps delivered with holes in place, and a set of screws for mounting. And as Aus said, the pins could be a bit longer also. JohnR
  12. Aus, you are correct, that is much simpler then my net full of math...... Flex, I'm not sure why MF's are excluded from a lot of stuff either, but at least you bumped my mind into looking at the Float functions available.... We are a little closer to an Elegant solution JohnR
  13. Flex, this is the direction I was leaning, something like a Vector-Shift-Left, plug a value into the starting address, which then bumps the rest of the values down, then do the math. I see the Store Direct under Math/Float/Basic functions, but (unless I'm missing the obvious), you can't do vector functions with MF's. So, are you thinking that I should have a net with 6 of these Float Store Directs in series, each moving the previous value to the next, then doing the math? Aus, I was thinking that if I plugged one value in and dropped one off, then did a sum & divide, that would be a rolling average.... JohnR
  14. Hey All, Anyone have an elegant way to do an average on floating (MF) numbers? I am reading a float value from a device every 10 seconds, but saving that value once a minute to a Data Table, I would like to keep a running average of the 6 reads per minute and store that instead of whatever the value is at that instant. Some sort of FIFO arrangement where the newest value comes in and the oldest value drops off with an output value of the running average. I've used the Filter FB before with integers, but that doesn't work with floats (unless I'm missing something). Any Ideas? Regards, JohnR
  15. Yep, been thinking about that lately, I've been making tounge-in-cheek comments about retiring for a couple of years, and the bosses say "yeah, yeah, sure you are, who'd take your place?".... I got a new manager last fall, and first thing I said to him was, "well you know, I turn 62 next year, and I'm thinking about retiring"..... 🏝️ Now I have a young protege that I'm supposed to teach "everything I know" (by osmosis I suppose because I still don't get a lot of one-on-one time with him), but he's a sharp young man and slowly picking up on things. JohnR
  16. +1 to that Aus, I cringe every time our IT guy moves something else to a cloud based app. we lost our internet connection last week (fiber cut somewhere), and the whole front office went idle cause no one could get to their work.... geez Aus, I haven't heard that term since they started making sliced bread🙃
  17. In my case the answer is YES...... We probably ALL have at one time or another But that's the reason we're so anal about saving to multiple locations, lesson learned.
  18. Same here Flex..... I save to a new file name daily, appending the file name with the days date, such as; 1210 formax 03 20 19.vlp If I do a lot of changes I will sometimes add an A, B, C after the date and have multiple saves in a day, plus I add the PLC model to the name also. So far as storage, I work off a USB hard drive, and try to be diligent about copying my files to my C drive and a network drive. And as in other recent discussions, I'll save my version number somewhere on a display; v032019
  19. Thanks Guys..... It was as simple as changing the site option from "create Excel file" to "create .csv file" and using the default comma separator..... In all my other DataXport sites I've used the Excel file option and it always worked as expected, but this is my first time dealing with floating numbers... Live and Learn 🤓 JohnR
  20. +1 to what Flex says..... This beta version seems to be a big problem lately, it's great that the beta is available for seasoned users to experiment with and help find bugs, but we are seeing too many new users grabbing the beta version for their first programming experience....
  21. Hey All, Today's dilemma..... I'm doing some data collection from a mass flow meter, saving values to a data table which I grab from the PLC using DataXport. The values I'm saving to the data table are floating numbers (MF's), and when I look at the data table the values look fine. But when I open the excel file created through DataXport, the floating numbers somehow get changed to "Number Stored as Text", and the guy who is analyzing the data isn't happy with this format.... I can do a conversion in my logic from the MF to an ML or an MI, and the guy will have to be happy with an implied decimal point to either 6 places or 3 places. But I'm wondering if anyone knows the reason for the float to text phenomenon, or how to change the way the excel file saves it? JohnR
  22. I don't think so.... to me, setup and programming is the physical installation and programming (designing, panel building, debugging, installing). while commissioning is the act of putting the equipment into service (installation, final testing, and "handing the keys" over to the end user). My 2 cents, others may have differing opinions.... JohnR
  23. Within DataXport you will create a "site", Under Design, you create; the comms connection of the PLC (PLC name, IP address, port etc.), the data table you want set a schedule for it to run Under Project/Excel/.cvs file properties. you define the folder on your PC to store file. And you can also setup emails for the report. You can also do this manually within Visilogic; insure you can connect to the PLC, while offline, open the Data Table and click the icon that says "read data structure and files from PLC" highlight the cells you want to save and click the "export to excel icon" JohnR
  24. I typically use DataXport to create an excel file from the Data Table, and save it to a folder on my PC You can set up a schedule a weekly time and where to save it. or you can have it send an email....
  25. +1 to both Aus and Flex regarding reading an entire vector and picking out what you want if they are close, or separate reads if they are spread out. Similar to Flex's example, I typically use a state machine of sorts, to step through each read via an index count (which is reset after the last read).
  • Create New...