• AVR Freaks

Hot!PICKIT4 Debugger like a PLC (Industrie) debugger possible ?

Author
Fausti
New Member
  • Total Posts : 14
  • Reward points : 0
  • Joined: 2014/11/23 11:59:51
  • Location: Germany
  • Status: offline
2019/08/22 23:39:05 (permalink)
0

PICKIT4 Debugger like a PLC (Industrie) debugger possible ?

Hi, i am working with industriel PLC (ABB,Siemens etc.)
At these systems, following function are often used:
After download the program, we go online to watch several variables in real time, means depending on the communication speed up to 10 times per secund update rate.
 
At MPLABX in combination with PICKIT 3/4 i am missing such a kind of function.
My suggestion is to implement following:
1. User will create a watch list.
2. Activate Debug mode
3. Program runs until one breakepoint is reached in the main cycle.
4. All variables in the watchlist are updated.
5. After that, the PIC goes on working without pressing any button until next time a breake point is reached.
 
Is that possible with the actual version of MPLABX ?
#1

9 Replies Related Threads

    judd
    New Member
    • Total Posts : 10
    • Reward points : 0
    • Joined: 2019/04/15 22:30:22
    • Location: 0
    • Status: offline
    Re: PICKIT4 Debugger like a PLC (Industrie) debugger possible ? 2019/08/22 23:45:02 (permalink)
    0
    How about instrumenting your code and streaming values out the UART/CDC to (for example) Data Visualiser?
    #2
    Fausti
    New Member
    • Total Posts : 14
    • Reward points : 0
    • Joined: 2014/11/23 11:59:51
    • Location: Germany
    • Status: offline
    Re: PICKIT4 Debugger like a PLC (Industrie) debugger possible ? 2019/08/23 00:24:06 (permalink)
    0
    In my opinion this should be an already implemented function of a good debugger, no need to be programmed by user code....
    #3
    NKurzman
    A Guy on the Net
    • Total Posts : 17720
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: offline
    Re: PICKIT4 Debugger like a PLC (Industrie) debugger possible ? 2019/08/23 00:42:48 (permalink)
    0
    You do not have a good debugger. You have a cheap model. The feature you want is available on some higher level chips with the higher end debuggers.

    I am not sure why you are comparing a full computer system with a lower end micro processor.

    And I agree with Judd
    #4
    Fausti
    New Member
    • Total Posts : 14
    • Reward points : 0
    • Joined: 2014/11/23 11:59:51
    • Location: Germany
    • Status: offline
    Re: PICKIT4 Debugger like a PLC (Industrie) debugger possible ? 2019/08/23 00:56:45 (permalink)
    0
    But this function to implement can not be so difficult.
    Its just a modification of MPLABX.
    I do not want to press every time F5 button to continue with debugging.
     
    Ye I know PICKIT is cheap, but we need a lot of programming tools for our service department for updating firmware in the field. So PICKIT is cheap, and small for traveling.
    #5
    NKurzman
    A Guy on the Net
    • Total Posts : 17720
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: offline
    Re: PICKIT4 Debugger like a PLC (Industrie) debugger possible ? 2019/08/23 06:57:18 (permalink)
    0
    The ability to read live variables is in the debugging hardware of the PIC. It is a hardware feature. Not software like the PLC.
    #6
    NKurzman
    A Guy on the Net
    • Total Posts : 17720
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: offline
    Re: PICKIT4 Debugger like a PLC (Industrie) debugger possible ? 2019/08/23 07:00:35 (permalink)
    0
    You still did not say which chip you are using.

    Here is A chart of features by Chip and debugger tool

    http://ww1.microchip.com/...WToolDebugFeatures.pdf
    #7
    mbrowning
    USNA79
    • Total Posts : 1511
    • Reward points : 0
    • Joined: 2005/03/16 14:32:56
    • Location: Melbourne, FL
    • Status: offline
    Re: PICKIT4 Debugger like a PLC (Industrie) debugger possible ? 2019/08/23 07:12:14 (permalink)
    0
    I guess the idea is for debug to hit a breakpoint, update all the watch variables, and then continue automatically. I agree that it doesn't seem like a terribly difficult feature to add (devil is in the details, however). This would emulate live updating of watches.
     
    The appropriate action if Fausti feels strongly enough about it is to open a support ticket and request this feature.
     
    I suspect Microchip won't add it, but maybe it's something that's been considered. A little push might be all that's needed.
     
    It would be terribly invasive for any real-time processing, but there are probably applications where it might be useful.
     
     

    Go Navy! Beat Army!
    #8
    Fausti
    New Member
    • Total Posts : 14
    • Reward points : 0
    • Joined: 2014/11/23 11:59:51
    • Location: Germany
    • Status: offline
    Re: PICKIT4 Debugger like a PLC (Industrie) debugger possible ? 2019/08/25 22:36:49 (permalink)
    0
    @mbrowning:  Thats is exact what I want.
    For none time critical application to debug this can be a nice feature.
    How can I request a support ticket at MC?
     
    #9
    ric
    Super Member
    • Total Posts : 23593
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: offline
    Re: PICKIT4 Debugger like a PLC (Industrie) debugger possible ? 2019/08/25 23:05:49 (permalink)
    0
    All support tickets are lodged via a single interface.
    Start at www.microchip.com/support
     

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #10
    Jump to:
    © 2019 APG vNext Commercial Version 4.5