AdvanTrol-Pro V2.
50
Extend Configuration Software
SCTask
User Manual
SUPCON TECHNOLOGY CO., LTD.
Table of Contents
Table of Contents
Section 1 Extend Configuration ..................................................................................................1
1.1 Overview ...........................................................................................................................1
1.2 Menu Commands ..............................................................................................................3
1.3 Instructions For Functional Configurations ........................................................................5
1.3.1 New Data Group......................................................................................................5
1.3.2 New Data Region ....................................................................................................6
1.3.3 New Tag ..................................................................................................................7
1.3.4 Set Alarm Panel..................................................................................................... 11
1.3.5 Set Network Strategy.............................................................................................13
1.3.6 Set Alarm File ........................................................................................................15
1.3.7 Set Trend Files ......................................................................................................16
1.3.8 Set Event...............................................................................................................16
1.3.9 Set Task.................................................................................................................18
1.3.10 Data Extract Configuration ..................................................................................23
1.3.11 Application Examples ..........................................................................................28
Extend Configuration
Section 1 EXTEND CONFIGURATION
Extend configuration software SCTask, one of the most important
components of the AdvanTrol-Pro software package, is used to configure
tags, events and tasks of operator stations to implement of the extend
configuration function in the SUPCON WebField control systems, which
can provide adequate alarm content alarm methods, networking strategy
setting and support data input and output. Some of tasks that originally
fulfilled at control station will be operated by operator station, which not only
improves efficiency of the control station but also enhances the stability of
the system.
1.1 OVERVIEW
Click on the toolbar in the system configuration interface to enter
the “operation station setting” interface. Click Add to generate an extend
configuration file. The page title is Extend configuration , and the file
name is the same as configuration file name. One SCKey file has only one
SCTask file, i.e. only one SCTask file is used in operation. Extend
configuration file can be used by all operator teams. Modification of extend
configuration file in any operator team will lead to the change of other
operator team. As soon as an extend configuration file is created, command
Add becomes disabled in grey, as shown in Figure 1-1.
1
Extend Configuration
Figure 1-1 Operator station setting interface
Click Edit to open the extend configuration interface as shown in Figure
1-2.
Figure 1-2 Extend configuration interface
Title bar: displays the name of operating configuration file. File
name is the same as configuration file.
Menu bar: displays menus that are sorted. All of eight menus
2
Extend Configuration
are File, View, Tag, Overall Setting, Extend Configuration,
Compile, Data Extract and Help, each of which has a pull-down
menu.
Tool bar: common menu commands and functions are
presented in the form of graphical icons that are collectively
called toolbar. Tool item can move as a whole within the toolbar.
Descriptive text will appear when mouse is directed against an
icon.
Status bar: status bar is at the low part of SCTask editing panel.
Relative operation hints are displayed on the left and time is
displayed on the right.
Data View Area: data information structure is displayed in Data
View Area, and there are three items “Inner tags”, “Event” and
“Task” beneath each data group. Beneath “Inner tags” is data
region, and data variable is beneath data region, which has
such type of data variable as Integer, Bool, Float, String and
Structure variable.
Log Browse Compile Information: information on configuration
checking, compiling and ID resetting is listed in this window.
Information Area: detailed information of all elements including
data group, internal tag, event, task and structure etc is listed in
this window .
1.2 MENU COMMANDS
The menu bar lists 8 main menus for extend configuration, including File,
View, Tag, Overall Setting, Extend Configuration, Compile, Data extract and
Help. There are two ways to open the pull-down menu of a main menu. One
is to click it directly; the other is to press “Alt” and the letter beside it on the
keyboard at the same time, for example: press “Alt” and letter “V” at the
same time to open the “View” menu. Furthermore, click any position outside
the pull-down menu once or click the “Esc” key on the keyboard to close the
pull-down menu.
3
Extend Configuration
There have two methods to open an command in a pull-down menu:(1) if
the pull-down menu has been opened, click the command menu or press its
postfix letter (under the English-input status) on the keyboard, (2) If there is
shortcut key available for the command, you can execute the command by
pressing shortcut key on the keyboard directly.
Some commands in the pull-down menu have the suspension points “…”,
which mean that a dialogue box will be pop up when executing the
command.
Table 1-1 list of menu commands for extend configuration
Menu items Icon Function declaration
To create a new SCTask configuration file and go to a new
New Config.
editing page directly.
Open Config. To open an existing SCTask configuration file.
Save Config. To save a finished extend configuration on hard disk.
To print a specified configuration information. Optional
File
printing items: tag list, integer tag list, real type tag list,
Print
boolean tag list, character tag list, structure setting
information list, event setting list and task setting list.
Print Preview Preview
Print Setting Set printer and printing paper.
Exit Exit extend configuration
If it is selected, the toolbar can be displayed in edit panel,
Tool Bar
otherwise, it will be concealed.
If it is checked, the status bar be displayed in edit panel,
Status Bar
otherwise, it will be canceled.
View
If it is selected, the data browse window can be
Browse Data
displayed in edit panel, otherwise, it will be concealed.
If the icon is in hollow status, the Log browse window
Browse Log can be displayed in edit panel, otherwise, it will be
concealed.
Tag New Data Group Create a data group.
New Data Region Create a data region
New Tag Create a tag.
4
Extend Configuration
Delete Delete selected tag, event, task or data group.
Configure the Alarm panel displayed in AdvanTrol
Set Alarm Panel
panel.
Network strategy setting (network strategy is definitely
Set Network
Overall positioning of data requirement of data groups by operation
Strategy
setting station at network.)
Set Alarm File Set alarm file
Set Trend Files Configure trend file.
Extend Set Event Modify, delete or create event.
configura
tion
Set Task Modify, delete, create or displace task.
Check all configuration of data group and check whether
Check tag, event and task are all correct, and distribute ID address
for all compiled internal signal.
Compile SCTask file. Simulated operation of compiled
Compile
Compile configuration of data group and provide information about
simulation operation.
OPC tags must be To decide whether to examine OPC tag or not during
checked compilation.
Set Extract Task Set extracting data object and condition
Data
Extract
Set Extract Output Set the property of output file.
Help Topic Online help
Help
About SCTask File edition information
1.3 INSTRUCTIONS FOR FUNCTIONAL CONFIGURATIONS
Most functions of the extend configuration have their own configuration
interfaces, in which required functional configurations can be fulfilled.
1.3.1 NEW DATA GROUP
Click the icon on toolbar in the Extend configuration , or click the
menu command Tag > New Data Group , a new data group will be
created automatically based on inner sorting and then the “Set data groups”
interface will pop up as shown in Figure 1-3.
5
Extend Configuration
Figure 1-3 Set data groups interface
Data group name: to be generated automatically based on
inner sorting.
Data group desc.: input description of data group.
There are 32 data groups at most. Data group 0 is inner data group, which
is created automatically and invisible to user. Data group 0 includes all IO
tags of SCKey that can be operated on any operator station directly.
1.3.2 NEW DATA REGION
Data region is the secondary data distribution of data group. A No.0 region
will be generated automatically when creating a data group. When the new
data region is selected, inner sorting will be realized.
Click the menu command Tag > New Data Region in Extend
configuration interface to open the “Add data region” interface as shown
in Figure 1-4.
6
Extend Configuration
Figure 1-4 Add data region interface
Group name: select from dropdown list the data group under
which data region is created.
Region name: input name of data region.
Short desc.: input the abbreviated tag of data region name.
This group already has region: list data regions created under
the data group.
Click “OK”, and information related to newly added data region will appear
in the data browse window and information area.
1.3.3 NEW TAG
Click the icon on toolbar, or click the menu button Tag > New Tag
to open the following interface. There are two tag pages, “Basic tag
information” and “Alarm setting”.
7
Extend Configuration
Figure 1-5 Inner tag configuration interface
Configuration items in “Basic tag information” page:
Tag serial No.: tag serial No. is automatically generated.
Tag: tag name is made up of letter, underline and number; t
must begin with underline and followed by letters; its length
shall be less than 20 characters. If the tag name is not available,
a hint will be given as shown in Figure 1-6 when switch from
one tag page to the other or click the button OK . An
underline will be automatically added if the tag name is not
started with it.
Figure 1-6 Tag error hint
8
Extend Configuration
Tag type: includes Integer, Bool, Float, String and Structure
variable.
Source type: have two types, local memory and local drive.
When the type is the local memory, tag is memory variable and
value can be initialized and value assignment is applicable.
Here, the IO channel column is disabled in grey. When the
type is the local drive, the IO channel column is effective.
Please select the IO channel mapping tag, i.e. data of a tag is
the data of specified IO channel.
Element: if tag is structure tag, this option is effective. Options
are all elements involved in selected structure.
Tag desc.: Explanative word about tags.
Group: data group which a tag belongs to.
Region: select from pull-down list the region to which a tag data
region which a tag belongs to.
Max: maximum value of tag.
Min: minimum value of tag.
Unit: unit of the tag. User can select unit from pull-down list, or
input unit.
Resolution: The minimum value that can be identified by the
tag.
Initialization: assign initial value for tag.
IO Channel: when tag source is local drive, select transmit
value to IO channel tag corresponding to the tag . When option
I/O data source is set as AdvanTrol or ModBus ,
please click icon to open a dialog box for you to select
required tag.
IO data source: IO data source includes AdvanTrol tag (I/O tags
9
Extend Configuration
defined and customized variables in SCKey configuration),
OPC tag (Tags obtained through local or remote OPC
connection) and ModBus tag (Tags connected through ModBus
protocol in AdvMBLink configuration). When AdvanTrol or
ModBus is selected, user can select tag using the button
for I/O channel ; when OPC is selected, tag information
comes from OPC server, in this case, the option OPC data
source will be automatically added to IO channel column that
is used to define internal tag as shown in Figure 1-7. Click the
button first to open dialog OPC list , and
select SUPCON.AdvOPCServer from the OPC list as
shown in Figure 1-8. Then, click the button for I/O
channel to select tags.
Figure 1-7 Data source added to IO Channel
Figure 1-8 OPC list
Sample mode: broadcast mode and request response mode.
The broadcast mode refers to automatic sampling at a certain
interval; request response mode means a request for sampling
is sent out when condition is mature.
10
Extend Configuration
Sample time: data collection cycle.
Trend set button: to decide whether applies history record to
this tag, and define the minimum recording interval, 1 sec
generally.
Note: Max, Min, Unit, Resolution, Initialization are included in Basic
information column. There is no basic information of character tag;
see Figure 1-9 for basic information of tag of Bool type.
Figure 1-9 Basic information on Bool tag
ON desc.: explanative words on status ”ON” in which an event
exists.
OFF desc.: explanative words on status ”OFF” in which an
event exists.
Initialization: define initial status.
Configuration items in Alarm setting page
Click the label Alarm setting to switch to relevant alarm setting panel.
Alarm setting items for operation stations vary subject to data type. When
tag is character type, there is no alarm setting item; when tag is Bool or real
type, please see the section I/O point alarm configuration of System
configuration for setting alarm.
1.3.4 SET ALARM PANEL
In the light of data tag region, alarm panel enables centralized display of
11
Extend Configuration
alarms corresponding to tags belong to a data region in real-time
monitoring interface.
Click the menu command Overall Setting > Set Alarm Panel in
Extend configuration interface to open Alarm panel configuration as
shown in Figure 1-10.
Figure 1-10 Alarm panel setting interface
Operator Team Label: select operator team that uses alarm panel.
Rows and columns setting: user can input an integer varies from 0 to 3 in
Row and an integer varies from 1 to 32 in Column .
Set: click the button set to open a hint message box as shown in Figure
1-11. Then, click OK to make the setting effective.
Figure 1-11 Hint message box about light alarm setting
Alarm panel button: double click alarm panel button one by one to open
Select regions related to alarm panel as shown in Figure 1-12. Input name
of alarm panel in Alarm panel window. Select data group from pull down
menu, then all regions corresponding to the data group selected will appear
in the Data region name . Select any region by checking the check box
corresponding to regions, then click OK to make setting effective, or
click Cancel to cancel the setting.
12
Extend Configuration
Figure 1-12 regions related to alarm panel
1.3.5 SET NETWORK STRATEGY
Network strategy refers to definite positioning of data request of data
groups by operator station at network.
Click the menu command Overall Setting > Set Network Strategy in
Extend configuration interface. A dialog Strategy List Setting will be
opened as shown in Figure 1-13.
Figure 1-13 Strategy list setting interface
Click the button Add to add a single strategy list. Serial No. is
generated automatically by sequence. Name is defined by user. For
13
Extend Configuration
operation log, local connection, client terminal or server are optional. Click
Modify to open the Associated Operator Team Setting interface. Then,
user can select associated operator team as shown in Figure 1-14.
Figure 1-14 Associated operator team setting
Click label Detail setting to open a dialog for each network strategy list
specific setting as shown in Figure 1-15.
Figure 1-15 Network strategy detail setting
All groups are listed in the column Group name , and such status as local
connection, client terminal, server or disconnection can be applied to RT
data , RT alarm , trend record and alarm record . Click the button
Setting to open a dialog Region property Setting as shown in Figure
14
Extend Configuration
1-16.
Figure 1-16 Region Property Setting
All regions of a group are listed in the column Region name . The column
Data Operable allows to whether to make region operable or not. The
default setting for No.0 region of each group is operable.
1.3.6 SET ALARM FILE
Click the menu command Overall Setting > Set Alarm File in Extend
configuration interface, and the following interface will be opened as
shown in Figure 1-17.
Figure 1-17 Alarm record file setting interface
Alarm entries recorded in the file: number of alarm record on a
file. As shown in Figure 1-17, if 10000 entries is selected, an
alarm record file will be created automatically for each 10,000
pieces of alarm.
15
Extend Configuration
Auto-delete old record files are more than: to define number of
records for which record file will be kept. For example, if 30
is selected, when record files add up to 30, the 31th file will be
created automatically to replace the first record file, so on and
so forth.
1.3.7 SET TREND FILES
Click the menu command Overall Setting > Set Trend Files in
Extend configuration interface, and the following interface will be opened
as shown in Figure 1-18.
Figure 1-18 Dialog Set trend file
Recording time: if 2 hours is selected, a history record file
will be created automatically every two hours.
The saving data time of Database: if 30 days is selected, a
history record file will be created automatically 30 days later,
which replaces the one created 30 days before, so on and so
forth.
1.3.8 SET EVENT
Click the menu command Extend configuration > Set Event in
Extend configuration interface or click the icon on toolbar to
open the Event overview interface as shown in Figure 1-19.
16
Extend Configuration
Figure 1-19 Event overview
The button New in the panel is used to create an event, the button
Modify is used to modify a specified event and the button Delete is
used to delete a specified event. Option Data group is used to
determine the data group which an event belongs to.
Click the button New to open a dialog Define event as shown in
Figure 1-20.
Figure 1-20 Define event
Event: event is numbered automatically.
Desc.: user’s explanation on the event.
Expression: the expression reflects the occurrence of the event
(the result value is of Bool type). User may input expression
directly, or input expression by clicking buttons such as Tags ,
Function , Operator and Macro definition . Value
assignment operator = can not be used in expression, and
17
Extend Configuration
only the relation operator == can be used.
Tags: Tags button is used to inquire various configured tags.
User can select tag to be used from I/O data and extend
configuration variables. Click I/O data to open dialog
Control tag . Click Extend configuration variable to open
dialog Display tag .
Function: the button Function is used to list all functions
available.
Operator: the button Operator is used to list all operators
available.
Macro definition: the button Macro definition is used to list
all macros available.
Event DZ: to define dead zone of system action. Within dead
zone, task will be executed only once, i.e. task will not be
executed any more within defined dead zone even if event
occurs again.
1.3.9 SET TASK
Click the menu command Extend configuration > Set task in Extend
configuration interface or click the icon on toolbar to open the
Task overview interface as shown in Figure 1-21.
18
Extend Configuration
Figure 1-21 Task overview
Data group: selected from pull down list the data group to which
an event belongs.
Modify: click the button Modify to modify task specified in
task list.
Delete: click the button Delete to delete task specified in
task list.
New: click the button New to create a task.
Move to top: change sequence of specified task in task list by
moving the task to the top of task list (sequence number being
1).
Shift up: move a specified task upward by one line (sequence
number reduces by one).
Shift down: move a specified task downward by one line
(sequence number increases by one).
Move to bottom: move a specified task to the bottom of the task
list.
19
Extend Configuration
Click the button New to open a box by which,
user can select type of task to be created.
Dialog New sequential task is as shown in Figure 1-22.
Figure 1-22 New sequential task
Task: task is numbered automatically.
Desc.: user’s explanation on the task.
Type: explanation for task type, such as sequence task, loop
task, and condition task.
Associated event: conditions on which a task occurs, including
FALSE event, TRUE event and various existing events. In case
the value is FALSE, the task will not occur on initiative but
occurs when called by other task. If TRUE is selected, event
will necessarily occur upon each cycle. If Specific event is
selected, the task will not be executed until the event occurs.
20
Extend Configuration
Response once: task is to be executed upon occurrence of
relevant event, i.e. when FALSE changed to TRUE.
Call task: when Call task is selected, user can select a task
from established task list as current task.
Expression: compose expression for current task by using such
buttons as Tag , Function , Variable , Operator and
Macro definition or by inputting it.
Tags: click the button Tags , and select operation tag from I/O
data and extend configuration variable which composes the
expression.
Function: click the button Function , then select function
needed from Function list popped up, which composes the
expression.
Variable: click the button Variable , then select variable
needed from Variable list popped up, which composes the
expression.
Operator: click the button Operator , then select operator
needed from Operator list popped up, which composes the
expression.
Macro definition: click the button Macro definition , then
select macro definition needed from Macro definition list
popped up, which composes the expression.
Add: click the button Add to add composed task expression
or task called to task list.
Delete: click the button Delete to delete specified task from
task list.
Modify: click the button Modify to modify specified task
listed in task list.
Shift up: move a specified task in task list upward by one line.
21
Extend Configuration
Shift down: move a specified task in task list downward by one
line.
When create or modify a sequence task, user can add many tasks to task
list by calling task or composing task expression. Tasks will be executed by
sequence in task list.
A dialog “New circular task” is as shown in Figure 1-23.
Figure 1-23 New circular task
Interruption condition and loop times are required to be set firstly for
creating a loop task and add them to task list, then add the loop task to task
list by calling task or expression.
A dialog “New condition task” is as shown in Figure 1-24.
22
Extend Configuration
Figure 1-24 New condition task
In creating a condition task, click the button Add when both condition
and task are defined to add task to task list. Each task has its judge
condition.
1.3.10 DATA EXTRACT CONFIGURATION
Data extraction refers to AdvanTrol-Pro providing various data of DCS in
the form of text or database. Data extraction configuration is required
before executing data extraction, which includes Set Extract Task and
Set Extract Output .
Click the menu command Data extraction > Set Extract Task in
Extend configuration interface to open the “Extract task setting” interface
as shown in Figure 1-25.
23
Extend Configuration
Figure 1-25 Extract task setting
Tag: object of the data to be extracted. Click the button to
open a data type selection box
. Select IO data… to open
a dialog Control tag selection , where all tag types of all
controllers are available; or select Extend configuration
variable… to open a dialog Tag selection , where all types
of tags of data groups are available.
Valid time: the difference between data refreshing interval and
event duration time. If such difference exceeds specified
effective time, then extract output do not act, if such difference
is small than specified effective time, then extract task.
Event: control and extract the condition of task occurring. Click
the button to open a dialog Event list as shown in
Figure 1-26. User can select an event from the dialog.
24
Extend Configuration
Figure 1-26 Dialog Event list
Response once: extraction of task is effective upon occurrence
of relevant event, i.e. when FALSE changed to TRUE.
Add: click the button Add to add Extraction task setting . A
tag and an event can constitute an extraction task. Either of the
two alone can not constitute a task and therefore user can not
add Extraction task setting .
Modify: click the button Modify to modify extraction task
listed in set list. Click an extraction task in set list. User can
modify tag, time, effective time and response one by one. Then
click the button Modify to make the modification of
extraction task effective.
Delete: click the button Delete to delete extraction task
listed in set list.
OK: click the button OK to confirm and close dialog when
extraction task setting is finished.
Note: one tag can correspond to only one event. Adding an edited tag
constitutes a new event and will lead to open a hint message box as
shown in Figure 1-27, which will be treated as a modification to a task.
Click Yes to effect the modification to original setting and No to
25
Extend Configuration
leave it unchanged.
Figure 1-27 Hint message box
Click the menu command Data extraction > Set Extract Output in
Extend configuration interface to open the Extract setting interface as
shown in Figure 1-28.
Figure 1-28 Extract out setting
Record period: generated a record file every hour. Interval
available includes 2 hours, 4 hours, 8 hours, 16 hours and 24
hours.
Record mode: record may take the form of text or database.
Record gather prefix: run initial characters of name of record
file generated upon the execution of data extraction, and the
actual file name will include date and time when the file is
generated attached to the prefix of record collection.
Auto-delete old records or not: to enable this function by ticking
26
Extend Configuration
it. In this case, user will be required to fill in the number of
record file saved.
Data saving path: define data saving path according to the
record mode. If record takes the form of text, click the button
to select data directory directly; and if record takes the
form of database, please follow the steps below:
1) Click the button to open a dialog Data Link Properties
which has four pages, they are Provider , Connection ,
Advanced and All .
Figure 1-29 Data link properties
2) All data providers are listed in the window Provider . Please
select Microsoft OLE DB Provider for ODBC Drivers protocol
and click Next to switch to the dialog Connection as shown in
Figure 1-30.
27
Extend Configuration
Figure 1-30 Data link properties
3) Click the button , select the created “Access database file
(*.mdb)”.Then, click the button . If connection is ok,
please click the button OK and exit. Access authority can be
defined in page Advanced . The four pages provide an access to
modify initial property of data, but there is no need to modify initial
property.
1.3.11 APPLICATION EXAMPLES
Case1: create a new event for an existing event. This event will be used to
judge whether current year is 2003.
Setting in a dialog Modify event is as follows:
Figure 1-31 Modify event
Case 2: create a task (task 1) in sequence task bar. Set relevant event for
28
Extend Configuration
this task as event 1. Thus, when event 1 is TRUE, task will be executed
every one second. In the first step, value of tag _A_01 is increased by 3,
then, the tag value obtained in the first step increased by 3 again will be
assigned to tag _A_02, and in the third step, after the value of tag _A_02 is
multiplied by 2, and then it is assigned to tag _C_01.
Result of task 1 setting is as follows:
Figure 1-32 Setting of task 1
Case 3: create a task (task 2) that set event 1 as its related event in loop
task column. This task enables to increase value of tag _C_02 by 3 when
current time is less than 50s. Ten times of task take place every one cycle.
Result of task 2 setting is as follows:
29
Extend Configuration
Figure 1-33 Setting of task 2
Case 4: change correlative event for task mentioned in case 2 and case 3
into FALSE, create a task (task 3) in condition task column, and set event 1
as its correlative event. Task 1 (i.e. sequence task mentioned in case 1) will
be called when event 1 is true and remainder obtained by dividing current
time (s) by 10 is 0; and task 2 (loop task mentioned in case2) will be called
when remainder obtained by dividing current time by 9 is 0; and value of tag
_A_04 will be increased by 5 when remainder obtained by dividing current
time (s) by 7 is 0.
Result of task 3 setting is as follows:
30
Extend Configuration
Figure 1-34 Setting of task 3
31