10Volt/mA Input Module
Cdios 6160

Command / Reply messages for CALIBRATION

 


Cdios 6152 Controller Commands 


Command code 2Fh: Read / write calibration related data

This command reads/writes A/D converter and calibration values.
 

Command

Module ID

3

4

5

6

7

8

2Fh

0 - 15

Selector

Data or zero
(lsb)         (msb)
0

0

0


Parameter

Value

 Description

Data in Command Data in Reply

Selector

00h
01h
02h
03h
04h
05h
Read Offset calibration value of input #1
Write Offset calibration value of input #1
Read Volt gain calibration value of  input #1
Write Volt gain calibration value of  input #1
Read mA gain calibration value of  input #1
Write mA gain calibration value of  input #1

-
X
-
X
-
X

X
-
X
-
X
-

10h
11h
12h
13h
14h
15h
Read Offset calibration value of input #2
Write Offset calibration value of input #2
Read Volt gain calibration value of  input #2
Write Volt gain calibration value of  input #2
Read mA gain calibration value of  input #2
Write mA gain calibration value of  input #2

-
X
-
X
-
X

X
-
X
-
X
-

20h
21h
22h
23h
24h
25h
Read Offset calibration value of input #3
Write Offset calibration value of input #3
Read Volt gain calibration value of  input #3
Write Volt gain calibration value of  input #3
Read mA gain calibration value of  input #3
Write mA gain calibration value of  input #3

-
X
-
X
-
X

X
-
X
-
X
-

30h
31h
32h
33h
34h
35h
Read Offset calibration value of input #4
Write Offset calibration value of input #4
Read Volt gain calibration value of  input #4
Write Volt gain calibration value of  input #4
Read mA gain calibration value of  input #4
Write mA gain calibration value of  input #4

-
X
-
X
-
X

X
-
X
-
X
-

FBh Read self-calibrated A/D converter Offset - X
FCh Read self-calibrated A/D converter Gain - X

FDh

Stop calibration measurements.
After this, the 6160  has to be re-initialized because sample rate, number of channels and filter settings may have changed.

-

-

FEh Setup for calibration measurements:
  • Basic sample rate set to 60Hz.
  • Measured channels set to 4.
  • Offsets set to zero.
  • Gains set to one.
  • Filters set to maximum.

-

-

FFh Same as FEh, but Basic sample rate = 50Hz - -

Normal reply is:

 

Reply

Module ID

3

4

5

6

7

8

2Fh

0 - 15

Selector (copy of command)

Data or zero
(lsb)        (msb)
0

0

0


 Possible error message:

 

Error

Module ID

3

4

5

6

7

8

AFh

0 - 15

0

0

Error Status

0

0

0


Parameter

Bit

 Description

Error status

0

1 = Selector parameter out of range

1 1 = Calibration value write sequence error (data ignored)
2 1 = FLASH EPROM programming failed
 


Calibration protocol

  1. If not all 12 calibration factors are to be adjusted; first read the calibration values that are to be left unchanged and store them in the calibration table (because ALL values have to be written....).
  2. Initialize the A/D converter with command 2Fh, Selector code FEh or FFh, to measure 4 channels at a 50 or 60Hz converter sample rate, with maximum filter setting.
  3. Connect Gnd and Vin of every input together and connect the whole bunch to Gnd of the supply connector.
  4. For every input to be calibrated:
  5. For every Volt input to be calibrated:
  6. For every mA input to be calibrated:
  7. Write all 12 calibration values from the table to the 6160:
  8. Send the 'Reset 6160' Command (2Fh, Selector code FDh) to resume normal operation

Home

Last Modified: 26 November 2002