help request for CAN process automation in PCAN Explorer 6

Professional Windows® software to communicate with CAN and CAN FD busses and its add-ins: Plotter, CANdb Import, Instruments Panel, and J1939
Post Reply
RiccardoTa
Posts: 4
Joined: Mon 24. Jun 2024, 15:01

help request for CAN process automation in PCAN Explorer 6

Post by RiccardoTa » Mon 24. Jun 2024, 17:27

Hello everyone, this is my first post in this forum, I tried to search if there is already some explanation for my problem but there is not, so here is my request:

I have to test four battery-charger that communicate via PCAN-usb using four different PCAN-usb and PCAN Explorer 6.

I've already tested one by one by simply sending messages via receive/transmit and they works. (sending and receiving)
Now, for the next step i have to set up a test that works as following:

1- Send a message with a "X" specific set of bytes every [z]ms at every charger (and read what the charger returns)
2- Send a message with a "Y" specific set of bytes every [z]ms at every charger (and read what the charger returns)

Basically, it would be to send alternately for X cycles, two different frames (1 and 2) to all 4 chargers in parallel.

I was thinking if there was a possibility to automate the process by writing a macro,
and if so I would be glad to receive a guideline (or a document/link where it is explained) because I read the documentation in the application but I couldn't find the documentation to write the code.

Would be good even a similar project to take inspiration from.

I remain available for clarification.
i hope i explained myself well, thank you.

M.Heidemann
Sales & Support
Sales & Support
Posts: 1083
Joined: Fri 20. Sep 2019, 13:31

Re: help request for CAN process automation in PCAN Explorer 6

Post by M.Heidemann » Tue 25. Jun 2024, 08:56

Hello,

You could use a standard-macro for this, they are quite simple in terms of syntax,
your example could look like this:

Code: Select all

// PCAN-Explorer Macro File
// First edited: 6/25/2024 8:48:00 AM
FormatVersion=6.0

Send 1 100h 1 AAh

Wait 20

Send 1 100h 1 ABh

Repeat
More Information about automation in PCAN-Explorer 6 can be found in the PCAN-Explorer 6 Help (Hotkey F1), check the chapter
"Automating tasks with PCAN-Explorer":
Automation.png
Automation.png (76.59 KiB) Viewed 3034 times
This chapter contains all Automation related info, from standard Macros to using the Callback-Libraries,
you will also find many examples too.

If you get stuck, feel free to open a up a new topic, we will figure it out together.

Best Regards

Marvin
---
Marvin Heidemann
PEAK-Support Team

dmeir
Posts: 13
Joined: Thu 29. Aug 2024, 10:58

Re: help request for CAN process automation in PCAN Explorer 6

Post by dmeir » Fri 30. Aug 2024, 13:44

M.Heidemann wrote:
Tue 25. Jun 2024, 08:56
[...]
This chapter contains all Automation related info, from standard Macros to using the Callback-Libraries,
you will also find many examples too.
[...]
A little note here, since I'm currently researching the same topic.
Standard Macros aren't listed inside the "Automating Tasks in PCAN-Explorer" category but instead inside the "Reference" topic.

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: help request for CAN process automation in PCAN Explorer 6

Post by PEAK-Support » Fri 30. Aug 2024, 13:55

You are absolutely right - it is part of the Reference - Standard Macros
STD_Macros.jpg
STD_Macros.jpg (181.51 KiB) Viewed 2850 times
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

Post Reply