binaryDecode with variable number of parameters

Mark Wieder mwieder at ahsoftware.net
Sun Feb 19 23:18:44 EST 2012


Len-

Sunday, February 19, 2012, 8:09:11 PM, you wrote:

> As it turns out, there are only two function codes I have to worry about
> (i.e., ones we actually use): FC 3 - Read multiple registers, and FC 16
> - write multiple registers.  FC3 is easy (on the way in) because it has
> a fixed length.  The RESPONSE however will be variable depending on how
> many registers the Master controller wants to read.  It can be up to 100
> at a time but all of our commands read 80 registers so this could be
> almost hard coded.

Ah! I misinterpreted your original post then. I thought each function
code had a fixed number of registers in the response. Now I see what
you're up against.

-- 
-Mark Wieder
 mwieder at ahsoftware.net





More information about the use-livecode mailing list