Software Tools

DISCLAIMER 

These sample programs are intended to demonstrate one or more programming functions or methods and are presented as programming examples only. Schneider Electric assumes no liability for the use or application of these example programs or any portion thereof.

Contents

Programming samples are detailed below for the following Software Tools:

  • ClearSCADA
  • SCADAPack Workbench
  • IEC61131-3
  • Telepace Studio
  • Accutech
  • Realflo

Can’t find what you’re looking for?

Email us what you need in the way of “how to” examples or application samples and we will do our best to add it here. Email: trssAppSupport@schneider-electric.com

ClearSCADA

StruxureWare SCADA Expert ClearSCADA is SCADA software for telemetry and remote SCADA applications. It manages remote assets spread across geographically dispersed infrastructure with secure and reliable capabilities.

Oil & Gas Applications

Oil and Gas Template - This ClearSCADA template demonstrates every object and method provided by ClearSCADA’s integrated Realflo driver. Add gas wells to an overview list for any SCADAPack RTU with up to 10 flow runs. This sample Includes sample gas runs, a sample Realflo configuration, an optional template for Trio radio diagnostics, and a video explaining how to setup and operate the template.

Realflo Batching - Use Realflo and ClearSCADA to perform a 3 phase (Gas, Liquid, Water) well test.

Wastewater Applications

Wastewater Template - This ClearSCADA template demonstrates a municipal wastewater application with dual-pump lift stations. Two of the lift stations operate in a simulated mode for easy demonstration.

Historical Data

Load CSV data into historian - How to configure a ViewX mimic script to read data from a CSV file and write this data to the ClearSCADA historian using OLE-Automation interface.

Read SCADAPack DLOG points into historian - How SCADAPack DLOG files can be accessed by a ClearSCADA analog point object and loaded into historian without any user script or code.

DNP Data Backfilling - How to generate unsolicited DNP3 messages in a SCADAPack and historise these values in ClearSCADA using DNP3 objects. The project includes a sample object group and Telepace ladder logic program for reference.

SCADAPack Integration

SCADAPack 300E Templates -  ClearSCADA templates for SCADAPack 330E, 334E, 350E, and 357E Smart RTUs. A sample instance of each template automatically downloads controller configuration to the RTU and a sample IEC61131-3 application.

SCADAPack Modbus - How SCADAPack Modbus objects are configured to read/write values to/from a SCADAPack RTU. A small ClearSCADA project is included, as well as an accompanying Telepace Ladder Logic program for the RTU.

Modbus Virtual PLC - Configure ClearSCADA as a Modbus Virtual PLC to accept unsolicited messages from Modbus devices, including SCADAPack controllers, through serial direct and PSTN (dial-up) connections.

Wireless Integration

Trio Radio Diagnostics Template - The Trio radio diagnostics driver installs by default in ClearSCADA 2010 R1 or newer. This sample project demonstrates the diagnostic template with Trio Ethernet J-series radios. The same template may be used with the full range of Trio radios: D, E, J, K and M series.

Trio Radio SNMP Diagnostics Template - The SNMP driver was upgraded for ClearSCADA 2014 R1, and can provide enhanced diagnostics from recent Trio Radios that also support SNMP, including alert notifications. This sample project demonstrates the SNMP diagnostic template with Trio Ethernet J-series radios, and can also be used with Trio Q-Series radios.

Accutech Template for ClearSCADA - This ClearSCADA template polls a BR20 base radio, or polls an RTU connected to a BR20. Data is polled for any Accutech field unit and reported with sensor data, diagnostics, statistics for min, max, and average value as well as sensor offline duration. Add template instances manually or let the template auto-detect your Accutech network and create the instances for you including ClearSCADA Mobile screens.

Animation

Blink Animation - How to create an “animated” Pump Jack object using the blink feature and includes a finished sample for reference.

Rotation Animation - How to create an “animated” rotating wheel object using the Rotation Animation property. Includes a rotating tire sample for reference.

Radar Graph - Radar Graph symbols that can be used to animate between 3 and 9 variables on a Radar Plot. Options are provided for a Simple Graph (which includes individual labels, a graph title, configuration of line width and colour, and marker size) or a Complex Graph (which includes the components of the simple graph, but also adds support for animation of previous values, high and low limits and colour-changing markers when limits are transgressed, plus tick-marks on each axis).

