551 426 02

 

Analogue Input channel (ch 2 - 3) 

(PD 643 – Thermocouple/0-100 mV)

 

Registers in Analogue Input channel.

RegNo

Identifier

Memory type

Read Out

Type

0

AnalogIn

RAM Read Write

Decimal

Real

1

 

 

 

 

2

 

 

 

 

3

 

 

 

 

4

 

 

 

 

5

 

 

 

 

6

 

 

 

 

7

OffsetTemp

RAM Init EEPROM

-------

Real

8

Levels

RAM Init EEPROM

-------

Record

9

ChConfig

EEPROM RPW

-------

Record

10

FilterConstant

EEPROM RPW

Decimal

Real

11

Span

EEPROM RPW

Decimal

Real

12

Zeropoint

EEPROM RPW

Decimal

Real

13

 

 

 

 

14

Guid

PROM Read only

-------

String

15

ChError

RAM Read Write

Binary

Record

 

 

RegNo 0: AnalogIn

 

AnalogIn:

Real;

 

This variable holds the measurement result.

Voltage:

AnalogIn holds the measurement result of the voltage input, as a scaled value in SI units, according to the contents of Span and Zeropoint

Thermocouple:

AnalogIn holds the measurement result of the temperature in ºC, scaled according to the contents of OffsetTemp and ZeroPoint.

 

 

Voltage:

If the value should attempt to exceed 110% of fullscale, the contents of this register will be held at 110% of fullscale and the device will generate an error code. A similar situation occurs if the input signal attempts to drop below – 5%.

Thermocouple:

If the input signal exceeds the maximum value of the selected thermocouple type (see ChConfig), the contents of this register will be held at the maximum value and the device will generate an error code. A similar situation occurs if the input signal attempts to drop below the minimum value.

 

Act error in the P-NET response is set on access to AnalogIn if one of the following bits in ChError.Act is set: 0, 1, 4, 5, 7, 8, 9, 10, 11, 14, 15, 16, 17, 18, 19 or 20.

 

 

RegNo 7: OffsetTemp

OffsetTemp:

Real;

(* Factory setting = 20.0 *)

 

OffsetTemp is used to dynamically auto compensate for the temperature at the sensor cable / installation cable junction.

OffsetTemp only has an effect when the ChConfig.SignalType is set for a thermocouple input signal.

If ChConfig.EnableFunctions[1] is set, this register is automatically updated from AnalogIn on channel 1 (Pt-100 / Pt-1000 input).

 

RegNo 8: Levels

 

Record   

 

(* Factory setting *)

 

Level1:

Real;

(* 0 *)

 

Level2:

Real;

(* 0 *)

 

DeltaLevel:

Real;

(* 0 *)

End;

 

 

 

Levels can be used as a kind of limit switch, and a notification can be connected. See also ChConfig.EnableNotification.

 

 

RegNo 9: ChConfig

The ChConfig variable is a record of the following type:

 

Record

 

(* Factory setting *)

 

EnableFunctions:

Bit8;

(* 0 *)

 

SignalType:

Byte;

(* 0 *)

 

EnableNotification:

Bit8;    

(* 0 *)

 

User:

Byte;

(* 0 *)

End;

 

 

 

 

EnableFunctions:

7

 

 

 

 

 

 

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0: Simulation

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1: Update OffsetTemp automatically

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2: Act_data_error_on_AnalogIn_higher_than_Level1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

3: Act_data_error_on_AnalogIn_lower_than_Level1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

4: Act_data_error_on_AnalogIn_higher_than_Level2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

5: Act_data_error_on_AnalogIn_lower_than_Level2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

6:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

7:

 

 

 

 

 

 

 

 

 

 

Bit 0:           Simulation.

When Simulation is set, no measurement will be calculated, and it is possible for the user to insert any value in AnalogIn.

 

Bit 1:           When this bit is set, the module will automatically update the OffsetTemp register from the AnalogIn register on channel 1 (Pt-100 / Pt-1000).

 

