![Milltronics PL-533 Instruction Manual Download Page 9](http://html1.mh-extra.com/html/milltronics/pl-533/pl-533_instruction-manual_1797002009.webp)
The number which corresponds to xx:yy, either for reading or setting a parameter, is
determined by the following formula:
– for storing to the Milltronics device:
value = (xx + 128) x 256 + (yy + 128)
– for reading from the Milltronics device:
xx = (value / 256) - 128
yy = (value % 256) - 128
where % is the modulus operator. This can be computed by finding
the remainder of an integer divide-by-256.
It may simplify programming to notice:
xx = (most significant byte of value) - 128
yy = (least significant byte of value) - 128
Text messages
If an Milltronics device parameter returns a text message, that message is converted to
a corresponding number shown in the table below:
22222
invalid value
30000
off
30001
on
30002
≡ ≡ ≡ ≡
30003
[ - - ]
30004
err
30005
err1
30006
open
30007
shrt
30008
pass
30009
fail
30010
hold
30011
lo
30012
hi
30013
de
30014
en
-32768
value is less than -10,000
32767
value is greater than 10,000
9
PL-533
Milltronics SmartLink 3/31/97 1:16 PM Page 9