www.techsales-nw.com

 telephone: 503-345-9710 .

 Home | Products | Industries | Product Lines | News & Events | Contacts

Products

HMI > HMI Software > Infilink >




HMI Hardware & Software Product Directory
 
Human Machine
Interfaces (HMI)

Graphics Stations
Text Stations
Panel Devices
HMI Software
Flat Panel Monitors
Industrial PCs
 
 
Search for Products by keyword(s)


 

 

Infilink HMI - Powerful Customization Tools
Using the powerful, yet easy Scripting features of Infilink allows a developer to customize a project to suite the unique requirements of any application. Scripts can be used to perform data calculations, control the process, manipulate text strings, read & write to data files, create complex object animations, control the behavior of a window, or even play "wav" files.
 
Types of Scripts
While all scripts in Infilink use the same commands and syntax, Infilink classifies each script into one of five (5) types, based on when the script needs to execute within the overall project.

1)

Project Scripts contain those functions and operations that are performed independent of any operator actions. This type of script can be invoked in one of three modes: a) execute once during system startup, b) execute once during system shutdown, or c) execute periodically during normal running.
 

2)  Window Scripts operate only for a given display window in one of three modes: a) execute once when the widow is made to appear, b) execute once when the widow is removed from view, or c) execute periodically while the widow is in view.
 
3) Take Action Scripts execute when the operator clicks or pushes a button or other display object.
 
4) Tag  Scripts execute when you want to perform some action as a result a given tag value changing state or exceeding some other value.
 
5) Alarm Scripts execute in response to the state of a alarm condition, including: a) transition to active state, b) periodically while the alarm is active, c) on alarm acknowledgement, or d) alarm transition to inactive.
 

Script Commands
The Infilink scripting language includes a comprehensive set of commands to perform calculations, control the behavior of display windows and their objects, and much more. The following is a sample of the commands at your disposal:

Command Type
 
Example Functions
Conditional Operators:
 
>, >=, <, <=, ==, <>
Logical Operators:
 
ON, OFF, TRUE, FALSE
Math Functions:
 
+, -, *, /, Sin, Cos, Tan, Abs, Power
String Functions:
 
Trim, Value, Case, Length, Left, Right, Middle
Program Flow Control:
 
If, Then, Else, Endif, While
Window Control:
 
Hide, Load, Move, Resize, Show
Sound Control:
 
Beep, PlaySound (wav. file)
Object Properties:
 
Show, Color, Style, Fill, Angle
Alarm Viewer Properties:
 
Severity, Ack, Scroll, StartDate,  StopTime
Trend Properties:
 
DrawMode, TimeSpan, StartTime, StopDate
File Functions:
 
Read, Write, File Type (.txt or .csv)
System Functions:
 
Alarm Log Start, Data Log Stop, Login/out

Script Syntax
Infilink scripting is very similar to popular programming languages like BASIC or FORTRAN and allow the user to include documentation within the script. The following examples illustrate how easy it is to use write Infilink scripts:

Script Example 1

# This example loads Microsoft Excel with the spreadsheet
# named calc.xls and if successful, sends the values of the tags named
# PlcTagPressure and PlcTagTemp to the spreadsheet by assigning
# those values to tags that reference cells R1C1 and R1C2
if Run (excel.exe calc.xls) then
          ExcelTagR1C1 = PlcTagPressure;
          ExcelTagR1C2 = PlcTagTemp;
endif;
 
Script Example 2
# This example loads Microsoft Excel with the spreadsheet
# named calc.xls and if successful, sends the values of the tags named
# PlcTagPressure and PlcTagTemp to the spreadsheet by assigning
# those values to tags that reference cells R1C1 and R1C2
if Run (excel.exe calc.xls) then
          ExcelTagR1C1 = PlcTagPressure;
          ExcelTagR1C2 = PlcTagTemp;
endif;
 

<-- return to overview


Copyright 2003 - 2008, Technical Sales & Field Services Northwest, all rights reserved