TilliT
HomepageChangelogDeveloper
  • Home
  • Introduction to TilliT
    • Introduction for New TilliT Customers
    • Videos
  • Getting Started
    • Overview
    • Definitions
    • Set up a Site & Assets
    • Set up an Activity
    • Create an Order
    • Start an Order
    • Next steps
  • Planning
    • Overview
    • Data Gathering
      • Site & Assets
      • Production Orders
      • Activities
      • Shifts & Calendars
      • Materials
      • Process Variables
      • Attributes
      • Articles
      • Checklist
  • Knowledge Base
    • Everyday Usage
      • Layout Overview
      • Login to TilliT
      • Basic functionality
      • Lock screen
      • Pinning Assets
      • Switch Site
      • Next Steps
      • Activities
        • Claiming
        • Completing
        • Manually starting
      • Orders
        • Create adhoc Order
      • Events
        • Raising an Event Using the UI
      • Notifications
    • Scheduler
      • Introduction
      • Feature Overview
      • Scheduler to Digital Operations integration
      • Scheduling
        • Scheduling
        • Orders
        • Scenarios
        • Inventory
      • Configuration
        • Operations
        • Equipment
        • Personnel
        • Materials
        • Availability
        • Optimisation
        • Changeovers
        • Loading data with excel Add-in
      • MVP Setup Guide
    • Insights
      • Activity report
      • Production Report
      • Dashboards
      • Advanced Analytics
        • Sharing dashboard
    • Users
      • User
        • User Confirmation
        • User channels
        • User subscriptions
      • Groups
      • Permissions
      • User authentication with SSO
    • Boards
    • Settings
      • Asset Hierarchy
        • Site
        • Asset
          • Asset Attributes
          • Asset Tolerances
          • Downtime periods
          • Attribute Group
          • Edge data tags
        • Asset class
        • Order Templates
          • Order Template with Unit Conversion
        • Calendar
          • Calendar item
        • Shifts Templates
          • Creating Shift Templates
          • Manual shift patterns
        • Asset Meter
      • Material Definition
        • Material
        • Material group
        • Material attributes
          • Example of material attributes
        • Material tolerance
          • Example of Material tolerance
        • Material component
        • Material conversion
      • Activity Templates
        • Activity template
          • Creating an activity
          • Where
          • When
          • Versioning
          • Building
          • Elements
            • Item types
              • Item properties
                • Active item & hidden expressions
                • Hint
                • Tolerance Source
              • Update Attribute
              • Board Item
              • Raise event
            • Data Types
              • Evaluate Data types & Dynamic Note
              • Note
              • Option list
              • Dynamic option list
              • Barcode
              • GS1 Barcode Scanner
              • Edge data
              • Material Component
              • Image capture
              • Sections
              • Digital Signature
              • Material
              • Dynamic Form Items
              • Inventory Key
        • Activity class
      • Events
        • Event Type
        • Event Relay
        • Event Schedule
      • Articles
      • Integrations
        • Adding Webhook Subscriptions
        • MQTT Integration
        • Receive the TilliT Event
        • Notifications
      • Configuration
        • Attribute
        • Attribute group
        • Tolerances
        • Dashboard group
        • Report Templates
          • Creating and Using Report Templates
        • Process variable
        • Unit of Measure
        • Run Rate Template
      • Translation
      • Audit Log
    • Edge
      • Introduction
      • Before You Start
        • Security / Firewall
        • TilliT Edge
        • Understanding your Networks
        • Common Installation Solutions
        • Managing and Publishing changes
      • Physical Device
        • Setup
      • Using Docker
        • Upgrading a docker container from before 2025
      • Common Data Sources
        • OPC-UA
        • Modbus TCP
        • Ethernet IP
        • Profinet
        • RTLE
        • Simulator
      • Data Tags
        • Data Tag Templates
        • Order Number Tag Template
        • Edge Data Tag Options
      • Edge Triggers
      • TilliT Sensors
        • Connect TilliT Edge to a Wireless Gateway
        • Bind a Wireless Counter to a Wireless Gateway
        • Configure FEN-20 PNP Sensor
      • Troubleshooting
      • Windows Edge Installer
    • History
    • OEE
      • Two Steps to Availability
      • Two Steps to Performance
      • A Step to Quality
    • Track and Trace
      • Before you begin
      • Transaction Types
      • Movement Types
      • Movement Types Field
      • Adding Material Movement to an Activity Template
      • Completing the Activity
      • Reporting
    • Mobile View
      • Device shortcut
      • Unable to enter Negative Numbers
    • Importing, Exporting and Cloning Entities
    • Troubleshooting
  • Tools
    • Excel add-in
      • How to Install the Excel Add-in
        • Excel Online
        • Desktop
      • How to Update the Excel Add-in
      • Loading multiple orders
      • Maintaining Master Data in Bulk
      • Downloading Time-Series Data
    • Staging Environment
    • Ignition Module
      • Installation
      • TilliT Tag Provider
        • Data From TilliT to Ignition
        • Data From Ignition To TilliT
      • Scripting Using the TilliT Module
      • Network Security
  • INFRASTRUCTURE
    • FAQ
    • Architecture
    • Disaster Recovery
    • Software Quality Assurance
