TAS71-R001E Ver4 DIASYS-IDOL++ Function Block Reference Guide

January 10, 2017 | Author: George Asuncion | Category: N/A
Share Embed Donate


Short Description

Download TAS71-R001E Ver4 DIASYS-IDOL++ Function Block Reference Guide...

Description

TAS71-R001E TA Version 4.0 Issue Date December 1, 2006 REFERENCE MANUAL

Technical Access

++

Function Block Reference Guide

Notes

1

Please be aware that due to product improvements and modifications, the product description in this manual may differ in certain respects from the actual product.

2

This manual may not be distributed or reproduced in whole or in part without permission.

3

The contents covered in this manual are subjected to change without prior notice.

4

Please be aware that no liability whatsoever will be accepted for consequences arising from the use of this manual.

5

If the customer installs products other than the software or hardware supplied by Mitsubishi Heavy Industries in the personal computer or computer network running DIASYS Netmation®, the operation of the DIASYS Netmation® system devices including the controller (MPS) is not guaranteed.

6

Although every effort has been made to endure the clarity, correctness and accuracy of the contents, in case you required clarification on any point, or notice any error or discrepancy, please do not hesitate to contact us.



"Excel" is a trademark of Microsoft Corporation.



"VISIO" is a trademark of Visio Corporation.



DIASYS Netmation® is a trademark of Mitsubishi HeavyIndustoried, Ltd.

TAS71-R001E

Introduction DIASYS IDOL++ is a maintenance software to be installed in a maintenance tool of DIASYS Netmation®, a plant control system. This manual explains about function blocks, the elements used to create control logics in DIASYS IDOL++.

■ To users of this manual This manual was written for your understanding of the function outline when you describe control logics using DIASYS IDOL++ function blocks for the first time or plan to introduce a control system with DIASYS IDOL++. Please refer to "DIASYS Netmation® Logic Creator (FLIPPER) User's Guide (TAS71-U004E)" for the function details and the operation procedure.

■ Manual composition This manual consists o the following chapters Chapter 1

DIASYS IDOL++ funcion blocks

Chapter 2

Grammer of DIASYS IDOL++ funcion blocks

Chapter 3

Creating logic

Chapter 4

Standard method for logic description

Chapter 5

Usage of similar elements

Chapter 6

Writing Scripts

■ Others This operation manual corresponds to Version1.1.41US.

DIASYS Netmation®Manual Map The following lists DIASYS Netmation® manuals.

Category

System general (Describes the system general.)

Engineering Maintenance Station (EMS) (Describes an EMS tool used for setting and maintenance of the control system.)

System description Describes a system overview, characteristics, functions and specifications.

System Description

TAS71-E001E First Step Guide to DIASYS Netmation TAS71-E002E

Operation manual Describes how to operate the system.

Start Guide

TAS71-U001E

Reference manual Describes the graphic symbols. Also refer to the applicable operation manual. Installation guide Describes the software and hardware requirements, and installation procedures. Maintenance manual Describes maintenance of the system.

Maintenance Tool (EMS) User’s Guide(For Windows XP) TAS71-U052E

GraphicCreator (MARLIN) User’s Guide(For Windows XP) TAS71-U053E

LogicCreator (FLIPPER) User’s Guide

ListCreator (CORAL) User’s Guide

LoopPlate Creator (SCALLOP) User’s Guide (For Windows XP)

TAS71-U004E

TAS71-U005E

TAS71-U057E

Graphic Parts Reference Guide

Function Block Reference Guide

TAS71-R006E

TAS71-R001E

HMI (Describes the OPS, ACS and EMS.)

Multiple Process Station (Describes the MPS.)

Communication (Describes the communication settings.)

Storage Specifications and List of Spare Parts Used for Periodical Replacement TAS71-G002E

Hardware Specification

TAS71-G500E

Unit OPS&ACS User’s Guide (For Windows XP) TAS71-U056E Browser Operator Station User’s Guide TAS71-U008E

CARD Communication Client Application Guide TAS71-R003E

Unit OPS/EMS/ ACS Installaion/ Maintenance Guide (For Windows XP) TAS71-I051E

Unit OPS/EMS/ ACS Trouble Shooting Manual TAS71-M002E

MPS Hardware Installation Guide

CPS Installation/ Maintenance Guide

TAS71-I001E

TAS71-I003E

MPS Trouble Shooting Manual TAS71-M001E

Quality control/service (Describes quality control and services of the system.)

CARD Proxy Reference Guide TAS71-R007E

TAS71-R001E

Description rules

Note A supplementary note describes important supplementary information.

Caution A caution describes an operation or information that is required to prevent damaging a device or software, losing data, or creating ineffective results.

TAS71-R001E

TAS71-R001E

Table of Contents Introduction DIASYS Netmation®Manual Map Description rules Table of contents 1 DIASYS-IDOL++ Function Blocks ................................................................................. 1-1 1.1 Basic Concept....................................................................................................... 1-1 1.2 Control Logic......................................................................................................... 1-2 1.3 Logic Sheet ........................................................................................................... 1-3 1.4 Creation and Execution of Logic ........................................................................... 1-4 1.5 Function Blocks..................................................................................................... 1-5 1.5.1 Function Block Types .................................................................................... 1-5 1.5.2 Types of Logic That Can be Created ............................................................ 1-6 2 Grammar of DIASYS-IDOL++ Function Blocks ............................................................. 2-1 2.1 Logic Sheet and Drawing Elements ..................................................................... 2-1 2.2 Function Block Classification ................................................................................ 2-1 2.2.1 Input/Output Blocks ....................................................................................... 2-2 2.2.2 Control Arithmetic Blocks .............................................................................. 2-3 2.2.3 Operator Station Blocks ................................................................................ 2-3 2.2.4 Data Logging Blocks ..................................................................................... 2-3 2.2.5 System Blocks............................................................................................... 2-3 2.2.6 External Communication Blocks.................................................................... 2-3 2.2.7 Tag Names/Signal Names ............................................................................ 2-4 2.2.8 Parameter...................................................................................................... 2-5 2.3 Connection Lines .................................................................................................. 2-6 2.3.1 What Connection Lines are .......................................................................... 2-6 2.4 I/O Signal Distinction............................................................................................. 2-8 2.4.1 Function Blocks with Multiple Input ............................................................... 2-8 2.4.2 Display Format of Input Signals .................................................................... 2-8 2.5 Data between Sheets/Data inside Sheet ............................................................ 2-10 2.5.1 Data between Logic Sheet (CED/CEA/CEI)................................................ 2-10 2.5.2 Data inside Logic Sheet (CID)..................................................................... 2-11 2.6 Macro Elements .................................................................................................. 2-12 2.6.1 What a Macro Element is ........................................................................... 2-12 2.7 Quality Information Added to Function Blocks .................................................... 2-14 2.8 Function-Block Property ..................................................................................... 2-16 3 Creating Logic .............................................................................................................. 3-1 3.1 Basic Operation .................................................................................................... 3-1 3.1.1 Startup of LogicCreator (FLIPPER)............................................................... 3-1 3.2 Creating Logic Sheet ............................................................................................ 3-4 3.2.1 Creating New Process Block Configuration ................................................. 3-5 3.2.2 Adding a Process Block to a Process Block Configuration ........................... 3-7 3.2.3 Adding a Logic Sheet to a Process Block ..................................................... 3-8 3.2.4 Deleting a Logic Sheet and a Process Block .............................................. 3-12 3.3 Logic Sheet Drawing........................................................................................... 3-13 3.3.1 Element Drawing ......................................................................................... 3-13 3.3.2 Drawing Connection Lines .......................................................................... 3-20

i

TAS71-R001E

3.3.3 Undoing Connection Lines ..........................................................................3-22 3.4 Creating Sheet Data............................................................................................3-23 3.4.1 Executing Loop-Build...................................................................................3-23 3.5 Completing Drawing ............................................................................................3-25 3.6 Loading Sheet Data.............................................................................................3-26 3.6.1 Offline Sheet Loading ..................................................................................3-26 3.6.2 Online Sheet Loading ..................................................................................3-32 4 Standard Method for Logic Description.........................................................................4-1 4.1 Conversion of Engineering Value for Process Input Signals.................................4-1 4.2 Tracking Processing..............................................................................................4-1 4.2.1 What Tracking is ...........................................................................................4-1 4.3 Processing at Initialization.....................................................................................4-3 4.3.1 Initialization of Analog Signals .......................................................................4-4 4.3.2 Initialization of Digital Signals ........................................................................4-4 4.4 CRT Operation ......................................................................................................4-6 4.4.1 Examples of Writing the Operation Logic for Loop Plates .............................4-6 4.5 Data Logging Function (e.g. Warning Judgement, Report Data Collection) .......4-13 4.5.1 Warning Logic..............................................................................................4-13 4.5.2 Logic of Report Data Processing .................................................................4-14 4.6 Interface Logic with PLC and DCS Made by Other Companies..........................4-14 4.6.1 Interface with PLC and DCS........................................................................4-14 4.6.2 Common Data Domain for Communication .................................................4-15 4.6.3 Access Logic to I/O Data Domain................................................................4-15 5 Usage of Similar Elements............................................................................................5-1 5.1 Analog Switch........................................................................................................5-1 5.1.1 Types of Analog Switch Elements .................................................................5-1 5.1.2 Element Action ..............................................................................................5-2 5.1.3 Element Feature ............................................................................................5-3 5.2 Proportional Integral Controller .............................................................................5-3 5.2.1 Types of Proportional Integral Controller .......................................................5-3 5.3 One Shot ...............................................................................................................5-4 5.3.1 One Shot Types.............................................................................................5-4 6 Writing Scripts ..............................................................................................................6-1 6.1 Creating New Scripts.............................................................................................6-1 6.2 Checking the Operation of the Created Script.......................................................6-6 6.3 Creating Scripts Using Existing Scripts ...............................................................6-10 6.4 Specifications for Script Computing Blocks.........................................................6-12 6.4.1 Elements of a script .....................................................................................6-12 6.5 Script Syntax .......................................................................................................6-13 6.5.1 Structure of source code .............................................................................6-13 6.5.2 Arguments ...................................................................................................6-13 6.5.3 Variables......................................................................................................6-14 6.5.4 Operators.....................................................................................................6-14 6.6 Control statements ..............................................................................................6-15 6.6.1 Propagating quality ......................................................................................6-15 6.6.2 Comments ...................................................................................................6-15 6.7 Using Intrinsic Variables and Functions, and User-defined Functions ................6-16 6.7.1 Special intrinsic variables ............................................................................6-16 6.7.2 Arithmetic intrinsic functions ........................................................................6-17

ii

TAS71-R001E

6.7.3 Steam table functions.................................................................................. 6-18 6.8 Script Examples .................................................................................................. 6-33 6.9 Influence of Changing the Script Call Elements being Used .............................. 6-35 6.10 Operation Errors ............................................................................................... 6-37 6.11 Notes on Creating a Script................................................................................ 6-37 6.11.1 Tracking..................................................................................................... 6-37 6.11.2 Online sheet loading.................................................................................. 6-37 6.11.3 Script subroutine call ................................................................................. 6-37 Appendix-1 Function Block Description Appendix-1 Function Block List Glossary

iii

TAS71-R001E

iv

TAS71-R001E

1

1

DIASYS-IDOL++ Function Blocks This chapter explains basic concept and outlines of DIASYS-IDOL++ function blocks.

1.1

Basic Concept DIASYS-IDOL++ function blocks are the control logic description language for the plant control unit accumulated with MHI’s ample know-how on Plant Control. Application of DIASYS-IDOL++ function blocks can realize the plant automation that is satisfactory to users in all aspects such as reliability, performance, extensibility, etc. The basic concept of DIASYS-IDOL++ function blocks is shown below.

 High reliability based on our great achievement  Easy maintenance  Excellent control arithmetic function to flexibly cope with continous control and sequence conrol  Easy online logic monitoring and tuning

(1)

High reliability High reliability resulted from strict quality-control structure and is proved by numerous achievement.

(2)

Easy maintenance Control-arithmetic programing becomes available by drawing the control logic used on design drawings traditionally, on CRT of EMS. Special programing knowledge is not necessary.

(3)

Excellent control arithmetic function High-level control arithmetic is realized with the combination of 180 types of control arithmetic elements. Furhtermore, the continous and sequence controls are available for handling on the same logic. All the parts are prepared for the use in the control system such as Operator Station display method, data logging function of alarm detection logic, etc. and can be expressed on the same sheet.

(4)

Easy tuning Online tuning can be performed with monitoring control logic-arithmetic status on CRT screens.

1.1 Basic Concept 1-1

TAS71-R001E

1 1.2

Control Logic DIASYS-IDOL++ function blocks are the programing language which describes arithmetic logic in the Multiple Process Station (MPS). The logic is described on the maintenance tool and the program completed by this is executed in the Multiple Process Station (MPS). This chapter explains the logic control configuration in DIASYS-IDOL++. EMS Logic description and tuning are executed by using DIASYS-IDOL++ function block.

Printer

Unit Network

Local Network MPS Logic calculation is executed.

Fig. 1.2-1 Control system configuration

1.2 Control Logic 1-2

TAS71-R001E

1 1.3

Logic Sheet DIASYS-IDOL++ can perform arithmetic programing in the Process Station by drawing logic on the screen with LogicCreator (FLIPPER) , a function of the maintenance tool. A sheet unit of logic described on the screen is called “Logic Sheet”. The logic sheet is created with pasted function blocks. The following figure shows the example of the logic sheet.

Fig. 1.3-1 Logic sheet

1.3 Logic Sheet 1-3

TAS71-R001E

1 1.4

Creation and Execution of Logic Logic sheets are sorted into data called “Sheet Data” by the ‘Loop Build’ function and sent to the Multiple Process Station (MPS) by the ‘Loop Load’ function. The MPS receives and stores the sheet data in memory to execute the plant control according to the data.

(1)Drawing Logic sheets are drawn.

..................... ..................... ..................... ..................... ..................... ..................... ..................... ..................... ..................... ..................... ..................... ..................... ..................... ..................... ..................... ..................... ..................... ..................... ..................... ..................... ..................... ..................... Sheet data(n-1)

  







(2)Loop Build Sheet data are created for each logic sheet.

   Logic sheet (n-1)  Logic sheet (n-k)

Sheet data (n-k)

Process block (n)

DIASYS-IDOL++ function

(3)Loop Load Sheet data are sent to MPS

EMS (Engineering Maintenance Station) Unit network

