Page 1 of 1

Reading data bytes with Standard Macro?

Posted: Thu 26. Jun 2014, 15:41
by PaulS
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

Re: Reading data bytes with Standard Macro?

Posted: Thu 26. Jun 2014, 16:17
by M.Maidhof
Hi,

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

regards

Michael

Re: Reading data bytes with Standard Macro?

Posted: Thu 26. Jun 2014, 17:45
by PaulS
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

Re: Reading data bytes with Standard Macro?

Posted: Fri 27. Jun 2014, 08:50
by PEAK-Support
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