FC 222 - Analog In / Channel

The exception reporting analog in/channel function code provides addressing, startup, run-time, override, and failure mode specifications for an individual or redundant pair of analog input channels on a Harmony I/O block or an S800 I/O module. The analog in/channel function code must reside in the same segment as the I/O device definition function code 221 or foreign device definition function code 228 to which it is mapped. This function is required for all configured analog input block channels.

 

NOTES:

  1. This function code is used to support Harmony I/O blocks and S800 I/O modules only. Refer to the IOR-800 Gateway instruction for specific differences between Harmony I/O and S800 I/O.

  2. Function code 222 tunable specifications are not adaptable.

  3. The block address for the cold junction reference is specified in the I/O device function code 221. Filtered thermocouples must utilize the on-board reference.

 

 

 

 

 

Outputs:

Blk

Type

Description

N

R4

Analog input value (in specified EUs) with quality.

 

 

 

Specifications:

Spec

Tune

Default

Type

Range

Description

S1

N

Null

String

0 - 32

32-character channel label

S2

N

0

I

Note 2

Input type

S3

N

0.000

R

Full

Engineering units low value

S4

N

100.000

R

Full

Engineering units high value

S5

N

0

I

0 - 255

Engineering units identifier

S6

Y

100.000

R

Full

Engineering units high alarm

S7

Y

0.000

R

Full

Engineering units low alarm

S8

Y

0.000

R

Full

Engineering units significant change

S9

N

2

I

Note 1

Block address of input shaping algorithm

S10

N

0

B

0 or 1

Engineering unit conversion/shaping algorithm precedence

S11

N

0.000

R

Full

Lead wire resistance

S12

N

0

I

0 - 16

A/D conversion resolution

S13

N

0.000

R

Full

Custom range low limit (in volts)

S14

N

0.000

R

Full

Custom range high limit (in volts)

S15

N

0

B

0 or 1

Normal input/undefined

S16

Y

0.000

R

Full

Override value

S17

Y3

0

B

0 or 1

Override enable

S18

N

2

I

Note 1

Block address of simulation value

S19

Y3

0

I

0 or 1

Simulation enable

S20

Y3

0

B

0 or 1

Status error inhibit

S21

Y

9.2E18

R

Full

Redundant input deviation limit

S22

N

0.000

R

Full

Length of termination unit cable

S23

N

Null

String

0 - 32

Foreign device configuration parameters

S24

N

0

I

Full

Reserved for future use

S25

N

2

I

Note 1

Block address of the next element of the foreign device

S26

N

0

I

Full

Spare

S27

N

0.000

R

Full

Spare

S28

Y

0.000

R

Full

Spare

 

NOTES:

  1. Maximum values are:9,998 for the BRC-100, BRC-200, BRC-300, and IMMFP11/12 and 31,998 for the BRC-400 and HAC

  2. Refer to the S2 explanation.

  3. The specification value active state is permitted to operate only when S26 of the device definition function code 221 or S11 of the Gateway function code 227 is enabled.

 

 

 

222.1   Explanation

 

222.1.1  Specifications

 

S1

(Channel label) Optional channel identifier. It is not required to be configured and can be null. The channel label can be up to 32 characters long.

 

S2

(Input Type) Specified as a four digit number of the following format:

 

FCSS

 

where:

 

F

Filtered input: 1 = yes, 0 = no. A filtered input is computed as seven-eighths of the previous filtered value plus one-eighth of the current input value. A filtered input normally is used for cold junction reference compensation of thermocouple inputs.

 

A filtered thermocouple automatically uses the value of the I/O device internal cold junction reference for its own compensation.  Thus, the internal cold junction reference must be configured as a function code 222 block with an input type (S2) of 1900. The engineering units (S5) of a filtered thermocouple must be configured for degrees Celsius for a Harmony I/O block, but may be configured for either degrees Fahrenheit or degrees Celsius for S800 I/O modules.

 

Nonfiltered thermocouples automatically use the value of the I/O device’s external cold junction reference (S29 of function code 221 or the fixed junction temperature (FJT) parameter of S2 of function code 228) for thermocouple compensation. When used with

function code 221, the internal cold junction reference normally is configured as the external cold junction reference.

 

C

Input class as listed in following paragraphs.

 

