Michell Instruments QMA401 User Manual page 83

Trace moisture analyzer
Hide thumbs Also See for QMA401:
Table of Contents

Advertisement

QMA401 User's Manual
Register Configuration A
15
14
13
12
A1 — Unsigned Short. Range = 0 to 65535
A2 — Unsigned Short/10. Range = 0 to 6553.5
A3 — Unsigned Short/100. Range = 0 to 655.35
A4 — Unsigned Short/1000. Range = 0 to 65.535
A5 — Unsigned Short/1000. Range = 0 to 65.535
Conversion:
Float*x = unsigned integer
Unsigned integer/x = fl oat
Or cast:
Float value to read = ((fl oat)(value))/x;
Unsigned short value to write = (unsigned short)(value*x)
Register Configuration B
15
14
13
12
B1 — Signed Short. Range -32768 to +32767
B2 — Signed Short/10. Range -3276.8 to +3276.7
B3 — Signed Short/100. Range -327.68 to +327.67
B4 — Signed Short/1000. Range -32.768 to +32.767
B5 — Signed Short/10000. Range -3.2768 to +3.2767
Most languages will cast from one type to another
Values to write into register manually:
If value is a negative number:
If value is 0 or a positive number:
E.g. for type B3:
(-5.39*100)+65536 = 64997
(2.01*100) = 201
Or cast:
(Unsigned short)(value*x)
Reading Values from register manually:
If value in register is greater than 32767:
If vaue in register is less than or equal to 32767:
E.g. for type B3:
(64997-65536)/100 = -5.39
201/100 = 2.01
Or cast:
((fl oat)((signed short)value))/x;
Michell Instruments
11
10
9
8
11
10
9
8
(value*x)+65536
value*x
7
6
5
4
7
6
5
4
(value-65536)/x
value/x
APPENDIX C
3
2
1
0
3
2
1
0
73

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the QMA401 and is the answer not in the manual?

Table of Contents