Hi,
I would like to know if it is possible to do this with PCAN-Explorer 6 :
- If I send this query : 02 A3 00 F0 11 03 00 00 00 00 00 00 (CAN-ID in bold)
- I receive : 0A 23 F0 00 11 03 00 00 00 00 00 00 (data to be read underlined)
But all data are on the same CAN-ID, query looks like this : 02 A3 00 F0 21 08 00 00 00 00 00 00 (what is underlined is what changes according to the data to be read)
And you'll receive : 0A 23 F0 00 21 08 00 00 00 00 00 00 (data to be read underlined)
So can I send one query, read values, send another query, read values etc etc cyclically ?
Something like this :
1. send (02 A3 00 F0 11 03 00 00 00 00 00 00)
2. read (0A 23 F0 00 11 03 00 00 00 00 00 00)
3. send (02 A3 00 F0 11 04 00 00 00 00 00 00)
4. read (0A 23 F0 00 11 04 00 00 00 00 00 00)
5. ...
And the most important is to display values on instrument panel (i've got the add-on)
Send messages based on received messages
-
- Sales & Support
- Posts: 1083
- Joined: Fri 20. Sep 2019, 13:31
Re: Query commands
Hello,
Seems like you want to use a specifc protocol here.
If this is the extend of your required functionality, you can use Standard-Macros to do so.
Please see PCAN-Explorer 6's Help regarding this: "Automating Tasks with PCAN-Explorer"
Her an simple example of how a "Wait and Response" Makro looks like:
Even though this is to an extend possible in PCAN-Explorer 6, i would recommend to use PCANBasic API and
developing your own application with it. Projects such as yours will become rather big and next to impossible to support,
if anything breaks, we cannot really help you.
The VBSMacro component has no debug feature that would allow to analyze the code properly, I'd stay clear of solutions like
that. you can still use PCAN-Explorer 6 to use as an analytics tool, but implementing your whole application incl. a protocol is
not a good idea.
Best Regards
Marvin
Seems like you want to use a specifc protocol here.
If this is the extend of your required functionality, you can use Standard-Macros to do so.
Please see PCAN-Explorer 6's Help regarding this: "Automating Tasks with PCAN-Explorer"
Her an simple example of how a "Wait and Response" Makro looks like:
Code: Select all
/ PCAN-Explorer Macro File
// First edited: 05.04.2024 12:30:22
FormatVersion=6.0
//Initial message
Send 1 521h 1 BBh
Call Sub
Sub: WaitId 2 0 521h
Wait 2000
Send 2 522h 1 AAh
WaitId 1 1 522h
Wait 2000
Send 1 521h 1 BBh
Repeat
developing your own application with it. Projects such as yours will become rather big and next to impossible to support,
if anything breaks, we cannot really help you.
The VBSMacro component has no debug feature that would allow to analyze the code properly, I'd stay clear of solutions like
that. you can still use PCAN-Explorer 6 to use as an analytics tool, but implementing your whole application incl. a protocol is
not a good idea.
Best Regards
Marvin
---
Marvin Heidemann
PEAK-Support Team
Marvin Heidemann
PEAK-Support Team
Re: Query commands
Ok, I'll try it on PCAN Explorer 6.
And if I've got too much difficulty, i'll try to make my own app.
Thank you for your answer
And if I've got too much difficulty, i'll try to make my own app.
Thank you for your answer
-
- Sales & Support
- Posts: 1083
- Joined: Fri 20. Sep 2019, 13:31
Re: Query commands
Hello,
Okay!
If you get stuck, don't hesitate to contact us.
Best Regards
Marvin
-closed-
Okay!
If you get stuck, don't hesitate to contact us.
Best Regards
Marvin
-closed-
---
Marvin Heidemann
PEAK-Support Team
Marvin Heidemann
PEAK-Support Team