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 - Uncle3MTA3

Pages: [1]
1
Open Discussion / Re: DataSubscriber
« on: July 10, 2020, 10:05:33 AM »
Thanks for the response.
Just to make sure I'm understanding you, if I used the DataSubscriber2 and 2 of the fault conditions happened at the same time, they would both cause the DataChanged sub to run? There is nothing time consuming in that sub, so even a fraction of a second time difference should let the sub finish before needing to be run again, but let's think worst case scenario where 2 faults occur at the exact same moment and both want to trigger the DataChanged sub. Will they run in their own thread? Will they be queued to run one after another? Will the second trigger be ignored?
I like the idea of cleaning up the scores of subscribers I currently have, but I want to make sure nothing is missed.

2
Open Discussion / DataSubscriber
« on: July 02, 2020, 09:28:14 AM »
I'm trying to set up fault logging for an entire plant. The AHMI application will be running on a computer and will do nothing more then record when a machine has faulted and put the fault information into a central database.
This mean that the application will be talking to a dozen PLCs and recording data on scores or individual pieces of equipment.
I have some code written and functional on of one the lines, but before I expand it to cover everything, I want to make sure I'm doing it intelligently.
Right now I'm using a lot of DataSubscribers to monitor individual bits in the PLCs and then I have code in the DataChanged function to execute the sql query. But the number of functions is already pretty large and will only be growing. My thinking is that since each piece of equipment I will be monitoring runs asynchronously with everything else, I need the functions to be able to run independently, that's why I'm using the DataSubscriber and not the DataSubscriber2 with multiple trigger bits.
Does this seem like the right way to do what I want? How would the DataSubscriber2 respond to multiple triggers happening, potentially, simultaneoulsy?

3
Support Questions / Re: Create solution from existing application
« on: June 30, 2020, 10:47:09 AM »
I had a feeling that was the case. Unfortunately, the previous guy seems to have had no sense of order in the organizing of his files.
Fingers crossed I can find the original project somewhere so I don't need to recreate the entire thing from scratch if I need to change something.
Thanks

4
Support Questions / Create solution from existing application
« on: June 29, 2020, 12:42:59 PM »
Hi,
I recently started a new position and have a bit of a problem. I can't seem to find the solution files for a couple of the AdvancedHMI projects in this plant. There are more then a couple of bugs in the existing applications but I can't fix them if I can't find the original solution files.
So, my question is, can I take the exe and application files and generate a solution that I can work on? If so, how?
I did a quick search on this forum as well as a google search and couldn't find anything. Maybe I'm using the wrong search terms, I don't know.

5
Support Questions / Re: OpcDaCom - InvalidCastException
« on: October 01, 2015, 10:50:39 AM »
Perfect, that worked!
I'm still pretty new with VB (a lot more experience with Java and Python), so I thought about catching the exception, but I didn't know how.

6
Support Questions / When value is 0, BasicLabel shows nothing
« on: October 01, 2015, 10:47:24 AM »
This is probably a simple problem, but I'm just not seeing what I'm doing wrong.
I have a BasicLabel that I use to display the speed of a conveyor. I use the ValueScaleFactor of 196.85 to convert the speed from meters per second to feet per minute. When the conveyor is running everything is fine, the number is displayed correctly and updates when the conveyor speed changes. However, when the conveyor stops, the display disappears. I can only assume this is because the value becomes 0 (when the conveyor is stopping, I can see values down to 0.1 ft/min, which is my display resolution based on the NumericFormat being ##.#).
Is there some setting that I am missing to display the 0?

7
Support Questions / Re: OpcDaCom - InvalidCastException
« on: October 01, 2015, 10:30:46 AM »
I know this is an old thread, but I'm having this same error show up. My application originally only had the EthernetIPforCLXCom driver and everything was fine. I've since added a second driver for OpcDaCom to communicate with an OPC server on my local machine to talk to ABB robots. Now every time I exit the program, either with the 'x' in the top right hand corner or with the exit button (which has Application.Exit()) I get the same error on the same line. I've tried adding the line you suggest, but it doesn't seem to fix the error.
Any help would be fantastic.

Pages: [1]