inSCADA
EN
EN
  • Introduction
  • Getting started
  • User Interface
    • Home
    • Development
      • Projects
      • Connections
      • Devices
      • Animations
        • Get
        • Color
        • Rotate
        • Move
        • Opacity
        • Bar
        • Click
        • Tooltip
      • Alarm Groups
      • Alarms
      • Scripts
      • Expressions
      • Variables
      • Reports
      • Processes
      • Mail
      • Import/Export
    • Wizards
      • Gas Metering
      • HPP Unit
      • Device Library
    • Visiualisation
    • Processes
    • Control Panel
    • Project Map
    • Variable History
    • Alarm History
    • Alarm Monitor
    • Trend Graphics
    • Reports
    • Logs
    • Auth Logs
    • Jobs
    • Users
    • Help
    • About
    • License
  • Mimic Design
  • Communication Protocols
    • MODBUS
      • Modbus TCP
      • Modbus UDP
      • Modbus RTU Over TCP
      • Modbus TCP Server
      • Modbus RTU Slave Over TCP
    • DNP3
      • DNP3 Master
      • DNP3 Outstation
    • PROFINET
    • IEC-104
    • SNMP
    • OPC
      • OPC UA Client
  • Programing
    • APIs
      • Variable Functions
      • Connection Functions
      • Project Functions
      • Alarm Functions
      • Script Functions
      • In-Memory DB Functions
      • System Functions
      • User Functions
      • Date-Time Functions
      • String Functions
      • Notification Functions
      • Confirmation Functions
      • Database Functions
      • Other Functions
  • Database
  • Usefull Features
  • Update Logs
  • Architectures and Applications
  • Development Roadmap
  • Migration to inSCADA
  • Licensing Policies
  • FAQ
  • Screenshots
  • Auxiliary Tools
  • Installations
    • Requirements
    • Installation on Linux
Powered by GitBook
On this page
  1. User Interface
  2. Development

Scripts

PreviousAlarmsNextExpressions

Last updated 5 years ago

You can write macros in inSCADA in javascript language and you can have these scripts run periodically. You can use the inSCADA APIs to interact with the inSCADA platform using your scripts. See

As shown in Figure 1, you can create scripts in inSCADA depending on your projects. To do this, press the button in the upper right corner and the form in Figure 2 will open.

Project

You can select the project to which your script will be linked.

Name

Script Name.

Description

Script Description.

Period

When you schedule your script, you can enter the run period in the background. If you enter 1000 as a value, it will run for 1 sec.

You should use the Control Panel to run your scripts automatically, i.e. to schedule them. Take a look at the Script section of the Control Panel.

Log

When you select Log, an information message about your script will be written in Logs.

Code

See Flexible Forms
APIs...
Figure 1 : Developement-Scripts
Figure 2 : Script Add/Edit Form