Monokot Server 1.x
  • What is Monokot Server?
  • Quickstart
  • 🐸Basics
    • Supported OS and Hardware
    • Installation
    • Licensing
    • OPC UA
      • UA TCP Endpoint
      • UA Settings
      • Client Certificates
      • Aliases
      • Access to Object Settings
      • Troubleshooting
    • Security Certififcate
    • Users & Roles
    • Administrator GUI
      • Event Log
      • Users in Monokot Server Administrator
      • Roles in Monokot Server Administrator
    • Startup Parameters
  • 🦊Tags & Devices
    • Devices
      • Diagnostics
      • Devices in the Monokot Server Administrator
    • Tags
      • Parameters
      • Change Trigger
      • Tags in Monokot Server Administrator
        • Go Online
        • Group Action
        • Import & Export
    • Modbus Connectivity
      • Parameters
      • Addressing
      • Diagnostics
    • Siemens Connectivity
      • Parameters
      • Addressing
      • Access to DBs area in S7-1200/S7-1500
    • IEC 60870-5-104 Connectivity
      • Parameters
      • Addressing
      • Time Conversion
      • Diagnostics and Commands
    • OPC UA Connectivity
      • Parameters
      • Addressing
      • Diagnostics
      • How to: Importing OPC UA items
      • How to: Pulling Security Certificate
    • InfluxDB Connectivity (Connector)
      • Parameters
      • Addressing
      • Query Result and Data Mapping
      • Diagnostics
      • How to: Configure for InfluxDB 2.x
    • SNMP Connectivity
      • Parameters
      • Addressing
      • UDP Considerations
  • 🐺Time Series & Stores
    • Stores
      • Backlog
      • Diagnostics
      • Stores in Monokot Server Administrator
    • Time Series
      • Parameters
      • Deadband
      • Sampling
      • Last Sample Repeat
      • Time Series in Monokot Server Administrator
        • Group Action
        • Import & Export
    • InfluxDB Connectivity (Store)
      • Parameters
      • Addressing
      • Data Structure
      • About Metadata
      • Diagnostics
      • How to: Configure for InfluxDB 2.x
    • PostgreSQL Connectivity
      • Parameters
      • Addressing
      • Database Design
      • Data Compression
    • REST Connectivity
      • Parameters
      • Addressing
      • Message Script
      • RestRequestMessage
      • DataContext
      • TimeSeries
  • 🐻Scripts
    • Overview
    • Expression
      • Parameters
      • Import & Export
      • Go Online
    • Programming Examples
      • How to: Calculate Arithmetic Mean
      • How to: DoNothing
      • How to: Writing to Tag
      • How to: Inverting Bits
      • How to: Execute SQL
      • How to: Run Ping
      • How to: Do Simulation
      • How to: String Formatting
      • How to: OPC UA Method
      • How to: Initialize Device Settings from File
    • API
      • Bundle
      • BundlePair
      • Context
      • DataMap
      • DataMapPair
      • DataTriggerInfo
      • Expression
      • MosCrypto
      • MosDirectories
      • MosFiles
      • MosOdbc
      • MosOdbcReader
      • MosProcess
      • MosProcessExecuteResult
      • MosText
      • MosUtils
      • ValueState
Powered by GitBook
On this page
  1. Scripts
  2. Expression

Import & Export

The script manager allows to import / export the structure of groups and expressions from / to a CSV file. The CSV file is formatted as follows:

  • Each field is enclosed in double quotes. If the field contains double quotes, then additional double quotes are put around them. For example, the field "Mud" temperature, °C should look like this: """Mud"" temperature, °C"

  • Fields are separated by commas. For example: "Group1","RandomExpr","pt=trig1:100;","","DOUBLE","return Math.random();","Random number every 100ms"

  • Each new set of fields begins with a new line

  • The first line defines the names of the fields (parameters) and should contain all the parameters used

Description of fields used when exporting and importing expressions:

  • Expression Group: contains the path to the group where the expression is located. Group names are separated by dots.

  • Expression: contains the expression name.

  • Triggers: contains a set of triggers defined in the expression, such as dt=trig_b:Examples.TagB. The format of this field is described below.

  • Modules: Contains a set of modules imported into the expression, e.g. module1;module2;md5 (modules are separated by semicolons)..

  • DataType: contains the type of data to be returned.

  • Code: contains the expression code.

  • Comment: contains any custom text.

Triggers are written using the following format: [TRIGGER_TYPE]=[TRIGGER_NAME]:[PARAMETER], where

  • TRIGGER_TYPE: specifies the trigger type (periodic or data trigger) and takes the value of pt or dt, respectively.

  • TRIGGER_NAME: specifies the name (key) of the trigger.

  • PARAMETER: depending on the trigger type, defines the following parameter:

  1. Update rate set in milliseconds (for the periodic trigger).

  2. Path to the tag (for the data trigger).

To define several triggers, you need to specify the required number of strings in [TRIGGER_TYPE]=[TRIGGER_NAME]:[PARAMETER] format divided by semicolons.

PreviousParametersNextGo Online

Last updated 2 years ago

🐻