Miscellaneous

Templates and Instances - How to convert an object group to a Group Template and Group Instances of this template.

VB Script Samples - Examples of VB script used in ClearSCADA ViewX mimics.

Working with UTC Time in RTU - Use the SCADAPack 4203 RTU's on-board Real-Time Clock (RTC) to provide local time from the system wide ClearSCADA time source.

IEC61131-3 SCADAPack Workbench

SCADAPack Workbench is the IEC61131-3 programming environment for SCADAPack E smart RTUs.

Getting Started

Simple Pump Control / Workbench Overview - This sample demonstrates a simple pump control application created in SCADAPack Workbench over an IP link to a SCADAPack 334E RTU. Any 300E range of RTU may be used with this Workbench sample. The E Configurator must be used to first write a default configuration to your RTU. This example includes a 334E configuration and a video demonstrating the Workbench environment. This is an excellent starting point for any new user of SCADAPack Workbench.

Self-guided Training - This is a set of self-guided training exercises that cover DNP3 basics, E Configurator, SCADAPack E, ClearSCADA as a DNP3 Master, IEC61131-3 applications, Unsolicited Reporting, DNP3 Routing, Data Concentrator, Modbus master & slave communications, ClearSCADA & SCADAPack E configuration - in short, everything you've ever wanted to know about our DNP3 solution.

Specialized Function Blocks

Retained Counter & Timer - Standard IEC61131-3 counters and timers retain their values over RTU power cycles, but not if you edit and download program changes. This sample provides a counter and timer function block that retain their values under all conditions by saving to the DNP3 database.

Word to Bits / Bits to Word FBs - The Word2Bit function block provides a convenient method to access individual bits in a 16-bit value. The Bit2Word function block allows you to pack bit information into a 16-bit value.

Communications

Modbus Scanner / Modbus Function Blocks - Poll one or more Modbus devices over TCP or Serial using the E Configurator or using Workbench FBs.

Poll a Serial Modbus device using IO Devices (Legacy Method) - How to poll a serial Modbus device using Workbench IO Devices from a SCADAPack 313E or 334E RTU. Analog and binary input and output data are exchanged between the RTU point database and the Modbus device.

DNP3 Peer to Peer Communication - How to read and write data to a DNP3 peer device.

Write a Custom Serial Protocol - An example of how to write a custom serial protocol using a SCADAPack E RTU.

Poll Accutech Sensor Data using Modbus Scanner - How to poll the Accutech base radio for status information and sensor data using the E Configurator Modbus Scanner or by using Workbench FBs.

Poll Accutech Sensor Data using IO Devices (Legacy Method) - How to poll the Accutech base radio for status information and sensor data using Workbench IO Devices.

IEC61131-3 ISaGRAF v3

IEC61131-3 is the ISaGRAF 3 programming environment for SCADAPack smart RTUs.

SCADAPack and SCADAPack E

Using Arrays - Applications for using the Array variable type.

Input Damping Function Block - Custom function block that can be used to limit the rate of change of a variable.

SCADAPack E only

Poll a Modbus/TCP Device - How to poll a Modbus/TCP device.

Scaling / Averaging Function Block - Custom function block that scales a variable and provides a scalable running average.

SCADAPack only

Getting Started

Simple Motor Control - Example of simple motor control using the FBD Language.

IO Configuration Libraries - IO Configuration Libraries for each SCADAPack RTU and Gas Flow Computer.

Getting Started Program Template - Getting started template for creating new IEC61131-3 projects.

Scaling

Scaling / Averaging Function Block - Custom function block that scales a variable and provides a minimum, maximum and running average.

Scaling Function Block - Custom function block that scales raw inputs to engineering units.

Data Logging

Datalog to Internal Memory - How to use the Datalog function block to log data to SCADAPack internal memory.

Datalog to USB Memory - How to log data to a USB mass storage device.

Communications

Send Master Message in FBD - How to transfer data between RTUs using the FBD Language.

Send Master Message in LD - How to transfer data between RTUs using the LD Language.

Send Master Message in SFC - How to transfer data between RTUs using the SFC Language.

Poll Accutech Base Radio - How to poll an Accutech BR20 base radio.

Dialup modem control - How to control a dial up modem using the SFC language.

Send and receive a text string - How to use the string function blocks to send and receive ASCII text strings on a serial port.

