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

Pages: [1] 2 3
1
Support Questions / Re: failure to build project
« on: January 10, 2016, 12:14:23 PM »
Thank you so much.  I thought that was what I needed but was confused how to do it correctly. 

Build was successful...now to the .net issues...ugh

2
Support Questions / Re: System.Reflection
« on: January 10, 2016, 12:09:53 PM »
I am using version 3.99a.  I am also using the micro800 Ethernet driver.  I wonder if I have the best version of the framework?  see attached for versions.

3
Support Questions / Re: System.Reflection
« on: January 08, 2016, 04:06:27 PM »
It seems like this only happens when 1 page is running a read function and a second page is open at the same time and it is running a beginread function.

The main page in my application is always open and does the logging of the data when new data is available on the plc.  The secondary pages are all user interfaces and some have real time data.  So essentially the datalogging which is being triggered once a second can read at the same time as the update on the secondary page which happens every 3 seconds.  Both pages read a bunch of parameters and the main page reads a block of 130 real numbers. 

Am i just expecting too much?

Thanks
Art

4
Support Questions / failure to build project
« on: January 08, 2016, 08:35:48 AM »
   The "GenerateResource" task failed unexpectedly.
System.NullReferenceException: Object reference not set to an instance of an object.
   at Microsoft.Build.Tasks.ResGenDependencies.GetResXFileInfo(String resxFile)
   at Microsoft.Build.Tasks.GenerateResource.ShouldRebuildResgenOutputFile(String sourceFilePath, String outputFilePath)
   at Microsoft.Build.Tasks.GenerateResource.GetResourcesToProcess(List`1& inputsToProcess, List`1& outputsToProcess, List`1& cachedOutputFiles)
   at Microsoft.Build.Tasks.GenerateResource.Execute()
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()   AdvancedHMI      

Does anyone know what the heck this is about.  I just tried to rebuild and this is what I get.  I am so confused.

5
Support Questions / System.Reflection
« on: January 07, 2016, 07:32:04 PM »
System.Reflection.TargetInvocationException was unhandled
Message: An unhandled exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll
Additional information: Exception has been thrown by the target of an invocation.

Has anyone seen this.  I tried to look online to see if there was any relevant information but I am completely lost.  I was debugging the project and things were fine...then nothing works.  I have not a clue.

I am using Studio 2015 for development.  I don't know if that is of any consequence.

Thanks in advance.

Art

6
Support Questions / Re: Multiple Ethernet Drivers in a single form
« on: December 28, 2015, 04:49:26 PM »
I found that it was actually a fundamentally flawed driver.  I believe during another debug session I must have accidentally deleted some code from the driver.  Once I removed all drivers and updated them with the current versions I downloaded everything went back to working. 

As far as the read/ begin read differences I see now that I am using the correct ones for some but other areas would be better suited to a read function.  Thanks for the assistance.

7
Support Questions / Re: Multiple Ethernet Drivers in a single form
« on: December 25, 2015, 03:52:36 PM »
I guess it comes down to the fact that I don't know the difference in using read in beginread.  I thought they were interchangeable and the resultant is I write a request for tread/beginread and then have a associated if statement in the datarecieved section.  I must be missing something...

8
Support Questions / Multiple Ethernet Drivers in a single form
« on: December 23, 2015, 02:32:25 PM »
Within my project I have 10 chambers each with a PLC located on them (micro800).  Currently I am in the process of testing the configuration but have been running into various errors since I have added the additional Ethernet drivers.  There is an exception thrown but no information that I am aware of can help me diagnose it.  I was using multiple windows and with 2 open the system crashes, pointing at one of the variables being read on the second page but if I let the initial page sit open it will crash on its own after a time period.

Is there a limitation and I cannot think of a better way to multiplex the functionality of what I am doing.  As a background the process is the following.

1.  Data is logged within the PLC at an interval and it is also event driven.
2.  New data is placed in a circular queue.
3.  When the queue has new data within it the oldest data is placed in a data buffer and a bit  called "newData" is set.
4.  Advanced hmi checks the newdata bit every few seconds. 
5.  If there is new data the data buffer is read by advanced hmi and it is written to a sql database and the new data bit is unset.
6.  Cycle repeats.

I currently have the system set up to do this reading 1 plc.  I have tried adding multiple instances of the Ethernet driver as well as multiplexing a current Ethernet driver by setting the ip address, reading, incrementing after analyzing the read and repeating.  Both give me a exception thrown.  IT is an exception in the beginRead function {"Send que full, data request too fast or may have lost connection."}.

Any thoughts?  I am not sure which way is better and if I am just experiencing a glitch or I am doing something completely wrong.

Art

9
I need some serious help with this. Here is the code I'm using to try and write the Bool to the PLC:

  EthernetIPforMicro800Com1.Write("PROGRAMABLECONTROL.Segments[" & SegmentNumber.ToString & "].loop", CInt(SegmentSetpoints(index, 3).Equals("TRUE")))

The .loop address is my bit that I need to change and the rest is converting the integer value I have in the array into an equivalent Boolean value. However when I run the code i get this error:

Quote
An unhandled exception of type 'System.NullReferenceException' occurred in AdvancedHMI.exe

Additional information: Object reference not set to an instance of an object
.

What am I doing wrong here?

Any help would be appreciated


10
I have been trying to figure this out for a while now and it is slowing down progress on my project. Is it possible to use the EthernetIPforMicro800com1.Write command to write Bools and Boolarrays to a PLC? I tried translating the bits into binary integers but that did not work unfortunately 

11
Support Questions / Re: CIP Error - Unknown Code 255
« on: December 04, 2015, 10:16:25 AM »
Is there a way to use the EthernetIPforMicro800Com1.Write command to write Bool values and Boolarrays to a PLC?

12
Support Questions / Re: CIP Error - Unknown Code 255
« on: December 02, 2015, 07:43:55 AM »
I am trying to write to both a Bool and a Bool array.

13
Support Questions / Re: CIP Error - Unknown Code 255
« on: December 01, 2015, 09:08:09 AM »
Ok that explains it. Thank you for the quick response. Another quick question though: Is it possible to send booleans to a PLC with the EthernetIPforMicro800Com1.Write command or is there another way to send Booleans to the PLC?

14
Support Questions / CIP Error - Unknown Code 255
« on: December 01, 2015, 08:20:25 AM »
I have been getting this error a lot lately. It always appears in the code for EthernetIPforCLX.VB when I use the EthernetIPforMicro800Com1.Write command on an address that is a Boolean. I can't find any information on this error, so has anyone else found this error and how to work with it?

I've tried turning the booleans into binary integers using help I got yesterday but after working with it, I started getting the same errors again.


15
Support Questions / Re: EthernetIPForMicro800 Writing Bool to PLC
« on: November 30, 2015, 02:51:19 PM »
That actually works perfectly with the solution I had in mind. Tested the code and it works. Thanks A lot. I was stuck on this for a while now

Pages: [1] 2 3