Recent Posts

Pages: 1 ... 3 4 [5] 6 7 ... 10
41
Support Questions / Re: RE: Make Global Object
« Last post by zach_a_ary on March 01, 2024, 09:46:59 PM »
i deleted the basic label and added the basic indicator. Here are some screenshots I took. I might have missed a step somewhere. 192.168.70.10 is the ip i need.
42
Support Questions / Re: How to Avoid PLC and PC timeouts
« Last post by Archie on February 29, 2024, 02:14:26 PM »
You should be able to do a PLCAddress of PaintPart[0] and NumberOfElements of 65 (or greater). Then use e.Values(x) to access each array element,
43
Support Questions / Re: How to Avoid PLC and PC timeouts
« Last post by paintman on February 29, 2024, 11:18:57 AM »
Awesome, for my situation with the array, it may be Paintpart[23] and the associated elements, or [65] depending on the carrier number at the station. With the data subscriber it looks like I can only call specific tags and not have a variablized tag. Would I need to just call the base name Paintpart then specific the actual tag location later in the code?

ps sorry for asking so many questions
44
Support Questions / Re: How to Avoid PLC and PC timeouts
« Last post by Archie on February 29, 2024, 10:36:16 AM »
The DataSubscriber2 allows you to setup multiple tags in a single DataSubscriber2. It will fire on changes in both directions.
45
Support Questions / Re: How to Avoid PLC and PC timeouts
« Last post by paintman on February 29, 2024, 10:02:39 AM »
Does the datasubscriber work for multiple PLC tags or is it for a single tag per subscriber? Currently the most important one I am trying to read is an array of tags with 8 elements to each tag.

Or would it be best to just setup the data subscriber to read the stop release bit and then run the full sequence of code?

Also does the datasubscriber read two way changes? Like if the bit changes from 0 to 1 it runs the sequence then when it changes back from 1 to 0 it reads again?
46
Support Questions / Re: How to Avoid PLC and PC timeouts
« Last post by Archie on February 29, 2024, 09:19:33 AM »
BeginRead is an asynchronous command which takes a lot more overhead to use. I would only use it if you need non-blocking code.

If you are just monitoring values for change, I would use the DataSubscriber

47
Support Questions / Re: How to Avoid PLC and PC timeouts
« Last post by paintman on February 29, 2024, 08:42:38 AM »
Are you using v3.99x or 3.99y ?

How are you reading data in the code? Read or BeginRead? How frequently are you reading?

I am using 3.99y, as for reading the data im not utilizing either of those (im fairly new to vb in general). I am just using the mydriver.read/write to pull the information from the plc. So it just reads during each scan cycle. Would begin read be better?

Currently in the operation when it sees a release bit it goes through a few nested if loops then will write the data to a text file which is linked to a list view and it its a part number its never seen before itll write the information to the PLC array
48
Support Questions / Re: How to Avoid PLC and PC timeouts
« Last post by Archie on February 28, 2024, 04:08:32 PM »
Are you using v3.99x or 3.99y ?

How are you reading data in the code? Read or BeginRead? How frequently are you reading?
49
Support Questions / How to Avoid PLC and PC timeouts
« Last post by paintman on February 28, 2024, 03:28:51 PM »
Hello,

I am using advancedhmi v35 and visual studio 2022, I wrote a VB.net script to continuously monitor data on the PLC (a GuardLogix 5380 Safety Controller). It works very well, but we run into an issue where the line will go on break for lunch etc and during that time the HMI says it has lost connection to the PLC. I am connected through an EhternetIPforCLXCom connection, I even setup a counter function that continuously runs to keep the EthernetIPforCLXCom1_DataReceived sub active; however, it still times out and when the line is started back the HMI never reconnects. Is there a better way to perform a handshake to allow the PC and PLC to not lose the connection between the two?
I though about creating a section on the PC that will reset the counter when it reaches a certain level. Any advice would be greatly appreciated.
50
Support Questions / Re: Changing the Look of a Button
« Last post by Archie on February 28, 2024, 02:37:34 PM »
- In Solution Explorer expand down AdvancedHMIControls
- Exapand down the Controls folder
- Right Click BasicButton.vb and select View Code
- Go down to about line 405, just below #Region "Events"
- Add this code
Code: [Select]
    Protected Overrides Sub OnEnabledChanged(e As EventArgs)
        MyBase.OnEnabledChanged(e)

        If Not Me.Enabled Then
            Me.BackColor = Color.Black
        End If
    End Sub
Pages: 1 ... 3 4 [5] 6 7 ... 10