Email Function Block - Custom function block that sends an email from a SCADAPack 350.

Monitor Modbus/TCP Traffic - Monitor the Ethernet Port for activity by measuring the time between incoming Modbus/TCP commands.

Telepace Studio

Telepace Studio is the ladder logic programming environment for SCADAPack smart RTUs.

Communications

Modbus RTU Master - Exchange data between master and slave SCADAPacks over a serial connection using the MSTR function.

Modbus/TCP Master - Exchange data between master and slave SCADAPacks over an IP network using the MSIP function.

Poll Accutech Base Radio - How to poll an Accutech BR20 base radio.

Dial Out - Dial out from a master RTU to slave RTUs using dial-up modems and the DIAL function.

Auto-answer Modem - How to setup a 5901 modem for auto-answer using the INIM function.

Routing with Address Translation - How to configure store and forward routing between SCADAPack RTUs using station address translation.

Routing with Port Translation - How to configure store and forward routing between SCADAPack RTUs using communication port translation.

Poll HART Transmitter - How to poll a HART transmitter using the 5904 HART interface module and HART function.

DF1 Communication - Exchange data between two SCADAPacks using the DF1 protocol and the MSTR function.

DF1 Dialup Communication - Exchange data between two SCADAPacks using the DF1 protocol over a dialup modem and the MSTR and DIAL functions.

Poll ABB Totalflow - Poll data from an ABB Totalflow 7100 LevelMaster.

Data Logging

Datalog to RTU Internal Memory - How to automatically log data every minute using the DLOG function.

Datalog to RTU USB Memory - How to log data to a USB mass storage device using the DLGF function.

Data Conversion

Scale Analog Inputs - Scale 16-bit analog inputs into floating point values using the SCAL function.

Input Damping - How to limit the rate of change of a value.

BCD to Integer - Convert 16-bit Binary-Coded-Decimals into 16-bit integer values.

Integer to BCD - Convert 16-bit integer values into 16-bit Binary-Coded-Decimals.

Daylight Savings Time - Convert SCADAPack real time clock for daylight savings time adjustment.

Miscellaneous

Flow Accumulation - Calculate Flow Rates and Accumulated Flow Using Pulse Input using the FLOW function.

PIDA Control - How to use the PIDA function in manual mode and P, PI, and PID control modes.

Simple Motor Control - Example of simple motor control (or latch / unlatch control).

Logic Scan Time - How to measure the scan time (or loop time) for one execution of your Ladder Logic program.

Accutech

Accutech wireless instrumentation is monitored by polling the Accutech base radio. These samples provide four ways to poll the base radio.

Poll Accutech with Telepace - How to poll an Accutech BR20 base radio using Telepace Studio and a SCADAPack.

Poll Accutech using E Configurator Modbus Scanner or Workbench FBs - How to poll the Accutech base radio for status information and sensor data using the E Configurator Modbus Scanner or by using Workbench FBs.

Poll Accutech with SCADAPack E Workbench IO Devices (Legacy Method) - How to poll an Accutech BR20 base radio using SCADAPack Workbench IO Devices and a SCADAPack E.

Poll Accutech with IEC61131-3 - How to poll an Accutech BR20 base radio using IEC61131-3 and a SCADAPack.

Accutech Template for ClearSCADA - This ClearSCADA template polls a BR20 base radio, or polls an RTU connected to a BR20. Data is polled for any Accutech field unit and reported with sensor data, diagnostics, statistics for min, max, and average value as well as sensor offline duration. Add template instances manually or let the template auto-detect your Accutech network and create the instances for you including ClearSCADA Mobile screens.

Realflo

Realflo is an application that enables custody transfer gas flow measurement of up to ten flow runs in SCADAPack smart RTUs. The application provides EFM functionality that operates concurrently with the RTU’s Ladder Logic / IEC61131-3 and C/C++ user programming.

Realflo Tagnames - Import to Telepace the tagnames for configuration registers in flow runs 1 and 2.

Dual Tube Run Switching - Run switching for a two-run metering station is provided by a C Application and Realflo configuration for the SCADAPack 4203 flow computer.

Realflo EUB Test Cases - Realflo configuration files for the eight standard EUB test cases used to evaluate the accuracy of flow computers.

Realflo Batching - Use Realflo and ClearSCADA to perform a 3 phase (Gas, Liquid, Water) well test.