The following enable bits enable “Act data error” in the P-NET response.

 

Bit 2:           Act_data_error_on_AnalogIn_higher_than_Level1.

 

Bit 3:           Act_data_error_on_AnalogIn_lower_than_Level1.

 

Bit 4:           Act_data_error_on_AnalogIn_higher_than_Level2.

 

Bit 5:           Act_data_error_on_AnalogIn_lower_than_Level2.

 

 

 

SignalType:

 

 

0

=>

Voltage input 0-100 mV

 

The following SignalType settings specify the type of Thermocouple transducer:

 

1

=>

Type R. Platinum-13% Rhodium/Platinum (-50 C – 1768 C)

 

2

=>

Type S. Platinum-10% Rhodium/Platinum (-50 C – 1768 C)

 

3

=>

Type B. Platinum-30% Rhodium/Platinum (0 C – 1820 C)

 

4

=>

Type J. Iron/Copper-Nickel (-109.1 C – 1200 C)

 

5

=>

Type T. Copper/Copper-Nickel (-166.5 C – 400 C)

 

6

=>

Type E. Nickel-Chromium/Copper-Nickel (-94.8 C – 1000 C)

 

7

=>

Type K. Nickel-Chromium/Nickel-Aluminium (-153.7 C – 1372 C)

 

8

=>

Type N. Nickel-Chromium-Silicon/Nickel-Silicon (-270 C – 1300 C)

 

9

=>

Channel disabled

 

 

EnableNotification:

Notification can be enabled for the following events:

 

7

 

 

 

 

 

 

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0: Change_in_ChError.Act

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2: Increasing_AnalogIn_crossing_Level1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

3: Decreasing_AnalogIn_crossing_Level1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

4: Increasing_AnalogIn_crossing_Level2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

5: Decreasing_AnalogIn_crossing_Level2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

6: AnalogIn_changed_Delta_level

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

7:

 

 

 

 

 

 

 

 

 

 

Bit 0:  Change_in_ChError.Act.

 

Bit 2:  Increasing_AnalogIn_crossing_Level1.

 

Bit 3:  Decreasing_AnalogIn_crossing_Level1.

 

Bit 4:  Increasing_AnalogIn_crossing_Level2.

 

Bit 5:  Decreasing_AnalogIn_crossing_Level2.

 

Bit 6:  AnalogIn_changed_Delta_level

Enable notification on |AnalogIn – Old AnalogIn| > Levels.DeltaLevel. AnalogIn is copied to Old AnalogIn when Notification is set.

 

A bit in the Notification register in the Service Channel will be set if the condition described for any bit that is set in this EnableNotification field has been met. The Notification bit number in the Service Channel register will correspond with the channel number that detected the condition.

 

RegNo 10: FilterConstant

 

FilterConstant:

Real;

(* Factory setting = 0 *)

 

This variable selects a time constant for the input filter. The filter time constant defines that for a stepped change at the input terminals, the measured value (AnalogIn), will have changed by 63% of its target value, at the end of the specified time period.

Only FilterConstants > 3 and < 50 sec will activate the filter.

 

 

RegNo 11: Span

 

Span:

Real;

(* Factory setting = 100 *)

 

The span for the connected transmitter must be inserted in this variable. Span is only used for Voltage input (0-100 mV) signals.

 

 

RegNo 12: Zeropoint

 

Zeropoint:

Real;

(* Factory setting = 0 *)

 

The resultant measured value expected in AnalogIn when the input signal is at its minimum (0 mV), should be placed in the Zeropoint variable. If a thermocouple input is selected, Zeropoint is used as an extra offset-adjustment for the temperature detector.

 

 

RegNo 14: Guid

Each channel type in an interface device consists of a unique GUID.

 

GUID:

String[22];

(*"PD/551426-01" *)

 

 

RegNo 15: ChError

 

Record

 

 

 

His: Bit24;

 

 

 

Act: Bit24;

 

 

End;

 

 

 