..................... ..................... ..................... ..................... ..................... ..................... ..................... ..................... ..................... ..................... ..................... ..................... ..................... ..................... ..................... ..................... ..................... ..................... ..................... ..................... ..................... ..................... Sheet data (n) Sheet data(n-k) MPS (Multiple Process Station)

(4) Logic arithmetic processing Plant control and calculation are performed by signal output after the arithmetic according to sheet data. MPS function

Fig. 1.4-1 Logic creation & execution

1.4 Creation and Execution of Logic 1-4

TAS71-R001E

1 1.5

Function Blocks

1.5.1 Function Block Types Function blocks are parts to draw logic. All the parts are prepared for instrument design. The function blocks are mainly sorted into the following three types.

• Arithmetic block e.g.) AND,OR,PI, Timer, etc.

PI

• Instruments shown on design drawings e.g.) Electric valves, tuning valves, etc.

• Parts used in graphic drawings e.g.) Pumps, fans, tanks, etc.

1.5 Function Blocks 1-5

TAS71-R001E

1 1.5.2 Types of Logic That Can be Created The following logic can be created in the logic sheet. • Plant control logic Control logic such as main-steam temperature control, airstream quantity control, etc. • Operator Station display/Operation logic Manual operation for valves on the graphic displayed in Operator Station (color switch by the status change, flickering, etc.) and logic such as linking with process values of control loop plates etc. • Alarm-detection logic Logic such as alarm setting/judgement, etc. • Data creation logic for reports Data creation logic for reports by combining function blocks such as average process for printing-report data collection, ON time sizing, pulse sizing, etc. • Performance calculation block Complex calculation processsing like efficient calculation etc. is available for description with combination of logic using script language blocks. • Interface with PLC Interface logic with PLC, which makes plant total operation and control possible.

1.5 Function Blocks 1-6

TAS71-R001E

2

Grammar of DIASYS-IDOL++ Function Blocks This chapter explains the grammar of DIASYS-IDOL++ function blocks which are necessary for logic-sheet drawing. In other words, the following is the explanation about logic elements (I/O elements/arithmetic elements), connection lines, arrows and data delivery between logic sheets.

2.1

Logic Sheet and Drawing Elements A logic sheet screen has the following configuration. As the basic drawing layout, the signal that is input from the input elements on the left side of the screen is connected with a line and an arrrow for the alignement whose arithmetic result is output from the right side. If complex connection lines are allowed, input elements can be laid out at any location.

Fig. 2.1-1 Logic sheet screen

2.2

Function Block Classification There are five types of function blocks as follows. • Input/Output blocks • Control arithmetic blocks • Operator Station blocks • Data logging block • System blocks • External Communication Blocks

2.1 Logic Sheet and Drawing Elements 2-1

2

TAS71-R001E

2

2.2.1 Input/Output Blocks Input/output blocks are elements for input or output of Process Station I/O signals and other logic sheet signals onto the logic sheet screens. There are eight types of them as follows.

Table 2.2-1 Input/output elements Code AI DI AO DO PU CEA

Name Analog input Digital input Analog output Digital output Pulse input Analog between sheets

CED

Digital between sheets

CEI

Integer between sheees

Contents Analog input signal for Process Station Digital input signal for Process Station Analog output signal for Process Station Digital output signal for Process Station Pulse input signal for Process Station Transmission/receipt elements of analog signals between different logic sheets Transmission/receipt elements of digital signals between different logic sheets Transmission/receipt elements of integer valus as quality information between different logic sheets

For example, analog input signals and digital input signals in Process Station can be captured into logic with ‘Analog Input (AI)’ and ‘Digital Input (DI)’ of input/output elements. In the same manner, the output of analog and digital signals to ‘Analog Output (AO)’ and ‘Digital Output (DO)’ by logic can output them as Process Station output signals.

AI Input to logic DI

AO Output from logic DO

Logic sheet

MPS

Originator

ON/OFF command Analog command

ON/OFF signal

Fig. 2.2-1 I/O blocks and I/O signals

Signals of AI, AO, DI, DO, and PU are laid out to I/O modules which perform the input/ output.(DIASYS-IDOL ++ System Window performs the layout.) Regarding ‘CEA’, ‘CED’ and ‘CEI’, please refer to “Chapter2-5. Data between Sheets/Data inside Sheet”.

2.2 Function Block Classification 2-2

TAS71-R001E

2.2.2 Control Arithmetic Blocks

2

Control arithmetic blocks have calculation functions to execute control logic. They execute the calculation designated by each block according to the signal values connected to the arithmetic element, in order to output the result. Control logic are described with combination of control arithmetic blocks. Refer to “Appendix-1. Function Block Description” for the detailed functions of the elements.

2.2.3 Operator Station Blocks Operator station blocks are used for drawing system diagrams such as process flow, plant flow, etc. They are prepared with control and monitoring blocks for plant configuration devices, e.g. indicators (digital indicators/firm-shape analog indicators), auxilliaries (tank level/pumps). Refer to “DIASYS-IDOL++ Graphic Parts Reference Guide (TAS71-R006E)” for the detailed functions of each block.

2.2.4 Data Logging Blocks Data logging blocks are used for warning judgement and printing-report data collection included in the data logger function. Refer to “DIASYS-IDOL++ Graphic Parts Reference Guide (TAS71-R006E)” for the detailed functions of each block.

2.2.5 System Blocks These are blocks for analog I/O, digital I/O, and integer value I/O used by the system in Process Station. They are not used in normal logic but only for Process Station design. Refer to “Appendix-1. Function Block Description” for the detailed functions of the elements.

2.2.6 External Communication Blocks The external communication blocks support the communications with networks outside Netmation, such as IEC60870 communication. For details about the features of each block, see “Appendix-1 Explanation of Functional Blocks”.

2.2 Function Block Classification 2-3

TAS71-R001E

2

2.2.7 Tag Names/Signal Names Tag and signal names can be set up in function blocks. They are set up when the logic sheet is drawn. Please refer to “DIASYS Netmation® LogicCreator (FLIPPER) User’s Guide (TAS71-U004E)” for the detailed explanation.

Fig. 2.2-2 Tag/signal names

AI example

AO example

Signal name :FUEL OIL SUPPPLY PRESS-2 Signal name :CONTROL OIL SUPPLY PRESS Tag name :BTMP-AI002 Tag name :ABC-RB.01 Signal range :0.0 to 1.0% Signal range :0.0 to 1. 0%

2.2 Function Block Classification 2-4

TAS71-R001E

2.2.8 Parameter

2

Parameters can be defined with external input and fixed values. Principally, those for function blocks with possibility to become variable in control can perform external input. However, there are function blocks such as ‘Polyline Function (FX)’ with many parameters and special-structured parameters like loop names of ‘Loop Arithmetic Call (CLL)’, which can only set up with fixed-value definition. Function block codes are used as parameters if there are external input corresponding to the parameters. If there are not any input, they will perform arithmetic using the interior parameter of the function blocks. Parameters can be shown as below for the same function block.

(1)

In the Case of Exterior Input

(2)

In the Case of No Exterior Input

The parameter set up in the property is used.

2.2 Function Block Classification 2-5

TAS71-R001E

2

2.3

Connection Lines

2.3.1 What Connection Lines are In the logic sheet screen, the data captured by I/O blocks such as ‘Analog Input (AI)’ and ‘Digital Input (DI)’ are connected to arithmetic elements with connection lines. Control logic is formed by input of arithmetic-element output signals to another arithmetic elements by connection lines. Moreover, input of arithmetic-element output signals to output elements like ‘Analog Output (AO)’ and ‘Digital Output (DO)’ with connection lines can output command values and control arithmetic results from the MPS. In short, the connection lines show the data flow.

(1)

Types of Connection Lines DIASYS-IDOL++can handle mixture of analog data such as temperature/pressure and digital data such as ON/OFF and open/close in one logic sheet. These two data types are drawn with the distinguished connection lines. There is also an I/O connection line for the data handling integers (4 byte integer numbers) Since there are three types of connection lines prepared for the element menu of the logic-sheet creation screen, they are used according to the data types.

Bold line for analog data Thin line for digital data Bold line for integer data

Fig. 2.3-1 Connection line types

2.3 Connection Lines 2-6

TAS71-R001E

(2)

Connection Error for Lines

2

It will be an error if lines that do not conform are tried for connection because the data types are determined for the connection according to the logic element type.

Though an ‘AI’ element outputs analog data, they are connected with the digital-data line.

Though a ‘S R’’ element inputs digital data from No.1&2 inputs, the analog data line is connected with No. 2 inpout.

Fig. 2.3-2 Example of wrong connections

2.3 Connection Lines 2-7

TAS71-R001E

2

2.4

I/O Signal Distinction

2.4.1 Function Blocks with Multiple Input Some function blocks are input with multiple signals. Those blocks are classified into two types according to the input signal handling. (1)

Those that handle all input signals in the same manner as far as the meaning is concerned

e.g.)AND, OR, ADD, etc. (2) Whose input signals have different meanings in terms of function-block arithmetic processing. e.g.)SSR, DLT, PI, etc. In item (2), logic should be described by distinguishing I/O signals.

2.4.2 Display Format of Input Signals Input signals with different meaning have codes according to the meaning. They can be distinguished by displaying the code on the signal line when the logic is described. Please refer to “Appendix-2. Function Blocks Description” for the details.

Fig. 2.4-1 Example of Input 1 description in PI element

2.4 I/O Signal Distinction 2-8

TAS71-R001E

Also, arrows can be used to distinguish the input. However, this method can be applied to four input types at the maximum. The same arrows are displayed from the input 5 onward as those starting from input 1. The following are the shapes of four arrrows.

Input 1 Input 2 Input 3 Input 4

Fig. 2.4-2 Arrow types

Fig. 2.4-3 Example of Input 1,2,and 3 in T element

2.4 I/O Signal Distinction 2-9

2

TAS71-R001E

2

2.5

Data between Sheets/Data inside Sheet

2.5.1 Data between Logic Sheet (CED/CEA/CEI) Because control logic processed in MPS are created separately in multiple logic sheet, data delivery between the logic sheet is necessary. Those elements are‘data between logic sheet’.

Table 2.5-1 Data between logic sheets Symbol CEA

Name Analog between sheet

CED

Digital between sheet

CEI

Integer between sheet

Contents Transmission/receipt elements of analog signals between different logic sheet Transmission/receipt elements of digital signals between different logic sheet Transmission/receipt elements of integer values as quality information between different logic sheet

Data delivery between the same-type elements in CEA and CED

Logic output

Logic input

Logic output

Logic input

Logic sheet A

Logic sheet B

Logic input

CEA and CED, output signals in the logic sheet are used in the logic sheet B/C. Regarding CEA,CED and CEI, the data delivery is available if same objects are used in output and reference sides.

Logic input

Logic sheet C

Fig. 2.5-1 Data delivery between logic sheet

2.5 Data between Sheets/Data inside Sheet 2-10

TAS71-R001E

2.5.2 Data inside Logic Sheet (CID)

2

Data inside the logic sheet are I/O elements for data delivery inside different logic sheet. They are used to avoid the logic from becoming hard to see because the connection is complicated for the direct connection in the sheet. CID’ elements are used to link signal data in the same logic sheet in the Process Station.

Table 2.5-2 Data inside logic sheet Synbol CID

Name Connection inside the sheet

Contents Transmission/receipt elements of signals inside the same logic sheet

Data delivery between CID elements Logic output

Logic output

1

1

CID

CID

2

2

CID

CID

Logic input

Logic input

Logic sheet

CID links those with concordant name in the same sheet

1

Logic input

CID

2

Logic input

CID

Fig. 2.5-2 Data delivery inside logic sheet

2.5 Data between Sheets/Data inside Sheet 2-11

TAS71-R001E

2

2.6

Macro Elements

2.6.1 What a Macro Element is Macro elements are functions to handle the logic combined with multiple standard arithmetic elements in the same way as ordinary arithmetic elements by registering them as one elements.

(1)

Usage of Macro Elements Diagrams can be created efficienty by collecting the parts with many same logics in the diagram such as auxillary-unit startup and shutdown logics, as one macro element.

In the case of not using macro elements

In the case of using macro elements

Fig. 2.6-1 Example of macro element usage

2.6 Macro Elements 2-12

TAS71-R001E

(2)

Macro Element Creation

2

When logics are created with macro elements, it is necessary to register those created. Drawing and registration of macro elements are performed in the same VISIO based screen as the logic sheet. Please refer to “DIASYS Netmation® LogicCreator (FLIPPER) User’s Guide (TAS71-U004E)” for the detailed procedure. Here, the following shows the first registration screen drawn with macro elements by LogicCreator (FLIPPER).

(3)

Parameter Setting Concerning the macro elements created in (2), the properties such as Name, Name1, Tag, etc. are to be set up in the same manner as that of other function blocks. Please refer to “DIASYS Netmation® LogicCreator (FLIPPER) User’s Guide (TAS71-U004E)” for the detailed procedure.

2.6 Macro Elements 2-13

TAS71-R001E

2

2.7

Quality Information Added to Function Blocks

(1)

What Quality Information is DIASYS-IDOL++ function blocks have various quality data (the data set and input signal abnormality) other than the process data as additional information. For instance, logic data have the quality as attached information and are transmitted via the function blocks to change the quality of data display in Operator Station. The transmission rules and the designation if the transmission is peformed or not are different depending on the property of the logic composed of function blocks. Therefore, arithmetic-element calculation methods etc. are previously defined using quality judgement, element output in case of abnormality, and quality-abnormality signals for the input. The quality information is displayed when the property is opened during OPS logic-status monitoring.

Example) T

FX

Input signal quality on the selected side is transmitted to the output.

Input signal quality is transmitted to the output. The green display changes as soon as it is judged as quality abnormality.

2.7 Quality Information Added to Function Blocks 2-14

TAS71-R001E

(2)

Quality-Information Types

2

Data quality has a structure to distinguish if the following six items and their factors are occurring in their functions or transmitted from input signals. Table 2.7-1 List of quality information Quality factor Range-over upper limit Range-over lower limit Data-access unavailability Block-arithmetic error

Scan exclusion Data set

(3)

Contents AI signal range is over the upper limit. AI signal range is over the lower limit. The access is not performed normally to I/O controller or I/O module. The communication is stopped for communication data between systems. The calculation is not performed normally following the arithmetic specification. (Zero division, negative square-root extraction, etc.) The scan exclusion is performed manually. The data set is performed manually.

Thinking on Quality Transmission Input signal quality is transmitted to the output quality for arithmetic performance of function blocks. The action is based on the following rules. Table 2.7-2 List of quality transmission Items Operator Station display and printing reports Digital input signal Function blocks with clear I/O relation

