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.


Topics - aduhaime2003

Pages: [1]
1
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.

2
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

3
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

4
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 

5
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.


6
Support Questions / EthernetIPForMicro800 Writing Bool to PLC
« on: November 30, 2015, 09:06:36 AM »
I've run into a problem recently where I am trying to write parameters for a run of a system into the PLC. When I'm writing actual numerical values everything works fine but I have some values that are Booleans. This is what I'm writing currently (and where I'm stuck):

 For count As Integer = 0 To index
            SegmentNumber = SegmentSetpoints(index, 1) 'if the segments are read out of order then use the segment # field to indicate placement

            Label1.Text = "Segment " & count & " is being downloaded."
            EthernetIPforMicro800Com1.Write("PROGRAMABLECONTROL.Segments[" & SegmentNumber & "].number", SegmentSetpoints(index, 1))
            EthernetIPforMicro800Com1.Write("PROGRAMABLECONTROL.Segments[" & SegmentNumber & "].next", SegmentSetpoints(index, 2))
           * EthernetIPforMicro800Com1.Write("PROGRAMABLECONTROL.Segments[" & SegmentNumber & "].loop", CInt(Int(SegmentSetpoints(index, 3).Equals("true"))))
            EthernetIPforMicro800Com1.Write("PROGRAMABLECONTROL.Segments[" & SegmentNumber & "].durationSec", SegmentSetpoints(index, 4))
            EthernetIPforMicro800Com1.Write("PROGRAMABLECONTROL.Segments[" & SegmentNumber & "].startTempSP", SegmentSetpoints(index, 5))
            EthernetIPforMicro800Com1.Write("PROGRAMABLECONTROL.Segments[" & SegmentNumber & "].endTempSP", SegmentSetpoints(index, 6))
            *EthernetIPforMicro800Com1.Write("PROGRAMABLECONTROL.Segments[" & SegmentNumber & "].ramp", CInt(Int(SegmentSetpoints(index, 7).Equals("true"))))
            *EthernetIPforMicro800Com1.Write("PROGRAMABLECONTROL.Segments[" & SegmentNumber & "].soak", CInt(Int(SegmentSetpoints(index, 8).Equals("true"))))
            *EthernetIPforMicro800Com1.Write("PROGRAMABLECONTROL.Segments[" & SegmentNumber & "].lastSegment", CInt(Int(SegmentSetpoints(index, 9).Equals("true"))))
            EthernetIPforMicro800Com1.Write("PROGRAMABLECONTROL.Segments[" & SegmentNumber & "].aquisitionInterval", SegmentSetpoints(index, 10))
            EthernetIPforMicro800Com1.Write("PROGRAMABLECONTROL.Segments[" & SegmentNumber & "].TCHHalarmLevel", SegmentSetpoints(index, 11))
            EthernetIPforMicro800Com1.Write("PROGRAMABLECONTROL.Segments[" & SegmentNumber & "].TCLHalarmLevel", SegmentSetpoints(index, 12))
            EthernetIPforMicro800Com1.Write("PROGRAMABLECONTROL.Segments[" & SegmentNumber & "].TCHLalarmLevel", SegmentSetpoints(index, 13))
            EthernetIPforMicro800Com1.Write("PROGRAMABLECONTROL.Segments[" & SegmentNumber & "].TCLLalarmLevel", SegmentSetpoints(index, 14))
            EthernetIPforMicro800Com1.Write("PROGRAMABLECONTROL.Segments[" & SegmentNumber & "].RoomHHalarmLevel", SegmentSetpoints(index, 15))
            EthernetIPforMicro800Com1.Write("PROGRAMABLECONTROL.Segments[" & SegmentNumber & "].RoomLHalarmLevel", SegmentSetpoints(index, 16))
            EthernetIPforMicro800Com1.Write("PROGRAMABLECONTROL.Segments[" & SegmentNumber & "].RoomHLalarmLevel", SegmentSetpoints(index, 17))
            EthernetIPforMicro800Com1.Write("PROGRAMABLECONTROL.Segments[" & SegmentNumber & "].RoomLLalarmLevel", SegmentSetpoints(index, 18))

        Next
The asterisks are where my attempt is. I tried to convert the Boolean into an integer and write that but gives me an error: Object reference not set to an instance of an object.

Any advice for this would be great appreciated. 

7
Support Questions / Micro800 String Write
« on: October 07, 2015, 01:55:13 PM »
I am using an application I have written to build a Profile within a PLC to run a ramp soak chamber.  I have all the Cycles within SQL and I retrieve them and write them to the processor in a UTD.  Everything works splendidly except for when I write to a String.  Then I receive a strange error.
Public ProgramSelected(2) as String
.
.
.
(string value at time of test was "Test Program")
EthernetIPforMicro800Com1.Write("PROGRAMABLECONTROL.programName", ProgramSelected(0))

Gives me the following error:

An unhandled exception of type 'System.FormatException' occurred in mscorlib.dll

Additional information: Input string was not in a correct format.

The error points to line 681             DLL(MyDLLInstance).WriteTagValue(tag, StringVals, numberOfElements, SequenceNumber, MyObjectID)
within the EthernetIPforCLXCom.vb file even thogh I am using the EthernetIPformicro800Com object.
Thanks in Advance.

8
Support Questions / Large Data Read and write blocks for data heavy pages
« on: January 22, 2015, 01:58:42 PM »
What I am creating is a page 2 with a bunch of alarms.
Each block has 10 registers involved.
1 is a string
1 is an integer that houses a bit array.
6 are preset and time stamp integers.

st31:0 would be the description for alarm 0
n100 would be the integer file associated with alarm 0

st31:31 would be the description for alarm 0
n131 would be the integer file associated with alarm 0

I would like to create a more efficient read because the page does not work if I simply use all BasicLabels.  It does not update as shown in the capture.

I want to provide a how-to.. to help others as well so I started this topic for that purpose since my recent questions were out of an old thread and not an easy to search item.

9
Support Questions / Unstable environment
« on: January 12, 2015, 04:15:34 PM »
I am not 100% if I am the cause of the problems I have been experiencing creating my first project.  I am hoping I am just missing something.  I am attempting a simple project and the vb code Is just breaking.  I am unfamiliar with the feel of visual studio so I am not sure where to start.  I am rusty since I have been using rockwell software for the last few years.  Before that I was only experienced with c++ in a text environment.  I am just trying to get the feel for the environment and I am failing badly.

I had an emulator running a project that I have developed and I have had issues with the driver accessing df1 emulated data.  I sorted that out but everything just fell apart when I created page 2.  It is supposed to be my alarm screen and now I am stuck.  I just don't know the best place to start.  I have had this same issue 3 times and started from scratch.  It is apparent that if I try to ignore basically all my objects disappear.

Pages: [1]