Professional Documents
Culture Documents
User Manual For MACS 5.2.5B
User Manual For MACS 5.2.5B
User Manual For MACS 5.2.5B
Version 1.0
May 2013
J13-B16-000247
Copyright Notice
Since the equipment explained in this manual has a variety of uses, the user
and those responsible for applying this equipment must satisfy themselves as
to the acceptability of each application and use of the equipment. Under no
circumstances will HollySys be responsible or liable for any damage, including
indirect or consequential losses resulting from the use, misuse, or application
of this equipment.
This manual is provided only for commercial users to read. Without prior
written permission of Beijing HollySys Co., Ltd, no part of this manual should
be reproduced and transmitted in any forms by any means, including electronic,
mechanical or otherwise regardless of whatever reasons and purposes. We
will investigate violator’s legal liability in accordance with the relevant laws.
The text HOLLiAS MACS, HollySys, and the logos are registered
trademarks of Beijing HollySys Co., Ltd. All other trademarks are the property
of their respective holders.
• The safety note or using convention of system that user must pay attention
to.
iii
5.8 DCS Anti-virus ......................................................................................... 674
5.9 Using Log Packer .................................................................................... 676
5.10 Instruction of inter-domain tag............................................................... 681
5.11 Configuration Instruction of SM020 ....................................................... 689
5.12 Why the configuration is not generated when import GSD file ........... 697
5.13 The Usage of Configuration File Editor ................................................. 701
5.14 Introduction of Dongle ............................................................................ 704
iv
1.3.1 HSALGMAN .................................................................................. 765
1.3.2 HSCSLAVE ................................................................................... 770
1.3.3 HSCSLAVE5 ................................................................................. 773
1.3.4 HSDigMAN.................................................................................... 776
1.3.5 HSDLCTRL ................................................................................... 778
1.3.6 HSDLCTRL2 ................................................................................. 782
1.3.7 HSDLCTRL5 ................................................................................. 787
1.3.8 HSPID ........................................................................................... 793
1.3.9 HSSCS ......................................................................................... 802
1.3.10 HSSCS5 ....................................................................................... 815
1.3.11 HSSSLAVE ................................................................................... 836
1.3.12 HSVALVE ..................................................................................... 838
1.3.13 HSVALVE5 ................................................................................... 840
1.3.14 HSVMAN ...................................................................................... 842
1.3.15 HSVPID ........................................................................................ 846
1.4 HS_AlmLimSec.lib ................................................................................... 853
1.4.1 AI_RED ......................................................................................... 853
1.4.2 AI_Red_Sel ................................................................................... 855
1.4.3 BOOL_RED .................................................................................. 858
1.4.4 HSALARMSPARK ........................................................................ 860
1.4.5 HSALM_AM .................................................................................. 862
1.4.6 HSALM_DV................................................................................... 865
1.4.7 HSALM_RT ................................................................................... 866
1.4.8 HSDIGSW ..................................................................................... 868
1.4.9 HSLIM_HL .................................................................................... 869
1.4.10 HSLIM_RATE ............................................................................... 871
1.4.11 HSMEDSEL .................................................................................. 872
1.4.12 HSSFT .......................................................................................... 878
1.5 HS_Special.lib .......................................................................................... 881
1.5.1 HSAMEMORY .............................................................................. 881
1.5.2 HSBAL2 ........................................................................................ 883
1.5.3 HSCHARC1 .................................................................................. 886
1.5.4 HSSC ............................................................................................ 887
1.5.5 HSSC1 .......................................................................................... 889
1.5.6 HSSC2 .......................................................................................... 893
1.6 HS_Cnvt.lib .............................................................................................. 901
1.6.1 E_H ............................................................................................... 902
1.6.2 ELC_E .......................................................................................... 904
1.6.3 FM148F_H_E................................................................................ 905
1.6.4 FM148F_H_ELC ........................................................................... 906
1.6.5 H_CT ............................................................................................ 908
1.6.6 H_CT_R ........................................................................................ 909
1.6.7 H_E ............................................................................................... 911
1.6.8 H_E_S .......................................................................................... 914
1.6.9 H_ELC .......................................................................................... 916
1.6.10 H_ELC_R ...................................................................................... 917
1.6.11 H_PI .............................................................................................. 920
1.6.12 H_RTD .......................................................................................... 921
v
1.6.13 H_TC ............................................................................................ 923
1.6.14 UpEnd ........................................................................................... 925
1.7 SIMU_FOP.lib (simulation algorithm) ..................................................... 927
1.7.1 Simu_AO ...................................................................................... 927
1.7.2 SIMU_DO ..................................................................................... 929
1.8 Standard ................................................................................................... 931
1.8.1 RS ................................................................................................. 931
1.8.2 SEMA ............................................................................................ 932
1.8.3 SR ................................................................................................. 933
1.8.4 CTD .............................................................................................. 933
1.8.5 CTU .............................................................................................. 935
1.8.6 CTUD ............................................................................................ 936
1.8.7 NetvarTON .................................................................................... 937
1.8.8 RTC .............................................................................................. 938
1.8.9 TOF............................................................................................... 940
1.8.10 TON .............................................................................................. 941
1.8.11 TP ................................................................................................. 942
1.8.12 F_TRIG ......................................................................................... 944
1.8.13 R_TRIG ......................................................................................... 944
1.8.14 CONCAT ....................................................................................... 945
1.8.15 DELETE ........................................................................................ 946
1.8.16 FIND ............................................................................................. 947
1.8.17 INSERT ......................................................................................... 947
1.8.18 LEFT ............................................................................................. 948
1.8.19 LEN ............................................................................................... 949
1.8.20 MID ............................................................................................... 950
1.8.21 REPLACE ..................................................................................... 950
1.8.22 RIGHT ........................................................................................... 951
1.9 Util............................................................................................................. 953
1.9.1 HYSTERESIS ............................................................................... 953
1.9.2 LIMITALARM ................................................................................ 953
1.9.3 BCD_TO_INT................................................................................ 954
1.9.4 INT_TO_BCD................................................................................ 955
1.9.5 BLINK ........................................................................................... 955
1.9.6 GEN .............................................................................................. 956
1.9.7 PACK ............................................................................................ 957
1.9.8 UNPACK ....................................................................................... 959
1.9.9 PUTBIT ......................................................................................... 960
1.9.10 EXTRACT ..................................................................................... 960
1.9.11 PD ................................................................................................. 961
1.9.12 PID ................................................................................................ 963
1.9.13 PID_FIXCYCLE ............................................................................ 965
1.9.14 CHARCURVE ............................................................................... 967
1.9.15 RAMP_INT .................................................................................... 968
1.9.16 RAMP_REAL ................................................................................ 969
1.9.17 DERIVATIVE................................................................................. 970
1.9.18 INTEGRAL .................................................................................... 971
1.9.19 STATISTICS_INT ......................................................................... 972
vi
1.9.20 STATISTICS_REAL ...................................................................... 973
1.9.21 VARIANCE.................................................................................... 974
1.10 HSSyslib ................................................................................................... 975
1.10.1 Get_Sys_Info ................................................................................ 975
1.10.2 Get_Task_Info .............................................................................. 975
1.10.3 HSGetIECInterval ......................................................................... 977
1.10.4 HSRTC ......................................................................................... 978
1.10.5 HSTIMERJUDGE.......................................................................... 979
1.10.6 NetLoad ........................................................................................ 980
1.10.7 Sysper ........................................................................................... 981
1.10.8 INIPULSE ..................................................................................... 982
1.11 Property setting for Persistent ............................................................... 988
1.11.1 Principle ........................................................................................ 988
1.11.2 Checked result .............................................................................. 988
vii
SECTION 1
Introduction of HOLLiAS
MACS
This manual is composed of five sections, which will help you understand the
software and make use of it in your application.
Section 3 is about the algorithm configuration software for controller. It will help
you set up the algorithm of your project using several IEC standard
programming languages. Both illustrations and samples will be provided to
help you understand how the software works. And some know-how can make
your work more efficient.
Section 4 is the using guide of online operation. It will indicate the operators on
site how to use our software after the system was started.
1
SECTION 1 Introduction of HOLLiAS MACS
At the end of this manual, there are a few necessary appendixes, such as the
detailed descriptions of function blocks, special topics for MACS 5.2.5B and
notes in configuration. The frequently asked questions and common
precautions are listed to help you to solve the problems, and the index with key
words helps you to quickly find what you want to read.
1.2 Abbreviations
The following abbreviations are in use, show in Table 1.2-1 :
Engineer Station ES
Operator Station OPS
Field Control Station FCS
Real-time Database RTDB
Historical Database HDB
Monitoring Net MNET
System Net SNET
Control Net CNET
Multi-Domain-Management MDM
Manufacturing Execution System MES
Client/Server CS
Communication Station CMS
Main Control Unit MCU
2
SECTION 1 Introduction of HOLLiAS MACS
3
SECTION 1 Introduction of HOLLiAS MACS
4
-Figure 1.3.1-1 HOLLiAS System
Architecture
SECTION 1 Introduction of HOLLiAS MACS
Due to the improvement in system integration and field bus, users can
configure the system flexibly so as to reduce the total cost of projects.
Open System and Dedicated Application Solution
MACS is the DCS system of HOLLiAS. As shown in the dash box in Figure
1.3-1, MACS, the base of the entire system, from which all the field data come.
MACS uses Client/Server structure to build its software system. In this
structure the Server plays the role that provides all kinds of service to the
Client such as historical data, print, etc, while the Client gets access to the
information through visiting Server. Regardless of the Client data type, the
5
SECTION 1 Introduction of HOLLiAS MACS
Server only replies to the requests that from the Client, which makes easy
configuration in both software and hardware.
MACS connects the third party system by OPC and ModBus protocol. Upper
computer communicates with lower computer by HollySys’ proprietary HSIE
industrial Ethernet protocol. Lower computer transfers data in the method of
Profibus-DP or HART bus.
The hardware of MACS V5.2.5B is responsible for the data collection and
transmission and command transceiving, etc. The main components of the
MACS hardware are:
6
SECTION 1 Introduction of HOLLiAS MACS
Field Control Station -- consists of MCU (Main Control Unit), I/O module,
terminal module, rack and control cabinet, etc.
MCU (Main Control Unit) -- is a control module and also known as lower
machine. It deals with the field data through the algorithm pre-downloaded in
the memory, and then transfers the results to server or transfers the relevant
command to actuator to control the real process.
7
SECTION 1 Introduction of HOLLiAS MACS
The network architecture of MACS can be classified into standard type and
single-domain type. In both cases, all of the important components like server,
controller and network are collocated redundantly in order to ensure the
reliability of the communication.
Standard Type
The standard architecture has three layers from top to bottom as shown in
Figure 1.3.2-2.
8
SECTION 1 Introduction of HOLLiAS MACS
MNET is a TCP/IP Ethernet connecting OPS, ES, CMS, system server, etc.
Due to the redundancy of the system, a pair of switches is needed. The
functions of MNET are as follows:
Obtain the data from system servers and display it to users on the
terminal displayer.
9
SECTION 1 Introduction of HOLLiAS MACS
In standard type, system servers provide most system services. This kind of
structure improves the network quality and makes itself suitable for large-scale
system.
• Wherein the large-scale system is the one which includes more than 3000
I/O points and more than 7 I/O control stations; Middle-scale system is the
one which includes about 2000~2800 I/O points and 5~7 I/O control
stations.
Single-Domain Type
10
SECTION 1 Introduction of HOLLiAS MACS
OPS, ES, HIS, switch and others are included in this layer. This layer
communicates with the lower layer through the redundant TCP/IP protocol
Ethernet. It displays the processed field data to users and then transfers users’
operational command to lower layer. The devices including OPS, ES, CMS,
HIS, printer, etc. are connect into a network by two switches, In order to
guarantee the communication reliability of the system, some important devices
such as HIS, switch, etc. are redundant configuration.
This layer consists of FCS, I/O modules, etc. FCS communicates with I/O
devices through Profibus-DP. I/O devices transfer the collected data to MCU.
MCU processes the data according to the pre-downloaded algorithm and
transfers the data needing to be displayed to the upper monitoring and control
layer. The instructions from upper layer or FCS are also transferred to the field
actuator. Field control layer supports HART and FF protocol through
specialized hardware modules.
Hardware Configuration
It is used to configure the hardware in the new project. The hardware includes
network devices on monitoring net and system net. The I/O unit configuration
is accomplished in the field control station.
11
SECTION 1 Introduction of HOLLiAS MACS
Graphical Editor
It helps to generate online operation flow chart and interface template. The rich
symbol library can help users to draw varies graphic interface and plot charts
for data display. User-defined symbol library is also supported for diversity and
convenience.
This is the algorithm software which helps to configure and download the
algorithm of the project. It integrates the function of editing, management,
simulation, online debugging and hardware configuration. It supports all six
programming languages specified in IEC61131-3.
Report Configuration
This tool is used to edit the report according to field process data. That is to
define the report and add the dynamic point information.
This tool is used to download the files into system servers and engineer
stations.
Historical data of the system is stored by dates. This tool can query all the
system historical data to help users to analyze the system running condition or
accident causes.
12
SECTION 1 Introduction of HOLLiAS MACS
Hardware:
128M RAM
2 Ethernet Cards
Hardware:
1.4.2 Installation
1.4.2.1 How to install
OPS is to monitor and check the real-time data, and manipulate the devices.
Detailed instructions for each step are shown in the following sections.
• You'd better uninstall the old version before you install a new one.
1. Find the setup.exe file from your installation path in Windows Explorer,
then double-click it, the Software Production Installation page will be
shown in Figure 1.4.2-1
14
SECTION 1 Introduction of HOLLiAS MACS
3. Select the destination location where the program files are stored, as
shown in Figure 1.4.2-3.
The default installation path is <C:\ MACSV\>, or click Browse to specify
15
SECTION 1 Introduction of HOLLiAS MACS
another available path for the files, and then click Next.
16
SECTION 1 Introduction of HOLLiAS MACS
Below the components box, the capacity requirements of the installation and
the capacity available in system will be calculated automatically and displayed.
17
SECTION 1 Introduction of HOLLiAS MACS
18
SECTION 1 Introduction of HOLLiAS MACS
The open source office software OpenOffice.org can substitute for Microsoft
Excel to complete the functions in system: assists in class structure editing,
database import and export, measuring point list import, report editing,
replacing tag names in batch, online report printing, etc. please select the tool
according to the software be installed on the computer.
6. Please select the tool you need, as shown in Figure 1.4.2-7 and then
click Next.
19
SECTION 1 Introduction of HOLLiAS MACS
20
SECTION 1 Introduction of HOLLiAS MACS
• “A” and “B” here only means that the node number of servers in the
network are different. The one which starts first will be the primary server
(i.e. master server), and the other is secondary server (i.e. redundant
server). “Master” or “redundant” indicates the working status of a server.
8. On the timing mode for server page, three kinds of timing methods for
server are listed, shown in Figure 1.4.2-9.
21
SECTION 1 Introduction of HOLLiAS MACS
• Only computer connected with FM197 or GPS hardware can select the
previous two choices.
9. If the item “by GPS” or “by FM197” is checked, the window Please
select Port will popup, after you click Next, as shown in Figure
1.4.2-10. Otherwise the program will skip this step.
22
SECTION 1 Introduction of HOLLiAS MACS
• Please ensure that you have selected the correct serial port for GPS signal
receiving: COM1 or COM2!
10. On the confirmation page, the components that will be installed are
listed, as shown in Figure 1.4.2-11.
23
SECTION 1 Introduction of HOLLiAS MACS
On this page, please check whether these components are what you want to
install. If you want to change any setting before this step, click Back to the
corresponding page which you want. Otherwise, click Next to start installation.
Click About on each window, you can see the version information of current
software, as shown in Figure 1.4.2-12:
11. On the installation state page, there is a bar showing the progress of
installation, shown in Figure 1.4.2-13.
24
SECTION 1 Introduction of HOLLiAS MACS
After the installation starts, click Cancel to stop and quit the procedure of
installation. The following dialog box will pop up, as shown in Figure 1.4.2-14.
25
SECTION 1 Introduction of HOLLiAS MACS
Click Yes to exit the installation. There is a page to remind that the installation
has been interrupted.
After Typical Installation, you can check the components of the software. Open
the [Start] → [Programs] → [MACS] menu, as shown in Figure 1.4.2-15.
MACS_ENG
FCS
Download
Graph Configuration
Report Configuration
RTSLoader
System Configuration
MACS_OPS
Configuration
Start OPS
MACS_SERVER
Start Server
MACSV_TOOLs
ControlerLogTool
Logpacher
ModuleConfig
SM020Config
Graph: provides the graphs and icon libraries supplied by the software.
Report: provides the executive program and the corresponding dynamic link
library on report edit.
User: stores all project files including the data of project settings, graph,
report and so on.
1.4.3 Uninstallation
• Exit the HOLLiAS MACS services and program before the uninstallation.
The following contents describe the method about how to uninstall the
HOLLiAS MACS software:
Please follow the instructions below to uninstall the software from the control
panel:
28
SECTION 1 Introduction of HOLLiAS MACS
Close all programs of HOLLiAS MACS. Click Start, and then click Control
Panel in Settings.
Select the HOLLiAS MACS line. in the list of Currently installed Programs.
Click Remove.
It will pop-up a prompt to remind you whether to delete the program or not, as
shown in Figure 1.4.3-2.
29
SECTION 1 Introduction of HOLLiAS MACS
Wait until the unintallation is finished. There is a dialog box to remind the
uninstalation has finished. You are required to restart the computer right now or
later, it is recommended to restart the computer right now to delete the
components completely as shown in Figure 1.4.3-4. Click Yes.
computer. If the software is installed again, these files will not be lost and
be still in related directory.
• If you want to delete all the files of the projects, please delete them
manually in the installation path folder.
• If there are patches for this software, please read the instructions provided
by the patch program.
• OpenOffice.org 3.2 supports the editing Excel files. It means that, when
configuring report, even the“.xls” report file can be edited and printed by
Calc of OpenOffice 3.2.
1
OpenOffice.org: OpenOffice.org offers an open source product which can be applied on multi-platforms,
including word processor, spreadsheet software, and presentation program, like writer, impress, calc,
draw, math, base.
31
SECTION 1 Introduction of HOLLiAS MACS
Click Next, it tips setting the storage directory of decompressed files, as shown
in Figure 1.4.3-2:
32
SECTION 1 Introduction of HOLLiAS MACS
After setting target folder, click button Unpack, it shows progress bar of
decompression process, as shown in Figure 1.4.3-3:
33
SECTION 1 Introduction of HOLLiAS MACS
34
SECTION 1 Introduction of HOLLiAS MACS
35
SECTION 1 Introduction of HOLLiAS MACS
Complete Installation
Custom Installation
Custom installation can also be selected, which means user can selectively
install OpenOffoce.org modules.
36
SECTION 1 Introduction of HOLLiAS MACS
When Custom type is selected, click button Next, and it pops up a module for
selecting window “custom install”, as shown in Figure 1.4.3-7:
37
SECTION 1 Introduction of HOLLiAS MACS
User must select module OpenOffice.org Calc which is under the node of
OpenOffice.org program modules. The default installation path is “C:\Program
Files\”. Click button Change and it pops up a Change Current Destination
Folder dialog box, input target folder name in the field of Folder name, click
OK to finish the process of target folder altering.
After setting the target folder and installation types, click button Next, shown as
in Figure 1.4.3-8:
38
SECTION 1 Introduction of HOLLiAS MACS
For canceling the installation of one module, click the name of the module, and
select This feature will not be available in dropdown menu, then cancel it, as
shown in Figure 1.4.3-9:
39
SECTION 1 Introduction of HOLLiAS MACS
5. Start installation
After above settings, click Next, a prompt will pop up to remind you whether to
start installation, as shown in Figure 1.4.3-10.Click Install to start, while click
Back if the steps above need to be changed. Click Cancel to exit the wizard.
40
SECTION 1 Introduction of HOLLiAS MACS
41
SECTION 1 Introduction of HOLLiAS MACS
42
SECTION 1 Introduction of HOLLiAS MACS
It will prompt to set user name, update online or not, and register or not, as
shown in Figure 1.4.3-14, Figure 1.4.3-15, Figure 1.4.3-16. OpenOffice will
start when finished.
43
SECTION 1 Introduction of HOLLiAS MACS
44
SECTION 1 Introduction of HOLLiAS MACS
A complete project is set up through all these steps as shown in Figure 1.6-1.
Then the components of the diagram will be discussed individually in the
following sections.
1. Preparation
You’d better to finish some work before starting configuration. It will be very
useful for further steps if they are done:
Control Schema
Logic flow charts for every control unit should be on hand.
2. Setting up project
Before setting up a project, you need to name the project first. Then set the
number of group and domain. The database is therefore set up after you name
the project.
3. Hardware configuration
There are two kinds of configurations of the hardware you need to do for the
new project.
46
SECTION 1 Introduction of HOLLiAS MACS
47
SECTION 1 Introduction of HOLLiAS MACS
4. Database configuration
Database configuration is to define and edit the information of tags in every
station. This step is the base of the whole system.
There are two kinds of points in this manual: Point means the real measured
variable like temperature, pressure etc, while Tag is virtual variable in database.
Every point must have one or more responsible tag, but some tags could have
no responsible point in the real system.
Delete structure
Note that all these operations are not capable of jeopardizing the integrality of
the database. You can redesign the interface after configure the diagram
structure without making change to source code.
• This function is only for developers. The engineers are not recommended
to make any change of it.
48
SECTION 1 Introduction of HOLLiAS MACS
Data processing
This function is for the engineers to edit data. It supports many
engineers to configure at the same time and combine the data into
one database to improve efficiency. The combined data is also
available to edit, search, print, etc.
5. Algorithm configuration
This step is ready to go right after database configuration. Algorithm
configuration is to write control algorithm program and download it into FCS.
There are six language tools in MACS that meet the protocol of IEC61131-3
FBD
LD
ST
SFC
IL
CFC
6. Graph configuration
Graph configuration is to draw the process flow diagram consists of static
background, dynamic object and the correspondence between dynamic object
and database.
7. Diagram configuration
Diagram configuration is to create the report of field process data including
diagram appearance and definition of dynamic point.
49
SECTION 1 Introduction of HOLLiAS MACS
8. Compiling
The download file is created through compiling in the system database.
50
1
SECTION 2
Configuration Tools
3
SECTION 2Configuration Tools
Title bar: it is on the top of the interface and shows the name of the software.
4
SECTION 2Configuration Tools
• The “Total of system tags” here can be reference standard for choosing
dongle, there are 3 dongle levels in this system: 3000 tags, 6000 tags,
30000 tags; the configured tags number of dongle can’t be less than the
total number of tags in project.
Status bar: the text at left part shows the software status. There are three
boxes at right part which indicate the status of the special keys “Caps Lock”,
“Num Lock” and “Scroll Lock” in keyboard.
All menus and its items will be instructed in this chapter. The title of each item
is organized as “Menu Name – Item Name”.
5
SECTION 2Configuration Tools
Shortcut button:
User can quit the software with this command. The program will prompt to
save the project if the user didn’t.
The menu Compile is shown as Figure 2.1.2-3
7
SECTION 2Configuration Tools
Shortcut button:
It shows the version of the System Configuration.
17. About-Help (H)
It shows the manual of MACS system configuration.
2.1.2.3 Toolbar
The toolbar provides access to basic commands for editing and adding control
elements as shown in Figure 2.1.2-8.
Toolbar buttons, like their associated menu items, can be active or inactive. If a
function is active, both the toolbar button and the menu item are active.
Edit Database
Edit the database of current
8
SECTION 2Configuration Tools
Project Name
Display all the projects.
Pull-down List
Message window shows the result and information of the compiling progress,
as shown in Figure 2.1.2-9. The information can help user to identify the
location of the wrong data.
9
SECTION 2Configuration Tools
The status bar shows the working status of the software, as shown in Figure
2.1.2-10.
Input the project name in the blank, in this case the project is named
ExamplePro.
Click OK and the name can be found in the pull-down list of project box, as
shown in Figure 2.1.3-2.
10
SECTION 2Configuration Tools
If other software of this project is open, this project can’t be opened, a tip
window pops up as shown in Figure 2.1.3-3, the user should close the related
software and then open this project.
To delete a project, first choose the project to be deleted, and select Project →
Del Project, or click in the toolbar, a popup window appears. An example
is shown in Figure 2.1.3-4 Confirm to Delete .
11
SECTION 2Configuration Tools
Choose the folder that contains the project to be imported, and Click OK.
12
SECTION 2Configuration Tools
In the Project List, choose the project to configure and set the group number
(from 1 to 32) along with domain number (from 0 to 7) by clicking in the
window. If it is needed to configure all again, click Reset All.
• User must assign group number and domain number to the project to
generate download files. All projects can be divided into 32 groups at the
maximum, and only domains within the same group can communicate with
each other.
13
SECTION 2Configuration Tools
• The number of Basic System in one Domain can’t exceed 2000, and the
number of tags in one Basic System also can’t exceed 2000.
Tag Description
Tag Description describes the character of a tag. The length can’t exceed
32 characters, there shall not be single quote mark, brackets or asterisk.
14
SECTION 2Configuration Tools
• For the first time to login, the default is to access the engineer level with
User ID hollymacs and password macs.
• The system will check the user ID and password. If input error occurs three
times straight, the access will shut down.
15
SECTION 2Configuration Tools
Title bar
Menu
1. System-Stru Modify
Shortcut key: <Ctrl>+<O>
16
SECTION 2Configuration Tools
2. System-Data Modify
Shortcut key: <Ctrl>+<I>
It can modify the data recorded in database as shown in Figure 2.1.4-5.
17
SECTION 2Configuration Tools
3. System-Password
User can add, delete and modify user password here as shown in Figure 2.1.4-6.
4. System-Toolbar
User can set the position and type of toolbar as shown in Figure 2.1.4-7.
18
SECTION 2Configuration Tools
5. System-Print
It prints the data information in the database.
6. System-Print Setup
User can setup the printer.
7. System-Quit
Shortcut key: <Alt>+<X>
User can quit the database configuration software.
The menu Window is shown as Figure 2.1.4-9.
19
SECTION 2Configuration Tools
8. Window-Layer
It arranges the opened windows in layer.
9. Window-Cascade
It arranges the opened windows in cascade.
10. Window-Horizon
It arranges the opened windows horizontally.
11. Window-Vertical
It arranges the opened windows vertically.
The menu Help is shown as Figure 2.1.4-10.
12. Help-About
Show the version of the Database Configuration.
Toolbar
20
SECTION 2Configuration Tools
Status bar
21
SECTION 2Configuration Tools
Select Category – list of data class. Select the data class to configure
first.
Select Item – After the data class is selected, the name of the item
related to the data class will appear. (For the detail of items related to
the data class, please see in the following table).
Select the data class (such as AI) to configure first and select the item to
configure. Click OK and the related data input window will appear (In this case,
it is data input of AI) as shown in Figure 2.1.4-14.
• The items arrangement style of data input window is based on the contents
and order selected by the user.
Please see introduction of data class and list tables of items of common used
data class in Appendix 5 of this manual.
Note that once the data is modified, the Database Configuration main
window will turn into as Figure 2.1.4-15.
22
SECTION 2Configuration Tools
Both of the contents of System menu and Edit menu of the Database
Configuration will change. In data operation window, click Edit, the Edit menu
as shown in Figure 2.1.4-16, and click System, the System Menu as shown in
Figure 2.1.4-17 Menu "System".
23
SECTION 2Configuration Tools
1. System-Close
Shortcut key: <Alt>+<Q>
Select Close, or click in toolbar, it will close the Data Input window as
shown in Figure 2.1.4-14.
2. System-Import Data
Shortcut key: < Ctrl >+<Ins>
Select Import Data, or click in toolbar, the data in a text file will be
imported into the Data Input window currently opened.
3. System-Export Data
Shortcut key: < Ctrl >+<S>
Select Export Data, or click in toolbar, the data in the Data Input
window currently opened will be exported into a text file (*.txt).
4. Edit-Print Preview
Shortcut key: <Ctrl>+<Shift>+<P>
Select Query, or click in the toolbar, the query window will appear as
shown in Figure 2.1.4-18.
24
SECTION 2Configuration Tools
6. Edit-Max
It’s the maximum system default value for upper limit of measuring range
and upper limit of alarm.
25
SECTION 2Configuration Tools
7. Edit-Min
It’s the minimum system default value for lower limit of measuring range
and lower limit of alarm.
8. Edit-Add
Shortcut key: <Ctrl>+<A>
Select Add, or click in the toolbar to add a record row at the end of
table.
9. Edit-Del
Shortcut key: <Ctrl>+<Del>
Select Verify, or click in the toolbar, the verify result window will
appear as shown in Figure 2.1.4-19.
26
SECTION 2Configuration Tools
The operation verifies activity of database data, and verifies whether there
are points that are left in database due to improper operation and are
impossible to manage. In order to prevent error of database compilation
and verification for user before each time of compilation, the system
implements Verify operation automatically at each time of Update
database operation.
2.1.4.4 Data Import and Export
1. Data Import
First, it will introduce how to import data from a text file to the Data Input
window.
27
SECTION 2Configuration Tools
Create a table file with Microsoft Excel or Openoffice.org Calc, sort out the
database according to data types as AI, AO, DI, DO, PI, PO etc. Each type
is in one sheet of the table file, as shown in Figure 2.1.4-20:
Column
Abbr. Description Comment
Number
1 Num Line Number Must have this information
28
SECTION 2Configuration Tools
Column
Abbr. Description Comment
Number
exceed 12 characters. There shall not
be space, %, ~, | and –(mid-line), and
case sensitive.
Upper Limit of
8 MU Upper Limit of Measure Range
Measure Range
Lower Limit of
9 MD Lower Limit of Measure Range
Measure Range
29
SECTION 2Configuration Tools
Column
Abbr. Description Comment
Number
There are 5 kinds of alarm, they are red
alarm, yellow alarm, white alarm, green
alarm and none alarm, each number
14 H2 H2 Alarm Level
represent a kind, 0- none alarm,1-red
alarm,2-yellow alarm, 3-white alarm,
4-green alarm.
Whether
If need cold-junction, filled this item with
18 CL cold-junction
“1”, otherwise filled with none.
compensate
Signal Range: filled with a code which represents a kind of Signal Range, as
shown in Table 2.1.4-2:
30
SECTION 2Configuration Tools
T0_20mA 1
T4_20mA 2
T0_5V 3
T1_5V 4
PT10_RTD 11
PT100_RTD 12
PT1000_RTD 13
CU50_RTD 14
CU100_RTD 15
BA1_RTD 16
BA2_RTD 17
G_RTD 18
PT10_NEGATIVE_RTD 19
PT100_NEGATIVE_RTD 20
PT1000_NEGATIVE_RTD 21
CU50_NEGATIVE_RTD 22
31
SECTION 2Configuration Tools
BA1_NEGATIVE_RTD 24
BA2_NEGATIVE_RTD 25
G_NEGATIVE_RTD 26
mv 50
LL_2_TC 51
B_TC 52
E_TC 53
J_TC 54
K_TC 55
R_TC 56
S_TC 57
T_TC 58
CK_TC 59
EA_2_TC 60
EU_2_TC 61
LB_3_TC 62
N_TC 63
32
SECTION 2Configuration Tools
Frequency type 70
Accumulate type 71
When editing data tables, the often used data types and its items which
must be set in a data table at least list as in Table 2.1.4-3:
Table 2.1.4-3 Essential items when import data
Signal
Type:70-frequency
PI Num, PN, SN, DN,CN, SA
Type, 71-Accumulate
Type
After editing the data list, save it as a text file. The file name and saving
path can all be set as the user’s wish. Open the text file, which is shown
as Figure 2.1.4-21.
33
SECTION 2Configuration Tools
• When executing Import Data, the content of import are from the second
line of the imported file(Text file), so the first line of the file could be some
description or none.
• The sequence of items from database should keep pace with the I/O tag
list
For example, select AI data type, and choose Items Name in consistent
with the sequence of the items of the text file. Shown as in Figure
2.1.4-22:
34
SECTION 2Configuration Tools
• After selected items, you can save it as the Default Style if the Modify
Default Style is selected as . Then, when you set the table style next
time, click Old Style button to show the default style which you have settled
in recent time. Or, you can set it as Style1 or Style2, no more description in
the following.
• The selected item name in database list and the order should be the same
as which in tag list.
35
SECTION 2Configuration Tools
Select System| Import Data, it will open Import Filename dialog box shown
as in Figure 2.1.4-24, select the text file you have modified, click Open.
It will prompt an Import… dialog box shown as in Figure 2.1.4-25, set the
position for Source Start Column, Source End Column and Destination
Start Column, then click OK, it will import the contents of the text file
shown as in Figure 2.1.4-25.
36
SECTION 2Configuration Tools
37
SECTION 2Configuration Tools
• After Import Data for the first time, if you want to add data by the operation
of Import Data again, the new data will be add just below the data you have
imported, but the No. will not sort automatically, and it can’t be modified in
Data Input dialog box. So when you have big change to your data, you’d
better modify your text file, and delete the data in Data Input dialog box,
then import all again. Thus, you can avoid the problems of repeated No. or
repeated tags.
• If you want to modify only a few tags of database, you’d better modify them
in Data Input dialog box, double click the cells, and you can modify them
easily. Remember that the No. is unmodified.
When updating, if there are any problems, it will prompt error messages.
Otherwise, it will go on checking data automatically. The results will show
38
SECTION 2Configuration Tools
Please refer to the above operations to import other data types, no more
description in the following.
• When import data, the names, sequence and numbers of the items in Data
input dialog box must be the same as in text file.
2. Data Export
Export data to a text file, suffix is “.TXT”.
After opening a Data input dialog box, select System| Export Data, or click
in the toolbar, it will prompt a Save as dialog box shown as in Figure
2.1.4-29:
39
SECTION 2Configuration Tools
domain setting
adjust database
Database update
and verify
40
SECTION 2Configuration Tools
2. Create EXCEL worksheets of AI, AO, DI, DO, PI, and etc, according to
data types;
3. Check up whether duplication of name or being over limit of characters
exist;
4. Save EXCEL worksheets as txt files.
2.1.5.2 Create new project
(3) Input project name, such as ExamplePro, click OK (for project naming
please refer to 2.1.3.1), as shown in Figure 2.1.5-1.
41
SECTION 2Configuration Tools
By Explore, it can view the folder which is named by new project name
under the install catalog MACS_ENG\\user\
3. Domain setting
4. Click command Domain Setting in menu Edit to open setting dialog
box;
5. In setting dialog box, set Group Number and Domain Number for the
selected project, then click OK (please refer to 2.1.3.4), as shown in
Figure 2.1.5-2.
42
SECTION 2Configuration Tools
(2) Fill in worksheet header – related content items of tags AI, and fill the
tags information in by the order of header contents. as shown in
Figure2.1.5-3.
43
SECTION 2Configuration Tools
Figure2.1.5-3 Database(excel)
44
SECTION 2Configuration Tools
(3) When converting and saving the file, it will prompt as following dialog
box, as shown in Figure2.1.5-5.
45
SECTION 2Configuration Tools
The adjusting steps of worksheets AO, DI, DO, PI and etc are the same as
AI’s.
2.1.5.4 ADD tags in database
1. The first time adding tags in database, it is suggested to import TXT file
into database for convenience.
(2) Input user name and password (engineer level) in entering interface,
then click OK;
(3) If it is the first time for entering, the user name is hollymacs, and
password macs;
(6) Select Modify Default Style, select items one by one according to
sequence of database header, then click OK (please refer to 2.1.4.4);
as shown in Figure2.1.5-7.
46
SECTION 2Configuration Tools
(7) Click Data Import in menu System or icon to open dialog box
Import Filename;
(9) It will popup dialog box Import condition, click OK, then AI importing
has finished (please refer to 2.1.4.4), as shown in Figure2.1.5-8.
47
SECTION 2Configuration Tools
The import of AO, DI, DO, PI, etc is the same as AI’s.
2. For some projects which have finished system configuration, there are
2 ways if it need to modify or delete/add several tags:
The first way: export firstly, then import.
(1) Export the tags which need to be modified from database (please refer
to 2.1.4.4);
After modifying, save the TXTfile, and import if into system database
again.
The other way: modify in the system database directly
48
SECTION 2Configuration Tools
Modifying, adding, and deleting are the same with step 4 of the first way.
1. After importing, modifying, adding, deleting and etc, the database must
be updated and verified. Click Update date in menu Edit or icon ;
1. Open dialog box Verify Result, and click OK;
User can access each configuration from the main window and complete
configuration process of each part simply and easily. Once the edit information
is saved, the relevant source files that store configuration information of user
will be generated. It is forbidden to modify at discretion.
49
SECTION 2Configuration Tools
When all the edit configurations are completed, it is required to proceed with
compilation. Automatic error correction function is available in compilation
process, and prompt will be given automatically when error is found.
50
SECTION 2Configuration Tools
Title bar
Menu
Toolbar
Message window
Status bar
In the following chapters, the function of each part will be introduced to help
use the software more efficiently.
Title bar is on the top of the main window which shows the name of the project.
2.2.2.2 Menu
All menus and their items will be instructed in this chapter. The title of each
item is organized as “Menu Name – Item Name”.
1. File-Open Project
It can open an existing project to do device configuration for it.
2. File-Exit
User can exit this software with this menu.
The menu Edit is shown as Figure 2.2.2-3:
3. Edit-System device
51
SECTION 2Configuration Tools
User can add a device to the system with wizard of five steps, please see
details in chapter 2.2.3.
4. Edit-I/O device
It shows all the I/O devices in the system, the user can do configuration
operation for the devices.
User can set the view style of the main window with the commands in
menu View. This menu is shown as Figure 2.2.2-4:
5. View-ToolBar
User can choose whether to show the toolbar, in front of this menu
means to show it, or else, not to show.
6. View-StatusBar
User can choose whether to show the status bar, in front of this menu
means to show it, or else, not to show.
7. View-Custom Device
User can define a new I/O device with this menu.
The menu Help is shown as the Figure 2.2.2-5:
52
SECTION 2Configuration Tools
System device
Wizards for device configuration.
wizard
Message window shows the result and information of the compiling progress,
as shown in Figure 2.2.2-7. The information can help users to identify the
location of the wrong data.
The status bar shows the working status of the software, as shown in Figure
2.2.2-8.
53
SECTION 2Configuration Tools
Ethernet card
• Field control station node consists of 2 main control units and 6 Ethernet
cards.
Ethernet card
• Operator station node consists of 1 main control unit and 2 Ethernet cards.
54
SECTION 2Configuration Tools
Ethernet card
1. In network setting, use default setup value (Net A: 130/Net B: 131). Then
click Next.
2. In server setup, use default setup value (Redundancy). Then click Next, as
shown in Figure 2.2.3-2.
55
SECTION 2Configuration Tools
3. In I/O Control Station number, input Start Address (from 10 to 49) and
Amount (the default number is 1, the maximum is 40). Then click Next. As
shown in Figure 2.2.3-3.
56
SECTION 2Configuration Tools
5. Check results shown in the final step window. Then click Start... to complete
adding of system device. An example is shown in Figure 2.2.3-5.
After completing wizard setup, system device configuration window will appear
automatically as shown in Figure 2.2.3-6. The left section of edit window
displays a device tree and the right section displays attribute or data of a
certain node or device.
57
SECTION 2Configuration Tools
The automatic generation rules of device point name are listed in the following
table.
“OPSNode_” + station
Operator node OPSNode_50
number
58
SECTION 2Configuration Tools
“OPSDev_” + station
Operator host computer OPSDev_50
number
“OPS_” +station
B network card OPS_50_MNetB
number+”MNetB”
“FCSNode_” + station
IO station node: FCSNode_10
number
59
SECTION 2Configuration Tools
“MCUDev_” + station
Main control unit A MCUDev_10A
number + “A”
“MCUDev_” + station
Main control unit B MCUDev_10B
number + “B”
Using wizard is not the only way to add node and device. In case additional
devices need to be added after the system configuration, adding node
manually is also available.
To add node manually, right-click MACS device configuration and select Add
Node, a popup window will appear as shown in Figure 2.2.3-8.
60
SECTION 2Configuration Tools
There are two kinds of node that users can add to the system:
In Node Type pull down list, select Field control station, the window will
change as shown in Figure 2.2.3-9.
Input the number of Start Address and Node Amount. The default number
of Nodes is 1. Then click OK. The related control station will be added to
the system and can be seen in the device configuration tree.
Operator station(OPS)
In Node Type pull down list, select Operator station, the window will
change as shown in Figure 2.2.3-10.
61
SECTION 2Configuration Tools
Input the number of Start Address and Node Number. The default number
of Nodes is 1. Then click OK. The related control station will be added to
the system and can be seen in the device configuration tree.
• The number of nodes in Add Node window is the sum of the operator
station nodes already added and operator station nodes to be added. If the
input number is less than original number of this kind of node, even user
click OK, the original configuration will not be changed.
If you have not added any System device, then you will have three kinds of
Node Types. Select Add Node, a popup window will appear as shown in
Figure 2.2.3-11:
62
SECTION 2Configuration Tools
Server Station
In Node Type pull down list, select Server station, click OK,it will add
Server station 0(Server A) in default, then if you add a Server station node
again, it will add Server station 1(Server B).
You can add only two Server nodes at most in one project.
2.2.3.3 Device Property
To see and change the property of the device, right-click the device icon in the
device tree, and select Property in the popup menu, the property window will
appear. Due to the property differences, the contents of property window are
not the same. Several property windows of different devices are shown as
Figure 2.2.3-12, Figure 2.2.3-13, Figure 2.2.3-14, Figure 2.2.3-15 and Figure
2.2.3-16.
63
SECTION 2Configuration Tools
Note that there is no need to set up IP address for SNET card. On the contrary,
it is necessary to set up IP address for MNET card and the default address has
already been set up. This address can be modified in the MNET card property
as shown in Figure 2.2.3-16.
The set up rule of default MNET card address is listed in the following table.
64
SECTION 2Configuration Tools
To compile the system device configuration, click in the toolbar, and the
compile information will be displayed in the message window. If the compiling
succeeds, the information will show as Figure 2.2.3-17.
To save the device configuration information, select File → Save, the current
system device information will be saved after compiling.
To close the current device configuration, select File → Close, a popup window
will appear as shown in Figure 2.2.3-18.
65
SECTION 2Configuration Tools
Save the data and close the device configuration, click Yes.
To quit the system device configuration, select File → Exit, and the device
configuration software will shut down.
66
SECTION 2Configuration Tools
To add I/O device, select Edit → I/O device in the device configuration main
window, the I/O device window will appear as shown in Figure 2.2.4-1.
The left section of I/O device window displays field control station added in
system device configuration and the right section displays the relevant
attribute of the device.
67
SECTION 2Configuration Tools
Double click the FCS in the left section to show the DP of it as shown in Figure
2.2.4-2.
Right click the DP, the right-click menu is shown in Figure 2.2.4-3.
Select Add Module, or click in the toolbar, the Add I/O Module window
will appear as shown in Figure 2.2.4-4.
68
SECTION 2Configuration Tools
Select the module to add in the list and input the number of module, then click
Add. The newly added module will be found in the left section of I/O device
window, an example is shown in Figure 2.2.4-5.
Right click the I/O device added, the right-click menu will popup to show the
available operation of this device, as shown in Figure 2.2.4-6.
Property
Select Property in the menu, the property window will appear as shown in
Figure 2.2.4-7.
The new added SOE module SM611 and SM619 supports two configurations,
single module or double-module mode. The default device configuration is
software timing and double-module mode.
70
SECTION 2Configuration Tools
mode.
• Users can modify the some Parameter of a device, then dash out “Use
Auto-Generate Parameter”.
• As the limit of DP date capacity, both the input area and output area is
3583 bytes, 14 double modules can be added at most in an IO station, the
input area of each SOE module is 244 bytes, or 28 single modules can be
added, the input area of each SOE module is 124 bytes.
Auto Address
71
SECTION 2Configuration Tools
+Redundancy
Select +Redundancy, and the figure in front of device will turn into
which stands for redundant configuration. Double click the device, and the
redundant device will be displayed under main device in the device tree.
Delete Device
Select Delete Device or click in the toolbar, the selected I/O device
will be deleted.
2.2.4.3 Compiling, Saving, Closing and Quitting of I/O Device
Configuration
Select the FCS to be compiled, and click in the toolbar. The compiling will
be done and the result will be displayed in the compiling message window.
Saving, closing and quitting operations are similar to that of system device
configuration, for more detail please see in chapter 2.2.3.4 Compiling, Saving,
Closing and Quitting of System Device Configuration
adjust database
Compile
1. Select Start -> All Programs -> MACS -> MACS_ENG -> Device
Configuration;
2. It will popup dialog box Project List, select target project, click OK. In
this section, System Device Configuration will be described by taking
project ExamplePro as example.
72
SECTION 2Configuration Tools
Confirm the number of Field Control Station and Operator Station (sum of
Operator Station and Engineer Station), then enter System Device
Configuration, the detailed steps are as following:
73
SECTION 2Configuration Tools
When create new project, the steps of I/O device Configuration for the first time
are as following:
74
SECTION 2Configuration Tools
Figure2.2.5-3 Property of DP
7. Click Add module to add modules which are needed (please refer to
2.2.4.1);
8. Click Save in menu File;
9. Click Close in menu File.
If it needs to delete modules after I/O Device Configuration
10. Click I/O device in menu Edit to enter I/O device Configuration
11. Select the I/O device which is to delete, right click it to open shortcut
menu; as shown in Figure2.2.5-4.
12. Click Delete device;
13. It will prompt as The deleted data is unrecoverable, are you sure?
Click OK;
14. Click Save in menu File;
15. Click Close in menu File.
75
SECTION 2Configuration Tools
1. Select Start -> All Programs -> MACS -> MACS _ENG -> System
Configuration, and click it;
2. Select project which is to compile, such as ExamplePro;
76
SECTION 2Configuration Tools
Figure2.2.5-6 Compiling
Industrial control system flow diagram includes static graph and dynamic
graph:
77
SECTION 2Configuration Tools
Static graph represents the static information in the system and has
nothing to do with database.
Graph configuration software can also edit the dynamic and interactive
features of the graph.
78
SECTION 2Configuration Tools
79
SECTION 2Configuration Tools
80
SECTION 2Configuration Tools
Title bar
Menu
Toolbar
Graph library
Working area
Color box
Status bar
Cursor position
Graph specification
The sub-windows in this window can be fixed or active by double clicking, for
example, double click the graph library, it will turn active as shown in Figure
2.3.2-3. Double click this active window; it will turn fixed in its original position.
81
SECTION 2Configuration Tools
2.3.2.1 Menu
All menus and their items will be introduced in this chapter. The title of each
item is shown as “Menu Name – Item Name”.
82
SECTION 2Configuration Tools
1. File-Open Project
Shortcut button:
It can open an existing project.
2. File-Close Project
Shortcut button:
It can close an opened project. If the project is already changed, the
software will prompt tips for saving the project.
3. File-New
Shortcut button:
Shortcut key: <Ctrl> + <N>
It can create a new graph file, and the initial file name is "Untitled ". It is
recommended that the user should better change this file name when
saving the graph.
4. File-Open
Shortcut button:
Shortcut key: <Ctrl> + <O>
It can open an existing graph file.
5. File-Close
83
SECTION 2Configuration Tools
It can close the opened graph file. If the file is already changed, the
software will prompt tips for saving this file.
6. File- Save
Shortcut button:
Shortcut key: <Ctrl> + <S>
It can save changes for the current file. If the file is saved as "Untitled ", it's
necessary to change its name.
7. File-Save All
Shortcut button:
It can save all the opened files in current project.
8. File-Save As
It can save the current file by another name without changing the initial
file.
9. File-Import (File)
User can import graphs from existing files, the types are as shown in the
following figure, Standard Shapes means to import the standard graph to
the working area; Control Configuration means to import the control
configuration file; Device Configuration means to transform the files
generated by device configuration to graph file.
11. File-Property
It shows the property of the current file which includes file name, created
time, modified time and shapes size.
12. File-Print Setup
User can set up the print option.
13. File-Print Scheme
84
SECTION 2Configuration Tools
14. File-Exit
It can exit the current opened file, and the system will prompt to save
changes for this file.
The menu Edit is shown as Figure 2.3.2-7:
15. Edit-Undo
Shortcut button:
Shortcut key: <Ctrl>+<Z> or <Alt >+<Backspace>
It cancels the latest action in this file. Repeat this command, all the actions can
be canceled back to the moment the file was opened.
16. Edit-Redo
Shortcut button:
User can restore the undone actions (Edit->Undo) in current file use
Redo.
17. Edit-Cut
Shortcut button:
Shortcut key: <Ctrl>+<X> or <Shift>+<Delete>
85
SECTION 2Configuration Tools
Use this command the user can send the current selected graph from
editor to clipboard, and delete this graph from editor.
18. Edit-Copy
Shortcut button:
Shortcut key: <Ctrl>+<C> or <Ctrl>+<Ins>
With this command the user can copy the current selected graph from
editor to clipboard, and this does not change the contents of editor
window.
19. Edit-Paste
Shortcut button:
Shortcut key: <Ctrl>+<V> or <Shift>+<Ins>
With this command the user can paste the content of the clipboard onto
the current position of the editor. After choosing this command, the
window pops up as shown in Figure 2.3.2-8 to choose paste format.
86
SECTION 2Configuration Tools
21. Edit-Compose
It can compose separate graph objects as one object.
22. Edit-Decompose
It decomposes a composed object into separate graph objects. This
command is enabled after Compose operation.
23. Edit-Change Order
It can exchange the front/back order of two overlapped graph objects.
24. Edit-Flip Horizontal
It can revolve the selected graph object around axis-X.
25. Edit-Flip Vertical
It can revolve the selected graph object around axis-Y.
26. Edit-Select All
Select all objects on graph page.
27. Edit-Define Function Key
It can define the keys F1~F32 to specific function.
28. Edit-Prompt When Paste
Select whether prompt tips to choose paste format when paste, in front
of this menu means to show it, or else, not to show.
29. Edit-Convert
It can change the graph unit from mm to 0.1pixel.
30. Edit-Remove Dynamic Feature
It can disable the dynamic feature of the graph.
The menu Draw shows the shapes can be drawn in the file, it is shown as
Figure 2.3.2-10, for each shape, user can set its border mode and filling
color first.
87
SECTION 2Configuration Tools
31. Draw-Line
Shortcut button:
It can draw lines in working area, user can click mouse in drawing area to
identify the start position (the cursor will turn into the shape “+”), hold the
left mouse key and drag it to the target position before releasing, a line will
be drawn. Note: Horizontal, vertical and 45º lines can be drawn by
pressing Shift key simultaneously when drawing.
32. Draw-Arc
Shortcut button:
It can draw arcs in working area, user can click mouse in drawing area to
identify the start position (the cursor will turn into the shape “+”), hold the
left mouse key and drag it to the target position before releasing, an arc
will be drawn. Note: 90 º arcs can be drawn by pressing Shift
simultaneously.
33. Draw-Polyline
Shortcut button:
It can draw poly lines in working area, user can click mouse in drawing
area to identify the start position (the cursor will turn into the shape “+”),
hold the left mouse button and drag to target position of the first line before
releasing, then drag to target position of the second line before clicking left
button, repeat the above operation until the last border, finally click right
button, then it is done. Note: for closed polygon, filling mode is inactive.
34. Draw-Text
Shortcut button:
It can draw text box in working area, user can click mouse in drawing area
to identify the start position (the cursor will turn into the shape “+”), hold
88
SECTION 2Configuration Tools
the left mouse key and drag along diagonal line to create a text box. Then
user can type texts in the text box.
35. Draw-Chord
Shortcut button:
It can draw chords in working area, user can click mouse in drawing area
to identify the start position (the cursor will turn into the shape “+”), and
release left key and drag the mouse to form a satisfied arc shape, then
click the mouse to finish drawing.
36. Draw- Rectangle
Shortcut button:
It can draw rectangles in working area, user can click mouse and drag it to
the target position before releasing. Note: A square can be drawn by
pressing Shift key simultaneously.
37. Draw-Pie
Shortcut button:
It can draw pies in working area, user can click mouse to identify the start
position (the cursor will turn into the shape “+”), and hold the left mouse
key and drag the cursor to create satisfied pie shape, then release the
mouse to finish drawing.
38. Draw- Ellipse
Shortcut button:
It can draw ellipses in working area, user can click mouse to identify the
start position (the cursor will turn into the shape “+”), and hold the left
mouse key and drag the cursor to create satisfied pie shape, then release
the mouse to finish drawing. Note: A regular circle can be drawn by
pressing Shift key simultaneously.
39. Draw- Polygon
Shortcut button:
It can draw polygons in working area, user can click mouse to identify the
start position (the cursor will turn into the shape “+”), release left mouse
button and drag the cursor to target point of the first line and left click
again, the drawing of the first border of polygon is completed. Then draw
the other lines in the same way, finally right click mouse to finish drawing.
40. Draw- Round Rectangle
Shortcut button:
It can draw round rectangles in working area, user can click mouse to
identify the start position (the cursor will turn into the shape “+”), hold the
left mouse key and drag the cursor to create satisfied round rectangle
89
SECTION 2Configuration Tools
shape. Note: Regular round rectangle can be drawn by pressing Shift key
simultaneously.
Being different from rectangle, round rectangle has one additional black
square in the middle as shown in Figure 2.3.2-11. In comparison with
rectangle, place cursor on the square, radian of four corners of rectangle
can be changed by moving this square.
41. Draw-Image
Shortcut button:
It can draw images in working area, user can click mouse to identify the
start position (the cursor will turn into the shape “+”), hold the left mouse
key and drag the cursor to satisfied size for the image frame.
Release left key, a window pops up as shown in Figure 2.3.2-12, user can
select the image to be inserted and press Open to insert it.
42. Draw-Button
Shortcut button:
It can draw buttons in working area, user can click mouse to identify the
start position (the cursor will turn into the shape “+”), and hold the left
mouse key and drag the cursor to satisfied size of button, then release the
mouse.
90
SECTION 2Configuration Tools
After creating the button, right click it, a menu pops up as shown in Figure
2.3.2-13:
To modify the button style, select Button Style, the function window will
appear as shown in the Figure 2.3.2-14:
91
SECTION 2Configuration Tools
Shortcut button:
It can switch to full screen mode.
51. View-Simulating
92
SECTION 2Configuration Tools
52. Window-New
It can create a new window for graph drawing.
53. Window-Cascade
It arranges the opened windows in cascade.
54. Window-Horizontal
It arranges the opened windows horizontally.
55. Window-Vertical
It arranges the opened windows vertically.
56. Window-Close All
It closes all the opened windows.
The menu Property is shown as Figure 2.3.2-17:
93
SECTION 2Configuration Tools
94
SECTION 2Configuration Tools
Select file name of background graph and click Open to set the working
area background use this graph.
If user selects Color background, a screen color board window will
appear as Figure 2.3.2-22:
To set the background in basic colors, select the color in the board and
click OK.
To set the background in other color, click Define Custom Colors, and
the defined custom color window will appear as shown in Figure 2.3.2-23.
95
SECTION 2Configuration Tools
Select an initial color in light spectrum, and move the cursor on the right
until color is satisfying. Click Add to Custom Colors to add the color to
Custom colors. Click OK to set the background using this color (or input
new value in H/S/L and R/G/B boxes).
96
SECTION 2Configuration Tools
97
SECTION 2Configuration Tools
Shortcut button:
It can find and replace tags, text and domain number.
98
SECTION 2Configuration Tools
Shortcut button:
It shows the version of the Graph Configuration.
2.3.2.2 Toolbar
System toolbar
Edit toolbar
Filling toolbar
Drawing toolbar
99
SECTION 2Configuration Tools
Display All
To display all shapes
Shapes
Show shapes
which have Show shapes which have show/hide
show/hide feature
feature
100
SECTION 2Configuration Tools
Dynamic
Set Dynamic Features of the Object
Features
Interactive
Set Interactive Features of the Object
Features
Grid
Set Grid Background of the Object
Background
Show Dynamic
To show dynamic features.
Features
Show Button
Show Button Text Range
Text Range
101
SECTION 2Configuration Tools
Rotate 90
CW Rotate 90 degrees.
degree CW
Compose
To compose all the selected objects.
objects
Change order
Change order of two objects
of two objects
Move up one
Move the object up one layer
layer
102
SECTION 2Configuration Tools
The first six buttons stand for border mode, user can select any style as border
of graph at discretion, null stands for no border; the last eight buttons stand for
filling mode, user can select any style as filling mode of graph at discretion.
103
SECTION 2Configuration Tools
Draw Round
Draw a round rectangle
Rectangle
104
SECTION 2Configuration Tools
Graph library includes system graph library and user graph library. System
graph library stores system graph symbol objects user graph library stores
graph symbol objects defined by user. The graph symbol can be dragged to
any position of the page using mouse. The graph library window is shown in
Figure 2.3.2-33.
105
SECTION 2Configuration Tools
Color box is used to select foreground color and background color as shown in
Figure 2.3.2-34. The display method is as shown in Figure 2.3-22, in
which 1 represents foreground color (border color) and 2 represents
background color (filling color). The system lists 36 types of color blocks. In
case it is necessary to customize a color, double click on any color block and a
dialog box for editing color will appear.
2.3.2.5 Footer
The footer provides the information of your work like Status information, Cursor
position and Graph specification.
Status information bar explains and describes each item of orders. When
mouse is moved to pull-down menu, toolbar or an item of system tools,
relevant operation information will be displayed as shown in Figure 2.3.2-35 .
Cursor position bar displays the information of cursor position in working area
as shown in Figure 2.3.2-36.
106
SECTION 2Configuration Tools
There are three ways to import files which users can choose from the menu.
Standard Shapes
One group of standard shape graphs that are overlaid together appears
on screen. These standard graphs include triangle, quadrilateral,
pentagon, hexagon, heptagon, octagon, enneagon, decagon and
pentacle.
Device Configuration
107
SECTION 2Configuration Tools
2. Select I/O device template according to the FCS. Click Next. The
template files list of each I/O station will appear as shown in Figure
2.3.3-3.
3. Click Choose All, device status diagram of all FCS will be generated.
Then click Next, the Domain Num window will appear as shown in
Figure 2.3.3-4
108
SECTION 2Configuration Tools
Then click Next. The execution window will appear, an example is shown
in Figure 2.3.3-5.
5. Click Start… to generate system device status graph, I/O device status
graph and I/O station operation version display graph.
109
SECTION 2Configuration Tools
User custom symbol refers to the graph symbol that made based on the
project need. The dynamic and interactive features can also be set at the same
time.
Right click the graph symbol and select Name as shown in Figure 2.3.3-6.
And the shape name window will appear as shown in Figure 2.3.3-7.
A default name will be given to the new directory which can be modified by
110
SECTION 2Configuration Tools
The dynamic object corresponds to the point defined in the database. Through
the features of the dynamic object user can monitor the point status online.
Domain
The domain that the point belongs to.
Number
Right click the object which need to set the dynamic feature, the menu will
shown in Figure 2.3.3-10.
Select Dynamic Features, the set up window will appear as shown in Figure
111
SECTION 2Configuration Tools
2.3.3-11.
There are eleven tabs on the window, each stands for a group of dynamic
features that can be set by user.
After the real time value of database point of the object is set to have
color change when the condition is met.
The five tabs labeled from Color 1 to 5 stands for five different color
112
SECTION 2Configuration Tools
definitions. Each color definition has its own dialog box. Priority order
of color change is from Color 1 to 5.
On each tab, the items are all the same listed below:
Add: Click Add to add the defined color change condition to the list
in Total change condition window.
Text
Text feature is only active for text object. After text feature of object is
defined, value of its corresponding database tag can be displayed in
format of graph configuration, database and time. This tab is shown in
Figure 2.3.3-12.
113
SECTION 2Configuration Tools
Select Text Feature to make this tab contents active. The items are listed
below:
Graph Configuration: Display the text in the graph format that is set
up in the Analog Format and Digital Format.
If Show System Time is selected, the system time will be shown and all
of the above time format cannot be used.
Blink
After blink feature of object is defined, the object will blink when the
condition is met. This tab is shown in Figure 2.3.3-13.
115
SECTION 2Configuration Tools
Select Blink to make this tab contents active. The items are listed below:
116
SECTION 2Configuration Tools
Add: Click Add to add the defined blink condition to the list in Total
condition window.
Show/Hide
After show/hide features of object are defined, the graph will show or
hide when the condition is met. This tab is shown in Figure 2.3.3-14.
117
SECTION 2Configuration Tools
Select Show/Hide Feature to make the tab contents active. The items are
listed below:
118
SECTION 2Configuration Tools
Add: Click Add to add the defined Show/Hide condition to the list in
Total condition window.
Move
After move feature of object is defined, the object will move when the condition
is met. This tab is shown in Figure 2.3.3-15.
119
SECTION 2Configuration Tools
Default: When this option is selected the lower limit is set to 0 and
upper limit to 100. When it is not selected the range can be reset
by inputting the new lower/upper limit.
120
SECTION 2Configuration Tools
Move pixels: The distance measured in unit of pixel that the object
set to move
Filling
After filling feature of object is defined, the object will be filled when the
condition is met. This tab is shown in Figure 2.3.3-16.
121
SECTION 2Configuration Tools
Select Filling Feature to make the tab contents active. The items are listed
below:
Default Range: When this option is selected the lower limit is set to
0 and upper limit to 100. When it is not selected the range can be
reset by inputting the new lower/upper limit.
Scale
After scale feature of object is defined, the object will be zoomed when
the condition is met. This tab is shown in Figure 2.3.3-17.
122
SECTION 2Configuration Tools
Select Zoom Feature to make the tab contents active. The items are listed
below:
123
SECTION 2Configuration Tools
Default: When this option is selected the lower limit is set to 0 and
upper limit to 100. When it is not selected the range can be reset
by inputting the new lower/upper limit.
Rotate
After rotate feature of object is defined, the object will be rotated when the
condition is met. This tab is shown in Figure 2.3.3-18.
124
SECTION 2Configuration Tools
Select Rotate to make the tab contents active. The items are listed below:
Default: When this option is selected the lower limit is set to 0 and
upper limit to 100. When it is not selected the range can be reset
by inputting the new lower/upper limit.
Curve
After curve feature of object is defined, the object traces and displays
real time value of database in form of curve. This tab is shown in
Figure 2.3.3-19.
126
SECTION 2Configuration Tools
Select Curve Feature to make the tab contents active. The items are listed
below:
127
SECTION 2Configuration Tools
Scroll Trace: When final point of time axis is traced and displayed,
curve continues tracing after scrolling time axis for a distance in
reverse direction. Scrolling distance can be 1/4, 1/2 and 3/4 of
window or the entire window.
X-Y Curve
128
SECTION 2Configuration Tools
Select X-Y Curve Feature to make the tab contents active. The items are
listed below:
129
SECTION 2Configuration Tools
Connect Points or Not: Single point and Form 1 line nodes can be
selected.
• When a rectangle has this feature, other dynamic features are all inactive.
Boot Curve
130
SECTION 2Configuration Tools
Select Boot Curve to make the tab contents active. The items are listed
below:
131
SECTION 2Configuration Tools
Add: Click Add to add the defined blink condition to the list in the
left window.
Add: Click Add to add the defined blink condition to the list in the
left window.
132
SECTION 2Configuration Tools
Static Curve File Name: Set the name of static curve file.
Fluctuate % around the curve while be shown like belt: Set the
percent of the curve to be shown like belt.
Interval of two points is seconds by saving this curve: Set the time
by seconds to save the curve.
By using interactive features, user can modify point value of database and run
authorization check (except for tip show) online. The user name must be input
correctly to enable the operation of interactive features.
To edit the interactive features, right click the object and select Interactive
Features in the menu as shown in Figure 2.3.3-22.
133
SECTION 2Configuration Tools
134
SECTION 2Configuration Tools
Popup Window
Set to popup a window online such as PID adjust window. This tab is
shown in Figure 2.3.3-23.
Select Popup Window to make the tab contents active. The items are
listed below:
Start coordinate: Set the position where the popup action starts.
135
SECTION 2Configuration Tools
Popup window while the parent base graph opened: After opening
base graph, user can push window without clicking with mouse.
<<Add: Click this button and a dialog box will appear as shown in
Figure 2.3.3-24.
136
SECTION 2Configuration Tools
Input the user name and click OK to set this name in the authority list
and it will be shown in the left window.
Remove>>: Choose the name and click this button to remove the
name from authority list.
• Window is different from base graph, base graph can occupy the whole
screen while online, and can not be moved; window is normally smaller,
and can move freely on base graph.
137
SECTION 2Configuration Tools
Select Switch Base Graph to make tab contents active. The contents are listed
below:
138
SECTION 2Configuration Tools
<<Add: Click this button and a dialog box will appear as shown in
Figure 2.3.3-26.
Input the user name and click OK to set this name in the authority list
and it will be shown in the left window.
Remove>>: Choose the name and click this button to remove the
name from authority list.
Value Increase/Decrease
139
SECTION 2Configuration Tools
140
SECTION 2Configuration Tools
For digital variable, if only 1 can be inputted, it means that the digital
variable is 0 initially which becomes 1 after implementation of the
operation, and returns to 0 after implementation of the operation again.
For example: used to realize button featuring self-locking function.
Default Range: When selected, the upper and lower of limit is set
to 100 and 0. When not selected, the upper and lower limit can be
adjusted by inputting new limit.
Reconfirm: Input the confirmation alert that will be shown when the
increase/decease occurs.
• For digital variable, “character string 0110 character string” can be added
into the second time confirmation information, then when operator is online,
different confirmation information will pop up according to its point value,
when value changes from 0 to 1, character string in front of 0110 pops up,
when value changes from 1 to 0, character string behind 0110 pops up.
<<Add: Click this button and a dialog box will appear as shown in
Figure 2.3.3-28.
Input the user name and click OK to set this name in the authority list
and it will be shown in the left window.
141
SECTION 2Configuration Tools
Remove>>: Choose the name and click this button to remove the
name from authority list.
Select Online Modify to make the tab contents active. The contents are
listed below:
142
SECTION 2Configuration Tools
Default Range: When selected, the upper and lower of limit is set
to 100 and 0. When not selected, the upper and lower limit can be
adjusted by inputting new limit.
<<Add: Click this button and a dialog box will appear as shown in
Figure 2.3.3-30.
Input the user name and click OK to set this name in the authority list
and it will be shown in the left window.
Remove>>: Choose the name and click this button to remove the
name from authority list.
143
SECTION 2Configuration Tools
Select Refresh to make tab contents active. The contents are listed
below:
<<Add: Click this button and a dialog box will appear as shown in
Figure 2.3.3-32.
144
SECTION 2Configuration Tools
Input the user name and click OK to set this name in the authority
list and it will be shown in the left window.
Remove>>: Choose the name and click this button to remove the
name from authority list.
Show Tip
145
SECTION 2Configuration Tools
Select Show Tip to make tab contents active. The contents are listed
below:
146
SECTION 2Configuration Tools
Show value or tag name: The tip will show the value or tag name
while fixed string becomes unavailable.
Set Switch
This function can set digital variable to 0, and set to 1 after one
arithmetic cycle. This tab is shown in Figure 2.3.3-34.
Select Set Switch to make tab contents active. The contents are listed below:
147
SECTION 2Configuration Tools
Reconfirm: Input the confirmation alert that will be shown when the
increase/decease occurs.
<<Add: Click this button and a dialog box will appear as shown in
Figure 2.3.3-35.
Input the user name and click OK to set this name in the authority list
and it will be shown in the left window.
Remove>>: Choose the name and click this button to remove the
name from authority list.
In the User Graph Lib, there is an item named Standard Algorithm Block
Symbol as shown in Figure 2.3.3-36.
148
SECTION 2Configuration Tools
Select Dynamic Shortcut Define, a window will show to help user define the
shortcut, an example is shown in Figure 2.3.3-38.
The command is used to simulate online mode when being offline to display
dynamic and interactive feature of graph and text.
To use this command, select View → Simulating Ctrl + Tab, or click in the
toolbar, the simulating window will appear as shown in Figure 2.3.3-39.
149
SECTION 2Configuration Tools
Fill in the User Name and Password and click OK to login the system, the
default is to login at engineer level.
Move the cursor to lower left of the screen, and the offline simulating input
window will appear as shown in Figure 2.3.3-40.
150
SECTION 2Configuration Tools
Fill in an analog tag name in database behind “Analog Tag Name”, then move
sliding index pointer below from 0 to 100%, enabling value of the analog to
vary from project zero scale to project full scale, if no specific point name is
filled in, then all analog value in database can vary from project zero scale to
project full scale.
Fill in a digital tag name in database behind “Digital Tag”, then click “Set 0” and
“Set 1” button below, the digital variable can be set to 0 or 1, if no specific point
is filled in, then all digital variables in database can be set to 0 or 1
151
SECTION 2Configuration Tools
Create Graph
page
Static graph
configuration
Assist graph
configuration
Assist graph
configuration
Page link
1. Select Start -> All Programs -> MACS -> MACS_ENG -> Graph
Configuration, and click it;
2. Select project name which is to graph configurate in Project
Information list, and click button Select to enter Graph Configuration
interface. as shown in Figure2.3.4-2.
152
SECTION 2Configuration Tools
Step 2. It will popup dialog box System Status Template, then select
template style, devmodel.hsg is suggested to use. as shown in
Figure2.3.4-3.
153
SECTION 2Configuration Tools
Step 3. Click Next, it will prompt dialog box Choose IO Template File,
according to hardware series which are being used and
arranging situation of modules in control cabinet, select modules
from option box on the left, the styles will be displayed in the
right box. As shown in Figure2.3.4-4.
Step 4. Click Next, it will popup dialog box Template Files List of Each IO
Station, in the left box, select modules according to arranging
situation modules in each control cabinet. As shown in
Figure2.3.4-5.
Example: When there is only main cabinet in Station 10#, and 3 standard racks
154
SECTION 2Configuration Tools
The same as other stations. When all stations are done, click button Select All.
Step 5. Click Next, it will popup dialog box Specify Domain Number, it is
suggested to select Specify Domain Number, and input domain
number of current project (be corresponding with System
Configuration), the default value is 0. As shown in Figure2.3.4-6.
155
SECTION 2Configuration Tools
Step 6. it will popup dialog box Start to Execute Command, displaying all
setting contents above and saving path of graph files which is to
be generated, which are used for reviewing and verifying. As
shown in Figure2.3.4-7.
Step 7. Click Start… to start generating system status graph and module
arranging graph of each control station. As shown in
Figure2.3.4-7Figure2.3.4-8.
156
SECTION 2Configuration Tools
• The size of generated System status graph is matched with 19’’ displayer,
if the project uses other size of displayer, please modify oneself.
The size could be adjusted by Set Size in menu Porperty, size sets area for
graph, graph in the area will be displayed when it is online, otherwise, will not;
the size is determined by displayer size, as shown in Figure2.3.4-9.
157
SECTION 2Configuration Tools
158
SECTION 2Configuration Tools
3. The below 2 racks of IO module status graph in Station 10# are all
reserved, which can be cut to adjust the size, as shown in
Figure2.3.4-11.
159
SECTION 2Configuration Tools
• For cutting IO module status graph, only cut the rack which slots are all
reserved (power module is not included).
1. In Graph Lib on the left, select static graph from System Graph Lib and
Common used in thermal power two sections;
2. Select static graph, as select tank and right click it, then click Browse in
submenu, it will popup window Browse object library; as shown in
Figure2.3.4-12.
3. Select target graph in Browse object library, click and drag it to graph
edit area. As shown in Figure2.3.4-13.
161
SECTION 2Configuration Tools
162
SECTION 2Configuration Tools
163
SECTION 2Configuration Tools
There are many linking methods for small graph and system graph, normally
button is used for linking tool.
164
SECTION 2Configuration Tools
5. Select the button and right click, shortcut menu comes up;
6. Select Interactive Features in shortcut menu, it will popup dialog box
Interactive Features Definition;
7. Select Popup Window, and tick Popup Window, select Normal for
Window Type in dropdown menu, fill the file name of small graph need
to be linked in Normal window name, example, temperature parameter
of BW Steam Drum Wall.hsg (please refer to 2.3.3.4); as shown in Add
button in system graph and name the button as title of the small graph
(please refer to 2.3.2.1); as shown in Figure 2.3.4-18.
165
SECTION 2Configuration Tools
8. Click OK;
9. Click Save as … in menu File to save the current graph. The save
path is file graph under folder of project name.
Excel file. With the help of report, user can monitor the system in real time
information and store the valuable information for further use.
• When using report configuration, editing tool like excel (Microsoft Office) or
Calc ( OpenOffice ) must be installed firstly.
• When installing MACS, the default report editing tool is OpenOffice: find
the install file
“\\report version\tools\OpenOffice \OpenOffice3.2.0_WinXP.exe” in install
CD”, and install the program manually. For the install process and install
steps, please read “chapter 1.5 software install of assistant tools”.
Fixed time report: The report consists of data record and statistics of
production process that printed at a fixed time based on configuration.
Real time report: The report consists of data record and statistics of
production process that printed at a random time chosen by user.
167
SECTION 2Configuration Tools
Double click the database and the report configuration main window will
appear as shown in Figure 2.4.2-2.
Note that this window is familiar to the Microsoft Excel except a toolbar on the
right top as shown in Figure 2.4.2-3.
The report is based on the Microsoft Excel. The detail is discussed in the
following chapter.
168
SECTION 2Configuration Tools
Report
Tag
Compile
Exit
2.4.3.1 Report
2.4.3.2 Tag
History tag:
169
SECTION 2Configuration Tools
Time Forward: The time interval from the time when report is
printed to the first point demanded to be printed.
Real-time Tag
Item Name: Item name of the data point which can not be voided.
• The input character size of “tag name”, mentioned above in “history tag”
and “real time tag”, is limited no more than 12.
171
SECTION 2Configuration Tools
Time Tag
Time Forward: The time interval from the time when report is
printed to the first point demanded to be printed.
172
SECTION 2Configuration Tools
Modify Tag
2.4.3.3 Compile
Click to compile the file to check the correctness of dynamic point description
and point name/item name. If the compiling is successful, a popup window will
appear, as shown in Figure 2.4.3-6.
2.4.3.4 Exit
Download OPS
Report print
configuration
Print setting
Report exprot
1. Select Start -> All Programs -> MACS -> MACS_ENG -> Report
173
SECTION 2Configuration Tools
(3) Select dynamic tag type which is to be added (please refer to 2.4.3.2);
(4) If adding time point, select a table cell, e.g. in A4 table, cell of column 1,
row 4, set the collecting frequency of time point as once per hour
everyday; as shown in Figure 2.4.4-4.
The adding of history tag and real-time tag is the same as adding of time
point.
7. When adding dynamic tags finished, click Compile;
8. It will popup dialog box Compile successfully, click OK;
9. Click Print Preview in menu Report;
10. Effect Diagram of Report Print comes up; as shown in Figure 2.4.4-5.
175
SECTION 2Configuration Tools
When report file is downloaded to file start, start Operator Station (please refer
to4.2.9.1Login), report print configuration and print setting will be completed in
Operator Online.
176
SECTION 2Configuration Tools
4. Select OK;
177
SECTION 2Configuration Tools
7. Click OK;
8. Report Print can be triggered by any command below:
Triggered by button Report Request Print in dialog box Report Print
Configuration (please refer to4.2.9.10Report Configuration);
178
SECTION 2Configuration Tools
Time of creating task: set auto print time online (time of operation step 4);
Time of the first time executing printing: the time of folder named by excel
report file name, which is under catalog of folder start in folder of OPS install
(time of operation step 9); e.g. Main Tags for Thermal Control_xls.
As well as last print time of report file and present time of auto print.
• The 4 time points must meet requirement that the former is earlier than the
latter in proper order, otherwise, the report might not be generated when
using function Auto Print;
• The proper order above does not affect result of report print manually .
2.5 Download
2.5.1 Introduction
Download includes three parts:
179
SECTION 2Configuration Tools
Download controller,
Download server
Select the project to download and click OK, the logon window will appear as
shown in Figure 2.5.2-2.
180
SECTION 2Configuration Tools
181
SECTION 2Configuration Tools
• In order to make download take effect, select Logout and Reboot the
Server after download before download.
182
SECTION 2Configuration Tools
All download files are selected by default as shown in the below window, click
Download, then graph and report contents in download file will be downloaded
to the Start directory in OPS.
2.5.5 Readback
183
SECTION 2Configuration Tools
• Please close the database control center firstly before use readback
command, while close all Codesys programs before controller readback.
184
SECTION 2Configuration Tools
help user monitor the system status and make relevant decision.
Title bar
Menu
Toolbar
Title bar is on the top of the main window which shows the name of the
software.
2.6.2.2 Menu
All menus and their items will be instructed in this chapter. The title of each
185
SECTION 2Configuration Tools
Shortcut button:
User can choose a historical data file to query.
2. File-Network Query
User can choose a network file path to query as shown in Figure 2.6.2-3.
3. File-End Query
Shortcut button:
User can end the query.
4. File-Exit
Shortcut button:
Exit the Historical Data Query software.
The menu Query is shown as Figure 2.6.2-4:
186
SECTION 2Configuration Tools
5. Query-Trend
Shortcut button:
Query trend of the historical data file.
6. Query-All Log
Shortcut button:
Query all log of the historical data file.
7. Query- Operation Log
Shortcut button:
Query operation log of the historical data file.
8. Query-Device Log
Shortcut button:
Query device log of the historical data file.
9. Query-SOE Log
Shortcut button:
Query SOE log of the historical data file.
10. Query-Trend Group Settings
Shortcut button:
User can set start time and end time of the query, and then click Next to
select trend group tag names as shown in Figure 2.6.2-5.
187
SECTION 2Configuration Tools
11. View-Toolbar
User can choose whether to show the toolbar, in front of this menu
means to show it, or else, not to show.
12. View-Status Bar
User can choose whether to show the status bar, in front of this menu
means to show it, or else, not to show.
The menu Help is shown as Figure 2.6.2-7:
188
SECTION 2Configuration Tools
2.6.3 Toolbar
The toolbar is a shortcut for the frequently used functions in the menu to
improve the efficiency. It provides access to basic commands for editing and
adding control elements as shown in Figure 2.6.3-1
Directory
To select a historical data file
choice
Operation
To query operation log
Log
Trend Group
To set trend group
Settings
189
SECTION 3
Control Station Algorithm
Configuration
3.1 Overview
Conmaker (Alias CoDeSys) is controller algorithm configuration software of
MACS system. It supports six programming languages which are provided by
IEC-61131 standard, as well as the editor and debugger. With advanced
structure and powerful function, Conmaker is easy to learn and master by
configuration engineer.
Download and run: Login the controller and download the program to
MCU (controller), then the program is running and be debugged
online.
191
SECTION 3 Control Station Algorithm Configuration
First select Project Name from the project list, then click Select button, the
FCSEditor window pops up, as shown in Figure 3.2.1-2.
192
SECTION 3 Control Station Algorithm Configuration
Control station number can be selected from the control station list window.
193
SECTION 3 Control Station Algorithm Configuration
194
SECTION 3 Control Station Algorithm Configuration
Menu bar: Including all menu commands which are required for
configuration, some of them can be selected through shortcut menu on
toolbar.
Object organizer: Composed of four tabs which are program, data type,
visualization and resource, each of them can open a corresponding
manager window.
1. Title bar
The contents of Title Bar from left to right are: software identification
(software icon and name), project name (project status), object being
edited (object name, type), window control button (maximize, minimize,
close the button), as shown in Figure 3.2.1-4:
195
SECTION 3 Control Station Algorithm Configuration
Edit: Edit, replace, look up and other operations for existing content.
Project: Compile, setup, view log and other operations for the project being
edited.
Insert: This menu can be selected when configuring user program, the
user can insert component of graphic programming language, add and
delete variables.
Online: Provide the related operation commands for project with real
system or simulation system, as download, online, simulation, etc.
All of the commands which are included in each menu can be realized by
operating shortcut key or pressing shortcut button in toolbar, please see
relative information for more details in"3.2.2Menu Bar and Shortcut ".
3. Toolbar
There are several groups of shortcut buttons (or tool buttons), usually
displayed as common tools and dedicated tools. The tool buttons offer
shortcut operation commands as well as "tool tips" function, when moving
the mouse onto a tool button, a yellow rectangle block will be displayed
below the mouse arrow and with content about name of the tool and
shortcut key.
Common toolbar
196
SECTION 3 Control Station Algorithm Configuration
197
SECTION 3 Control Station Algorithm Configuration
Dedicated toolbar
198
SECTION 3 Control Station Algorithm Configuration
POUs: Manage the POU (Program Organize Unit) of the project, such
as program, custom functional blocks and functions.
Data types: In this window, the user can add and edit the custom data
type which are including structure and ENUM.
Visualizations: In this window, the user can plot graph by using the
system geometry components, and integrate the data tag in algorithm
project, dynamically display and track the data variation.
File menu offer project file operation commands as open, close, save, print
and exit, as shown in Figure 3.2.2-1, detailed functions will be introduced in the
following.
199
SECTION 3 Control Station Algorithm Configuration
1. New
Shortcut button:
The user can build a new project by using this command, and the initial file
name is "Untitled ". It is recommended that user should better change this
file name when saving the project.
If user wants to build a project by "New", please see the specific process
in 3.2.3.1Program Organize Unit (POUs).
2. New from template…
The user can build a new project from an existing template 2 by using this
command. After select this item, a dialog pops up, the user can select the
project from existing templates in corresponding path, click Open, then
the user can build project in the corresponding template.
3. Open…
2
Template:Existing project file, can be used as the basic project for the new project, you can add
specific object and content for the new project. If you want to build some similar projects, the template
can decrease the amount of working.
200
SECTION 3 Control Station Algorithm Configuration
Shortcut button:
Shortcut key: <Ctrl>+<O>
The user can open an existing project by using this command. After
selecting this command, the dialog Open pops up, as shown in Figure
3.2.2-2, then the user can find the path for project.
4. Close
The user can close the current project by using this command. If the
project has already changed, it will prompt tips for asking if saving the
project or not, as shown in Figure 3.2.2-3.
5. Save
201
SECTION 3 Control Station Algorithm Configuration
Shortcut button:
Shortcut key: <Ctrl>+<S>
With this command the user can save changes of the project. If the project
is saved as "Untitled ", it's necessary to change the name. Select this
command, the "Save as" dialog will pop up, as shown in Figure 3.2.2-4,
then the user can set the project name and its saving path.
Internal library: file suffix is ".lib". The library file is a set of common
function block and functions, and it can be called by library manager.
Usually, the library is provided by system, it includes control scheme
functional block and functions which are frequently-used in industrial
system. The variable definition and program realization are in this file.
External Library: file suffix is ".lib". External library is the header file for
variable definition, the program is realized in other files (e.g. C), and
cooperation of the two files can complete a certain function.
6. Save as…
The user can save the current project to another file or library file without
changing the initial project file.
Select File->Save as, the Save as dialog pops up. Then select an existing
file name or type in a new name and the file type, click OK to finish the
202
SECTION 3 Control Station Algorithm Configuration
saving.
7. Save/Mail Archive…
The user can create compressed file for a project by using this command.
Select File->Save/Mail archive…, the Save Archive dialog pops up, as
shown in Figure 3.2.2-5, the user can set the catalog of the file which can
be added to the compressed package, click Save and set the name and
path for the compressed file; click the Mail, the project file is compressed
automatically and added as the default mail attachment; click Cancel to
cancel the operation and close the dialog.
In the control algorithm system, all the referenced files can be packaged
and compressed to zip file, and the zip file can be directly saved or sent by
email.
8. Print
Shortcut key: <Ctrl>+<P>
User can print the contents of active window by using this command.
Select File->Print, the Print dialog pops up as shown in Figure 3.2.2-6,
the user can select printer and set print range (page number), number of
203
SECTION 3 Control Station Algorithm Configuration
copies in the dialog, also the user can output the print content to file. Click
Print button, the current active window will be printed.
9. Printer Setup…
The user can edit the page layout to print the control scheme page onto
user-defined project drawing. Select File->Printer Setup, the page layout
dialog pops up as shown in Figure 3.2.2-7.
Type in file name with extension name ".dfr" in File field, the page layout
204
SECTION 3 Control Station Algorithm Configuration
will save in this file. The default file to save page layout is DEFAULT.DFR.
If the user wants to add other layout format, please click Browse, find the
file needed in Open window. Open printer setup window by clicking
Printer Setup (P) button, user can select whether or not to start a new
page for a project and subproject.
Click Edit (E) to open the specific page layout, as shown in Figure 3.2.2-8:
POU
{POUName} Print POU name at this position
name
205
SECTION 3 Control Station Algorithm Configuration
10. Exit
Shortcut key: <Alt>+<F4>
User can exit the algorithm configuration tool by using this command, if
the current project has any changes, the system will prompt to save.
3.2.2.2 Edit
Edit menu provides a series of operation commands to edit the opened project,
it can be used in all kinds of editor (language editor, declaration editor), as
shown in Figure 3.2.2-9, the detailed functions are introduced in the following.
1. Undo
Shortcut key: <Ctrl>+<Z>
This command cancels the latest action in editor or object organizer.
Repeat this command, all the actions can be canceled and get back to the
moment if the window was opened. This applies to all the actions in editor
or object organizer. With Edit->Redo, user can restore the action which
user have undone.
2. Redo
Shortcut key: <Ctrl>+<Y>
With this command user can restore the undone actions (Edit->Undo) in
206
SECTION 3 Control Station Algorithm Configuration
editor window or object organizer. As the command Undo, user can also
execute the command Redo.
3. Cut
Shortcut button:
Shortcut key: <Ctrl>+<X> or <Shift>+<Delete>
With this command user can copy the currently selected object from editor
to clipboard, and delete this object from editor at the same time. In object
organizer, this command applies to the currently selected object, but not
all of objects can be deleted.
4. Copy
Shortcut button:
Shortcut key: <Ctrl>+<C>
With this command user can copy the currently selected object from editor
to clipboard, and this does not change the contents of editor window. In
object organizer, this command applies to the currently selected object,
but not all objects can be copied, e.g. the MACS configuration. Not all
editors support copying and it is limited to certain editors. It applies to the
objects which can do Edit->Cut operation.
The operation Copy does not pop up any dialog, after the Paste operation,
according to paste frequency, there will be an underline and a number
added behind the original object to identify the new object.
5. Paste
Shortcut button:
Shortcut key: <Ctrl>+<V>
With this command user can paste the content from the clipboard onto the
current position of the editor. In the graphic editor (FBD/CFC/LD), the
command can only be executed when the insertion is a correct structure.
The object to be pasted is from clipboard. Not all editors support pasting
and it is limited to certain editors.
6. Delete
Shortcut key: <Del>
With this command user can delete the selected region from the editor
window. This operation do not change the contents of the clipboard. This
operation also applies to delete the selected object in object organizer, but
not all objects can be deleted, e.g. the MACS configuration. For the types
of selected contents, it is the same with Edit->Cut.
7. Find…
207
SECTION 3 Control Station Algorithm Configuration
Shortcut key:
With this command user can search a certain text in the current editor
window, open the Find dialog as shown in Figure 3.2.2-10:
Find what: Input the string which user are looking for in the field Find
what;
Match whole: Set whether to search the contents match whole with
the content of Find what;
Find next: Search the contents which meet search condition one by
one until the system prompts "** not found " to finish task.
Shortcut button:
Shortcut key: <F3>
With this command user can execute once searching with the same string
as with the most recent searching action Edit->Find.
9. Replace…
Shortcut key: <Ctrl>+<H>
With this command user can search a certain string just like the command
Edit->Find, then replace the content with other string automatically.
208
SECTION 3 Control Station Algorithm Configuration
Choose this command, and then the Replace dialog opens as shown in
Figure 3.2.2-11
Find what: Input the string which user are looking for in the field Find
what;
Replace with: Input the new string which user want to replace in the
field Replace with ;
Match whole word only: Set whether to search the contents match
whole word with the content of Find what;
Match case: Set whether to distinguish capital letter and lower case;
Find Next: Search the contents which meet search condition one by
one until the system prompts "** not found " to finish task.
Replace: After clicking this button, the former string be searched will be
replaced by the new string. Click Find next, the user can continue
searching the content which meets the search condition, once find,
click Replace to replace, repeat the operation until the system prompts
"** not found ", then the replace is finished.
Replace All: With this button user can replace all the strings meets the
condition at the same time. When the replace operation is completed,
a dialog will pop up to prompt how many replacements have made, as
shown in Figure 3.2.2-12
209
SECTION 3 Control Station Algorithm Configuration
The Replace dialog does not close automatically with the termination of
searching, it only closes when the user click Cancel button or Close
button.
Also, the Replace command only applies to the current page. Global
Replace in Project menu can search in the assigned position of the whole
project.
10. Input Assistant…
Shortcut key: <F2>
This command can quickly display the tips related to the selected cursor
contents.
Press F2 on the current cursor position in edit window, the Help Manager
pops up as shown in Figure 3.2.2-13:
Help Manager displays the options can be inserted in the current position,
as operator, function, functional block and variable type. The left column
displays the input type can be selected, and select the desired input in the
right column, click OK to confirm the choice. The user's selection will be
inserted in the position of cursor.
11. Auto Declare…
Shortcut key: <Shift>+<F2>
This command can assist user to complete the declaration of the variable
automatically. Select a variable and select this command or using shortcut
210
SECTION 3 Control Station Algorithm Configuration
This function in working space can assist to display, define or edit the
variable and its related items include variable name, type, catalog, initial
value and notes, etc.
12. Next Error
Shortcut key: <F4>
This command can assist to locate compile information. When the
message window displays incorrect compilation of a project, the user can
select Edit->Next error or press F4 to find the next compile error. The edit
window of the corresponding error will be located, and the corresponding
error message is active.
13. Previous Error
Shortcut key: <Shift>+<F4>
This command can assist to locate compiled information. When the
message window displays incorrect compilation of a project, user can
select Edit->Previous Error or press F4 to find the previous compiled
error. The edit window of the corresponding error will be located, and the
corresponding error message is active.
14. Macros
With this command user can open macros list in the project by select and
executing the macro operation. User can define a macro by selecting
Project->Options->Macros.
3.2.2.3 Project
211
SECTION 3 Control Station Algorithm Configuration
1. Build
Shortcut key: <F11>
With this command user can compile the project, compiled information will
be displayed in the message window. The compiling process is basically
incremental, that is the changed program will be recompiled only. A
non-incremental compiling can also be obtained if the command
Project->Clean all is executed before.
The compile process will be carried out automatically if the Online->Login
command is executed.
2. Rebuild all
Unlike the incremental compiled command, with this command the user
can completely recompile the whole project. The download information will
not be discarded without executing Clean all command.
3. Clean All
With this command, all of the compiled information can be cleared,
212
SECTION 3 Control Station Algorithm Configuration
Select Yes to clear all compiled information of the project; select No not to
do the clear operation.
• After Clear all, the system will prompt to initialize download when login the
controller next time.
5. Object
With this command user can do operations on the selected object as
delete, add, rename, convert, copy, edit and property, etc.
213
SECTION 3 Control Station Algorithm Configuration
Type the changed object name in New Name, Click OK to finish the
rename operation.
• Also the software key words cannot appear in the object name, as VAR,
return, and the default display of key words in the software is blue font.
214
SECTION 3 Control Station Algorithm Configuration
Conversion: User can convert the POUs from the languages SFC, ST,
FBD, LD or IL into one of the three languages which are IL,FBD or LD.
Select Project->Object->Convert command, the Convert Object
dialog pops up as shown in Figure 3.2.2-19:
After selecting language type of the object unit, the object can be
converted into new POU, type in new name in the New POU Name and
click OK, and then a new POU is converted. Otherwise, the original POU
is converted. Please notice that the project must be compiled without error
before the convert operation. Or else there will be an error message
window pops up as shown in Figure 3.2.2-20:
215
SECTION 3 Control Station Algorithm Configuration
Type in new name in New POU name, and click OK to generate a new
object. This command is different from Edit->Copy, the Edit->Copy
command does copy to the clipboard without dialog popping up.
Edit: Execute this command after selecting objects (program, data type,
visualization or global variable), and the corresponding editor is
loading in the working space.
The related commands can be found in the right click menu of the objects,
and the executing processes are identical.
216
SECTION 3 Control Station Algorithm Configuration
6. Options…
With this command user can open the Options settings dialog, the
options are divided into several categories as shown in the left list in
Figure 3.2.2-23. Click the category name in the list and the corresponding
setting states are shown in the right window, different options have
different settings.
Options contains: Load & Save, User Information, Editor, Desktop, Colors,
Directories, Log, Build, Passwords, Source download, Database-
connection, Macros.
The user can also open "Option" dialog by clicking Working Space in
Resource Management window.
The common used functions are introduced here as Load & Save, Source
download and symbol download, the parameters of the other options can
use the default value.
Load & Save
Click this option and the corresponding setting states are shown in the
right window as shown in Figure 3.2.2-24:
217
SECTION 3 Control Station Algorithm Configuration
Create Backup: when saving the project, a project backup file with
extension ".bak" will be generated and saving the last project file.
Default is not selected.
Auto Save: Auto save the project into a temporary project file with
extension ".asd" after a certain time interval. The file is
automatically deleted if the Conmaker closes normally; otherwise,
when reopen the Conmaker, the system will prompt to select if
open the saved the temporary file or the initial file.
Auto Save before compile: Auto save the project into a temporary
project file with extension ".asd" every time before compiling, this
action is same as " Auto Save ".
Ask for project info: With this option there will be a "Project
Information" dialog pops up when the user saves a project with
new name, the dialog displays the file name, catalog and change
date, and demands to input the project info: title, author, version,
description, as shown in Figure 3.2.2-25:
218
SECTION 3 Control Station Algorithm Configuration
Auto Load: With this option the last opened project file will be
loaded automatically when the controller algorithm software starts
up.
Save ENI3 Credentials: ENI related user name and password will
be saved with the project.
3
ENI:ENI is a kind of interface component. It connects the CoDeSys programming system with the
external database.
219
SECTION 3 Control Station Algorithm Configuration
Source download
To make sure the time project source code which will be downloaded into
the controller in "Timing" check box.
Only on demand: The source code will only be loaded into control
system when executing the command Online->Source code
download.
220
SECTION 3 Control Station Algorithm Configuration
• In real project configuration, usually select Only on demand and All files.
Symbol configuration
221
SECTION 3 Control Station Algorithm Configuration
View translated project: User can view the translated project files.
Toggle translation: Once the project have been toggled, the translate
project option will be turn gray so that user can not do translation to
this project no longer. User can translate the project after reselection
the toggle translation.
8. Document…
With this command, user can print all the files or part of the files which are
included in current project. Usually, a project includes components as
POUs, document, data type, visualization, resource (global variable, log,
variable setting, sample track, MACS configuration, and task
configuration), POU call tree and data type, etc. After selection of this
command, the Project document dialog pops up as shown in Figure
3.2.2-30, the configuration tree with project name as its root node is
shown and user can select multiple project components with Ctrl key, the
selected components are highlighted in blue. Then click OK to start Print
window to output.
222
SECTION 3 Control Station Algorithm Configuration
9. Export…
With this command, user can import and export the project components
about controller algorithm. It's easy for program change among different
IEC programming systems.
Select Project->Export, "Export project" window pops up as shown in
Figure 3.2.2-31:
223
SECTION 3 Control Station Algorithm Configuration
User can select the export components in the configuration tree with
project name as its root node.
There is a standard exchange format for the programs, which is written in
IL, ST, and SFC (description about these programming languages will be
in the following). For the program in LD, FBD and other objects, there is
no appropriate text format for IEC1131-3, so the control algorithm has its
own text format. The selected objects will be written into ASCII file. The
program, data type, visualization and resource can be exported and saved
as ".exp" file.
10. Import…
With Project->Import command, select the desired file with extension
".exp" in the opened "Import project" dialog,, and the data will be imported
into the current project.
If an object have already exists in the same project with the same name, a
dialog pops up to ask "The object already exists. Do you want to replace
it?", as shown in Figure 3.2.2-32:
224
SECTION 3 Control Station Algorithm Configuration
The title of this dialog is the name of object, if Yes is selected, the object in
the project will be replaced by the object from the import file; if No is
selected, the name of the new objects receives as a supplement an
underline and a digit ("_0","_1",…); with Yes, all or No, all, the
corresponding operation will be executed to all the objects.
11. Siemens Import
This menu item includes the submenu of language settings, as shown in
Figure 3.2.2-33:
In its submenu, there are commands to import program and variables from
Siemens-STEP5 or STEP7 files.
Import an SEQ symbol file
With this command, the global variables are imported from STEP5, and
this importation should before "Import an S5 project file ", therefore, the
symbol name can be created in absolute address when the program is
imported. Select the symbol file with extension ".seq".
Import an S5 project file
User can import program from Siemens S5 file, and select the S5 file with
extension ".s5d".
12. Merge…
With this command, the objects (program, data type, visualization and
resource) from other project can be merged into current project. Select
Project->Merge, find the desired project in "Copy project" dialog, then the
"Merge project" dialog pops up as shown in Figure 3.2.2-34:
225
SECTION 3 Control Station Algorithm Configuration
Select the desired merge objects, the selected objects are highlighted in
blue, the user can select multiple objects with Ctrl key. Then click OK to
finish. If an object with the same name already exists in the project, there
will be a dialog box pops up to ask whether to cover the existed one.
13. Compare…
With this command, there will be a compare window to display the
comparison of the opened project and other project. For example, before
saving, user can compare the current version of this project to its previous
version to see changes.
After executing this command, the "Project comparison" dialog pops up as
shown in Figure 3.2.2-35:
226
SECTION 3 Control Station Algorithm Configuration
227
SECTION 3 Control Station Algorithm Configuration
The compare area is divided into left part and right part, the left is current
project, and the right is the project to compare, each project is displayed
as tree diagram, identify the similarities and differences of the comparison
result with using different colors, there are four kinds of results as the
following:
Red: Objects with same name in both projects but actually are
inconsistent.
Double click the information line of the compare window to unfold the
detailed compare window. Click the Close button of the compare window
to close the compare result.
14. Project Info…
With this command, User can save the information of the project. Select
Project->Project info, a dialog pops up as shown in Figure 3.2.2-37:
228
SECTION 3 Control Station Algorithm Configuration
The following project information displays: file name, path, the time of the
most recently change (change date). The information can not be changed
manually.
In addition, user can add the following information: title of the project,
author, version number, description of the project. These information are
optional.
Press the Statistics button in Project Information dialog, the static
information of the project will be displayed. The static information includes
POUs, data type, global variables and local variables about their last
compilation. As shown in Figure 3.2.2-38:
If the Ask for project info in the category Load&Save in the option dialog
is selected, then when saving a new project or saving a new project with a
new name, the project dialog will be called automatically.
15. Global Search…
Shortcut key:
With this command, user can search the specified contents in selected
object of current project, and search the desired objects according to the
key word.
Select Project->Global Search command, the search scope setting
window pops up as shown in Figure 3.2.2-39:
229
SECTION 3 Control Station Algorithm Configuration
The default selection is including all objects, and user can set search
scope according to the actual situation, click OK, and then Global search
dialog pops up as shown in Figure 3.2.2-40:
230
SECTION 3 Control Station Algorithm Configuration
With this command, user can search the specified content in the selected
object of current project, and replace the desired object according to the
key word.
Select Project->Global Replace command, the search scope setting
window also pops up, after setting, the Replace dialog pops up as shown
in Figure 3.2.2-41:
Type the corresponding string in Find what and Replace with, and set
search demand, then click Find Next and Replace to replace one by one.
Click Replace All to replace all objects meet the demands. This is
executing in the same way as Edit->Replace.
17. View Instance…
Open the function instance to view. User should first do Online->Login
operation to the compiled and errorless program, and then the instance
can be viewed.
18. Show Call Tree
With this command, user can open a window displays the call tree of the
POU object.
Select a POU object in POU organizer window, select Project->Show
Call Tree, the call tree window of the object pops up as shown in Figure
3.2.2-42:
The call tree takes the selected node as root node, and unfolds the related
POU objects. User can open call tree windows of several objects. Please
231
SECTION 3 Control Station Algorithm Configuration
notice that the project must be compiled before executing this command,
only after compilation is successful, user can view call tree.
19. Show Cross Reference…
With this command, user can view variables, address or the cross
reference of program in current project.
Select Project-> Show Cross Reference, the Cross references dialog
pops up as shown in Figure 3.2.2-43:
In Selection box, the object category can be set and name can be
viewed:
232
SECTION 3 Control Station Algorithm Configuration
Category: User can view the object category from the dropdown list of
the category to select variable, address, POU.
Get References: Click Get References button, user can get the
reference information in List of box. The selected information is
highlighted in blue.
20. Check
This menu item includes the operations about view variable information as
shown in Figure 3.2.2-44:
This menu can help execute check command. The check result is
displayed in the message window. Check command includes:
Unused variable: check if there are any unused variables, if not, the
message window will give tips as: No unused variables found.
233
SECTION 3 Control Station Algorithm Configuration
With this command, user can add new program branch for the selected
POU object.
Select Project->Add action, New Action dialog pops up as shown in
Figure 3.2.2-45:
Type in the new action name and select the action language, click OK to
finish.
22. User Group Password…
With this command, user can create access password for the access
users of different levels in the algorithm project.
The Password for user group window pops up when the project is
opening, after select the user group level, input the correct password to
open the project, or else, the system will prompt that the password is
incorrect. Only user in group 0 can set use group password and have the
access rights of the objects.
There are 8 user groups in controller algorithm, and they have different
access rights about program, data type, view and resource, access rights
for single objects or all of which can be established. Only a member of a
certain user group can open a project, a member of such a user group
must identify himself by password.
The user groups are numbered from 0 to 7, user in group 0 has the
administrator rights. Only member of group 0 may determine passwords
and have access rights for all of groups and objects.
When a new project is launched, then all passwords are initiallied empty.
Until a password has been set for the 0 group, user will enter the project
automatically as a member of the 0 group.
If a password for the user group 0 existing while the project is loaded, then
password will be demanded for all groups when the project is opened. As
shown in Figure 3.2.2-46:
234
SECTION 3 Control Station Algorithm Configuration
Figure 3.2.2-46 Dialog Box " Password for User Group "
The project can be opened only by the correct password. If the password
does not agree with the saved password, then the message box pops up:
”The password is not correct”.
With the command Password for user group, user can assign the
passwords, and with Access rights in Object->Property as shown in
Figure 3.2.2-47 , user can define the rights for single objects or all of them.
With this command, user can determine different passwords for user
groups. This command can only be executed by members of group 0.
When the command is executing, the following dialog pops up as shown
in Figure 3.2.2-48:
235
SECTION 3 Control Station Algorithm Configuration
Select group in User Group and type in the corresponding password, for
each typed character an asterisk (*) appears in the field. User should
repeat the same password in the field Confirm Password. Close the
dialog with OK, if a message box appears as:
"The password does not agree with the confirmation". It means that the
two inputs are inconformity, so please repeat until the dialog box does not
appear. Then, if necessary, assign a password for the next group by
calling the command again.
3.2.2.4 Insert
When programming, the insert tool can help to define variable, call function
block, operator and function. For different programming languages and the
current positions, the items to be inserted in the insert menu are also different.
Take LD language for example, the using method of Insert menu is introduced
in several cases.
236
SECTION 3 Control Station Algorithm Configuration
User can insert some function block, output, comment and definition key
word, variable type of the LD language, etc.
2. Cursor is in the visualization object of Visualization tab.
If a new visualization object is established in Visualization tab, the insert
operation is to insert visualization component, as shown in Figure
3.2.2-50:
237
SECTION 3 Control Station Algorithm Configuration
238
SECTION 3 Control Station Algorithm Configuration
The specific functions of insert menu items are introduced in detail in the
following chapters and nodes.
3.2.2.5 Extras
For different programming languages and the current positions, the items
displayed in the Extras menu are different. Take LD language for example, the
using method of Extras menu is introduced in several cases。
239
SECTION 3 Control Station Algorithm Configuration
Negate: Do NOT on contact and coil. The value of coil after do NOT
operation will be saved in the corresponding logic variable. If do NOT
on contact, only the logic variable is FALSE allowed to connect the
contact.
Set/Reset: The coil can be defined as Set or Reset state. Coil symbol
(S) indicates a set coil. Once be set as TRUE, the coil will keep TRUE
until be reset. Coil symbol (R) indicates a reset coil. Once be set as
FALSE, the coil will keep FALSE until be set again.
Zoom: Its shortcut key is" Alt+Enter ". In ladder diagram, do Zoom on
the selected function block, the Help file appears as Library Manager,
then user can see the application of this function block.
240
SECTION 3 Control Station Algorithm Configuration
241
SECTION 3 Control Station Algorithm Configuration
Monitoring active: Select this item," √" is shown before Activate, then
activate the watch list, the user can watch the variables in the list.
Load Watch List: Reload the saved watch list with .wtc as its extension.
3.2.2.6 Online
Menu Online offers operation commands for the project online running and
simulation, as online, run, simulation and other command items. As shown in
Figure 3.2.2-58:
1. Login
242
SECTION 3 Control Station Algorithm Configuration
Shortcut button:
Shortcut key: <Alt>+<F8>
Combine programming system with controller, with this command, the files
related to the project are downloaded to the controller, the system turns
into online debugging state.
2. Logout
Shortcut button: 。
Shortcut key: <Ctrl>+<F8>>
With this command, user can logout the debug state and switch to
program edit state.
3. Run
Shortcut key: <F5>
Start the program to enter running state. Select Online->Login command,
or select this command after Stop in online state can enter running state.
4. Write Values
Shortcut key: <Ctrl>+<F7>
With this command, user can change the value of the variable when
debugging. Double click the variable in the running program, a dialog pops
up as shown in Figure 3.2.2-59:
Old Value displays the current value, input the new value in New Value,
click OK to confirm, and then select Online->Write Values to change the
variable value.
5. Force Values
Shortcut key: <F7>
This command can also set variable value when debugging. At the end of
a cycle, the forced variables are written with a fixed value until executing
Release Force command. The operation of force value is basically
similar as the write value, the difference is that force to click OK to confirm
input, then select Online->Force Values to finish, the forced variable is
displayed in red font . Double click the forced variable to release
243
SECTION 3 Control Station Algorithm Configuration
244
SECTION 3 Control Station Algorithm Configuration
8. Simulation Mode
If simulation mode is chosen, then the check symbol "√" will appear in
front of the menu item. In simulation mode, user program runs on the local
PC with operating system. This mode is used to test the project. If it is not
in simulation mode, the program will run on the controller.
9. Create boot project
In the case of debugging with controller, with this command user can
download the boot project and symbol table to the project path of local PC.
10. Write file to PLC
In cases of debugging with controller, with this command user can write
the files related to project to controller.
11. Read file from PLC
In cases of debugging with controller, with this command user can read
back the files related to project from controller.
3.2.2.7 Window
The Window menu offers commands to set the layout pattern of the windows
in working space, offers commands to open library manager, log and
information window, and switch displays the opened window, as shown in
Figure 3.2.2-62, the specific functions are introduced in the following.
245
SECTION 3 Control Station Algorithm Configuration
1. Tile Vertical
With this command user can arrange all the windows vertically display in
working space without overlap and filling in entire working space.
2. Tile Horizontal
With this command user can arrange all the windows horizontally display
in the working space without overlap and filling in entire working space.
3. Cascade
With this command user can arrange all the windows cascading as one
behind another, staggers successively.
4. Arrange Symbols
With this command user can arrange all the minimized windows in a row
in the lower end of the working space.
5. Close All
With this command user can close all the opened windows.
6. Messages
With this command user can open/close the message window. Select
Message, a check symbol appears in front of the command, then the
message window is open, select the Message again, the check symbol
disappears, the message window is closed.
7. Library Manager
With this command user can open the library manager window, add
/delete library to/from the library list in the top left corner. Select
Window-> Library Manager, and open the window as shown in Figure
3.2.2-63:
246
SECTION 3 Control Station Algorithm Configuration
Library file list: All the library file that the project currently used are
in the top left corner of the window, user can select one of the
library names to visualization the contents of the library;
Function block and function list: All the function blocks and function
list included in the selected library are displayed in the bottom left
corner of the window, user can select one function block to
visualize its pin description and graphic symbol in the right window;
If user needs to add new library, please right click in the top left part of the
window, and a dialog pops up as shown in Figure 3.2.2-64:
247
SECTION 3 Control Station Algorithm Configuration
248
SECTION 3 Control Station Algorithm Configuration
3.2.2.8 Help
This menu includes 3 common help windows as contents, search and index,
select one of them to open the help window, and three tabs can be switched.
Click About menu item, the system software product trademark pops up to
display the information of software name, identification, version, copyright, etc.
Data type : Edit and manage the custom data type in project which is
divided as structure and ENUM.
User can see detailed explanation of concept and operation in the online help
of this software.
The four parts above are corresponding with the four tabs of the object
organizer, click each tab to switch among the four managers, each manager
manages the object resources by tree diagram, as shown in Figure 3.2.3-1:
250
SECTION 3 Control Station Algorithm Configuration
In the following, there is a brief introduction about how to create a new project
by using each object.
1. Create project
Select POUs tab in the object organizer, open the POUs management
window to write program, the steps are as following:
251
SECTION 3 Control Station Algorithm Configuration
252
SECTION 3 Control Station Algorithm Configuration
Select Target Settings, and click OK to close this window. If user wants to
view this window again or change the controller type, user can open
Resource tab, double click Target Settings object to open this window.
After operation above, the dialog box pops up as shown in Figure 3.2.3-4,
user can create a new main program with the default name
"MACS_PRG".
253
SECTION 3 Control Station Algorithm Configuration
The default program name is (Untitled)*, user can change the file name by
saving it.
Right click the root node-POUs of the program manager. The menu pops
up is shown as Figure 3.2.3-6:
254
SECTION 3 Control Station Algorithm Configuration
Type POU name in the Name of the new POU, select type of POU and
language of the POU, and click OK to finish the operation. There will be a
program branch added below the root node of the POUs manager window,
as shown in Figure 3.2.3-8:
255
SECTION 3 Control Station Algorithm Configuration
2. Command operation
Right click the mouse in each node of the program manager, the items in
the right click menu will be displayed as enabled or disabled according to
the selected object type, black is enabled and gray is disabled. User can
add, delete, change or group the POU by the right click menu, as shown in
Figure 3.2.3-6, the operation of add, delete, copy, rename and convert
should reference the corresponding commands in Project->Object, which
have the same operation.
The common used right click menus are introduced in the following:
256
SECTION 3 Control Station Algorithm Configuration
Edit: Execute this command on POU sub node or double click POU
name, user can open POU edit window in working space;
New folder: Create new folders below the root node, the default name
is "New Folder+number", the first created folder name is "New Folder".
The folder is available to do sort management on the POU below root
node, select POU sub node and drag the left mouse button to move it
in the target folder in program manage window, then release the
mouse and the sun node is in the folder. Or, user can right click the
folder to add POU node in another way.
Property: Configure access property for POU, user can set access
rights of group 0-7 as shown in Figure 3.2.3-9:
257
SECTION 3 Control Station Algorithm Configuration
Other commands in the right click menu will not be introduced here,
please view the menu bar description or the POU using description
subsequently.
3.2.3.2 Data Type
As standard data type, user can define own data type and define structure,
ENUM, reference and sub-range in data type manager.
Click Data types in object organizer, and open the data types manager
window as shown in Figure 3.2.3-11
258
SECTION 3 Control Station Algorithm Configuration
The current operation tips are shown in the status bar of Conmaker. Right
click the Data types root node in the current manager window (this
manager is also displayed as tree diagram), select the Add Object
command in right click menu.
Name data type
After selecting Add Object command, the dialog New data type pops up
as shown in Figure 3.2.3-12:
Type in the name of new data type in New data type box, take"
StructExample" for example, click OK, then the sub node " StructExample"
is added below the Data types root node in data type manage window,
and open the edit window of this data type in the working space, as shown
in Figure 3.2.3-13:
259
SECTION 3 Control Station Algorithm Configuration
260
SECTION 3 Control Station Algorithm Configuration
The definition of custom structure and using of its members are displayed
in the figure, type in structure case name in programming area, all the
members of the structure are displayed after inputting member symbol ".",
user can select the members of this structure by mouse or the up and
down key of keyboard.
The custom data type in data type manager can also be ENUM, reference
or sub-range, different types corresponds with different grammar key word,
and please see detailed contents in "3.3.1 Data".
The defined custom data types can be recognized in the whole project,
they can be used as standard data type. Please notice that the names of
them should be different, type name offered by the system.
3.2.3.3 Visualizations
3.2.3.4 Resources
261
SECTION 3 Control Station Algorithm Configuration
262
SECTION 3 Control Station Algorithm Configuration
Add task "New Task" in the left task list, the Taskattributes window is
displayed as a task tree on the right as shown in Figure 3.2.3-18:
263
SECTION 3 Control Station Algorithm Configuration
Name (N): The default task name is NewTask. Select task name and
click mouse, the edit control box appears, then the user can rename
the task, it is suggested to changed it as " MACSTask +Station No."
Run with full speed (run as fast as possible): The task starts to
execute as soon as the program starts. Once the task is completed,
it will take looping execution immediately, there is no need of loop
interval. Its icon is .
Interval: The running cycle of the program, its format is in line with the
time variable format, the default format is T#250ms.
Sensitivity: It does not generate errors and can receive the times of
watchdog timeout error occurs.
Add the program name to be called after defining the task property. Right
click mouse on task, the menu is shown as Figure 3.2.3-19 , select
Append Program Call, then add MACS_PRG() to this task.
264
SECTION 3 Control Station Algorithm Configuration
As shown in the right click menu, user can do common operation as cut,
copy, paste, delete and other operations as following:
Insert task: Select one task name in the task tree, right click mouse,
select Insert Task in right click menu, then a new task is inserted in the
currently selected task;
Enable task: Select one task name in the task tree, right click mouse,
select Enable/disable task in right click menu to switch the task active
or not. The enabled task is gray, or else, it's black.
For example: the Figure 3.2.3-20 shows a task with name is MACSTask,
priority is 1, cycle interval is 50 ms,it's enabled and user can call
MACS_PRG through this task.
265
SECTION 3 Control Station Algorithm Configuration
• The time interval property is available when the task type is running
periodically. Input the numbers of time format, as T#50ms, the cycle value
is set here should be integral multiple of 50, e.g. T#250ms. Please see
related contents in 3.5.4.1Trigger POU.
2. Tools:Parameter tools
Conmaker parameter tools contain Param Readback and Parameter Write.
Param Readback is to read the online changed parameter online to offline
status in controller.This tool only helps to readback parameter to offline
project at present. Parameter Write.is to download the offline changed
parameter of database control center to controller online without clearing
Refer to “3.8 Parameter” for details.
266
SECTION 3 Control Station Algorithm Configuration
3.3.1 Data
Data is the operation object of control and operation in industrial system, and it
is stored in memory of CPU module. The data must be defined before be used,
and the definition of data includes two parts: data name and data type, the
common used data types are introduced here.
The data types (or variable type) supported by this software which are divided
as standard data type and custom data type, they are shown as follows:
BOOL
Integer
REAL/LREAL
String
Date
1. BOOL
BOOL type data is logic value which occupies 8 bits in memory. Its value is
"0"or"1", "TRUE" or "FALSE".
2. Integer
The data type of Integer is divided as BYTE, WORD, DWORD, SINT,
USINT, INT, UINT, DINTand UDINT. The feature of integer is that it has no
decimal place. The data range is shown in Table 3.3.1.1:
Table 3.3.1.1 Data Range and Storage Space of Integer Data
267
SECTION 3 Control Station Algorithm Configuration
• There will be information lost when the data is conversed from the larger
range type to smaller range type.
3. REAL
REAL type data is also called float data, its feature is that it has decimal
place and can be expressed as integer, decimal or exponential format.
REAL type data is divided as REAL and LREAL (long real).
The data of REAL occupies 32 bit storage space, its value range in
negative is -3.4028235E+38 to -1.401298E-45 and it is in positive
is1.401298E-45 to 3.4028235E+38 in positive.
The data of LREAL occupies 64 bit storage space, its value range in
268
SECTION 3 Control Station Algorithm Configuration
negative is -1.79769313486231570E+308 to
-4.94065645841246544E-324, it is 4.94065645841246544E-324 to
1.79769313486231570E+308 in positive.
e.g. R1:LREAL:=23.34、R2:REAL:=1.64e+009.
• 1#INF means infinity number, there is positive infinity and negative infinity,.
It is get from 0 divides the limited number except 0, or exceed the upper or
lower limit of REAL data. There is no error when 0 divides a REAL number.
4. String
A string can include a sequence of characters. The value in the round
brackets is the defined character number. The default length is 80
characters if there is no assigned storage space.
This software does not force the string length, but the string function can
only handle the strings whose length is between 1 and 255.
For example: declare a string with length is 35:
str:STRING(35):='This is a String';
5. DATE
The DATE data type is helps to define time(TIME), time of the day (TOD),
date(DATE), and date time(DT).
Time(TIME)
TIME1 := t#13d12h34m15s;
Incorrect definition:
TIME1 := t#5m68s; (*limit exceeded in a lower component*)
• The highest component may be allowed to exceed its limit, but the lower
one can not exceed its limit.
Date(DATE)
The identifier of date data is DATE, it is used to store dates. There are four
formats to define the date: D# , d# , DATE# , date# , the date data is
behind the format character #, and year, month, day are given in order. As
shown in TimeVar2 in Figure 3.3.1-1.
Date time(DT)
The identifier of date time data is DT, it is used to store date and time.
There are four formats to define the date time: DT#, dt#,
DATE_AND_TIME#, date_and_time#, the date and time data is behind
the format character #, and year, month, day ,hour, minute, second are
given in order. As shown in TimeVar3 in Figure 3.3.1-1.
Time of day(TOD)
The identifier of time of day data is TOD, it is used to store time of day.
There are four formats to define the date time: TOD#, tod#,
TIME_OF_DAY#, time_of_day#, the time of day data is behind the
format character #, and hour, minute, second are given in order, among
which the second is REAL, so it has decimal number. As shown in
TimeVar4 in Figure 3.3.1-1.
270
SECTION 3 Control Station Algorithm Configuration
Besides standard data types, user can define data types as need:
Array
Structure
ENUM
reference
sub-range
pointer
The data type structure, ENUM, reference and sub-range must be defined in
Date type manager, and used in variable definition area in programming area.
The grammar, declaration, access and notes are briefly introduced in the
following.
1. Array
One-dimension, two- dimension and three- dimension array are basic data
type. User can define arrays in declaration area or in global table in
program.
Grammar:
271
SECTION 3 Control Station Algorithm Configuration
Structure definition:
TYPE STRUCT1
STRUCT
p1:int;
p2:int;
p3:dword;
END_STRUCT
END_TYPE
Array initialization:
ARRAY[1..3] OF STRUCT1:=
[(p1:=1,p2:=10,p3:=4723),(p1:=2,p2:=0,p3:=299),
(p1:=14,p2:=5,p3:=112)];
Use implicit function CheckBouds to check if the array bounds are over
limits.
Examples:
In the following program, the array "a" exceeds its upper limit.
PROGRAM PLC_PRG
VAR
272
SECTION 3 Control Station Algorithm Configuration
a: ARRAY[0..7] OF BOOL;
b: INT:=10;
END_VAR
a[b]:=TRUE;
In the above program, the implicit called CheckBounds function changes
the index from 10 to upper limit value 7, then TRUE is assigned to array
component a[7]. This is the process of CheckBounds to correct the access
which exceeds the limits.
2. Structure
Structure is a dataset which is consists of a series of data of same type or
different type.
Grammar:
TYPE Polygonline:
STRUCT
END_STRUCT
END_TYPE
273
SECTION 3 Control Station Algorithm Configuration
Notice that the variable can not be used to init a structure, the structure
must be initialized with a specific value.
END_TYPE
274
SECTION 3 Control Station Algorithm Configuration
Examples:
TYPE message:STRING[50];
END_TYPE;
Var1:message;
Var1:='This is a String';
5. Sub-range
Reference is used to define a new reference data type, and it can reset
the data range of the basic data type so as to create variables. User can
define it in Data type manager, or define it in variable declaration.
Grammar:
TYPE
SubInt : INT (-4095..4095);
END_TYPE
Or use variable declaration directly:
VAR
i : INT (-4095..4095);
ui : UINT (0..10000);
END_VAR
6. Pointer
The pointer is used to store addresses of variable, program, function block
and function when program is running. The pointer can point to data type,
function block or user-defined data type.
Address operator ADR is used to assign address of variable or function
block to pointer. Add "^" operator behind the pointer identifier can get the
contents of the address which be pointed by the pointer.
275
SECTION 3 Control Station Algorithm Configuration
Grammar:
Examples:
3.3.2 Operand
The working process of PC is the execution process of PC program, and PC
program is a series of instructions which are arranged in a certain order. An
instruction includes operation code and operand. Operation code is usually
called operator, it will be introduced in the following section. In this section, the
operand is introduced which is divided into constant and variable.
3.3.2.1 Constant
1. Constant types:
Divided by data type, the constants has BOOL constant, TIME constant,
DATE constant, TIME_Of_DAY constant, DATE and TIME constant,
number constant, REAL/LREAL constant, STRING constant.
BOOL constant
TIME constant
TIME constants are generally used to operate the timer in the standard
library. A TIME constant is always made up of an initial "t" or "T" and a
symbol "#". The actual declaration of time includes day("d"), hour("h"),
minute("m"), second("s") and millisecond("ms"). Please notice that the
correct order is d,h,s,m,ms.
276
SECTION 3 Control Station Algorithm Configuration
TIME1 := T#14ms;
TIME1:= t#12h34m15s;
DATE constant
Example:
DATE#1996-05-06
d#1972-03-29
TIME_OF_DAY constant
Example:
TIME_OF_DAY#15:36:30.123
tod#00:00:00
DATE_AND_TIME constant
DATE_AND_TIME constants begin with " dt#", " DT#", "
DATE_AND_TIME# " or " date_and_time# " followed by date and time.
277
SECTION 3 Control Station Algorithm Configuration
Example:
DATE_AND_TIME#1996-05-06-15:36:30
dt#1972-03-29-00:00:00
Number constant
Example:
14 (decimal number)
Conversions from "larger" to "smaller" data type are not permitted, this
means that a DINT variable can not simply be used as an INT variable.
User must use type conversion.
REAL/LREAL constant
Example:
STRING constant
With character, the combination of the symbol " $" followed by two
hexadecimal numbers is interpreted as a hexadecimal representation
of the eight bit character code.
In addition, the combination of two characters that begin with "$" are
interpreted as shown in the following when they appear in a character
sequence.
Characters Description
$$ $ character
Single quotation
$'
mark
$L or $l Line input
$N or $n New line
$P or $p Page input
$R or $r Line feed
$T or $t Tab
Grammar:
279
SECTION 3 Control Station Algorithm Configuration
The constant value must fit with the appointed data type.
Example:
var1:=DINT#34;
3.3.2.2 Variable
The main object of control operation is data, and the values of data vary with
real-time, these data are called variable. Or rather, variables are the
identifications stored data units in PC. The name and data type of the variables
which are used in control algorithm configuration should be definite in advance,
so user must define the variables. This definition course is called variable
declaration.
1. Name variables
Data is the object of control and operation, the variable data is called
variable which is stored in memory in CPU module. Each variable should
have a name called variable name for user to call and identify these
variables during data calculation.
This section is mainly introduces the variable type, declaration format,
declaration rule, declaration of local variables and declaration of global
variables.
Variable naming convention
2. Classify variable
The variables are classified on the basis of six points as follows:
280
SECTION 3 Control Station Algorithm Configuration
BYTE, WORD, DWORD, SINT, USINT, INT, UINT, DINT and UDINT, all the
above data types are integer type, their range are different as shown in Table
3.3.2.1:
281
SECTION 3 Control Station Algorithm Configuration
• There will be information lost when the data is conversed from the larger
range type to smaller range type.
TIME variable
TIME1 := T#14ms;
TIME1 := t#13d12h34m15s;
282
SECTION 3 Control Station Algorithm Configuration
Incorrect definition:
TOD variable
Variables of this type can store time of day. Its declaration format is :" TOD#", "
tod#", " TIME_OF_DAY#" and " time_of_day#" followed by time of day, its
format is Hour: Minute: Second. User can input seconds as real number or with
fractions.
For example:TIME_OF_DAY#15:36:30.123
tod#00:00:00
DT variable
The DATE variable and TOD variable can combined into date+time_of_day
variable, which is called " DATE_ AND_TIME ".Its declaration format is " DT#",
" dt#"," DATE_AND_TIME#", " date_and_time#" followed by time+
time_of_day with format: Year -Month -Day - Hour: Minute: Second.
For example:
DATE_AND_TIME#1996-05-06-15:36:30
dt#1972-03-29-00:00:00
The variable type of REAL, LREAL can be used for decimal data including
decimal fraction and represented exponentially. REAL represents
single-precision floating number, LREAL represents double-precision floating
number.
R2:REAL:=1.64e+009
STRING variable
A string can include a sequence of characters. The value in the round brackets
283
SECTION 3 Control Station Algorithm Configuration
STR1:STRING(35):=’This is a string’
Definition of array
One-dimension, two- dimension and three- dimension array are basic data
type. User can define arrays in declaration area or the global table in program.
ll1,ll2,ll3 indicates the minimum value;ul1,ul2 and ul3 indicates the maximum
value. The range must be an integer.
Init array
User can init all the components of an array or not init it.
<Field_Name>[ Index1,Index2]
For example:
AM01:REAL:=50.0; (*analog variable 01*)
For example:
AM01:REAL; (*analog variable 01*)
286
SECTION 3 Control Station Algorithm Configuration
AM01:REAL:=50.0;
END_VAR
Only valid in the program in which this variable is defined, other program
can not reference these variables.
Local variables are defined for the current program, and the grammar is
shown in Figure 3.3.2-3:
287
SECTION 3 Control Station Algorithm Configuration
• Each variable can only correspond with one of the above five types.
Select one variable name, use shortcut key "Shift+F2" or Edit ->Auto
Declaration to open the Declare Variable dialog of this variable, as shown in
Figure 3.3.2-4 :
There are five properties in the dropdown menu of Class, user can select
the variable category, e.g. change the local variable into input variable,
and then the changed variable declaration can be added between
VAR_INPUT and END_VAR key words, as shown in Figure 3.3.2-5:
Define the important data which need power-off protection and data
backup with key word "RETAIN", these variables are called Retain
Variable
The declaration format of retain variable is:
VAR_GLOBAL RETAIN
AM01:REAL:=50.0;
END_VAR
or
VAR RETAIN
DM01:BOOL;
END_VAR
Access Variable
289
SECTION 3 Control Station Algorithm Configuration
• Note: Please ensure that the variable data types keep conformity in the
whole program! That is to say, the variables types which at the two
terminals of a signal connection must be identical!
8. Variable declaration
The variable name and data type used in control algorithm configuration
must be pre-defined, so user should define the variable first, this definition
process is called variable declaration.
Each variable can be used only after declaration (definition). As shown in
Figure 3.3.2-7, variable declaration should take the following aspects into
account: declaration position, declaration format, variable name, and
variable data type.
290
SECTION 3 Control Station Algorithm Configuration
3.4 Operator
Here is a brief introduction of operators used in algorithm configuration, as IEC
operator, standard library, application library and procedure operation library,
Please see detailed descriptions of input and output terminals and their
function in <<HOLLiAS MACS V5.2.5B FCS function block manual >>.
291
SECTION 3 Control Station Algorithm Configuration
ADD addition
SUB subtraction
MUL multiplication
INDEXOF index
OR logical or
Logical
operators
XOR logical xor
292
SECTION 3 Control Station Algorithm Configuration
EQ equal to
NE not equal to
Address
ADR address function
operators
Calling
CAL call function block or program
operators
293
SECTION 3 Control Station Algorithm Configuration
294
SECTION 3 Control Station Algorithm Configuration
TP timer
HYSTERESIS hysteresis
Analog value
monitor
LIMITALARM limit alarm
295
SECTION 3 Control Station Algorithm Configuration
DERIVATIVE differential
INTEGRAL integration
Mathematical
auxiliary STATISTIC_INT INT statistics, the input is INT
function
STATISTIC_REAL REAL statistics, the input is REAL
VARIANCE variance
296
SECTION 3 Control Station Algorithm Configuration
IO.hlf affords operators to convert data types and return data values
and states.
POU includes Program, Function Block and Function. Among the three types,
program is the main part, it can call function block and function to construct
application program.
Each POU is consists of declaration area and program area, program area is
write in IEC4 language, the program language can be IL, LD, FBD, SFC, ST o
r CFC.
The controller algorithm supports all POUs which meet the standard, but it
needs the support from function library standard.lib.
4
IEC:INTERNATIONAL ELECTROTECHNICAL COMMISSION.
297
SECTION 3 Control Station Algorithm Configuration
After executing Add Object command, the New POU dialog pops up as shown
in Figure 3.5.1-2:
298
SECTION 3 Control Station Algorithm Configuration
POU name: Input new POU name in Name of the new POU box, if the
name is invalid, OK button is disable. This button is usable only if the
name is valid.
POU type: Select POU type in Type of POU radio button which has
program, function block and function. Please see detailed description
in "3.5.2POU instruction".
Click OK to finish the creation of POU, and open the edit window of this POU
in working space.
Program
299
SECTION 3 Control Station Algorithm Configuration
Function Block
• In the following description, POU type program is called program for short;
POU type function block is called function block for short; POU type
function is called function for short.
• Only function block (FB) and function (Function) can be added to Library.
300
SECTION 3 Control Station Algorithm Configuration
Function Name
Program Name Function_block Name
and Type
Variable Declaration
301
SECTION 3 Control Station Algorithm Configuration
The declaration and calling methods of the three POU are introduced as
following.
3.5.2.1 Program
The program can return several values in operating, and it is recognized in the
whole project. All the values in program hold up from the previous operation to
the next operation.
1. Create
Select POU type Program in Create POU dialog, as shown in Figure
3.5.2-2:
2. Declaration
Key words: PROGRAM program name
The program can be written in different POU languages, please see
details in 3.5.3 POU as shown in Figure 3.5.2-3, there is a program written
in IL language.
302
SECTION 3 Control Station Algorithm Configuration
3. Call
Key words: PROGRAM program name.
The function block can output one or more values based on assigned input
parameters. Unlike function, the function block does not have any return value.
1. Create
Select POU type Function Block in Create POU dialog, as shown in
Figure 3.5.2-5:
303
SECTION 3 Control Station Algorithm Configuration
2. Declaration
Key words: FUNCTION_BLOCK function block name
The function block can be written in different POU languages, please see
details in 3.5.3 POU Figure 3.5.2-6 shows a function block written in IL
language.
3. Call
The function block is called by function block instance. The internal
conditions of function block determine whether the output is the same
when there are same inputs.
The user can call function block by different POU languages, please see
details in 3.5.3POU, Figure 3.5.2-7 shows an example of calling function
block written in CFC language, "FUB1" is function block instance.
304
SECTION 3 Control Station Algorithm Configuration
3.5.2.3 Function
1. Create
Select POU type Function in Create POU dialog, as shown in Figure
3.5.2-8:
Click button in Return Type, select function return data type in the
Help Manager window, as shown in Figure 3.5.2-9, and then click OK to
close the help manager and finish the selection of return value data type.
Please notice that the function can not select SFC language.
305
SECTION 3 Control Station Algorithm Configuration
2. Declaration
Key words: FUNCTION function name: data type
The user can call function by different POU languages, please see details
in 3.5.3POU, Figure 3.5.2-10 shows a function written in IL language.
306
SECTION 3 Control Station Algorithm Configuration
3. Call
There is no internal conditions in function, it return same values when
input parameters are same. The user can call function by different POU
languages, please see details in 3.5.3POU, Figure 3.5.2-11 shows a
function calling by IL language.
• In SFC language, the function can only appear in step actions and
conditions.
307
SECTION 3 Control Station Algorithm Configuration
Program
3.5.3.1 IL
1. IL editor
308
SECTION 3 Control Station Algorithm Configuration
Light blue: already set break point on this line, click line number to add
a break point.
In online mode, if the line number is dark gray, click it to add a break point,
and then it shows light blue; click it again to cancel the break point state of
this line.
2. IL operator
Common used IL operators are shown as Table 3.5.3.1:
309
SECTION 3 Control Station Algorithm Configuration
XOR
XOR N,( bit logical operator XOR
N,(bVar1,bVar2)
GT ( > GT 23
GE ( >= GE iVar2
310
SECTION 3 Control Station Algorithm Configuration
EQ ( = EQ iVar2
NE ( <> NE iVar2
LE ( <= LE 5
LT ( < LT cVar1
The user can use bracket "()" to calculate the contents in bracket first, as
shown in Figure 3.5.3-2:
(* ERG=7*)
(* ERG=10*)
Figure 3.5.3-2 "()" Using Example
3. IL modifier
Modifiers are behind the operators, there are three modifiers:
311
SECTION 3 Control Station Algorithm Configuration
C: Laid behind JMP, CAL, RET, execute this instruction only when the
last instruction result is TRUE;
N : Laid behind JMP, CAL, RET, execute this instruction only when the
last instruction result is FALSE;
N: Laid behind LD, ST, S, R, AND, OR, XOR, execute bit operation
after negate the operands.
4. Operation description
(1) Insert->Operator: the cursor can be anywhere of the programming
area, click this command, select from the popup help manager
window.
312
SECTION 3 Control Station Algorithm Configuration
3.5.3.2 LD
LD includes logical switch and can construct network similar as circuit loop like
FBD. LD is consist of contact, coil, function block etc. and connects plane net
diagram by horizontal and vertical lines.
1. LD editor
As shown in Figure 3.5.3-4, LD editor is a graphic editor. User can edit by
menu bar, tool bar and right click menu command.
The vertical line in far left or far right is called “energy line”, it is always
TRUE. Program components are connected by certain rules and finally
connected to energy lines to form networks and to complete specific
logical operation. Lines on the network are called buses, the contacts,
coils and function blocks can be added to bus. The LD logic is from left to
right and from up to down.
2. LD component
(1) Contact: Each contact includes a BOOL variable, it transmit values
from left to right.
313
SECTION 3 Control Station Algorithm Configuration
: When it is FALSE, the value can not be transmitted from left to right.
(2) Coil: the coil transmits logic value from left to right, and assigns the
value to BOOL variable.
Take a network consist of contacts and coils for example, Figure 3.5.3-5
shows the meanings of graphs in LD editor.
315
SECTION 3 Control Station Algorithm Configuration
316
SECTION 3 Control Station Algorithm Configuration
Network node (after): insert a new network node after current node
with shortcut key <Ctrl + T>.
Set negated: Set the selected contact negated, the shortcut key is
<Ctrl +N>.
On contact or
function block
On coil
On connection
line
317
SECTION 3 Control Station Algorithm Configuration
On node
number
(2) Move components: Select the desired component and keep the mouse
key pressed until drag the component to the target position, on this
moment, the possible target position is recognized by rectangle with
high green color, and the default color of the rectangle is gray, as
shown in Figure 3.5.3-9, release the mouse, the component is moved
to the target position.
When the cursor is on a node, the user can insert a node in LD edit area
by selecting Insert-> Network node(before), Insert-> Network
node(after) or corresponding right click menu.
Node copy and paste
The user can copy and paste the selected node in the same POU or other
POUs.
318
SECTION 3 Control Station Algorithm Configuration
Paste: Select node in the target POU, right click the mouse, select
Paste command in the right click menu, the node copied to
clipboard is pasted before this node.
Node comments
Each network node can have a multi-lined comment. First the user should
open Function Block and Ladder Diagram Options by
Extras->Options, as shown in Figure 3.5.3-10:
Set Minimum Comment Size and Maximum Comment Size in this dialog.
In LD edit window, the default comment text is "comment" as shown in
Figure 3.5.3-11:
Click "comment" to edit the comment, click other place of the edit window to
finish input. As shown in Figure 3.5.3-12:
319
SECTION 3 Control Station Algorithm Configuration
Shortcut button:
Shortcut key: <Ctrl>+<K>
Insert a contact in front of the current cursor position. Main steps are as
follows:
Click contact name (default text field is "???"), input the variable name, as
shown in Figure 3.5.3-13.
After input the variable name, click mouse or press "Enter" key, the Declare
Variable window pops up, as shown in Figure 3.5.3-14, it has the following
columns:
320
SECTION 3 Control Station Algorithm Configuration
Select the data type of contact inType, as BOOL, click button on the
right of Type, and the Help Manager window pops up as shown in Figure
3.5.3-15 , select Standard Types on the left, click the desired type on right
as BOOL, then click OK to close help manager.
If the cursor is on the node, and the line of this node has no
contact, then insert the new contact in the header of the program,
as the contact S1 shown in Figure 3.5.3-16 (a):
321
SECTION 3 Control Station Algorithm Configuration
• After inserting a contact, the cursor will be moved to the new contact
automatically.
Shortcut button:
Shortcut key: <Ctrl>+<R>
Insert a parallel contact in front of the current cursor position. Main steps
are as follows:
322
SECTION 3 Control Station Algorithm Configuration
If the cursor is on contact (as K1), then insert the new contact
below this one. As contact K2 shown in Figure 3.5.3-18(a).
If the user needs to insert a new contact below the paralleled one,
please select the contact and click the button , place the new
contact below the selected one. As shown in Figure 3.5.3-18(b),
select K1, the new inserted contact is K3; select K2, the new
inserted contact is K4.
If the user needs to insert a new parallel contact below the series
connected two contacts, please keep pressing <Shift> and select
the two series connected contacts, then click button to place
the parallel contact below the two series connected contacts. As
shown in Figure 3.5.3-18(c), select series connected contacts K1
and K5, the new inserted contact is K6.
323
SECTION 3 Control Station Algorithm Configuration
Insert coil
Shortcut button:
Shortcut key: <Ctrl>+<L>
Insert a coil in current cursor position. Main steps are as follows:
Click Insert->Coil or select shortcut key in toolbar, a coil shows at the end
324
SECTION 3 Control Station Algorithm Configuration
Click coil name(default text field is "???"), input the variable name, type and
comments, the operation is the same as the above inserting series connected
contacts, here will not repeat it. The coils must be parallel, and transmit logical
values from left to right, and save the result into appropriate logical variables.
The user can preset state ON(corresponds to logical TRUE) or
OFF(corresponds to logical FALSE),
If the cursor is on coil as R1, then insert the new coil on top of the
precious one as R2.
(5) Negation
325
SECTION 3 Control Station Algorithm Configuration
Shortcut button:
Shortcut key: <Ctrl>+<N>
Negation is to negate the contact, coil and function block. Click negation
button on toolbar, or use Negation in right click menu and
Extras->Negation, the user can negate the contact and coil. After negation,
(6) Set/Reset
Shortcut button:
The coils can be defined as set or reset state.
Set(S) means: if the operation condition is meet, set coil "Set(S)" TRUE,
this coil will keep TRUE even if the operation condition is not meet, until
be "Reset(R)", the coil will change to FALSE.
For example, in Figure 3.5.3-22(a), if S1=FALSE and S2=TRUE, then
R1=TRUE; even if S1 or S2 is changed, R1 keeps to be TRUE; until in
Figure 3.5.3-22(b), S3=TRUE and S4=FALSE, the R1 will be reset, even if
R1= FALSE.
326
SECTION 3 Control Station Algorithm Configuration
Reset(R) means: if the operation condition is meet, set coil " Reset(R)"
FALSE, this coil will keep FALSE,even if the operation condition is not
meet, until be "Set(S)", the coil will change to TRUE.
For example, in Figure 3.5.3-23(a), if S5= TRUE and S6=FALSE, then
R2= FALSE; even if S5 or S6 is changed , R2 keeps to be FALSE; until in
Figure 3.5.3-23(b), S7= FALSE and S8=TRUE, the R2 will be set, even if
R2= TRUE.
Main steps:
327
SECTION 3 Control Station Algorithm Configuration
• The first input and output of POU are placed on the connection line, so
they must be BOOL.
EN operation
If the user wants to let LD call other POUs like PLC, then the POU must
have EN input. When the cursor is on coil or the connection line between
contact and coil, click Insert-> EN operator, a new EN POU will parallel
connected to the coil.
Operands, function blocks, functions and programs with EN has the same
function with POU in FBD except the EN. The POU is executed if EN is
ON.
(8) Comment
To let the program be readable, the user should add comments for
program, network node and variables. Also the user can input jump label
to appoint the jump direction of the program.
The comments are divided as follows:
Network node comment
State for the current node: First use Insert->Comment, then the default
comment text in programming area is "comment", click the blue comment
328
SECTION 3 Control Station Algorithm Configuration
area at the back of the comment, and input comment content, click other
place in the edit window to finish the input. As shown in Figure 3.5.3-25:
Variable comment
Jump label
Especially, each node (each programming line) has a label position at the
first line of the node, it is null as default. Click first line of each line, and it is
displayed as editable state, the user can only input jump label, please
notice to conform the label name. As shown in Figure 3.5.3-27:
329
SECTION 3 Control Station Algorithm Configuration
Jump to the corresponding node of the assigning label when the condition
is met.
When the cursor is on node, select Jump in the right click menu or use
Insert->Jump to insert jump instruction, as shown in Figure 3.5.3-28.
It is needed to input jump label (default is "Label") after inserting the jump.
The jump label is used to identify the jump destination, as shown in Figure
3.5.3-28, when the jump condition is meet, jump to the third node without
executing the contents in the second node.
Each network has a label at the first line of the network with null as default.
Click the first line of the node, it is displayed as blue input box, the user
can only input jump label.
330
SECTION 3 Control Station Algorithm Configuration
Return
The user can use return in calling POU, when the condition is meet, the
called POU will not continue executing and return to the calling POU.
331
SECTION 3 Control Station Algorithm Configuration
When the cursor is on node, select Return in right click menu, or use
Insert->Return to insert return, as shown in Figure 3.5.3-30:
3.5.3.3 FBD
1. FBD editor
As shown in Figure 3.5.3-32, FBD editor is a graphic editor, the user can
edit by menu bar or right click menu.
332
SECTION 3 Control Station Algorithm Configuration
2. FBD components
Input
Output
3. Operation instructions
(1) Cursor position
333
SECTION 3 Control Station Algorithm Configuration
Each operator,
c function,
function block
e Cross line
At the right of
the last object of
f a network node,
the cursor can
select this node
334
SECTION 3 Control Station Algorithm Configuration
Cross line
g between
assignments
On the
h
assignment line
Shortcut button:
Shortcut key: <Ctrl>+<U>
With this operation the user can insert input pins when the cursor is on
operators, functions, function blocks (c position). Different operators can
insert different inputs, for example, ADD can have two or more inputs. The
inserted input has text , the text must input constants, variables, or
delete .
(3) "Insert" "Operator ":
Shortcut button:
Shortcut key: <Ctrl>+<O>
The user can insert input operators when the cursor is on input pin(b
position), output pin(d position) and the right of the last object(f position).
First insert AND, and the AND can be changed to another name. Or select
AND, press F2 and select available operator name from Help Manager
window.
(4) "Insert" "Assign":
Shortcut button:
Shortcut key: <Ctrl>+<A>
The user can insert assignment when the cursor is on input pin(b position),
and the right of the last object(f position).
335
SECTION 3 Control Station Algorithm Configuration
The user can input comments when the cursor is on input pin (b position),
operators, functions, function blocks(c position), output pin(d position) ,
cross line(e position),the right of the last object(f position) and between
cross line and assignment(g position).
(6) "Insert" "Negate":
Shortcut button:
Shortcut key: <Ctrl>+<N>
The user can negate which is "Negation logic" when the cursor is on input
pin (b position) and output pin(d position) .
(7) "Extras" "Set/Reset":
Shortcut button:
The user canset/reset when the cursor is on output pin(d position) ,
between cross line and assignment(g position) and on the assignment
line(h position).
Set means when left value is TRUE, the right variable keeps TRUE.
Reset means when left value is TRUE, the right variable keeps
FALSE.
(8) "Extras" "Zoom"
1. SFC editor
As shown in Figure 3.5.3-33, SFC is a graphic editor, it can be edited by
menu bar and right click menu.
336
SECTION 3 Control Station Algorithm Configuration
2. SFC component
The components of SFC can be edited by Insert->Extras, shortcut button
on toolbar or right click menu in SFC programming edit window, as shown
in Figure 3.5.3-34:
337
SECTION 3 Control Station Algorithm Configuration
(1) Step:
Step is the logical unit of program executing. The user must assign a
name for the step to identify it.
Step name, which is SFC step name, is implicit declaration variable. The
system will generate a default name for the new added step like Step 8,
Init, Step 3, etc. The user can use this default name or self-define step
name, the naming rule of step is the same as variable. A step name must
be unique in the POU.
There are two kind of common steps:
Simplified step
This step includes an action and an active mark. If any action is in the step,
there will be a little triangle in the upper right corner. In which the steps
with double frames is called initial step, and the system online runs starts
from the initial step. Current run step is called active step.
Initial step: A SFC can only have one initial step. It is the first step
for SFC program to run, and also the first step after create a new
SFC.
338
SECTION 3 Control Station Algorithm Configuration
Jump step: A SFC can have several jump steps, they are the "Go
to" sign when a SFC is ending and can be changed. As shown in
Figure 3.5.3-35:
According to its running state, the steps can be divided into active step
and inactive step.
Active step: The current running step is called "active step", also
called "current step". A running SFC program may have one or
more active steps (current steps). The SFC programs do not have
parallel branches ,and only have one active step in a moment.
339
SECTION 3 Control Station Algorithm Configuration
IEC step
"Action" means the codes will be executed when SFC is running. There
are three types of actions: step action, entrance action, exit action. The
simple steps can insert actions by double click steps or Extras->Zoom
Action/Transition.
The transition contents are called transition condition, which must have a
value TRUE or FALSE. It can be BOOL constants, BOOL variables, or
sentence with BOOL results. It can be written in any languages but can
not include program, function block or be assigned.
340
SECTION 3 Control Station Algorithm Configuration
3. Operation instruction
(1) Select component
The selected components are identified by dotted line rectangle box. Click
mouse or use up and down key to select the component; press Shift key
and click mouse can select a group of components.
• When deleting steps, the user must delete the transitions in front or at the
back of the steps.
Shortcut button:
Shortcut key: <Ctrl>+<T>
With this command the user can insert a step and a transition in front of
the selected components (step or transition). The initial step can only
insert back step and transition.
Shortcut button:
Shortcut key: <Ctrl>+<E>
With this command the user can insert a step and a transition at the back
of the selected components.
341
SECTION 3 Control Station Algorithm Configuration
Insert branch
Shortcut button:
The selected components must start and end up with step, with this
command the new branch is inserted as the right branch of the
selected component, and the new branch includes a step. The parallel
branch should add mark if it needs to be jumped from other
components.
Shortcut button:
The selected components must start and end up with step, with this
command the new branch is inserted as the left branch of the selected
component, and the new branch includes a step. The parallel branch
should add mark if it needs to be jumped from other components.
After inserting the parallel branch, the connection lines in front and at
the back of the parallel branch area are displayed as double lines, as
shown in Figure 3.5.3-37. When online running, if the Trans 1 condition
is meet, Step2, Step3, Step4 are activated at the same time.
342
SECTION 3 Control Station Algorithm Configuration
The selected components must start and end up with step, with this
command, the contents in clipboard will be the right branch of the
selected components. The contents of clipboard also must start and
end up with step
After selecting the front transition components of the parallel branch, with
this command, a label will be shown on top of the parallel branch. The
default label is "Paralel"+"Sort No.", and it is editable, as shown in Figure
3.5.3-38, change the default label as "abc", delete the label name to
delete the jump label.
343
SECTION 3 Control Station Algorithm Configuration
When deleting a step or transition, the user must use Shift key to select a
group of both step and transition, then press Delete to finish deletion, the
step action and transition condition are deleted at the same time, there is
no delete tip.
(3) Selection branch
A selection branch must start and end up with transition. Selection branch
can include parallel branch and other selection branch. The connection
line in front and at the back of the branch area is single line.
"Insert" "right selection branch":
Shortcut button:
Shortcut key: <Ctrl>+<A>
The selected components must start and end up with transition, with this
command the new branch is inserted as the right branch of the selected
component, and the new branch includes a transition.
"Insert" "left selection branch":
Shortcut button:
The selected components must start and end up with transition, with this
344
SECTION 3 Control Station Algorithm Configuration
command the new branch is inserted as the left branch of the selected
component, and the new branch includes a transition.
In transition from the last step to the next step, the program transits to
different branches when meet different conditions. These branch
conditions should meet "exclusive" in configuration. If there is no
"exclusive ", the program will be executed following the priority order from
left to right. As shown in Figure 3.5.3-39 :
If current step is Init, judge the transition conditions of Trans0 and Trans1
to execute the corresponding branch; if the two conditions are meet at the
same time, then execute from left to right.
345
SECTION 3 Control Station Algorithm Configuration
The dialog shows the current step name, select action language and click
OK to open the edit window of this action, as shown in Figure 3.5.3-41,
the window add initial step Init, a transition Trans0 and a jump
automatically.
Add step action in this window. The corresponding action edit window will
pop up after select "Add entrance action" or "Add exit action ", and the
346
SECTION 3 Control Station Algorithm Configuration
Shortcut button:
The entrance action only executes once when the step is activated,
and it can be written in a selected language. There is an "E" at the
bottom left of the steps with entrance action.
Shortcut button:
The exit action only executes once when the step is inactivated, and it
can be written in a selected language. There is an "X" at the bottom
right of the steps with exit action.
The steps added the above actions are shown as Figure 3.5.3-42:
347
SECTION 3 Control Station Algorithm Configuration
Select the action type to be deleted, and then click OK to delete this
action.
(5) Transition operation
The dialog shows the current transition name, select transition language
and click OK to open the edit window of this action, as shown in Figure
3.5.3-45, the transition condition can be edit in this window.
348
SECTION 3 Control Station Algorithm Configuration
Jump is consists of vertical line with a horizontal arrow and the name of
the jump target. Jump is used to select which step to execute if the
previous transition condition is TRUE. The process connection line can
not cross or back execute, so jump is needed here.
The jump only can be used at the end of a branch besides the default
jump at the end of SFC. When the last transition of a branch is selected,
the user can use Insert->Jump to insert a jump.
The target of a jump can be an appointed string in this or other POU, a
step name, or a label of parallel branch.
"Insert" "Jump":
Shortcut button:
Shortcut key: <Ctrl>+<U>
The branch which selected component located on must be a selection
branch, with this command the jump can be inserted at the end of this
branch. There is a text string beside the new jump, and the user
can change it into target step name or the jump label of parallel branch.
"Insert" "Transition jump":
Shortcut button:
The branch of which selected component located on must be a selection
branch, with this command the transition and jump can be inserted at the
end of this branch. There is a text string beside the new jump, and
the user can change it into target step name or the jump label of parallel
branch.
(7) Step property
349
SECTION 3 Control Station Algorithm Configuration
Option
Height of Steps: Control the icon height of the rectangle of the step,
default is 4;
Width of Steps: Control the icon width of the rectangle of the step,
default is 6;
Step property
Each step can set its own run limit and comments to identify step property.
Select Extras->Step property or right click mouse in SFC programming
area and select Step property in the right click menu, the Step Attributes
dialog pops up as shown in Figure 3.5.3-48:
350
SECTION 3 Control Station Algorithm Configuration
Time preview
After setting the time limit of each SFC steps, the user can use Time
Preview to view, add or change the time limit. Use Extras->Time
Preview or right click mouse in SFC programming area and select Time
Preview in right click menu, the SFC Time Limit Overview dialog pops
up as shown in Figure 3.5.3-50 :
351
SECTION 3 Control Station Algorithm Configuration
The List of Steps displays all the steps and their time limit in current POU.
Click any step in List of Steps, the corresponding line turns into blue and
its step name, minimum time and maximum time are displayed at the
bottom of the dialog, the user can change the time setting and click OK to
save the change.
3.5.3.5 ST
1. ST editor
As Figure 3.5.3-51 shows, ST editor is a textual editor, and it has the
common functions of text editor in Windows. The user can edit programs
by menu bar or right key of mouse.
352
SECTION 3 Control Station Algorithm Configuration
2. ST operator
Common ST operators and their operations are shown in Table 3.5.3.1:
Table 3.5.3.1 Common ST Operators
Function name
call function
(parameter list)
exponent
EXPT
operation
-,NOT negation
* multiply
353
SECTION 3 Control Station Algorithm Configuration
get
MOD
complement
+ add
- minus
compare
<,>,<=,>=
operation
= equal to
low
<> not equal to
AND and
XOR xor
OR or
3. ST sentence
Common instruction types and examples of ST sentence are shown in
Table 3.5.3.2:
Table 3.5.3.2 Common Instruction Types of ST Sentence
354
SECTION 3 Control Station Algorithm Configuration
return RETURN;
D:=B*B;
IF D<0.0 THEN
C:=A;
ELSE
C:=D;
END_IF;
CASE INT1 OF
1:BOOL1 := TRUE;
2:BOOL2 := TRUE;
CASE ELSE
BOOL1 := FALSE;
BOOL2 := FALSE;
END_CASE;
J:=101;
J:=I;
EXIT;
355
SECTION 3 Control Station Algorithm Configuration
END_FOR;
J:=1;
J:=J+2;
END_WHILE;
J:=-1;
REPEAT
REPEAT J:=J+2;
END_REPEAT;
Exit EXIT;
Null ;
3.5.3.6 CFC
1. CFC editor
As shown in Figure 3.5.3-52, CFC editor is a graphical editor, it can be
edited by menu bar or right click menu. The components can be placed
anywhere in the programming area. Drag the connection lines between
components. The editor will adjust the length of connection lines when the
components are moved. If there is not enough space between
components, the lines will turn into red, otherwise, the red line will return
back.
356
SECTION 3 Control Station Algorithm Configuration
2. CFC component
CFC affords multiple graphic components for edit, the user can use Insert
menu, toolbar or right click mouse in CFC programming area and select
right click menu to add graphic component, as shown in Figure 3.5.3-53 :
357
SECTION 3 Control Station Algorithm Configuration
Component
Symbol Instruction
name
Select "???" text field to
input change it into input variable
name
358
SECTION 3 Control Station Algorithm Configuration
Component
Symbol Instruction
name
The default AND block
component, the user can
operation changed AND into operator,
block function, function name or
user program name
return return
• Besides input and comment components, each added component will get
a number in the upper right corner, the number starts from 0 and increase
by sequence order. It is the program executing order from small to large.
By default, the user can adjust the numbers in Extras->Order.
359
SECTION 3 Control Station Algorithm Configuration
3. Operation instruction
(1) Cursor position:
Description illustration
Click mouse on the middle line of the component to select the component.
If the user wants to select multiple components, please press Shift and
click the components. Also the user can use left key of the mouse to draw
rectangle area in the editor to select multiple components.
360
SECTION 3 Control Station Algorithm Configuration
Press mouse on the output pin of E1 and drag it to the input pin of
E2, then release the mouse.
Press mouse on the input pin of E2 and drag it to the output pin of
E1, then release the mouse.
Press mouse and move E1 and E2, keep their input pin and output
pin contact, when connecting line the editor will check if the data
types from the two sides are matched, if not, the cursor will turn to
"Forbid" , and the connection fails.
361
SECTION 3 Control Station Algorithm Configuration
Select the input pin of E2, drag it to the blank area in editor and
then release it.
"Insert" "Block":
Shortcut button:
Shortcut key: <Ctrl>+<B>
With this command the user can insert operator, function, function block
and program. The newly inserted block moved with mouse to an
appropriate place, then click the mouse to finish insertion. The initial
insertion is AND, it can be changed into another name. Or select AND,
press F2, select name from Help Manager.
"Insert" "Input":
Shortcut button:
Shortcut key: <Ctrl>+<I>
With this command the user can insert input. The newly inserted input
moved with mouse to an appropriate place, then click the mouse to finish
insertion. The text field "???" should be input variable or constant. Also the
user can press F2 and select from Help Manager.
"Insert" "Output":
Shortcut button:
Shortcut key: <Ctrl>+<O>
With this command the user can insert output. The newly inserted output
moved with mouse to an appropriate place, then click the mouse to finish
insertion. The text field "???" should be input variable. Also the user can
press F2 and select from Help Manager.
An example is shown in Figure 3.5.3-55:
362
SECTION 3 Control Station Algorithm Configuration
components
In CFC, jump and label are used in cooperation, and the following part will
introduce how to add jump and label.
"Insert" "Jump":
Shortcut button:
Shortcut key: <Ctrl>+<J>
With this command the user can insert jump. The newly inserted jump
moves with mouse to an appropriate place. Click the mouse to finish
insertion. The text field "???" should be input the label to be jumped to.
And this name should accord with the name defined in label, and the jump
type must be BOOL.
"Insert" "Label":
Shortcut button:
Shortcut key: <Ctrl>+<L>
With this command the user can insert label. The newly inserted label
moves with mouse to an appropriate place. Click the mouse to finish
insertion. The text field "???" should be input the jump label.
If the jump condition is FALSE, var1=1; If it is TRUE, var1=10, then the
program will run jump over the sections in front of the label and execute
the program section labeled by the jump label. As shown in Figure
3.5.3-56, when VAR1 in Program 1 is TRUE, jump over Program2 to
execute the third program which label0 is on.
363
SECTION 3 Control Station Algorithm Configuration
In online mode, the editor inserts label "RETURN" automatically at the end
of POU.
(7) "Insert" "Return":
Shortcut button:
Shortcut key: <Ctrl>+<R>
With this command the user can insert return. The newly inserted label
moves with mouse to an appropriate place. Click the mouse to finish
insertion.
• Return here is different from the "RETURN" at the end of POU, "RETURN"
is for auto executing next cycle when this cycle of POU is over.
(8) Negation
Shortcut button:
Shortcut key: <Ctrl>+<N>
With this command the user can negate the input, output, jump and return.
Select the input or output pin of a component, use shortcut button or
shortcut key of Negation command or Extras->Negation, the
corresponding position will display negation symbol , it is adding a little
circle in the position of pin.
364
SECTION 3 Control Station Algorithm Configuration
Shortcut button:
Shortcut key: <Ctrl>+<K>
With this command the user can insert comment with <Ctrl>+<Enter> to
break line. The newly inserted label moved with mouse to an appropriate
place, then click the mouse to finish insertion.
(10) Execution order and sort number:
At the top right corner of operation block, output, jump, return and label in
CFC programming area, numbers have been automatically added. This
number is to make sequence execution of CFC components in online or
simulation mode.
The newly added components get a sort number according to the
topological sequence (from left to right and from above to below). The
number of the new component pluses 1 based on the last added
component; if the exist components are resorted, and then the number of
the new component pluses 1 based on the maximum one of their numbers.
The number of a component keeps constant when it is moved.
Execution starts from the component with number 0. The user can right
click mouse in CFC working space and select Sequence->Order->Order
everything according to data flow, or change the execution order of
each component by using the submenu of sequence item, as shown in
Figure 3.5.3-57:
365
SECTION 3 Control Station Algorithm Configuration
366
SECTION 3 Control Station Algorithm Configuration
The user can change execution order under circumstances in view of the
execution order may have influence on result.
• The execution order is displayed on the top right corner of the component.
4. CFC application
Start-stop control on pump
There are two redundant ejector pumps. Each pump sends two digital
signals to DCS to indicate the state of start and stop; DCS sends two
digital signals to each pump to control the pump to start and stop; each
pump sends a digital signal to DCS to indicate whether be controlled by it.
The exits of the two pumps are connected to main pipe, if the pressure of
exit id detected too low by instrument, the DCS will receive a digital signal.
According to the above information, and edit based on the method
mentioned in previous part, a POU is established as shown in Figure
3.5.3-58, the figure shows the logic of one pump, the other is the same,
367
SECTION 3 Control Station Algorithm Configuration
Define the name of this function block in database of project control, its
type is "Sequential control 6", the function block declaration is generated
in Resource->Global Variable " AMDMTagVar " after compiling, as
shown in Figure 3.5.3-59 :
368
SECTION 3 Control Station Algorithm Configuration
Define the name of this function block in database of project control, its
type is " PID ","Analog manual operator" , the function block declaration is
generated in Resource->Global Variable " AMDMTagVar " after
compiling, as shown in Figure 3.5.3-61 :
1. Task configuration
Double click Resource->Task Configuration, the dialog pops up as shown
in Figure 3.5.4-1:
369
SECTION 3 Control Station Algorithm Configuration
(2) Priority: Numbers between 0-31, 0 is the highest one and 31 is lowest
one.
(3) Type:
Triggered by event: Start the task if the variable has rising edge, the
variable definition is in Property->Event.
(4) Property:
• The delete function should be used with caution, because the deleted task
can not be restored in Edit->Restore.
2. Program call
Select task name and right click mouse, select Append Program Call
from the dropdown menu, the dialog pops up as shown in Figure 3.5.4-4.
Input POU name in Program Call or click to find the calling target
program, this POU can be triggered.
371
SECTION 3 Control Station Algorithm Configuration
Call the POU to be triggered by the triggered POU. As shown in Figure 3.5.4-5,
MACS_PRG() is triggered by method in "3.5.4.1 Trigger POU by task
configuration ", the user can call the POU to be triggered in MACS_PRG.
Compile the POU in project general control. The algorithms of each control
station are added main task MACSTask with cycle as 100ms.
372
SECTION 3 Control Station Algorithm Configuration
3.5.4-6:
• The control algorithm uses this method as the default one to trigger POU.
3.6 Compile
The user can use compile command to verify the correctness and operability of
the program, in this section, the differences between Compile and Compile All,
and common compile errors and processing method are introduced.
1. Compile
After finishing project configuration, please compile it to check if there are
errors, and the compile results are displayed in the Information window.
373
SECTION 3 Control Station Algorithm Configuration
Two files will be generated after compiling as *.SDB and symbol file *.SYM,
please see file types in Table 3.6-1:
File extension
Examples Description Format
name
controller
.pro Project01.pro algorithm project binary file
file
Compile
information of the
last time, created
when saving the
.ci Project01<No.>.ci project. binary file
<No.>: target ID of
the code
download
information of the
last time, created
when
.ri Project01<No.>.ri downloading. binary file
<No.>: target ID of
the code
374
SECTION 3 Control Station Algorithm Configuration
Compile the project for the first time, compile all projects.
Increment compile
If it is the first time for project to be compiled, the above two options will
compile the whole project. The differences between "Increment compile "
and " Compile all" are compile range; as for rebuilding all the object
files(download all) or appending on the original file(increment download),
it is determined by the contents changed before compiling the
project.(please see the part of download)
2. Common Compile Errors
There are two types of compile results:
One is all correct, as shown in Figure 3.5.4-1(a), it indicates the whole
project is correct.
The other is there are errors or warnings, as shown in Figure 3.5.4-1 (b),
the error information is displayed as red color. Double click the compile
error, the user can locate the error position and modify it.
375
SECTION 3 Control Station Algorithm Configuration
Error: SCS(7):Expecting’:’before’;’
Explanation: In the 7th line of program SCS declaration, there should be
a ’:’ before ’;’. The variable initial assignment symbol is ':=' not ';='.
Error: Task configuration(1): The task ’TASK10’ must contain at least one
program call
Explanation: The first task ’TASK10’ must contain at least one program
call, or else the program is meaningless like a null POU can not compile
successfully. Please right lick mouse on ’TASK10’ to add a program call.
376
SECTION 3 Control Station Algorithm Configuration
3.7 Download
The program compiled successfully can be downloaded to main control unit.
Before downloading, the user should configure the parameters and select
download way according to different types of fields.
In the following, we will take a simple project for example to introduce the
settings of network address and communication parameter. There are four
PCs in the example system. One of them is taken as IO (#10 FCS) station. The
system uses a simple architecture of two network layers. PC names are OP80,
OP81, OP82, OP83, they have different roles here:
377
SECTION 3 Control Station Algorithm Configuration
378
SECTION 3 Control Station Algorithm Configuration
379
SECTION 3 Control Station Algorithm Configuration
380
SECTION 3 Control Station Algorithm Configuration
381
SECTION 3 Control Station Algorithm Configuration
382
SECTION 3 Control Station Algorithm Configuration
Click Close menu to close local connect dialog. At present, the network icon
"SNETA" in PC turns into , this shows that the connection is successful.
As the same, the user can configure the SNETB address as "129.0.0.80"
according to the above steps. It's the same as the address configuration of
other roles.
In actual project, the user should configure the PC address according to the
actual allocation circumstances of the project.
383
SECTION 3 Control Station Algorithm Configuration
Click Login in Online menu after complied and passed through, the dialog
pops up as shown in Figure 3.7.2-1:
There are four channels list in the Local node, they are "128.10", "128.138" ,"
129.10","129.138", the corresponding IP address are "128.0.0.10"
"128.0.0.138" , " 129.0.0.10"," 129.0.0.138",all based on the station number. It
is provided by the compile in database software.
• The user only need to download master operation service, and the system
will make redundancy in slave server after downloading. The download
method is the same as controller algorithm.
After executing Project->Clear, the original target files are cleared, the
system tip dialog is shown in Figure 3.7.3-1;
385
SECTION 3 Control Station Algorithm Configuration
Increment download only download the modified content to MCU, for running
MCU, it is non-disturbance download.
1. Initialization download
Select Online->Login, the Communication Parameters window pops up
as shown in Figure 3.7.5-1, the user can select available communication
addresses:
386
SECTION 3 Control Station Algorithm Configuration
In this way, after exit the monitor state (Online->Logout), when login
again, the user only need to select normal communication channel, the
download tip dialog will not show up.
2. Incremental download
The incremental download is after increment modification of the project,
select download communication channel, then the system will detect
whether the control algorithm opened in the editor which will be
downloaded this time is accord with the project in current target controller,
if not , the system tips dialog pops up as shown in Figure 3.7.5-5:
387
SECTION 3 Control Station Algorithm Configuration
3. Duplicate login
It is not allowed for multiple algorithm projects to login the MCU of one
control station at the same time. For example, the control algorithm is
already login 10# station and start online monitor, if there is another
algorithm project wants to login MCU of 10# station, the system tips dialog
will pop up as shown in Figure 3.7.5-6:
Click OK to exit the login, please confirm whether the version of opened
project is the project last modified, this is to avoid multiple modification of
the project in the same station.
4. Communication interrupt
Select Online->Login, and select available communication addresses
displayed as blue in Communication Parameters window, then click OK
to enter online monitor state. If the network connects control algorithm and
controller are interrupted at this time, the system tips dialog pops up as
shown in Figure 3.7.5-7:
Click OK, the control algorithm will exit the monitor state automatically, the
controller still runs normally. If the user wants to login again, please select
available communication channel.
5. Forcing operations in downloading
After forcing operation on variables in online monitor state, when execute
Online->Logout, the system tips dialog pops up as shown in Figure
3.7.5-8 :
388
SECTION 3 Control Station Algorithm Configuration
Click Yes to release the forcing operation on variable, the real-time value
of this variable will be displayed on the next login; click No to maintain the
forcing, the forcing value of this variable will be displayed on the next login;
click Cancel to cancel this operation.
389
SECTION 3 Control Station Algorithm Configuration
Step 2. Click “Param Read back” to log on, if you have not logged on, it
will popup interface of communication parameter, as shown in
FFigure 3.8.1-2. If the interface do not popup, please switch
CodeSys to foreground.
390
SECTION 3 Control Station Algorithm Configuration
Step 3. When read back is finished, a dialog box will popup as shown in
Figure 3.8.1-3.
• If the parameter do not read back correctly, please look up the following
notes. If it is not meet the following conditions, the default read back
parameter table may not configure the parameter that need to read back,
please refer to Table of Configuration Read back Parameter.
391
SECTION 3 Control Station Algorithm Configuration
Please delete the POUs which were not called before executing
Param Readback, otherwise the results will be uncertain and might
lead to complied errors after readback.
BD1 UINT
BD2 UINT
error REAL
UP REAL
LO REAL
AlarmUP REAL
392
SECTION 3 Control Station Algorithm Configuration
HSALM_RT HL REAL
DP DWORD
AP DWORD
HSSCS6 RT DWORD
QR BOOL
SC BOOL
ZF BOOL
T1 DWORD
T2 DWORD
HSVMAN SU REAL
SD REAL
BS REAL
MD BYTE
HSVPID PT REAL
TI REAL
TISI BOOL
OT REAL
393
SECTION 3 Control Station Algorithm Configuration
TISO BOOL
TD REAL
KD REAL
AD UINT
SV REAL
DL REAL
TM BOOL
SU REAL
SD REAL
MPT REAL
MK REAL
MKD REAL
FA REAL
DI REAL
OU REAL
CP REAL
HSAlgMAN BS REAL
394
SECTION 3 Control Station Algorithm Configuration
OT REAL
OB REAL
MU REAL
MD REAL
HSDLCTRL T1 UINT
T2 UINT
HSDLCTRL2 T1 WORD
T2 WORD
T3 WORD
HSPID CP REAL
MC UINT
PT REAL
TI REAL
KD REAL
TD REAL
OT REAL
OB REAL
395
SECTION 3 Control Station Algorithm Configuration
OU REAL
DL REAL
MU REAL
MD REAL
PK BYTE
OM UINT
AD UINT
TM BOOL
ME BOOL
AE BOOL
CE BOOL
TE BOOL
FE BOOL
PU REAL
PD REAL
HSSCS RT DWORD
DE BYTE
396
SECTION 3 Control Station Algorithm Configuration
CM BOOL
OS BOOL
CS BOOL
OU BOOL
HSSCS5 DE BYTE
SC BOOL
QR BOOL
CD BOOL
CM BOOL
OS BOOL
CS BOOL
OU BOOL
HSVALVE5 T1 REAL
T2 REAL
T3 REAL
DB REAL
DL REAL
397
SECTION 3 Control Station Algorithm Configuration
OB REAL
HSACCUM IV REAL
MS LREAL
MC LREAL
bPositiveAccum BOOL
HSCHARC PS UINT
CNE BOOL
CGE BOOL
CLE BOOL
CGT BOOL
CLT BOOL
HSFILTER IS BYTE
FM ENUM
HSONEFOLD VN BYTE
HSQOR SL BOOL
S9 BYTE
398
SECTION 3 Control Station Algorithm Configuration
AL REAL
SOF BYTE
HSTWOFOLD VN BYTE
HSAMEMORY IV WORD
OT REAL
OB REAL
HSBAL2 HL REAL
LL REAL
OUTR REAL
HSCURVE PS USINT
TB DWORD
TE DWORD
TL REAL
BL REAL
HSRAMP IR REAL
DR REAL
TL REAL
399
SECTION 3 Control Station Algorithm Configuration
IV REAL
HSSSMITH OT DINT
OB DINT
HSTIMER TT ENUM
400
SECTION 3 Control Station Algorithm Configuration
Step 2. Click “List Setting” to display the dialog box “Configure Table of
Read back Parameter”, as shown in Figure 3.8.1-6.
401
SECTION 3 Control Station Algorithm Configuration
How to add read back options of system and custom function block as
following:
Add Read back Option of System Function Block
402
SECTION 3 Control Station Algorithm Configuration
If the function block is defined by user, user need to enter the custom
function block name, parameter name and parameter type, then click
button “add”.
If want to modify one parameter type at one function block in " Configurate
ReadBack Parameter List ", you can double-click the parameter node,
then its property will automatically appear in “Other Function”, “Param
Name”, “Param Type”, and after modify the type of the parameter can be
increased after the click.
Example: the nested function block HSSCSTEST need to read back two
options as following:
AAAA:TEST
SC:BOOL;
Operation:
Add the custom function block TEST, fill in parameter name and type, and
403
SECTION 3 Control Station Algorithm Configuration
The tag item of AAAA is added completely. Adding SC, you need to
change parameter name SC and parameter type BOOL, then click “Add”
to save the changed information.
Step 3. Look up the added result Read back Configuration Table, then
click “Save” to save the added options.
404
SECTION 3 Control Station Algorithm Configuration
• The types of parameters that were not supported include array type and
pointer type.
405
SECTION 3 Control Station Algorithm Configuration
• Do not use the tag name of deleted modules, otherwise, it will cause
output error after download controller.
407
SECTION 3 Control Station Algorithm Configuration
Click “Yes” to write the parameter; Click “No” to cancel the wrote parameter.
408
SECTION 3 Control Station Algorithm Configuration
409
SECTION 3 Control Station Algorithm Configuration
Algorithm Edit
Function Block
definition
Program Call
Rebuild All
1. Select and click Start ->All Programs -> MACS -> MACS_ENG -> FCS;
2. Dialog box Select Project comes up;
3. Select project which need to execute algorithm configuration, e.g.
ExamplePro;
4. Click Select;
5. Dialog box FCSEditor comes up;
6. Select control station which need to execute the operation, e.g. No. 10
Station;
7. Click OK;
8. No. 10 Station is open, select Rebuild all in menu Project;
410
SECTION 3 Control Station Algorithm Configuration
(2) Rolling the information bar, double click on error which is labeled to
red;
(4) Select the labeled area, and delete (this step is only used in the first
time of Build).
411
SECTION 3 Control Station Algorithm Configuration
3. Add component:
4. Click AND, and type in function block name, e.g. HSSCS5 (sequence
controller) (please refer to APPENDIX 1);
5. The sequence controller comes up, add input/output components to
input/output pins;
6. Adding corresponding measure tags; as shown in Figure3.9.2-3
.
412
SECTION 3 Control Station Algorithm Configuration
413
SECTION 3 Control Station Algorithm Configuration
Type: used for select data type, including REAL, BOOL, INL, etc,
normally, REAL (analog value) and BOOL (digital value) are used in
common, type of function block is allocated automatically, without
selecting.
Symbol List: used for select file where the variable will be saved, it is
effective when the variable type is VAR_GLOBAL only; if none file in
list is suitable, new file can be created here (type in new file name
directly in Symbol list). Create SCS01 as in example,
icon comes up in Resources.
Retain: used for the variable retain without being lost when controller
power off and start again.
2. The main program page is open, write in the name of project page
from the first line, as shows in Figure3.9.4-2:
414
SECTION 3 Control Station Algorithm Configuration
415
SECTION 4
Online Operation
In general, online operating system is also called “Computer Monitoring
System”. It is a part of MACS software system as HMI (Human Machine
Interface), and supports peripherals like dedicated industrial keyboard and
printer, the functions of online operation are:
With online operating system, the operators and engineers can monitor the
process of auto control, take manual intervention and modification on real-time
information5 and auto print and required print of working report on monitoring
computer, they can also offer the manager the figures and data by monitor of
field level like MIS network.
5
Real-time information: means real-time point, clock, alarm information, system announcement
information, operation instruction and configuration instruction.
417
SECTION 4Online Operation
Dedicated key board is divided into initial functional keys and auxiliary
functional keys by function.
418
SECTION 4Online Operation
419
SECTION 4Online Operation
420
SECTION 4Online Operation
keyboard
• After defining the function keys, F function keys in engineer keyboard (PC
keyboard) and operator keyboard are enabled.
421
SECTION 4Online Operation
422
SECTION 4Online Operation
Overview
System
used to access System Status
Status
Technical
used to access to Technical Alarm
Alarm
Operation
used to access to Operation Log
Log
423
SECTION 4Online Operation
• For the default drivers of some Lenovo Server which have been installed
may conflict with FP025-USB-A01, so when you found this happened,
please uninstall the default drivers in the Server, and install the driver for
FP025-USB-A01 provided in installation package.
4. Softdog
To ensure the continuous and stable operation of online operation system,
Softdog must be configured in corresponding OPS. Otherwise, the
online operation system will last 2 hours and exit then.
The relation between softdog and online operation system:
If replug in softdog before quit, and click button Retry, OPS will be
rerunning normally.
According to limit of database tags, there are 3 softdog levels in this system:
3000 tags, 6000 tags, 30000 tags, the selected tags number of soft cannot be
less than the total number of tags in project. For the number of data tags,
425
SECTION 4Online Operation
System Settings
In System Settings tab, set Initial Login Domain, its default value is 0.
The parameters of alarm display mode, title of multi-domain alarm and
switcher reconfirm can also be set as shown in Figure 4.1.3-2:
426
SECTION 4Online Operation
Advanced Settings
In Advanced Settings tab, set page name, number and position in initial
figure of online running, as shown in Figure 4.1.3-3. When multi-screen
display card is inserted into your server, the display property should be set
of this computer. Please set the Multi-screen display as Up & Down
when the two screens are arranged vertical, and set it as Left & right if
the two screens are arranged horizontally, as shown in Figure 4.1.3-4 and
Figure 4.1.3-5.then select the corresponding information in Advanced
Settings.
427
SECTION 4Online Operation
428
SECTION 4Online Operation
Switch to Voice Alarm item, set the total number of voice alarm online, the
429
SECTION 4Online Operation
range of which is 0-800, as well as the tag name and station No. (Range is
0-49), Type in database and wav file. Please save the wav file
in …\MACSV\MACSV_OPS\start before setting wav file, as shown in
Figure 4.1.3-6.
2. Start OPS
Select [MACS] \[MACS_OPS]\[Start OPS] in Start or start from shortcut of
Start OPS on the desktop.
If the OPS program is installed correctly, it will access OPS figuration
figure with default monitoring level. Before the sever starts, the application
system is not in the real running state. And the OPS displays static data,
all functions can’t be called correctly.
If the project is sole, the system will access to the main menu of this
project, if there are multi-domain projects, the user can select the desired
project, the way is: in ENG Functions in main menu, select Select
Domain button to access Set Current Domain window as shown in
Figure 4.1.3-7, select the domain and click OK to access the main page of
the selected domain.
430
SECTION 4Online Operation
• The three preconditions should be met before OPS starting online running:
The download file of OPS is the same as Server (with same version
number).
• The OPS must manually logout and restart after the following
modifications:
Download new project to OPS (project with a different name from the
current one);
431
SECTION 4Online Operation
From left to right, the alarm tip buttons of corresponding domain lays out
with domain number from small to big. The red rectangle box identifies the
alarm tip area of the two domains, the left one is domain 0 and the right
one is domain 1.
3. User login
The user should get the privilege and its corresponding password first and
login, then the operations related to privilege can be done.
If the dedicated operator keyboard is not installed, the initial privilege will
be 0 as the default one after OPS was started. Otherwise, the privilege will
be as the keyboard privilege lock indicates.
The privilege lock is hardware lock, the user can plug in the key and turn it
to different positions for the system to identify four operation levels, which
are Privilege 1, Privilege 2, Privilege 3 and Privilege 4 as clockwise, the
corresponding status light of the key position will be lighten.
If the operation privilege on flow chart figure is set, this operation can be
done after the users login with corresponding privilege.
•
• Please notice to add operation privileges for the engineer if the operation
privilege is set on the figure, if not, the engineer cannot do this operation
even after login.
4. Operator privilege
432
SECTION 4Online Operation
After the server is started normally, the default OPS login level is
monitoring level, if not set other user name and password in User
Configuration, there is a default engineer user can login:
User Name: hollymacs
Password: macs
After login with this user name and password, new user can be added by
opening User Management in ENG Functions, the user name and
password are saved in the server, they need to be reset if the install
program of the sever is updated.
• The server must have been run before user logged in the OPS. Otherwise,
users of any level cannot login.
• After start OPS, first login the working domain, then login the management
level, there are three levels to choose: monitor, operator and engineer,
enter correct user name and password to login.
Operation level
Monitor Operator Engineer Remark
Operation content
433
SECTION 4Online Operation
Monitor √ √ √
Alarm confirm √ √
Control
manipulator √ √
regulation
"Graph
management" √ √ √
menu
"ENG Functions"
√
menu
"General functions"
√ √ √
menu
"Trend" menu √ √
Technical alarm
and device alarm in
this menu can be
viewed by users of
"Table" menu √ √ monitor, operator
and engineer, but
the force table can
be view only by
engineer.
SOE Log/Device
√ √
Log
"All Log" √
"Operation Log" √
434
SECTION 4Online Operation
The monitor screen can be divided into 10 areas as shown in Figure 4.1.4-1:
Area I
Main menu of the toolbar, it is the buttons on toolbar in the header, click
each button to display the corresponding function menus, then the
corresponding system figure is shown or the operation window pops up.
Area II
435
SECTION 4Online Operation
Area III
Alarm tips area, it includes technical alarm, device alarm and SOE log. If
there is new alarm information, the corresponding button blinks with red
color. If the alarm is recovered, the button is red without blink. If there is no
alarm, the button is gray. Click the button to access the corresponding
monitor window. Click Alarm Display button, the main figure switches to
Technical Alarm window; click button, the main figure switches
to Device Alarm window; click button, the main figure switches to
SOE Log window.
Area IV
Time and version area, it displays the name of this OPS, current system
time (or the running time length of the current OPS) and the software
version number of current MACS system. Click this area the display
content changes between Current System Time and Running Time
Length of the Current OPS.
Area V
Alarm light area, it displays the recent 10 alarm information, and they are
arranged from top to down, from left to right according to time order. The
alarm information displays in different blink rectangles according to the
different alarm status, as shown in Figure 4.1.4-2:
436
SECTION 4Online Operation
This alarm bar can be displayed and hided according to the operations in
437
SECTION 4Online Operation
Area IX
Main figure area, the windows in this area display different contents
according to the main menu, such as procedure flow chart, log information,
alarm information, etc.
Area X
Status bar area. It displays the current user level, privilege, domain
information, and the identification of current master and slave server, if the
sever is offline, the identification is displayed as with blinking.
Click server identification, the server status window pops up as shown in
Figure 4.1.4-3:
Server with blue color is master server, the yellow one is slave server, red
represents fault (includes that the server is not running), * represents
currently selected domain number.
4.1.4.2 Toolbar Menu Introduction
The toolbar in the footer is shown as Figure 4.1.4-4, from left to right, their
functions and applications are introduced briefly in the following.
1. System menu
438
SECTION 4Online Operation
Button icon:
Click System icon, the system menu pops up as shown in Figure 4.1.4-5,
the title is System, the function of this menu is to quit system, prompt
version information and display online help.
Select Quit System command, quit in engineer level, the tip dialog pops
up as shown in Figure 4.1.4-6, click Yes, the reconfirmation dialog pops
up as shown in Figure 4.1.4-7, click Yes to quit the OPS.
If the user login the OPS with monitoring level or operator level, the Quit
System in System menu is disabled and shown as gray, as shown in
Figure 4.1.4-8:
439
SECTION 4Online Operation
: Previous page, this button has memory function, it can open all the
pages in sequential order, with this icon the graphic files can be displayed
and switched in order, and the previous flow chart is shown in the current
window.
: Next page, this button has memory function, it can open all the
pages in sequential order, with this icon the graphic files can be displayed
and switched in order, and the next flow chart is shown in the current
window.
3. Graphic management menu
Button icon:
Menu command: click Graphic Management icon, the system menu pops
up as shown in Figure 4.1.4-10, the title is Graphic Management, the
function of this menu is to open and switch the graph, display and hide the
sub windows of operation page.
440
SECTION 4Online Operation
Click this command, the Active Base Graph dialog pops ups as
shown in Figure 4.1.4-11, the dialog lists 8 splitter windows and the
names of graphic files saved in cache which have been shown in the
windows, double click the file items in the list, the corresponding
graphic files will be shown in their windows.
441
SECTION 4Online Operation
With this menu the main graphic file will be shown in the current active
window, this main graphic file is the file with name "main.hsg".
With this command the Open graphic files dialog pops up as shown
in Figure 4.1.4-12, in this dialog, the user can open all the graphic files
with suffix ".hsg" in the project.
• Only the users with engineer level can use Open Base Graph command.
442
SECTION 4Online Operation
The graph opened in OPS is saved in cache, it is get from cache when
reopening it, the cache has a fixed size, so the previous graph will be
covered by the followed one, if the graph has been modified, the
displayed graph will still be the one in cache without modification, only
when the cache is full and the graph is covered, the graph will be
refreshed when reopening it. So if the initial graphic file is modified,
please click Reopen icon, this graphic file in the disk will be recalled to
cache, then the user can view the updated graph.
Reopen all
Clear the graphs in cache, recall all the graphic files in disk and display
main page.
System graph
With this menu the system status graph will show in current active
window, as shown in Figure 4.1.4-13:
443
SECTION 4Online Operation
Print Screen
With this menu, the graph in current window will be sent to printer to
print.
If this menu item is selected as in front of it, the alarm bar will be
shown in current screen, as shown in the VI area below the toolbar in
Figure 4.1.4-14; if there is no in front of the menu item, the alarm
bar will not be shown in current window.
Information Bar
If this menu item is selected as in front of it, the information bar will
be shown in current screen, otherwise, the alarm bar will not be shown
in current window.
Click the information bar, the user can drag it to the other place of the
window, click the close button on top of this window to hide it. Or
double click this information window, the window will go back to the
right of the main window automatically.
Alarm Sound
SOE Sound
4. Engineer Functions
Button icon:
Menu command: click engineer icon ,the system menu pops up as shown
in Figure 4.1.4-15, the title is ENG Functions. All the menu items are
enabled when the login user is in engineer level, users with other levels
can use Login, Simulation Keyboard and Select Domain.
Please see detailed functions of each menu item in "4.2.4 Engineer
444
SECTION 4Online Operation
Function".
5. General Function
Button icon:
Menu command: The general function menu is shown in Figure 4.1.4-16,
the functions are variable group, basic system, post trip, or report print,
please see the detailed functions in chapter 4.2.4 General Function.
6. Trend
Button icon:
Menu command: The system menu is shown as Figure 4.1.4-17, the trend
related menus are shown, the user can switch to trend curve display page
or define trend group, please see details in "4.2.5 Trend".
445
SECTION 4Online Operation
7. Table
Button icon:
Menu command: The system menu is shown as Figure 4.1.4-18. The user
can access technical alarm, device alarm or force table page. Please see
detailed functions in "Table 4.2.2 ".
8. Log
Button icon:
Menu command: The system menu is shown as Figure 4.1.4-19, the user
can access All Log, SOE Log, Operation Log or Device Log, please see
detailed functions in "4.2.3Log".
• The functions described above are the ones that can be operated by users
login with engineer level, if the users are monitoring level or operator level,
the menus corresponded with the level are displayed, the disabled
operations are gray.
446
SECTION 4Online Operation
No matter what state the previous session operation is, once the Menu
key is pressed, the flow chart main menu figure will be shown on the
screen, the user can select a chart to display.
Active window display
447
SECTION 4Online Operation
No matter what state the current figure is, the system will push a key figure
if the specific event occurs. The relation between the specific event and
the figure can be defined in function block configuration.
Hot point call
Multiple hot points can be defined on each figure when configuration, the
operator can switch to corresponding figure by hot point.
If the option of check operation level is selected in interactive feature
configuration, then the operation privilege will be checked first before
operating on dynamic object. If the operation is permitted, the user is
operator level and this object is defined to check operation level, the
operator’s user name and password need to be checked, or else, the user
can’t do operation. The operator name is recorded in operation log.
Engineer level or objects without checking operation level do not need to
be checked, the operator name field in operation log is "Engineer" or
"Operator".
4.2.2 Table
In OPS online system, if the system alarms, the OPS will issue alarm sound
through PC audio device to make caution to the operator. The alarm display
area and alarm tip area are blinking in the monitor, there are several ways to
view alarm information by accessing to alarm monitoring interface:
Alarm content
It includes analog over-limit alarm, digital switch alarm, and system device
alarm.
Alarm levels
Analog has four alarm levels. Each of them is displayed in different colors
448
SECTION 4Online Operation
Status Colors
Alarm display
See in section III of function area, there are technical alarm, SOE (log),
device (alarm), the alarm tips area is blinking if there are alarms which
have happened but not have been confirmed, the color of alarm display
and device alarm is red, when SOE blinks, click tips area, the SOE Log
figure is displayed.
Alarm confirm
There are Line Confirm and Page Confirm. The records of alarm recover
will be deleted after confirmation, but the records of alarm will stop blinking.
If any record is deleted, the screen display will adjust automatically. The
alarm confirmation will affect the alarm monitoring information status of
other displayed OPS.
449
SECTION 4Online Operation
Alarm information
Alarm number
Operation button
450
SECTION 4Online Operation
The two parts of technical alarm figure are: alarm information display area and
screen button area.
Time
Set date and time in time setting box, the format of date is:
Year-Month-Day, format of time is: Hour: Minute: Second, as shown in
Figure 4.2.2-2, all the alarm information before this time will be
displayed on current figure after this setting is completed.
451
SECTION 4Online Operation
Alarm level
Operation
The user can do operations like confirm, print, disable alarm sound on
alarm information, the operations are:
452
SECTION 4Online Operation
Line confirm
Page confirm
Click Print button, the print dialog pops up, the alarm information on
current figure will be printed.
Enable or disable the alarm sound with Alarm Sound or SOE Sound
in Graph Management menu.
453
SECTION 4Online Operation
4.2.3 Log
The log is to record all the events of machine set, and saved by their
occurrence order, in mature; the events essentially are the deviation of digital
and analog.
The log is classified as: All Log, SOE Log, Operation Log, and Device Log.
The contents recorded by log is: all event information recorded in table,
parameter setting event in OPS, alarm monitoring, test alarm and timing, all
these information is recorded in All Log, then recorded in specific log class
according to its property.
There are two log display modes: track mode and history mode. Track mode is
to display the recent information. History mode is to display the information
occurred in the past by scroll bar, and the user can view by page.
454
SECTION 4Online Operation
Press All Log key in dedicated operator keyboard or select All Log menu in
toolbar, All Log is displayed in screen as shown in Figure 4.2.3-1.
There are several types of information in All Log buffer, and each piece of
information occupies one line of the screen. Each piece of information includes
time and most of the information includes IO tag name and description, the "*"
before tag name indicates that this IO tag has property of simplified log, this
property is configured in the corresponding database.
All log buffers is a circular buffer with size of 30000, this buffer is empty when
the system is booted, and the logs recorded at the head will be deleted if the
logs number in buffer exceeds 30000. The recent system event information is
always on the log display figure.
Information number
Log operation buttons All log
There are three parts of All Log display screen: title display area, information
display area and operation button area.
455
SECTION 4Online Operation
(2) Numerical information in the right of title line: the first information is the
number of that day with format is: serial number of that day/ total
number of that day.
• In log information area, click one line of the information, the selected
information is marked as blue background and white font.
The logs defined in system and their sizes are shown in Table 4.2-2:
Log
Operation Device
All Log SOE Log
Log Log
Size
Information
0000 2000 10000 1000
area size
Track
456
SECTION 4Online Operation
Press Track button, the recently occurred system events are displayed
in log display figure. In default condition, the Track button is enabled.
History
Press History button, the All Log information meet query filter
conditions will be displayed in log figure, and it can be viewed by
dragging scroll bar.
Time
The starting time of query can only be set in History mode, press
History button, history mode is accessed to, then select
, the filter by time is enabled. Starting time box turns
from gray(disabled) to black(enabled). Please set starting time in front
of the arrow, and the ending time at back of the arrow, as shown in
Figure 4.2.3-2:
457
SECTION 4Online Operation
• Notice that the ending time must be after starting time, or else, the query
operation cannot be done correctly.
Tag name
458
SECTION 4Online Operation
Click forward arrow , the basic system and its variables box shows
up, the basic system names in current system are displayed in Basic
System box, click basic system name, its Tag Name and Description
are displayed in the following Basic System Variables, they can be
viewed by scroll bar.
Click a line of Tag Name, the selected tag name is displayed in Tag
Name Setting box in the left top corner of Customize Log Tag dialog
as shown in Figure 4.2.3-5:
459
SECTION 4Online Operation
Click Add, the tag in tag name setting box will be added to Tag List,
please add the tags to view one by one, as shown in Figure 4.2.3-6.
Also the user can type the entire tag name in Tag Name Setting box
and then add it to Tag Name List.
460
SECTION 4Online Operation
After setting, please click close button to close the dialog, the log
information of selected tags are displayed in log information area.
• Notice to keep conformity with the tags in database when manually input
tag name, and fuzzy query is not supported here; the tag name is case
insensitive.
• Click tags in Tag Name, the selected tag is with blue background and white
font, the user can click several times to select multiple tags, click Del
button to delete the tags from Tag Name List. Click the selected tag name
again to cancel its selected status.
• 20 tags can be selected at most when query by tag name, or else, the tip
box is shown as Figure 4.2.3-7:
461
SECTION 4Online Operation
Alarm level
Filter by alarm level is enabled and the dropdown list of alarm level is
enabled when is selected. Then the log
information of current figure is displayed by alarm level as level 1, level
2, level 3 and level 4.
The query mode enabled in each type of log is shown in Table 4.2-3:
Table 4.2-3 Query Mode of Logs
Log Category
Device Operation
All Log SOE Log
Log Log
Query Mode
Query by Alarm
√ √ √ √
Level
Query by Tag
√ √ √ √
Name
Query by Time √ √ √ √
Other operations
Click Print button at left top corner of log information, and if the print
request is send successful, it will pop up a message box as shown in
Figure 4.2.3-8, then the user can select the print file saving path
according to the printer setting.
462
SECTION 4Online Operation
Each piece of information in SOE log occupies one line, each piece of
information includes time, and most of information includes IO tag name and
description.
The information is blink and there is alarm sound if any alarm information
occurred in monitoring interface.
SOE log buffer is a circular buffer with size of 2000, this buffer is empty when
the system is booted, and the logs recorded at the head will be deleted if the
logs number in buffer exceeds 2000.
Press SOE Log key in dedicated operator keyboard or select SOE Log in
toolbar, the system will access SOE Log, and SOE alarm figure is displayed on
screen, as shown in Figure 4.2.3-9.
463
SECTION 4Online Operation
There are three parts of SOE log: title display, information display area and
operation button area.
1. Title display
(1) Log name: SOE log.
(2) The first information is the sequence number of that day with format is:
sequence number of that day/ total number of that day.
Operation log records the operation record information of operator and alarm
information of tags be configured with operation record property.
Operation log buffer is a circular buffer with size of 1000. This buffer is empty
when the system is booted. The logs recorded at the head will be deleted if the
logs number in buffer exceeds 1000.
The display format of operation log is date, time, device tag name, tag
description, current value and OPS no.(in bracket).
There are three parts of operation log: title display, information display area
and operation button area.
1. Title display
(1) Log name: Operation log.
(2) The first information is the sequence number of that day with format is:
sequence number of that day/ total number of that day.
Log”.
• Operation log records current value of operation, the system will record the
return value of the operation automatically.
Device log buffer is a circular buffer with size of 1000. This buffer is empty
when the system is booted. The logs recorded at the head will be deleted if the
logs number in buffer exceeds 1000.
466
SECTION 4Online Operation
There are three parts of operation log: title display, information display area
and operation button area.
1. Title display
(1) Log name: Operation log.
(2) The first information is the sequence number of that day with format is:
sequence number of that day/ total number of that day.
• The condition of exit OPS online or OPS is not in this domain is device fault
alarm in this domain, and the fault is displayed on node.
Basic system: This menu is to view the variable information in selected basic
system in list format, please see details in “4.2.4.1Basic System”.
Report request print: This menu is to view the print status of configured report,
and do print operation; please see details in “4.2.4.3Report Quest Print”.
Select icon in toolbar, the General Functions menu pops up. It includes
basic system, variable group, report request print, the detail function of each
page is shown in the following.
Press Basic System key on keyboard or Basic System menu in toolbar, the
system accesses to Basic System figure, the basic system information
defined in database, as shown in Figure 4.2.4-1:
467
SECTION 4Online Operation
Title bar
Print Button
There are four parts in basic system: title display, basic system information
display area, basic system variable information display area, and filter button
area.
1. Title display
The title of this page is Basic System, and there are Print Basic System
and Print Basic System Variable button, and close button.
Print basic system
With Print Basic System button, all the basic system groups can be
printed, and the printer can be set in Print Setup in ENG Functions.
Print basic system variable
First select the basic system name to be printed, click Print Basic
System Variable button, all the basic system variables can be printed,
and the printer can be set in Print Setup in ENG Functions.
2. Basic system information display area
Display the basic system name compiled in current database, only the first
468
SECTION 4Online Operation
Analog: With this button, only the analog basic system groups are
displayed.
Digital: With this button, only the digital basic system groups are
displayed.
Variable group is used for field staff to read meter, there are two display modes:
numerical mode and graphic mode, the default one is numerical mode. Select
Variable group menu in General Function , the dialog pops up as shown
in Figure 4.2.4-2.
469
SECTION 4Online Operation
There are two parts of variable group figure: information display area and
screen button area.
Display
470
SECTION 4Online Operation
Group edit is to add or delete variables from the current variable group,
click Group Edit button the dialog pops up as shown in Figure 4.2.4-3:
Tag list
Enter tag name in Tag Name input box, click Add button, the input tag is
added to tag list. Click Del button, the tag is deleted from tag list. Then
Also the user can click forward arrow , select tags from the tag
selection window to add, tag selection window is shown in Figure 4.2.4-4:
471
SECTION 4Online Operation
All basic system names in current system are displayed on top of this
window, the corresponding tag name and descriptions are displayed in the
following basic system variable table.
Add: First select system name in basic system list, and its
variables will be displayed in basic system variable list. Select the
desired variable and click Add, and then this variable will be added
to this group. A variable group can be added 80 variables at most.
Delete: Select variables to be deleted in the left list box, then click
Del to delete this variable from this group.
Operation
472
SECTION 4Online Operation
Graphics
Display analogs in current group in bar chart. Click this button, and
then the dialog will pop up as shown in Figure 4.2.4-5. The window can
only display 10 analogs in one page, if the analog number is more than
10, they can be viewed by page turning
button . Click Close button to close this
bar chart display figure.
Exit
Click Exit button in Variable group Variable List page to close this
page.
Report request print is used to print the configuration report. Select menu item
Report Request Print in General Function , the user can set parameters
473
SECTION 4Online Operation
like report name and print time, please see details in "4.2.6.2Report Print”.
The main function of SOE is collecting all alarm information of SOE variables.
Each piece of information takes a row, including time and other information
which include tag name, description and alarm status.
474
SECTION 4Online Operation
The “#”in the front of record means tag switch of event source, “#”from second
to later mean the tag switch of event source which causes event overlap.
Special situation: alarm recover event is not recorded in SOE; without event
source trigger, tags of SOE are not recorded in SOE.
4.2.5 Trend
There are four types of trend: general trend, digital trend, XY trend and
compare trend.
General trend, digital trend and XY trend can be displayed in Track and
History, the default mode is track mode. In track mode, the figure always
displays the recent history data, and tracks the recent value of IO tags and
status. If the figure is full, the displayed data will be translated and the system
continues tracking, and it is also that time scale and date will change. History
mode is used to display the trend values in an assigned history time range.
The tag values saved in history library of sever which has the same version
with current database can be viewed by turning page operation.
General trend can be displayed in curve mode or digital mode, called Curve
and Value, and the default mode is curve trend display. Digital trend and XY
trend can only be displayed in curve mode.
The user can define custom trend group, and general trend group can include
analog and digital. In analog and digital trend display, trend of 8 IO tags at most
can display in the same time; in XY trend display, 4 curves can display at most.
The displayed ranges of a curve can be amended according to the fluctuation
range of the curve displayed on screen to distinguish the change of curve. This
function of each curve can be enabled or disabled by operator. Compare trend
can display 4 figures, which is used to compare between the trend tags
displayed and entered.
Curve is drawn from left to right in time order; the display contents include
variable text description and variable curve trend figure. Different curves are
distinguished by different colors.
In curve display area, X-axis means time range and Y-axis means value range.
The whole X-axis area is divided into four cells. Coordinate on Y-axis is the one
of current curve. Its color is the same as this curve.
475
SECTION 4Online Operation
digital trend, the default mode is curve mode, as shown in Figure 4.2.5-1:
The content displayed on current figure is information of trend sub group. A sub
group has 8 curves at most, and the tags included in this curve can be analogs
or digitals. The display format is: description: group name: group description
initial time of current group data (original point time of the coordinate axis).
476
SECTION 4Online Operation
Click a line of information in tag information area, and click Modify Range
to modify range of current curve, then the upper limit and lower limit of the
tag information area about the corresponding curve are modified, the
coordinate upper limit and lower limit also be modified, and the curve
changes as shown in Figure 4.2.5-2 . The upper limit and lower limit here
does not influence the range upper limit and lower limit of database.
477
SECTION 4Online Operation
X-axis: It is divided into 5 cell, each cell is divided into 4 scales, the
length of X-axis is value in Select Time.
478
SECTION 4Online Operation
Cursor indication
Right click mouse in curve figure, the curve operation menu pops up as shown
in Figure 4.2.5-4:
After shift up and shift down operation, with this command, the curve
can go back to its former position;
With this command, the curve can move up. The curve moves up once
when this command executes, the move range is 10% of the
measuring range, as shown in Figure 4.2.5-5:
With this command, the curve can move down. The curve moves down
once when this command executes, the move range is 10% of the
measuring range.
480
SECTION 4Online Operation
Modify width of curve and grid: With Width of Curve (1~9) and
Width of Grid, the width of grid and curve can be modified with
range 1~9.
482
SECTION 4Online Operation
Draw points: Display tag values of each moment, at this time, the
trend is not a continuous curve but a series of points in time order,
as shown in Figure 4.2.5-10:
483
SECTION 4Online Operation
X axis time grid: The user can select Show Time & Date , Show
Time or Show Relative Time. In Show Time &D ate, the time
format is two lines, the first line is " hh:mm:ss ", the second line is "
yyyy:mm:dd "; in Show Time the format is " hh:mm:ss ", the Show
Relative Time takes original time as 0 moment, its format is "
h:m:s ", as shown in Figure 4.2.5-11:
484
SECTION 4Online Operation
Curve Group
Switch trend group
Selection
Select Query
Set query time in history mode.
Time
Define Query
Define query tag
Tag
485
SECTION 4Online Operation
The opened trend group number is displayed in Trend Group No., the
user can select group number with 1~90 in drop down menu of Select
Group, every 8 variable tags form a group.
486
SECTION 4Online Operation
Take the 10 minutes time interval as an example, click the left page
turning button, the trend curves 10 minutes before will be displayed, if
the tag values of this time is not recorded in the history library, there
will no display; click right page turning button, the curves 10 minutes
after will be displayed until the time length is less than 10 minutes
since the moment clicking History button.
In track mode, the time on right end of time axis is current time of
system, set time length according to Select Time (means block time).
The time scale refreshes with curve translation.
Select History mode to switch to history display, the switch time will be
the time on right end of time axis; but, if the user has set start time in
Select Query Time, then this time will be the original point time on the
curve.
The trend curve displays from left to right in time order, the values display from
up to down. Select Value, the trend will switch to value display mode as shown
in Figure 4.2.5-14:
487
SECTION 4Online Operation
The time selected in drop down list of Select Time is the length of
X-axis on screen. The display cycle varies with the different time
intervals.
The time intervals set in different trend pages are different, so as to the
display cycles.
488
SECTION 4Online Operation
The line with white triangular signs at the two ends is selection line, the
white triangle is called cursor, it is used to calibrate the value of a tag in
a certain time, the collection value of this tag is displayed in Select
Value in tag information area, the time of this tag is displayed in
Selected Time.
Click mouse and drag the cursor to change the position of selection
line, the value in Selected Time will change at the same time, and so
as to the Select Value, as shown in Figure 4.2.5-15:
489
SECTION 4Online Operation
490
SECTION 4Online Operation
Type tag name in Tag Name, here the name is case insensitive, or
type tag no. in Tag No.. Then set begin time and end time, click OK to
finish setting, then the Digital Switch Query window pops up as
shown in Figure 4.2.5-17:
This window displays switch information of this digital tag: tag name,
tag no., tag description, switch number and time range, the event
491
SECTION 4Online Operation
Click Set Query Condition to reset the query condition. Click Print to
print out the switch information, as shown in Figure 4.2.5-18:
If the user wants to switch to main page, click button to close this
window.
Switch to history mode, the Select Query Time button will be enabled.
Click this button, the Please select time dialog pops up as shown in
Figure 4.2.5-19:
492
SECTION 4Online Operation
Set date and time for the query tag, and click OK, the original point of
curve changes to this time.
Click this button, the Trend List Definition dialog pops up, please see
details in "Figure 4.2.5-20".
Click Modify Range, the Modify Curve Range dialog pops up as shown
in Figure 4.2.5-20:
Modify the upper limit and lower limit of current curve, the modification
range cannot over 120% of the initial range. After modification, the
493
SECTION 4Online Operation
curve changes according to the up to date upper limit and lower limit,
so as to the Y-axis and curve position on curve figure and Upper Limit
and Lower Limit in tag information area will change, only the display
range is changed, the range value in database will not be changed.
494
SECTION 4Online Operation
This window is smaller than general trend page and is floating, the
user can do maximum, minimum, close, and fix/float operation by
control buttons on title bar, the operations in this window is the same
as General Trend page.
495
SECTION 4Online Operation
Click the Digital Value button in dedicated operator keyboard or select the
Switch Trend command in toolbar menu above the screen, then pops up
Switch Trend used to display digital value trend, the default is curve mode, as
shown in Figure 4.2.5-24:
496
SECTION 4Online Operation
Digital value trend display is similar to general trend display, the differences
are:
Digital value display in 0/1 mode. 8 curves of digital I/O tags display
uncrossed, Y axis divided for each tag is 0-1 mode.
Real time tracking mode is displayed always in full screen and cannot
be changed.
Modify current curve range is invalid, because only have 0,1 mode.
Digital value display cycle for 1 second which will not change
according to time setting.
497
SECTION 4Online Operation
4.2.5.3 XY Trend
Click XY Trend key or select XY Trend command in the toolbar above the
screen, then XY trend curve pops up which displays the value changing of the
two related analog value, as shown in Figure 4.2.5-25:
498
SECTION 4Online Operation
X,Y axis are both analog value, rather than time value. And X,Y axis
are representative for 2 analog values respectively.
The screen displays the curves in periods of time set by current time.
Take 5 minutes time setting for example, in track mode, it displays
curves in history time period for 5 minutes. In history mode, after page
turning each screen displays curves in a time interval of 5 minutes.
Move the selection line to a certain point of X axis, the list at right
bottom of screen will list all Y values corresponding to the tag of the
current curve. Click certain line in the list, then it displays the
production time of the tag in the time frame which above the selection
value list.
When trend query tag positioning, the display curve is the trend curve
which sets the start point as query time and set length as time setting
in the period.
499
SECTION 4Online Operation
The screen with four compare trend diagram can compare four groups
simultaneously, and the titles are Trend 1~4. The total tags for each default
curve is 301, curve interval is 1, curve display time is 15 minutes, cycle is 2
seconds, UL/LL of display is 100/0, curve color is green, display mode for
track.
Type in the tag name in Input Track Tag edit box and click enter button, then
the certain point curve added into the corresponding small trend screen, which
can insert the compare curve constructed to compare the deviation range of
the curve.
First introduce how to add compare curve, the specific steps are as following:
500
SECTION 4Online Operation
Type in compare curve name in Curve Name edit box, the default name is
Expected Curve which can be modified as Curve 1.
Set the UL/LL of curve display in Range edit box, the default range is
0~100.
In Relative Time and Project Value list , it has listed 12 insert tag
information, double click the cells of Relative Time or Project Value to
modify the values. Modifying the tag in curve can add as the key tags in
curve diagram and add wiring between the two tags automatically. The
vertical and horizontal axis value range also follows the related value
setting, as shown in Figure 4.2.5-28:
501
SECTION 4Online Operation
The default color of the curve is for yellow. If to modify the curve color click
the Curve Color button on the window, then select the color from the color
panel pops up, the color of the compare curve will correspondingly
changed. If not to close compare curve access window then edit other
compare curves that the last selected color will be used. Only after closed
window, the default color can be used by coordinate axis and curves when
opening Input Contrast Curve window again.
After adding key tag, click button, then pops up the prompt
box as shown in Figure 4.2.5-29:
Click OK button to save before the close operation, otherwise the just
added or modified information will not be automatically saved. Curve is
saved to the default folder “..\MACSV_OPS\config ” under the installation
502
SECTION 4Online Operation
path of the certain operator, save name as Curve Name.csv, then saves
Curve Name.ref files which please do not delete.
After curve saved, if modify the curve related value again, then pops up
prompt box of whether save the modification when saving, as shown in
Figure 4.2.5-30, click OK button to save the modification.
After adding compare curve, click Open button then pops up Open dialog
box, as shown in Figure 4.2.5-31:
Default display for curve default saving path, select the curve name want
to open then click Open button to upload the curve parameter and display
compare curve in Input Contrast Curve window.
2. Insert compare curve
After editing compare curve, it can be added to each small screen.
Click the small screen to select one of the 4 trend diagrams in screen, type
in FUHE0 in Input Track Tag, click enter button to confirm then pops up
503
SECTION 4Online Operation
Click Insert button, then pops up Open Curve button as shown in Figure
4.2.5-34:
504
SECTION 4Online Operation
The dialog box displays all compare curve name currently saved. Click the
curve name in the list which display into the File Name box, then click OK
button to finish insert, as shown in Figure 4.2.5-35:
If want to insert other compare curves, click Insert button to select other
505
SECTION 4Online Operation
506
SECTION 4Online Operation
Click the Close button at right bottom of the page can close compare trend
page.
Right click on each trend diagram, then pops up curve edit menu, the specific
operations please refer to “4.2.5.1 General Trend”.
Only operator level and above level can add trend group. User-defined
variables groups defined online, each OPS has independent custom variables
group. Operator can define the variable group name according to specific
function when defining new variable groups which can rapidly find out the
variables need to display when operating.
507
SECTION 4Online Operation
click Define Query Tag button on the right side of the page can open
Trend List Definition dialog box. Take general trend group for example to
configuration setting, as shown in Figure 4.2.5-38.
In general trend group, the same group can both contain analog values
and digital values.
Maximum 90 variable groups can be defined for online system. Each
variable group contains 8 tags at most. For group edit and trend page
display both use group for the unit shows, namely operator can choose
variable group list need to be displayed through the group name.
Custom trend group allows online modification or adding in OPS. After
modification, trend and list displaying will correspond changed.
508
SECTION 4Online Operation
The specific steps of adding user-defined trend group in certain page are
as following:
Click the trend group number need to be edited in Analog Group List of
Trend List Definition, the line information of the selected group identify
blue. Double click the table cell of Description, then display group
description edit rectangle box, as shown in Figure 4.2.5-39, click other
blank spaces in dialog box to finish group description input;
According to the Basic System selection, display all the tag names
contained in the Basic System Variables list. Click one tag in the list,
then click Add button to add the tag into Analog Group List. In another
way, directly type in the tag name need to add in edit box on the left of the
Add button.
If delete the tags in group list, and then select the tag record in Analog
Group List, click Delete button can delete the variable in the certain
group.
In default condition, system distributes one color for each tag to mark the
curve and tag information of the certain tag, which can distinguish to other
tags. Select one piece of information in Analog Group List, then click
509
SECTION 4Online Operation
Click the Define Custom Colors button in Color panel, then default
display the color parameter. At this time, you can select the color in Basic
Color panel. It also can open up Add to Custom Colors of the panel,
after setting then click OK button to close the panel, the Curve Color
legend of the tag correspondingly changed in Analog Group List.
Click OK button in Trend List Definition dialog box to finish group edit,
then the dialog box automatically close. Trend page display the
information of the first page, through group selection switch to other trend
group to display.
Trend List Definition dialog box basically divided into 3 areas: group list
area, group variable list area, selection tag area (basic system and
variable list).
In Digital Trend page click Custom Tags button, then pops up digital
trend definition, as shown in Figure 4.2.5-41:
510
SECTION 4Online Operation
511
SECTION 4Online Operation
Select Edit Trend Group command of toolbar above the screen, then
pops up Edit Custom Trend Group dialog box, as shown in Figure
4.2.5-43:
512
SECTION 4Online Operation
Delete: click the group name of List of Defined Trend Group, after
selected click Delete button can delete the certain group.
Click OK button, then pops up the certain trend group display window, as
shown in Figure 4.2.5-45:
513
SECTION 4Online Operation
In Trend Group Name drop-down list, user can switch the current group.
In Trend Panel display corresponding trend group name. If not add any
tag for the new trend group, then do not show any tips when switching
from drop-down list to other groups. If had edited the certain trend group,
then directly switch to other groups display the prompt box as shown in
Figure 4.2.5-46, prompt whether save the modification to the current trend
group.
Click OK button to save the current trend group information, then switch to
other selected trend groups which has the same effect as click Save
button. Click No button to cancel the edit for current trend group, directly
switch to other trend groups window.
Right click the edit box marked with color and box around shows a gray
514
SECTION 4Online Operation
Type in the tag name in Please input the name of a trend tag box or
click Select Tag button, then pops up a dialog box, as shown in Figure
4.2.5-48:
515
SECTION 4Online Operation
Select Basic System, and then select the tag needed to add in
corresponding Basic System Tag list. Double click the tag to add to
Please input the name of a trend tag box automatically, and then click
OK to finish. Enter each tag in turn, for each group can add 8 tags at most.
The tag name, selection value show in tag information area up left of the
window, tag change curves shows in the area below, as shown in Figure
4.2.5-49:
516
SECTION 4Online Operation
You can change the tags, set the time interval, move up and down the curves,
etc. Please refer to the content of “4.2.5.1 General Trend” for these specific
operations.
Clicking the window control button on the right of window title bar can
maximize, minimize, fix/float/close the current custom trend group window.
Click ENG Functions menu in screen main menu. Select Print Setup
command then pops up dialog box as shown in Figure 4.2.6-1 Setup Default
Printer to set print.
517
SECTION 4Online Operation
In Print Setup dialog box to set Print at Once, Print Orientation, Color
Conversion for Print Screen. The functions are as followed:
SOE Auto Print: click the selection box for SOE Auto Printing.
When select , it will print SOE automatically at the moment when
SOE events occur. When canceled for not auto print as , you
need manually click Print button to set output printing.
Report Auto Print: the same as SOE Auto Printing to set whether
auto print. It can also be chosen to Only Save to File or Print and
Save to File. Output file can be printed at any time after storage.
518
SECTION 4Online Operation
Alarm Print Orientation: set alarm table (technical alarm, device alarm,
force table) direction as Printer default value, Horizontal or Vertical.
Log Print Orientation: set log print direction as Printer default value,
Horizontal or Vertical.
Color Quality: set the color range as Bits of screen color or (16 bits
color).
Color Conversion for Print Screen: replace originally print screen color
(unfavorable to print) to the color favorable to print checking. Max 4
kinds of color can be set as replacement color, each color correspond
to choose as Originally Color and New Color.
Click the Print button in alarm page, log page or parameter list, it will print the
contents by default printer or the printer you have set.
Press Report Query key or select Report Query Print command in General
Function menu of screen main menu, then pops up the Report Print dialog
box as shown in Figure 4.2.6-2 Report Print Query Panel:
519
SECTION 4Online Operation
The report name shown in Select Report drop down list is already setup by
Report Configuration of ENG Functions menu. Click Request Print button
after selected then pops up dialog box please select print request time… as
shown in Figure 4.2.6-3 Report Request Print Setup Dialog Box:
In this dialog box user can set print date, time and output mode then click OK
button. System sends the print request according to the setup time to complete
the print tasks.
The open office software has been installed selectively during installing system
software. Print documents are saved in the list of OPS software installation
folder ..\MACSV_OPS\start\folder named as report name (e.g., technology
520
SECTION 4Online Operation
Document print mode is uesd for Alarm page, log page and parameter list
etc(as Table 4.2-5). Print to files or printer can be set in Print Setup dialog
under ENG Functions menu.
All Log
SOE Log
Log
Operation Log
Device Log
Process alarm
Force table
Select each page print button will trigger print task, then pops up message box
as shown in Figure 4.2.6-4 Print Message Box:
521
SECTION 4Online Operation
Click on the copy diagram, then click Hard Copy of the keyboard, or press
shortcuts ALT+P, or select Print Screen command in Graphic Management
menu that can complete the print screen hard copy. Print documents are saved
in the list of OPS software installation folder ..\ MACSV_OPS\config\date
files(eg.2010 year 11 month 05 day\ as shown in Figure 4.2.6-5:
When outputting, the files will be saved to the above directory shown as in
Figure 4.2.6-5. The file is named as the combination of print date and time, e.g.
11month 08 day 15 hour 04 min 36 sec.bmp, and the year mark for ellipsis.
• Hard copy pre-condition: select Print Screen item in Print Setup dialog box
of ENG Functions menu.
522
SECTION 4Online Operation
Real time graph reflects system device performance. Using different colors
represent the current status of the device. The corresponding relationship of
device and color is shown as Table 4.2-6:
Program
Backup DPU unit
DPU DPU unit normal Fault not
normal
download
Fault or not
I/O unit Module normal ------ ------
insert module
523
SECTION 4Online Operation
Communi
cation Normal ------ Fault of offline ------
station
Press Server* of screen status bar can check server information list as shown
in Figure 4.2.7-2:
Server
For double hot standby system, using the host of green as working server;
host of yellow as back-up server; red for server fault.
I/O field control station
The two lights of FCS in Figure 4.2.7-3 present DPU mode: green for DPU
normal, yellow for back up DPU normal, red for DPU unit fault, white for
DPU not download any program.
Figure 4.2.7-3 shows each I/O unit mode: green for I/O unit normal; red for
I/O unit fault or not insert module.
524
SECTION 4Online Operation
When A/B character of control station icon display for red means IEC
operation of controller corresponding to the control station in error, shown
as Figure 4.2.7-3:
Network
Green is for printer online and normal, and red is for offline or fault.
I/O acquisition station can further examine its board mode and tag mode. Click
I/O acquisition station in Figure 4.2.7-3, the screen basic diagram is shown in
Figure 4.2.7-4.
525
SECTION 4Online Operation
The diagram shows the current mode of each slot in the acquisition station;
green represents for I/O unit normal, red for fault, white for I/O not exist, yellow
for I/O configuration fault.
Click any module in Figure 4.2.7-4, the screen will display the value of tag
name, tag description, current value, channel number, etc as shown in Figure
4.2.7-5. Click module information window close button to shut down the
window.
Click lock button of the sub window and the button shows locked mode ,
when switching the page and the current sub window will not be closed. Click
the lock button again locked mode will be released.
526
SECTION 4Online Operation
Right-click on flow diagram and the main functions of engineer right-click are
shown as following.
Right-click the dynamic tags of analog flow diagram, system mode diagram or
channel list, then there will pop up right menu as Figure 4.2.8-1, Figure 4.2.8-2,
Figure 4.2.8-3. The menu contains the following commands: tag trend, force
tag, tag detail, graph size, zoom, restore, show text or value. There is also little
distinction according to the page location of the dynamic tags.
527
SECTION 4Online Operation
The tag trend panel mainly displays the trend information of current dynamic
tag. The time interval, curve UL/LL, switch display mode and display mode can
be set through the panel.
Example: select the load tag in system mode diagram then click right key to
select Tag Trend command, the system pops up an active window as is
shown in Figure 4.2.8-4. The real time changes will be displayed as default
value in curve mode.
528
SECTION 4Online Operation
Tag information
Switch between
History Mode and
Track Mode
Page turning
button
Trend value display space: display curves or value list according to the
trend Display Mode.
Value display mode shows the value list. The first column is time value,
the user can check the value or other tag value through scroll bar, as is
shown in Figure 4.2.8-5:
529
SECTION 4Online Operation
530
SECTION 4Online Operation
Tag group information: display the certain group name and group
description. Click Format button to set the decimal digits of each tag in
the group. The default Group is 1.
Time interval: sample time interval can be set in Select Time column
as 5 mins, 10 mins, 25 mins, 50 mins, 60 mins.
Selected curve: display tag name , modify the UL/LL value of the
current tag scale, or print the curves.
Select trend group: when setting multiple trend groups, click the
certain button to switch to other groups to display.
Select query time: in history mode, the time point can be set by
moving the slide indicator in curve diagram. Click the button, then
popping up Select Time dialog box to set the data and time
parameter of the time point. After setting, click OK button to finish
time point setting. The time of coordinate axis origin at the most left
position fix to the setting moment, as shown in Figure 4.2.8-6:
531
SECTION 4Online Operation
Define trend tag: click the button can display trend definition dialog
to define trend group.
532
SECTION 4Online Operation
• The range after modification cannot exceed 120% of the original tag range,
otherwise pops up system tip box as shown in Figure 4.2.8-8.
Print Curve: click the button to send print task, then print trend.
Page turning: choose half page turning forward and backward, 1/2
screen.
533
SECTION 4Online Operation
Start time setting: set the start time (coordinate axis origin time) of
curve display. After setting click OK button to confirm.
• User can drag and drop the dynamic tag to the tag window which already
opened to show the certain tag curve trend.
On line define general variable trend group and digital value trend group in
OPS. General variable trend group is used to display trend of analog and
digital value. Digital value trend group is only used to display digital value trend,
so digital value trend group only contains digital value.
Each group definition is saved in the related files of OPS. Add, modify and
delete or other operations on one OPS will not affect the trend group operation
of other OPS.
Click to select dynamic tag, then select the Add Tag to Trend Group
command in right click menu, then pops up Add Tags to Trend Group dialog
box as shown in Figure 4.2.8-10:
534
SECTION 4Online Operation
Select defined group style as general trend group or digital value trend
group in Group Type drop-down menu. Then, select group number in
Trend Group Number drop-down menu. System has default adds 1~90
groups, set group number for 1.
Select basic system name in Basic System list,, then select variable in
related Variables of Basic System. The Tag editor box auto shows the
selected tag name, click Add button to add tag into Tags in
Group list, as shown in Figure 4.2.8-11:
535
SECTION 4Online Operation
Click OK button and quit the window, the adding modification is effective;
If click Cancel button and quit the window, the adding modification is
invalid.
Click Trend button also can confirm the adding modification effective and
display the related general trend or digital trend according to the trend
group type and trend group number, then quit Add Tags to Trend Group
window, as shown in Figure 4.2.8-12:
536
SECTION 4Online Operation
Click right key on certain dynamic tag, then select tag detail and pops up dialog
box shown as in Figure 4.2.8-13. Header line displays the tag name and tag
type of the current tag. Type in tag name in Type in Tag Name box then click
enter can check the tag information of the certain tag.
537
SECTION 4Online Operation
Tag value
Click right button for spread on Tag Detail window, then it will display the
basic system and basic system variable name list box, as shown in Figure
4.2.8-14. You can modify the tag in current Tag Detail window:
538
SECTION 4Online Operation
The selected tag names of the right side will be displayed the Tag Name and
Tag descrip in the edit box of Tag Detail. Also you can type in tag serial
number or name. Update other information display by using update key, as
shown in Figure 4.2.8-15.
539
SECTION 4Online Operation
1. Zoom
Zoom the current diagram.
Operations: right click the technical diagram, select Zoom command.
Press left click then drag mouse to draw a rectangle box as the zoom
region, then the current diagram will display the content after zoomed in.
2. Restore
3. Restore the diagram after zoomed in.
Operations: right click the diagram and select Restore command, then
display the current diagram in initial set size. For multi-window diagram,
the Restored diagram displayed in current window, as shown in Figure
4.2.8-16:
540
SECTION 4Online Operation
4. Full/Part window
Operator diagram can be set to multi-window style through Configuration
Tool of OPS. The method is: select
[program]\[MACS]\[MACS_OPS]\[configuration tool], then start
MACS2001 Setting window, switch to Advanced Settings tab, as shown
in Figure 4.2.8-17:
Move the cursor to any window, right click to select Full/Part window
command to fill the whole window with the selected diagram. Select this
command again to recover to the multi-window mode. The Full/Part
window command can switch the diagram between multi and single
diagram.
• For the Full/Part window option, the full screen window is the window
542
SECTION 4Online Operation
5. Full Window
The command Full Window can make the current diagram full of the
whole page.
6. Show text or value
7. Show text or value command can switch the display of dynamic tag
between the value and database tag name, which easy to check the
tag name of each dynamic tag.
Right click on diagram to select Show text or value command, value
display mode of the dynamic tag switch to text mode as shown in Figure
4.2.8-19. The selected mark shows head of the command.
8. Graph size
This command used to check suitable size of the current diagram.
Right click on diagram to choose Graph size command, then pops up
system message box as shown in Figure 4.2.8-20 to display the most
suitable size of diagram long * wide.
543
SECTION 4Online Operation
544
SECTION 4Online Operation
Login
Simulate keyboard
Select domain
User management
Switch controller
Print Management
Start option
Report configuration
User who has logged into the online system with engineer privilege can use
the system function keys and switch to system desktop; user with other level
have no privilege to use function keys which will be shielding.
4.2.9.1 Login
The process of engineer level and operator level is the same for log in, the
login window as shown in Figure 4.2.9-2. Type the correct User ID and
Password to login the operation interface of corresponding level.
User ID and password are not case-sensitive. If the input is error, the system
will keep the last user login successfully. Click Cancel button can close the
window.
545
SECTION 4Online Operation
Click ENG Functions menu in screen main menu, then select Simulate
Keyboard, there will pop up the small simulate keyboard, as shown in Figure
4.2.9-3:
In small simulated keyboard, simple digital input operation could be done. Click
Login button to close simulated keyboard, then pops up OPS Login dialog
box; click Standard button to display simulated operator keyboard, as shown
in Figure 4.2.9-4:
546
SECTION 4Online Operation
The operation of simulated and dedicated operator keyboard is the same. Click
Keypad button of login keyboard can switch back to the simulated keyboard
style.
When the project has multiple domains, select Select Domain command of
ENG Functions menu in screen main menu, then pops up Set Current
Domain dialog box, as shown in Figure 4.2.9-5:
547
SECTION 4Online Operation
Select the project name which the login domain belongs to and click OK
button, the system will directly access the main interface of the selected
domain.
548
SECTION 4Online Operation
In this dialog, user can select whether to use super user, click OK to conform
the selection.
1. Summary
System of each server, workstation and acquisition station has the local
clock, these clocks are synchronized by central server. System allows
engineers to set the clock’s initial time, after confirmed it will send to
central server, then from a central server broadcast to each workstation,
print server, communication server and data acquisition station, etc.
2. Special cases
(1) Because setting process has to pass two level network communication
to arrive the target station, the local clock modification of target station
will lag several milliseconds. For this reason, the clock modification
should avoid operating at the critical tag before zero tag.
(2) Clock modification is for seconds level, so the absolute time of system
correct to seconds level. For the digital tag need milliseconds to
represent, the display of milliseconds value is relative.
(3) After clock modification, the system data may appear inconsistency.
Click ENG Functions menu in screen main menu, select Set Server
Time command, then pops up Select Time dialog box, as shown in Figure
4.2.9-7:
549
SECTION 4Online Operation
Modify system data and time, click OK button to finish setting, then the system
time of OPS will be updated.
1. Summary
Two servers run the same data processing. If master server thread or
other tasks in fault, master/salve server can also manually switch. Slave
server can send data packet to network message queue after switch to
master server. The certain server refers to which can take on real-time,
history and print services.
2. Operation
550
SECTION 4Online Operation
When server switching, the server name in the status bar on right bottom
of screen will be changed, as shown in Figure 4.2.9-9. Click server
information in status bar, then pops up server information panel as shown
in Figure 4.2.9-10:
1. Summary
Type in the station number needed to switch in the Control Station NO.
box of dialog box, click OK button, then pops up the prompt box as shown
in Figure 4.2.9-12:
1. Summary
Print management can set auto print function and screen hard copy.
Auto print contents: SOE auto print, report auto print.
SOE auto printing occurs after accident source event occurs, then
it will be printed automatically.
Auto printing can disable and recover auto printing on certain OPS.
2. Priority level
When print tasks in conflict: auto printing priority level is higher than
request printing’s; report printing priority level is lower than SOE auto
printing’s.
3. Operation
552
SECTION 4Online Operation
Please see details of specific print setup in chapter 4.2.6.1 Print Setup.
Click ENG Functions menu of screen main menu, select Start Options
command, then pops up OPS Startup Options dialog box, as shown in Figure
4.2.9-14:
553
SECTION 4Online Operation
• Suggest select the two above items after OPS running normally, which can
help to rapidly login online system when OPS restart for accident reasons.
554
SECTION 4Online Operation
First add schedule events under Report schedule node, the main
operations are as following:
Add schedule: type in the report schedule name in Schedule
Description edit box as task 1, then set schedule time:
Date: set date of occurrence, the format is: months: days . Only
valid for the selected frequency for per month or per year .
After the above schedule parameters setup, click Add Schedule button,
then the schedule is added to Report schedule tree node on the left.
Modify schedule: select the schedule needed to be modified in the tree
diagram on the left of the window, and then modify the schedule
description and time. Click Confirm button to finish the modification.
Select the schedule node in the tree diagram on the left of the
Configuration of Report Printing window, and then add report print
events.
556
SECTION 4Online Operation
Add events: type in the report name in Report Name edit box, e.g.
Technical Parameter or click button to find the path of the report
need to open, and then select the report file to set Report Description.
Click Add Events button, the report events will be added into the node
on the left of the tree diagram, as shown in Figure 4.2.9-16.
Set the date, time and the output mode of printing, click OK button to
finish report request event setting. Also you can use Request Print
Reports command under the General Function menu to start the
certain setting dialog box.
After operator online start, the operation system function keys will be disable.
Only the user with engineer level can release the setting. Click ENG
Functions menu of screen main menu, select Disable Function Key
command, then pops the dialog box as shown in Figure 4.2.9-17:
The default Disable Function Key setting is in selected mode. Click the
setting item, the setting box display for , click the operation system button
can switch to operation system.
• The tips about an item appear when you move the mouse in sequence
control device, manual operator, regulating valve, breaker state indicator
windows.
• In the operation panel, if the buttons are gray that could not be operated.
558
SECTION 4Online Operation
PID regulation include three kinds of panels: loop operation panel, trend
display panel, and parameters tuning panel. The information and application
introduction of each panel are as followed.
Pre-click the focus of PID, the screen will pop up operation panel as shown in
Figure 4.3.1-1. Through the loop operation panel can turn into other two panels
separately.
Three bar graphs on the left represent for set value (SP), process
value (PV) and output value (AV). The colors of the bar are
respectively: blue, sky blue, pink.
559
SECTION 4Online Operation
Value display
The data shown in the three boxes at right bottom are respectively: the
current value of SP, PV and AV. The color of each value corresponds to
the bar color.
When PID controller runs in manual mode, the output value is given by
manual operation; in auto and cascade mode, the output value is given
by algorithm; in track mode, the set value is tracking tag value.
When bias alarm occurs, the top-left light turns on (red). When alarm
vanished, it is back to the normal color.
Others
The PID controller static panel contain: tag name, tag description
(instruction), etc. Click can close loop operation panel.
2. Operation instruction
The operations of the panel contain: working mode (manual, auto,
cascade and track) switch, modify SP/AV by increase or decrease button,
switch to trend display panel and parameter regulation panel.
PID contains four working modes: manual, auto, cascade and track which
undisturbed switch to each other.
In manual mode, PID unit stop operation and rely on operation key
to regulate control output.
560
SECTION 4Online Operation
561
SECTION 4Online Operation
ss
al le,p en o e
re
key res t
ey
Au
Ma
Ca
s
key le,p
e k
nua
sc asc Auto
cad
ade ad
ab
l e
tra k en
cas
nab
en
k
abl key
c
c
ss
le,
tra
Auto Cascade
e
pre
e,p
pre
enable enable,
al
le,
res
ss
nu
,press press
ab
s
Ma
man
auto cascade
n
e e
key key
ual
ca d
ke
Cas
y
Cascade
562
SECTION 4Online Operation
1
sca p
Tra st o
to
Man ma
de a
Auto 0,l
ade t
ual nua
ena
asc as
rom
l
ble
r c 0,
en l ke
h f
abl y
,pr
fo to
itc
Auto Cascade
e,p
ess
1
sw
enable, enable,
m
res
n m fr o
ack
ca
press press
od e
s
sca
Tr
tio ch
auto cascade
de
era it
key key
op k sw
key
ac
Tr
Cascade
In track mode, PID outputs adapt to track tag. According to the mode of
access, it is divided into key manual switch tracking (manual tracking) and
switch control auto switch tracking (auto tracking). The mode by which
PID accesses the tracking is decided by the setting of offline configuration,
the rules shown as Table 4.3-1.
Table 4.3-1 Track Mode Instruction
563
SECTION 4Online Operation
If the configuration result for manual track that operation mode as shown
in Figure 4.3.1-2, click Track key in PID panel can switch working mode to
track mode; if click other keys can quit track mode then access relevant
working modes.
If the configuration result for auto track that operation mode as shown in
Figure 4.3.1-3, when tracking switch for 1, auto switch into track mode.
Only when tracking switch for 0, quit track mode then get back to
advanced working mode.
Auto track mode switching is executed by subordinate computer. When
operation work station in auto track mode, tracking operation light is on
and other keys are gray; when quit, keys return to normal.
SP modification
pressing left key each time, SP regulate 1% of the range, and Clicking ,
SP regulate 5% of the range. User can modify SP by type in value directly,
click on the position of SP displayed then type in the value and press
enter.
AV modification
Only when PID controller in manual mode that can modify AV.
In input box at right side of the bar chart can modify SP, PV and AV.
4.3.1.2 Trend Display Panel
Besides retaining the display function of loop operation panel, it also can
display PV, SV and AV changing trend.
564
SECTION 4Online Operation
At the bottom of trend panel display the UL and LL value of SP, PV and AV from
up to down. On the left is UL value of range and the right for LL value.
Parameter tuning panel can display and modify the control operating
parameter of regulator.
Tuning parameter item displayed on the right side of PID operation panel is
shown as Figure 4.3.1-5.
565
SECTION 4Online Operation
Parameter tuning panel can display and modify the control calculation
parameters of regulator:
When track switch is vacant and the track tag is not vacant, then track
enable item is optional. Otherwise the value position is unable and not
optional.
When certain parameter item in gray, then the item is not optional or
tuning.
566
SECTION 4Online Operation
• After set input dead band/ On/Off limit, if input bias less than the value,
then PID have no response to input bias. This function can be used to
avoid PID output frequent output in allowable bias range.
1. Operation panel
567
SECTION 4Online Operation
Pre-click the focus of analog MO, screen will pop up operation panel as
shown in Figure 4.3.2-1.
2. Information displayed instruction
Analog MO panel contain: value display of track tag (TP), feedback value
(FP), command value (AV), scale display of input and output value, etc.
Value display
Panel value box displays the current value of valve pos. value and valve
pos. AV.
Scale display
The up-down scale pointers are following valve position feedback value
and AV. The length corresponds to the ratio in range percentage of
feedback value and valve position command AV.
3. Operation instruction
AV regulation
1. Operation panel
568
SECTION 4Online Operation
Click the mouse on analog MO hot point set in advance, screen will pop
up operation panel as shown in Figure 4.3.3-1.
2. Information display instruction
The contests of analog MO panel contain: value display of PV, process SP,
valve position feedback value, valve position command AV; scale of valve
position feedback value, valve command AV, working modes, working
mode switch display, etc.
Value display
The panel value box contains: current value of PV, process SP, valve
position feedback value, and valve command AV.
Scale display
The up-down scale pointers follow valve position feedback value and AV.
The length corresponds with the ratio in range percentage of valve
position feedback value and command AV
Operation mode display
Operator has two kinds of operation mode, manual and auto. Click the
auto or manual button, the current operation mode will display in the
dialog box which located above the button. If the control algorithm has set
Force manual and the Force Manual is true, then the operation mode will
be force manual; if the Manual and Auto button is gray and it cannot be
optional.
3. Operation instruction
The panel operations contain: working mode (manual, auto) switching,
modify AVs through the increase or decrease button or directly type in
value.
569
SECTION 4Online Operation
AV regulation
The functions sequence control device provided contains: set start/on, stop/off,
reset, repair and confirmation.
1. Operation figure
Click mouse on sequence control device hot point set previously, the
screen will pop up operation panel as shown in Figure 4.3.4-1.
2. Information displayed instruction
570
SECTION 4Online Operation
Indicator light
Device mode
Green light Red light
571
SECTION 4Online Operation
Pause: press Pause button to send out Pause pulse, light color
from gray to green.
Open feedback indicator mode: red blink for opening, red light on
for Open mode already.
Close feedback indicator mode: green blink for closing, green light
on for close mode already.
Device mode: red for open; green for close; yellow for feedback
mode error; gray for no operation feedback mode.
572
SECTION 4Online Operation
3. Operation instruction
Panel operations contain: start/on, stop/off, repair and confirmation.
Set Output Command
The functions regulation valve provided contain: set open and close
573
SECTION 4Online Operation
1. Operation panel
Click mouse on regulation valve hot dot set previously, the screen will pop
up operation panel as shown in Figure 4.3.5-1.
The data is shown in panel box respectively: valve position feedback value
and the current value of valve position command value.
Scale display
The up-down scale pointers follow valve position feedback value and AV.
The length corresponds to the ratio in percentage of valve position
feedback value and command AV.
574
SECTION 4Online Operation
3. Operation instruction
4. The panel operations contain: set output command.
Through the manual increase/decrease button at right lower corner of the
panel can regulate the AV.
In system, click manual increase , decrease button or press
dedicated operator keyboard ▲ ,▼ key once, AV will be regulated
according to manual deviation rate, the default deviation range is 1% of
output range; Click quick manual increase , decrease button or
press dedicated operator keyboard , key, AV will be regulated
according to manual deviation rate, the default deviation range is 5% of
output range.
Double click command AV can type in the value.
The panel operations contain: repair button.
4.3.6 SLAVE
CS is the soft servo-amplification for analog MO. In manual mode, analog MO
controls the output through increase/decrease button. In auto mode, analog
MO controls the output through CS according to the input mode deviation.
1. Operation panel
Click the mouse on hot point of regulation valve set previously, the screen
will pop up the operation panel as shown in Figure 4.3.6-1.
2. Information displayed instruction
575
SECTION 4Online Operation
Display the current value of PV, process SP, valve position feedback value
and valve position command AV.
Scale display
The up-down scale pointers follow valve position feedback value and AV.
The length corresponds to the ratio in percentage of valve position
feedback value and command AV.
3. Operation instruction
The operations in the panel contain: output command setting.
Through the manual increase/decrease button at right lower corner of the
panel can regulate the AV.
In system, click manual increase , decrease button or press
dedicated operator keyboard ▲ , ▼ key, AV will be regulated according
to manual deviation rate, the default deviation range is 1% of output range;
Click quick manual increase , decrease button or press dedicated
operator keyboard , key, AV will be regulated according to manual
deviation rate, the default deviation range is 5% of output range.
Double click command AV can type in the value.
The panel operations contain: repair button.
Circuit breaker can provide the following control functions: set switch on/off,
repair, confirm, reset.
1. Operation panel
Click the mouse on hot point of circuit breaker set previously, the screen
will pop up the operation panel as shown in Figure 4.3.7-1.
576
SECTION 4Online Operation
El. fault: red for El. fault. Dark gray for no El. fault.
Enable switch on: red for enable; dark gray for unable.
Enable switch off: green for enable; dark gray for unable.
Auto command mode: red for auto switch on/off command exist.
Green for auto switch on/off command not exists and switch
enable not allowed. Gray for no setting.
3. Operation instruction
The operations for panel contain: switch on/off, repair, confirm, reset.
Output command setting
578
SECTION 4Online Operation
The server setting is introduced in this chapter , copy related files in site sever
to analytic system questions, solving server’s questions and notes for server.
• Check, modify and exit each server process must be authorized and
guided by Hollysys and related technical. Strictly forbid to change and exit
each process of server and associated settings.
Only User Login is available in default, other menu command can be used
after succeed login with engineer level username and password, functions are
as follows:
579
SECTION 4Online Operation
Server Hide: hide the process windows for each server management.
1. User Login
Right-click the server management icon in the taskbar, select User
Login in the drop-down menu, it will show a User Login dialog box as in
Figure 4.5.1-2, input the user name and password, then click OK, it will
login successfully.
2. Server Settings
580
SECTION 4Online Operation
3. Server Show
After login the server management, right-click the server management
icon in the taskbar, select Server Show in the drop-down menu, it will
show all server processes in taskbar.
4. Server Hide
After login the server management, right-click the server management
icon in the taskbar, select Server Hide in the drop-down menu, it will
hide all server processes in taskbar. If you select Server Show, it will
show all server processes in taskbar again.
5. User Logout
After login the server management, right-click the server management
icon in the taskbar, select User Logout in the drop-down menu, it will
logout the server management, all server management commands will
turn gray and unavailable.
The following introduce the content can be modified and settings in project.
There is a method to modify the storage path of history database; the specific
operation is like the following:
User can view server’s running state through operator on-line system, so
as to definitude the master-standby server. Example: A is master server, B
is standby server. Click the server management icon in the taskbar,
select command Server Settings, open dialog Server Settings, as
shown in Figure 4.5.1-4.
Firstly, modify standby server B, user should copy the history database file
which saved in the history data directory HISDATA of standby server B to
target path.
Then, select Node B through drop-down list Server A or B in dialog
Server Settings, modify the path parameters in History Database Path
and Accident Review Path, click on button OK to finalize the modification
and close dialog Sever Setting.
Exit server B, and restart server program. Open the setting of dialog
Server Settings once again, check whether the storage path in history
database server of second revised path.
• The online trend time from copy history data file to restart server (about 10
minutes) will be lost, but other online trends will not be affected.
582
SECTION 4Online Operation
Step 4. Modify the other server settings when switching master server
and standby server
The free space of driver is 1024M in default, if the residual space is less than
the reserved space, system will delete the earliest history database files to
reserve space. User can manually modify Reserved Space in window History
Database V2.1, and then click Confirm Modification, thus to reset Current
Reserved Space.
After login the server management, right-click the server management icon
in the taskbar, select Server Show in the drop-down menu, it will show all
server processes in taskbar. Select MACS history v2.1,the dialog box is shown
as in Figure 4.5.1-5:
583
SECTION 4Online Operation
Modify, input a space, then click OK, and the reserved space is changed.
• If the residual space is less than the reserved space, system will
automatically delete the earliest history database files to protect space. So,
important history database files need to be saved to other disks on fixed
days, and user can look up these history data through off-line query
software.
• The old history files are not deleted after reset reserved space, it can be
looked up through off-line query software.
584
SECTION 4Online Operation
There are two methods to modify the server node A/B and timing port, the
specific operation is like following:
585
SECTION 4Online Operation
HOLLiAS MACS server uses network timing for OPS and FCS.
User could use server’s clock timing when there is no GPS and FM197(timing
HUB)timing, neither check GPS when install server software, nor modify the
file CAS2000serverExe.ini in the directory of C:\WINDOWS(or C:\WINNT).
Otherwise, user should modify the following two parameters as shown in
Figure 4.5.2-1 and Figure 4.5.2-2 .
586
SECTION 4Online Operation
587
SECTION 4Online Operation
GPS is the standard clock when user use GPS timing, it check the system
server after each second begins and before the next second comes. System
server refreshes OPS’s standard time by LAN.
1. Connection method
Device connection
The devices connect method for GPS timing, as shown in Figure 4.5.2-3.
Crossover cable
Pins Server-RS232
GPS-RS232
588
SECTION 4Online Operation
Crossover cable
Pins Server-RS232
GPS-RS232
1 NC NC
2 RS232(T) RS232(R)
3 RS232(R) RS232(T)
4 NC NC
Clock signal
5 Clock signal earthling
earthling
6 NC NC
clock pulse
7 NC
input
8 NC NC
The connection of GPS and server as shown in Figure 4.5.2-4, the pins 2
and 3 are connected by a pair of twisted-pair, so do the pins 5 and 9(7).
timing and choose the proper serial port, the file CAS2000serverExe.ini in
directory C:\WINDOWS(or C:\WINNT)do not need to be modified.
Otherwise, modify the two parameters as shown in Figure 4.5.2-5 and
Figure 4.5.2-6.
590
SECTION 4Online Operation
591
SECTION 4Online Operation
592
SECTION 4Online Operation
593
SECTION 4Online Operation
594
SECTION 4Online Operation
After all configurations are completed, user can see the current date data
in terminal window. Otherwise, without receives the satellite signal,
because the location of mushroom head is bad, so the higher the position
is, the more effective the satellite signal will be.
The notes for GPS control panel light as shown in Table 4.5-2.
Table 4.5-2 Notes for GPS Control Panel Light
FM197 takes local clock as standard clock when use FM197 for timing, and
take the rising edge of timing pause for minute as the start of each minute, then
keep high level 1 second and low level 59 seconds. The whole system takes
the rising edge of timing pulse for minute as the timing standard, so the
systems can timing in minute. User can use button SET, SELECT, UP and
DOWN in the front panel of FM197 to modify timing clock in real time when
master timing HUB not attach GPS.
1. Connection method
(1) Device connection
595
SECTION 4Online Operation
596
SECTION 4Online Operation
FM197’s
(master)
Pins RS485-RS232 communicator Server-RS232
communication
interface 3-16
1 NC RS485 NC NC
communication
negative
597
SECTION 4Online Operation
FM197’s
(master)
Pins RS485-RS232 communicator Server-RS232
communication
interface 3-16
terminal
RS485 RS485
2 communication communication RS232(T) RS232(R)
positive terminal positive terminal
RS485
3 communication NC RS232(R) RS232(T)
negative terminal
4 NC NC NC NC
6 NC NC NC NC
8 NC NC NC NC
9 NC NC NC NC
598
SECTION 4Online Operation
After right connect FM197 and server, the received 9 bytes data will be
shown below the timing state window, and above it shows the time for
server timing. In MCSV, the standby server’s clock signal ranks below the
master server’s, so in fact only the master server receives FM197 signal.
(3) Connect FM197 and FM161E-48-SOE
FM197 timing HUB sends timing signal to FCS’s I/O module through
timing communication cable, which composed by one UTP cable and one
DB9 connector, one end of the cable connects clock pulse outputs
(communication interface 3-16) of FM197 timing HUB, and the other
connects terminal 31 and 32 in FM131A of FM161E-48-SOE.
The connections of cable as shown in Table 4.5-4 (the pins subject to DB9
connecter), NC signify unconnected.
Table 4.5-4 Cable Connections
FM197(master-standby )communication
Pins FM161E-48-SOE/FM131A
interface 1 and 3-16
1 NC /
4 NC /
599
SECTION 4Online Operation
FM197(master-standby )communication
Pins FM161E-48-SOE/FM131A
interface 1 and 3-16
6 NC /
8 NC /
9 NC /
600
SECTION 4Online Operation
1 NC NC
4 NC NC
6 NC NC
8 NC NC
601
SECTION 4Online Operation
• Master timing HUB will automatic reset if it doesn’t send timing message in
about 4 seconds.
• The master-standby light in front panel blinks every other second when the
master HUB using local clock.
2. Configure FM197
(1) Configure FM197’s master-standby state
Local clock circuit generates the standard clock of FM197 timing HUB,
user need to configure the master-standby of FM197 timing HUB through
No.1 of dial switch S1 on FB197 panel, the state OFF for master and ON
for standby. The alone FM197 must set to master, but in cascade, set the
level 1 for master and others for standby.
• To modify the master-standby state and the standard clock are not allowed,
so the dial switch S1 is placed in FM197 in case of misoperation.
The master-standby light in the front panel of FM197 timing HUB stands for
master-standby’s state. After power up, the meanings of the light can be shown
in Table 4.5-6.
602
SECTION 4Online Operation
User should set the standard clock by No.2 of dial switch S1 on FB197
panel when taking FM197 as the master timing HUB, OFF for attach GPS
and ON for generate by local clock circuit. The set is invalid when FM197
is taken as standby timing HUB.
• To modify the master-standby state and the standard clock are not allowed,
so the dial switch S1 is placed in FM197 in case of misoperation.
User can set time through time buttons in the front panel when the master
timing HUB with-out attached GPS but local clock to create standard
clock.
The method for set time is like following:
After pressing button SET to enter set state, choose time unit by button
SEL. Press SEL each time in accordance with the blink time unit in digital
display move 1 unit to the right. Choose the time unit, and then set the
right value through UP and DOWN. After all finished, press SET again to
make the set time effective, then quit the set state and the digital display
recovers to the normal time state.
• In order to unify the time, to set and adjust time is permitted only when
master timing HUB without attaches GPS, and system will not in response
to the time set for standby timing HUB.
• Press SET to set state, after set well, presses SET again to confirm and
quit the set state, otherwise, system will keep waiting.
• System will ignore the time that is less than second after the set effective
because the time’s minimum unit is second.
• User could set the range of year between 2000 and 2099, other time unit is
603
SECTION 4Online Operation
604
SECTION 4Online Operation
• The extra –F indicates FM197 timing, and it is a must term. It is GPS timing
without this parameter.
• Add -D stand for showing timing state window on running server, and the
window is used for judging the data. It is needed when timing is wrong.
• Logout and restart server program are needed after modify files.
FM197 timing HUB attaches GPS as standard clock, and timing FM197 during
the whole second. FM197 timing HUB adopt the rising edge of timing pulse for
605
SECTION 4Online Operation
minute as each minute’s starting point, then keep high level 1 sec. and low
level 59 sec., so the whole system will be based on the rising edge of FM197
timing pulse for minute and it will be timing in the whole second.
1. Connection method
(1) Connected equipment
606
SECTION 4Online Operation
The No.2 communication interface in rear panel can be regard as the input
of attach GPS standard clock, only when FM197 timing HUB act as
master timing HUB.
• The cascade distance between GPS and timing HUB is no more than 1.5m,
and minute pulse is used for timing, so the whole timing system will be
timing in one minute. When standard clock generated by attach GPS,
master HUB will automatic reset if it doesn’t receive clock pulse in 4
seconds, the clock digital displays tube in front panel blinks.
607
SECTION 4Online Operation
1 NC NC
2 RS232(T) RS232(R)
3 RS232(R) RS232(T)
4 NC NC
6 NC NC
8 NC NC
FM197 timing HUB sends timing signal to FCS’s I/O module through
timing communication cable, which composed by one UTP cable and one
DB9 connector, one end of the cable connects clock pulse outputs
(communication interface 3-16) of FM197 timing HUB, and the other
connects terminal 31 and 32 in FM131A of FM161E-48-SOE.
The connections of cable as shown in Table 4.5-8 (the pins subject to DB9
connecter), NC signify unconnected.
Table 4.5-8 Cable Connections
FM197 (master-standby)
Pins FM161E-48-SOE/FM131A
communication interface 1,3-16
1 NC /
4 NC /
6 NC /
8 NC /
9 NC /
609
SECTION 4Online Operation
4. FM197’s cascade
FM197 (master)
FM197(standby )communication
Pins communication interface 1
interface 2
and 3-16
1 NC NC
4 NC NC
610
SECTION 4Online Operation
FM197 (master)
FM197(standby )communication
Pins communication interface 1
interface 2
and 3-16
6 NC NC
8 NC NC
• Master timing HUB will automatic reset if it doesn’t send timing message in
about 4 seconds.
• The master-standby light in the front panel blinks every other second when
the master HUB using local clock.
611
SECTION 4Online Operation
2. Configure FM197
(1) Configure FM197’s master-standby state
GPS generates the standard clock of FM197 timing HUB, user need to
configurate the master-standby of FM197 timing HUB through No.1 of dial
switch S1 on FB197 panel, the state OFF for master and ON for standby.
The alone FM197 must set to master, but in cascade, set the level 1 for
master and others for standby.
• To modify the master-standby state and the standard clock are not allowed,
so the dial switch S1 is placed in FM197 in case of misoperation.
The master-standby light in the front panel of FM197 timing HUB stands
for master-standby’s state. After power on, the meanings of the light are
shown in Table 4.5-10.
Table 4.5-10 Notes for Master Light
User should set the standard clock by No.2 of dial switch S1 on FB197
panel when taking FM197 as the master timing HUB, OFF for attached
GPS and ON for generated by local clock circuit. The setting is invalid
when FM197 is taken as standby timing HUB.
(3) HUB’s internal receive settings
612
SECTION 4Online Operation
613
SECTION 4Online Operation
• The extra –F indicates FM197 timing, and it is a must term. It is GPS timing
without this parameter.
• Add -D stand for appear timing state window on running server, and the
window is used for judging the data. It needed when timing wrong.
• Logout and restart server program are needed after modify files.
4. Configure GPS
614
SECTION 4Online Operation
Multi-domain system timing is divided into FM197 timing without GPS, GPS
timing, FM197 timing or GPS+FM197 timing.
615
SECTION 4Online Operation
• Take the master server in minimum domain as time standard for timing in
multi-domain system.
Example: system contains two domains, the project names are “unit 1 control
system” and “unit 2 control system”. The two projects will be created in ES of
domain 0 and domain 1, the project names are “unit 1 control system” and “unit
2 control system”, grouping the two projects in Domain Setting, and allocating
project “unit 1 control system” as domain 0 and project “unit 2 control system”
as domain 1. Configuration of project “unit 1 control system” is finished in
domain 0 ES, so project “unit 2 control system” may not contain configuration
contents, it only needs to create project. Configuration of project “unit 2 control
system” is finished in domain 1 ES, so project “unit 1 control system” may not
contain configuration contents, it only needs to create project. After working,
domain 1 which is project “unit 2 control system” ’s timing will take master
system of domain 1 as standard clock.
616
SECTION 4Online Operation
4.5.3 NOTICES
4.5.3.1 Notes of Using Server
617
SECTION 4Online Operation
• When the communication tag can not be found in main control while the
server starting, it will tip and generate files under “server install
catalog\Macs\”.
Corresponding
Tag type
communication tag number
HSPID 48
HSSCS 37
HSALGMAN 24
HSDLCTRL5 37
HSCSLAVE5 18
HSVALVE5 12
SGC 10
SSB 11
SLC 5
618
SECTION 4Online Operation
619
SECTION 4Online Operation
warning dialog is equal to the number of station IO. Why? And how? as
shown in Figure 4.5.3-1:
After that, server cannot get any data in station IO. Then examine
drwtsn32.log and see error messages as the following:
Application exception occurred:
App: (pid =1168)
When:2007-10-20@09:09:00.733
Number of Processors: 2
Service Pack: 4
621
SECTION 5
Special Topics
623
SECTION 5Special Topics
624
SECTION 5Special Topics
The tags which can generate the audible alarm include 5 categories: AI,
AM, DI, DM, PI.
Digital (DI, DM): only needs 1 audio alarm file, and use the tag name
directly:
625
SECTION 5Special Topics
After the audio alarm files completed recording, please copy these files to
the start directory of OPS for online calling. The default path
is ..\MACSV_OPS\ start\, as shown in Figure 5.1.1-3.
Besides the configurations above, you also need to have sound card
and speaker, and setup them correctly in OPS.
Then, the system will automatically deal with audible alarm tags, sound
wave is played out through the sound card and speaker, and the interval
of continuous alarm is 1 second.
You can change the WAV files without restarting the OPS.
626
SECTION 5Special Topics
There are five WAV files provided by default at the directory “OPS software
installation folder\start\”, as shown in Figure 5.1.2-2:
627
SECTION 5Special Topics
Modify the contents of this file to set WAV files. Without specified WAV files, it
will use these default wav files for alarming.
ITEM Description
Amount of audible alarm conditions, the number
is according to the following items you have set,
[COUNT] NUM=5 here is 5, the operator will find configuration
conditions in the following sub-items from
[ALARM1] to [ALARM5].
628
SECTION 5Special Topics
ITEM Description
The station number of the native station that use
STATION=10
the a.wav.
The tag name that use the WAV file, it also can
be the beginning letters of the tag name, then
TAGNAME=aaa
system will use the WAV file for the alarm tags
which confirm with these beginning letters.
WAV=b.wav
STATION=11
The settings of ALARM2 to ALARM5 are similar
[ALARM2]
to ALARM1 which is shown above.
TAGNAME=bbb
TAGTYPE=DM
In a project, you can flexibly configure the alarm voice according to station
number, tag name or tag type. The priority of these three conditions from
higher to lower is tag name, station number, tag type.
When the tag has the alarm event, it will choose the audible WAV file in the
item which has the most coincidence item to play, Besides, If there is no items
coincide, it will play the latest audible WAV file listed in this file. If there is still
no items coincide, it will play the default WAV files provided by default.
629
SECTION 5Special Topics
If there is such file in the start directory, you must configure the corresponding
items in the file, or there will be no alarm information of the pointed domain in
the alarm pages of the operator online systems.
ITEM Description
BEGIN Keyword, start the configuration
11
The alarm in station 11 will alarm normally,
630
SECTION 5Special Topics
ITEM Description
not filtered.
The logical relationship is OR between the station number filter and the tag
name filter.
That is to say: alarm tags listed in the TagName section will alarm, no matter
their station numbers are listed in the Station section or not.
Note: For the network node, whether listed here or not, their alarm will not be
filtered.
631
SECTION 5Special Topics
Item: DV
Domain: 0
632
SECTION 5Special Topics
Increment: 1
Then set the Check Limit, the default range is the limits recorded in the
corresponding database. If you want different prompt in accordance with
the tag value, write as the following format:
Reconfirm message of increase + 0110 + Reconfirm message of
decrease. To be specific, when you click the button to increase the tag
value, then popup the left string before 0110; when you click the button
to decrease the tag value, then popup the right string after 0110.
string, you can see the tag value change from 0 to 1.Then, click the button
again, as shown in Figure 5.3-4, the same as the right string, the tag value
change from 1 to 0.
634
SECTION 5Special Topics
635
SECTION 5Special Topics
636
SECTION 5Special Topics
Second, in line 1, set the page name you want display at the beginning,
set sysdevice.hsg, and set the position of this page, then choose 1 for
The Number of popup window. Line 2 is done as line 1, here will not go
further on it.
Third, choose Do you want to assign the size automatically?, then click
OK at the bottom of this window, there is a prompt shown in Figure 5.1.2-3,
click OK. It is to prompt you to restart the OPS application.
637
SECTION 5Special Topics
638
SECTION 5Special Topics
Refer to the step 2 of Situation No.1 to set Advanced Settings. Set the
Total Number of Basic Graph according to supervision needs, and
adjust Window Position for each screen. Assign the top-left coordinate,
and the bottom-right coordinate according to the resolution and Page size.
Choose Do you want to assign the size automatically?, all basic
graphs will be even distributed. Without chosen of Do you want to assign
the size automatically?, all basic graphs will be distributed according to
the coordinates.
After set as the above, restart the OPS. Only the main screen will display
the menu bar, and the other screen will not display the menu bar.
639
SECTION 5Special Topics
640
SECTION 5Special Topics
Dbedit.db
Database
Click the button to open the database editor, open the tags table of AI,
AO, DI, DO, PI, PO, AM, DM etc., export these database to a specific file
respectively. Take AI as example, select command “data operation”
under menu “system” in database configuration window, open dialog box
“select window style of data”, and select AI in type name list, click button
“select all”, then all items of AI will be displayed on the bottom of the dialog
box, as shown in Figure 1.5-3.
641
SECTION 5Special Topics
Click button “OK”, and open dialog box “data entry - AI”, click “data export”,
then the saving dialog box is displayed, as Figure 1.5.4 shows, save the
exported data as file with suffix “.txt”.
642
SECTION 5Special Topics
643
SECTION 5Special Topics
Dbedit.db
Copy dbedit.db file in the installation directory (as shown in Figure 5.1.2-4)
to project directory\HSDB\, and overwrite the original file.
Delete the files with the suffix .log in project directory \HSDB\, as shown in
Figure 5.1.2-5.
644
SECTION 5Special Topics
Database
645
SECTION 5Special Topics
646
SECTION 5Special Topics
647
SECTION 5Special Topics
648
SECTION 5Special Topics
SysLibCallback.lib
SysLibSocketsForLinux.lib
HSNetvarHSIE.lib
Or you can add these four libraries automatically by Build or Rebuild all
in Project menu. Check the additional library in the Library Manager.
3. Add network variable list
Right click on the sub node Global Variables of the Resources tree, as
shown in Figure 5.1.2-4, select Add Object… in the Properties popup
window, click the button Add network, as shown in Figure 5.1.2-5.
649
SECTION 5Special Topics
User can set any List identifier value, range from 0-65535. List
identifier in different global network variable list should be different. The
List identifier of the network variable lists in pairs both in the sender
project and the receiver project should be the same.
650
SECTION 5Special Topics
• In a plant project, when there are many FCS, you should generally
consider the List identifier to all the network variable lists in all of the FCS.
Forbid to have the same List identifier in different pairs of writable and
readable network variable lists.
651
SECTION 5Special Topics
peer-to-peer mode.
• Just set the destination station number for the writable nodes, the readable
need not.
When you click the Add network button, you had already added a
Connection 1(UDP).
Click Settings to open the popup window UDP Settings, as shown in
Figure 5.1.2-7, just modify the destination station number in Broadcast
address frame. For example, you want to send the network variable of the
No.10 to No.11, set 11 instead of the first 255 in Broadcast address, as
shown in Figure 5.1.2-7.
652
SECTION 5Special Topics
Keep the default port number in Port for all networks, 1202.
• The network variable groups with writing property can’t exceed 32.
The format of the network variable is the same as the normal variable, as
shown in Figure 5.1.2-9.
654
SECTION 5Special Topics
Copy the variable list as shown in Figure 5.1.2-9, make sure to copy all of
the variables in the list, keep the consequence, order, quantity and the
type completely the same. Open another receiver project, set up a
network variable list as shown in Figure 5.1.2-10, then paste the variables
you just copied into it, as shown in Figure 5.1.2-11.
655
SECTION 5Special Topics
656
SECTION 5Special Topics
• Keep the correspondence of the variables both in the writable list and the
readable list in different projects.
6. Compile
After you have finished defining the network variables, execute Project →
Rebuild/Rebuild All, you may find this error in the Messages window as
shown in Figure 5.1.2-12.
Add a network variable called in POU, and this error will prompt no more.
657
SECTION 5Special Topics
• If you want to remove the network variable function in a project after you
had added, please uncheck the UDP settings in Target Settings, then
execute Project → Clean All and Rebuild All before login and download
the project.
7. Restrictions
Transmission types
(2) Method of copy and paste keep exactly the same. If global variable list
definition is not same, network variable will not work properly.
(4) Previous MACSV 1.2 version, does not support the incremental
download function on global network variable list modification, that is,
when SNET variables running normally, the system will read and write
in accordance with the network variable reading and writing rule that
have been compiled, incremental download invalid.
(5) After MACSV 1.2 version (including MACSV 1.2), support incremental
download function on global network variable list modification.
658
SECTION 5Special Topics
(6) Recommend that: add margin of global network variable list at the
beginning of actual project configuration, that is add some spare REAL,
BOOL variables, in order to reduce the times of incremental download.
In this article, it will show you how to define a DP slave station, as two
situations like below:
DP slave station of Hollysys need to be export exp file first, and generate GSD
file. But DP slave station configuration from other manufacturers can use
offered GSD file directly.
659
SECTION 5Special Topics
Select Project → Export Project command in the menu bar, just export
the MACS Configuration component in the tree, as shown in Figure
5.7.1-3.
660
SECTION 5Special Topics
661
SECTION 5Special Topics
Right click on it, select Import… command in the menu bar, find the
hssm520.gsd file under MACSV_ENG\Target\Hollysys\PCBasedIO path,
as shown in Figure 5.7.1-7, and click Open to import this file.
663
SECTION 5Special Topics
When the GSD file mentioned above is imported successfully, the device
needs to be user-defined.
Choose the SM520 node in the Imported GSD file tree, right click on it,
and select Define Device command, as shown in Figure 5.7.1-8.
In the Productor Hollysys window, set a name for this device in Device
Name frame, select channels from the Module Name list above, click
Add, the selected item will add into the frame below, the No. is 0, as
shown in Figure 5.7.1-9.
664
SECTION 5Special Topics
Choose No. 0 line in the list below, click Define Module, then popup the
Module Byte Definition window as shown in Figure 5.7.1-10.
Select Channel Type and input the length in Length, for example WORD
and 1, click Add, it is add the first line in Input Area, click OK.
665
SECTION 5Special Topics
You can check the channel information in the bottom frame of Productor
Hollysys window, as shown in Figure 5.7.1-11.
666
SECTION 5Special Topics
Choose the SELF sub node of SM520 node in the Imported GSD file tree,
right click on it, and then select Device Property command, as shown in
Figure 5.7.1-12.
667
SECTION 5Special Topics
668
SECTION 5Special Topics
669
SECTION 5Special Topics
Choose the SELF sub node of SM520 node in the Imported GSD file tree,
you will see information in the left part, set the Description and select the
Channel File (refer to graph information) for this device, as shown in
Figure 5.7.1-15.
Click Save, the dialog box will be prompted as shown in Figure 5.7.1-16,
click OK.
Then, when you add I/O device to FCS, the new device appear in the
device list, as shown in Figure 5.7.1-17.
670
SECTION 5Special Topics
671
SECTION 5Special Topics
672
SECTION 5Special Topics
Add new variable group to store state detection variable(s) of the third
party device, and covert the device channel tags to AM or DM type
variables. Do not modify the variable groups and programs which system
created in Conmaker file automatically, such as Global_Variable_SysDev.
Export the variable group and program of third party device (exp file), so
that user can import them rapidly after hardware change.
After above treatment, system can compile all normally, communication
information of third party DP device as AM/DM type variables can be displayed
on the graphics. If user do not want to add part of the intermediate variables to
AM/DM database of Database, you can place the intermediate variables
horizontal side-by-side, or insert space, e.g.: “DM01:BOOL;” to “DM01:
BOOL;” etc.
673
SECTION 5Special Topics
For a computer:
Press F2(or Delete) when booting and enter BIOS menu, select
Legacy Diskette A item, change original value 1.44/1.25MB (see
Figure 5.7.2-1) to Not Installed (see Figure 5.7.2-2).
674
SECTION 5Special Topics
675
SECTION 5Special Topics
press F2(or Delete) when booting and enter BIOS menu, select Drive
item value CD-ROM Reader, press Enter and enter sub menu, set
Drive Type to OFF.
• Since hard disk now use the SATA interface, only the CD-ROM device use
IDE interface, so IDE controller can be disabled in some kinds of
computers.
• Please do not install the anti-virus software in the same directories of the
MACS and the historical data storage, in order to prevent file(s) being
locked and result of the failure of data access and high computer load.
676
SECTION 5Special Topics
The packed log files have various types, including server log files, server
history data, ES log files and Windows system log, the functions of these
packed log files are shown as below.
Log file of the server: the Server log files except history data.
Historical data of the server: the Sever data files of the history data
tags.
After packing, a folder named “log file” will be generated automatically under
the folder of LogPacker. Exe for saving packed content.
The steps of using log packer and the information of related log files are
described as below:
677
SECTION 5Special Topics
678
SECTION 5Special Topics
Step 2. After Selecting packed files, you can click “Start Pack” to
generate packed files, the tip dialog box is shown in Figure
5.9.3.
• Please close the browsing log folder before packing, otherwise packing will
fail.
679
SECTION 5Special Topics
Step 3. Click “OK” to confirm the operation, Log File will be generated
in the same directory as “LogPacker.exe”, as shown in
Figure5.9.4.
Step 4. If you need to delete packed log files, click “Cancel Pack”, as
shown in Figure5.9.5.
680
SECTION 5Special Topics
History Data
.DAT* × √ × ×
Log
Task .LOG √ × × ×
Log File
of Sever Event
A .LOG √ × × ×
Processing
Time
Synchronizat .LOG √ × × ×
ion
Diagnosis .LOG √ × × ×
ES Log
Comaker Log .LOG × × √ ×
File
681
SECTION 5Special Topics
In our example, the referenced tag in domain No. 0 is AM001, AM002, AM003
and be referenced tag in domain No. 1 is D0AM001, D0AM002, D0AM003, as
shown in Figure 5.10-1 and Figure 5.10-2
682
SECTION 5Special Topics
Step 2. The edition function of control table is shield in the version after
MACSV5.2.5B. Please modify configuration file if you want to
edit control table. The path of configuration file is
C:\WINDOWS\DB_Env.INI, please modify [CtrlTab] Enable to 1
whose default value is 0, as shown in Figure 5.10-3
683
SECTION 5Special Topics
control table, it is not recommended to open if you don’t edit the control
table..
Step 3. Defined the control table in domain No.0, which is the current
project in System Management, as in our example, the domain
No of project test is 0, the domain No of project test1 is 1, as
shown in Figure 5.10-5 If the project shown in System
Configuration is not the control table to be edited, when you
login, the control table is nor the one to be edited..
684
SECTION 5Special Topics
Click button to edit the control table after login successfully, as shown
inFigure 5.10-6. Select domainref as the first layer in control table, and the
second layer dr_TagTab must be selected, click OK to finish, as shown
inFigure 5.10-7.
685
SECTION 5Special Topics
Step 4. Type in CCte Pnt Num, MCte Pnt Num, CTed Dm No in the first
layer, as shown in.Figure 5.10-8
CCte Pnt Num is the tag number currently referenced, MCte Pnt Num is the
maximum tags can be referenced in current project, CTed Dm No is the
domain No of referenced project.
In out example, current project is project with domain No.0, and is referenced
by project with domain No.1, so the CTed Dm No is 1.
686
SECTION 5Special Topics
Step 5. Type the tag name of domain No.0 which is source domain and
tag name of domain No.1 which is destination domain in Other
DM PN,This DM PN, as shown in Figure 5.10-9
Please edit the first layer before editing the second layer, or the second layer is
gray and cannot be edited. The tag names can be different, but the largest tag
number can be referenced is 20.
687
SECTION 5Special Topics
688
SECTION 5Special Topics
The maximum number of reference tag is 20. Please modify the Max Tags if it
exceeds 20, as shown in Figure 5.10-13
689
SECTION 5Special Topics
690
SECTION 5Special Topics
The parameters of four modules should be defined after being added, which
are named status, control, In xx Words, Out xx Words, as shown in Figure
5.11-3and Figure 5.11-4
691
SECTION 5Special Topics
692
SECTION 5Special Topics
• The length of added read or write module cannot be longer than 1000, and
the total length cannot be longer than 1200.
Save it and then set the properties of device channels, as shown in Figure
5.11-5. For example, the definition of NO.2 Modbus slave station, set reading
60 tags, type 2 in device No. and 45001 in address, and so on.
693
SECTION 5Special Topics
Open SM020Config tool to select the project, as well as the station in which
the SM020 module be defined. In the example project, the length of empty
694
SECTION 5Special Topics
• You should define the same tags with the space you set up
• The tag description can be empty, which will not affect the generation of
algorithm.
• Tag can be named casually. In the example project only 10 tags be added,
but in actual configuration, enough tags should be added to match the
added module, otherwise the project cannot be saved.
Save it and click the red arrow to generate algorithm. It will enter CodeSys
automatically so that the corresponding algorithm can be found.
• The SM020Config tool can be ignored if you familiar with algorithm code.
695
SECTION 5Special Topics
Problem Description
When sending or receiving the data package as multiple frames, if the length
of a complete communication variable is longer than 1 byte such as WORD,
REAL, etc., and it is just in subcontracting, , like some bytes are in Package i
and some in Package i+1. When the communication variable changes, it may
receive an intermediate value, and the data package will be incomplete.
Solution:
Solution:
Align Input and Output data is in the order of Bits first and then
the Words;
Example
According to the OUT 15 WORDS, each package of the output data is 15*2=30
bytes. For example, if the actual configured variable is 8 bits, so the total length
of output data is 31 bytes which exceeds the maximum length for each
package 30 bytes. Consequently, this data will be sent in two packages, which
is multiple-frame sending.
The first package with length 30 bytes includes the following data: 8 digital
variables with length 1 byte, and then 29 bytes analog variables. The first
package is end at the first byte of the fifteenth word.
The second packet sends the second byte of the fifteenth word.
696
SECTION 5Special Topics
As the configuration shown in the above figure, the initial address of word-type
variable is 1, which will make the variable with 15 words sending in two
packets and the data is not completed. In this case, when the data changes,
and intermediate value will appear. To avoid the appearance of intermediate
value, please configure it as following:
Add a module ‘write 8 bits’ to make the word type variable ‘write 15 words’ is
allocated in address 2. All the word-type variables are allocated in even
address.
The first packet includes 2 bytes digital variables and the former 14 words.
So as to make sure the 2 bytes data of each word-type variable is in same data
packet, and can be sent at the same time completely.
697
SECTION 5Special Topics
Solution:
698
SECTION 5Special Topics
699
SECTION 5Special Topics
700
SECTION 5Special Topics
Delete the ioflag.ini and io.dat files in …\project name\station No., recompile in
System Configuration.
701
SECTION 5Special Topics
The introduction includes the detail description about the function and meaning
of the current key.
702
SECTION 5Special Topics
703
SECTION 5Special Topics
704
APPENDIX 1
Function Blocks
1.1 HS_MathLogic.lib
This library contains the mathematic function blocks which are used to
simulate non-linear function as well as hardware, to perform accumulation or
calculation, and to detect signal switch.
1.1.1 HSACCUM
Alias
Flow Accumulation
Pins
Initial
Input Data Type Description Supplement Persistent
Value
RS BOOL Reset 0 No
Output
Internal Parameters
705
APPENDIX 1 Function Block
Data Initial
Parameter Description Supplement Persistent
Type Value
1.797693 Yes
LREA
MS Total Accumulation 1348623
L
2E308
LREA Yes
MC Instrument Faktor 1
L
bPositiveAcc Yes
BOOL Accumulation Mode 0
um
Output Features
AV (k 1) MS , AV (k ) AV (k 1) I1(k ) MC ,
I1 0 SS 0
Positive Mode
bPositiveAccum=1
AV (k 1) MS , AV (k ) AV (k 1) I1(k ) MC MS ,
I1 0 SS 1
RS 0
AV (k ) AV (k 1) I1(k ) MC ,
AV (k 1) MS
SS 0
Total Mode
bPositiveAccum=0
AV (k ) AV (k 1) I1(k ) MC ,
AV (k 1) MS
SS 1
RS (k 1) 0, RS (k ) 1 LR : AV (k 1); AV (k ) : IV ; SS : 0;
Description
This function block is designed to accumulate analog input. The block can be
set to positive accumulation. It will send a completion signal and start the
accumulation again automatically when it accumulates to the total
accumulation. It can also restart this process with the reset pin RS.
706
APPENDIX 1 Function Block
When MS is reached, for positive mode, the accumulation will restart on the
basis of the accumulation result subtracting the preset total accumulation; for
total mode, it will restart on the basis of the current accumulation result. When
RS changes from 0 to 1, the accumulation result is recorded by LR
( LR AV (k 1) ), and the output is set to the initial value ( AV (k ) IV ), and SS
is set to 0.
• When you use this function block, you must set MC correctly in
accordance with the processing cycle and the time unit. For example, in
the case of accumulation of flow through a coal feeder, suppose the
processing cycle is 0.5S and the flow unit is T/h, then
MC 0.5 / 3600 1.3888888888888888888888888888888e 4 .
Example
1.1.2 HSCHARC
707
APPENDIX 1 Function Block
Alias
Broken Line
Pins
Initial
Input Data Type Description Supplement Persistent
Value
Output
1: Number of
breaking points,
Fault
ERR BYTE 0 2: X is not No
Indication
incremental,
3: Illegal input
Internal Parameters
Initial
Parameter Data Type Description Supplement Persistent
Value
Number of Breaking
PS UINT 2 1 PS 11 Yes
Points
Point number
X REAL Values of X1 to X11 0 Yes
is up to 11.
Point number
Y REAL Values of Y1 to Y11 0 Yes
is up to 11.
Output Features
708
APPENDIX 1 Function Block
I1 3.402823466 E 38 or
AV (k ) AV (k 1), ERR 3
I1 3.402823466 E 38
Error
Processing PS 2 or PS 11 AV (k ) AV (k 1), ERR 1
AV (k ) (Y [ PS ] (Y [ PS ] Y [ PS 1]) *
X [ PS ] X [ PS 1]
( I1(k ) X {PS ] /( X [ PS ] X [ PS 1]))
Normal I1 X [ PS ]
X [ PS ] X [ PS 1] AV (k ) Y [ PS ]
Description
709
APPENDIX 1 Function Block
• When you use this function block, you must set the parameters correctly.
Ensure that the elements of X are sorted in ascending order and the
number of break points is set within the allowable interval.
Example
In power plant, it needs select different density for saturated steam and water
under different pressure, in order to calculate the water level in PID loop. Or in
another example, user selects different flow rate under different turbine power.
This function block is used for this art calculation. The following diagram shows
an example of the application.
1.1.3 HSCMP
Alias
Comparator
Pins
710
APPENDIX 1 Function Block
Output
DV BOOL Output 0 No
Internal Parameters
Data Initial
Parameter Description Supplement Persistent
Type Value
Greater or Yes
CGE BOOL Operation 3 0
equal
Output Features
I1 I 2 DV 1
CEQ 1
I1 I 2 DV 0
CLE 1 I1 I 2 DV 1
711
APPENDIX 1 Function Block
I1 I 2 DV 0
I1 I 2 DV 1
CGT 1
I1 I 2 DV 0
I1 I 2 DV 1
CLT 1
I1 I 2 DV 0
Description
• By using this function block, you must pay attention to the priorities of the
comparison operators. If you choose an operator with a low priority, then
the values of all operators with higher priorities must be set to 0. For
example, if you want judge whether I1 is greater than I2, you must set
CGT=1, and set CEQ, CNE, CGE, and CLE to 0.
Example
In a power plant, this block can be used for comparison in different cases. The
following diagram shows the logic for judging whether the primary blower inlet
baffle is closed. If the opening of baffle is less than 3, it is deemed that the
baffle is closed.
1.1.4 HSD
712
APPENDIX 1 Function Block
Alias
D Trigger
Pins
IN BOOL Input 0 No
Output
Output Features
RS (k ) 0 DV (k ) 0
Other cases DV (k ) DV (k 1)
713
APPENDIX 1 Function Block
Description
1.1.5 HSDCSSUM
Alias
Pins
Initial
Input Data Type Description Supplement Persistent
Value
Digital to be
I1 BOOL 0 No
monitored
RS BOOL Reset 0 No
Output
Internal Parameters
Data Initial
Parameter Description Supplement Persistent
Type Value
0: Rising-Edge
Statistic
SL BYTE 0 1: Falling-Edge Yes
Mode
2 Both
714
APPENDIX 1 Function Block
Output Features
SL 0
I1(k 1) 0
RB 1
SL 1 AV (k ) AV (k 1) 1
I1 I1(k 1)
I1(k 1) 1
SL 2
RS 1 AV (k ) 0
Description
1.1.6 HSDOWN
Alias
Falling-Edge Trigger
Pins
Initial
Input Data Type Description Supplement Persistent
Value
715
APPENDIX 1 Function Block
IN BOOL Input 0 No
Output
Output Features
IN (k ) 0, IN (k 1) 1 OUT (k ) 1
Description
This function block detects the falling-edge of digital input. It sets the output to
1 (return to 0 after a cycle) if and only if a falling-edge of signal occurs. In other
cases, it sets OUT=0.
1.1.7 HSDTIMESUM
Alias
Pins
Input to be
IN BOOL 0 No
monitored
RS BOOL Reset 0 No
716
APPENDIX 1 Function Block
Output
Its format is
AV REAL Current Value 0.00 decided by No
SOF.
Internal Parameters
Data Initial
Parameter Description Supplement Persistent
Type Value
0: Second
1: Minute
Output Format 2 Hour
SOF BYTE 0 Yes
of AV 3:
Millisecon
d
0:
Accumulat
e for status 0;
RB BOOL Output Mode 0 Yes
1:
Accumulat
e for status 1.
Output Features
717
APPENDIX 1 Function Block
Description
The block has two outputs AV and AV1, both of them are accumulation results.
AV can provide result in different time formats, depending on the SOF
parameter set by the user. AV1 outputs directly in ms. When RS is set to 1, the
accumulation results AV and AV1 will be cleared for next accumulation cycle.
1.1.8 HSEXPT
Alias
Exponentiation
Pins
718
APPENDIX 1 Function Block
Output Features
Output Formula
HSEXPT X y
Description
1.1.9 HSFILTER
Alias
Digital Filter
Pins
Digital to be No
IN REAL 0.00
monitored
Output
Internal Parameters
719
APPENDIX 1 Function Block
0: Mean;
FM ENUM Filter Mode 0 Yes
1: Median.
Output Features
FM 0 AV (k ) ( IN (k ) IN (k 1) ... IN (k ( IS 1))) / IS
IS samples are
sorted by value,
1/3 higher
values and 1/3
FM 1 AV (k ) temp /( IS / 3) lower values
are discared.
The sum of rest
1/3 values is
the temp.
Description
This function block provides arithmetic mean filtering and median filtering that
are commonly used in software filtering technique. The user can choose filter
mode by setting the parameter FM. 0 indicates arithmetic mean filtering, which
means arithmetic average of IS samples; 1 indicates median filtering, which
means the sum of 1/3 median values in IS samples. The maximum allowable
value of IS is 10 in this block.
1.1.10 HSONEFOLD
Alias
One-Dimensional Interpolation
Pins
720
APPENDIX 1 Function Block
Value
Output
Internal Parameters
Data Initial
Parameter Description Supplement Persistent
Type Value
Output Features
I1 XV [VN ]
AV [k ] AV [k 1]
I1 XV [1]
XV [1] I1 XV [VN ]
I1 XV [i] and
XV[i] is the
minimum of the AV [k ] YV [i 1] (YV [i] YV [i 1] ( I1 XV [i 1]) /( XV [i] XV [i 1])
values which are
greater than I1.
XV [i] XV [i 1]
721
APPENDIX 1 Function Block
Description
• When you use this function block, you must set the parameters correctly.
Ensure that the elements of X are sorted in ascending order and the
number of break points is set within the allowable interval.
1.1.11 HSPOLY
Alias
Polynomial
Pins
722
APPENDIX 1 Function Block
Output
Internal Parameters
Data
Parameter Description Initial Value Supplement Persistent
Type
Output Features
Output Formula
Description
Example
Suppose the function to be fitted is f ( x) sin( x), x [0, ] , then the best square
approximation function 1 span1, x, x 2 is
( x) 0.050454 1.312215 x 0.417691x 2 .
1.1.12 HSQOR
723
APPENDIX 1 Function Block
Alias
Restricted OR
Pins
I1 BOOL Input 1 0 No
I2 BOOL Input 2 0 No
I3 BOOL Input 3 0 No
I4 BOOL Input 4 0 No
I5 BOOL Input 5 0 No
I6 BOOL Input 6 0 No
I7 BOOL Input 7 0 No
I8 BOOL Input 8 0 No
Output
Internal Parameters
724
APPENDIX 1 Function Block
Data Initial
Parameter Description Supplement Persistent
Type Value
0: equal or
greater
SL BOOL Mode 0 Yes
1: only equal
Output Features
SL 0, counter S 9
DV 1
Counter is the number of inputs,
SL 1, counter S 9
which are equal 1.
Other cases DV 0
Description
This function block judges whether the number of inputs which are equal 1
reaches the preset number (i.e. S9) in accordance with the mode SL.
Example
This block can be used for protection logic in engineering. For example, boiler
flame detection is divided into multiple layers. Each layer has 4 corners, and a
flame detector is deployed in each corner. Whether there is flame on a specific
layer can be judged with the logic algorithm "Select 3 from 4" implemented by
this function block. If there is no flame in three or more corners, it is deemed no
flame exists on that layer. In this case, you can set S9 =3 and SL=0. DV=1
means “No Flame”, and the "No Flame" protection logic will be triggered for
that layer.
1.1.13 HSRS
725
APPENDIX 1 Function Block
Alias
RS Trigger
Pins
Initial
Input Data Type Description Supplement Persistent
Value
Output
Reverse
RV BOOL Output 2 0 No
output of DV
Output Features
I2 1 DV (k ) 0, RV (k ) 1
I 2 0, I1 1 DV (k ) 1, RV (k ) 0
Description
726
APPENDIX 1 Function Block
I1 I2 DV RV
1 0 1 0
0 1 0 1
1 1 0 1
0 0 hold hold
Example
1.1.14 HSSLMTSUM
Alias
727
APPENDIX 1 Function Block
Pins
Initial
Input Data Type Description Supplement Persistent
Value
Analog to be
I1 REAL 0.00 No
monitored
0: normal
Analog Quality Bit to
I1DQ BOOL 0 Yes
be monitored 1: fault
RS BOOL Reset No
Output
Format is
AV REAL Current Value 0.00 decided by Yes
SOF.
Internal Parameters
Data Initial
Parameter Description Supplement Persistent
Type Value
0:second
1:minute
Output Format
SOF BYTE 0 Yes
of AV 2:hour
3:milionsecond
Output Features
728
APPENDIX 1 Function Block
LJ: Accumulation
AV (k ) AV (k 1)
Other cases
AV 1(k ) AV 1(k 1)
Description
This function block can accumulate the bad quality time of the analog to be
monitored. "Bad Quality" means the item I1DQ of the inputted analog is 1. You
can set the parameters AH and AL to perform simple over-limit quality
judgment for the analog input point. AV can output accumulation result in
different time formats, depending on the SOF parameter set by the user, while
AV1 directly in ms. When RS is set to 1, AV and AV1 will be cleared for next
accumulation.
1.1.15 HSSLOPE
Alias
Pins
729
APPENDIX 1 Function Block
Output
Internal Parameters
Data Initial
Parameter Description Supplement Persistent
Type Value
Numbers of
AP WORD 1 Yes
Calculation Cycles
Output Features
CT (k ) 0
AV (k ) (20 IN (k )
IN [k 4] IN [k 3]
10 IN (k 1)
CT (k ) AP IN [k 3] IN [k 2]
10 IN (k 3)
IN [k 2] IN [k 1]
20 IN (k 4)) /(100 AP TS )
SW 1 IN [k 1] IN [k ]
CT (k ) is
a
CT (k ) AP AV (k ) AV (k 1) CT (k ) CT (k 1) 1 counter
variable.
CT (k ) 0
IN [k 4] IN [k 3]
SW 0 AV (k ) 0
IN [k 2] IN [k 1]
IN [k ]
Description
730
APPENDIX 1 Function Block
This function block calculates the change rate (variation/access cycle) of the
input values in the present and 4 past access cycles, i.e., it calculates the
slope of the line with the present and 4 past points
Example
If you want to monitor the change rate of temperature per half hour, i.e.,
TS=0.5s, you can set AP (30 60) / 0.5 3600 .
1.1.16 HSTWOFOLD
Alias
Two-Dimensional Interpolation
Pins
Initial
Input Data Type Description Supplement Persistent
Value
Output
731
APPENDIX 1 Function Block
Internal Parameters
Data Initial
Parameter Description Supplement Persistent
Type Value
Output Features
I1(k ) XV [VN ] ,
I1(k ) XV [1] ,
I 2(k ) YV [VN ] ,
Z1[k ] ZV [i 1, j 1] ( ZV [i 1, j ] ZV [i 1, j 1])
I 2(k ) YV [1] ( I 2 YV [ j 1]) /(YV [ j ] YV [ j 1]);
and Z 2[k ] ZV [i, j 1] ( ZV [i, j ] ZV [i, j 1])
I 2(k ) YV [ j ] , ( I 2 YV [ j 1]) /(YV [ j ] YV [ j 1];
AV [k ] Z1[k ] ( Z 2[k ] Z1[k ]) /( XV [i ] XV [i 1]) ( I1 XV [i 1]);
I 2(k ) YV [ j 1] ,
I1(k ) XV [i ] ,
I1(k ) XV [i 1]
Other cases AV [k ] AV [k 1]
732
APPENDIX 1 Function Block
Description
733
APPENDIX 1 Function Block
• When you use this function block, you must set the parameters correctly, to
ensure that the elements of X and Y are in ascending order and the
number of break points is set within the allowable limit.
Example
Module_HSTWOFOLD :HSTWOFOLD:=(VN:=16,XV:=1,2,3,4,5,6,7,8,9,10,6(1
1),YV:=2,4,6,8,10,12,14,16,18,20,6(22),ZV:=8,14,20,26,32,38,44,50,56,62,6(6
8),10,16,22,28,34,40,46,52,58,64,6(70),12,18,24,30,36,42,48,54,60,66,6(72),
14,20,26,32,38,44,50,56,62,68,6(74),16,22,28,34,40,46,52,58,64,70,6(76),18,
24,30,36,42,48,54,60,66,72,6(78),20,26,32,38,44,50,56,62,68,74,6(80),22,28,
34,40,46,52,58,64,70,76,6(82),24,30,36,42,48,54,60,66,72,78,6(84),26,32,38,
44,50,56,62,68,74,80,6(86),28,34,40,46,52,58,64,70,76,82,6(88));
X1(1) 8 14 20 26 32 38 44 50
X2(2) 10 16 22 28 34 40 46 52
X3(3)
X4(4)
X5(5)
X6(6)
X7(7) 20 26 32 38 44 50 56 62
X8(8) 22 28 34 40 46 52 58 64
Suppose X=7.5,Y=2.5:
Z1 20 (26 20) (2.5 2) /(4 2) 21.5;
Z 2 22 (28 22) (2.5 2) /(4 2) 23.5;
Z Z1 ( Z 2 Z1) ( I1 X i 1 ) /( X i X i 1 ) 21.5 (23.5 21.5) (7.5 7) /(8 7) 22.5.
734
APPENDIX 1 Function Block
1.1.17 HSUP
Alias
Pins
Initial
Input Data Type Description Supplement Persistent
Value
IN BOOL Input 0 No
Output
Output Features
IN (k 1) 0, IN (k ) 1 OUT (k ) 1
Description
This function block detects the rising-edge of digital input. It sets the output to 1
(return to 0 after a cycle) if and only if a rising-edge of signal occurs. In other
cases, it sets OUT=0.
1.1.18 RANDOM
735
APPENDIX 1 Function Block
Alias
Random Generator
Pins
Initial
Input Data Type Description Supplement Persistent
Value
Output
Description
This function block is used to generate a random number within a limited range.
The generated number stays in interval [OB, OT], and the same sequence will
be produced by each restart of this block.
736
APPENDIX 1 Function Block
1.2 HS_TimeField.lib
This library contains the function blocks which are used to simulate real
process in the field, to implement control functionality, and to perform signal
processing.
1.2.1 HSCURVE
Alias
Spline
Pins
Output
Internal Parameters
Data Initial
Parameter Description Supplement Persistent
Type Value
Number of
PS USINT Breaking 1 1 PS 9 Yes
Points
TB 4294967295Minutes
TB DWORD Start Time 0 Yes
737
APPENDIX 1 Function Block
TE 4294967295Minutes
Upper Limit of
TL REAL 0.00 Yes
Output
Lower Limit of
BL REAL 0.00 Yes
Output
Output Features
TX TE TX TX TS T[i],T[i+1] are
the last two
S1 0, adjacent
TimeOut 0 TX TE , points of TX
TX TE on the time
TimeOut 1
K (i ) (Y (i 1) Y (i )) / axis. Y[i]
(T (i 1) T (i )), corresponds
to T[i], and
AV (k ) Y (i ) K (i )
Y[i+1]
((SS (k ) 1, SS (k 1) 0) TX TB (TX T (i )) corresponds
to T[i+1]. K[i]
or TimeOut 0
is the slope
( SS (k ) 1, RS (k ) 1) RS 0 between the
two adjacent
points.
738
APPENDIX 1 Function Block
Description
This block is used for set value control related to time. It means that the output
should be a specific value at a certain time after the operation began.
• When you use this function block, you must set the parameters correctly, to
ensure the elements of array T are in ascending order and the number of
break points is set within the allowable limit.
1.2.2 HSDEV
739
APPENDIX 1 Function Block
Alias
Differential
Pins
Differential Yes
KG REAL 1
Gain
Differential Yes
TC REAL 1
Time
Output
Output Features
Output Formula
KG ( IN (k ) IN (k 1)) TC AV (k 1)
AV (k )
(TS TC )
Description
This function block is used to calculate the differential of the input variable. The
formula in frequency domain seems like following:
KG S
AV ( S ) IN ( S )
1 TC S
740
APPENDIX 1 Function Block
KG ( IN (k ) IN (k 1)) TC AV (k 1)
AV (k )
(TS TC )
The following diagram describes the response of the differential function block
with step input.
Example
1.2.3 HSFOP
Alias
First-Order Inertance
Pins
Initial
Input Data Type Description Supplement Persistent
Value
741
APPENDIX 1 Function Block
Proportional Yes
KG REAL 1
Gain
Output
Output Features
Output Formula
KG TS IN (k ) TC AV (k 1)
AV (k )
(TS TC )
Description
This function block is often used to perform filtering for input signal or simulate
field objects. It is usually used with controller. The formula in frequency domain
seems like following:
KG IN ( S )
AV ( S )
1 TC S
KG TS IN (k ) TC AV (k 1)
AV (k )
(TS TC )
The following diagram describes the response of the differential function block
with step input.
742
APPENDIX 1 Function Block
1.2.4 HSFSMITH
Alias
Pins
Initial
Input Data Type Description Supplement Persistent
Value
Number of
LGT BYTE Lag Time 1 operation cycles, Yes
1 LGT 20
Output
743
APPENDIX 1 Function Block
Output Features
TC 0 AV (k ) IN (k LGT )
Description
KG
AV ( S ) (1 e LGT S ) IN ( S )
1 TC S
AV ( Z ) AV ( Z ) P( Z ) D1
Dx ( Z ) (1 Z LGT )
IN ( Z ) P( Z ) IN ( Z ) Z C1
TS TS
Where, C1 e , D1 KG (1 e TC )
TC
1.2.5 HSINTG
744
APPENDIX 1 Function Block
Alias
Integral
Pins
Set Value of No
TP REAL 0.00
Tracking
745
APPENDIX 1 Function Block
0:Negative Yes
AD BOOL Work Mode 0
1:Positive
Output
Output Features
Conditions
Output Formula Supplement
TS Mode
Description
KI
AV ( S ) IN ( S )
TI S
The differential equation is the formula in the table above, and for this
equation:
IN (k ) SP (k ) PV (k ), if AD 0
IN (k ) PV (k ) SP (k ), if AD 1
;
This function block has two work modes: Auto and Track. The priority of Track
is higher than the one of former. By Track mode, the block stops to calculate
and the output changes with TP. By another mode, that means TS 0 , the
output will be calculated according to the formulas in the table above. In this
case, the block will keep the output value if input ( sp pv ) is in the dead band.
746
APPENDIX 1 Function Block
Whatever in which mode, the change rate of output is limited under OTR.
AV (k ) AV (k 1) OTR if it exceeds the limit. The value of output is also
limited in the range [OB, OT].
1.2.6 HSLDLG
Alias
Pins
Output
Output Features
Output Formula
LGT TS BT BT
AV (k ) AV (k 1) KG IN (k ) KG IN (k 1)
TS LGT TS LGT TS LGT
747
APPENDIX 1 Function Block
Description
This function block is used for dynamic compensation in feed forward control.
It is usually used with controller. The formula in frequency domain seems like
following:
1 BT S
AV ( S ) IN ( S )
1 LGT S
The differential equation is the formula in the table above. The following
diagram describes the principle of this block.
1.2.7 HSLGCMP
Alias
Hysteresis
Pins
748
APPENDIX 1 Function Block
Output
Output Features
IN HL DV=1
IN LL DV=0
LL IN HL DV (k ) DV (k 1)
Description
This function block accomplishes the operation similar to the hysteresis effect
of relay. The output is set to 1 when it is greater than the upper limit and to 0
when it is smaller than the lower limit.
1.2.8 HSRAMP
Alias
Ramp
Pins
749
APPENDIX 1 Function Block
Output
Internal Parameters
Initial
Data
Parameter Description Valu Supplement Persistent
Type
e
Output Features
RST 0 or HD 1 AV (k ) AV (k 1)
D0 AV (k ) AV (k 1) IR TS If AV (k ) TL ,
HD 0 and
RST (k ) 1 and AV (k ) TL
RST (k 1) 0 D 1 AV (k ) AV (k 1) DR TS
If AV (k ) BL ,
750
APPENDIX 1 Function Block
AV (k ) BL
Description
This function block can output a ramp signal with a certain rate. It can generate
two type signals: positive ramp by DE=1 and negative ramp by DE=0. The hold
switch HD can suspend the calculation and keep the output value at last result.
When HD changes back to 0 from 1, the block will continue the suspended
calculation.
1.2.9 HSSOP
Alias
Second-Order Lag
Pins
Output
Internal Parameters
751
APPENDIX 1 Function Block
Data Initial
Parameter Description Supplement Persistent
Type Value
Output Features
KG cycle 2
a
(cycle TF ) (cycle TS )
cycle (TF TS ) 2TF TS
AV (k ) a IN (k ) b AV (k 1) c AV (k 2) b
(cycle TF ) (cycle TS )
TF TS
c
(cycle TF ) (cycle TS )
Description
This function block is often used to simulate field objects and it is usually used
with controller. The formula in frequency domain seems like following:
KG IN ( S )
AV ( S )
(TF S 1) (TS S 1)
Its differential equation is given in the table above. The following diagram
describes the response of the differential function block with step input.
752
APPENDIX 1 Function Block
1.2.10 HSSSMITH
Alias
Pins
Initial
Input Data Type Description Supplement Persistent
Value
753
APPENDIX 1 Function Block
Number of
operation
LGT BYTE Lag Time 1 Yes
cycles,
1 LGT 20
Output
Internal Parameters
Data Initial
Parameter Description Supplement Persistent
Type Value
Output Features
TS TS TS TS
( )
C1 e T 1 e T2
, C 2 e T1 T 2
TS TS
P(k ) C1 P(k 1) C 2 P(k 2)
T 1 (e T 1 1) T 2 (e T 2 1)
D1 IN (k 1) D2 IN (k 2) D1 KG
T 2 T1
AV (k ) P(k ) P(k ( LGT 1)) TS TS TS TS
KG (T 2 e (e 1) T 1 e (e T 1 1))
T1 T2 T2
D2
T 2 T1
Description
KG
AV ( S ) (1 e LGT S ) IN ( S )
(1 T1 S ) (T 2 S 1)
AV ( Z ) AV ( Z ) P( Z ) D1 Z D2
Dx ( Z ) (1 Z LGT ) 2
IN ( Z ) P( Z ) IN ( Z ) Z C1 Z C 2
TS
TS TS TS
( )
C1 e T 1 e T 2 , C 2 e T 1 T 2
TS TS
T 1 (e T 1 1) T 2 (e T 2 1)
D1 KG
T 2 T1
TS TS TS TS
D 2 KG (T 2 e (e 1) T 1 e (e 1))
T1 T2 T2 T1
Where, T 2 T1
1.2.11 HSTIMER
Alias
Timer
Pins
SS BOOL Start 0 No
RS BOOL Reset 0 No
Output
Internal Parameters
755
APPENDIX 1 Function Block
0: Basic Yes
1: Pulse Follow
2: Fixed-Width-Pulse
TT ENUM Timer Type 0
3: Lagged Set
4: Lagged Reset
Output Features
TT=0
TT=1
TT=2
RS 0 See the description.
TT=3
TT=4
TT=5
DV 0
RS (k 1) 0, RS (k ) 1
ALM 0
In this table: T TC TS
Description
This function block implements a variety of timing functions. Totally 5 types are
integrated in this block: Basic, Pulse Follow, Fixed-Width-Pulse, Lagged Set,
Lagged Reset, and Hold Lagged Reset. Their timing diagram seems like
following:
Type Basic:
756
APPENDIX 1 Function Block
From this diagram you can understand that the block stop timing and reset DV
if RS changes from 0 to 1. It waits for the next SS signal.
When SS changes from 0 to 1 and holds, DV will follow SS and hold for a pulse
in width of time T. If SS doesn't hold in state "1" long enough, DV will follow SS
to 0. Once the rising-edge of RS arrives, DV will be reset immediately.
Type Fixed-Width-Pulse:
757
APPENDIX 1 Function Block
When SS changes from 0 to 1, DV signal will rise to high level after time T and
then follow SS to 0. Once the rising-edge of RS arrives, DV will be reset
immediately.
After a rising-edge of SS occurs, the DV output will rise to high level after time
T and then hold, till the up-edge of RS arrives. After the DV output is reset, it
will not be set until the rising-edge of the next SS occurs, even if SS is high
level.
After a rising-edge of SS occurs, DV will rise to high level after time T and then
hold, till the rising-edge of RS arrives. After DV is reset, it will not be set until
the rising-edge of the next SS occurs, even if SS is high level.
• For backward compatibility, during the configuration, the timer type can be
represented with a figure in 0~5 or identified with an identifier. The
758
APPENDIX 1 Function Block
0: Basic TM_BS
2: Fixed-Width-Pulse TM_EW
Example
The following is the use case of Fixed-Width-Pulse and Lagged Reset timer in
steam drum.
1.2.12 OneStepLag
759
APPENDIX 1 Function Block
Alias
First-Order Lag
Pins
Output
Internal Parameters
Data Initial
Parameter Description Supplement Persistent
Type Value
The unit is
I UINT Time Constant of Lag 20 operation cycle, Yes
0 I 300
Output Features
Output Formula
760
APPENDIX 1 Function Block
b
k uk ( I 1) yk (k 1)
yk ( K ) TS
b
c
TS
Description
This function block is used to simulate field objects. The formula in frequency
domain seems like following:
k e I S uk ( S )
yk ( S )
bS c
The differential equation is given in the table above. The following diagram
describes the response of the differential function block with step input.
1.2.13 TwoStepLag
Alias
Second-Order Lag
Pins
761
APPENDIX 1 Function Block
Output
Internal Parameters
The unit is
operation
I UINT Time Constant of Lag 20 Yes
cycle,
0 I 300
Output Features
Output Formula
a b a
k uk ( I 1) (2 2
) yk (k 1) 2 yk (k 2)
yk ( K ) TS TS TS
a b
c 2
TS TS
Description
This function block is used to simulate field objects. The formula in frequency
domain seems like following:
762
APPENDIX 1 Function Block
k e I S uk ( S )
yk ( S )
aS2 bS c
1.2.14 ThreeStepLag
Alias
Third-Order Lag
Pins
Output
Internal Parameters
763
APPENDIX 1 Function Block
Output Features
Output Formula
3a 2b c 3a b a
k uk ( I 1) ( 3
2 ) yk (k 1) ( 3 2 ) yk (k 2) 3 yk (k 3)
yk ( K ) TS TS TS TS TS TS
a b c
3
2 d
TS TS TS
Description
This function block is used to simulate field objects. The formula in frequency
domain seems like following:
k e I S uk ( S )
yk ( S )
aS3 bS2 cS d
764
APPENDIX 1 Function Block
1.3 HS_Ctrol.lib
This library contains the function blocks which are used for broken circuit
control, for driving of sequential control devices, for simulating manual operator,
for simulating combined servoamplifier, and for PID controller.
1.3.1 HSALGMAN
Alias
Pins
Data Initial
Input Description Supplement Persistent
Type Value
Program Control
PA BOOL 0 Yes
Automatic
765
APPENDIX 1 Function Block
Program Control
C2 BOOL 0 Yes
Increase
Program Control
C3 BOOL 0 Yes
Decrease
0: Manual
1: Automatic
RM USINT Mode 0 Yes
2: Track
3: Force Manual
Output
0: Automatic
AM BOOL Mode 0 Yes
1: Not Automatic
Output of Set
SP REAL 0.00 No
Value
Internal Parameters
Data Initial
Parameter Description Supplement Persistent
Type Value
Same
Change Rate of
OU REAL 0.00 dimension with Yes
Output
MU and MD
Upper Limit of
OT REAL 0.00 Yes
Output
766
APPENDIX 1 Function Block
Lower Limit of
OB REAL 0.00 Yes
Output
Measuring Range
MU REAL 0.00 Yes
Upper Limit
Measuring Range
MD REAL 0.00 Yes
Lower Limit
1:Enable
ME BOOL Enable Manual 1 0:Prohibit(Susp Yes
ended)
1:Enable
AE BOOL Enable Automatic 1 0:Prohibit(Susp Yes
ended)
1:Enable
FE BOOL Enable Track 1 Yes
0:Prohibit
Output Features
Conditions
Output Formula Supplement
RM Mode
767
APPENDIX 1 Function Block
AV (k ) AV (k 1) OU “-” is for
Quick decrease.
AM 1, SP PV
AV (k ) IN (k ) BS
1 Auto
AM 0
If AV (k ) OT ,
AV (k ) OT
AV (k ) TP
2 Track
AM 1, SP PV
If AV (k ) OB ,
AV (k ) OB
Description
This function block enables the operator to set its output value directly and use
the output value to control the actuators, such as control valve, etc. It is usually
used with PID controller. There are four working modes: Manual, Force Manual,
Automatic and Track. Priority: Track > Force Manual > Manual/Automatic.
In Force Manual mode, the block has the same functionality as it in Manual
mode, and can only be switched to Track mode.
If neither Forced nor Track condition is met (FM=0 and TS=0), the block can be
switched to Automatic mode. In that mode, RM=1, and block can be switched
to other modes.
• The parameter PA is the interface for switching this block with means of
algorithm into Automatic mode.
During mode switching, if the manual controller is switched from any other
768
APPENDIX 1 Function Block
mode to Manual (Force Manual) mode, the output will hold. If it is switched
from Manual mode to any other mode, AV will slide to IN at the output change
rate OU, to ensure uninterrupted output.
In any working mode, the maximum output change amplitude must not exceed
OU, otherwise output value AV (k ) AV (k 1) OU .
The output value is limited between OT and OB. If AV goes above OT, it will be
reduced to OT. If AV goes below OB, it will be increased to OB.
In any mode, if increase block is enabled (C0=1), the output value AV can't be
greater than the output value. For example, suppose the time point i when
C0=1 and the output value is AV (i ) , then AV (k i) AV (i) , where k is the
sample point in the time interval L0=1. If decrease is enabled (C1=1), the
output value AV can't be smaller than the output value.
• Here the internal logic relationship of the algorithm block is described. This
function block shall be used with the corresponding regulating template in
the monitoring layer. Please see appropriate instruction of the template for
the difference.
• Difference between Force Manual and Manual: In Force Manual mode, the
block can't be switched to Manual/Automatic mode. In Manual mode, the
block can be switched to Automatic mode. Force Manual and Manual are
two working modes. FM is the conditional switch for the former, and RM=3
is status indication, however RM can't be assigned to 3 directly. The
condition to work in Manual mode is RM=0.
Example
The following diagram shows an example of the application of this block. The
PID state is controlled with the manual controller. When the manual controller
is in AUTO mode, PID will operate automatically; when the manual controller is
in MANUAL mode, PID will keep track of it; the manual controller and PID
display the same procedural value.
769
APPENDIX 1 Function Block
SP AV IN AV
HSALGMAN AO
HSPID FM
PV
AI SP
PA
TS
AM
TS TP
PV
TP
Commonly steps:
1. The value tracked by manual operator and usually PID is the feedback
of valve position or process value PV.
2. In case the PID error by self-tuning is too high, the Force Manual logic
(FM=1) can be used to prevent the oscillation. I.e., the program will
switch to "Force Manual" mode automatically and keeps in that mode
till all conditions that cause FM=1 disappear.
3. The set value of PID is assigned from SP of the manual operator.
1.3.2 HSCSLAVE
Alias
Combined Servoamplifier
Pins
770
APPENDIX 1 Function Block
Initial
Input Data Type Description Supplement Persistent
Value
Position Feedback No
I2 REAL 0.00
Input
Status of Yes
LC10 BOOL 0
Manual/Automatic
Output
Internal Parameters
771
APPENDIX 1 Function Block
Data Initial
Parameter Description Supplement Persistent
Type Value
Output Features
Output Formula
DV1 and RV1 are calculated with the algorithm used in conventional
servoamplifier.
Description
DI I1(k ) I 2(k ) DI 0 0
Then calculate the output DV and RV of the combined servoamplifier with all
772
APPENDIX 1 Function Block
• Only when LC0=1, the instruction ON can be sent. Only when LC1=1, the
instruction OFF can be sent.
• For LC10, 1 means automatic mode enabled and 0 means manual mode
enabled.
1.3.3 HSCSLAVE5
Alias
Combined Servoamplifier 5
Pins
Data Initial
Input Description Supplement Persistent
Type Value
773
APPENDIX 1 Function Block
Output
DV BOOL Output of ON 0 No
Internal Parameters
774
APPENDIX 1 Function Block
0: MAN
1: Auto
2: Track
RM USINT Work Mode 0 Yes
3: Forced
MAN
4: Actuator
Fault
Output Features
Output Formula
AM SEL((GZ or FM ), AM ,0)
SP SEL((( AO or AC or MO or MC or M1 or M 2) or
QC or AM or GZ ) or FM or (not AM ), SP, PV )
775
APPENDIX 1 Function Block
Description
This function block replaces the old block of combined servoamplifier and
accomplishes some complex logic operations. In control loop, it implements
direct connection between DCS and the electrical digital actuators. However, it
can also be used independently to replace digital control gate valve.
By using manual operator with combined servoamplifier, the process value and
position feedback should be connected with the two inputs IN and ZT; FM
connects external switch to force-manual mode; AO/AC connect with interlock
ON/OFF. The Output DV is the instruction ON for electrical actuator, while RV
is OFF. PV is the process value of the controlled object; SP is the set value
from PID. The other pins not being used can not be connected.
For the manual operator, manual ON/OFF and automatic ON/OFF are set bits;
MAN/AUTO switcher and overhaul are incremental; manual in-/decrease are
analog type. There are five work modes: Manual, Automatic, Track, Forced
Manual and Actuator Fault. The mode is instructed by status light.
Fault Mode: when valve position feedback exceeds limit or jitters, the
fault signal will be sent. In this case, you can only operate through the
“forced operate” button.
1.3.4 HSDigMAN
Alias
Pins
776
APPENDIX 1 Function Block
Initial
Input Data Type Description Supplement Persistent
Value
1: On
FM BOOL Force Manual 0 Yes
2: Off
1: On
Program Control
PA BOOL 0 Yes
Automatic 2: Off
0: Manual
1: Automatic
RM USINT Mode 0 Yes
2: Track
3: Force
Manual
Output
Internal Parameters
Data Initial
Parameter Description Supplement Persistent
Type Value
1:Enable
ME BOOL Enable Manual 1 No
0:Prohibit
1:Enable
AE BOOL Enable Automatic 1 No
0:Prohibit
Output Features
777
APPENDIX 1 Function Block
RM Mode
1 Auto DV (k ) IN (k )
Description
1.3.5 HSDLCTRL
Alias
Circuit Breaker
Pins
Data
Input Description Initial Value Supplement Persistent
Type
778
APPENDIX 1 Function Block
of Switching On
Feedback of Position No
I2 BOOL 0
of Switching Off
Electrical Fault/Circuit No
I3 BOOL 0
Broken
Output
Output of Instruction No
DV BOOL 0
Switching On
Output of Instruction No
RV BOOL 0
Switching Off
Internal Parameters
Initial
Data Supplem
Parameter Description Valu Persistent
Type ent
e
779
APPENDIX 1 Function Block
YH BOOL Pre-Switching-On 0 No
Output Features
780
APPENDIX 1 Function Block
( HZ and ( D1 or I1)) or
HZ 0
( I1 and IP)
( HZ and ( D1 or I1)) or
HH 1
( I1 and IP)
YF HH 0
( FZ and ( D2 or I 2))
FZ 0
or ( I 2 and IP)
( FZ and ( D2 or I 2))
FH 1
or ( I 2 and IP)
YH FH 0
DV HZ and I2 D3 is the
output of
RV FZ and I1 Timer 3.
781
APPENDIX 1 Function Block
C1 HH and I2
C 2 D3; DX I 3
FZ or FH ))) and I2
(YF or FZ or FH )) and I1
Description
1.3.6 HSDLCTRL2
782
APPENDIX 1 Function Block
Alias
Circuit Breaker 2
Pins
Data Initial
Input Description Supplement Persistent
Type Value
Feedback of Position of No
I1 BOOL 0
Switching On
Feedback of Position of No
I2 BOOL 0
Switching Off
783
APPENDIX 1 Function Block
Output
Internal Parameters
Data Initial
Parameter Description Supplement Persistent
Type Value
Manual Yes
Z1 BOOL
Manual Pre-Switching-On
Operation
Instructions Manual Switching Yes
Z2 BOOL 0
On
784
APPENDIX 1 Function Block
Manual Yes
Z3 BOOL 0
Pre-Switching-Off
Operating No
JX BOOL 0
Forbidden
Green Light No
LP BOOL 0
Normal
Output Features
Output
Conditions
Formula
785
APPENDIX 1 Function Block
HH SH 0
FM ))) or ((ZF and not ( JC) and ( FM or I 4)) and I1)) and FZ 1
FH SF 0
786
APPENDIX 1 Function Block
DV HZ
RV FZ
C1 HH and I2
C 2 D3; DX not ( I 3)
C3 ( I1 and FH )
HZ or HH ) and I2
Description
1.3.7 HSDLCTRL5
787
APPENDIX 1 Function Block
Alias
Circuit Breaker 5
Pins
Data
Input Description Initial Value Supplement Persistent
Type
Automatic Yes
ZH BOOL 0
Switching-On
788
APPENDIX 1 Function Block
Automatic Yes
ZF BOOL 0
Switching-Off
Output
Output of Instruction No
DV BOOL 0
Switching On
Output of Instruction No
RV BOOL 0
Device Off
Switching-On No
C1 BOOL 0
Overtime
Switching-Off No
C2 BOOL 0
Overtime
Internal Parameters
Initial
Data Type Description Valu Supplement Persistent
e
Manual Yes
Z1 BOOL 0
Pre-Switching-On
Manual Yes
Z3 BOOL 0
Pre-Switching-Off
789
APPENDIX 1 Function Block
Fault Tip. No
0: normal
1: status feedback
conflict
2: local operation
3: operating
forbidden
FN BYTE 0
4: switching-on
overtime
5: switching-off
overtime
6: error off to on
7: error on to off
8: electrical fault
1: instruction No
switching-on exists
(red)
2: instruction
CE BYTE 0
switching-off exists
(green)
3: instruction conflict
(yellow)
1: switching-on (red) No
2: switching-off
SE BYTE (green) 0
3: status conflict
(yellow)
790
APPENDIX 1 Function Block
YH BOOL Pre-Switching-On 0 No
2: testing
YF BOOL Pre-Switching-Off 0 No
Status of Error On to No
OC BOOL 0
Off
Status of Error On to No
CO BOOL 0
On
Output Features
Output
Conditions
Formula
( IP or MR) or HH YH 0
791
APPENDIX 1 Function Block
FH or ( IP or MR) YF 0
FH or ( IP or MR) FH 0
I1 or MR C1 0
I 2 or MR C2 0
and I1 and (not ( I 2)) and (SY or ( FX and (not ( I 3)) and (not ( RL)))))
and (not I 2)
HP I1 and HH
LS (YH or HH ) and I2
LP I 2 and FH
HS (YF or FN ) and I1
Description
and creates an output instruction. The priority of the input instruction is:
ZH/ZF>Z1-Z4. Once an input instruction with higher priority occurs, other
instructions with lower priority will be blocked. On the other side, only if there is
no electrical fault like circuit broken etc., these instructions are valid. When an
input instruction occurs and all conditions are met, this block will create an
output instruction (ON/OFF); meanwhile, it will log the status of the current
instruction internally, till the next occurs. If the overhaul status JC=1, sequential
device will prohibit all operations and outputs.
• The Parameter SY is only for single device testing. It blocks the Enable,
Automatic and Fault of sequential control. Please don’t use it in your
configuration.
1.3.8 HSPID
Alias
PID
Pins
Data Initial
Input Description Supplement Persistent
Type Value
793
APPENDIX 1 Function Block
Output
OC REAL 0.00 Yes
Compensation
0: Single PID
1: Cascade
MC UINT Controller Type 0 Primary PID Yes
2: Cascade
Secondary PID
794
APPENDIX 1 Function Block
needs not be
assigned in this
case).
By definition of
PID, it’s the initial
work mode; by
program running,
it’s the current
work mode.
0: MAN
3: Manual Track
4: Automatic
Track
Upper Limit of
OT REAL 100 Yes
Output
Lower Limit of
OB REAL 0.00 Yes
Output
Output
Output of Instruction
AV REAL 0 Yes
Switching On
Internal Parameters
795
APPENDIX 1 Function Block
Paramet Initial
Data Type Description Supplement Persistent
er Value
Integral Separation
SV REAL
Value
100 Percentage ( 0 ) Yes
0: normal
1: intelligence
PK BYTE Controller Type 0 Yes
Currently only
normal type is
supported.
0: position mode
1: incremental
mode
OM UINT Output Mode 0 Yes
Please set OB to
-100 when
incremental mode
is selected.
0: normal
AD UINT Integral Mode 0 Yes
1: reverse
0: not track
TM BOOL Track Mode 0 Yes
1: track
796
APPENDIX 1 Function Block
Quick Increment of
MI REAL 1.5 Yes
Manual Output
Slow Increment of
MS REAL 0.5 Yes
Manual Output
1: quick
decrement
2: quick
decrement
MM BYTE Manual Output 0 Yes
3: slow
increment
4: slow
decrement
1: enable
ME BOOL Enable Manual 1 Yes
0: disable
(suspended)
1: enable
AE BOOL Enable Automatic 1 Yes
0: disable
(suspended)
1: enable
CE BOOL Enable Cascade 1 Yes
0: disable
(suspended)
1: enable
Enable Manual
TE BOOL 1 Yes
Track 0: disable
(suspended)
797
APPENDIX 1 Function Block
1: enable
Enable Automatic
FE BOOL 1 Yes
Track 0: disable
Alarm Level:
0: general
2: urgent
3: critical
Output Features
1: AV MI
“+” is for manual
AV (k ) AV (k 1) 2: AV MI increment
0 MAN
MI ( MS ) AV MS “-“ is for manual
3:
decrement
4: AV MS
du · dk: derivative
AV (k ) AV (k 1) AV (k ) du term in this
2 Cascade
du oc1 du dk oc1 du dk calculation
oc1: output
compensation term
798
APPENDIX 1 Function Block
Manual
3 AV TP AV TP
Track
Description
This function block provides general-purpose PID control functions. This blcok
supports 5 working modes: MANUAL, AUTO, CASCADE, MANUAL TRACK,
and AUTO TRACK. It provides also two output modes: Increment Mode and
Position Mode. It supports separate PID and cascaded PID (combination of
two PIDs). The input compensation IC is used to implement pure lag control,
while the output compensation OC is used to implement feed forward control;
the track switch TS can be used to set the function block into Track mode.
CP TD
AV (k ) K p K s E (k ) E (k ) (E (k ))
TI CP
E (k ) SP(k ) PV (k )
100 MU MD
Kp ; Ks
PT PU PD
Where, E (k ) E (k ) E (k 1)
In the formulas:
Track
In this mode, the PID block stops the calculation, and the value varies with
799
APPENDIX 1 Function Block
the variable that is tracked. RM can be set to other valid values if RM=3
currently. If RM=4, the block can work in AUTO mode automatically by
TS=1, but in this case assignment of RM to another value is invalid. It will
return to the last mode.
The combination of track switch and track point determines the track
mode. The cases of track are listed in the following table:
MANUAL
If TS=0, you can change RM to 0 to force the block into MANUAL mode. If
the output is in incremental mode (OM=1), the output value in the current
cycle is determined in accordance with the value of MM. If the output is in
position mode (OM=0), the output value current cycle is determined as the
output in the previous cycle plus the output increment (MI, -MI, MS or -MS)
in this cycle.
AUTO
If the Track condition is not met (TS=0), you can change RM to 1 to make
the block work in AUTO mode. In this case, PID will perform fixed value
operation with the expression.
CASCADE
If the Track condition is not met (TS=0), you can change RM=2 to make
the block work in CASCADE mode. This mode is usually for the
secondary controller. In this case, the PID operation will be performed with
the output from the primary controller as the set value.
IC is used to compensate for the bias. That is to say, if there is a signal at
IC, this value must be added to the bias E(n) (pure lag control). In reverse
action, E (n) ( SP PV ) IC ; in normal action, it is ((SP PV ) IC ) . In
contrast to above, OC is for the compensation of AV(n). The change rate
of set value must be under (( PU PD) FA . The output is also limited
between OT and OB.
800
APPENDIX 1 Function Block
• The output of the primary controller in CASCADE mode will track the set
value of the secondary controller, if it is not in CASCADE mode.
• The set value of this block has three forms: SP, CS, and RS. For single and
primary controller, SP is the set value (takes part in the calculation); for the
secondary controller, SP is the output value of the primary controller. CS is
exclusively used for AUTO mode of the secondary controller. When the
secondary controller is in AUTO mode, CS is used instead of SP (i.e., the
output from the primary controller is not used); when the secondary
controller is in CASCADE mode, CS will strictly track the output of primary
controller; when the secondary controller is in MANUAL or Track mode, CS
will strictly follow the value of the controller (PV-IC). In that way, the mode
switching of controller can be performed uninterruptedly. RS is the actual
set value used in operation. It can be deemed as the actual set value
obtained from SP or CS through change rate limitation.
Example
The following diagram is the example of controlling drainage water level with a
single PID:
801
APPENDIX 1 Function Block
The next diagram is the same example but with cascade control loop:
1.3.9 HSSCS
802
APPENDIX 1 Function Block
Alias
Sequential Controller
Pins
On Position Status No
V1 BOOL 0
Feedback
803
APPENDIX 1 Function Block
Output
Current No
DV BOOL Device On 0
Value
Reverse No
RV BOOL Device Off 0
Value
Internal Parameters
Para
mete Data Type Description Initial Value Supplement Persistent
r
Number of
cycle. It needs
to multiply with
the operation
RT DWORD Running Time 1 cycle of Yes
schema page,
to get the
result in
second.
0:
electromot
or
DE BYTE Device Type 0 Yes
1: electric
gate valve
2:
electromag
804
APPENDIX 1 Function Block
netic valve
0: no
Instruction
CM BOOL 1
Memory 1: yes (electric Yes
gate valve)
0: no
Stop Connection
OS BOOL 1 1: yes Yes
of Instruction On
(non-electrom
agnetic valve)
0: no
Stop Connection
CS BOOL 1 1: yes Yes
of Instruction Off (non-electrom
agnetic valve)
0: no
Reverse Output of
OU BOOL 0 1: yes Yes
Instruction On (electromagnet
ic valve)
Output Features
Input instruction is
Running remembered. I.e., once
Mode Continuous
input instruction is valid,
(*2)
CM OS CS 1 output instruction will keep
till ON/OFF position status
feedback arrives.
805
APPENDIX 1 Function Block
806
APPENDIX 1 Function Block
When MANUAL
ON/MANUAL OFF and
AUTO ON/AUTO OFF, or
two instructions at same
priority but in opposite
Instruction Block
directions occur, or the
Monitoring
permissive condition in the
direction is not met, an
instruction block signal will
be produced, but no alarm
signal.
807
APPENDIX 1 Function Block
*1: this mode is applicable for electromotor, electric gate valve and
electromagnetic valve.
*2: this mode is applicable for electromotor, electric gate valve and
electromagnetic valve. For cases where the instructions will be terminated
please see Description.
*3: this mode is applicable for electromotor. For cases where the instructions
will be terminated please see the Description.
Description
This function block integrates the drive control functionality of three typical
sequential controllers: electromotor, electric gate valve and electromagnetic
valve. It can accomplish device startup/stop, protection logic, and alarm
handling, etc.
1. Priority
The priority order of its instructions is: DEVICE PROTECTION OFF/SITE
PROTECTION OFF > SITE PROTECTION ON > MANUAL STOP >
MANUAL OFF/AUTO OFF > MANUAL ON/AUTO OFF. Once an input
instruction with higher priority occurs, the others with lower priority will be
blocked. In addition, MANUAL ON, MANUAL OFF, AUTO ON, and AUTO
OFF are restricted by ON/OFF condition, i.e., they are valid only when ON
or OFF condition are met. However, DEVICE PROTECTION OFF, SITE
PROTECTION ON, and SITE PROTECTION OFF are not restricted by
ON/OFF condition. When an input instruction occurs and all execution
conditions are met, the sequential controller will create an output
instruction (ON/OFF). Meanwhile, it will log the status of the current
instruction internally, till the next input instruction occurs.
2. RunMode
The output instructions generated by this function block are in different
forms, depending on the RUN mode. The following first two modes pass
to electromotor, electric gate valve and electromagnetic valve:
(1) Discrete mode: if the condition is met, the duration of the output
instruction is the same as the input.
808
APPENDIX 1 Function Block
(2) Continuous mode: in this mode, the input instruction is memorized, i.e.,
once the input instruction is valid, the output instruction will keep
regardless of whether it persists, till either of the following conditions
occurs:
(3) The electromotor also has an instruction block mode. In that mode, the
input instruction is memorized. That is to say, once the input instruction
is valid, the output instruction will keep regardless of whether the
output instruction persists, till either of the following conditions occurs:
The RUN mode of the device is set by configuration. For discrete mode,
set Instruction Memory to "No", and set ON as well as OFF Instruction
Disconnection to "No"; for Continuous Mode, set Instruction Memory to
"Yes", and set ON as well as Instruction Disconnection to "Yes"; for
Instruction Block mode, set Instruction Memory to "Yes", and set ON as
well as OFF Instruction Disconnection to "No".
3. Device Type
This function block integrates the drive control function of three typical
controllers: electromotor, electric gate valve and electromagnetic valve.
The specific device can be chosen by configuration of "Device Type".
Hereunder the input and output instructions of each device type will be
described:
Electromotor
it occurs, all other instructions will be blocked, the instruction memory will
be cleared. The last output instruction will be stopped, and no alarm signal
will be created. This command is not limited by state error.
When SITE PROTECTION OFF or SITE PROTECTION ON occurs, no
alarm signal will be created. However, these instructions are limited by
STATE ERROR (ON to OFF) and STATE ERROR (OFF to ON). I.e., if
there is a state error, these commands will be blocked, till the status error
is confirmed. SITE PROTECTION OFF and SITE PROTECTION ON are
at the second priority level. When either of them occurs, MANUAL OFF,
AUTO OFF, MANUAL ON, and AUTO ON will be blocked.
MANUAL ON, MANUAL OFF, AUTO ON and AUTO OFF instructions are
at the lowest priority level. If any exception occurs during their produce, an
alarm signal will be created. If STATE ERROR (ON to OFF) or STATE
ERROR (OFF to ON) is valid, these instructions will be blocked.
Electric Gate Valve
810
APPENDIX 1 Function Block
On Not On 1 0
On Off 1 0
Off On 0 1
811
APPENDIX 1 Function Block
If both ON and OFF position status feedback are "0" or "1" (only "1" for
electric gate valve), a position "status feedback error" signal and an
alarm signal will be produced. The status error and overtime signal will
be blocked.
Example
The following are examples of HSSCS for electromotor, electric valve and
electromagnetic valve.
813
APPENDIX 1 Function Block
814
APPENDIX 1 Function Block
1.3.10 HSSCS5
Alias
Sequential Controller 5
Pins
Data Initial
Input Description Supplement Persistent
Type Value
815
APPENDIX 1 Function Block
On Position Status
V1 BOOL 0 No
Feedback
0:remote/DCS
SD BOOL Remote Operation 0 Yes
1:local/manual
Output
816
APPENDIX 1 Function Block
SP BOOL Pause 0 No
Internal Parameters
Para
Data Initial
mete Description Supplement Persistent
Type Value
r
0:needs no confirmation
QR BOOL Reconfirm 0 Yes
1:need confirmation
0:operable
JC BOOL Overhaul 0 Yes
1:prohibit operation
0:electromotor
2:electromagnetic valve
0: no
Instruction
CM BOOL 0
Memory 1: yes (electric gate Yes
valve)
0:no
Stop
OS BOOL Connection of 0 1:yes Yes
Instruction On (non-electromagnetic
valve)
0:no
Stop
CS BOOL Connection of 0 1:yes Yes
Instruction Off (non-electromagnetic
valve)
817
APPENDIX 1 Function Block
0:no
Reverse
OU BOOL Output of 0 1:yes (electromagnetic Yes
Instruction On valve)
Output Features
Input instruction is
remembered. I.e., once
Continuous
input instruction is valid,
(*2)
CM OS CS 1 output instruction will keep
till ON/OFF position status
Running
feedback arrives.
Mode
818
APPENDIX 1 Function Block
819
APPENDIX 1 Function Block
When MANUAL
ON/MANUAL OFF and
AUTO ON/AUTO OFF, or
two instructions at same
priority but in opposite
Instruction Block
directions occur, or the
Monitoring
permissive condition in the
direction is not met, an
instruction block signal will
be produced, but no alarm
signal.
*1: this mode is applicable for electromotor, electric gate valve and
electromagnetic valve.
*2: this mode is applicable for electromotor, electric gate valve and
electromagnetic valve. For cases where the instructions will be terminated
please see Description.
*3: this mode is applicable for electromotor. For cases where the instructions
will be terminated please see the Description.
820
APPENDIX 1 Function Block
Description
1. Executive Function
The function block of sequential controller 5 mainly make logic operations for
the input command, and also output command and related device and alarm
information. The output will be influenced by related parameters.
Reset(RP): The function block has reset function and there is reset
confirmation button on operation panel. The reset needn’t to confirm
when secondary operation(OR) is FALSE and panel reset is valid. The
reset function is not valid when secondary operation(OR) is TRUE and
the reset key becomes confirm key. If there is no open or close
operation the reset key is valid, and if there is open or close operation,
operation confirmation is valid in specified time (2 seconds by default),
reset function is not pressed and open or close operation is not effect
this time.
Output pulse limit: When CD=1, the status of output to device changed
short-pulse, which is use for field loop self-keeping; When CD=0, as it
is then. Use with caution!
The priority of these functions from high to low are: device-protection-off/on >
factory-protection-on > manually stop > manually/automatically open >
manually open/automatically open. The command with lower priority is
shielded when higher priority command happens.
Only when input command meets the demand of all execution condition,
821
APPENDIX 1 Function Block
HSSCS5 module outputs command; meanwhile, the module will record the
setting status of this command until the next one happens.
Running Mode
The running mode is not same when module parameters are different. The
parameters which affect them are CM, OS and CS.
There are two running modes for electromotor, electric gate valve and
electromagnetic valve:
(1) Electromotor:
If the device protection is OFF and the motor position status feedback is RUN,
the device protection OFF triggering signal will be triggered, and a motor stop
instruction will be sent. At the same time, a STATE ERROR (ON to OFF) signal
will be generated and keep.
The operator can confirm the DEVICE PROTECTION OFF signal at any time.
DEVICE PROTECTION OFF has the top priority. When it occurs, all other
instructions will be blocked, the instruction memory will be cleared. The last
output instruction will be stopped, and FALSE alarm signal will be created. This
command is not restrained by state error.
822
APPENDIX 1 Function Block
MANUAL ON, MANUAL OFF, AUTO ON and AUTO OFF instructions are at the
lowest priority level. If any exception occurs, an alarm signal will be created. If
STATE ERROR (ON to OFF) or STATE ERROR (OFF to ON) is valid, these
instructions will be blocked.
Continuous Mode
RT
L1 t
V1=0
V2=1
RV
OC
823
APPENDIX 1 Function Block
L1=1
RT
L1 t
RV
CT
OC
RT
L1 t
V1=0
V2=1
RV
CT
OC
When there is no status bias, input command DV=1, and feedback V1=1, V2=0
in RT time, DV=0.
824
APPENDIX 1 Function Block
L2=1
RT
L2 t
V1=0
V2=1
DV
RT
L2 t
V1=1
V2=0
DV
OT
L2=1 Confirmation
RT
L2 t
DV
OT
825
APPENDIX 1 Function Block
L3=1
RT
L3
t
V1=0
V2=1
RV
When there is no status bias, output off command (L3, L7 or TC), RV=1. If
there is no feedback in RT time, V1=0, V2=1, RV=0, and on running overtime
is generated. If there is no status feedback V1=0, V2=1 or no confirmation
operation, CT clears.
L3=1
RT
V1=0
V2=1
RV
CT
L3=1 Confirmation
RT
RV
CT
826
APPENDIX 1 Function Block
Terminal
L1=1 Confirmation condition is
met
RT
V1=0
V2=1
RV
OC
RT
V1=0
V2=1
RV
OC
CT
met.
827
APPENDIX 1 Function Block
L1=1 Confirmation
RT
RV
OC
CT
When there is no status bias, output on command L2, L6 or TP, and DV=1. If
v1=1, V2=0 is feedback in RT time, DV keeps outputting 1 until end condition is
met.
L2=1 Terminal
condition is
met
RT
V1=1
V2=0
DV
When there is no status bias, output on command L2, L6 or TP, and DV=1. If
v1=1, V2=0 is feedback in RT time, DV keeps outputting 0 and running
overtime signal OT appears, OT disappears after confirmation.
828
APPENDIX 1 Function Block
L2=1 Confirmation
RT
DV
OT
When there is no status bias , open command will input L2, L6 or TP and DV=1.
In RT time, if V1=1,V2=0, DV will be 1 until terminal condition comes true.
Terminal
L2=1 condition is
met
RT
V1=0
V2=1
RV
When there is no status bias, close command will output( L3, L7 or TC ) and
RV=1. When no feedback in RT time, V1=0, V2=1and RV keeps outputting 0
after RT time. Then close overtime generated and CT will be cleared after
confirmation.
L3=1 Confirmation
RT
RV
CT
When there is no status bias, close command will output (L3, L7 or CT), if no is
feedback in RT time, V1=0, V2=1 and RV=0. Then close overtime is generated
and V1=0, V2=1. CT will be cleared. Output of RV will be 1 until terminal
829
APPENDIX 1 Function Block
Terminal
L3=1 condition is
met
RT
V1=0
V2=1
RV
CT
(2) ElectricValve
The priorities of the input instructions of electric valve and the executed
functionalities are similar to electromotor with the following two differences:
L1=1
RT
L1 t
V1=0
V2=1
RV
OC
RT
L1 t
RV
CT
OC
831
APPENDIX 1 Function Block
L1=1
RT
L1 t
V1=0
V2=1
RV
CT
OC
When there is no states bias, open command will output L2, L6 or TP, DV=1.
If device on status is feedback in RT time (V1=0, V2=1), DV outputs 0.
L2=1
RT
L2 t
V1=0
V2=1
DV
When there is no states bias , open command willoutput (L2, L6 or TP), and
DV=1. If no on status feedback in RT time (V1=0, V2=1), DV =1 and running
overtime will generated. If V1=1, V2=0 after overtime or confirm the
operation, OT clears.
832
APPENDIX 1 Function Block
L2=1
RT
L2 t
V1=1
V2=0
DV
OT
L2=1 Confirmation
RT
L2 t
DV
OT
When there is no states bias, close command will output (L3, L7 or TC), RV=1.
If no close feedback in RT time, RV=0, and V1=0, V2=1 after overtime or
confirmation operation, CT clears.
833
APPENDIX 1 Function Block
L2=1 Confirmation
RT
L2 t
DV
OT
L3=1 Confirmation
RT
RV
CT
If the position state feedback valve is in ON state, when Device Protection OFF
occurs, a Device Protection OFF triggering signal will be generated, and a
valve OFF instruction will be output. In addition, a STATE ERROR (ON to OFF)
signal will be created and keep.
2. Monitor Function
(1) Status deviation monitoring
When outputting on/off command, HSSCS5 module records the set state of
this command until the next command outputs. If the on/off location of device
differs from set status, state bias generates form on to off appears, which
834
APPENDIX 1 Function Block
Table 1.3.1 Set status and the corresponding relationship between the
state deviation and feedback
On Not On 1 0
On Off 1 0
Off On 0 1
When on/off status feedbacks are same (for motor, only when the
feedbacks are 1), position status feedback error and alarm signals
will generate, then status bias and running overtime signals are
blocked.
The alarm signals such as status bias from on to off, status bias from off to on,
device protection off trigger, on-running overtime and off-running overtime is
confirmed once manual command is valid or the initial pulse is valid.
Initial pulse can confirm all the status. Manual ON command can confirm
status bias from OFF to ON, off running overtime, while Manual OFF command
can confirm status bias from on to off, on running overtime.
1.3.11 HSSSLAVE
836
APPENDIX 1 Function Block
Alias
Servoamplifier
Pins
Initial
Input Data Type Description Supplement Persistent
Value
Position Feedback No
I2 REAL 0.00
Input
Output
DV BOOL Output 0 No
Internal Parameters
Paramete
Data Type Description Initial Value Supplement Persistent
r
Output Features
I1(k ) I 2(k ) DI DV 1, RV 0
I1(k ) I 2(k ) DI DV 0, RV 1
837
APPENDIX 1 Function Block
DI I1(k ) I 2(k ) DI DV 0, RV 0
Description
1.3.12 HSVALVE
Alias
Pins
Initial
Input Data Type Description Supplement Persistent
Value
Output
838
APPENDIX 1 Function Block
Internal Parameters
Paramete Initial
Data Type Description Supplement Persistent
r Value
Indicator of Open No
OA BOOL 0
Arrow Blink
Device Indicator No
GL BOOL 0
Green Light
Indicator of Close No
CA BOOL 0
Arrow Blink
Device Indicator No
GF BOOL 0
Green Blink
Output Features
I1 OT OL 1, RL 1
I1 OT OL 0, RL 0
839
APPENDIX 1 Function Block
I1 OB CL 0, GL 0
I1 OB CL 1, GL 1
Description
This function block is a typical sequential control device droved block, and it
can accomplish valve open/close control, limit protection logic, and alarm
handling automatically.
• This block doesn’t refer to interlock of Open/Close, please don’t send this
kind of instructions at same time!
1.3.13 HSVALVE5
Alias
Pins
Data Initial
Input Description Supplement Persistent
Type Value
840
APPENDIX 1 Function Block
Output
Internal Parameters
Analog control
QC BOOL Force 1 is invalid by Yes
QC=1.
Manual Slowly
MO BOOL 0 (modified) Yes
Open Pulse
Manual Slowly
MC BOOL 0 (modified) Yes
Close Pulse
Manual Quickly
M1 BOOL 0 Yes
Open Pulse
Manual Quickly
M2 BOOL 0 Yes
Close Pulse
Valve Position
MS REAL 0 Yes
Instruction Setting
841
APPENDIX 1 Function Block
Pulse Time of
T3 REAL 1000 In ms Yes
Quick Open/Close
Analogue
control is invalid
when
MQ BOOL Force switch 1 Yes
MQ=1,MO and
MC have set
feature.
Output Features
Output Formula
Description
This function block will send fault signal when valve position feedback fault
occurs. In this case, analog operation is invalid and the block can be only
opened or closed by buttons on panel. When valve position feedback is in
normal, you can modify valve position instruction through keyboard and open
or close valve with forced operation button. The output will track valve position
feedback, if condition of automatic/manual open/close, prohibition of operation,
or actuator fault is met.
1.3.14 HSVMAN
842
APPENDIX 1 Function Block
Alias
Pins
Data Initial
Input Description Supplement Persistent
Type Value
Automatic
TA BOOL 0 Rising-Edge invalid Yes
Program Control
Position
FB REAL 0.00 Yes
Feedback Input
Upper Limit of
OT REAL 100 Yes
Output
Lower Limit of
OB REAL 0.00 Yes
Output
843
APPENDIX 1 Function Block
Output
0: Automatic
AM BOOL Mode 0 No
1: non-automatic
Internal Parameters
Given Upper
SU REAL 100 Yes
Limit
Given Lower
SD REAL 0.00 Yes
Limit
0: Not balancing.
YB BS , AV IN YB b
y automatic mode;
YB BS by manual
mode; there is
disturbance of YB by
disturbed switching.
MD BYTE Balancing Mode 0 Yes
1: Self-balancing.
YB BS , AV IN YB b
y automatic mode;
SB AV IN , YB 0 by
manual mode, and it
implements
non-disturbed switching.
844
APPENDIX 1 Function Block
0: MAN
1: AUTO
RM USINT Work Mode 0 Yes
2: TRACK
3: Forced MAN
Output Features
Conditions
Output Formula Supplement
RM Mode
AM 1, SP PV
0 MAN
AV (k ) IN (k ) YB
1 Auto
AM 0 If AV (k ) OT , AV (k ) OT
If AV (k ) OB , AV (k ) OB
AV (k ) TP
2 Track
AM 1, SP PV
Force AM 1, SP PV
3
MAN
Description
This function block enables the operator to set its output value directly and use
the output value to control the actuators, such as control valve, etc. It is usually
used with PID controller. This block can be set in four modes to output. In
manual mode, operator control the output value through operation panel; in
automatic mode, the output is calculated with input value IN; in track mode, the
output changes with the set value; in force manual mode, it can not switch to
the manual and automatic mode.
In Force Manual mode, the block has the same functionality as it in Manual
845
APPENDIX 1 Function Block
In Manual mode, user can increase or decrease the output value through the
panel.
If neither Forced nor Track condition is met (FM=0 and TS=0), the block can be
switched to Automatic mode. In that mode, RM=1, and block can be switched
to other modes.
During mode switching, if the manual controller is switched from any other
mode to Manual (Force Manual) mode, the output will hold. If it is switched
from Manual mode to any other mode, it needs self-balancing to implement:
- MD=0 means Not Balancing. YB BS , AV IN YB by automatic mode;
YB BS by manual mode; there is disturbance of YB by disturbed switching.
- MD1 means Self-Balancing. YB BS , AV IN YB by automatic mode;
SB AV IN , YB 0 by manual mode, and it implements non-disturbed
switching.
The output can change itself only within ±15.
The output value is limited between OT and OB. If AV goes above OT, it will be
reduced to OT. If AV goes below OB, it will be increased to OB.
• Here the internal logic relationship of the algorithm block is described. This
function block shall be used with the corresponding regulating template in
the monitoring layer. Please see appropriate instruction of the template for
the difference.
• Difference between Force Manual and Manual: In Force Manual mode, the
block can't be switched to Manual/Automatic mode. In Manual mode, the
block can be switched to Automatic mode. Force Manual and Manual are
two working modes. FM is the conditional switch for the former, and RM=3
is status indication, however RM can't be assigned to 3 directly. The
condition to work in Manual mode is RM=0.
1.3.15 HSVPID
846
APPENDIX 1 Function Block
Alias
Separation PID
Pins
Data Initial
Input Description Supplement Persistent
Type Value
Output
OC REAL 0.00 Yes
Compensation
Connects with PV
of secondary PID
TP REAL Track Point 0.00 No
or the output of
manual operator.
Connects with
status of manual
operator.
TS BOOL Track 0 Yes
0: Automatic
1: Track
847
APPENDIX 1 Function Block
Can be connected
with the
TISI BOOL Separation Input 0 Yes
separation output
of secondary PID.
Upper Limit of
OT REAL 100 Yes
Output
Lower Limit of
OB REAL 0.00 Yes
Output
Output
Output of Instruction
AV REAL 0 Yes
Switching On
Output by Integral
TISO BOOL 0 No
Separation
Internal Parameters
0: normal
AD UINT Integral Mode 0 Yes
1: reverse
Integral Separation
SV REAL
Value
100 Percentage ( 0 ) Yes
0: not track
TM BOOL Track Mode 0 Yes
1: track
848
APPENDIX 1 Function Block
PT=PT+MPT
Correction of PT when
MPT REAL 1 after the Yes
integrator stops.
correction.
Coefficient of Fine
MK REAL 1 1 MK 0.1 Yes
Control Range
If ek MKD 0
PT=PT*MK; if
MKD REAL Fine Control Range 100 Yes
ek MKD PT
doesn’t change.
Same dimension
OU REAL Output Change Rate 100 Yes
with MU and MD
>0. the
MeK REAL Bias Gain 1 multiplication Yes
factor of bias.
Output Features
Conditions
Output Formula Supplement
TS Mode
849
APPENDIX 1 Function Block
Description
This function block provides general-purpose PID control functions. This block
has 2 working modes: AUTO and TRACK. It also supports cascaded PID. In
order to avoid integral saturation, it separates the integral by too great bias or
exceeding output. When the integral of secondary controller is separated, the
primary controller can also separate its integral. The output compensation OC
can be used to implement feed-forward-control. With this new PID block, user
can implement various-proportion-control and various-integral-control.
CP TD
AV (k ) Mek K P E (k ) E (k ) (E (k ))
TI CP
E (k ) SP(k ) PV (k )
100
Kp
PT
Where, E ( k ) E (k ) E (k 1)
In the formulas:
1 K T S
Y ( s) Mek ( K P d d ) E ( s) FF ( s)
In Auto mode: Ti S Td S 1
850
APPENDIX 1 Function Block
E (n) SV
If or output exceeds limit, TISO=1. In this case, it is PD controller.
E (n) SV
If and output stays under limit, TISO=0. In this case, it is PID
controller.
During mode switching, if it switched from any other mode to manual mode,
the output will hold. If it switched from manual mode to any other mode, it
calculates in new mode based on the last output.
Example
Cascaded Loop
851
APPENDIX 1 Function Block
852
APPENDIX 1 Function Block
1.4 HS_AlmLimSec.lib
This library contains function blocks which are used to select signals, to
perform signal alarm, and to switch signal undisturbed.
1.4.1 AI_RED
Alias
Pins
Data Initial
Input Description Supplement Persistent
Type Value
I1 of the
A1 UINT corresponding 0 Yes
module address
I2 of the
A2 UINT corresponding 0 Yes
module address
Output
853
APPENDIX 1 Function Block
0: nomal,
1: both
ALM BOOL Status Output 0 No
backplane
broke down
Output Features
S1 0, S 2 0 D 1 O1(k ) I1(k )
ALM 1
D2 O1(k ) I 2(k )
Description
Example
This block is normally used with the analog module for the selection of
redundant analog input signal. The following figure shows an example in case
of module FM148R. The function block H_E is used to data acquisition from
854
APPENDIX 1 Function Block
modules.
1.4.2 AI_Red_Sel
Alias
Pins
0:select Yes
Selection automatically
MAN BOOL 0
Mode 1:select
manually
855
APPENDIX 1 Function Block
Switch of Yes
0:select AI1
MAN12 BOOL Manual 0
1:select AI2
Selection
Output
0: normal No
Fault 1: fault
ER UINT 0
Indications 2: select
manually
Internal Parameters
Data Initial
Parameter Description Supplement Persistent
Type Value
0:average
Select Work Mode
MD BYTE 0 1:select lowest Yes
Automatically
2:select highest
Module station
BD1 UINT 2 Yes
address of Tag 1
Module station
BD2 UINT 2 Yes
address of Tag 2
Measuring Range
UP REAL 100 Yes
Upper Limit
Measuring Range
LO REAL 0.00 Yes
Lower Limit
856
APPENDIX 1 Function Block
Output Features
MAN12 0
O(k ) AI1(k )
ER 2
MAN 1
MAN12 1
O(k ) AI 2(k )
Description
Through fault diagnosis and deviation monitoring, this function block can be
used to diagnose redundant analog signals and switch between them. It
selects automatically or manually one from two input signals as output,
according to their status and selection parameters.
If an input exceeds the set upper or lower limit of its measuring range, that
means AI1( AI 2) UP or AI1( AI 2) LO , it will be diagnosed as invalid.
The block decides whether there is deviation between the two input signals,
AI1 AI 2 error (UP LO)
according to the expression . No deviation when
the result is 1, and yes by 0.
857
APPENDIX 1 Function Block
Example
For some important physical objects in the field, it needs more than two
instruments to measure them, and this function block is normally used in this
case. The following figure shows the example of furnace pressure signal
alternative in a power station.
1.4.3 BOOL_RED
Alias
Pins
858
APPENDIX 1 Function Block
Initial
Input Data Type Description Supplement Persistent
Value
I1 BOOL Input 1 No
I1 of the
A1 UINT corresponding Yes
module address
I2 BOOL Input2 No
I2 of the
A2 UINT corresponding Yes
module address
Output when
both signals
broke down.
D UINT Yes
0: hold output
1: output I1
2: output I2
Output
O1 BOOL Output No
Status
0: normal
ALM BYTE 1: both No
backplanes
broke down
Internal Parameters
Data Initial
Parameter Description Supplement Persistent
Type Value
Output when at
least one signal
CHOOSE BOOL is normal. 0 Yes
0: I1
1: I2
859
APPENDIX 1 Function Block
Output Features
S1 1, S 2 0 O1(k ) I1(k )
ALM 0
S1 0, S 2 1 O1(k ) I 2(k )
Description
This function block selects one of the two input signals as output automatically,
according to their status (S1 and S2 in the table “Output Features”, 1=normal
and 0=fault).
If one input (e.g. I1) is normal and the current selected input (e.g. I2) is
broke-down, then the block selects I1 as new output, even though I2 becomes
normal later. I2 will be selected again, until I1 breaks down.
1.4.4 HSALARMSPARK
Alias
Alarm Blink
860
APPENDIX 1 Function Block
Pins
Output
Alarm restored No
O3 BOOL 0
and not confirmed
Output Features
I1(k 1) 1, I1(k ) 0,
O1(k ) 0, O2(k ) 0, O3(k ) 1
I 2(k ) I 2(k 1) 0
Description
This function block is used to replace the conventional blink alarm devices in
power station. The following figure shows its logic diagram:
861
APPENDIX 1 Function Block
1.4.5 HSALM_AM
Alias
Amplitude Alarm
Pins
Data Initial
Input Description Supplement Persistent
Type Value
IN REAL Input 0 No
862
APPENDIX 1 Function Block
Output
0: No Alarm
1: AMHH
AM BYTE Alarm Status 0 2: AMH Yes
3: AML
4: AMLL
Output Features
DV 1, AM 1, AMHH 1,
IN HH HH Alarm
AMH 1, AMLL 0, AML 0
No alarm
last takt
DV 1, AM 2, AMHH 0,
AH IN HH AH Alarm
AMH 1, AMLL 0, AML 0
863
APPENDIX 1 Function Block
DV 1, AM 3, AMHH 0,
LL IN AL AL Alarm
AMH 0, AMLL 0, AML 1
DV 1, AM 4, AMHH 0,
IN LL ALL Alarm
AMH 0, AMLL 1, AML 1
DV 0, AM 0, AMHH 0,
AL IN AH No Alarm
AMH 0, AMLL 0, AML 0
HH alarm occures
when IN ( HH DI ) .
AH alarm occures when
HH Alarm
( AH DI ) IN ( HH DI ) .
The other cases of alarm please
see condition “No alarm last takt”.
LL alarm occures
when IN ( LL DI ) .
AL alarm occures when
LL Alarm
( LL DI ) IN ( AL DI ) .
The other cases of alarm please
see condition “No alarm last takt”.
Description
864
APPENDIX 1 Function Block
The pins indicate all kinds of necessary information. DV is the status of alarm:
1 means alarm occurred and 0 for no alarm. AM provides the alarm type.
AMHH to AML indicates it is in which alarm case.
• All alarm cases are exclusive with each other. No alarm can occur at same
time with another.
1.4.6 HSALM_DV
Alias
Deviation Alarm
Pins
Data Initial
Input Description Supplement Persistent
Type Value
865
APPENDIX 1 Function Block
Output
Output Features
I1 I 2 HL or I1 I 2 LL DV 1
LL I1 I 2 HL DV 0
Description
This function block is used to estimate whether there is deviation between two
input signals. Alarm occurs when deviation exceeds the set limit.
Example
In the field, user applies this block to estimate whether the two from different
instruments redundant signals of one physical object is equal. Or, whether
there is bias between the set and feed-back value in a control loop.
1.4.7 HSALM_RT
Alias
Pins
Output
866
APPENDIX 1 Function Block
Internal Parameters
Initial
Parameter Data Type Description Supplement Persistent
Value
Upper Limit of
HL REAL 1E9 Yes
Change Rate
Output Features
I1 I 2 HL or I1 I 2 LL DV 1
Description
This function block can measure the change rate of input signal and give out
alarm based on the result.
DP: the No. DP cycle before this cycle, or in another word, it’s the cycle
number of interval between the two compared inputs. By default, the input of
current cycle is compared with the one of last cycle, namely DP = 1.
AP: the number of over-rate cycles. After over-rate condition disappeared, the
program accumulates with a counter variable LC from 0. In each cycle, it will
867
APPENDIX 1 Function Block
• By default, this block compares the values in adjacent cycles. After the
over-rate condition disappears, it will judge for additional 10 cycles; Alarm
will be cleared only if no more over-rate occurs in the 10 cycles. You can
set DP and AP values as required.
1.4.8 HSDIGSW
Alias
Digital Switch
868
APPENDIX 1 Function Block
Pins
I1 BOOL Input 1 0 No
I2 BOOL Input 2 0 No
1:select I1 Yes
SW BOOL Selection Switch 0
0:select I2
Output
DV BOOL Output 0 No
Output Features
SW 1 DV (k ) I1(k )
SW 2 DV (k ) I 2(k )
Description
1.4.9 HSLIM_HL
Alias
Amplitude Limit
Pins
869
APPENDIX 1 Function Block
Output
Error Indication
ER BOOL 0 No
of Over-Limit
Output Features
LL IN (k ) HL AV (k ) IN (k ), ER(k ) 0
IN (k ) HL AV (k ) HL, ER(k ) 1
IN (k ) LL AV (k ) LL, ER(k ) 1
Description
This function block can limit the input signal between preset upper and lower
limit before it provides the output. If the input is out of the amplitude, it will
provide an error indication. The schematic diagram is showed as followed:
870
APPENDIX 1 Function Block
1.4.10 HSLIM_RATE
Alias
Velocity Limit
Pins
871
APPENDIX 1 Function Block
Output
Output Features
IN (k ) AV (k 1) HL AV (k ) AV (k 1) HL
IN (k ) AV (k 1) LL AV (k ) AV (k 1) LL
LL IN (k ) AV (k 1) HL AV (k ) IN (k )
Description
The rate limit (HSLIM_RATE) module limits the change rate of the input IN, so
that the change rate of output AV of the module is limited within the preset
range in each cycle. This block can be used in the control cases where sudden
change must be prevented.
It compares the current input IN with the output AV in the previous cycle, and
decides how much the output AV in the current cycle can change on the basis
of the output in the previous cycle, in accordance with the difference between
HL/LL. The following diagram describes the actions of the module against
input change:
1.4.11 HSMEDSEL
872
APPENDIX 1 Function Block
Alias
Triple Selection
Pins
Initial
Input Data Type Description Supplement Persistent
Value
Output
873
APPENDIX 1 Function Block
874
APPENDIX 1 Function Block
Output Features
AV (k ) AV (k 1),
Three inputs are all bad. Q1(k ) Q 2(k ) Q3(k ) QQ( k ) Q0( k ) 0
MD 4 AV (k ) X 1(k )
MD 4MD 5 AV (k ) X 2(k )
MD 6 AV (k ) X 3(k )
875
APPENDIX 1 Function Block
The
deviati
on
betwe
en one
input
and
the
others
over-li AV (k ) the average of two
mit. inputs whose deviation is not
The over-limit. E.g.:
deviati AV (k ) ( X 1(k ) X 2(k ) / 2
on
betwe
en the
At other
least two
two inputs
inputs is not
whose over-li
deviati mit.
on is
over-li The
mit. deviati
on
betwe
en one
input
and
the AV (k ) the input whose
others deviation to the other two
is not inputs is not over-limit.. e.g.:
over-li AV (k ) X 3(k )
mit.
The
deviati
on
betwe
en the
other
two
876
APPENDIX 1 Function Block
inputs
is
over-li
mit.
The
deviati
on
betwe
en any AV (k ) AV (k 1)
two
inputs
is
over-li
mit.
Description
This function block compares the signals of three inputs and chooses one from
the signals automatically or calculates a value as the output in accordance with
signal quality and working mode. The quality of input signals of this module is
reflected at corresponding output pins. The work mode of MD is: 0-select
middle value; 1-select average; 2-select lowest; 3-select highest; 4-signal from
transmitter 1; 5- signal from transmitter 2; 6- signal from transmitter 3.
The block estimates the inputs quality firstly. If all inputs are bad, the output will
be hold, and their qualities will be bad. If at least one input is good, the output
is different according to the cases listed in the table above.
By the cases showed in the table “Output Features” that output quality is bad,
Q0 is 1, otherwise 0.
• This function block doesn't have signal quality estimation logic. User has to
estimate input signal quality through other logic and then connects the
processed quality signal to the corresponding quality input pins.
Example
877
APPENDIX 1 Function Block
The above diagram describes an example of using the module for selection of
the compensation of water level in steam drum. In this example, the three
quality inputs are connected to the outputs of other diagnosis function blocks.
1.4.12 HSSFT
Alias
Undisturbed Switch
Pins
878
APPENDIX 1 Function Block
Output
Output Features
Changing SW (k ) 0 AV (k ) I1(k 1)
never
happend, or
changing SW (k ) 1 AV (k ) I 2(k 1)
ended.
Description
This function block chooses output I1 or I2 in accordance with the status of the
switcher SW. The switching between the two values is done undisturbed.
• If the tag name which representing the switcher is null, then AV (k ) I1(k ) .
The initial value of SW determines the first-run value of this block. If the
initial value is 0, then AV (0) I1(0) , when the module runs for the first time,
otherwise AV (0) I 2(0) .
879
APPENDIX 1 Function Block
1.5 HS_Special.lib
This library contains function blocks usually used in chemical industry for some
special technical processes. They can record fault and source cause, they can
also simulate access process and non-linear function.
1.5.1 HSAMEMORY
Alias
Analog Memory
Pins
Initial
Input Data Type Description Supplement Persistent
Value
0:set mode
SW BOOL Mode 0 Yes
1:track mode
Output
Internal Parameters
881
APPENDIX 1 Function Block
Data Initial
Parameter Description Supplement Persistent
Type Value
Output Features
Description
882
APPENDIX 1 Function Block
What needs to notice, by set mode the change rate of output doesn’t reach the
set value immediately, but in IV sample cycles. The formula of change rate is
like following:
If the calculated AV (k ) exceeds the limit OT or OB, one of the two limits will
be outputted as result.
1.5.2 HSBAL2
Alias
Dual Balancer
Pins
Input Description
Data Initial Supplem Persisten
883
APPENDIX 1 Function Block
Output
Internal Parameters
Data Initial
Parameter Description Supplement Persistent
Type Value
Output Features
D1 0, D2 1 O1 2 IN Z 2, O2 Z 2 Valve A is in Auto
mode; B is in MANUAL
884
APPENDIX 1 Function Block
mode.
Valve A is in
D1 1, D2 0 O1 Z1, O2 2 IN Z1 MANUNAL mode; B is
in Auto mode.
*1: O1 and O2 in the formula are final valve aperture. During the regulating, the
change rates of O1 and O2 are limited by OUTR. In addition, the change rate
of IOF is limited by HL and LL.
Description
The change rates of O1 and O2 are limited by OUTR. The change rate of O1
OUTR ( IOF ( IN ( IN O1(k 1)))
doesn’t exceed , and the change rate of O2
OUTR ( IOF ( IN ( IN O 2(k 1)))
doesn’t exceed .
No sudden change of the offset IOF is permitted. It is limited by HL and LL. The
positive offset change of two adjacent cycles can't exceed HL, otherwise the
offset participating in the calculation in the current cycle will be the offset in the
previous cycle plus HL. The negative change of offset can't exceed LL,
otherwise the offset participating in the calculation in the current cycle will be
the offset in the previous cycle plus HL. The function block keeps the control in
that way, till the offset reaches to the preset value gradually.
Example
This function block is usually used with PID block and Manual Operator block.
The output AV of the PID is connected to IN of this block, and the two valve
position instruction pins of this block are connected to the IN pins of two
manual operators. The following diagram shows an example of application of
this block in furnace negative pressure control. When both manual operators
are in MANUAL mode, and the dual balancers and the PID controller are in
TRACK mode, the PID output IN ( Z1 Z 2) / 2 . In other cases, the control is
carried out in accordance with the PID output pin IN.
885
APPENDIX 1 Function Block
1.5.3 HSCHARC1
Alias
886
APPENDIX 1 Function Block
Description
1.5.4 HSSC
Alias
First Fault 8
Pins
Initial
Input Data Type Description Supplement Persistent
Value
887
APPENDIX 1 Function Block
I8 BOOL Reset 0 No
Output
Output Features
888
APPENDIX 1 Function Block
O1(k ) O 2(k )
O3(k ) O 4(k )
I 8(k ) 1
O5(k ) O6(k )
O7(k ) O8 0
Description
This function block is used to log faults and to analyze the cause of first fault. It
can perform fault monitoring for up to 7 signal sources.
As long as one of the monitored signal sources fails, the output O8 will be set
to 1. That indicates there is a fault. If several signals fail, this block can judge
which failed first, and sets the corresponding output to 1. The other fault
signals will not be logged. This function block holds in this status, till I8 is reset.
Then the block will detect fault signals again.
• If a group of signal sources failed, only two outputs of this block will be set
to 1: one is the fault indication corresponding to the fault signal that
occurred first; the other one is the general fault indication O8. When reset
pin I8 is set to 1, all output pins will be set to 0.
1.5.5 HSSC1
889
APPENDIX 1 Function Block
Alias
First Fault 16
Pins
Output
890
APPENDIX 1 Function Block
Output Features
I1(k ) AND NOT ( I1(k 1)) AND NOT (O16) O1(k ) 1, O16 1
I 2(k ) AND NOT ( I 2(k 1)) AND NOT (O16) O 2(k ) 1, O16 1
891
APPENDIX 1 Function Block
I 3(k ) AND NOT ( I 3(k 1)) AND NOT (O16) O3(k ) 1, O16 1
I 4(k ) AND NOT ( I 4(k 1)) AND NOT (O16) O 4(k ) 1, O16 1
I 5(k ) AND NOT ( I 5(k 1)) AND NOT (O16) O5(k ) 1, O16 1
I 6(k ) AND NOT ( I 6(k 1)) AND NOT (O16) O6(k ) 1, O16 1
I 7(k ) AND NOT ( I 7(k 1)) AND NOT (O16) O7(k ) 1, O16 1
I 8(k ) AND NOT ( I 8(k 1)) AND NOT (O16) O8(k ) 1, O16 1
I 9(k ) AND NOT ( I 9(k 1)) AND NOT (O16) O9(k ) 1, O16 1
I10(k ) AND NOT ( I10(k 1)) AND NOT (O16) O10(k ) 1, O16 1
I11(k ) AND NOT ( I11(k 1)) AND NOT (O16) O11(k ) 1, O16 1
I12(k ) AND NOT ( I12(k 1)) AND NOT (O16) O12(k ) 1, O16 1
I13(k ) AND NOT ( I13(k 1)) AND NOT (O16) O13(k ) 1, O16 1
I14(k ) AND NOT ( I14(k 1)) AND NOT (O16) O14(k ) 1, O16 1
I15(k ) AND NOT ( I15(k 1)) AND NOT (O16) O15(k ) 1, O16 1
O1(k ) O 2(k )
O3(k ) O 4(k )
O5(k ) O 6(k )
O 7(k ) O8(k )
I16(k ) 1
O9(k ) O10(k )
O11(k ) O12(k )
O13(k ) O14(k )
O15(k ) O16 0
Description
892
APPENDIX 1 Function Block
This function block is used to log faults and to analyze the cause of first fault. It
can perform fault monitoring for up to 15 signal sources.
As long as one of the monitored signal sources fails, the output O16 will be set
to 1. That indicates there is a fault. If several signals fail, this block can judge
which failed first, and sets the corresponding output to 1. The other fault
signals will not be logged. This function block holds in this status, till I16 is
reset. Then the block will detect fault signals again.
• If a group of signal sources failed, only two outputs of this block will be set
to 1: one is the fault indication corresponding to the fault signal that
occurred first; the other one is the general fault indication O16. When reset
pin I16 is set to 1, all output pins will be set to 0.
Example
It can be used for equipment shutdown, furnace shutdown, and protection for
major equipments, in order to indicate the source cause of the protection
action, without analysis and checking.
1.5.6 HSSC2
893
APPENDIX 1 Function Block
Alias
First Fault 32
Pins
894
APPENDIX 1 Function Block
895
APPENDIX 1 Function Block
Output
896
APPENDIX 1 Function Block
Output Features
897
APPENDIX 1 Function Block
I1(k ) AND NOT ( I1(k 1)) AND NOT (O32) O1(k ) 1, O32 1
I 2(k ) AND NOT ( I 2(k 1)) AND NOT (O32) O2(k ) 1, O32 1
I 3(k ) AND NOT ( I 3(k 1)) AND NOT (O32) O3(k ) 1, O32 1
I 4(k ) AND NOT ( I 4(k 1)) AND NOT (O32) O4(k ) 1, O32 1
I 5(k ) AND NOT ( I 5(k 1)) AND NOT (O32) O5(k ) 1, O32 1
I 6(k ) AND NOT ( I 6(k 1)) AND NOT (O32) O6(k ) 1, O32 1
I 7(k ) AND NOT ( I 7(k 1)) AND NOT (O32) O7(k ) 1, O32 1
I 8(k ) AND NOT ( I 8(k 1)) AND NOT (O32) O8(k ) 1, O32 1
I 9(k ) AND NOT ( I 9(k 1)) AND NOT (O32) O9(k ) 1, O32 1
I10(k ) AND NOT ( I10(k 1)) AND NOT (O32) O10(k ) 1, O32 1
I11(k ) AND NOT ( I11(k 1)) AND NOT (O32) O11(k ) 1, O32 1
I12(k ) AND NOT ( I12(k 1)) AND NOT (O32) O12(k ) 1, O32 1
I13(k ) AND NOT ( I13(k 1)) AND NOT (O32) O13(k ) 1, O32 1
I14(k ) AND NOT ( I14(k 1)) AND NOT (O32) O14(k ) 1, O32 1
I15(k ) AND NOT ( I15(k 1)) AND NOT (O32) O15(k ) 1, O32 1
I16(k ) AND NOT ( I16(k 1)) AND NOT (O32) O16(k ) 1, O32 1
I17(k ) AND NOT ( I17(k 1)) AND NOT (O32) O17(k ) 1, O32 1
I18(k ) AND NOT ( I18(k 1)) AND NOT (O32) O18(k ) 1, O32 1
898
APPENDIX 1 Function Block
I19(k ) AND NOT ( I19(k 1)) AND NOT (O32) O19(k ) 1, O32 1
I 20(k ) AND NOT ( I 20(k 1)) AND NOT (O32) O20(k ) 1, O32 1
I 21(k ) AND NOT ( I 21(k 1)) AND NOT (O32) O21(k ) 1, O32 1
I 22(k ) AND NOT ( I 22(k 1)) AND NOT (O32) O22(k ) 1, O32 1
I 23(k ) AND NOT ( I 23(k 1)) AND NOT (O32) O23(k ) 1, O32 1
I 24(k ) AND NOT ( I 24(k 1)) AND NOT (O32) O24(k ) 1, O32 1
I 25(k ) AND NOT ( I 25(k 1)) AND NOT (O32) O25(k ) 1, O32 1
I 26(k ) AND NOT ( I 26(k 1)) AND NOT (O32) O26(k ) 1, O32 1
I 27(k ) AND NOT ( I 27(k 1)) AND NOT (O32) O27(k ) 1, O32 1
I 28(k ) AND NOT ( I 28(k 1)) AND NOT (O32) O28(k ) 1, O32 1
I 29(k ) AND NOT ( I 29(k 1)) AND NOT (O32) O29(k ) 1, O32 1
I 30(k ) AND NOT ( I 30(k 1)) AND NOT (O32) O30(k ) 1, O32 1
I 31(k ) AND NOT ( I 31(k 1)) AND NOT (O32) O31(k ) 1, O32 1
899
APPENDIX 1 Function Block
O1(k ) O 2(k )
O3(k ) O 4(k )
O5(k ) O 6(k )
O 7(k ) O8(k )
O9(k ) O10(k )
O11(k ) O12(k )
O13(k ) O14(k )
O15(k ) O16(k )
I 32(k ) 1 O16(k ) O17(k )
O18(k ) O19(k )
O 20(k ) O 21(k )
O 22(k ) O 23(k )
O 24(k ) O 25(k )
O 26(k ) O 27(k )
O 28(k ) O 29(k )
O30(k ) O31(k )
O32 0
Description
This function block is used to log faults and to analyze the cause of first fault. It
can perform fault monitoring for up to 31 signal sources.
As long as one of the monitored signal sources fails, the output O32 will be set
to 1. That indicates there is a fault. If several signals fail, this block can judge
which failed first, and sets the corresponding output to 1. The other fault
signals will not be logged. This function block holds in this status, till I32 is
reset. Then the block will detect fault signals again.
• If a group of signal sources failed, only two outputs of this block will be set
to 1: one is the fault indication corresponding to the fault signal that
occurred first; the other one is the general fault indication O32. When reset
pin I32 is set to 1, all output pins will be set to 0.
900
APPENDIX 1 Function Block
1.6 HS_Cnvt.lib
This algorithm library contains algorithm of module input, module output,
thermal resistance and thermocouple, conversion algorithm among quantities,
electrical range, and code value.
The property PERSISTENT is set for each function block, shown as table
below:
History information
Function blocks Parameters modified online Summation
relevant to output
E_H MU、MD、UP、LO
ELC_E WG、MU、MD、BV
FM148F_H_E MU、MD、UF、LC
FM148F_H_ELC BV、UF
H_CT CP
A1、A2、SET、FT、OT、
H_CT_R
OB、CP
WG、MU、MD、BV、BS、
H_E
SQ、LC、OM、IV
H_E_S MU、MD、LC
H_ELC WG、BV
A1、A2、SET、FT、OT、
H_ELC_R
OB、TP、WG、BV、CP
H_PI WG、BV、Lim、RES AV
TP、WG、BS、LA、LB、
H_RTD
LC、LG
H_TC TP、CT、WG、BS、cycle、
901
APPENDIX 1 Function Block
FILTERTIME
1.6.1 E_H
Alias
Pins
Initial
Input Data Type Description Supplement Persistent
Value
upper limit of
MU REAL 0 Yes
quantities range
lower limit of
MD REAL 0 Yes
quantities range
types of
MT EmBoard 0 No
output module
optional upper
UP REAL limit of electrical 20 Yes
range
902
APPENDIX 1 Function Block
range
Output
hexadecimal
WH WORD 0 No
data
Correct;
upper limit of
electrical range is
equal to or less than
lower limit;
upper limit of
quantities is equal
to or less than lower
limit;
lower limit of
custom electrical
range LO is less
than the lower limit
of module default
electrical range
Description
903
APPENDIX 1 Function Block
1.6.2 ELC_E
Alias
Pins
Data
Input Description Initial Value Supplement Persistent
Type
electrical
AI REAL 0 No
signal data
upper limit of
MU REAL quantities 0 Yes
range
lower limit of
MD REAL quantities 0 Yes
range
electrical
BV BOOL 0 1-voltage , Yes
signal type
0-current
Output
904
APPENDIX 1 Function Block
output
AV REAL 0 No
quantities data
information 0-normal ,
ER BYTE 0 No
code 2-WG error
Description
1. Judge whether the module type is matching with gain of data tag.
If matching, keep running; otherwise, ER reports error, the program
returns and stops.
2. Calculation of quantities value AV.
On the basis of input signal AI, upper and lower limits of electrical range
get from module type and gain of data tag, upper and lower limits of
quantities range MU and MD, convert to quantities value - AV.
1.6.3 FM148F_H_E
Alias
Pins
Data Initial
Input Description Supplement Persistent
Type Value
905
APPENDIX 1 Function Block
Output
0- normal
3- out of
range
ER BYTE information code 0 No
4- small
signal
resection
Internal Parameters
Data
Parameter Description Initial value Supplement Persistent
type
Description
1. Normal calculation
Get output quantities AV on the basis of WH, MU, and ML.
2. Judge out of range or not
If it is out of range, the output AV is the value of last cycle adding full
quantities range.
3. Small signal resection
Judge AV for small signal resection or not When the limit of small signal
resection - LC is not 0. If it is small signal, output 0.
1.6.4 FM148F_H_ELC
906
APPENDIX 1 Function Block
Alias
Pins
Data Initial
Input Description Supplement Persistent
Type Value
hexadecimal
WH WORD 0 No
data
electrical
BV BOOL 0 1-voltage,0-current Yes
signal type
Out of range
UF BOOL 0 Yes
or not
Output
data of
AV REAL electrical 0 No
range
normal
information
ER BYTE 0 2-WG error No
code
3- out of range
Description
Convert hexadecimal data to electrical signal data, which is only suitable for
FM148F.
907
APPENDIX 1 Function Block
1. Normal calculation
Get electrical signal AV, which is corresponded with WH, on the basis of
code value WH, module type MT, upper and lower limits of electrical range
get from WG.
2. Judge out of range or not
If it is out of range, AV is value of last cycle adding upper limit of electrical
range.
1.6.5 H_CT
Alias
Pins
Data
Input Description Initial Value Supplement Persistent
Type
code value
captured
WH WORD from 16340 No
hardware
module
Output
temperature
AV REAL value of cold 0 No
junction
Resistance of
AR REAL Cu50 at cold 0 No
junction
Internal Parameters
908
APPENDIX 1 Function Block
Data
Parameter Description Initial value Supplement Persistent
type
Value of
CP REAL temperature -1.3 Yes
compensation
Description
Calculate the temperature value of cold junction according to code value get
from module.
1.6.6 H_CT_R
Alias
Pins
Data
Input Description Initial Value Supplement Persistent
Type
code value
captured in
WH1 WORD 16340 No
hardware
module A
module number
A1 BYTE 0 Yes
that module A in
code value
WH2 WORD in 16340 No
captured
hardware
909
APPENDIX 1 Function Block
module B
module number
A2 BYTE 0 Yes
that module B in
Output
temperature
AV REAL value of cold 0 No
junction
0-alarm
free
1-module A
broken
ALM BYTE alarm 0 2-module B No
broken
3-two
modules
broken
0-non
output
output of
1-module A
MC BYTE module 0 No
output
selection
2- module B
output
Internal Parameters
Data
Parameter Description Initial value Supplement Persistent
type
temperature
CP REAL compensation -1.3 Yes
value
default
SET INT 25 Yes
temperature
unit:
FT BYTE filtering factor 10 Yes
second
910
APPENDIX 1 Function Block
judge upper
OT INT quality limit of 40 unit: degree Yes
output value
judge lower
OB INT quality limit of 5 unit: degree Yes
output value
Description
1.6.7 H_E
911
APPENDIX 1 Function Block
Alias
Pins
Data
Input Description Initial Value Supplement Persistent
Type
hexadecimal
WH WORD 0 No
data
upper limit of
MU REAL quantities 0 Yes
range
lower limit of
MD REAL quantities 0 Yes
range
types of
1-voltage
BV BOOL electrical 0 Yes
0-current
signal
Output
quantities
AV REAL 0 No
data
255-fault;
information
ER BYTE 0 No
code convert
normally II,
912
APPENDIX 1 Function Block
zoom the
range by
proportion;
convert
normally II;
root
conversion,
small signal
resection ,
output
retaining;
extract
conversion,
small signal
resection ,
output initial
value;
Root
conversion
normally.
Internal Parameters
Data
Parameters Description Initial value Supplement Persistent
type
extract 1-extract
SQ BOOL 0 Yes
option 0-no extract
Percentage of
signal value/full
resection range must be
LC REAL of small 0.02 positive. When Yes
signal limit input value <
percentage*range,
stop extraction.
output form
1-retain
OM BYTE after 0 Yes
0-output IV
resection
of small
913
APPENDIX 1 Function Block
signal
output
initial value
after
IV REAL 0 Yes
resection
of small
signal
Description
Functional block of analog input (H_E) is used for analog signal captured from
single channel of hardware module. After scale conversion, alarm setting,
and quality judge for the signal, output results – quantities value and quality
message of the quantities.
1. Calculate normally
On the basis of module type MT, gain WG, code value WH and upper and
lower limit of quantities, calculate the quantities value corresponded with
WH.
2. Extracting
Judge whether extracting a root on the basis of SQ.
3. Resection of small signal
If the resection of small signal limit LC is not 0, and the signal is within limit
of small signal, cut off the signal, then output value of last cycle or initial
value IV as value of AV, on the basis of OM.
1.6.8 H_E_S
Alias
Pins
914
APPENDIX 1 Function Block
Data
Input Description Initial Value Supplement Persistent
Type
module types
MT EmBoard of hardware 0 No
module
hexadecimal
WH WORD 0 No
data
upper limit of
MU REAL quantities 0 Yes
range
lower limit of
MD REAL quantities 0 Yes
range
Output
output
AV REAL quantities 0 No
data
0-normal
information 4-resection
ER BYTE 0 No
code of small
signal
Internal Parameters
Data
Parameters Description Initial value Supplement Persistent
type
resection of
LC REAL small signal 0.02 Yes
limit
Description
915
APPENDIX 1 Function Block
1. Calculate normally
On the basis of input hexadecimal data of analog – WH (0-65535), upper
and lower limit of quantities MU and ML, Linear convert WH to quantities
AV.
2. Resection of small signal
If the resection of small signal limit LC is not 0, and the signal is within limit
of small signal, cut off the small signal, otherwise, do not cut off the small
signal.
1.6.9 H_ELC
Alias
Pins
module
MT emBoard 0 No
types
hexadecimal
WH WORD 0 No
data
types of
1-voltage
BV BOOL electrical 0 Yes
0-current
signal
Output
electrical unit: mV or
AV REAL 0 No
range data A
916
APPENDIX 1 Function Block
information 0-normal
ER BYTE 0 No
code 2-WG error
Description
1. Calculate normally
On the basis of module type MT, upper and lower limit of electrical range
from gain of data tag WG, and code value WH, calculate and output
electrical signal AV.
2. Error processing
Judge MT is matching with WG or not, if not, return without calculation,
and ER=2.
1.6.10 H_ELC_R
Alias
Pins
Data
Input Description Initial Value Supplement Persistent
Type
Acquisition code
WH1 WORD value of module 16340 No
A
station address
A1 BYTE 0 Yes
of Module A
917
APPENDIX 1 Function Block
Acquisition code
WH2 WORD value of module 16340 No
B
station address
A2 BYTE 0 Yes
of Module B
Output
output
temperature electrical
AV REAL value of cold 0 range data, No
junction unit: mV or
A
0-alarm
free
1-module A
broken
ALM BYTE alarm 0 2-module B No
broken
3-two
modules
broken
0-non
output
output of
1-module A
MC BYTE module 0 No
output
selection
2- module B
output
Internal Parameters
Data Initial
Parameters Description Supplement Persistent
type value
temperature
CP REAL compensation -1.3 Yes
value
default
SET INT 25 Yes
temperature
918
APPENDIX 1 Function Block
unit:
FT BYTE filtering factor 10 Yes
second
Quality upper
OT INT limit judgment 40 unit: degree Yes
of output value
Quality lower
OB INT limit judgment 5 unit: degree Yes
of output value
input signal
TP EmTC K_TC Yes
type of analog
Description
This module is frequently used for deal with signal of redundant temperature
compensation in thermocouple series module SM470 or SM471.
1.6.11 H_PI
Alias
Pins
hexadecimal
WH WORD 0 No
data
pulse
WG WORD 0 Yes
equivalent
Output
information 0-correct
ER BYTE 0 No
code else-error
920
APPENDIX 1 Function Block
Internal Parameters
Data
Parameter Description Initial value Supplement Persistent
type
If the
difference of
sample
values in
adjacent cycle
limit value of
Lim WORD 10000 is greater Yes
sampling
than the limit
value, the
output will not
be
accumulated
reset button
under
RES BOOL accumulate 0 Yes
working
mode
Description
Functional block of pulse input (H_PI) is used for pulse signal captured from
single channel of hardware module. After scale conversion, and quality judge
for the signal, output results – quantities value and quality message of the
quantities.
1. Calculate normally
Frequency type:
Calculate and output quantities data AV, on the basis of pulse signal type
BV, code value WH, and pulse equivalent WG.
Summation type:
Calculate and output quantities data AV, on the basis of pulse signal type
BV, code value WH, pulse equivalent WG, and output of last cycle.
2. Reset
If it is summation type, when reset signal RES is effective, AV clearing
zero.
1.6.12 H_RTD
921
APPENDIX 1 Function Block
Alias
Pins
Data
Input Description Initial Value Supplement Persistent
Type
thermal
TP EmRTD resistance 0 Yes
signal types
hexadecimal
WH WORD 0 No
data
gain of data
WG WORD 8 Yes
tag
Output
output
AV REAL temperature 0 No
value
0-correct
ER BYTE information 0 2-WG error No
5-RTD type error
Internal Parameters
Data
Parameter Description Initial value Supplement Persistent
type
922
APPENDIX 1 Function Block
line
LA REAL 0 Yes
resistance A
line
LB REAL 0 Yes
resistance B
line
LC REAL 0 Yes
resistance C
bridge arm
LG REAL 50 Yes
resistance
Description
1. Resistance obtain
If it is bridge thermal resistance module, on the basis of signal type TP,
line resistance LA, LB, and LC, bridge arm resistance LG, and reference
voltage, calculate the resistance corresponded with code value WH; if it is
thermal resistance module of constant flow source, on the basis of module
type MT, gain of data tag WG, and code value WH, calculate the
resistance.
2. Temperature obtain
Look up temperature AV in the table on the basis of signal type TP and
resistance.
1.6.13 H_TC
Alias
Pins
Data Initial
Input Description Supplement Persistent
Type Value
signal type of
TP EmTC 0 Yes
thermocouple
hexadecimal
WH WORD 0 No
data
Output
output
AV REAL 0 No
temperature
0-correct
ER BYTE information code 0 2-WG error No
6-TC type error
Internal Parameters
Data Initial
Parameter Description Supplement Persistent
type value
Description
1. Normal calculation
Get temperature AV corresponded with actual electrical signal by looking
up the table, on the basis of module type MT, upper and lower limit of
electrical range WG from gain of data tag, sampling code value WH,
signal type TP, and cold junction compensation.
2. Error reporting
Check whether module type MT is matching with gain of data tag WG, if
not, report ER=2, return without calculation.
3. Cold junction compensation
In calculating process, if cold junction compensation is needed – that is
CT is not equal to 0, calculate filtering factor on the basis of cycle and
FILTERTIME. And calculate filtered temperature of cold junction using
filtering factor
1.6.14 UpEnd
1.6.14.1 Function overview
Figure1.6.14-1 UpEnd
Alias
Pins
Data
Input Description Initial Value Supplement Persistent
Type
925
APPENDIX 1 Function Block
Output
Description
Obtain data address of type DWORD which is formed by input in1~in4, and
take the real variable “out” in the address.
926
APPENDIX 1 Function Block
The variables of PERSISTENT set in this library for each functional module are
shown in the table as below:
AIR_OPEN_CLOSE、
Simu_AO
SIMU_TC、SIMU_KG
R_F_SEL、TON_PT、
Simu_DO
TOF_PT
1.7.1 Simu_AO
Alias
Pins
Data Initial
Input Description Supplement Persistent
Type Value
simulating
IN_AO REAL controlled variable 0 0-100 No
of analog valve
927
APPENDIX 1 Function Block
Output
output value of
AV_D REAL 0 No
forward object
output value of
AV_R REAL 0 No
reverse object
Output Feature
Description
928
APPENDIX 1 Function Block
1.7.2 SIMU_DO
Alias
Pins
Data
Input Description Initial Value Supplement
Type
Output
Description
1. Detailed description
Functional block of simulation for switch valve is normally used by
connecting with functional blocks like sequential control. Switch order
output of sequential DV or RV connects with input port IN_DO of the
functional block; DL_OPEN and DL_CLOSE connects with input ports of
switch position feedback VI and V2 in sequential control.
929
APPENDIX 1 Function Block
930
APPENDIX 1 Function Block
1.8 Standard
1.8.1 RS
Figure 1.8.1-1 RS
Alias
Pins
Reset
RESET1 BOOL 0 No
Input
Output
Description
931
APPENDIX 1 Function Block
1.8.2 SEMA
Alias
Pins
Output
Internal Parameters
Data Initial
Parameter Description Supplement Persistent
Type Value
Description
932
APPENDIX 1 Function Block
1 1 1
1.8.3 SR
Figure 1.8.3-1 SR
Alias
Pins
Reset
RESET BOOL 0 No
Input
Output
Description
1.8.4 CTD
933
APPENDIX 1 Function Block
Alias
Counter of Decrease
Pins
Rising Edge
CD BOOL 0 No
Detection Pin
The variable
CV is initialized
LOAD BOOL 0 No
for PV when
LOAD is TRUE
Output
Q will output
Q BOOL TRUE when CV 1 No
is 0.
Internal Parameters
CD Detect
M BOOL 0 Yes
Variable
Description
934
APPENDIX 1 Function Block
It contains the functions which are used for initializing count value that equal to
0.If rising edge and count value are greater than 0,count value will decrease
one to output.
1.8.5 CTU
Alias
Counter of Increase
Pins
Rising Edge
CU BOOL 0 No
Detection Pin
The variable CV
is initialized for 0
RESET BOOL 0 No
when RESET is
TRUE
Output
When CV value
is greater than or
Q BOOL 1 No
equal to PV,Q will
output TRUE.
Internal Parameters
935
APPENDIX 1 Function Block
Description
It contains the functions which are used for initializing count value that equal to
0.If rising edge and count value are greater than 0,count value will decrease
one to output.
1.8.6 CTUD
Alias
Pins
Data Initial
Input Description Supplement Persistent
Type Value
The variable CV is
initialized for PV when
RESET BOOL LOAD is TRUE;but 0 No
when RESET is also
TRUE,CV=0.
936
APPENDIX 1 Function Block
The variable CV is
initialized for PV when
LOAD BOOL LOAD is TRUE;but 0 No
when RESET is also
TRUE,CV=0.
Output
When CV value is
greater than or equal
QU BOOL 1 No
to PV,QU will output
TRUE.
When CV value is
QD BOOL equal to 0,QD will 1 No
output TRUE.
Internal Parameters
CU Detect
MU BOOL 0 Yes
Variable
CD Detect
MD BOOL 0 Yes
Variable
Description
It contains the functions which are used for initializing count value that equal to
set value, and for counting increase/decrease.
1.8.7 NetvarTON
937
APPENDIX 1 Function Block
Alias
Pins
Data Initial
Input Description Supplement Persistent
Type Value
IN BOOL Input 0 No
Output
Q BOOL Output 0 No
Internal Parameters
M BOOL 0 Yes
Description
1.8.8 RTC
938
APPENDIX 1 Function Block
Alias
Pins
Controller
time when
PDT DT Set time first Yes
download
project
Output
When EN is
FALSE ,output will
output
1970-01-01-00-00 DT#1970-0
CDT DT : 00 : 00;In 1-01-00:00: No
reverse,output 00
increase time in
accordance with
second for PDT.
Internal Parameters
Initial
Parameter Data Type Description Supplement Persistent
Value
M BOOL 0 Yes
939
APPENDIX 1 Function Block
Description
RTC module can record initial time only, and then accumulate by the running
cycle of RTS itself. Since the system timing is not considered, the function
cannot be used to get the controller time.
In use:
1.8.9 TOF
Alias
Pins
IN BOOL Input 0 No
940
APPENDIX 1 Function Block
Output
Internal Parameters
M BOOL 0 Yes
Description
Timing Diagram:
1.8.10 TON
Function
941
APPENDIX 1 Function Block
Pins
IN BOOL Input 0 No
Output
Internal Parameters
M BOOL 0 Yes
Description
Timing Diagram:
1.8.11 TP
942
APPENDIX 1 Function Block
Figure 1.8.11-1 TP
Alias
Ordinary Timer
Pins
IN BOOL Input 0 No
Output
Internal Parameters
Data
Parameter Description Initial Value Supplement Persistent
Type
Description
Timing Diagram:
943
APPENDIX 1 Function Block
1.8.12 F_TRIG
Alias
Pins
Output
Q BOOL Output 0 No
Internal Parameters
Initial Supplement
Parameter Data Type Description Persistent
Value
M BOOL 1 Yes
Description
1.8.13 R_TRIG
944
APPENDIX 1 Function Block
Alias
Pins
Output
Q BOOL Output 0 No
Internal Parameters
M BOOL 0 Yes
Description
1.8.14 CONCAT
Alias
Combine strings
945
APPENDIX 1 Function Block
Pins
Output
Description
1.8.15 DELETE
Alias
Pins
Output
946
APPENDIX 1 Function Block
Description
1.8.16 FIND
Alias
Pins
Output
Description
1.8.17 INSERT
947
APPENDIX 1 Function Block
Alias
Insert string
Pins
Output
Description
1.8.18 LEFT
Alias
948
APPENDIX 1 Function Block
Pins
Output
Description
1.8.19 LEN
Alias
String length
Pins
Output
Description
949
APPENDIX 1 Function Block
1.8.20 MID
Alias
Pins
Output
Description
1.8.21 REPLACE
950
APPENDIX 1 Function Block
Alias
Pins
Output
Description
1.8.22 RIGHT
Alias
Pins
951
APPENDIX 1 Function Block
Output
Description
952
APPENDIX 1 Function Block
1.9 Util
1.9.1 HYSTERESIS
Alias
Pins
Initial
Input Data Type Description Supplement Persistent
Value
Output
Description
When input value is less than low limit value, output will be set to TRUE;
When input value is greater than high limit value, output will be set to TRUE;
When input value is between high and low limit value, output will be held.
1.9.2 LIMITALARM
953
APPENDIX 1 Function Block
Alias
Pins
Output
Input is between
IL BOOL high and low limit 0 No
value
Description
When input value is less than low limit value, output U will be set to TRUE;
When input value is greater than high limit value, output 0 will be set to TRUE;
When input value is between high and low limit value, output IL will be set to
TRUE.
1.9.3 BCD_TO_INT
954
APPENDIX 1 Function Block
Alias
Description
The algorithm(BCD_TO_INT) require type of input value for BYTE, and output
value for INT. There is the following function:
1.9.4 INT_TO_BCD
Alias
Description
The algorithm(INT_TO_BCD) require type of input value for INT, and output
value for BYTE. It completes transition of integer to BCD code.
1.9.5 BLINK
Alias
Pins
955
APPENDIX 1 Function Block
Data
Input Description Initial Value Supplement Persistent
Type
Time of low
TIMELOW TIME T#0S Yes
level
Time of high
TIMEHIGH TIME T#0S Yes
level
Output
Description
1.9.6 GEN
Alias
Pins
Initial
Input Data Type Description Supplement Persistent
Value
956
APPENDIX 1 Function Block
Selected Function
Type:
TRIANGLE
TRIANGLE_POS
RECEANGLE
SINUS
COSINUS
Defined Cycle
PERIOD TIME T#1S Yes
Period
AMPLIT Amplitude of
INT 0 Yes
UDE Function
Be re-set to 0 when
RESET BOOL 0 Yes
reset for 0
Output
Description
It can select type of cycle function, define functional cycle and amplitude.
1.9.7 PACK
957
APPENDIX 1 Function Block
Alias
Pins
B0 BOOL 0
B1 BOOL 0
B2 BOOL 0
B3 BOOL 0
Input Variable for BOOL
B4 BOOL 0
B5 BOOL 0
B6 BOOL 0
B7 BOOL 0
Description
958
APPENDIX 1 Function Block
1.9.8 UNPACK
Alias
Pins
Initial
Input Data Type Description Supplement Persistent
Value
Output
B0 BOOL 0 No
B1 BOOL 0 No
B2 BOOL 0 No
B4 BOOL 0 No
B5 BOOL 0 No
B6 BOOL 0 No
959
APPENDIX 1 Function Block
B7 BOOL 0 No
Description
1.9.9 PUTBIT
Alias
Pins
Initial
Input Data Type Description Supplement
Value
N BYTE Location 0
Output
PUTBIT DWORD 0
Description
1.9.10 EXTRACT
960
APPENDIX 1 Function Block
Alias
Pins
N BYTE Location 0
Output
Description
1.9.11 PD
Figure 1.9.11-1 PD
961
APPENDIX 1 Function Block
Alias
Pins
Output Y is equal
to input
Y_MANUAL REAL Y_MANUAL when 0 Yes
MANUAL for
TRUE.
Offset for
Y_OFFSET REAL manipulated 0 Yes
variable
Manual Operation
MANUAL BOOL 0 Yes
Switch
Output
962
APPENDIX 1 Function Block
Output exceed
LIMITS_ACTIVE BOOL mark of the upper 0 Yes
and lower limit
Description
1.9.12 PID
Alias
Pins
963
APPENDIX 1 Function Block
Output Y is equal to
input Y_MANUAL
Y_MANUAL REAL 0 Yes
when MANUAL for
TRUE.
Manual Operation
MANUAL BOOL 0 Yes
Switch
Output
Description
964
APPENDIX 1 Function Block
PID will convert to proportional controller when the differential time for 0.
1.9.13 PID_FIXCYCLE
Alias
Pins
proportionality
KP REAL 0 Yes
constant
Output Y is equal
Y_MANUAL REAL to input 0 Yes
Y_MANUAL
965
APPENDIX 1 Function Block
when MANUAL
for TRUE.
Offset for
Y_OFFSET REAL manipulated 0 Yes
variable
TRUE: manual, Y is
not influenced by
Manual
MANUAL BOOL 0 controller. FALSE, Yes
Operation Switch
controller determines
Y.
Set Y output to
RESET BOOL Reset Signal 0 Y_OFFSET and reset Yes
integral part
Output
When integral
part overflow that
is TRUE,
OVERFLOW BOOL controller will 0 Yes
pause to wait
next initialized
activation.
Description
966
APPENDIX 1 Function Block
PID will convert to proportional integral controller when the differential time for
0;
Cycle period is set by input parameter rather than internal function with
automatic.
1.9.14 CHARCURVE
Alias
Curve Algorithm
Pins
Tag Number of
N BYTE 0 Yes
characteristic curve
Output
Value after
OUT INT 0 Yes
Operated
Internal Parameters
967
APPENDIX 1 Function Block
Description
IN is the integer which input operational value .N is the byte which decided tag
number of characteristic curve and its range : 2=<N<=11.It generate a
characteristic row in array PX[0..10] and PY[0..10] for DINT. The variable OUT
of integer is operated value. The variable ERR of byte output error information.
1.9.15 RAMP_INT
Alias
Pins
Maximum Rising
ASCEND INT Value within 0 Yes
Interval of Time
Maximum Falling
DESCEND INT Value within 0 Yes
Interval of Time
968
APPENDIX 1 Function Block
Output
Value through
OUT INT 0 Yes
Rising and Falling
Description
The rising and falling of given function value for integer is limited.
1.9.16 RAMP_REAL
Alias
Pins
Data Initial
Input Description Supplement Persistent
Type Value
969
APPENDIX 1 Function Block
Maximum Rising
ASCEND REAL Value within Interval 0 Yes
of Time
Maximum Falling
DESCEND REAL Value within Interval 0 Yes
of Time
Output
Value through
OUT REAL 0 Yes
Rising and Falling
Description
The rising and falling of given function value for real is limited.
Input contains three real value, such as IN、ASCEND and DESCEND.IN is the
input of function; ASCEND and DESCEND is maximum increase and decrease
value in time interval, which define from TIMEBASE of TIME type. RESET is
set to TRUE to make RAMP_INT to reinitialize. Output is integer which is
function value through rising and falling limit. When TIMEBASE is set to t#0s,
ASCEND and DESCEND has nothing to do with the time interval
1.9.17 DERIVATIVE
Alias
Differential Algorithm
Pins
970
APPENDIX 1 Function Block
Data
Input Description Initial Value Supplement Persistent
Type
Output
Approximate
OUT REAL 0 Yes
Differential value
Description
1.9.18 INTEGRAL
Alias
Integral Algorithm
Pins
Initial
Input Data Type Description Supplement Persistent
Value
Input
IN REAL 0 No
Variable
Time
TM DWORD 0 Yes
Constant
971
APPENDIX 1 Function Block
Restart
RESET BOOL 0 Yes
Signal
Output
Approximate
OUT REAL 0 Yes
Integral value
Overflow
OVERFLOW BOOL 0 Yes
Mark
Description
1.9.19 STATISTICS_INT
Alias
Pins
Data Initial
Input Description Supplement Persistent
Type Value
Output
972
APPENDIX 1 Function Block
Output Average
AVG INT 0 No
Value
Description
1.9.20 STATISTICS_REAL
Alias
Pins
Data Initial
Input Description Supplement Persistent
Type Value
Output
Description
973
APPENDIX 1 Function Block
1.9.21 VARIANCE
Alias
Pins
Output
Output Variance
OUT REAL 0 No
Value
Description
974
APPENDIX 1 Function Block
1.10 HSSyslib
1.10.1 Get_Sys_Info
Alias
Pins
Main information of
MainInfo MAIN_INFO 0 No
task
Communication No
RedInfo RED_INFO
information
Description
1.10.2 Get_Task_Info
Alias
975
APPENDIX 1 Function Block
Pins
Output
dwCount:DWORD;
Task accumulatively
running times
dwCycleTime:
DWORD; Task run a
cycle that real cost
time.
dwCycleTimeMin:
DWORD; Task run a
cycle that really cost
minimum time.
TSAK_INFO dwCycleTimeMax:
TaskInfo StructureTyp DWORD; Task run a 0 No
cycle that really cost
e
maximum time.
dwCycleTimeAvg:
DWORD;Task run a
cycle that really cost
average time.
wStatus: DWORD;
Running Status of
Current Task
wMode: DWORD;
Running mode
Description
976
APPENDIX 1 Function Block
wMode=1:normal;
wMode=other:Occur mistake.
1.10.3 HSGetIECInterval
Function
Pins
Data Initial
Input Description Supplement Persistent
Type Value
1-the configuration
977
APPENDIX 1 Function Block
Output
Task
GetIECInterval DWORD Operating 0 Unit:ms
time
Description
HSGetIECInterval will output this cycle IEC task which has ran time when
bFix=0.
1.10.4 HSRTC
Alias
Pins
The remainder
of the
ms WORD 0 Unit: millisecond No
millisecond time
for controller
Description
The function block is running that output current time of controller. its time
format is ss.ms.SS stands for time of second level, ms stands for time of
millisecond level. When getting the controller time, the value of SS port will be
978
APPENDIX 1 Function Block
the second value that accumulated on the base of 1970-01-01 00:00:00. The
value of ms is the accumulation of each second in me level. If ms accumulate
to 1000, it can be converted into DT type by connecting DORD_TO_DT to SS
port.
1.10.5 HSTIMERJUDGE
Alias
Time Judge
Pins
Initial Persiste
Input Data Type Description Supplement
Value nt
I1 DT input1: time 0 No
Output
Internal Parameters
979
APPENDIX 1 Function Block
Only available in
HO BOOL Judge month 0 time compare Yes
calculation
Judge Yes
HS BOOL 0
second
Judge Yes
HI BOOL 0
millionsecond
Description
According to judgement type (HO, HD, HH, HM, HS, HI), judge if the set time is
consistent with the relationship of input time. If it is coincidence, then output
TRUE, or it will output FALSE.
1.10.6 NetLoad
Alias
Pins
980
APPENDIX 1 Function Block
Type Value
Network flow
eth0_load REAL 0 No
of net 128,Unit: KByte/s
Description
The function block is running that output current load and flow for each network
of controller. E.g. eth0_load = 7,eth0_per=0.56,eth1_load =
6,eth1_per=0.48 .That is to say, flow of net 128 for controller is 7 KByte/s, load
is 0.56%;flow of net 129 for controller is 6 KByte/s, load is 0.48%;
Network load of net 128 and 129 for general system aren’t exceed 20%.
1.10.7 Sysper
Alias
Pins
loader
Load REAL 0 No
percentage
981
APPENDIX 1 Function Block
Description
The function block is running that output current load of controller, and unit is
percentage.
E.g. Load of output is equal to 12, that is to say, load of controller is 12%.Load
of general system are less than 40%.
1.10.8 INIPULSE
Alias
INPULSE is to judge whether the moudle is power down and restart or clear
download.
PINS
Task cycle
CYCNUM WORD number if initial 10 Yes
pulse
Initial
Output Data Type Description Retain
Value
In MACS V5.2.5B, INIRum and CY_N will be automatically generated after the
combinite compilling in system configuration.
Description
• Please add retain properties before you define this function block
• You should add local parameter INRun, CY_N of word type in M zone, the
properties of which are not retain and the initial value is 16#AAAA and 0,
as shown below:
INIRum and CY_N will be automatically generated after the combine compiling
in MACS V5.2.5B.
2. Application Example
In the field with higher safe level, when main controller ia instantly power off
983
APPENDIX 1 Function Block
(1) At first define the instance of INIPLUS block and correlated variable
Add a POU named INIpou, the function of which is to flag whether the
controller is power on, as shown in Figure 1.10.8-3
984
APPENDIX 1 Function Block
(2) On the basis of safety requirement in field, the controller should has
different configuration when controller enters safe position in double
controller system. Take the example of HSSCS5 and HSPID:
985
APPENDIX 1 Function Block
Add POU scheme page and guide the PID outputs to safe state with ST
language, as shown in Figure 1.10.8-7
If the TS definition logic of PID is TRUE after the controller is power off and
restarted, it traces the specified TP value. The value of the trace tag TP
defined in POU scheme page is same as this tag.
If the TS of PID is not defined, INIPID is executed and guides the device to
sate state, which is specified by field.
According with the above logic, in the period of the set pulse is 1, the program
controls the PID to output to safe state (which is specified by field). In Figure
1.10.8-8, the set value of function block SEL is set by the safety state in field,
and should be same with the specification value in INIPID scheme page.
According with the above modification, INIpou and INIPID is new added POU
scheme page, and in MACS_PRG, INIpou is in front and INIPID is on the end.
3. Usage Notice
(1) Please add retain properties when using INIPULSE module, so as to
record the CYCNUM parameter value written before power off. If it is
not added, the output of initial pulse will not be effected, refer to the
restart flag is parameter in M zone.
(2) If the module and controller are power off at the same time, output
value is the initial value.
(3) If only the controller is power off, the module is hold before controller
algorithm starts. About 40 seconds are needed from the controller
restarts to outputs value. That is to say, the power up of controller will
not let the output to be initial value immediately even if the initial pulse
is added.
(4) Only one instance can be defined in the INIPULS project, as a result of
the local parameter in M zone has only one. If more than one
parameter are declared, the pulse band will subject to the shortest one.
If initial pulses with multiple band is needed, please add TP function
block after the module.
987
APPENDIX 1 Function Block
Summation
Summation
Functional History information
Parameters modified online
Blocks relevant to output
FM、PA、TS、C0、C1、C2、
C3、RM、BS、OU、OT、OB、AV、preRM、nowRM、
HSAlgMAN
MU、MD、MR、ME、AE、 prePA
FE
HSCSLAVE LC0~LC11、DI DV
FM、AO、AC、MS、MO、 SP 、 AM 、 TP11 、
MC、M1、M2、JC、RM、T1、TP12、TP22、TPMS、
HSCSLAVE5
T2、T3、DB、DL、OT、OB、TP31 、 TP32 、
QC、MQ TOFZH、ZLRT
ZH、ZF、IP、T1、T2、Z1、 HZ、HH、YF、FZ、
HSDLCTRL
Z2、Z3、Z4、JC FH
HSDLCTRL2 I3、I4、T1、T2、T3、HX、
FX、BH、BF、ZH、ZF、FM、
988
APPENDIX 1 Function Block
IP、Z1、Z2、Z3、Z4、JC
RL、T1、T2、HX、FX、ZH、HH、FH、TIMEWH、
HSDLCTRL5 ZF、IP、Z1、Z2、Z3、Z4、 TIMEWF、IP1、IP2、
JC、MR、SY IP3
SP、IC、OC、TS、CP、MC、
CM、CC、RM、PT、TI、KD、
PV、AV、CS、RS、
TD、OT、OB、SV、DI、OU、
DA、SV1、D1、U1、
HSPID DL、MU、MD、PK、OM、AD、
preRM 、 nowRM 、
TM、FA、MI、MS、MM、ME、
EK_1、DD
CE、TE、FE、PU、PD、AC、
CSRL、AE
L0~L8、TP、TC、TS、RT、 CT 、 YL 、 YF 、
HSSCS DE、SC、CM、OS、CS、OU、preopen、preclose、
SE、CP prestop
L0~L8、TP、TC、TS、SD、
JC、RP、DE、SC、QR、SY、TP_TP、TP_TC、IP1、
HSSCS5
CS、T1、CM、OS、CS、OU、IP2、IP3
RT
OT、CT、AM、TP_TP、
L0~L7、SD、MO、MC、TP、TP_TC 、 TP_TS 、
HSSCS6 TC、TS、JC、RP、SY、RT、TON_V1、TON_V2、
QR、SC、ZF、T1、T2 TP_RP 、 TPDV 、
TPRV、RTDV、RTRV
HSSSLAVE DI
HSVALVE OT、OB、L0、L1、TP、TC
TP11、TP12、TP22、
AO、AC、MO、MC、M1、
TPMS、TP31、TP32、
HSVALVE5 M2、MS、JC、T1、T2、T3、
TOFZH 、 ZLRT 、
DB、DL、OT、OB、QC、MQ
AMZH
HSVMAN
TA、TS、TM、OT、OB、SU、FB、AV、SP、preRM、
989
APPENDIX 1 Function Block
SD、BS、MD、RM nowRM、prePA
SP、PT、TI、TISI、OC、TS、
OT、OB、TD、KD、AD、SV、
PV、AV、RS 、D1、
HSVPID DL、TM、SU、SD、MPT、
ukout、U1、DD、EK_1
MK、MKD、FA、DI、OU、
CP、Mek
RS Q1
SEMA X
SR Q1
CTD PV M CV
CTU PV M CV
CTUD PV MU、MD CV
NetvarTON PT M、StartTime ET
TOF PT M、StartTime ET
TON PT M、StartTime ET
TP PT StartTime ET
F_TRIG M
990
APPENDIX 1 Function Block
R_TRIG M
HSALARMSPARK R1, R2
HSALM_DV HL, LL
HSDIGSW SW
HSLIM_HL HL, LL
HSLIM_RATE HL, LL AV
HSMEDSEL AV
X1ALM, X2ALM,
991
APPENDIX 1 Function Block
X3ALM, MD, DB
AV, ENDVALUE,
STEPVALUE,
HSSFT SW, RT
PRESWITCH,
CHANGSTATE
E_H MU、MD、UP、LO
ELC_E WG、MU、MD、BV
FM148F_H_E MU、MD、UF、LC
FM148F_H_ELC BV、UF
H_CT CP
s1_1、s2_1、b1_1、
A1、A2、SET、FT、OT、b2_1、flag_1、av_1、
H_CT_R
OB、CP Step 、 StepSum 、
Total、intial
WG、MU、MD、BV、BS、
H_E prerEng
SQ、LC、OM、IV
H_E_S MU、MD、LC
H_ELC WG、BV
s1_1、s2_1、b1_1、
A1、A2、SET、FT、OT、b2_1、flag_1、av_1、
H_ELC_R
OB、TP、WG、BV、CP Step 、 StepSum 、
Total、intial
992
APPENDIX 1 Function Block
TP、WG、BS、LA、LB、
H_RTD
LC、LG
TP、CT、WG、BS、cycle、
H_TC CT_FLAG
FILTERTIME
IV 、 MS 、 MC 、
HSACCUM AV、perRS、rs2
bPositiveAccum
HSCHARC PS、X、Y
CEQ、CNE、CGE、CLE、
HSCMP
CGT、CLT
HSDCSSUM SL DP、AV LJ
HSDOWN IN_1
HSFILTER IS、FM IK
HSONEFOLD VN、XV、YV AV
HSPOLY CF
HSQOR SL、S9
993
APPENDIX 1 Function Block
HSRS DV
AV、K1、K2、K3、K4、
HSSLOPE SW、AP
CT
HSTWOFOLD VN、XV、YV、ZV AV
HSUP IN_1
IC、DC、SW、SR、IV、
HSAMEMORY AV V1
OT、OB
ChangeState 、
IOF、D1、D2、HL、LL、 PremidValue 、
HSBAL2
OUTR StepValue、EndValue、
PreOF
HSCHARC1 PS、X1~X11、Y1~Y11 AV
HSSC O8、I_1~I_7
HSSC1 O16、I_1~I_15
HSSC2 O32、I_1~I_31
Summation
Functional Parameters modified History information
994
APPENDIX 1 Function Block
SS、RS、PS、TB、TE、
HSCURVE AV、TimeOut、LastSs TX
TL、BL、TT、YY
TS、TB、KI、DI、TI、OT、
HSINTG AV
OB、OTR、AD
HSLGCMP HL、LL DV
HD、DE、RST、IR、DR、
HSRAMP AV、LS
TL、BL、IV
HSSOP KG、TF、TS、OT、OB
KG、T1、T2、LGT、OT、 AV、PK、IN_1、IN_2、
HSSSMITH
OB OK_1
DV 、
HSTIMER TT、TC CURRENTCOUNT 、
PreSt
AIR_OPEN_CLOSE 、
Simu_AO FOP1
SIMU_TC、SIMU_KG
R_F_SEL 、 TON_PT 、
Simu_DO TON_D、TOF_D
TOF_PT
LIMITALARM HIGH、LOW
KP 、 TV 、
Y_MANUAL 、 Y、LIMITS_ACTIVE、
PD Y_OFFSET 、 CLOCK 、 D 、 INIT 、
Y_MIN 、 Y_MAX 、 Y_ADDOFFSET
MANUAL、RESET
KP 、 TN 、 TV 、
Y、LIMITS_ACTIVE、
Y_MANUAL 、
OVERFLOW 、
PID Y_OFFSET 、
CLOCK、I、D、INIT、
Y_MIN 、 Y_MAX 、
Y_ADDOFFSET
MANUAL、RESET
KP 、 TN 、 TV 、
Y_MANUAL 、
Y、LIMITS_ACTIVE、
Y_OFFSET 、
PID_FIXCYCLE OVERFLOW、I、D、
Y_MIN 、 Y_MAX 、
INIT、Y_ADDOFFSET
MANUAL、RESET、
CYCLE
996
APPENDIX 1 Function Block
ASCEND 、
DESCEND 、 OUT 、 OLD_IN 、
RAMP_INT
TIMEBASE 、 CLOCK
RESET
ASCEND 、
DESCEND 、 OUT 、 OLD_IN 、
RAMP_REAL
TIMEBASE 、 CLOCK
RESET
OUT、X1、X2、X3、
DERIVATIVE TM、RESET
T1、T2、INIT
COUNTER、
STATISTICS_INT RESET MN、MX
SUM
ENABLE 、
BLINK TIMELOW 、 OUT、CLOCK
TIMEHIGH
MODE 、 BASE 、
PERIOD 、
OUT 、 COUNTER 、
GEN CYCLES 、
CLOCK
AMPLITUDE 、
RESET
997
APPENDIX 2
How to Use ForceList Reader
Macs V5.2.5 provides a convenient tool ForceList Reader. It can be used it to
check out the forced variable list in a domain. This file is the introduction about
how to operate with this tool.
Step1. Click the icon of ReadForceList.exe, the start dialog will appear.
The names of existing projects are showed in the drop down list
like the following Figure 1, if you click the arrow button of List
of Project.
Step2. If a project was selected, the numbers of all control stations will be
shown in the table List of Station like Figure 1. By default, the
forced variable list is saved under folder TEST of CoDeSys
installation path which is shown in the edit box at the bottom of
the dialog box, such as Figure 2.
Step3. If you want to modify the path of list to be read, click Browse and
select a position from folder selecting dialog box Figure 3 and
Figure 4 show this operation.
999
APPENDIX 2How to Use ForceList Reader
1000
APPENDIX 2How to Use ForceList Reader
Step4. To select a control station which you want to read, please click the
corresponding number in the table List of station. For
multi-selection, press the key Shift or Ctrl by clicking numbers.
Then click Read to read the forced variable lists of the selected
control stations. Please see Figure 5 and Figure 6.
1001
APPENDIX 2How to Use ForceList Reader
Step6. After reading, a dialog box will appear which let you select whether
to display the result. Click OK to display and Cancel to check
out the txt file under the selected path, shown as in Figure 8.
1002
APPENDIX 2How to Use ForceList Reader
Figure 9 Result
1003
APPENDIX 3
Notes in Configuration
1. Use the device configuration of MACSV to add SM module of FCS, the
default address of module begins from two. Use the Conmaker to open
a project, and add a module in MACS Configuration manually, the
address of module is set to the number one automatically, which leads
the module not to communicate. Solution:Don’t set the address of
module as 1.
2. When run on Windows 2008 platform, please close the mmc.exe
process. After the computer starting, right click on the "Computer" icon,
and select "Manage" menu on the pop-up menu, as shown in Figure
1:
Pop-up "Server Manager" panel, choose the "Do not show me this
console at logon" check box, as shown in Figure 2:
1005
APPENDIX 3 Notes in Configuration
3. After uninstall server, the network card will be renamed if the server is
re-installed. For example, SNETA that exits before uninstalling may
becomes SNETB, which leads the server to communication failure.
Solution:After re-install the server, check the name of network card
each time. Make sure that the names of network card that 128 network
segment used are all SNETA, and the names of network card that 129
network segment used are all SNETB.
4. Window7 can not be used as server.
5. RTSLoader can not be used on the Windows 2008 platform.
6. SM020, FM020 module is added by the custom module command in
the Device Configuration application, and the module names of master
station and slave station must be set to FM020-M, SM020-M, FM020-S,
SM020-S respectively. For example, if a master SM020 need to be
added, the module name must be defined as SM020-M in the Device
Configuration application.
7. When the OS of OPS is Window7, UAC must be adjusted to the
minimum level,as shown in figure 3:
1006
APPENDIX 3 Notes in Configuration
1007
APPENDIX 3 Notes in Configuration
1008
APPENDIX 3 Notes in Configuration
9. Before you install OPS or ENG, install Open Office 2.2.1 first. Run the
scalc before starting the configuration.
10. If use Windows XP or 2003 for OPS, it is suggested to Set Theme to
“Windows Classic” in Display properties, as shown in Figure 6.
1009
APPENDIX 4
Notes of Using Controller
4.1 Overview
This part describes the notes of using controller. It is based on controller
version RTS525.
Name Description
Controller Version RTS525
Last Release Date
VARN Information
Compatible HMI HMI Version Compatibility
MAC V5.2.5B Supported
Hardware Type Compatibility
Compatible MCU
FM Series Supported
SM Series Supported
1011
APPENDIX 4Notes of Using Controller
RUN
STANDBY
ERROR
CNET
CNETA
CNETB
SNET1
SNET2
RNET
S1_LAN
S1_LINK
S2_LAN
S2_LINK
R_LAN
R_LINK
SM203
The names and functions of these status indicators are shown as in the
following table:
1012
APPENDIX 4 Notes of Using Controller
1013
APPENDIX 4Notes of Using Controller
Light STANDBY
This LED indicator means the state of single or redundant controller. In
addition, it can also indicate some downloading or redundant process. For
more details please refer to the following table:
Cases Status
Single MCU Flashing
Redundant MCUs Normal Master Off
Slave On
Downloading to master Downloading code to master. On
Downloading project files to master. Flashing
Slave is backing up Master copies project files to slave. Flashing
project from master.
Master copies project data to slave. On
CNET
This light means the state of control net. For more details please refer to the
1014
APPENDIX 4 Notes of Using Controller
following table:
Cases Status
Master card of DP is default. Off
Project files related to DP wasn’t Off
downloaded.
The project configuration related to DP is Off
Master
error.
Cases CNETA
DP control net A works normally. On
No data flow in DP control net A Off
Downloading code to master.
Connection of DP control net A is broken. Flashing
Downloading project files to master.
Cases CNETA
DP control net B works normally. On
No data flow in DP control net B Off
Downloading code to master.
Connection of DP control net B is broken. Flashing
Downloading project files to master.
• Special case: by redundant mode, the LED indicators CNET of master and
slave are in state on if there is no module in FCS. The LED indicators
CNETA and CNETB are off. But in this case the LED indicators CNETA and
CNETB of slave will be on, because in work state the master will send
packages to poll slave.
Light Error
For more details please refer to the following table:
1015
APPENDIX 4Notes of Using Controller
Cases Status
After power on On
Master or slave checks whether there are project files, or whether Flashing
these files are error.
Master or slave work normally. Off
1016
APPENDIX 4 Notes of Using Controller
Power on ERROR is on
RUN off
ERROR flashing
ERROR is on.
1017
APPENDIX 4Notes of Using Controller
LED indicators
ERROR of master and
slave are off
1018
APPENDIX 4 Notes of Using Controller
LED indicators
Connected with ERROR of master and
computer. slave are off
If there is data
communication in net
128 (129), SNET1
(SNET2) will flash.
When the both MCUs run normally, they may not synchronize after a time. In
this case, master will copy running data to slave and synchronize again. This
process is composed of two phases, as shown in the following table:
1019
APPENDIX 4Notes of Using Controller
LED indicators
STANDBY of master
flashing.
Downloading to master
LED indicators RNET
of master and slave
flashing.
1020
APPENDIX 4 Notes of Using Controller
LED indicators
Master is running and STANDBY of master is
copies project to slave. off.
LED indicators
STANDBY of slave
flashing.
1021
APPENDIX 4Notes of Using Controller
LED indicators
Downloading files to
STANDBY of master
master.
flashing.
LED indicators
STANDBY of master is
off.
Master is running and
copies project to slave.
LED indicators
STANDBY of slave
flashing.
1022
APPENDIX 4 Notes of Using Controller
Description Details
1023
APPENDIX 4Notes of Using Controller
Please see descriptions about plug and pull MCU and power outage in the
following table:
Table 4.3-2 Descriptions about Plug and Pull MCU and Power Outage
Description Details
Handling Don’t do plug and pull MCU or power outage operation during
method download or project redundancy.
1024
APPENDIX 4 Notes of Using Controller
Description Details
Important description:
Important
description The controller can’t login if its IP address network segment is
set too large, only refresh DOC or change the network
segment into 223, and add 223 segment IP in PC, after reset
the controller, Conmaker can not link to controller, and the PC
can not ping controller successfully all the time.
There are three network cards in controller, the one set by user
Cause analyze is first network card, the IP of the other two cards plus 1 in
order, if the first one is set as 223, then the following two will be
224 and 225, these addresses has exceeded the available
addresses, errors will occur.
1025
APPENDIX 4Notes of Using Controller
1026
APPENDIX 4 Notes of Using Controller
controller
program. The
controller resets
during
downloading.
Recommended
NO. Problem Cause analyze
operation
1027
APPENDIX 4Notes of Using Controller
Recommended
NO. Problem Cause analyze
operation
1028
APPENDIX 5
Data Classes and Item
1. AI-Analog Input
upper limit of
AH D F no no Positive
alarm
range, if
alarm is
lower limit of required:
AL D F no no
alarm
MU>=HH>=A
alarm HH H>=AL>=LL>
HH D F no no =MD;
limit
negative
range is
alarm LL opposite
LL D F no no
limit
Cold
junction
compensatio Analog compensation
CC S12 yes yes
n tag name tag name tag name of
thermocouple
tag
0:no
cold junction
CL compensatio I B1 yes no 1:cold
n junction
compensation
1029
APPENDIX 5Data Classes and Item
sample
CP I USI yes no Unit: second
cycle
alarm dead
DI D F no no default: 0
zone
tag
DS S32 S32 no no
description
turns to
formula
FN S12 UI yes no formula no.
name
after compile
reverse 0:positive
IS range I B1 yes no range 1:
attribution reverse range
1030
APPENDIX 5Data Classes and Item
common)
little signal
LD DF F yes no default: 0.2
cut
R-bridge
LG DF F yes no
resist
cut output
MM I USI yes no
type
Three kinds
of selection:
operation
OR I B2 yes yes none, record,
record
record and
sound.
please refer
to CAN
SA signal range I UI yes no
communicatio
n protocol
1031
APPENDIX 5Data Classes and Item
over-range
SD DF F yes no default: 0
dead zone
SQ square I B1 yes no
terminal row
TC S8 S8 no no
no
TN terminal no. S4 UI no no
UT dimension S8 S8 no no
2. AO-Analog Output
sample
CP I USI yes no Unit: second
cycle
tag
DS S32 S32 no no
description
1032
APPENDIX 5Data Classes and Item
range)
Three kinds
of selection:
operation
OR I B2 yes yes none, record,
record
record and
sound.
terminal row
TC S8 S8 no no
no
TN terminal no. S4 UI no no
UT dimension S8 S8 no no
3. DI-Digital Input
alarm
AF I USI yes no
attribute
Set Alarm
color
0-no alarm;
AT alarm level I USI yes no
1-red;
2-yellow;
1033
APPENDIX 5Data Classes and Item
3-white;
4-green;
tag
DS S32 S32 no no
description
description of
E0 S8 S8 no no
set 0
description of
E1 S8 S8 no no
set 1
Three kinds
of selection:
operation
OR I B2 yes yes none, record,
record
record and
sound.
interrupt 0:non-interru
SA I B1 yes no
attribute pt 1:interrupt
0:non SOE
attribute
SE SOE attribute I B1 yes no
1:SOE
attribute
1034
APPENDIX 5Data Classes and Item
terminal row
TC S8 S8 no no
no
TN terminal no. S4 UI no no
4. DO-Digital Output
tag
DS S32 S32 no no
description
description of
E0 S8 S8 no no
set 0
description of
E1 S8 S8 no no
set 1
Three kinds
of selection:
operation
OR I B2 yes yes none, record,
record
record and
alarm sound.
1035
APPENDIX 5Data Classes and Item
alarm sound.
terminal row
TC S8 S8 no no
no
TN terminal no. S4 UI no no
0:non SOE
attribute
SE SOE attribute I B1 yes no
1:SOE
attribute
terminal row
TC S8 S8 no no
no
TN terminal no. S4 UI no no
5. PI-Pulse input
upper limit of
AH D F no no
alarm
if alarm is
lower limit of required:
AL D F no no
alarm
MU>=HH>=A
alarm HH H>=AL>=LL>
HH D F no no =MD;
limit
LL alarm LL limit D F no no
1036
APPENDIX 5Data Classes and Item
alarm renew
DI DF F no no Default: 0
dead zone
tag
DS S32 S32 no no
description
coefficient/pul
EF DF F yes no
se
1037
APPENDIX 5Data Classes and Item
range)
The format of
OF output format UI USI no no
output value
Three kinds of
selection:
operation
OR I B2 yes yes none, record,
record
record and
sound.
terminal row
TC S8 S8 no no
no
TN terminal no. S4 UI no no
UT dimension S8 S8 no no
6. PO-Pulse Output
DS S32 S32 no no
tag
1038
APPENDIX 5Data Classes and Item
description
The format of
OF output format UI USI no no
output value
Three kinds of
selection:
operation
OR I B2 yes yes none, record,
record
record and
alarm sound.
terminal row
TC S8 S8 no no
no.
TN terminal no. S4 UI no no
UT dimension S8 S8 no no
7. AM-Internal Analog
AH D F no no Positive
upper limit of
range, if
1039
APPENDIX 5Data Classes and Item
alarm alarm is
required:
lower limit of
AL D F no no MU>=HH>=
alarm
AH>=AL>=
LL>=MD;
alarm HH reverse
HH D F no no range is
limit
opposite
alarm LL
LL D F no no
limit
alarm
AP monitor I B2 yes no
condition
current
AV DF F yes no
value
calculation
CP I USI yes no unit: second
cycle
calculation
CT I USI yes no
attribute
alarm
DI recover DF F no no default: 0
dead area
tag
DS S32 S32 no no
description
0-4 (no
alarm/
HH alarm special/urge
H1 UI USI no no
level nt/less
urgent/
common)
1040
APPENDIX 5Data Classes and Item
urgent/
common)
0-4 (no
alarm/
L1 alarm special/urge
L1 UI USI no no
value nt/less
urgent/
common)
0-4 (no
alarm/
L2 alarm special/urge
L2 UI USI no no
value nt/less
urgent/
common)
The format
output
OF UI USI no no of output
format
value
0: do the
over
check
OP physical I B1 yes yes
1: not do
range check
the check
Three kinds
of selection:
none,
operation
OR I B2 yes yes record,
record
record and
alarm
sound.
1041
APPENDIX 5Data Classes and Item
modify
PT DF F no no
pre-limit
standard
SV DF F yes no
value
UT dimension S8 S8 no no
0:fixed limit
alarm
1:variable
variable
limit alarm,
VA alarm I B1 yes no
implemente
condition
d by
assignment
algorithm
0:not do
variation
rate
variation
calculation
VL rate I B1 yes yes
1:do
calculation
variation
rate
calculation
current
AV DF F yes no
value
DS S32 S32 no no
tag
1042
APPENDIX 5Data Classes and Item
description
The format
output
OF UI USI no no of output
format
value
standard
SV DF F yes no
value
UT dimension S8 S8 no no
9. VI-Value Input
1043
APPENDIX 5Data Classes and Item
0: no alarm
monitor;
1:do
monitor
when alarm
monitor tag
is 0; 2: do
monitor
when alarm
monitor tag
alarm monitor
AP I B2 yes no is 0;
condition
3:continues
alarm
monitor;
alarm
monitor tag
name
should be
configured
in condition
1 and 2.
Unit:
CP sample cycle I USI yes no
second
0: normal
1:over
Multi-measur
tolerance
DF e over I B1 yes no
(set
tolerance
“calculation
error ”)
tag
DS S32 S32 no no
description
0-4 (no
lower alarm alarm/
H1 UI USI no no
level special/urge
nt/less
urgent/
1044
APPENDIX 5Data Classes and Item
common)
0-4 (no
alarm/
upper alarm special/urge
H2 UI USI no no
level nt/less
urgent/
common)
0-4 (no
alarm/
L1 alarm special/urge
L1 UI USI no no
value nt/less
urgent/
common)
0-4 (no
alarm/
L2 alarm special/urge
L2 UI USI no no
value nt/less
urgent/
common)
The format
OF output format UI USI no no of output
value
Three kinds
of selection:
none,
operation
OR I B2 yes yes record,
record
record and
alarm
sound.
TC S8 S8 no no
terminal row
1045
APPENDIX 5Data Classes and Item
no
TN terminal no. S4 UI no no
0:fixed limit
alarm
1:variable
variable alarm limit alarm,
VA I B1 yes no
condition implemente
d by
assignment
algorithm
tag
DS S32 S32 no no
description
Three kinds
of selection:
none,
operation
OR I B2 yes yes record,
record
record and
alarm
sound.
1046
APPENDIX 5Data Classes and Item
terminal row
TC S8 S8 no no
no
TN terminal no. S4 UI no no
alarm
AF I USI yes no
attribute
0: no alarm
monitor;
1: do monitor
when alarm
monitor tag is
0; 2: do
monitor when
alarm monitor
alarm monitor tag is 0; 3:
AP I B2 yes no
condition continues
alarm
monitor;
alarm monitor
tag name
should be
configured in
condition 1
and 2.
calculation
CT I USI yes no
attribute
1047
APPENDIX 5Data Classes and Item
tag
DS S32 S32 no no
description
description of
E0 S8 S8 no no
set 0
description of
E1 S8 S8 no no
set 1
Three kinds
of selection:
operation
OR I B2 yes yes none, record,
record
record and
alarm sound.
0:non SOE
attribute
SE SOE attribute I B1 yes no
1:SOE
attribute
tag
DS S32 S32 no no
description
1048
APPENDIX 5Data Classes and Item
description of
E0 S8 S8 no no
set 0
description of
E1 S8 S8 no no
set 1
13. TM-Time
conversion 0:time
CT I B1 yes no
type 1:interval
tag
DS S32 S32 no no
description
time
MS I UI yes no
millisecond
Three kinds
of selection:
none,
operation
OR I B2 yes yes record,
record
record and
alarm
sound.
1049
APPENDIX 5Data Classes and Item
year 1970
0:normal
1:error (total
total load
AC I B1 yes no means
attribute
module or
board)
0:normal
1:invalid
(device
invalid
DQ I B2 yes no configuratio
attribute
n error or
device
offline)
0:normal
Sub read 1:error (sub
DR back I SI yes no means
attribute specific
channel)
tag
DS S32 S32 no no
description
current 0: correct
DV I B2 yes no
value 1:fault
1050
APPENDIX 5Data Classes and Item
0:normal
1:error (sub
total load
MC I USI yes no means
attribute
specific
channel)
0:normal
Total read 1:error (total
RC back I B1 yes no means
attribute module or
board)
Lower bit
means
server A,
higher bit
means
server B;
RS run attribute I B2 yes yes
use lower
bit if there is
no
redundancy
0:normal
1:error
0: correct
device
initialization
SI configuratio I B2 yes no
1: error in
n attribute
initialization
0: device
nonexistent online
SO I B2 yes no
attribute 1: device
offline
Startup 0:run
SS I B2 yes yes
attribute 1:startup
(set when
1051
APPENDIX 5Data Classes and Item
DBS_OKS
is re-sent)
Lower bit
stands for
server A,
higher bit
stands for
server B;
work use lower
SW I B2 yes no
attribute bit if there is
no
redundancy
0:work
server
1:redundac
y
software
VR S32 S32 yes no
version
tag
DS S32 S32 no no
description
Init reference
FI I USI yes no
tag no.
IN Index no. S4 S4 no no
max tag
MN number in I USI yes no
group
1052
APPENDIX 5Data Classes and Item
real tag
RN I USI yes no
number
16. FM182
1:permit
Manual auto
AE I B yes yes 0: not
permit
permit
MAN current
AV DF F yes no
value
MAN output
BS DF F yes yes
offset
open over
C1 I C yes yes
moment
close over
C2 I C yes yes
moment
SLAVE in
DI DF F yes yes
dead zone
Max 32
tag characters/
DS S32 S32 no yes
description 16 Chinese
characters
SLAVE 0:correct
DV I B2 yes no
current value 1:fault
1053
APPENDIX 5Data Classes and Item
MAN quick
FD hand I B yes yes
decrease
1:permit
MAN trace
FE I B yes yes 0: not
permit
permit
MAN quick
FI I B yes yes
hand increase
MAN force
FM I C yes yes
hand switch
regulator
I1 DF F yes yes
output
position
I2 DF F yes yes
feedback
MAN range
MD DF F yes yes
lower limit
MAN hand
ME I B yes yes
permit
numerator
of
fraction,0-1
MAN hand
MR DF F yes yes 00. TD and
vary rate
TI varies
according to
it
MAN range
MU DF F yes yes
upper limit
1054
APPENDIX 5Data Classes and Item
numerator
of
fraction,0-1
MAN output
OA DF F yes yes 00. TD and
vary rate
TI varies
according to
it
MAN output
OB DF F yes yes
upper limit
MAN output
OT DF F yes yes
lower limit
Manual
program
PA I B yes yes
control auto
switch
FM182 tag
name in
PN tag name S12 S12 no no device
configuratio
n
can select
from
MAN run manual,
RM I USI yes yes
mode auto, track,
force
manual
SLAVE
RV I C yes yes
reverse value
No. of
station
SN station no. I USI no no
which
FM182 is in
MAN hand
TD I B yes yes
decrease
1055
APPENDIX 5Data Classes and Item
MAN hand
TI I B yes yes
increase
MAN trace
TP DF F yes yes
variable
MAN trace
TS I B yes yes
switch
Can select
from
common,
WM work mode I C yes no
MAN,
SLAVE 1,
SLAVE 2
1056
INDEX
A Control Net.................................................... 10
AI 1029 D
B Deleting Project............................................. 11
C DI 1033
E Grid ............................................................... 94
F HOLLiAS ........................................................... 2
Function Block .................................... 300, 303 Input Change Rate ....................................... 729
1058
INDEX
Modify Tag Value Online ............................. 142 privilege lock ............................................... 432
N Q
1059
INDEX
S System-Password .......................................... 18
1060
INDEX
View-Simulating............................................ 92 X
1061