Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Godra

Pages: 1 ... 93 94 [95]
1411
Additional Components / Re: Quick Chart
« on: January 04, 2015, 05:20:18 PM »
By adding a few new lines of code (and repeating some other) this can be used for graphing multiple log files.

Attached are pictures, showing graphs for 2 log files, and code as well.

It would be possible to use timer instead of the button to automatically redraw graphs at certain intervals (timer would have to be disabled when zooming in). Depending on the interval, this could possibly put a bit of a burden on the computer.

Try using any of your log files to see if it works properly for you (either change file names or the code accordingly).

1412
Additional Components / Quick Chart for BasicDataLogger files
« on: January 02, 2015, 10:20:00 PM »
For anybody who might find it useful, here is my way of creating a quick chart using built-in Windows chart control.

It should be fairly easy to replicate it using Visual Studio, just look at the pictures attached, don't rename any of those controls, and use the code as is. Place the attached log file to the root of the drive C: and run the program.

The idea behind this is to create a copy of the log file, read all the recorded data and graph it (the chart supports selecting specific region and ZOOM IN/OUT once in that region). The graph would be static and could be used for quick analysis.

The code might not be perfect, could have bugs and lack error handling so use it AS IS. This is more of an idea than solution.
Modify parameters as you see it fit, add or remove features and just play with it. Read comments placed in the code to understand a bit better what the code does (not necessarily that it is 100% accurate).

It could be created as a separate page in any AdvancedHMI project.

IF YOU DO MANAGE TO GET TO THE LAST POST IN THIS TOPIC THEN GOOD THINGS MIGHT HAPPEN (just kidding but you will see the evolution of this small project and if you ever find a use for it that will make me happy).

1413
And here is another set of 4 icons for anyone who might be interested.

1414
Open Discussion / Re: Thanks
« on: December 25, 2014, 03:13:31 PM »
+1 more.

This project helped me learn about HMI and improve VB programming skills (which is still ongoing process).

1415
Thank you again.

Your suggestions, as could be read in all other posts, provide solution and are just logical.

1416
Thank you for the response.

It appears to be working correctly now with one exception which is when I remove the address, ie. set it to " ", the display doesn't reset to show 0 (or possibly default value whatever it might be) but still shows the last value it obtained for the previous address. It's not a big deal for me to have it working that way since the label still indicates that there is no address set for the property.

1417
Software v3.94 / Ethernet driver / MicroLogix 1000 PLC

Not sure if this is a bug in the software or if I am doing something wrong.

Just doing simple test to see if PLCAddressValue can be set-changed-reset through VB code. It appears to work fine since the label I placed above the meter shows correct address values every time I click on any button.

The control itself starts by getting values from PLC for the 1st set address, then it still keeps on getting the same values from the PLC along with new values for the 2nd changed address (and is flipping between the two). Even after I reset the address to " " (Nothing) the control is still getting the mentioned values.

Attached pictures might help as well.

1418
Support Questions / Re: com problem - invalid cast exception
« on: December 22, 2014, 03:23:23 PM »
The last version of software that worked for me was v3.84  for DF1 driver with MicroLogix 1000 Analog PLC.

Just tried it again and it still works.

I did notice some code changes in the #Region "Constructor" since the mentioned version (I couldn't make the DF1 driver work since these changes were implemented).

Not sure if this will help you but Archie can always provide better solution.

1419
Tips & Tricks / Re: A Colorful Progress Bar / Bar Level
« on: December 21, 2014, 04:05:44 PM »
If someone is looking to add a simple 7-segment LED display user control, can find all the steps and code in this tutorial on Dream.In.Code website: www.dreamincode.net/forums/topic/56377-making-a-user-control/
The code on the very bottom of the tutorial also shows the usage example in the form of Clock.

As suggested here, in the first post by Archie, the first 5 steps would make it a simple windows form control that can be referenced in the vb code (similar to that Clock example).

It should be possible to make it an AdvancedHMI control as well.

1420
Feature Request / Re: Have a control respond to either True or False bit
« on: December 19, 2014, 04:09:26 PM »
Thank you.

That is exactly what I wasn't aware of and it works just fine.

1421
Feature Request / Have a control respond to either True or False bit
« on: December 19, 2014, 02:43:38 PM »
This would be related to SquareIlluminatedButton control but might apply to other controls as well.

Is it possible to have the PLCAddressValue property, or if incorrect then some other property, be specified as either True or False? Since I am a newbie at this, if the option already exists could someone point me in the right direction?

Quick example would be to have 2 buttons read the same bit and illuminate depending on whether the bit is True or False (attached is a picture of START and STOP buttons and if the bit is True then START button would be illuminated while if that same bit is False the STOP button would be illuminated).

Currently I have been using alternative where I create a new rung in ladder logic and place the condition where the wanted bit False value activates a new bit and then use that new bit address in the mentioned STOP control. I guess it is possible to write a VB statement that examines the state of the wanted bit and then, when False, somehow illuminates the button.

1422
Instead of using default visual studio icon, one can create a custom icon and include it on all forms as well as executable file.

Every form has "Icon" section in the properties window and the AdvancedHMI project properties page will show it as well.

I have created some 16 colors 16x16 icons and have attached 4 for anyone to use (if you like them of course).

AHMI00 appears to be the most professional looking one and is my favorite.

Pages: 1 ... 93 94 [95]