Recent Posts

Pages: [1] 2 3 ... 10
1
Support Questions / Re: Display a float value in DigtalPanelMeter
« Last post by Archie on May 18, 2024, 06:12:32 PM »
Test with a BasicLabel first to see if it is getting the correct value.

To show a floating point on the DigitalPanelMeter, Set the ScaleFactor property to 1000 and the DecimalPosition to 3
2
Support Questions / Display a float value in DigtalPanelMeter
« Last post by ian.spurgeon on May 18, 2024, 04:18:31 PM »
Hello, I am using a Productivity P1000 PLC, and just come across the Advanced HMI, getting on well apart from trying to display a Floating value in the DigitalPanelMeter, my modbus address are 400025 & 400026, so in the PLCAddressValue i put F400025, but it only reads this data value and not the F400026, how do I sort this?
3
Support Questions / Re: Only reading 1 array register
« Last post by FlippinBits on May 15, 2024, 11:08:37 AM »
Yes, this is the second time for an issue like this.  First was a ControlLogix V32.  I was not able to read several registers from an outside network and the HMI stopped reading from the PLC.  A download "fixed" that.  Rockwell recommended a firmware update, which I did.  Have not seen that one again.
Second is the one posted here, which I have already described.
This recent one with the 5380 is version 32.12.
I updated the ControlLogix L83ES to version 32.16.
Yes, at least some of the data was in a UDT.
I am in a production environment.  Luckily, it has only been informational data affected, machine performance, HMI display.  So didn't stop anything from running.  Other than the time to troubleshoot and fix...
4
Support Questions / Re: AdvancedHMI not correct .NET framework for nugget.
« Last post by paintman on May 10, 2024, 02:46:44 PM »
UPDATE: I had to uncheck the debugger to not break when this exception was thrown 😅 my bad... Thank y'all it works perfectly!!
5
Support Questions / Re: AdvancedHMI not correct .NET framework for nugget.
« Last post by paintman on May 10, 2024, 02:16:12 PM »
I tried it with the NativeMethods you attached but I am still getting this error:
Quote
Managed Debugging Assistant 'PInvokeStackImbalance'
  Message=Managed Debugging Assistant 'PInvokeStackImbalance' : 'A call to PInvoke function 'AdvancedHMI!MfgControl.AdvancedHMI.NativeMethods::OpenPrinter' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature.'

Could this just be a formatting issue with the form I am using to create the string that will be placed on the label?
6
Support Questions / Re: AdvancedHMI not correct .NET framework for nugget.
« Last post by Archie on May 10, 2024, 01:57:32 PM »
I did not realize I left off the NativeMethods.vb

I edited the post above to add the file. Try to use that one because it came from a working project
7
Support Questions / Re: AdvancedHMI not correct .NET framework for nugget.
« Last post by paintman on May 10, 2024, 12:55:58 PM »
So I tried using the NativeMethods.VB from the link that was given which fixed the "Friend" issue. However now its throwing an exception saying:
Code: [Select]
MfgControl.AdvancedHMI.NativeMethods::OpenPrinter' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature.'
Which I have no idea what that means...
9
Support Questions / Re: AdvancedHMI not correct .NET framework for nugget.
« Last post by paintman on May 10, 2024, 08:59:40 AM »
I have plugged everything in, but I am getting an error for the NativeMethods portion.

It is showing that the method isn't accessible because it is a "Friend" though the whole sub is public and its namespace is being imported.

And is the .pDocName suppose to be the name of the format file?
10
Support Questions / Re: AdvancedHMI not correct .NET framework for nugget.
« Last post by Archie on May 09, 2024, 06:39:53 PM »
The RawPrinterHelper.vb file is added to the project by right clicking the AdancedHMI project and selecting Add->Existing Item.

You are correct, the printer name does not matter as long as it is default.
Pages: [1] 2 3 ... 10