Reading data bytes with Standard Macro?

Comprehensive CAN monitor for Windows® and its add-ins: Plotter, CANdb Import, Instruments Panel, and J1939
Post Reply
PaulS
Posts: 4
Joined: Wed 18. Jun 2014, 17:25

Reading data bytes with Standard Macro?

Post by PaulS » Thu 26. Jun 2014, 15:41

Hi,

Can a Standard Macro read and assign data bytes to a variable?

Example:

Read 2 110h 4 Byte0 Byte1 Byte2 Byte3
wait 100
Send 1 10BB0099h 1 Byte1
Stop

Or do I need to use a VBS Macro for this?

Paul

M.Maidhof
Support
Support
Posts: 1751
Joined: Wed 22. Sep 2010, 14:00

Re: Reading data bytes with Standard Macro?

Post by M.Maidhof » Thu 26. Jun 2014, 16:17

Hi,

a standard macro cannot handle variables, you have to use a VBmacro instead.

regards

Michael

PaulS
Posts: 4
Joined: Wed 18. Jun 2014, 17:25

Re: Reading data bytes with Standard Macro?

Post by PaulS » Thu 26. Jun 2014, 17:45

Hi Michael,

Would you be able to get me started with a quick example in VBScript of how to do the following?

Read 2 110h 4 Byte0 Byte1 Byte2 Byte3
wait 100
Send 1 10BB0099h 1 Byte1
Stop

Paul

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

Re: Reading data bytes with Standard Macro?

Post by PEAK-Support » Fri 27. Jun 2014, 08:50

You find a sample in the Sample Macro which is part of the product. Take a look at the SUB functions "NewClientSend()" and "WaitForID100()". If you like to get our sample packe with more free available PE5 sample macros, please send us your PE5 Serial Number to support[at]peak-system.com
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

Post Reply