Menu

Please Help

Help
Canaan
2009-03-24
2013-05-30
  • Canaan

    Canaan - 2009-03-24

    Hi I love the way this looks and I'm excited about it, but I haven't been able to have any success yet. I'm am fairly new to VB, but I've been messing with Excel using VB code there, and DDE to talk to the PLC. This is hopefully a nice upgrade from that for me, if I can get it work. I started a simple window with a start button, stop button, and digital panel meter showing the status of my timer associated with the bit that the start and stop buttons control. I'm connected to a micrologix 1200 via keyspan usb to serial adapter and a rs232 cable from AB. I know comms work great because RSLINX shows and I've had a lot of success using excel spreadsheets to talk to this very same plc with this setup. So, when I try to test run my little form I created using the Advanced HMI, I see the following message appear twice everytime I push one of the two buttons:

    A first chance exception of type 'AdvancedHMI.DF1Exception' occurred in AdvancedHMI.exe

    Please advise as I am not sure what to do to fix this problem. Thank you very much.

     
    • Canaan

      Canaan - 2009-03-24

      I forgot to mention something, when the button is clicked, it quickly displays "Write Failed" and that goes away when you let off of the button. Also, my Pilot light, which I intended to be the status light of my ms1, says "Invalid PLC Address" on it. What addressing format is to be used? I noticed the default is B3/0, but in my program I'm using B3:0.2 is my start button and B3:0.1 is my stop button.

       
    • myancey

      myancey - 2009-03-25

      Two things,try shutting RSlinx off, it maybe interferring with the comm port, and two use the exact address in Logix. Aso check the DF1 properties to to make sure that the correct comm port is reflected.

       

Log in to post a comment.