Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Home
  • Knowledge base
  • Contact Us
  • Home
  • Scripting & Variables
  • Advanced Data Processing

READ & WRITE functions

Written by Benjamin Pinnerup

Updated at May 1st, 2026

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Installation & Technical information
    Introduction SIA Connect Standalone SIA Connect ANY-Ware Cellular & WiFi connectivity
  • Configuration in the Web UI
    Getting started with the UI Connectors Instances Items Mapping Data System Network Tools & Add-ons DigiCert IoT Trust Manager Remote Access & VPN tunneling
  • Connectors
    Siemens S7 Siemens S7 Plus Azure IoT Ethernet/IP Mitsubishi MELSEC OPC-UA Server MQTT Omron Host Link REST API Omron FINS Keyence Beckhoff TwinCAT BACnet Virtual OPC-UA Client MS SQL File M-Bus Modbus MTConnect Socket Client Socket Server MySQL
  • Scripting & Variables
    Data formatting Advanced Data Processing
  • Developers
    API documentation Shadow API
  • Tutorials & Guides
    InfluxDB AWS IoT Core - Amazon Web Services Microsoft Power BI KaaIoT Siemens S7 AVEVA Insight SIA Connect Demo Rack Grafana Notification & Messaging Azure Cumulocity MQTT MS SQL OPC-UA Server
  • General
+ More

 

If you want an item to execute a read command, or you want a write command to be executed programmatically, the READ and WRITE functions integrated in SIA Connect can help you achieve that goal

Below is an outline of the functions, and their input arguments

Function Syntax Description
WRITE

WRITE("VALUE")

 

OR

 

WRITE("TARGET_UID", "I")

 

OR

 

WRITE("TARGET_NAME", "VALUE")

This command will execute a WRITE command based on the inputs. There are two inputs to the command, one mandatory and one optional 

 

Mandatory input:

VALUE

 

This defines the value being written to the receiver. This input can take either static value inputs or values from other items, ie.: %ITEM_SENDER.VALUE% or %[ITEM_NAME].VALUE%

 

Optional input

TARGET_UID / TARGET_NAME

 

This defines the receiver of the write command.

If this is left empty, the receiver in the mapping will receive the value. 

If the target is defined, the defined target will receive the value, regardless of whether that same item is the receiver in the mapping 

READ

READ("TARGET_UID") 

 

OR

 

READ("TARGET_NAME")

This command will force a read command for the defined target. So the user is able to utilize scripting to force reads, updates, and any subsequent mappings, for any item in the paramter

 

Mandatory input:

TARGET_UID / TARGET_NAME 

 

This defines which item should execute their read command. 

peruse scan

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

0
0
Expand