There are two sets of error bits, actual and historical. The actual error bits reflect the current situation and will automatically follow any change.

The historical error bits reflect the history and have the purpose of holding sporadic errors. The historical error bits are set together with the corresponding actual bits. They remain set after a read, so each individual bit must be cleared by setting it to false. Only the bits where the corresponding actual bit is false can be cleared. See summary for how ChError.His can be cleared in particular M36 slave modules.

The “His data error” bit in the P-NET response is set if any historical bit is true.

The “Act data error” bit in the P-NET response is reflecting the validity of the data in the response. Overload, electrical error or an error in other registers involved in calculating the result gives “Act data error”.

 

 

 

 

 

 

 

 

 

15

 

 

 

 

 

 

 

7

 

 

 

 

 

 

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  0: Program_storage_fault

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  1: RAM_storage_fault

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  2: InternalReset

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  3: ExternalReset

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  4: SignalHigh

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  5: SignalLow

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  6: OffsetTemp_out_of_range

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  7: Internal_error

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  8: AnalogIn_higher_than_Level1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  9: AnalogIn_lower_than_Level1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

10: AnalogIn_higher_than_Level2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

11: AnalogIn_lower_than_Level2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

12:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

13:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

14: EEPROM_error_in_OffsetTemp

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

15: EEPROM_error_in_Levels

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

16: EEPROM_error_in_ChConfig

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

17: EEPROM_error_in_FilterConstant

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

18: EEPROM_error_in_Span

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

19: EEPROM_error_in_Zeropoint

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

20: EEPROM_error_in_Internal_variable

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

21:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

22:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

23:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

The following two bits will cause Act error in the P-NET response on access to all variables.

 

Bit 0            Program_storage_fault is set TRUE if the self-test finds an error in the program memory.

 

Bit 1            RAM_storage_fault is set TRUE if the self-test finds an error in the data memory (RAM).

 

Bit 2            InternalReset is set TRUE if a reset is caused by a power failure, or if the power has been disconnected (only a His error).

 

Bit 3            ExternalReset is set TRUE if a reset is caused by writing 255 to Reset, via P‑NET (only a His error).

 

Bit 4:           SignalHigh is set if the input signal exceeds 100 mV by more than 10% (110 mV). If thermocouple is selected, SignalHigh is set if the input signal exceeds the maximum value of the selected thermocouple type (see ChConfig).

 

Bit 5:           SignalLow is set if the input signal falls below 0 mV by more than 5% (-5 mV). If thermocouple is selected, SignalLow is set if the input signal falls below the minimum value of the selected thermocouple type (see ChConfig).

 

Bit 6:           OffsetTemp value for the actual thermocouple type is out of range.

 

Bit 7:           An internal error is indicated. If the device continues to indicate internal error after a reset, the device is likely to require repair.

 

Bit 8:           AnalogIn_higher_than_Level1.

 

Bit 9:           AnalogIn_lower_than_Level1.

 

Bit 10:         AnalogIn_higher_than_Level2.

 

Bit 11:         AnalogIn_lower_than_Level2.

 

The following bits are set TRUE if the self-test finds an error in the data memory (EEPROM) for the variable. EEPROM fault is only set at power-up. If the corresponding variable is accessed, Act error in the P-NET response is set.

This error can occur if the power disappears when writing to EEPROM, so a rewrite to the

variable could possibly solve the problem.

 

Bit 14:         EEPROM_error_in_OffsetTemp.

 

Bit 15:         EEPROM_error_in_Levels.

 

Bit 16:         EEPROM_error_in_ChConfig.

 

Bit 17:         EEPROM_error_in_FilterConstant.

 

Bit 18:         EEPROM_error_in_Span.

 

Bit 19:         EEPROM_error_in_Zeropoint.

 

The following bit is set TRUE if the self-test finds an error in the data memory (EEPROM)

for the variable. EEPROM fault is only set at power-up.

 

Bit 20:         EEPROM_error_in_Internal_calibration_variable.