Micro800™ 4 Ch Universal Analog Input Module 12
Publication 0100189-04 Rev. B
The following sample program, written in structured text, demonstrates
how to configure the module in CCW.
u800Slot := 1; (* Slot number for module. *)
ConfigArray[1] := 0; (* Ch0 Config LSB *)
ConfigArray[2] := 0; (* Ch0 Config MSB *)
ConfigArray[3] := 0; (* Ch1 Config LSB *)
ConfigArray[4] := 0; (* Ch1 Config MSB *)
ConfigArray[5] := 0; (* Ch2 Config LSB *)
ConfigArray[6] := 0; (* Ch2 Config MSB *)
ConfigArray[7] := 0; (* Ch3 Config LSB *)
ConfigArray[8] := 0; (* Ch3 Config MSB *)
WriteConfig(true,u800Slot,32,8,ConfigArray); (* Write the config. data to the module*)
ReadModStatus(true,u800Slot,16,1,IF4U_S1_ModStatus); (* Read general module status *)
ReadOCStatus(true,u800Slot,80,1,IF4U_S1_OCStatus); (* Read open-circuit status *)
ReadUOStatus(true,u800Slot,81,1,IF4U_S1_UOStatus); (* Read under/overrange status *)
WriteSyncData(true,u800Slot,26,1,SyncDataArray); (* Write sync data command (A5 Hex) to the module *)
ReadModData(true,u800Slot,48,10,Inp_DataTbl); (* Read the input data from the module. *)
x := 9; CHData := 0; (* Preset the for loop exit value and channel data. *)
for i := 1 to x by 2 do (* For Loop. *)
CHData := (any_to_int(Inp_DataTbl[i+1])*256 + any_to_int(Inp_DataTbl[i])); (* Convert SINT data to INT data*)
case i of (* Put the data into their corresponding global variables. *)
1: IF4U_S1_IN_0 := CHData;
3: IF4U_S1_IN_1 := CHData;
5: IF4U_S1_IN_2 := CHData;
7: IF4U_S1_IN_3 := CHData;
9: IF4U_S1_IN_CJC := CHData;
end_case;
CHData := 0;
end_for;
The sample project above can be downloaded from our website at
www.spectrumcontrols.com
Electrical Specifications
4 current, voltage, thermocouple input channels or 2 plus
1 to 2 resistance/RTD channel or 2 to 4 resistance/RTD
channels
0-20mA, 4-20mA, ±50mV, ±100mV, 0-5V, 0-10V, ±10V,
types J, K, T, E thermocouple, 100Ω and 1000Ω PT385
and Pt3916, 3000Ω resistance.
System accuracy at 25ºC (4 and 17 Hz filters)
Type J (-180ºC to 1200ºC) ± 1 ºC maximum
Type J (-210ºC to -180ºC) ± 1.4 ºC maximum
Type K (-200ºC to 1370ºC) ± 1 ºC maximum
Type K (-270ºC to -200ºC) ± 10 ºC maximum
Type T (-190ºC to 400ºC) ± 1.5 ºC maximum
Type T (-270ºC to -190ºC) ± 10 ºC maximum
Type E (-200ºC to 1000ºC) ± 1 ºC maximum
Type E (-270ºC to -200ºC) ± 8 ºC maximum
Type R (300ºC to 1768°C) ± 4 ºC maximum
Type R (0ºC to 300ºC) ± 8 ºC maximum
System accuracy at -20-65ºC (4 and 17 Hz filters)
Type J (-180ºC to 1200ºC) ± 2 ºC maximum
Type J (-210ºC to -180ºC) ± 2.8 ºC maximum
Type K (-200ºC to 1370ºC) ± 2 ºC maximum
Type K (-270ºC to -200ºC) ± 20 ºC maximum
Type T (-190ºC to 400ºC) ± 3 ºC maximum
Type T (-270ºC to -190ºC) ± 20 ºC maximum
Type E (-200ºC to 1000ºC) ± 2 ºC maximum
Type E (-270ºC to -200ºC) ± 16 ºC maximum
Type R (300ºC to 1768°C) ± 6 ºC maximum
Type R (0ºC to 300ºC) ± 12 ºC maximum