Jump to content

sbeekman

Members
  • Posts

    15
  • Joined

  • Last visited

Recent Profile Visitors

2,432 profile views

sbeekman's Achievements

Member

Member (2/4)

0

Reputation

  1. Just wanted to update with progress. Program features: - Ability to save and open files, setup and text - Outputs update real time from PLC and Input buttons - LED lights automatically update according to 1 or 0, on or off - Ultrasonic Slider feature control (Controls tank level, 4-20ma) I'm planning on adding more inputs to use with expansion modules. Button to open or close another window with a visual of the expansion modules. And the ability to choose which COM port to use. I'm running into a bit of a wall with the COM issue and the Unitronics code. Suggestions are greatly appreciated.
  2. Thanks that worked perfectly. Here's an example of what I'm trying to accomplish. We do a lot of trucks that use either the v130 or v570, and we usually don't get a lot of time to troubleshoot progams. It's usually put the program in the truck as they are testing it and getting ready to ship. Our test rig is a big board of switches and output lights that is a mangled mess to hook up. So I figured I'd write up a vb program that would be a virtual test rig that I can run side by side with visilogic and the plc. This is the basic setup, and from testing works as planned right now. I plan on adding more funcionality. Overall I want to be able to add a drag and drop inputs and outputs.
  3. I've tried using the plc.sendstring and I get 'SD' is a type and cannot be used as an expression. I've tried calling it at in addition to the Imports Unitronics.ComDriver (ex.Imports Unitronics.ComDriver.SD) but that didn't seem to help. Would it be better to use the C# example as opposed to the VB? Here's just a small snippet of what I have Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click plc.SendString(SD, 0, 1, 1) { I also tried (SD0000011) but it didn't like that format without the comma's} End Sub
  4. I've downloaded and have messing around with the Unitronics ComDriver. I've managed to be able to read and write MI, MB, etc. The only problem I'm having is being able to write or change the value of the inputs. I can read them using OperandTypes.Input, but can not write. I was thinking that it acts the same way as the MB, that any value over 0 will give you a 1 but it won't change. I then tried to change the MB assigned to the input but since it was connected it also wouldn't let me change the value. Doing some digging I spotted a forcedparams under the Unitronics.ComDriver, but was unsure of what that initially does. I was hopeing it would force the input either on or off like the info mode would do. I was looking at both the VB and C# examples. Any help would be greatly appreciated.
  5. I'm trying to troubleshoot a program where it has a check status on startup. The way the program was written it checks all major inputs at startup when the main display is loaded. It basically checks 4 main inputs, Emergency Stops, Water Detection, High Level and Low level. My main problem is the way it was written is that they all active 1 MB (which I don't think is right). So the 4 seperate screens fight each other. It looks kind of like this: Estop [P]----------------MB Scan Bit Estop [N] Water Detection [P] Water Detection [N] High Level [P] High Level [N] Low Level [P] Low Level [N] Then the 4 all have something similiar to this: MB Scan Bit [ ]-----------Estop Active [ ]-----------Display Estop Active MB Scan Bit [ ]-----------Water Detection Active [ ]-----------Display Water Detection MB Scan Bit [ ]-----------High Level Active [ ]-----------Display High Level MB Scan Bit [ ]-----------Low Level Active [ ]-----------Display Low Level I've found that the low level takes priority and the Estop Screen is low priority. My only solution I could think of would be to have all the warnings on one screen, and if they were activated it would show just those that were activated. The client is more in favor of having a different warning screen for each individual one. Is there a better way to do this with the existing code or is it just better to rewrite the code so that each event has it's on bit? thanks in advance
  6. That was exactly what I was looking for, thanks so much. I would have never figured that out. --Cara I was able to upload then, might have just been a glitch the first time. Thanks
  7. Here's a real simple program that illustrates what I'm trying to accomplish. Basically I need the odometer MI to be added only once on the first run of program. I can get it to keep a running total but if I try and add the odometer value it adds that value everytime. Test Sum.vlp
  8. Damian Thanks for the help, it won't let me upload the program, says permission error. I'm guessing I don't have enough posts yet. I can email you it if you would like.
  9. I think I came up with a better explanation, with example ML's Register Screen under Admin Menu: Master Total: ML1 (ex. 1000 + gross) (This is the running total, non-editable) Register Odometer: ML0 (ex. 1000) (This is inputed by customer to match register head, this is only set once at installation of program) Register sub-routine: first I need ML0(register odometer)+ML2(gross) = ML1 (Master Total), but only done once to get the register odometer included in the Master Total. And then this needs to increment with each additional fueling by gross(ML2) Printed Ticket Gross: ML2 Before:ML1 After:ML3 (ML1+ML2) Now each additional fueling will move the ML3 to the Before total, and come up with a new After. I'm guessing I'm making it harder then it should be but the getting the after to before is what I can't wrap my head around.
  10. I think I came up with a better explanation, with example ML's Register Screen under Admin Menu: Master Total: ML1 (ex. 1000 + gross) (This is the running total, non-editable) Register Odometer: ML0 (ex. 1000) (This is inputed by customer to match register head, this is only set once at installation of program) Register sub-routine: first I need ML0(register odometer)+ML2(gross) = ML1 (Master Total), but only done once to get the register odometer included in the Master Total. And then this needs to increment with each additional fueling by gross(ML2) Printed Ticket Gross: ML2 Before:ML1 After:ML3 (ML1+ML2) Now each additional fueling will move the ML3 to the Before total, and come up with a new After. I'm guessing I'm making it harder then it should be but the getting the after to before is what I can't wrap my head around.
  11. Is there a way to always have a value add to an existing one so that the plc can keep a running total? The application I'm trying to develop is a fueling one, where everytime they pump product, it adds to the master total and prints a before and after ticket. I'm having trouble getting it to add each time without resetting. And I'm not sure how to read a before and after, basically from the same ML. Where when they select begin fueling it will take the master total as a before and then when they hit end fueling it will take the master total plus the gross. Do I need to incorporate a DT read/write rows? hopefully this makes a little sense, I took this program over from an former co-worker so there is a lot of things in it that doesn't really make sense to me as I have no training beside a seminar. Note: I can get the program to print a ticket and show a before and after with the values but they just reset evertime.
  12. Have a V570 that during a download quit. Now when powered up, it looks like it does a 1 sec. cycle. When entering boot mode and following past directions of installing bin, boot and os seperatly and then reseting does not work. I've tried to install past versions as well as new, the plc takes them and then when I try to install a blank program I get a warning stating "No O/S installed, install O/S throught communications menu". I've uninstalled visilogic and reinstalled, that didn't help, I've tried cycling power a bunch of times and left the battery out for days. I'm not sure what my next step would be or if there is one. Any help would be greatly appreciated.
  13. Not sure if this is what you are looking for but here are some of the icons I've cleaned up and use on our 570's. I basically took them into photoshop and instead of having a cutout I used the background color to make a sort of square image. That way the icon will look sharp and you won't see any pixels in the background color. The only problem I've ran into is that you have to use whatever backgrounds visilogic has and match it to your icons so that they blend right.
×
×
  • Create New...