Standard Macro with counter
Posted: Thu 10. Oct 2019, 09:12
Hi Team,
I'm quite new to using and writing macro, so I would appreciate a little help.
I'm using PCAN Exlplorer 6 and trying to write a macro using Standard Macro with Format version=6.
The thing I want to do is to send a extended frame with a counter that loops in the first byte.
Sofar I have writen this code:
But the counter only counts up once, and never restarts when first byte reaches FF.
Could you please tell me what I'm doing wrong, and describe a solution for this?
Or is it possible at all to use the standard macro to solve this?
Thanks
Best regards
Ulf Müller
I'm quite new to using and writing macro, so I would appreciate a little help.
I'm using PCAN Exlplorer 6 and trying to write a macro using Standard Macro with Format version=6.
The thing I want to do is to send a extended frame with a counter that loops in the first byte.
Sofar I have writen this code:
Code: Select all
// This is a PCAN-Explorer Standard Macro sample
FormatVersion=6.0
Start: Send 1 0CFC2530h 8 00h 00h 03h 03h 00h 00h 00h DEh
Loop: IncSignal TJS_Heartbeat_TJSGW
ClearQueue
WaitData 50 1 0CFC2530h 8 FFh * * * * * * *
If True
Goto Start
If False
Goto Loop
Could you please tell me what I'm doing wrong, and describe a solution for this?
Or is it possible at all to use the standard macro to solve this?
Thanks
Best regards
Ulf Müller