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

Pages: [1]
1
Support Questions / Re: MicroLogix/RSLogix500 with timer .PRE and ACC
« on: October 24, 2013, 07:27:50 AM »
My 'fix' is probably not good then.  Looks like the issue is probably with the data being returned.  It appeared to me that it returned only the data requested.  If I requested a PRE, it returned a PRE, if I requested an ACC, it returned an ACC.  I didn't delve into the multiples too much, but it did appear that if my request was for PRE and 4 data points, it would return an array of 8 bytes, I assumed this was 4 PRE's?  If that's not what you were going for, then my 'fix' doesn't work.

2
Support Questions / Re: MicroLogix/RSLogix500 with timer .PRE and ACC
« on: October 23, 2013, 05:26:47 PM »
forgot to state my version number, I'm using 3.58

3
Support Questions / Re: MicroLogix/RSLogix500 with timer .PRE and ACC
« on: October 23, 2013, 05:07:02 PM »
Not sure, but it looks like you were attempting to parse through the retained data and pull out the ACC from what you thought was an array of ACC and PRE values, but it does only return either the ACC or the PRE, not both.  Therefore it looks like this should just be simplified to

For i As Integer = 0 To ParsedResult.NumberOfElements - 1
        j = i * 2
       result(i) = BitConverter.ToInt16(ReturnedData, j)
Next

this worked with both single reads, and array reads.

4
Support Questions / MicroLogix/RSLogix500 with timer .PRE and ACC
« on: October 23, 2013, 04:41:11 PM »
I keep getting errors in the ExtractData function when attempting to read from timer files at line 1507, Index out of Range.
I am attempting to retrieve the PRE value from a single timer.
Dim RFTimePre As Integer = Main.PLCNet.Read("T4:13.PRE")

in your code, AllenBradleyPCCC.vb, lines 1499-1507
ReturnedData has a length of 2, but j is a value of 2 when it can only have a maximum value of 1?  I'm not sure what you are doing to determine the start index but I believe something is incorrect.  If I attempt to read the ACC register, I also get an error where j is 4.

'* If a sub element is designated then read the same sub element for all timers
                Dim j As Integer
                For i As Integer = 0 To ParsedResult.NumberOfElements - 1
                    If ParsedResult.SubElement > 0 Then
                        j = i * 6 + (ParsedResult.SubElement) * 2
                    Else
                        j = i * 2
                    End If
                    result(i) = BitConverter.ToInt16(ReturnedData, j)

5
Support Questions / Re: Communications and Simulation Mode
« on: October 22, 2013, 10:42:27 AM »
Thank you Archie, I will implement your suggestions, most of my calls are in my code, but I am still considering using your controls for a few items.  If you could consider the disable comms as a feature request I would appreciate it.  I have to do this in almost every HMI I write and it would be great to have it included in your code to simplify the interface.

6
Support Questions / Communications and Simulation Mode
« on: October 21, 2013, 01:02:33 PM »
I would like to be able to run my HMI while offline, typically with other drivers when starting I would check status of the communication connection, if it was negative, I would give the user the option to Try Again, Abort, or Simulate.  Simulate mode would allow the program to run and not create errors.  This allows the end user to program recipes, look at data, ... while offline.  How can I implement this with your drivers without encapsulating your class?  I am using the EthernetIPforPLCSLCMicroCom.  Thank you.

Pages: [1]