The same number of multiple input Signal selection

Blocks performed with data operation

Rules To display and print the process status on the Operator Station screen or the reports, the colors and the display format should be modified according the quality. The input signal quality should be all transmitted for the Operator Station interface blocks. Regarding the digital signal input to function blocks, it is not targeted as the quality transmission principally. The quality is transmitted for those whose output are decided by one input signal such as line-shape conversion, polyline function, etc. On the other hand, the quality transmission is not performed for those whose calculation results are output for multiple input signals, e.g. proportional integral, analog memory, etc. When multiple input such as addition, multiplication, etc. have the same meaning, the quality OR is transmitted for each input signal. Regarding the function blocks that select one signal from multiple input such analog switching/high value selection, etc., the calculation is implemented ignoring the quality and the selected signal quality is transmitted to the output. Regarding the function blocks performed with scan exclusion and data set in the data operation functions, only the quality for scan exclusion and data set is output regardless of the I/O signal quality.

2.7 Quality Information Added to Function Blocks 2-15

TAS71-R001E

2

2.8

Function-Block Property The property of function blocks is shown below. • Items required of setting Parameter used in control arithmetic Signal/tag names used in I/O, warnings, etc. Engineering-value range used in I/O processing of AI and AO • Items not required of setting There are elements added with tag and names but not required of input basically because they are significant only when they are released . e.g.) arithmetic element names.

2.8 Function-Block Property 2-16

TAS71-R001E

3

Creating Logic 3 In this chapter, the basic procedure is explained for the control-logic creation using DIASYSIDOL++ function blocks. Please refer to “DIASYS Netmation® LogicCreator (FLIPPER) User’s Guide (TAS71-U004E)” for the detailed explantion of logic creation operation on the maintenance tool.

3.1

Basic Operation LogicCreator (FLIPPER) start-up operation is explained here. First of all, it is necessary to start up ORCA View to create logic.

3.1.1 Startup of LogicCreator (FLIPPER) (1)

