beautypg.com

Adding the if4u to ccw, Electrical specifications – Spectrum Controls 2080sc-IF4u User Manual

Page 12

background image

Micro800™ 4 Ch Universal Analog Input Module

12 

Publication 0100189-02 Rev. A

Adding the IF4U to CCW

The 2080sc-IF4U is configured for CCW (Connected Components
Workbench) using the PLUGIN_READ and PLUGIN_WRITE instructions
for generic plug-in modules.

The configuration, input data, and status structures discussed in the
sections above, are stored at different memory locations in the module.
The following table lists the memory location offset for each parameter
which is used when configuring the PLUGIN_READ, WRITE, and INFO
instructions.

Table 7 (Parameter Offset)

Parameter

Offset

(Dec) Comments

MOD_ID_LO 0

Module

ID

MOD_ID_HI 1
VENDOR_ID_LO 2

Vendor

ID

VENDOR_ID_HI 3
PRODUCT_TYPE_LO 4

PRODUCT_TYPE_HI 5

PRODUCT_CODE_LO 6

PRODUCT_CODE_HI 7

MOD_REV_LO

8

Minor revision, 1-255

MOD_REV_HI

9

Major revision, 1-127

MOD_STATUS

16

Module status register

(see Table 6)

SYNC_DATA_LATCH

26

Writing 0xA5 to this register triggers input data latch

CONFIG_IN0_LO 32

Channel

Configuration

Registers

CONFIG_IN0_HI 33
CONFIG_IN1_LO 34
CONFIG_IN1_HI 35
CONFIG_IN2_LO 36
CONFIG_IN2_HI 37
CONFIG_IN3_LO 38
CONFIG_IN3_HI 39
INPUT_DATA_0_LO 48

Input

Data

(Format is 16-bit signed integer)

INPUT_DATA_0_HI 49
INPUT_DATA_1_LO 50
INPUT_DATA_1_HI 51
INPUT_DATA_2_LO 52
INPUT_DATA_2_HI 53
INPUT_DATA_3_LO 54
INPUT_DATA_3_HI 55
CJC_DATA_LO 56

CJC_DATA_HI 57
OC_STATUS 80

Open-circuit

status

U_O_RANGE_STATUS

81

Under/over range status

Micro800™ 4 Ch Universal Analog Input Module

13 

Publication 0100189-02 Rev. A

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

http://www.spectrumcontrols.com/downloads.htm

Electrical Specifications

Input Specifications

Inputs per module

4 current, voltage, thermocouple input channels or 2 plus
1 to 2 resistance/RTD channel or 2 to 4 resistance/RTD
channels

Input ranges

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.

Thermocouple Accuracy

Linearization per ITS-90
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

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

CJC accuracy

± 3 ºC maximum

CJC Sensor resolution

± 0.4 ºC maximum

CJC Sensor accuracy

± 1.5 ºC maximum