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

Pages: [1]
1
Open Discussion / Basic Button MomentarySet Response Time
« on: October 27, 2017, 07:40:32 AM »
I use the BasicButton almost exclusively, mainly for cosmetic purposes.  Most of them are being used as a momentary button by setting OutputType to MomenarySet.  I also have the MinimumHoldTime set to 1.

Is there a trick to make the button more responsive for tasks, such as jogging servos?  Does the momentary button have any advantage that I do not see?

2
Support Questions / Re: Compact Logix Index Outside Bounds Of Array
« on: January 11, 2016, 10:37:01 AM »
I downloaded version 3.99 of AdvancedHMI.  It did change the errors I am getting a little.  When I am running, and I quit all PLC reads so that I eventually get the ConnectionClosed event to occur, I now get the exception "No response from PLC".  It stops in EthernetIPforCLXCom, line 444.

If I step through my program and stop just prior to a Read, and wait for the 20+ seconds, I get "Read Failed. No Response from PLC(22), Status Code=-22".

I have found a way to work around this by keeping the connection open, so as far as I am concerned it is a closed issue.  If you are interested in looking into this further, you can create your default application and add an EthernetIPforCLXCom object, a Timer, and a Button.  Have the button toggle Timer1.Enable.  In the Timer logic, add a read to a PLC tag.  Enable the timer, and then disable it.  Leave the timer disabled until the ConnectionClosed event is fired.  If you enable right away, it seems to recover.   If you wait a while before enabling the timer after the ConnectionClosed event, it will sometimes fail.  It is not nearly as consistent as my project, but it will eventually happen.

Thanks for all of the help.

3
Support Questions / Re: Compact Logix Index Outside Bounds Of Array
« on: January 07, 2016, 08:55:41 AM »
Great, thanks.  I will give that a try later today.  I am now able to prevent the issue by keeping the connection alive.

4
Support Questions / Re: Compact Logix Index Outside Bounds Of Array
« on: January 07, 2016, 07:42:09 AM »
The exception stops in function BeginRead() in EthernetIPforCLXCom.  Line 445 is where it ends up, but line 441 is the culprit.

I don't know if it could be related, but if I step through my PLC.Read() statements and sit in a "paused" state to allow the connection to close, when I continue I get "No response from PLC.", and it stops on line 427 of EthernetIPforCLXCom.

FYI, I have version 3.98 of AdvancedHMI, and I am connecting to a CompactLogix L30ERM, firmware version 27.11.  I am running VS express 2013.

5
Support Questions / Re: Compact Logix Index Outside Bounds Of Array
« on: January 06, 2016, 05:47:53 PM »
The exception always occurs on the first of a series of PLC.Read() statements, where PLC is my EthernetIPforCLXCom object.  This only happens after the ConnectionClosed event has taken place.

It is very likely that there are now read or writes within 20 seconds when the popup window is opened.  Is there a way to ensure the connection is restored before executing the first PLC.Read() command, or do I need to keep the connection alive?

6
Support Questions / Compact Logix Index Outside Bounds Of Array
« on: January 06, 2016, 11:24:14 AM »
I am using the EthernetIPforCLXCom object to communicate with a CompactLogix PLC.  I am using BasicButtons, but I am also reading PLC information and storing into variables.  To do this I am using a Timer that runs every 100ms.  The timer goes through and reads items from the PLC and stores them into variables.  As part of my window navigation I minimize my Main window while showing other "pop-up" windows.  I disable my Timer while the Main window is minimized.  When I close the popup window, and maximize my Main window, I receive an exception "Index was outside the bounds of the array." during the first read from the PLC.  As a test I added an event for ConnectionClosed for the EthernetIPforCLXCom object.  While my popup is open and my Main window is minimized, the ConnectionClosed event is sometimes fired.  If this happens, I get my exception on the first read. 

First, what would be causing the connection to close?  Second, how can I recover, in order to keep running?

Pages: [1]