SS

Subclass as described in following paragraphs.

 

 

NOTE: Refer to the Harmony Input/Output System, I/O and Auxiliary Blocks instruction for information regarding Harmony I/O block support of different analog input classes. Refer to the S800 I/O Modules instruction for information regarding S800 I/O module support of different analog input types.

 

 

High Level (Class 0):

F000

=

4 mA to 20 mA

 

F001

=

+1 V to +5 V

 

F002

=

-10 V to +10 V

 

F003

=

0 V to +10 V

 

F004

=

0 V to +5 V

 

F005

=

0 V to +1 V

 

F006

=

0 mA to 20 mA

 

F007

=

-20 mA to +20 mA

 

F008

=

-5 V to +5 V

 

F009

=

2 V to 10 V

 

 

 

 

Thermocouple (Class 1):

F101

=

type S thermocouple

 

F102

=

type R thermocouple

 

F103

=

type E thermocouple

 

F104

=

type J thermocouple

 

F105

=

type K thermocouple

 

F106

=

type T thermocouple

 

F107

=

Chinese type E thermocouple

 

F108

=

Chinese type S thermocouple

 

F109

=

type L thermocouple

 

F110

=

type U thermocouple

 

F111

=

type N (14 AWG) thermocouple

 

F112

=

type N (28 AWG) thermocouple

 

F113

=

type B thermocouple

 

F114

=

type C thermocouple

 

F115

=

type D thermocouple

 

 

 

 

RTD (Class 2):

F200

=

US Lab standard 100 ohm platinum RTD (TCR=0.003926)

 

F201

=

US Ind standard 100 ohm platinum RTD (TCR=0.003911)

 

F202

=

European standard 100 ohm platinum (80 °C) RTD (TCR=0.003850)

 

F203

=

120 ohm chemically pure nickel RTD (TCR=0.00672)

 

F204

=

10 ohm copper RTD (TCR=0.00427)

 

F205

=

Chinese 53 ohm copper RTD (r100/r0=1.425)

 

F206

=

European Std. 100 ohm platinum (250 °C) RTD (TCR=0.003850)

 

F207

=

European Std. 100 ohm platinum (850 °C) RTD (TCR=0.003850)

 

F208

=

100 ohm nickel RTD (TCR=0.00618)

 

F209

=

400 ohm resistor

 

F210

=

Japanese Std. 100 ohm platinum (650 °C) JIS C 1604:1981

 

F211

=

European/Japanese Std. 100 ohm platinum (80 °C) IEC751/ITS-90/JIS

C 1604:1997 (TCR=0.00385)

 

F212

=

European/Japanese Std. 100 ohm platinum (250 °C) IEC751/ITS-90/JIS

C 1604:1997 (TCR=0.00385)

 

F213

=

European/Japanese Std. 100 ohm platinum (850 °C) IEC751/ITS-90/JIS

C 1604:1997 (TCR=0.00385)

 

 

 

 

Low level (Class 3):

F300

=

-100 mV to +100 mV

 

F301

=

0 mV to +100 mV

 

F302

=

-30 mV to +75 mV

 

 

 

 

User defined (Class 4):

F400

=

input voltage range defined by specifications S13 and S14.

 

 

 

 

Smart field device/foreign device (Class 5):

0500

=

smart I/O or foreign device channel

 

 

 

 

Internal cold junction reference (Class 9):

1900

=

internal cold junction reference

 

 

 

 

 

 

 

 

S3

(Engineering units low value) Defines the low limit of the input’s range engineering units. This specification is ignored for input classes 1, 2, 5, and 9.

 

S4

(Engineering units high value) Defines the high limit of the input’s range engineering units. This specification is ignored for input classes 1, 2, 5, and 9.

 

S5

(Engineering unit identifier) Identifies the engineering units associated with the input value and specifies the temperature conversion to be applied to thermocouple and RTD inputs.

 

NOTE: Thermocouples and RTDs (input classes 1 and 2) must specify either degrees Fahrenheit (3) or degrees Celsius (4). Filtered thermocouples and internal cold junction references (input classes 1 and 9) must specify degrees Celsius (4) for Harmony I/O subsystems.

 

 

S6

(Engineering units high alarm) An alarm will be generated when the input equals or exceeds this high limit.

 

