Recent Posts

Pages: [1] 2 3 ... 10
1
Support Questions / Re: Only reading 1 array register
« Last post by dmroeder on May 07, 2024, 10:06:57 AM »
Thanks for the update FlippinBits.

This is a very interesting issue. There have been issues in v32+ where some corruption of the tag database occurs.  The result ends up being you cannot upload the program from the controller.  Only recourse is to download.  We've seen this a couple of times, luckily for us, it's just machines we are building, not in production environment.

Seems like a similar issue.  Curious, are these tags UDT members?  I think Rockwell has opened up some UDT editing (renaming maybe?) online, there are technotes about corruption happening in when doing this in some versions.  What firmware version are you using?
2
Support Questions / Re: Only reading 1 array register
« Last post by FlippinBits on May 07, 2024, 09:53:36 AM »
No suggestions?  Just as well.
To follow up and for future readers.  This ended up not being an Advanced HMI issue, just appeared to be because some registers were not read properly.
This is with an AB CompactLogix 5380.  At the same time, I had a problem with not being able to save the PLC program to my laptop.  I don't have the exact message, but something about an offset being bad.  I had to do a download to the PLC to fix that, which it did.  At the same time, that also fixed my array displaying issue, that is now also working correctly again.
This is not the first time that I have had issues reading registers in AB ControlLogix PLCs that appeared in Advanced HMI.  In both times a download of the PLC program to the PLC fixed it.  Just something else to consider for others with similar issues.   :)
3
Open Discussion / Re: Powershell and AdvancedHMI
« Last post by dmroeder on May 02, 2024, 06:24:00 PM »
That's a good idea, I hadn't thought about doing it that way.
4
Open Discussion / Powershell and AdvancedHMI
« Last post by JimmyTang999 on May 02, 2024, 04:48:52 PM »
So to get this to work, you must purchase the .Net dll to make the driver stand alone.
It seems to be working very well. Worth every Penny!
Below is a simple example of connecting and reading a tag. It would be very easy to pipe data to a text file or DB from here with time stamp.

Code: [Select]
# Load the AdvancedHMI.dll assembly
Add-Type -Path "C:\myDlls\EIP\ClxDriver.dll"

# Create an instance of the EthernetIPforCLXCom class
[ClxDriver.EthernetIPforCLX]$ethernetIP = New-Object ClxDriver.EthernetIPforCLX
#$ethernetIP | Get-Member

# Set PLC IP address and slot
$ethernetIP.IPAddress = "YourIPAddress"
$ethernetIP.ProcessorSlot = "0"

#read the data
$testString = $ethernetIP.Read("PLCTag");
Write-Output $testString

5
Support Questions / Re: Second monitor
« Last post by stephen.crouch on May 01, 2024, 04:43:47 PM »
I'm guessing it will be something like creating a second MainForm, but I'm not sure how the panel loads the files on boot. Do I just put a second .sln file in the root directory of the thumb drive?  What would I name it?
6
Support Questions / Re: Exit Button on MainMenu
« Last post by Automatikai on April 30, 2024, 12:06:28 PM »
OK, I think I got it. Use MainMenu buttons for all navigation from the menu rather than formchange. I think I was assuming they all went to mainform.

Still struggling with screen positions and sizes.
7
Support Questions / Re: Exit Button on MainMenu
« Last post by Automatikai on April 30, 2024, 11:50:59 AM »
Additional problem: I migrated my menu controls to my main project. If you put a formchangebutton on the mainmenu to the page2 screen, it closes the mainmenu, leaving the mainform and the page2 open with no way to exit. This implies that the formchange buttons would need to be on each screen to navigate rather than on the MainMenu, which should always stay open. I must be missing something.
8
Support Questions / Exit Button on MainMenu
« Last post by Automatikai on April 30, 2024, 11:11:11 AM »
I realize this may be a VS question rather than Advanced HMI, but I am a rookie so bear with me.

I developed an application first using the MainForm, OPC driver, it worked well with an AB emulator. I added a FormChangeButton to Page2, put an OPC driver there and page2 controls also worked fine. I put a FormChangeButton on Page2 back to the MainForm and it didn't close Page2. I also went to the FormChangeControls folder and spent some time  looking at the code trying to figure out how to implement it. For instance, the exit button seems to have a ExitButton_Click Sub but no code inside. It tried using it in that application and it didn't close the forms or application. If I close the MainForm with the "X" I get a StackOverflow.

Next I created a new test application using MainMenu as my startup, MainForm as my startup form, a FormChangeButton to page2, a FormChangeButton back to MainForm. Navigation seemed to work ok, but the forms don't start in the same place. I saw some commented code with MenuPos and assume that helps put forms in the same spot, I will experiment with that later.

But the exit button doesn't close the application or forms. I have seen some help files referencing Me.Close() but when I put that in the ExitButton_Click sub I still get a stackoverflow.

To use Advanced HMI it seems that a deeper knowledge of VB.net and Visual Studio is needed, but short of an intensive bootcamp or school I don't know where to start. The Microsoft and YouTube videos and files I have found all seem to skip the fundamentals also. I have done some work using OOP in Beckhoff so I somewhat understand properties, methods, inheritance etc. but this gets over my head fast. Any suggestions?
9
Support Questions / Only reading 1 array register
« Last post by FlippinBits on April 27, 2024, 02:59:02 PM »
I'm having a strange problem.  I have a page that just reads values from 2 PLCs.  One is ControlLogix which is working as expected.  The second is CompactLogix which has the problem. Using the same driver for both.
I am reading an array of values.  The displayed values are all the same as the first set in the array.  So, it reads the first row, then the second row is the same values as the first, 3rd same as first, 4th same as first.
I am just using the Basic Label addressed to each element.  The PLC address is correct in Properties, but that is not the value that is displayed.  Using version V399x Patched3 of Advanced HMI.
Any ideas?
TIA
10
Open Discussion / Re: AdvancedHMI TCP to DL05 RTU Communication
« Last post by Godra on April 19, 2024, 11:53:24 AM »
You should get in touch with the manufacturer of any Modbus Gateway you might have been checking out.

Ask them if their device can both send and receive.
Pages: [1] 2 3 ... 10