Powered by GitBook
On this page
  1. Knowledge Base
  2. Edge

Edge Triggers

PreviousEdge Data Tag OptionsNextTilliT Sensors

Last updated 3 months ago

A data tag can be associated with many different triggers. Triggers can be used to trigger an event to be raised (e.g. raise event equipment status starved when rpm value is greater than 250). A trigger will only raise this event when the evaluation script for the trigger is true for the first time. It will not be able to trigger again until the evaluation script is false again.

Navigate to the edge data tag and find the table with the title Edge Trigger. Find the create button on the top right.

  1. Click the +Create button; this will open a new pop-up config window.

  2. In the pop-up window, complete the following:

    • Event Type - The desired event that should be raised when the trigger is triggered

    • Evaluation Script - The cause for the trigger to activate where 'value' is the value of the tag at evaluation (see more )

      • e.g. value > 1, 5 < value && value < 20 , value == 8

    • Active - If you want to include this trigger in the poll cycle. Setting to inactive will cause TilliT Edge to not evaluate the trigger.

    • Minimum Duration - Specify how long (in minutes) the evaluation script must be true before TilliT Edge triggers the chosen event. Setting to 0 will trigger the event immediately upon the evaluation script being true

    • Maximum Duration - Defines the maximum time limit for which the evaluation script can remain valid, after which it will not trigger an event. If the script evaluates as true for the minimum duration and is then false before the maximum duration, then an event is raised.

    • Requires Running Order - Will only raise the trigger if the order is running. This is useful in scenarios where the evaluation script is true while an order is not running. With this set to true, the event will only raise once the order becomes running.

  3. Click Save and close".

Structuring and evaluation script

An evaluation script is simply an expression that when true will cause an event to fire. The script support all types of math operators to help define the exact behavior you require.

There are many TilliT keywords that can be used in your script to substitute an Edge Data Tag value. These are shown below.

  • value: is replaced with the current value that was read by this tag

  • lastvalue: is replaced with the previous value that was read by this tag

  • tag['id']: is replaced with the current value that was read by the specified tag id

  • now: is replaced with the current unix time in milliseconds

  • dayOfWeek: is replaced with the current day of the week as a number (0-6)

  • hours: is replaced with the number of hours into the local day it is

  • minutes: is replaced with the number of minutes into the local day it is

  • day: is replaced with the number of days into the month

  • order.fieldName: is replaced with the corresponding fieldName of the current running order. See the bottom of this page for available fields

  • orderAttr.attrName: is replaced with the corresponding value of attrName of the current running order.

  • prevOrder.fieldName: is replaced with the corresponding fieldName of the previous running order.

  • prevOrderAttr.attrName: is replaced with the corresponding value of attrName of the previous running order.

So how would these be applied? Well for a simple use case where we want the script to evaluate true when the product count exceeds a theshold then we can use

value > 50

When we need an event to occur every 500 bottles, we can use

value % 500 < 5

But not every order is going to have the same size and it would be better to use a percentage of total bottles produced. To create an event at 50% of produced goods, we use two tags in an evaluation. Here is an example

(value / order.quantityTarget) * 100 > 50

Here we see value which is the current number of produced goods, we divide by quantityTarget, which is current running order target inside TilliT. This results in a percentage, and will create an event when it exceeds 50%.

To extend this, say we know that a specific equipment tag should always be increasing while the machine is operational, then we can do the following check to ensure an event is created whenever this is not true.

tag['15'] and value < lastvalue

This will give the desired effect where when the machine is running(tag['15'] is true while running) AND the value read was less then the last value, then evaluate true and trigger an event. Use this with minimum duration to evaluate over more then one data point before firing. You can find the ID of a tag inside the edge configuration settings of the datasource. NOTE: The tag id can be from a seperate data source but not from a sperate edge device.

Available Order FieldNames

  • batchNumber

  • defaultRunRate

  • name

  • operation

  • orderDate

  • orderNumber

  • quantityTarget

  • quantityCompleted

  • quantityRejected

  • actualChangeoverDuration

  • currentRate (pass 3 hours)

  • quality (percentage from 0 - 1)

  • performance (percentage from 0 - 1)

  • availability (percentage from 0 - 1)

If your use case is quite advanced, take a look at of all available function and operators that are available to use

this documentation
here