S7

(Engineering units low alarm) An alarm will be generated when the input equals or is less than this low limit.

 

S8

(Engineering units significant change) Change in input allowed before the changed value is reported to a console or

open access system.   A change in input value by the amount specified in S8 will cause an exception report to be generated as long as the minimum exception reporting time has been reached (S7 of function code 82).

 

S9

(Block address of input shaping algorithm) Allows additional characterization of the real input value. The available shaping algorithms are function code 1 (function generator), function code 7 (square root), and function code 167 (polynomial). The shaping algorithm tunable specifications cannot be adapted when used by function code 222. S9 must be set to the default value if function code 222 is configured as an element of a foreign device definition function code 228.

 

S10

(Engineering unit conversion/shaping algorithm precedence) Specifies which will be performed first: shaping on the raw data or conversion to engineering unit. The default is 0, which specifies that shaping is done first. This specification is not applicable if S9 is set to its default value. If no shaping algorithm exists, shaping is ignored.

 

0 = Perform shaping to raw data before engineering unit conversion is done.

1 = Perform engineering unit conversion to raw data before shaping is applied.

 

For example, a FC222 block is configured for a 4 to 20mA input range (S2=0), an engineering units range of zero to 100% (S3=0, S4=100), and the square root (FC7) shaping algorithm, and has a raw input value of 16 mA. Selecting shape before EU conversion (S10=0) produces a block output value of 0%:

 

 

Selecting EU conversion before shaping (S10=1) produces a block output value of 8.66%:

 

This specification is I/O subsystem dependent. S800 RTD and thermocouple modules must use a setting of 1 if a shaping algorithm is specified in S9.

 

S11

(Lead wire resistance) Resistance of the field input lead wire from the input to the termination device in ohms. Lead wire resistance can have an effect on the accuracy of the analog input. The resistance must be measured and entered into this specification to obtain the specified accuracy for input types that are affected. This specification is ignored for input classes 0, 4, 5, and 9 and for S800 modules.

 

S12

(A/D conversion resolution) Specifies the relative resolution of the analog-to-digital conversion. The higher the value, the higher the resolution. A higher value may increase A/D conversion time or slow the responsiveness of the input. This specification is block type dependent:

 

AIN-200, AIN-220, AIN-300 blocks: Specifies the number of input samples to which a moving average is applied in order to generate the input value.

AIN-120, CIO-100 blocks: Has no effect.

S800 modules: Has no effect.

 

S13

(User defined range low limit (volts)) Specifies the low limit of the input range in volts of the user defined input class (input class 4). This specification is ignored for all other input classes.

 

S14

(User defined range high limit (in volts)) Specifies the high limit of the input range in volts of the user defined input class (input class 4). This specification is ignored for all other input classes.

 

S15

(Normal input/undefined) A value of 0 selects normal input from standard I/O. A value of 1 puts the channel into an undefined state which will not affect the channel status. Specifications S17 and S19 take precedence over S15 when S15 = 0, but not when S15 = 1.

0 = normal

1 = undefined

 

S16

(Override value) The channel input value is overridden with this value if override enable (S17) is set to 1.

 

S17

(Override enable) A value of 0 disables override for this channel. A value of 1 enables override in this channel. Override if enabled will take precedence over normal input and simulation. Specification S26 of the I/O device definition function code 221 must reference a boolean output that is set to a 1 to permit this operation; otherwise, it is ignored.

0 = disabled

1 = enabled

 

S18

(Block address of simulation value) The channel input value is simulated with this block input when simulation is enabled (S19 = 1).

 

S19

(Simulation enable) A value of 0 disables simulation for this channel. A value of 1 enables simulation for this channel and receives its input from S18. Simulation has precedence over S15 normal input, but not S17 override. Specification S26 of the I/O device definition function code 221 must reference a boolean output that is set to a 1 to permit this operation; otherwise, it is ignored.

0 = disabled

1 = enabled

 

S20

(Status error inhibit) Inhibits this channel’s I/O error contribution to BRC-100 controller status. Specification S26 of the I/O device definition function code 221 or specification S5 of the foreign device function code 228 must reference a Boolean output with a value of 1 to permit this operation. Otherwise, it is ignored.

0 = no

1 = yes

 

S21