Start up ORCA View. (ORCA View is a man-machine interface for ObjectDatabase (ORCA). For the start-up, please refer to “DIASYS Netmation®, Maintenance Tool, DIASYS-IDOL++ User’s Guide (TAS71-U002E)”.

(2)

Choose [View] in the menu bar. Choose “Window” and then “Logic Window” by the mouse left button. You can also choose Logic Window from the Window pull-down menu under the tool bar.

3.1 Basic Operation 3-1

TAS71-R001E

(3)

The Logic Window screen is displayed.

(4)

Left double-click the Logic Window tag.

3

Magnified

(5)

The following displays groups and logic sheet in the process blocks and the process block configurations that were already created.

Process block configuration

Process block

3.1 Basic Operation 3-2

TAS71-R001E

(6)

Left-click the tag of the group you wish to open. The logic sheet that belongs to the chosen group sheet is displayed.

(7)

Right-click on the logic sheet and then choose [Open].

(8)

3

VISIO2000-base LogicCreator (FLIPPER) is started up.

3.1 Basic Operation 3-3

TAS71-R001E

3.2

Creating Logic Sheet

3 A logic sheet is created with the following composition.

Logic Window Process Block Configuration Process block Block1 Sheet Sheet Process block Block2 Sheet Sheet

Fig. 3.2-1 Logic-sheet configuration diagram

Note Process block configurations and process blocks are used for sorting out and saving the sheets as directories.

3.2 Creating Logic Sheet 3-4

TAS71-R001E

3.2.1 Creating New Process Block Configuration The following operation should be implemented for creating a new process block configuration. (1)

Right-click Logic Winow or choose Create New in [Object (O)] in the menu bar.

(2)

The “Create New - Class Selection” dialogue box is displayed. Click “Territory”. When creating a logic sheet by using LogicCreator (FLIPPER), choose the “Territory” tab and then “Logic group”. “Territory” sheet:It is one unit that mainly stores the list that belongs to a group and has the same structure as that of a Windows folder. “Design” sheet:Body object itself is stored. “Collection” sheet:It is an aggregate of data included in objects and stores data with array structures. Choose the [Next] button.

(3)

The “Property Setup for FIN Object” dialogue box is displayed. Input a name of the process block configuration in the “Name” (e.g.: ABC). Here, input the “BBB” in it as an example. “Name” is not usually used for English-version system. It is used in the case of switching to other languages. Please refer to Chapter 2.6.16 for the method of switching the indicated language. The default, “Logic group” should remain here as an example. Input information on supplementary data in the “Tag” as the need arises. The default, “Key” should remain here as an example. As a general rule, a recognition number of Control System is to be input as a Tag. -/*Choose the [Complete] button.

Note Input of “Property setup” is defined when the letters turn blue.

3.2 Creating Logic Sheet 3-5

3

TAS71-R001E

3

(4)

A new process block configuration, “BBB” is created.

3.2 Creating Logic Sheet 3-6

TAS71-R001E

3.2.2 Adding a Process Block to a Process Block Configuration (1)

Right-click a process block configuration where a process block will be added. Then choose [Create New].

(2)

The “Create New - Class Selection” dialogue box is displayed. Group” in “Territory” and choose the [Next] button.

(3)

The “Create New - Property Setup for FIN Object” dialogue box is displayed. Input a name of the process block configuration in the “Name1” (e.g.: ABC). Here, input the “Logic” in it as an example.

Click “Logic

“Name” is not usually used for English-version system. It is used in the case of switching to other language. Please refer to Chapter 2.6.16 for the method of switching the indicated language. The default, “Logic” should remain here as an example. Input information on supplementary data in the “Tag” as the need arises. The default “Key” should remain here as an example. As a general rule, a recognition number of Control System is to be input as a Tag. Choose the [Complete] button.

Note Input of “Property setup” is defined when the letters turn blue.

3.2 Creating Logic Sheet 3-7

3

TAS71-R001E

(4)

Left double-click the BBB indication tag. You can see that the process block, “Logic” is added to the process block configuration.

3

3.2.3 Adding a Logic Sheet to a Process Block (1)

Right-click the process block where a logic sheet is added and then choose [Create New].

(2)

The “Create New - Class Selection” dialogue box is displayed. Choose “Downloadable logic sheet (standard)” in the “Design” sheet. Choose the [Next] button.

(3)

The “Create New - Body Object Selection” dialogue box is displayed. Check “Create new Body Object”. Choose the [Next] button.

3.2 Creating Logic Sheet 3-8

TAS71-R001E

Note

3 “Create new Body Object” is chosen as default. In case body objects already exist and new files are created from their diversion, choose “Select Existing Body Object”. In this case, there are two methods, namely, the one to select appropriate objects from the list and the other to find them from the “TAG Input/Select” column.

(4)

The “Create New - Property Setup for Body Object” dialogue box is displayed. Input the required information in the item. Although there are not any properties that need input without fail here, input of “Name1” will make it easier to recognize the data. Input TOP2 in the “Name1” and MDS for “Author” Choose the [Next] button. Name: Name1: Tag: Revision number: Revised date: Drawing No.: Create date: Author: Reviser: Comment: Submit status: Access Flag:

This is not used in English-version system. Input a name of a logic sheet. Input a sheet number. Please do not input as it is automatically processed. Input a revision date. Input a drawing number. Input a date of the file creation Input a name of the person who created the file. Input a name of the person who revised the file. Input a reason for the revision. Input a status of submitting drawing. Please do not input due to its exclusive control purpose

Note Input is defined when the letters turn blue.

3.2 Creating Logic Sheet 3-9

TAS71-R001E

3

(5)

The “Create New - Property Setup for Fin Object” dialogue box is displayed. Width, height and color of the background are set up for monitoring logic computing status. Input of the background width and height is not required as LogicCreator (FLIPPER) automatically calculates them from the sheet size established at the time of Loop-build and stores them in this domain. Background width for monitoring view:

Width number value (pixel value)

Background height for monitoring view:

Height number value (pixel value)

Background color for monitoring view:

Input a number from the dialogue box.

The pull-down menu is displayed by clicking a color type in “Date Type” when the background color is input for monitoring view. On clicking the pull-down menu, the Netmation Color dialogue box is shown. Choose a color number (001 to 430). Here, choose “005”for yellow as an example. Choose the [Complete] button.

3.2 Creating Logic Sheet 3-10

TAS71-R001E

3

Spread

(6)

Left double-click the “Logic” indication tag. The “TOP2” logic sheet is displayed.

3.2 Creating Logic Sheet 3-11

TAS71-R001E

(7)

3

When describing the logic, right-click the logic sheet and choose [Open]. Then the Create New dialogue box is displayed. Choose “Template” by a click and then the [OK] button. *Template.vsd:

Regular computing logic sheet

Toplogic.vsd: Computing logic sheet unavailable for tracking VISIO 2000-base LogicCreator (FLIPPER) is started up.

3.2.4 Deleting a Logic Sheet and a Process Block (1)

When choosing a logic sheet or a process block by right-click and then [Delete], the logic sheet or the process block is deleted.

3.2 Creating Logic Sheet 3-12

TAS71-R001E

3.3

Logic Sheet Drawing 3 The procedure of drawing is explained with the following logic sheet as an example. (1)

This logic sheet is a logic to output the sum of two AI (Analog Input) signals to AO (Analog Output) signal.

3.3.1 Element Drawing (1)

‘AI277’ is to be drawn. Choose the element to be drawn from a stencil and drag it to the position you wish it to be drawn. Choose ‘AI’ in the “PROCESS FUNCTIONS”. ‘AI’ element is drawn at the designated position.

(2)

The “Create New - Body Object Selection” dialogue box is displayed. Put a mark on “Create new Body Object” as an example and then choose the [Next] button. In case of using the data that were already set up by other Window, etc., choose “Select existing Body Object” and then an appropriate tag.

Note When AI is newly created by LogicCreator (FLIPPER) as the above, it should be set with necessary setup by other Window (I/O allocation of System Window).

3.3 Logic Sheet Drawing 3-13

TAS71-R001E

3

(3)

The “Create New - Property Setup for Body Object” dialogue box is displayed. The property should be set up. Input each item that you prefer to set up from “Name”(Signal Name) to the Input limit high (%) . Choose the [Next] button after the input. Name: Name1: Tag: Signal type: Signal range low: Signal range high: Input limit low (%): Input limit high (%):

This is not used in English-version system. Input a signal name. Input a tag name. Otherwise, AI*(* is a number) is automatically numbered as default. Input a number value for a signal type. Input the minimum number value for a signal range Input the maximum number value for a signal range. Input the minimum number value for the input limit. Input the maximum number value for the input limit.

3.3 Logic Sheet Drawing 3-14

TAS71-R001E

(4)

The “Create New - Property Setup for FIN Object” dialogue box is displayed. There is no item for input. Choose the [Complete] button.

3

Note The signal name and the tag name should be within 64 single-byte characters and 32 respectively.

(5)

The “Property” dialogue box is displayed. After confirming the name of the data shown in the “General” item, choose the [OK] button. In case of changing the property contents such as a signal name, a tag name, etc., change the setup by selecting the “Edit Property” button. For the items to be changed, follow the same method as shown in Chapter 2.2.1 (3).

3.3 Logic Sheet Drawing 3-15

TAS71-R001E

3

(6)

The setup of ‘AI277’ is completed. Another ‘AI’ should be drawn with the same operation.

(7)

Again, choose ‘AI’ from a stencil. ‘AI’ element is drawn at the designated position.

(8)

The “Create New - Body Object Selection” dialogue box is displayed. Put a mark on “Select existing Body Object”. Choose Tag from the list that is displayed at the lower part of the dialogue box. Here, choose ‘AI277’as an example. Selection of an existing body object is implemented through reference of objects that were already created as shown above. There is another method of finding objects by input of TAG for objects that were already created in the “TAG Input/Select” column.

3.3 Logic Sheet Drawing 3-16

TAS71-R001E

(9)

The “Create New - Property Setup for FIN Object” dialogue box is displayed. Choose the [Complete] button.

(10)

The “Property” dialogue box is displayed. The setup is the same as explained in Chapter 2.2.1 (5). Choose the [OK] button. The setup of ‘AI277’ is completed.

(11)

Then, ‘AO001’ is to be drawn to indicate an output signal to the sheet. After choosing the element to be drawn from a stencil, drag it to the position you wish it to be drawn. Choose ‘AO’ in the “PROCESS FUNCTIONS” stencil. ‘AO’ element is drawn at the designated position.

(12)

The “Create New - Body Object Selection” dialogue box is displayed. Put a mark on “Create new Body Object” as an example and then choose the [Next] button.

(13)

The “Create New - Property Setup for Body Object” dialogue box is displayed. The property should be set up. Input each item that you prefer to set up from “Name”(Signal Name) to the output limit high (%). Choose the [Next] button after the input.

(14)

Name:

This is not used in English-version system.

Name1: Tag:

Input a signal name. Input a tag name.Otherwise, AI * (* is a number) is automatically numbered as default. Signal type: Input a number value for a signal type. Signal range low: Input the minimum number value for a signal range. Signal range high: Input the maximum number value for a signal range. Output limit low (%): Input the minimum number value for the output limit Output limit high (%): Input the maximum number value for the output limit.

3.3 Logic Sheet Drawing 3-17

3

TAS71-R001E

(15)

The “Create New - Property Setup for Fin Object” dialogue box is displayed. There is no item for input. Choose the [Complete] button.

(16)

The “Property” dialogue box is displayed. After confirming the name of the data shown in the “General” item, choose the [OK] button. In case of changing the property contents such as a signal name, a tag name, etc., change the setup by selecting the “Edit Property” button. For the items to be changed, follow the same method as shown in Chapter 2.2.1 (3). Here, the following shows 158 is the No. for the Control System as an example.

3

3.3 Logic Sheet Drawing 3-18

TAS71-R001E

(17)

(18)

Next, we will draw ‘SUM’, the element to calculate the sum. Choose ‘SUM’ from “PROCESS FUNCTIONS” and drag it to the position you wish it to be drawn. It will be positioned between ‘AI277’ and ‘AO157’ here.

On right-clicking ‘SUM’, the pop-up menu is to be displayed. Choose [Property]. The “Property Editor” dialogue box is shown. You can change number values, etc. here. Gain to input No.1: Gain to input No.2: Name: Name (Second Language): Tag: Data type: Low range (engineering scale): Choose the [OK] button.

Input a number value of the gain to input No.1 Input a number value of the gain to input No.2 Input a name Input a name of the second language Input a tag name Input a data type. Input a minimum value for engineering scale Range.

3.3 Logic Sheet Drawing 3-19

3

TAS71-R001E

3

3.3.2 Drawing Connection Lines Drawn elements are to be connected with a connection line. The connection line is drawn by selecting positions to be connected after the selection of analog signal or digital signal from the “PROCESS FUNCTIONS” stencil and the connector tool in the menu bar. Moreover, the stencil for the analog/digital lines is opened for the connection as shown above, by selecting [Connector Tool] - [Connect Analog Line] or [Connect Digital Line] of Netmation in the menu bar. Another method is to select [Connect Analog Line] or [Connect Digital Line] tool button. (1)

‘AI277’ and ‘SUM’ will be connected with a connection line. Left-click the Connector Tool in the tool bar. Then, choose ‘Analog’ element from the “PROCESS FUNCTIONS” stencil by clicking.

(2)

Put a cursor mark on ‘AI277’.

(3)

Next, move the cursor to ‘SUM’ with the left button pressed down. Then, release the button. The two elements are connected with the line now.

(4)

When they are connected, the “Select connection points of function block input…” dialogue box is displayed. It specify a signal type and a signal name to be input to ‘SUM’. Next, choose the “Selection” button after choosing an arrow type or a font type for “Line style”. Arrow type: Only for an arrow Font type: Input signal name is displayed on the arrow.

3.3 Logic Sheet Drawing 3-20

TAS71-R001E

3

(5)

‘AI277’and’SUM’,’AO157’and ‘SUM’are connected with connection lines with the same operation. The connection lines are completed now.In case of moving ‘AI277’and’SUM’on the screen, the connection line is automatically connected and the shape of the connection line changes. Please refer to Chapter 3.3.3 for “Undoing Connection Line”.

3.3 Logic Sheet Drawing 3-21

TAS71-R001E

3.3.3 Undoing Connection Lines

3

The line connected in Chapter 3.3.2 is to be reset. This function is used when computing elements are reconnected by temporary separation. Those reset for connection line can be reconnected. (1)

Click the elements to be reset for connection. Then, left click [Undo Connection Line] in the tool bar.

(2)

The connection line is reset and displayed in red.

(3)

To undo, drag the end point of the red connection line to connection points of the element for reconnection.

3.3 Logic Sheet Drawing 3-22

TAS71-R001E

3.4

Creating Sheet Data 3 The sheet data used for MPS computing are created from created logic sheet. Creating sheet data is executed by [Build] function of [Netmation] functions in the tool bar.

3.4.1 Executing Loop-Build (1)

The logic sheet screen should be displayed by LogicCreator (FLIPPER) for creating sheet data.

(2)

Choose [Build] of [Netmation] in the menu bar. The sheet data is created from the selected logic sheet.

(3)

The “Build option” dialogue box is displayed. Check “The reflection of parameters from Database” or “The reflection of the From To information from Database”. The both of them are checked as default. Here, check “The reflection of parameters from Database” as an example. Choose the [OK] button. The messages, Extracting, Loop Building, and Writing Ilog Data are to be displayed for the operation. In case there is no error, save the file. Please refer to Chapter 2.4 “Completing Drawing”.

3.4 Creating Sheet Data 3-23

TAS71-R001E

Note

3 In case errors occur on Loop-build execution, the error logs are displayed. The errors include the existence of elements with unconnected I/O lines and those with no property input.

Loop-build option decides the operation to be executed before the Loop-build according to the contents of checked button. The executed operation is shown as below. “The reflection of parameters from Database” The execution of the same operation as that of parameter downloading in Chapter 2.6.11. “The reflection of the From To information from Database” The execution of the same operation as that of Chapter 2.6.3 “From To”

3.4 Creating Sheet Data 3-24

TAS71-R001E

3.5

Completing Drawing 3 (1)

The logic sheet is to be saved. Click [Close] from [File] in the tool bar or click [×]. The dialogue box of VISIO 2000 base is displayed. Choose the [Yes] button. Choose “Yes” when saving the drawn file and “No” when not saving the file. Or choose “Cancel”, in case of not saving, to keep drawing. When finished, LogicCreator (FLIPPER) screen disappears and returns to Logic Window screen.

3.5 Completing Drawing 3-25

TAS71-R001E

3.6

Loading Sheet Data

3 Sheet data is to be loaded to process station from ORCA View System Window. Please refer to DIASYS Netmation®, Maintenance Tool, DIASYS-IDOL++ User’s Guide (TAS71-U002E) for the details of System Window. Sheet loading is available for both online and offline. Please refer to Chapter 3.6.1 for offline sheet loading. Please refer to Chapter 3.6.2 for online sheet loading.

3.6.1 Offline Sheet Loading (1)

Click [View] in the ORCA View tool bar. Window].

(2)

Right-click the process block group to be sheet-loaded from the list of registered process blocks. Choose [Operation].

3.6 Loading Sheet Data 3-26

Choose Window and then [System

TAS71-R001E

3

(3)

The CPU Operation dialogue box is displayed.The CPU to be sheet-loaded is required to be offline.Control Mode shows the control waiting status of the control device. The above example shows that “B-CPU” button is controlling (green) and “A-CPU” button is waiting (yellow).

3.6 Loading Sheet Data 3-27

TAS71-R001E

(4)

The CPU to be sheet-loaded, should be offline.

3

(1)

(2)

Offline Loading of One CPU (a)

The CPU to be loaded, should be changed to be off-control. In case of control: The loaded CPU should be offline while the other is in control In case of off-control: The loaded CPU should be offline.

(b)

The sheet should be loaded to offline CPU.

(c)

The CPU Operation Confirm dialogue box is displayed. Choose the [OK] button.

(d)

The operation continues to (5).

Offline Loading of Both CPUs (a)

The off-control CPU should be off-line.

(b)

Next, the control CPU should be offline.

(c)

Loop-load the both CPUs.

(d)

The “CPU Operation Confirm” dialogue box is displayed. Choose the [OK] button.

(e)

The operation continues to (5).

3.6 Loading Sheet Data 3-28

TAS71-R001E

(5)

Choose the [EXIT] button.

3

(6)

Right-click the Computing Block Configuration under the control CPU name and then choose “Offline Load EMS=>MPS”.

(7)

The “Logic Sheet” dialogue box is displayed. Choose the sheet (A-CPU or B-CPU) for CPUs to be loaded. Here, choose the both CPUs.

(8)

In case of sending multiple sheet by one operation, check of Computing Block Composition. When sending separately, check of the selected sheet. Here, check of “snt2” sheet for separate sending.

(9)

Choose the [OK] button.

3.6 Loading Sheet Data 3-29

TAS71-R001E

3

(10)

The Logic Sheet dialogue box is displayed. Choose the [OK] button.

3.6 Loading Sheet Data 3-30

TAS71-R001E

(11)

When the sheet-loading is completed, “A-CPU: Normal termination” and “B-CPU: Normal termination” are displayed.

(12)

Choose the [Cancel] button. The loading is all completed now.

(13)

Right-click the Process Station performed with sheet load and choose Operation.

(14)

The “CPU Operation Confirm” dialogue box is displayed. There is a message display, “Online OK?” Choose the [OK] button. Now, the Process Station executes the initialization of sheet data etc.

(15)

Choose the [EXIT] button.

3

3.6 Loading Sheet Data 3-31

TAS71-R001E

3.6.2 Online Sheet Loading

3

Online sheet loading is implemented from System Window in the same way as offline sheet loading.

Note Only one sheet is available at a time for online loading.

(1)

Click [View] in the ORCA View tool bar. Choose Window and then [SystemWindow]. Please refer to Chapter 2.5.1 for the method of offline sheet loading.

(2)

Right-click the sheet for online load from the sheets registered in the process block of the registered Process Station. Choose “Online Load EMS=>MPS”.

3.6 Loading Sheet Data 3-32

TAS71-R001E

(3)

The “Logic Sheet Online Load” dialogue box is displayed. Choose the [OK] button.

3

(4)

Again, the “Logic Sheet Online Load” dialogue box is displayed. Choose the [OK] button.

3.6 Loading Sheet Data 3-33

TAS71-R001E

(5)

Sheet data loading starts.

(6)

When the sheet-loading is completed, “A-CPU: Normal termination”and “B-CPU: Normal termination” are displayed. Choose the [Cancel] button. The loading is all completed now.

3

3.6 Loading Sheet Data 3-34

TAS71-R001E

4

Standard Method for Logic Description This chapter explains the standard description method for the logic which is often used to create logic.

4.1

Conversion of Engineering Value for Process Input Signals

(1)

Analog Signal Range All analog signals are handled by the numeric values modified to engineering values in function blocks.

Table 4.1-1 Analog signal range Input type Analog input

Analog output

4.2

Signal range 1 to 5V/4 to 20mA

Conversion method with logic Output of the value converted to the engineering value range from AI function block in Logic Thermocouple The value read into the input element AI is the value converted to the temperature engineering value. Measuring The value read by the input element AI is the valoue temperature resistance converted to the temperature engineering value. 1 to 5V/4 to 20mA In Logic, the value is input corresponding to the engineering value range for AO function block.

Tracking Processing

4.2.1 What Tracking is Tracking is a function to adjust the element arithmetic output to a certain value by temporarily stopping the ordinary arithmetic function, an element’s original feature, through trackingcommand reception. There are two types of tracking as follows. • Direct tracking of input signals for ordinary arithmetic • Apart from iput signals for ordinary arithmetic, tracking of signals input for tracking.

4.1 Conversion of Engineering Value for Process Input Signals 4-1

4

TAS71-R001E

(1)

Tracking to Input Signals For instance, in the case of ‘Primary Delay (LAG)’ element, the input signal is output as it is by the output signal cancelling the primary delay arithmetic when the tracking signal is turned ON (1). There are similar arithmetic elements such as ‘Primary Progress/Delay(LLG)’,‘Lamp (RMP)', and 'Change-Rate Restriction Unit (RLT)’.

4

In the case of getting rid of unnecessary effects from initial-value data, tracking is performed at the start of control logic arithmetic.

Tracking Command Input Signal

LAG

Output Signal

Input Signal Tracking Command

The output signal is performed with traking to the input signal.

Output Signal

Fig. 4.2-1 Tracking of‘ Primary Delay (LAG)’ element

(2)

Tracking to Tracking Data For ‘Proportional Integral(CSR)’ elements, output signals stop the proportional integral arithmetic to output the tracking data when the tracking signal is turned ON (1). Here, the example is explained using the control valves for proportional integral arithmetic. If the valve is switched to automatic mode to start the operation after manual operation with opening by the discretion degree, the valve opening degree is changed dramatically without starting the proportional integral arithmetic from the suitable value for the degree. To prevent that, it is necessary to have the output value of proportional integral arithmetic trackd to the valve opening degree when the valve is in the manual mode. The tracking function is required to those elements that have arithmetic functions with internal ingral values. There are similar arithmetic elements such as ‘Proportional Integral(QSR)’ and When the target operation has both automatic and manual modes, the tracking should be performed when it is in the manual mode.

4.2 Tracking Processing 4-2

TAS71-R001E

Manual Control

4

Temp. Setting Value SG

AO

AI Temp. Input(enginering value)



PI

T

Valve-Open Degree Command 201

001 AI Valve-Open Degree Input (engineering value) 101

Manual Inc.PB AM Manual Dec.PB In the case of automatic control,‘PI’ output becomes the valve-open degree command value and ‘AM’ is performed with tracking to the degree input. In the case of manual control, ‘AM’ output becomes the valve-open degree command value and ‘PI’ is performed with traking to the degree input.

Fig. 4.2-2 Tracking of ‘Proportional Integral (PI)’ and ‘Analog Memory(AM)’

4.3

Processing at Initialization As soon as the Multiple Process Station is started up, the control logic arithmetic is started running as well as the basic software. However, the elements with internal sizing-value arithmetic function such as ‘Primary Delay (LAG)’ and ‘Proportional Integral(PI)’, have some cases that they cannot start the right arithmetic because of the sizing value instability at arithmetic start. Furthermore, there are other cases the elements that change internal memory for the output only when the input signals are modified such as ‘Set/Reset (SSR/SRR)’, cannot output the right output value due to the instability of internal memory at the time of arithmetic start. Therefore, necessary initialization processing should be performed in the ‘Initializing...’ status at Process-Station startup. Regarding the output from the control logic arithmetic to the outside, there is not output of analog and digital signals from the Multiple Process Station because the

4.3 Processing at Initialization 4-3

TAS71-R001E

Power Supply Start of Control Logic Arithmetic

4

Initializing…

Initialization Processing

Initialization Completed Start of MPS External Output Control Start

Fig. 4.3-1 Initialization processing at Multiple Process Station arithmetic start

4.3.1 Initialization of Analog Signals The following are the funtion blocks with initialization processing such as ‘Primary Delay (LAG)’. • ‘Differential(D)’ • ‘Primary Delay (LAG)’ • ‘Primary Progress/Primary Delay (LLG)’ • ‘Proportional Integral(CSR)’ • ‘Proportional Integral(QSR)’ • ‘Analog Memory(AM)’ • ‘Change-Rate Restriction Unit (RLT)’

4.3.2 Initialization of Digital Signals There are cases that digital signals need initialization as follows. Whose output values are determined by change details of input signals such as ‘Set/Reset (SSR/ SRR)’ and self-maintenance circuit combined with elements. Whose output values are determined by continuation time of input signals such as ‘Timer (OND/ OFD)’. Initialization methods are different depending on the logic combination. Here, one example of the initialization is explained about ‘Set/Reset’.

4.3 Processing at Initialization 4-4

TAS71-R001E

Valve-Open Condition

Valve-Open Condition

S R

Valve-Close Condition

Valve-Close Condition

If valve-open/close conditions are One-Shot signals, the output cannot be determined at the start of arithmetic. (In this logic, it becomes the close).

Fig. 4.3-2 Logic of Set/Reset

In these cases, logics are combined so that initialization values are determined for ‘Set/Reset’ according to the actual valve status at the start of arithmetic.

Valve-Open Condition

Valve-Open Condition

S R

Valve-Close Condition

Valve-Close Condition

If valve-open/close conditions are One-Shot signals, the output cannot be determined at the start of arithmetic. (In this logic, it becomes the close).

Fig. 4.3-3 Set/Reset initialization

4.3 Processing at Initialization 4-5

4

TAS71-R001E

4.4

CRT Operation Display and operation parts of Operator Station are handled as one object and linked with logic signals with display parts (loop plates and valve pictures) dropped on the logic sheet.

4

The following is an example of build-in loop plates on the logic sheet.

Fig. 4.4-1 Example of control logic with loop plates

4.4.1 Examples of Writing the Operation Logic for Loop Plates This section describes the loop plates that are actually displayed on the operator station. Use LoopPlateCreator (SCALLOP) to define the settings for each loop plate, such as the characters to be displayed and the color of the characters. Then use LogicCreator (FLIPPER) to set the input and output and connect the settings with other function blocks. This section describes the settints to be maded in LogicCreator (FLIPPER). For details about the settings to be made in LoopPlateCreator (SCALLOP), see “DIASYS Netmation® LoopPlateCreator (SCALLOP) User’s Guide (TAS71-U007)”. There are six types of loop plates as standard. The Main PB & Sub PBs type and the Multiple Analog Set & Sub PBs type are described here.

(1)

Main PB & Sub PBs The Main PB & Sub PBs loop plate is used to operate auxiliary devices (pumps, valves) and to select modes. Figure 4.4-2 shows an examle of the Main PB & Sub PBs loop plate displayed on the operator station.

4.4 CRT Operation 4-6

TAS71-R001E

4 Main PB area

Sub PB area

Figure 4.4-2 Example display of the Main PB & Sub PBs loop plate on OPS

In the main PB area of the Main PB & Sub PBs loop plate, up to five operations and displays can be performed. In the sub PB area, up to ten operations and displays can be performed. However, TAGGING is fixed and its usage is limited. For details about the configuration of the Main PB & Sub PBs loop plate, see Chapter 2 “Specifications of Loop Plates” in “DIASYS Netmation® LoopPlateCreator (SCALLOP) User’s Guide (TAS71-U007)”. In the example of Figure 4.4-2, two elements are set in the main PB area and seven elements are set in the sub PB area for operation and display. Figure 4.4-3 shows an example operation monitoring logic of the Main PB & Sub PBs loop plate described in Figure 4.4-2.

RUN

FD-1 FD-2 S-PB-2

STOP

S-PB-3

02HAG12AM101 FDO-1

PB

S-PB-4 S-PB-8 PAB

FDO-2

S-PB-9

PB

S-PB-10 FLT

TOV

REM

S-PB-9-Set

S-PB-10-Set

PB

PB

LP START UP PUMP A

AUTO

MANU

Figure 4.4-3 Example operation monitoring logic of the Main PB & Sub PBs loop plate

4.4 CRT Operation 4-7

TAS71-R001E

(A)

Input and output of the main PB Table 4.4-1 lists the input and output signals of a single main PB.

Table 4.4-1 Input and output signals of a single main PB

4

Signal name FD-(N)

I/O

Type

Description

Input

D

FDO-(N)

Output

D

ON/OFF status Operation

FA-(N)-1

Input

A

Externally specified display color

FA-(N)-2

Input

A

Externally specified display characters

Operation Enters the display change condition signal for main PB (N). Outputs a One-Shot signal for the output of the PB element connected to this signal when main PB (N) is operated. Enters a color code number to set the color of main PB (N) to a color other that those set for the ON/OFF status in LoopPlateCreator (SCALLOP). (When 0 is entered, the color changes according to the ON/OFF condition when no input is made). (Not used)

(N) indicates the sequential number of a main PB from the top. For example, in Figure 4.4-2, the ON/OFF status input signal name of “RUN” is “FD-1”. Table 4.4-2 lists the input and output signals of the main PBs in Figure 4.4-3. Table 4.4-2 Input and output signals of the main PBs in Figure 4.4-3 Signal name FD-1 FD-2 FDO-1 FDO-2

I/O Input Input Output Output

Type D D D D

Description ON/OFF status of main PB 1 (RUN) ON/OFF status of main PB 2 (STOP) Operation of main PB 1 (RUN) Operation of main PB 2 (STOP)

For FA-(N)-1 and FA-(N)-2, the default values specified in LoopPlateCreator (SCALLOP) are used since they are not written in the logic.

4.4 CRT Operation 4-8

TAS71-R001E

(B)

Input and output of the sub PB Table 4.4-3 lists the input and output signals of a single sub PB.

Table 4.4-3 Input and output signals of a single sub PB Signal name S-PB-(N)

I/O

Type

Description

Input

D

Status

S-PB-(N)-Set

Output

D

Operation

S-PB-2-CLR

Input

A

S-PB-2-STR

Input

A

Externally specified display color (sub PB 2 only) Externally specified display characters

Operation Enters the display change condition signal for sub PB (N). Outputs a One-Shot signal for the output of the PB element connected to this signal when sub PB (N) is operated. Enters the color code of the main PB.

(Not used)

(N) indicates the sequential number of a sub PB from the top. For example, in Figure 4.4-2, the status input signal name of “POWER ABN” is “S-PB-1”.

Note The top sub PB is fixed to Tagging.

Table 4.4-4 lists the input and output signals of the sub PBs in Figure 4.4-3. Table 4.4-4 Input and output signals of the sub PBs in Figure 4.4-3 Signal name S-PB-2

I/O

Type

Description

Input

D

Status of sub PB 2 (POWER ABN)

S-PB-3 S-PB-4

Input Input

D D

Status of sub PB 3 (FAULT) Status of sub PB 4 (TIME OVER)

S-PB-8 S-PB-9 S-PB-10 S-PB-9-Set S-PB-10-Set

Input Input Input Output Output

D D D D D

Status of sub PB 8 (MCC) Status of sub PB 9 (AUTO) Status of sub PB 10 (MANUAL) Operation of sub PB 9 (AUTO) Operation of sub PB 10 (MANUAL)

The logic in Figure 4.4-3 contains only sub PB 9 and sub PB 10 as the output of sub PBs. Note that sub PBs 2, 3, and 4 do not have output and they do not send operation singlas when they are pressed on OPS since they are used only for monitoring. As shown in the logic in Figure 4.4-3, function block PB must be placed after each output signal. This PB is the element that outputs an operation signal as a One-Shot signal. For details about each input or output signal, see the explanation about each element in Appendix 1 “Function Block Description”.

4.4 CRT Operation 4-9

4

TAS71-R001E

(2)

Multiple Analog Set & Sub PBs The Multiple Analog Set & Sub PBs loop plate is used for analog tuning devices. Figure 4.4-4 shows the Multiple Analog Set & Sub PBs loop plate displayed on the operator station.

4 3 digit display area

PV, MV, SV display and operation

Sub PB area

Figure 4.4-4 Example display of the Multiple Analog Set & Sub PBs loop plate on OPS

The PV, MV, SV display and operation area in the Multiple Analog Set & Sub PBs loop plate displays the process value (PV), the set value (SV), and the manual value (MV) as the SV and the MV increase or decrease. The 3 digit display area displays up to three analog signals. For details about the configuration of the Multiple Analog Set & Sub PBs loop plate, see Chapter 2 “Specifications of Loop Plates” in “DIASYS Netmation® LoopPlateCreator (SCALLOP) User’s Guide (TAS71-U007)”. Figure 4.4-5 shows an example operation monitoring logic of the Multiple Analog Set & Sub PBs loop plate described in Figure 4.4-4.

PV MV SV IINH DINH AUTO M ANU

V1 PV MBV01AA701 MV-Set V2 MV V3 SV MV-I-PRH S-PB-7 MV-D-PRH S-PB-8 S-PB-9-Set S-PB-9 S-PB-10 S-PB-10-Set

CEA LUBEOILTEMPCONTROLMVHI LIMIT



CEAGC180_01

H S/S

LUBEOILTEMPCONTROLMVLOW LIMIT

L

Y OH OL

CEA

S

CEAGC180_03

LUBEOILTEMPCONTROLVALVE

PB PB

Figure 4.4-5 Example operation monitoring logic of the Multiple Analog Set & Sub PBs loop plate

4.4 CRT Operation 4-10

TAS71-R001E

(A)

Input and output of the 3 digit display Table 4.4-5 lists the input and output signals of a single 3 digit display.

Table 4.4-5 Input and output signals of a single 3 digit display Signal name V(N)

I/O

Type

Input

A

V(N)CLR

Input

A

Description

Operation

Numeric value display Display color of the numeric value

Displays the numeric value of an analog signal. Enters the color code for the 3 digit display.

(N) indicates the sequential number of an item in the 3 digit display. For example, in Figure 4.4-5, the input signal name of the numeric value for the PV is “V1”. Table 4.4-6 lists the input and output signals of the 3 digit display in Figure 4.4-5. Table 4.4-6 Input and output signals of the 3 digit display in Figure 4.4-5 Signal name V1 V2 V3

I/O Input Input Input

Type A A A

Description First numeric value (PV) Second numeric value (MV) Third numeric value (SV)

4.4 CRT Operation 4-11

4

TAS71-R001E

(B)

Input and output of the PV, MV, SV display and operation Table 4.4-7 lists the input and output signals of a single PV, MV, SV display and operation.

Table 4.4-7 Input and output signals of a single PV, MV, SV display and operation

4

Signal name MV-SET

I/O

Type

Description

Output

A

MV set value

SV-SET

Output

A

SV set value

MV-I-PRH

Input

D

MV-D-PRH

Input

D

SV-I-PRH

Input

D

SV-D-PRH

Input

D

PV MV SV ANN1 ANN2 REF PVCIr

Input Input Input Input Input Input Input

A A A A A A A

MVCIr

Input

A

SVCIr

Input

A

MV increase prohibition MV decrease prohibition SV increase prohibition SV decrease prohibition PV value MV value SV value Warning value Warning value Referene value Externally entered PV color Externally entered MV color Externally entered SV color

Operation Outputs the MV set value operated on the loop plate. Outputs the SV set value operated on the loop plate. Enters ON to prohibit increasing the value of the MV on the loop plate. Enters ON to prohibt descresing the value of the MV on the loop plate. Enters ON to prohibit increasing the value of the SV on the loop plate. Enters ON to prohibit decreaseing the value of the SV on the loop plate. Enters the PV value. Enters the MV value. Enters the SV value. Enters the warning value. Enters the warning value. Enters the reference value. Enters the color code for displaying the PV. Enters the color code for displaying the MV. Enters the color code for displaying the SV.

Table 4.4-8 lists the input and output signals of the PV, MV, SV display and operation in Figure 4.4-5. Table 4.4-8 Input and output signals of the PV, MV, SV display and operation in Figure 4.4-5 Signal name MV-I-PRH MV-D-PRH MV-SET

I/O Input Input Output

Type D D A

Description MV increase prohibition MV decrease prohibition MV set value

As shown in the logic in Figure 4.4-5, S/S (increase/decrease operation) must be placed after the output signal. S/S is the element that accepts an increase/decrease operation of an analog value.

4.4 CRT Operation 4-12

TAS71-R001E

(C)

Input and output of the sub PB For the input and output signals of a single sub PB, see Table 4.4-3. Table 4.4-9 describes the input and output signals of the sub PBs in Figure 4.4-5.

Table 4.4-9 Input and output signals of the sub PBs in Figure 4.4-5 Signal name S-PB-7 S-PB-8 S-PB-9 S-PB-10 S-PB-9-Set S-PB-10-Set

I/O Input Input Input Input Output Output

Type D D D D D D

Description Status of sub PB 4 (MV INC INH) Status of sub PB 8 (MV DEC INH) Status of sub PB 9 (AUTO) Status of sub PB 10 (MANUAL) Operation of sub PB 9 (AUTO) Operation of sub PB 10 (MANUAL)

For details about each input or output signal, see the explanation about each element in Appendix 1 “Function Block Description”.

4.5

Data Logging Function (e.g. Warning Judgement, Report Data Collection) Data logging functions such as warning judgement, report data collection, etc. are expressed on the logic sheet.

4.5.1 Warning Logic Warning setting can be implemented with function blocks. The logic example of analog warning is shown below.

A

H=120.0

A

H=100.0

A

L=20.0

A

L=0.0

This function block‘Analog Warning(AAN)’ implements all the warning processing such as warning judgment/confirmation/return, print request to warning printer at the occurrence and the reset.

AI

Control Logic

Fig. 4.5-1 Example of analog warning

4.5 Data Logging Function (e.g. Warning Judgement, Report Data Collection) 4-13

4

TAS71-R001E

4.5.2 Logic of Report Data Processing Because function blocks are prepared for average processing of printing-report data collection, ON time sizing, pulse sizing, etc., the printing-report data processing can be described on the logic sheet.

4

The following is the logic example for printing-report data collection.

On-The-Hour Timing Input data

This function block is registered with AVE

LGV

Average Calculation

the general-purpose logger system and allocated to printing reports.

Fig. 4.5-2 Example of one-hour average value

Note Print format for printing reports needs to be linked with printing-report data collection function blocks (LGV) after the separate creation by EXCEL.

4.6

Interface Logic with PLC and DCS Made by Other Companies

4.6.1 Interface with PLC and DCS Interface function blocks are prepared to perform the interface with PLC and DCS made by other companies. Creating parameter setting and I/O logic for the funciton blocks makes the interface possible. Communication protocol supports MODBUS and DF1.

4.6 Interface Logic with PLC and DCS Made by Other Companies 4-14

TAS71-R001E

4.6.2 Common Data Domain for Communication Each process station has the following two data domains as the communication interface data domain. • Communication analog • Communication digital The I/O allocation setting is performed in System Ocean for this data domain and PLC/DCS communication. Please refer to “DIASYS Netmation® Maintenance Tool, DIASYS-IDOL++ User’s Guide (TAS71-U002E)” for the details.

4.6.3 Access Logic to I/O Data Domain The following four function blocks are prepared as those for I/O access of communication analog and digital domains explained in Chapter 4.6.2.

Table 4.6-1 Function blocks for communication I/O access Code CAI CAO CDI CDO

Function block name Analog input for communication I/ O parts Analog output for communication I/O parts Digital input for communication I/ O parts Digital output for communication I/O parts

Contents Domain data of communication analog is captured in the logic. Data is output to the communication analog domain from the logic. Domain data of communication digital is captured in the logic. Data is output to the communication digital domain from the logic.

The following interface logic is described with these function blocks.

CAI Analog input from devices made by other system

Data captured from other-system devices will be captured in the logic CAO

Logic arithmetic result is output to other system devices.

Analog output from other system devices

CDI Digital input from devices made by other companies

Data captured from other companies’ devices will be captured in the logic CDO

Logic arithmetic result is output to other system devices.

Analog output from other system devices

Fig. 4.6-1 Interface logic chart 4.6 Interface Logic with PLC and DCS Made by Other Companies 4-15

4

TAS71-R001E

MEMO

4

4.6 Interface Logic with PLC and DCS Made by Other Companies 4-16

TAS71-R001E

5

Usage of Similar Elements This chapter explains how to select and use similar arithmetic elements. Please refer to “Appendix-1 Function Block Description” for the details of the funtions.

5.1

5

Analog Switch

5.1.1 Types of Analog Switch Elements Analog switch are elements that output by switching two analog input signals according to the digital signal swith command. There are three types of switch elements as follows. (1)’Simple Analog Switch(T)’ Input Signal1(X1)

T

Switch Command(sw)

Output Signal (Y)

Input Signal2(X2)

(2)’Analog Switch with Rate (TR)’ Track Rate for X1

Input Signal1(X1)

Switch Command(sw)

TR

Input Signal2(X2)

Output Signal(Y)

Track Rate for X2

(3)’ Analog Switch w/Differential Rate(TRD)’ Input Signal1(X1)

Switch Command(sw)

Input Signal2(X2)

Track Rate for X1

TRD

Output Signal(Y)

Track Rate for X2

Fig. 5.1-1 Types of Analog Switch

5.1 Analog Switch 5-1

TAS71-R001E

5.1.2 Element Action The following shows the output action of each element corresponding to the same input signal.

5

Input Signal SW

X1

X2

(1)’Simple AnalogSwitch(T)’ The bold line is output signal(Y)

Switch signals(sw) changes output signals instaneously.

(2)’Analog Switch with Rate(TR)’ Change-Rate Restriction Continuation The bold line is output signal(Y)

Switch signals(sw) change output signals with fixed rate. If there is no complete tracking after switch completion, the rate is multplied by the input change for the output. The parameter sets up if there is complete tracking or not.

(3)’Analog Switch w/Differential Rate(TRD)’ The bold line is output signal (Y)

Switch signals(sw) change output signals with fixed rate. Target-signal change during switching should be tracked without the rate. The deviation from the target siganls is reduced by the fixed rate by checking the deviation when the switching starts.

Fig. 5.1-2 Analog Switch action

5.1 Analog Switch 5-2

TAS71-R001E

5.1.3 Element Feature The features of the three switch elements are shown in the following table.

Table 5.1-1 Analog Switch features Element (1) Simple Analog Switch (T)’ (2) ‘Analog Switch with Rate (TR)’

Rate

None Designation possible by parameter external input. (3) ‘Analog Switch w/Differential Designation Rate (TRD)’ possible by parameter external input.

5.2

Action for switching The output is switched instataneously. is Output of the rate added or subtracted the with fixed rate in the target signal or direction for the current output value is The deviation from the target signal is the reduced with the fixed rate by acquiring or it when the switch starts.

Proportional Integral Controller

5.2.1 Types of Proportional Integral Controller Proportional integral controller is an arithmetic element used as the controller of process-data setting value control. There are two artihmetic elements for the proportional integral controller as follows.

(1)‘Proportional Integral(PI)’ IS X

Ts

K

Tr

T

FF

Segment Input

H

PI OS

L

(2)‘Proportional Integral with upper/lower limit input(PIQ)’ IS X

Ts

K

Tr

T

FF

H

PIQ OS

Output

Code X Tr Ts FF IS OS H L K T Y

Contents Input signal Tracking value Tracking condition Leading signal Input span Output span Output upper limit value Output lower limit value Proportional gain Sizing time constant Output value

L

Fig. 5.2-1 Types of proportional integral controller

5.2 Proportional Integral Controller 5-3

5

TAS71-R001E

(1)

‘Proportional Integral (PI)’ The integral value will continue the integral to the upper or lower limit regardless of the proportion even when the output reaches the upper or lower limit. When enough time has passed after the output is reached to the upper or lower limit, the output stays at the upper or lower limit unless the input becomes the negative or positive. Even when the input is constantly fluctuating, the output does not move further than the upper or lower limit with this element being the upper/ lower limit, as long as the code of the input value does not change.

5

Usage:Used often for wide-open valves at normal operation (such as spray valves used only for emergency or high-pressure escape valves, etc.)

(2)

‘Proportional Integral with Upper/Lower Limit Input (PIQ)’ The integral value will stop the integral as soon as the output reaches the upper or lower limit. Even if enough time has passed after the output reaches the upper or lower limit, the output changes with the proportion when the input positive or negative value is changed. When the input is constantly fluctuatiing, the output is also changing around the upper or lower limit with this element being the upper or lower limit. Usage:Used often for operation-end used in the medium open degree at normal operation. Please refer to “Appendix-2 Description of Logic Function Blocks” for the behaviour of’Proportional Integral(PI)’ and’Proportional Integral with Upper/Lower Limit Input(PIQ)’.

5.3

One Shot

5.3.1 One Shot Types One Shot are artihemtic elements that output ON for the fixed time when digital input signals are changed. There are four types of arithmetic elements for One Shot as follows.

5.3 One Shot 5-4

TAS71-R001E

(1)‘Time Delay Wipe Out (TDW)’

Input signal(X) X

Y

Input signal(X)

Output signal(Y)

Output signal(Y) T=ON Time(Parameter)

(2)‘Trigger On(TON)’

Input signal(X) X Output

Input signal(X)

Output P= Arithemtic Circle

(3)‘Trigger Off (TOF)’

Input signal(X) X

Input signal(X)

Output

Output signal(Y) P= Arithemtic Circle

(4)‘One Shot Pulse(OSP)’

Input

Y

X OSP

Output

Fig. 5.3-1 Types of One Shot

Note While’Time Delay Wipe Out (TDW)’ can set up One-Shot time by the parameter, ‘TriggerON (TON)’ and ‘Trigger OFF (TOF)’ are ON only for one arithmetic cycle. The caution is required for the logic combination because the latter are influenced by the arithmetic cycle and order in some cases.

5.3 One Shot 5-5

5

TAS71-R001E

MEMO

5

5.3 One Shot 5-6

TAS71-R001E

6

Writing Scripts A script is a high level language similar to computer language C. Scripts are represented as computing blocks of multiple I/O operations on logic sheets. Scripts acquire data that is necessary for operations from logic and return the results of operations to logic sheets as output.

6.1

6

Creating New Scripts (1)

Open the LogicCreator (FLIPPER) and then stencil (IdolPlus_MACRO.vss) that stores the Macro element by [File] - [Stencil] - [Open Stencil] - [IdolPlus_MACRO.vss].

(2)

Drop the script call element in the Macro stencil on the sheet and modify the size if necessary.

(3)

Connect signals to this script call element. In this example, connect 4 analog inputs, 2 digital inputs, 4 analog outputs, and 2 digital outputs to the element. Up to 20 input signals and 20 output signals can be connected to a script call element. Table 6.1-1 shows the default settings for input and output. Connectors do not need to be connected at this point. Start ScriptCreator (Squid) and declare variable names to change the names on LogicCreator (FLIPPER) to the variable names declared in ScriptCreator (Squid). For example, declaring X1 as “Pressure” changes X1 in LogicCreator (FLIPPER) to “Pressure”. Note that integer input and output is not prepared by default. To use integer input and output, declare integer as the argument type (Iin, Iout, Ioutn).

6.1 Creating New Scripts 6-1

TAS71-R001E

Table 6.1-1 Default I/O signal names for a script call element Signal name Input (up to 20) Output (up to 20)

Analog X1 – X10 Y1 – Y10

Digital X11 – X20 Y11 – Y20

6

This figure indicates the example of connecting 6 inputs (Analog: 4, Digital: 2) and 6 outputs (Analog:4, Digital:2). (4)

Move the mouse to the script call element and select [Open Editor] from the context menu displayed by a right-click.

6.1 Creating New Scripts 6-2

TAS71-R001E

(5)

The dialogue box is displayed. Select the “Create the new script function block (selected as the default)” and the [OK] button.

6

(6)

The script creator is started up. formation of I/O connecting line which was connected by Logic Creator (FLIFFER), is indicated as parameter of function.

6.1 Creating New Scripts 6-3

TAS71-R001E

(7)

Edit the script on ScriptCreator (Squid). In this example, create a script for performing a simple calculation. The text editing method for ScriptCreator (Squid) is different from the methods used in ordinary editors. To edit, select the line to be entered (or deleted), double-click the mouse to enter the editing mode, then enter (or delete) the desired line.

6 Added expressions

(8)

After the script editing, create the script data to be loaded to the execution system with the following procedure.

(a)

Select the Save button in the toolbar to save the created script.

(b)

Select the Compile button to compile the created script. If the compilation was successful, the output window is displayed with the message, “No Errors…O.K.”. If the compilation was not successful, the compilation error message is displayed. Please correct the script referring to the error. The emulation facility can be used here to check the operation of the created script. (For details about the emulation facility, see Section 6.2 “Checking the Operation of the Created Script”.)

(c)

After the successful compilation, press the Exit button to terminate the ScriptCreator (Squid).

a: Save button b: Compile button c: Exit button

6.1 Creating New Scripts 6-4

TAS71-R001E

6

(9)

The contents revised on the script is reflected on the script call element on LogicCreator (FLIPPER).

(10)

Right-click the created script call to display the Property input screen. Input the name here. (here, input Script Text as an example.) Press the [OK] button.

(11)

Execute Loop-build by LogicCreator (FLIPPER). For how to execute loop build, see Section 3.4.

6.1 Creating New Scripts 6-5

TAS71-R001E

6

6.2

Checking the Operation of the Created Script This section describes the emulation facility for checking the operation of created scripts. (1)

Create a script call element as described in Section 6.1 and double-click the created script call element to start ScriptCreator (Squid).

6.2 Checking the Operation of the Created Script 6-6

TAS71-R001E

(2)

Select [Emulate] from the [Tool] menu at the top of ScriptCreator (Squid) to display the Emulate screen. Enter argument values. When an argument value is entered, the quality is displayed in hexadecimal. Table 6.2-1 lists the quality values and the meaning.

Enter argument values.

6

Table 6.2-1 Meaning of quality values (hexadecimal input) Quality value 0 1 2 4 8 10

Meaning Normal (default) Upper limit for the propagation range Lower limit for the propagation range Propagation data inaccessible No scan for propagation Data insertion or manual specification for propagation

Quality value 2001 2002

Upper limit for the local range Lower limit for the local range

2004

Local data inaccessible

2008 4000

No scan for local data Local block calculation error (real number overflow) Local block calculation error

4100

Meaning

6.2 Checking the Operation of the Created Script 6-7

TAS71-R001E

(3)

Press the [Execute] button to execute calculation once on the maintenance tool and display the result of the calculation and command buttons.

6 Result of calculation

Command buttons

(4)

Each time the [Go] command button is pressed, the calculation is repeated. As the result of the calculation, the values of variables are displayed in the [Result] box. The meaning of the variables displayed in the [Result] box is as follows: • opcode_count: Number of instructions of the intermediate language that are executed • call_depth: Depth of the repeated subroutine call • istack_count: Number of integer stacks used • dstack_coun: Number of real number stacks used

6.2 Checking the Operation of the Created Script 6-8

TAS71-R001E

6

(5)

If the execution result seems incorrect, press the [Next] button to perform a step execution, which is executed line by line, and check the line that results in an error. The [Next Asm] button can also be used to execute each instruction of the intermediate language.

(6)

Check that the script runs normally. Loop-build needs to be re-executed on the logic sheet. For how to perform Loop-build, see Section 3.4 “Creating Sheet Data”. 6.2 Checking the Operation of the Created Script 6-9

TAS71-R001E

6.3

Creating Scripts Using Existing Scripts This section describes how to create a new script using an existing script. (1)

Create the script call element in the same procedure as that of 6.1 and select Open Editor from the menu opened by a right-click.

(2)

The dialogue box is displayed for script creation. Select “Create the script function block based on existing script function block”. Then, the name list of scripts already created is displayed. Next, select the script for reference in the list and the[OK]button. (here, select “New script test” created in 1.) In this case, the function of the script previously created is copied as a new script.

6

6.3 Creating Scripts Using Existing Scripts 6-10

TAS71-R001E

(3)

The ScriptCreator (Squid) is started up. You can confirm the script previously created is described in the curly braces.

6

However, please note the argument of the function changes according to the connection status of the connector on LogicCreator (FLIPPER).

(4)

Execute [Edit Script] - [Save] - [Compile] - [Exit] in the same way as in 1.

(5)

Return to LogicCreator (FLIPPER) to execute Build.

6.3 Creating Scripts Using Existing Scripts 6-11

TAS71-R001E

6.4

Specifications for Script Computing Blocks This section describes the elements and syntax used in a script and the functions that can be used on ScriptCreator (Squid).

6.4.1 Elements of a script

6 Table 6.4-1 lists the elements of a script. Table 6.4-1 Elements of a script Item Number of lines in a script Number of inputs and outputs

Size of intermediate code Number of symbols Number of labels with automatically assigned numbers

Byte length of stored variables Byte length of constants Byte length of local variables Byte length of arguments Number of intermediate codes executed

Description Number of lines in a script

Limit 400 lines

Analog input Digital input

20 items 20 items

Integer input Analog output Digital output

20 items 20 items 20 items

Integer output Size of the intermediate code (2-byte and 4-byte) that is created by compiling a script Total number of symbols including variable names and function names Total number of labels with the numbers automatically assigned at compilation (users do not directly assign numbers to labels) The number of labels used in each process is as follows: For statement, while statement, do-while statement: 4 If-else statement: 2 If statement: 1 Total number of bytes of stored variables

20 items 4000 words 200 symbols 200 labels

2000 bytes

Total number of bytes of constants Total number of bytes in the data described as “1.0” or “100” in the script Number of bytes of local variables

4000 bytes

Total number of bytes of arguments

4000 bytes

Number of intermediate codes executed in the script (to prevent infinite loops)

10000 codes

6.4 Specifications for Script Computing Blocks 6-12

4000 bytes

TAS71-R001E

6.5

Script Syntax The syntax of scripts basically conforms to C language.

6.5.1 Structure of source code

6

The structure of the source code of a script is as follows:

Declaration of stored variables; void Script name (argument list) { Declaration of local variables; Content of the operation }

6.5.2 Arguments Table 6.5-1 lists the arguments used in a script. Table 6.5-1 Script arguments Argument type Ain Din Iin Aout Dout Iout Aoutn

Description Analog signal entered from logic Digital signal entered from logic Integer signal entered from logic Analog signal output to logic Digital signal output to logic Integer signal output to logic Analog signal output to logic (no tracking)

Doutn Ioutn

Digital signal output to logic (no tracking) Integer signal output to logic (no tracking)

6.5 Script Syntax 6-13

TAS71-R001E

6.5.3 Variables Both stored variables and local variables support the int, float, and double types. Values can be substituted for variables at declaration. For stored variables, initial values are substituted and they are calculated only for the first time. For local variables, values are substituted every cycle. Example of declaring a variable: floatZERO=0.0; Stored variables also support the intn, floatn, and doublen types without tracking.

6 6.5.4 Operators Table 6.5-2 lists the operators supported in scripts. Table 6.5-2 Operators supported in scripts Operator ! ~ ^ + ++ -* / % = == > >= < *= /=

Name Address operator Logical operator Bitwise operator Sequential-evaluation operator Left shift Right shift Multiplication assignment Division assignment

%= += -= = &= ^= |=

Remainder assignment Addition assignment Subtraction assignment Left-shift assignment Right-shift assignment Bitwise AND assignment Bitwise exclusive-OR assignment Bitwise OR assignment

TAS71-R001E

6.6

Control statements Table 6.5-3 lists the control statements supported in scripts. (Note that the switch statement is not supported.) Table 6.5-3 Control statements supported in scripts Control statement if statement if - else statement for statement while statement do - while statement goto statement break statement continue statement return statement

Description A branch instruction that occurs based on a specific condition. A branch instruction that executes one of two sections of code based on a specific condition. Repeats a section of code for a specified number of times. Evaluates a predefined condition and repeats a section of code while the predefined condition is satisfied. Executes a section of code and evaluates a predefined condition, then repeats the section of code while the predefined condition is satisfied. Transfers execution to some other statement. Exits a loop or switch. Returns to the beginning of a loop. Returns to the call source.

6.6.1 Propagating quality The quality of data is represented by Q (variable name) and the quality of input can be propagated to output. Example:Q(Y1)=Q(X1); Propagate the quality of input X1 to Y1. For details about quality information, see Section 2.7 “Quality Information Added to Function Blocks”.

6.6.2 Comments Comments can be written in scripts using the same format used in C language. See below. /*Comment/*

6.6 Control statements 6-15

6

TAS71-R001E

6.7

Using Intrinsic Variables and Functions, and Userdefined Functions DIASYS Netmation® provides a standard library containing a variety of functions including intrinsic variables and arithmetic functions for indicating items such as absolute time. These functions can be used in any script.

6

6.7.1 Special intrinsic variables Table 6.6-1 lists the system-related standard intrinsic functions that can be referenced in scripts. (Substituting a value for any of these variables results in a compile error.) Table 6.6-1 Standard intrinsic variables Variable name

Type

Description

MATH_PI

double

Constant π

ICOUNT

int

Initialization counter (normally equivalent to 10 seconds)

PMSEC

int

Operation cycle (milliseconds)

PSEC

float

Operation cycle (seconds)

LOGTIME

int

Set to 1 immediately after the local time reaches the hour (xx o’clock 00 minutes 00 seconds). 0 for other occasions.

FLOAT_DATE

float

Absolute year, month, and day of the operation according to Greenwich Mean Time (GMT) (yymmss.0).

FLOAT_SEC

float

Absolute hour, minutes, and seconds of the operation according to Greenwich Mean Time (GMT) (hhmmss.0).

FLOAT_MSEC

float

Absolute milliseconds (0.0 to 999.0) of the operation.

INT_SEC

int

Total number of seconds of the operation from January 1, 1970 according to Greenwich Mean Time (GMT).

INT_USEC

int

Microseconds of the operation (0 to 999999).

TIMEZONE_SEC

int

Number of seconds of the difference between Greenwich Mean Time (GMT) and the local time in a westward direction Example 1: In Japan, -9 hours × 60 × 60 = 32400 seconds Example 2: The total number of seconds of the local time from January 1, 1970 is INT_SEC-TIMEZONE_SEC. Example 3: When summer time is applied to example 2, the total number of seconds of the local time from January 1, 1970 is INT_SEC-TIMEZONE_SEC+ISDST × 3600.

ISDST

int

0: Summer time is not applied (the EMS sets the start year, month and day, and the end year, month and day every year.) 1: Summer time is applied.

6.7 Using Intrinsic Variables and Functions, and User-defined Functions 6-16

TAS71-R001E

6.7.2 Arithmetic intrinsic functions Table 6.6-2 lists the arithmetic intrinsic functions that can be used in scripts. If the input exceeds a specified range, a sheet operation error occurs. Table 6.6-2 Arithmetic intrinsic functions that can be used in scripts Function

Description

double sqrt(double x)

Square root (x ≥ 0)

double pow(double x, double y)

Power (x > 0)

double pow10(double x)

Power of 10

double exp(double x)

Exponential function

double log10(double x)

Log function (base 10) (x > 0)

double log(double x)

Log function (base e) (x > 0)

double fmod(double x, double y)

Remainder function (y ≠ 0). The sign is the same as x.

double fabs(double x)

Absolute value

int abs(int x)

Absolute value

double sinh(double x)

Hyperbolic sine function

double cosh(double x)

Hyperbolic cosine function

double tanh(double x)

Hyperbolic tangent function

double sin(double x)

Trigonometric function (sine function)1

double cos(double x)

Trigonometric function (cosine function)1

double tan(double x)

Trigonometric function (tangent function)1

double asin(double x)

Inverse trigonometric sine function (-1 ≤ x ≤ 1)

double acos(double x)

Inverse trigonometric cosine function (-1 ≤ x ≤ 1)

double atan2(double y, double x)

Inverse trigonometric tangent function tan-1 (y/x)

double atan(double x)

Inverse trigonometric tangent function tan-1 (x)

double min(double x, double y)

Minimum values of x and y

double max(double x, double y)

Maximum values of x and y

int nint(double x)

Integer closest to real number x (-2147483648 ≤ nint(x) ≤ 2147483648)3r cf. Fractions are discarded when the value is converted to an integer using (int).

double floor(double x)

Maximum integer no greater than real number x is converted to a real number

double ceil(double x)

Minimum integer no smaller than real number x is converted to a real number

this script editor, π is represented as MATH_PI (see Table 6.6-1). For example, sin(πy/2) is represented as sin(MATH_PI*y/2.0). 1In

6.7 Using Intrinsic Variables and Functions, and User-defined Functions 6-17

6

TAS71-R001E

6.7.3 Steam table functions Table 6.6-3 lists the steam table functions that can be used in scripts. The steam table uses SI units. The details about each item are described in [1] and later sections.

Table 6.6-3 Steam table functions that can be used in scripts

6

No.

Function

1

CPSLP(P)

2

CPSLT(T)

3

CPSVP(P)

4

CPSVT(T)

5

HPT(P,T)

6

HSLP(P)

7

HSLT(T)

8

HSVP(P)

9

HSVT(T)

10

PSLT(T)

11

SPH(P,H)

12

SPT(P,T)

13

SSLP(P)

14

SSLT(T)

15

SSVP(P)

16

SSVT(T)

17

TPH(P,H)

18

TSLP(P)

19

VPH(P,H)

20

VPT(P,T)

21

VSLP(P)

22

VSLT(T)

Description Calculates the specific heat of saturated water under constant pressure from the pressure. Calculates the specific heat of saturated water under constant pressure from the temperature. Calculates the specific heat of saturated steam under constant pressure from the pressure. Calculates the specific heat of saturated steam under constant pressure from the temperature. Calculates the specific enthalpy from the pressure and the temperature. Calculates the specific enthalpy of saturated water from the pressure. Calculates the specific enthalpy of saturated water from the temperature. Calculates the specific enthalpy of saturated steam from the pressure. Calculates the specific enthalpy of saturated steam from the temperature. Calculates the pressure of saturated water from the temperature. Calculates the specific entropy from the pressure and the specific enthalpy. Calculates the specific entropy from the pressure and the temperature. Calculates the specific entropy of saturated water from the pressure. Calculates the specific entropy of saturated water from the temperature. Calculates the specific entropy of saturated steam from the pressure. Calculates the specific entropy of saturated steam from the temperature. Calculates the temperature from the pressure and the specific enthalpy. Calculates the saturation temperature from the pressure. Calculates the specific volume from the pressure and the specific enthalpy. Calculates the specific volume from the pressure and the temperature. Calculates the specific volume of saturated water from the pressure. Calculates the specific volume of saturated water from the temperature.

6.7 Using Intrinsic Variables and Functions, and User-defined Functions 6-18

TAS71-R001E

23

VSVP(P)

Calculates the specific volume of saturated steam from the pressure.

24

VSVT(T)

25

XLALP(P)

26

XLALT(T)

27

XLAVP(P)

28

XLAVT(T)

29

XMULP(P)

30

XMULT(T)

31

XMUVP(P)

32

XMUVT(T)

33

XNULP(P)

34

XNULT(T)

35

XNUVP(P)

36

XNUVT(T)

37

PRSLP(P)

Calculates the specific volume of saturated steam from the temperature. Calculates the thermal conductivity of saturated water from the pressure. Calculates the thermal conductivity of saturated water from the temperature. Calculates the thermal conductivity of saturated steam from the pressure. Calculates the thermal conductivity of saturated steam from the temperature. Calculates the coefficient of viscosity of saturated water from the temperature. Calculates the coefficient of viscosity of saturated water from the temperature. Calculates the coefficient of viscosity of saturated steam from the pressure. Calculates the coefficient of viscosity of saturated steam from the temperature. Calculates the coefficient of kinematic viscosity of saturated water from the pressure. Calculates the coefficient of kinematic viscosity of saturated water from the temperature. Calculates the coefficient of kinematic viscosity of saturated steam from the pressure. Calculates the coefficient of kinematic viscosity of saturated steam from the temperature. Calculates the Prandtl number of saturated water from the pressure.

38

PRSLT(T)

39

PRSVP(P)

40

PRSVT(T)

41

HPS(P, S)

Calculates the Prandtl number of saturated water from the temperature. Calculates the Prandtl number of saturated steam from the pressure. Calculates the Prandtl number of saturated steam from the temperature. Calculates the specific enthalpy from the pressure and the specific entropy

6.7 Using Intrinsic Variables and Functions, and User-defined Functions 6-19

6

TAS71-R001E

(1)

CPSLP Feature

Calculates the specific heat of saturated water under constant pressure from the pressure.

Format

CPSLP(P)

Variables

See the following table:

Varia ble

6

(2)

Data type

Cp

Output double

P

Input

double

Definition

Unit

Specific heat of saturated water kJ/kg K under constant pressure Pressure kPa

Input range ― 0.981 kPa ≤ P ≤ 22119.884 kPa (0.01 at - 225.56 at)

CPSLT Feature

Calculates the specific heat of saturated water under constant pressure from the temperature.

Format

CPSLT(T)

Variables

See the following table:

Varia ble

(3)

I/O

I/O

Data type

Cp

Output double

T

Input

double

Definition

Unit

Specific heat of saturated water kJ/kg K under constant pressure Temperature °C

Input range ―

6.69°C ≤ T ≤ 374.15°C

CPSVP Feature

Calculates the specific heat of saturated steam under constant pressure from the pressure.

Format

CPSVP(P)

Variables

See the following table:

Varia ble

I/O

Data type

Cp

Output double

P

Input

double

Definition

Unit

Specific heat of saturated steam kJ/kg K under constant pressure Pressure kPa

6.7 Using Intrinsic Variables and Functions, and User-defined Functions 6-20

Input range ― 0.981 kPa ≤ P ≤ 22119.884 kPa (0.01 at - 225.56 at)

TAS71-R001E

(4)

CPSVT Feature

Calculates the specific heat of saturated steam under constant pressure from the temperature.

Format

CPSVT(T)

Variables

See the following table:

Varia ble

(5)

Data type

Cp

Output double

T

Input

double

Definition

Unit

Specific heat of saturated steam kJ/kg K under constant pressure Temperature °C

Input range ―

6.69°C ≤ T ≤ 374.15°C

HPT Feature

Calculates the specific enthalpy from the pressure and the temperature.

Format

HPT(P,T)

Variables

See the following table:

Varia ble

(6)

I/O

I/O

Data type

Definition

Unit

H P

Output double Input double

Specific enthalpy Pressure

kJ/kg kPa

T

Input

Temperature

°C

double

Input range ― 9.81 kPa ≤ P ≤ 22119.884 kPa (0.1 at 400 at) 10°C ≤ T ≤ 650°C

HSLP Feature

Calculates the specific enthalpy of saturated water from the pressure.

Format

HSLP(P)

Variables

See the following table:

Varia ble

I/O

Data type

H

Output double

P

Input

double

Definition

Unit

Specific enthalpy of saturated kJ/kg water Pressure kPa

Input range ― 0.981 kPa ≤ P ≤ 22119.884 kPa (0.01 at - 225.56 at)

6.7 Using Intrinsic Variables and Functions, and User-defined Functions 6-21

6

TAS71-R001E

(7)

HSLT Feature

Calculates the specific enthalpy of saturated water from the temperature.

Format

HSLT(T)

Variables

See the following table:

Varia ble

6

(8)

I/O

H

Output double

T

Input

double

Definition

Unit

Specific enthalpy of saturated kJ/kg water Temperature °C

Input range ―

6.69°C ≤ T ≤ 374.15°C

HSVP Feature

Calculates the specific enthalpy of saturated steam from the pressure.

Format

HSVP(P)

Variables

See the following table:

Varia ble

(9)

Data type

I/O

Data type

H

Output double

P

Input

double

Definition

Unit

Specific enthalpy of saturated kJ/kg steam Pressure kPa

Input range ― 0.981 kPa ≤ P ≤ 22119.884 kPa (0.01 at - 225.56 at)

HSVT Feature

Calculates the specific enthalpy of saturated steam from the temperature.

Format

HSVT(T)

Variables

See the following table:

Varia ble

I/O

Data type

H

Output double

T

Input

double

Definition

Unit

Specific enthalpy of saturated kJ/kg steam Temperature °C

Input range ― 6.69°C ≤ T ≤ 374.15°C

6.7 Using Intrinsic Variables and Functions, and User-defined Functions 6-22

TAS71-R001E

(10)

PSLT Feature

Calculates the pressure of saturated water from the temperature.

Format

PSLT(T)

Variables

See the following table:

Varia ble P T

(11)

(12)

I/O

Data type

Output double Input double

Definition Pressure of saturated water Temperature

Unit kPa

°C

Input range ―

6.69°C ≤ T ≤ 374.15°C

SPH Feature

Calculates the specific entropy from the pressure and the specific enthalpy.

Format

SPH(P,H)

Variables

See the following table:

Varia ble

I/O

Data type

Definition

Unit

Input range

S P

Output Input

double double

Specific entropy Pressure

kPa

kJ/kg K

― 9.807 kPa ≤ P ≤ 39226.608 kPa (0.1 at 400 at) 41.868 kJ/kg ≤ H ≤ 3684.382 kJ/kg (10 kcal/kg - 880 kcal/kg)

H

Input

double

Specific enthalpy

kJ/kg

SPT Feature

Calculates the specific entropy from the pressure and the temperature.

Format

SPH(P,T)

Variables

See the following table:

Varia ble

I/O

Data type

Definition

Unit

S P

Output double Input double

Specific entropy Pressure

kPa

T

Input

Temperature

°C

double

kJ/kg K

Input range ― 9.807 kPa ≤ P ≤ 39226.608 kPa (0.1 at 400 at) 10°C ≤ T ≤ 650°C

6.7 Using Intrinsic Variables and Functions, and User-defined Functions 6-23

6

TAS71-R001E

(13)

SSLP Feature

Calculates the specific entropy of saturated water from the pressure.

Format

SSLP(P)

Variables

See the following table:

Variab le

6

(14)

I/O

S

Output double

P

Input

double

Definition

Unit

Specific entropy of saturated kJ/kg K water Pressure kPa

Input range ― 0.981 kPa ≤ P ≤ 22119.884 kPa (0.01 at 225.56 at)

SSLT Feature

Calculates the specific entropy of saturated water from the temperature.

Format

SSLT(T)

Variables

See the following table:

Variab le

(15)

Data type

I/O

Data type

S

Output double

T

Input

double

Definition

Unit

Specific entropy of saturated kJ/kg K water Temperature °C

Input range ― 6.69°C ≤ T ≤ 374.15°C

SSVP Feature

Calculates the specific entropy of saturated steam from the pressure.

Format

SSVP(P)

Variables

See the following table:

Varia ble

I/O

Data type

S

Output double

P

Input

double

Definition

Unit

Specific entropy of saturated kJ/kg K steam Pressure kPa

Input range ― 0.981 kPa ≤ P ≤ 22119.884 kPa (0.01 at 225.56 at)

6.7 Using Intrinsic Variables and Functions, and User-defined Functions 6-24

TAS71-R001E

(16)

SSVT Feature

Calculates the specific entropy of saturated steam from the temperature.

Format

SSVT(T)

Variables

See the following table:

Varia ble

(17)

I/O

S

Output double

T

Input

double

Definition

Unit

Specific entropy of saturated kJ/kg K steam Temperature °C

Input range ― 6.69°C ≤ T ≤ 374.15°C

TPH Feature

Calculates the temperature from the pressure and the specific enthalpy.

Format

TPH(P,H)

Variables

See the following table:

Varia ble

(18)

Data type

I/O

Data type

Definition

Unit

T P

Output double Input double

Temperature Pressure

°C

H

Input

Specific enthalpy

kJ/kg

double

kPa

Input range ― 9.807 kPa ≤ P ≤ 39226.608 kPa (0.1 at 400 at) 41.868 kJ/kg ≤ H ≤ 3684.382 kJ/kg (10 kcal/kg - 880 kcal/kg)

TSLP Feature

Calculates the saturation temperature from the pressure.

Format

TSLP(P)

Variables

See the following table:

Varia ble

I/O

Data type

T

Output double

P

Input

double

Definition Saturation temperature Pressure

Unit °C

kPa

Input range ― 0.981 kPa ≤ P ≤ 22119.884 kPa (0.01 at 225.56 at)

6.7 Using Intrinsic Variables and Functions, and User-defined Functions 6-25

6

TAS71-R001E

(19)

VPH Feature

Calculates the specific volume from the pressure and the specific enthalpy.

Format

VPH(P,H)

Variables

See the following table:

Varia ble

6

(20)

I/O

Definition

Unit m3/kg

V P

Output double Input double

Specific volume Pressure

kPa

H

Input

Specific enthalpy

kJ/kg

double

Input range ― 9.807 kPa ≤ P ≤ 39226.608 kPa (0.1 at - 400 at) 41.868 kJ/kg ≤ H ≤ 3684.382 kJ/kg (10 kcal/kg - 880 kcal/kg)

VPT Feature

Calculates the specific volume from the pressure and the temperature.

Format

VPT(P,T)

Variables

See the following table:

Varia ble

(21)

Data type

I/O

Data type

Definition

Unit m3/kg

V P

Output double Input double

Specific volume Pressure

kPa

T

Input

Temperature

°C

double

Input range ― 9.807 kPa ≤ P ≤ 39226.608 kPa (0.1 at - 400 at) 10°C ≤ T ≤ 650°C

VSLP Feature

Calculates the specific volume of saturated water from the pressure.

Format

VSLP(P)

Variables

See the following table:

Variab le

I/O

Data type

V

Output double

P

Input

double

Definition

Unit

Specific volume of m3/kg saturated water Pressure kPa

Input range ― 0.981 kPa ≤ P ≤ 22119.884 kPa (0.01 at 225.56 at)

6.7 Using Intrinsic Variables and Functions, and User-defined Functions 6-26

TAS71-R001E

(22)

(23)

VSLT Feature

Calculates the specific volume of saturated water from the temperature.

Format

VSLT(T)

Variables

See the following table:

Varia ble

I/O

V

Output

double

T

Input

double

Definition

Unit

Specific volume of m3/kg saturated water Temperature °C

Input range ― 6.69°C ≤ T ≤ 374.15°C

VSVP Feature

Calculates the specific volume of saturated steam from the pressure.

Format

VSVP(P)

Variables

See the following table:

Varia ble

(24)

Data type

I/O

Data type

V

Output double

P

Input

double

Definition Specific volume of saturated steam Pressure

Unit m3/kg

Input range ― 0.981 kPa ≤ P ≤ 22119.884 kPa (0.01 at 225.56 at)

kPa

VSVT Feature

Calculates the specific volume of saturated steam from the temperature.

Format

VSVT(T)

Variables

See the following table:

Variab le

I/O

Data type

V

Output double

T

Input

double

Definition Specific volume of saturated steam Temperature

Unit m3/kg °C

Input range ― 6.69°C ≤ T ≤ 374.15°C

6.7 Using Intrinsic Variables and Functions, and User-defined Functions 6-27

6

TAS71-R001E

(25)

XLALP Feature

Calculates the thermal conductivity of saturated water from the pressure.

Format

XLALP(P)

Variables

See the following table:

Varia ble

6

(26)

Data type

λ

Output double

P

Input

double

Definition Thermal conductivity of saturated water Pressure

Unit

Input range ―

W/m K

0.981 kPa ≤ P ≤ 22119.884 kPa (0.01 at 225.56 at)

kPa

XLALT Feature

Calculates the thermal conductivity of saturated water from the temperature.

Format

XLALT(T)

Variables

See the following table:

Varia ble

(27)

I/O

I/O

Data type

λ

Output double

T

Input

double

Definition Thermal conductivity of saturated water Temperature

Unit

Input range ―

W/m K °C

6.69°C ≤ T ≤ 374.15°C

XLAVP Feature

Calculates the thermal conductivity of saturated steam from the pressure.

Format

XLAVP(P)

Variables

See the following table:

Varia ble

I/O

Data type

λ

Output double

P

Input

double

Definition Thermal conductivity of saturated steam Pressure

Unit

Input range ―

W/m K

kPa

0.981 kPa ≤ P ≤ 22119.884 kPa (0.01 at 225.56 at)

6.7 Using Intrinsic Variables and Functions, and User-defined Functions 6-28

TAS71-R001E

(28)

XLAVT Feature

Calculates the thermal conductivity of saturated steam from the temperature.

Format

XLAVT(T)

Variables

See the following table:

Varia ble

(29)

Data type

λ

Output double

T

Input

double

Definition Thermal conductivity of saturated steam Temperature

Unit W/m K °C

Input range ―

6.69°C ≤ T ≤ 374.15°C

XMULP Feature

Calculates the coefficient of viscosity of saturated water from the pressure.

Format

XMULP(P)

Variables

See the following table:

Varia ble

(30)

I/O

I/O

Data type

μ

Output double

P

Input

double

Definition Coefficient of viscosity of saturated water Pressure

Unit

Input range ―

Pa s

0.981 kPa ≤ P ≤ 22119.884 kPa (0.01 at 225.56 at)

kPa

XMULT Feature

Calculates the coefficient of viscosity of saturated water from the temperature.

Format

XMULT(T)

Variables

See the following table:

Varia ble

I/O

Data type

μ

Output double

T

Input

double

Definition Coefficient of viscosity of saturated water Temperature

Unit Pa s °C

Input range ―

6.69°C ≤ T ≤ 374.15°C

6.7 Using Intrinsic Variables and Functions, and User-defined Functions 6-29

6

TAS71-R001E

(31)

XMUVP Feature

Calculates the coefficient of viscosity of saturated steam from the pressure.

Format

XMUVP(P)

Variables

See the following table:

Varia ble

6

(32)

Data type

μ

Outpu double t

P

Input

double

Definition

Unit

Input range ―

Pa s

Coefficient of viscosity of saturated steam Pressure

0.981 kPa ≤ P ≤22119.884 kPa (0.01 at 225.56 at)

kPa

XMUVT Feature

Calculates the coefficient of viscosity of saturated steam from the temperature.

Format

XMUVT(T)

Variables

See the following table:

Varia ble

(33)

I/O

I/O

Data type

μ

Output double

T

Input

double

Definition

Unit

Coefficient of viscosity of saturated steam Temperature

Input range ―

Pa s °C

6.69°C ≤ T ≤ 374.15°C

XNULP Feature

Calculates the coefficient of kinematic viscosity of saturated water from the pressure.

Format

XNULP(P)

Variables

See the following table:

Varia ble

I/O

Data type

ν

Output double

P

Input

double

Definition

Unit

Coefficient of kinematic viscosity of saturated water Pressure

Input range ―

m2/s

kPa

0.981 kPa ≤ P ≤ 22119.884 kPa (0.01 at 225.56 at)

6.7 Using Intrinsic Variables and Functions, and User-defined Functions 6-30

TAS71-R001E

(34)

XNULT Feature

Calculates the coefficient of kinematic viscosity of saturated water from the temperature.

Format

XNULT(T)

Variables

See the following table:

Varia ble

(35)

Data type

ν

Output double

T

Input

double

Definition

Unit

Coefficient of kinematic viscosity of saturated water Temperature

Input range ―

m2/s °C

6.69°C ≤ T ≤ 374.15°C

XNUVP Feature

Calculates the coefficient of kinematic viscosity of saturated steam from the pressure.

Format

XNUVP(P)

Variables

See the following table:

Varia ble

(36)

I/O

I/O

Data type

ν

Output double

P

Input

double

Definition

Unit

Coefficient of kinematic viscosity of saturated steam Pressure

m2/s

kPa

Input range ―

0.981 kPa ≤ P ≤ 22119.884 kPa (0.01 at 225.56 at)

XNUVT Feature

Calculates the coefficient of kinematic viscosity of saturated steam from the temperature.

Format

XNUVT(T)

Variables

See the following table:

Varia ble

I/O

Data type

ν

Output double

T

Input

double

Definition

Unit

Coefficient of kinematic viscosity of saturated steam Temperature

m2/s °C

Input range ―

6.69°C ≤ T ≤ 374.15°C

6.7 Using Intrinsic Variables and Functions, and User-defined Functions 6-31

6

TAS71-R001E

(37)

PRSLP Feature

Calculates the Prandtl number of saturated water from the pressure.

Format

PRSLP(P)

Variables

See the following table:

Varia ble

6

(38)

Data type

Pr

Output double

P

Input

double

Definition Prandtl number of saturated water Pressure

Unit

Input range



― 0.981 kPa ≤ P ≤ 22119.884 kPa (0.01 at 225.56 at)

kPa

PRSLT Feature

Calculates the Prandtl number of saturated water from the temperature.

Format

PRSLT(T)

Variables

See the following table:

Varia ble

(39)

I/O

I/O

Data type

Pr

Output double

T

Input

double

Definition Prandtl number of saturated water Temperature

Unit

Input range





°C

6.69°C ≤ T ≤ 374.15°C

PRSVP Feature

Calculates the Prandtl number of saturated steam from the pressure.

Format

PRSVP(P)

Variables

See the following table:

Varia ble

I/O

Data type

Pr

Output double

P

Input

double

Definition Prandtl number of saturated steam Pressure

Unit

Input range





kPa

0.981 kPa ≤ P ≤ 22119.884 kPa (0.01 at 225.56 at)

6.7 Using Intrinsic Variables and Functions, and User-defined Functions 6-32

TAS71-R001E

(40)

(41)

PRSVT Feature

Calculates the Prandtl number of saturated steam from the temperature.

Format

PRSVT(T)

Variables

See the following table:

Varia ble

I/O

Data type

Pr

Output

double

T

Input

double

Definition Prandtl number of saturated steam Temperature

Unit

Input range





°C

6.69°C ≤ T ≤ 374.15°C

HPS Feature

Calculates the specific enthalpy from the pressure and the specific entropy.

Format

HPS (P, S)

Variables

See the following table:

Vari able

I/O

Data type

Definition

Unit

Input range

H P S

Output Input Input

double double double

Specific enthalpy

kJ/kg kPa kJ/kg K

― 9.807kPa ~ 39226.608kPa(0.1at ~ 400at) 0.146538kJ/kg K ~ 7.536238kJ/kg K(0.0035kcal/kg K ~ 1.800kcal/kg K)

Pressure

Specific entropy

6.8

Script Examples

(1)

Script of the logic for displaying sin curves The following example shows how to write a script of the logic for displaying sin curves using this tool. void SCR_ISCR(Din X1, Ain X2, Ain X3, Ain X4, Ain X5, Ain X6, Aout Y1, Aout Y2) { double t, period, width, phasediff, shift1, shift2; period = X2; width = X3; phasediff = X4; shift1 = X5; shift2 = X6; t = t + PSEC; if (t > period) t = t - period; if( X1 ) { Y1=width*sin(2.0*MATH_PI*t/period) + shift1; 6.8 Script Examples 6-33

6

TAS71-R001E

Y2=width*sin(2.0*MATH_PI*(t/period+phasediff/360.0)) + shift2; } else{ if( t > period/2.0) { Y1=width+shift1; Y2=width+shift2; }

6

else{ Y1=-width+shift1; Y2=-width+shift2; } } }

(2)

Script of computing element PI The following example shows how to write computing element PI of DIASYS-IDOL++ in a script. /*********************************PI */ double integra; int init_count; int Ts_old; void SCR_PI (Ain X,Ain Tr,Din Ts,Ain FF,Ain IS,Ain OS, Ain H,Ain L,Ain K,Ain T, Aout Y) { double XX,Prop,W; if(H
View more...

Comments

Copyright ©2017 KUPDF Inc.
SUPPORT KUPDF