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.


Topics - KanHaz

Pages: [1]
1
Support Questions / Writing to PLC problem
« on: June 16, 2015, 12:50:47 PM »
With the older versions I was able to put a timer in the form and run a basic If Then statement to read, do some math, or write to the PLC. Now the timer doesn't work and/or the write function doesn't work. Were there any changes made to the write function? -->
Code: [Select]
EthernetIPforPLCSLCMicroCom_CNC.Write("N7:16", PartCount)


2
Support Questions / Linux Error Question
« on: June 05, 2015, 01:19:25 PM »
Hello,

Trying to get AHMI running on Ubuntu and I get this error message:

Unhandled Exception:
System.InvalidOperationException: WinForms_SeeInnerException ---> System.NullReferenceException: Object reference not set to an instance of an object
  at AdvancedHMIDrivers.EthernetIPforCLXCom.CreateDLLInstance () [0x00000] in <filename unknown>:0
  at AdvancedHMIDrivers.EthernetIPforCLXCom.set_IPAddress (System.String value) [0x00000] in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) AdvancedHMIDrivers.EthernetIPforCLXCom:set_IPAddress (string)
  at MfgControl.AdvancedHMI.MainForm.InitializeComponent () [0x00000] in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) MfgControl.AdvancedHMI.MainForm:InitializeComponent ()
  at MfgControl.AdvancedHMI.MainForm..ctor () [0x00000] in <filename unknown>:0
  at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,object,object[],System.Exception&)
  at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00000] in <filename unknown>:0
  --- End of inner exception stack trace ---
  at MfgControl.AdvancedHMI.My.MyProject+MyForms.Create__Instance__[MainForm] (MfgControl.AdvancedHMI.MainForm Instance) [0x00000] in <filename unknown>:0
  at MfgControl.AdvancedHMI.My.MyProject+MyForms.get_MainForm () [0x00000] in <filename unknown>:0
  at MfgControl.AdvancedHMI.My.MyApplication.OnCreateMainForm () [0x00000] in <filename unknown>:0
  at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun () [0x00000] in <filename unknown>:0
  at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run (System.String[] commandLine) [0x00000] in <filename unknown>:0
  at MfgControl.AdvancedHMI.My.MyApplication.Main (System.String[] Args) [0x00000] in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.InvalidOperationException: WinForms_SeeInnerException ---> System.NullReferenceException: Object reference not set to an instance of an object
  at AdvancedHMIDrivers.EthernetIPforCLXCom.CreateDLLInstance () [0x00000] in <filename unknown>:0
  at AdvancedHMIDrivers.EthernetIPforCLXCom.set_IPAddress (System.String value) [0x00000] in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) AdvancedHMIDrivers.EthernetIPforCLXCom:set_IPAddress (string)
  at MfgControl.AdvancedHMI.MainForm.InitializeComponent () [0x00000] in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) MfgControl.AdvancedHMI.MainForm:InitializeComponent ()
  at MfgControl.AdvancedHMI.MainForm..ctor () [0x00000] in <filename unknown>:0
  at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,object,object[],System.Exception&)
  at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00000] in <filename unknown>:0
  --- End of inner exception stack trace ---
  at MfgControl.AdvancedHMI.My.MyProject+MyForms.Create__Instance__[MainForm] (MfgControl.AdvancedHMI.MainForm Instance) [0x00000] in <filename unknown>:0
  at MfgControl.AdvancedHMI.My.MyProject+MyForms.get_MainForm () [0x00000] in <filename unknown>:0
  at MfgControl.AdvancedHMI.My.MyApplication.OnCreateMainForm () [0x00000] in <filename unknown>:0
  at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun () [0x00000] in <filename unknown>:0
  at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run (System.String[] commandLine) [0x00000] in <filename unknown>:0
  at MfgControl.AdvancedHMI.My.MyApplication.Main (System.String[] Args) [0x00000] in <filename unknown>:0

I tried to search for it so I can find out whats wrong but no luck yet. I might try Linux-Mint after the weekend to see if it works better than Ubuntu. Any help is greatly appreciated.

3
Open Discussion / DataSubscriber to read multiple tags
« on: January 12, 2015, 09:36:38 AM »
Hi,

    I would like to read multiple tags with one DataSubscriber. Is there a tutorial or an example someone could post/direct me to? I've searched the forum and I've found bits and pieces but a full on example or explaination. If anyone could help I would greatly appreciate it.

Thanks in advance.

*Modified because I posted it before I could write anything.

4
Open Discussion / Advanced HMI on Linux?
« on: January 06, 2015, 03:18:53 PM »
Has anyone tried to run Advanced HMI on Linux? I didn't find anything when I looked it up. I know Linux has a program called Wine that will allow it to run Windows executables on it so I thought it was a possibility. If anyone has tried please let me know how it went.

Thanks.

5
Support Questions / Read and Write to a variable with MicroLogix 1100?
« on: February 11, 2014, 10:06:58 AM »
Hello,

First off thanks for creating this program. It's amazing and easy to use.
My problem is I want to be able to read a counter to a variable and then reset it.
I used rich text boxes on my form and want to display the number from the counter.
I'm using a MicroLogix 1100 and I can get the numbers to show up when I use the Digital Display that came with AdvancedHMI.

The program I'm trying to make will keep track of the number of parts made (Variable name "actual") and compares them to the number of parts that should have been made (Variable name "goal"). A timer in the PLC increments a counter to keep track of "goal" and another counter keeps track of "actual". I have it in the program that if "actual" < "goal" the text in the box is red, if "actual" > "goal" the text is green. The program will also store the "actual" and "goal" of each shift and display them on the screen with the same red or green text.

This is where I have problems. These lines don’t read from the PLC and give me an error message.

actual = EthernetIPforPLCSLCMicroComm1.Read ("C5:1/ACC")
goal = EthernetIPforPLCSLCMicroComm1.Read ("C5:0/ACC")

I haven't tried to reset them, haven't got that far yet. I'm new to this so thank you for any advice or tips.

Pages: [1]