(Redundant input deviation limit) In NORMAL mode (S15=0, S17=0, S19=0), the redundant input deviation limit specifies the maximum deviation permitted between redundant analog input channels. This only applies when both inputs are of good quality. When the redundant inputs are outside the deviation limit, they will both be considered in error (function block output quality set to BAD, SUSP flag set in the exception report and the LIO error bit set in the BRC-100 controller status).  In OVERRIDE mode (S15=0, S17=1, S19=X), the redundant input deviation limit assumes the meaning of override value deviation limit and thus specifies the maximum deviation permitted between the primary analog input channel and the override value (S16). If the actual input value and the override value are outside the limit, the state of the input channel is considered suspect (SUSP set in the exception report but no LIO error set in the BRC-100 controller status) since a bump in the block output value will occur upon exiting the OVERRIDE mode.

 

In SIMULATION mode (S15=0, S17=0, S19=1), the redundant input deviation limit assumes the meaning of simulated value deviation limit and thus specifies the maximum deviation permitted between the primary analog input channel and the simulated value (<S18>). If the actual input value and the simulated value are outside the limit, the state of the input channel is considered suspect (SUSP set in the exception report but no LIO error set in the BRC-100 controller status) since a bump in the function block output value will occur upon exiting the SIMULATION mode.

 

S22

Length of Termination Unit Cable (feet) Specifies the length in feet of the termination unit cable from the marshaling cabinet to the I/O device terminals. This is used to compute the effect of the termination unit cable on thermocouple, RTD, and internal cold junction reference inputs (input classes 1, 2, and 9). This specification is ignored for all other input classes and for S800 modules.

 

S23

(Foreign device configuration parameters) A string data type containing configuration information specific to the analog input channel of a foreign device. For example: FILTER=1500 specifies a filter period of 1.5 seconds for all modules except the AI830, AI835, and the AI843. For the AI830, AI835, and the AI843 modules, FILTER=1500 specifies a filter period of 15

seconds.

 

S24

Reserved for future use.

 

S25

(Block address of next element of the foreign device) This specification is the link to the next element of the foreign device definition function code 228. The default value indicates that this block is the last element. S25 must be set to the default value if function code 222 is configured as a channel of an I/O device definition function code 221.

 

S26 through S28

Spare.

 

 

 

222.1.2  Outputs

 

The analog in/channel function code has one block output.

 

N

Input value with quality.

 

 

 

 

222.2   Applications

 

 

 

 

Figure 222-1 illustrates an example of internal cold junction reference compensation for the thermocouple inputs of an AIN-220 Harmony I/O block.

This example also illustrates the use of the shaping algorithm. Only one square-root (function code 7) block needs to be configured to shape both block number 2002 and 2003. In this  example, the 4 to 20 mA inputs represent a pressure of zero to 200 inches of water (IN H2O). The shaping algorithm is used to convert the pressure from inches of water to the rate of flow in 0 to 50,000 pounds per hour. Tables 222-1 through 222-7 describe the specification settings for the blocks used in Figure 222-1.

 

 

NOTE: Alternate and more convenient settings for function code 222 at block address 2002 and function code 7 at block address 2100 can be used and give the same results:

Function code 222 at block address 2002, specification S3 = 0.

Function code 222 at block address 2002, specification S4 = 1.0

Function code 7 at block address 2100, specification S2 = 50,000.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Figure 222-2 illustrates an example of external cold junction reference compensation for the thermocouple inputs of the AIN-200 Harmony I/O block. This example employs a remote terminal block and termination devices: a thermocouple (block 2116) is used as an external cold junction reference to compensate for the temperature of the remote terminal block, and the termination device’s internal cold junction reference (block 2117) is used to compensate the thermocouple (block 2116) for the temperature of the termination device. Tables 222-8 through 222-13 describe the specification settings for the blocks used in Figure 222-2.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Figure 222-3 illustrates an example of a user-defined input that requires shaping before conversion to engineering units:

The user-defined input has an input range of -1 V to +3.0 V, which represents 0 PSIA to 200 PSIA; however, the transducer is nonlinear and requires a function generator block (function code 1) to correct the input value before conversion to engineering units.

 

Tables 222-14 through 222-16 describe the specification settings for the blocks used in Figure 222-3.