Author Topic: triplc  (Read 8214 times)

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: triplc
« Reply #30 on: December 12, 2014, 10:27:06 PM »
Once you get that software installed, start a new session and set it up for a Request/Response view. Then start up AdvancedHMI and see if it shows packets going out the serial port. If it does, send me a screen shot of the packets.

xpsarin

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: triplc
« Reply #31 on: December 12, 2014, 10:33:03 PM »
when i move program to plc i see stuff change on the monitor but nothing on visual studio

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: triplc
« Reply #32 on: December 12, 2014, 10:36:14 PM »
When you said F11 was working, were you able to step down to the ProcessReceivedData()?

You should be able to step into the subroutine

xpsarin

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: triplc
« Reply #33 on: December 12, 2014, 10:42:57 PM »
yes but now its not working, when i go in debug i see advancedhmi in serial monitor

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: triplc
« Reply #34 on: December 12, 2014, 10:44:13 PM »
Did you get some packet captures in serial monitor from AdvancedHMI running? If so, can you send a screen shot of them?

xpsarin

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: triplc
« Reply #35 on: December 12, 2014, 10:46:30 PM »

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: triplc
« Reply #36 on: December 12, 2014, 10:48:44 PM »
Now select one of the packets so it shows the byte values in the packet

xpsarin

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: triplc
« Reply #37 on: December 12, 2014, 10:52:00 PM »
it dosent show anything

xpsarin

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: triplc
« Reply #38 on: December 12, 2014, 11:00:29 PM »
do you want to try with teamviewer?

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: triplc
« Reply #39 on: December 12, 2014, 11:01:14 PM »
I don't remember right off, but somehow you can get it to show the byte values that are sent and received. If you can't get that to work, we can go back to stepping through the code.

Open ModbusBase.vb and put a breakpoint at line 664, then run the application, When it stop at the break point, step through with F10 or F11 to see if it goes to line 655:
            If PDU.ExceptionCode = 0 Then

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: triplc
« Reply #40 on: December 12, 2014, 11:01:56 PM »
do you want to try with teamviewer?
That would work if we can do that. I will be able to quickly step through the code to find the problem.

You can email me directly at the support at adancedhmi.com email address

xpsarin

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: triplc
« Reply #41 on: December 12, 2014, 11:07:05 PM »
can you link me to that, i cant find it?