I/O Analog Data Point Tag

Help Contents

Introduction

The I/O Analog Data Point TagAnalog Data Point Tag Icon maps a floating point value to an external data source.

Configuration Properties

The I/O Analog Data Point Tag supports the configuration properties of the Analog Data Point Tag plus these properties:

PropertyTypeVersionDescription
AllowControlsBOOL3.12Whether Fernhill SCADA can send controls from this tag to the data source.
IODataSourceReference3.12A reference to the external data source.
IOItemNameWSTRING3.12The data item within the external data source.
IOItemTypeUSINT3.12The type of data to read from the data source.
RawScaleConversionUSINT3.12What type of conversion to perform (None, Linear, Square Root).
RawScaleMinLREAL3.12For scaled conversions, the minimum raw scale value.
RawScaleMaxLREAL3.12For scaled conversions, the maximum raw scale value.

AllowControls

The AllowControls property controls access to the WriteValue Tag Command.

When AllowControls is FALSE, access to the WriteValue Tag Command is blocked. This prevents any user, or program, sending control requests to the data source from this tag. The default value is FALSE to follow security best practice of deny by default.

Even when AllowControls is TRUE, an operator requires the Write User Privilege to send controls to the data source.

For an operator to send a control to the data source, both of these conditions must be true:

IODataSource and IOItemName

The IODataSource field sets the external data source for the tag. The IOItemName field sets the item of data within the data source. The format of the IOItemName field depends on what type of tag is configured in the IODataSource field.

Use this table to see:

IODataSourceIOItemName
Allen Bradley PLC Depends on the Allen Bradley PLC Family:
Allen Bradley Register Block A string formatted with the Allen Bradley PLC Data Address Format.
DNP3 Outstation Tag A string formatted with the DNP3 Point Address Format.
File Scanner or URL Scanner For CSV files, the location of the variable in the file using spreadsheet notation, for example B5 represents row 5 and column 2. For JSON files, the result of the JSONata expression.
GE Fanuc PLCA string formatted with the GE Fanuc PLC Data Address Format.
Idec Micro PLCA string formatted with the Idec Micro PLC Data Address Format.
Idec Micro Register BlockA string formatted with the Idec Micro PLC Data Address Format.
IEC 61131-3 ProgramA reference to a global variable.
Mitsubishi Melsec PLCA string formatted with the Mitsubishi Melsec PLC Data Address Format.
Mitsubishi Melsec Register BlockA string formatted with the Mitsubishi Melsec PLC Data Address Format.
Modbus PLC DeviceA string formatted with the Modbus PLC Data Address Format.
Modbus Register BlockA string formatted with the Modbus PLC Data Address Format.
MQTT ConnectionA string formatted with the MQTT IOItemName Format.
ODBC QueryThe location of the result in the result set using spreadsheet notation, for example B5 represents row 5 and column 2.
Omron PLC using FINSA string formatted with the Omron PLC Data Address Format.
Omron PLC using Host LinkA string formatted with the Omron PLC Data Address Format.
Omron Register BlockA string formatted with the Omron PLC Data Address Format.
OPC Classic ConnectionThe OPC item name.
OPC UA ConnectionAn OPC UA Node Identifier.
Random GeneratorA property name of the random generator.
Siemens S7 Ethernet PLCA string formatted with the Siemens S7 PLC Data Address Format.
Siemens S7 Serial PLCA string formatted with the Siemens S7 PLC Data Address Format.
Siemens S7 Memory BlockA string formatted with the Siemens S7 PLC Data Address Format.
SNMP AgentThe OID of the variable in the SNMP Agent.

IOItemType

The IOItemType property defines the type of data in the data source. The property supports these options:

IOItemTypeValueDescription
16-bit unsigned0The source is a 16-bit unsigned integer
16-bit signed1The source is a 16-bit signed integer
16-bit BCD2The source is a 16-bit Binary Coded Decimal number.
32-bit unsigned3The source is a 32-bit unsigned integer
32-bit signed4The source is a 32-bit signed integer
32-bit BCD5The source is a 32-bit Binary Coded Decimal (BCD) number.
32-bit floating point6The source is a 32-bit floating point value.
64-bit floating point7The source is a 64-bit floating point value.

RawScaleConversion

The RawScaleConversion property defines how the tag value is scaled from the raw value. The property supports these options:

RawScaleConversionValueDescription
None0No scaling is performed. The raw value is written directly to the tag.
Linear1Linear scaling is applied.
Square Root2Square root scaling is applied.

Linear Scaling

Linear interpolation is used to scale the raw value to Engineering units. The calculation used to convert the raw value to Engineering Units is:

EUValue = MinScale + 
            (RawValue - RawScaleMin) * (MaxScale - MinScale) / (RawScaleMax - RawScaleMin)

When a write operation is performed, the reverse calculation is used to scale Engineering Units back to the raw scale:

RawValue = RawScaleMin + 
            (EUValue - MinScale) * (RawScaleMax - RawScaleMin) / (MaxScale - MinScale)

Square Root Scaling

Square root scaling is a specialized scaling method intended to compensate for non-linear sensors or transducers. The calculation used to convert the raw value to Engineering Units is:

EUValue = MinScale + 
            sqrt(RawValue - RawScaleMin) * (MaxScale - MinScale) / sqrt(RawScaleMax - RawScaleMin)

When a write operation is performed, the reverse calculation is used to scale Engineering Units back to the raw scale:

RawValue = RawScaleMin + 
            square(EUValue - MinScale) * (RawScaleMax - RawScaleMin) / sqrt(MaxScale - MinScale)

Dynamic Properties

The I/O Analog Data Point Tag supports the dynamic properties of the Analog Data Point Tag.

Tag Commands

The I/O Analog Data Point Tag supports tag commands of the Analog Data Point Tag plus these tag commands:

Tag CommandVersionDescription
WriteValue3.12Writes a new value to the data source via the I/O tag.

Relationships to Other Tag Types

The I/O Analog Data Point Tag builds on the features of these tag types:

Further Information

Analog Data Point Tag

To learn about properties common to all analog tags.

Core Driver

To learn about the Core Data Driver.

Glossary

For the meaning of terms used in Fernhill SCADA.