Control (for buttons)

<< Click to Display Table of Contents >>

Navigation:  Project > Screens > Properties >

Control (for buttons)

Previous pageReturn to chapter overviewNext page

Control property lets to write value to the tag. To edit control property click Control tab on the object property window.

controlbutton

Property

Description

Tag

Select the tag to which the value will be written.

Function

Select button's function:

Set - write TRUE(1) to the tag.

Reset - write FALSE(0) to the tag.

Toggle -  if current tag’s value TRUE(1) write FALSE(0), if currents tag’s value FALSE(0) write TRUE(1).

Push -  during pressing button write TRUE.

Set value - write Value to the tag.

Enter value -  call dialog that lets you enter value to the tag.

Call screen - call selected screen.

Call popup - call selected popup screen.

Close popup - close popup screen.

Call external software - lets call external software by using command and arguments of OS.

Value

When you select Set value function enter value that will be written to the tag.

Title

When you select Enter value function write title of the called dialog that lets you enter value.

Screen

When you select Call screen or Call popup function choose screen that will be called after clicking button.

Command and args

This field is used in 2 ways:

1. When you select Call screen or Call popup function this field is used to enter global arguments separated by semicolons. Example:

name=pump; description=pump 1 description;

It's useful if you want to use some arguments in ST scripts. You can get them by using getglobalargument script command. Example:

string name = getglobalargument("name", "");

string description = getglobalargument("description","");

 

2. When you select Call external software function this field is used to enter OS commands and arguments to call external software. Example:

for MacOS: open /Applications/TextEdit.app

for Windows: C:/Progra~1/somesoftware.exe

for Android: ops.tesla.scada (name of the Android application package)

for iOS: http://www.youtube.com/watch?v=VIDEO_IDENTIFIER (youtube scheme for calling in iOS).