citectscada batch installation

Upload: michael-adu-boahen

Post on 03-Jun-2018

238 views

Category:

Documents


1 download

TRANSCRIPT

  • 8/12/2019 CitectSCADA Batch Installation

    1/62

    Citect Pty Ltd3 Fitzsimmons LaneGordon NSW 2072

    Australiawww.citect.com

    Installation and ASW Guide

    Version

    1.1.1

  • 8/12/2019 CitectSCADA Batch Installation

    2/62

    2

    CitectSCADA Installation and ASW Guide

    DISCLAIMER

    Citect Pty. Limited makes no representations or warranties with respect to this manual and, tothe maximum extent permitted by law, expressly limits its liability for breach of any warrantythat may be implied to the replacement of this manual with another. Further, Citect Pty. Limitedreserves the right to revise this publication at any time without incurring an obligation to notifyany person of the revision.

    COPYRIGHT

    Copyright 2004 Citect Pty Limited. All rights reserved.

    TRADEMARKS

    Citect Pty Limited has made every effort to supply trademark information about companynames, products and services mentioned in this manual. Trademarks shown below werederived from various sources.

    CitectSCADA, CitectHMI/SCADA, CitectFacilities and CitectSCADA Batch are registeredtrademarks of Citect Pty. Limited.

    IBM, IBM PC and IBM PC AT are registered trademarks of International Business MachineCorporation.

    MS-DOS, Windows, Windows 98, Windows 2000, Windows XP and Excel are trademarks ofMicrosoft Corporation.

    dBase is a trademark of Borland Inc.

    General Notice:Some product names used in this manual are used for identification purposes only and may betrademarks of their respective companies.

    November 2004 Edition for CitectSCADA BatchManual Revision 1.0.0

  • 8/12/2019 CitectSCADA Batch Installation

    3/62

    3

    CitectSCADA Installation and ASW Guide

    T ABLE O F C ONTENTS

    1 INTRODUCTION ................................................................................................... ........................................... 4

    2 GENERAL ITEMS..................................................................................................................... ........................ 4

    3 INSTALLATION.................................................................. .............................................................................. 5

    3.1 CITECT ............................................................................................ .............................................................. 5 3.2 ACROBAT R EADER .......................................................................................... ............................................. 5 3.3 I NSTALL SHIELD .............................................................................................. ............................................. 5

    3.3.1 Common installation ......................................................................................... ...................................... 5 3.3.1.1 Any Client ............... ............... ................ .............. ............... ................ ............... ............... ................ ............... 6 3.3.1.2 Batch Client......................................................................................................................................................9 3.3.1.3 Batch Server...................................................................................................................................................16

    3.3.2 Failure Handling.............................................................................................. ..................................... 25 3.3.3 Uninstall ....................................................................................................... ......................................... 26 3.3.4 Programs ........................................................................................ ....................................................... 30

    4 CTB INCLUDE......................................................................... ........................................................................ 31 4.1 THE PROJECT CTB_I NCLUDE CONTAINS FOLLOWING FILES ....................................................................... 31 4.2 DEFINITION OF AN I/O SERVER AND I/O DEVICE ....................................................................................... 32

    4.2.1 Citect.ini Parameter: (Displayed are the default settings) ..................................................................32 4.2.1.1 Cicode ............................................................................................................................................................32 4.2.1.2 Citect INI settings ..........................................................................................................................................32

    4.3 DISPLAY OF PDF-R EPORT :....... ................................................................................................... ............... 33 4.3.1 Citect.ini Parameter: (Displayed are the default settings) ..................................................................33 4.3.2 Size of Active X Control ............................................................................... ......................................... 33

    4.4 DISPLAY OF CTBSUM ........................................................................................ ......................................... 34 4.5 DISPLAY OF CTBS AND CTBV ......................................................................................................... ......... 34

    4.5.1 CtBS ................................................................................................ ....................................................... 34 4.5.2 CTBV Detail ................................................................................... ....................................................... 34 4.5.3 CTBV Overview ................................................................................................ ..................................... 35

    4.6 CTBRP (R EPORT CREATION )....................... ............................................................................................... 35 4.6.1 Devices .................................................................................................................................................. 35 4.6.2 Citect.ini Parameter: (Displayed are the default settings) ..................................................................36

    4.7 WATCHDOG ....................................................................................................... ......................................... 37 4.7.1 Citect.ini Parameter: (Displayed are the default settings) ..................................................................38

    4.8 CTBREDDB..................................................... .......................................................................................... 39 4.8.1 Citect.ini Parameter: (Displayed are the default settings) ..................................................................39

    4.9 CTBBE ........................................................................................... ............................................................ 39 4.10 CTBSUM ............................................................................................................ ......................................... 40

    4.10.1 Parameters:......................................................................... .............................................................. 40 4.10.2 Devices:.............................................................................................................................................41 4.10.3 Periodical Event .................................................................................................. ............................. 42 4.10.4 Citect.ini Parameter: (Displayed are the default settings)......................... ..................................... 42 4.10.5 User Interface ................................................................................................... ................................ 43

    4.10.5.1 Example .........................................................................................................................................................44 5 ADVANCED BATCH SETUP WIZARD........................................ .............................................................. 45

    5.1 STAND ALONE COMPUTER ............................................................................................ ............................. 46 5.2 NETWORK COMPUTER ......................................................................................................... ....................... 49 5.2.1 Server and Display Client ............................................................................ ......................................... 49

    5.2.2 Display Client........................................................................................................................................ 54 5.3 A NY CLIENT .................................................................................................... ........................................... 57

    6 PROJECT CHANGE ........................................................................................... ............................................ 61 6.1 CITECT ............................................................................................ ............................................................ 61 6.2 EQUIPMENT OR R ECIPE EDITOR .................................................................................... ............................. 61 6.3 START ............................................................................................. ............................................................ 61

    7 GLOSSARY .......................................................................................................... ............................................ 62

  • 8/12/2019 CitectSCADA Batch Installation

    4/62

    4

    CitectSCADA Installation and ASW Guide

    1 IntroductionThe installation of the batch is carried out in two steps. First you install the Batch applicationvia the Install Shield and secondly you set your parameters for the Batch Application via the

    Advanced Batch Setup Wizard.

    Citect has already to be installed on the PC, except that the user choose the setup type AnyClient.

    2 General itemsCitect SCADA Batch is tested on Citect SCADA 5.42 r0 and W2K SP3 and Win XPProfessional (English edition). CitectSCADA V5.41 will not be supported.

    Citect SCADA Batch supports English, German and French Language. It is configured for theresolution 1024x768.

    Citect SCADA Batch uses a DAO Driver to communicate to the Audittrail Report.

    Citect SCADA Batch requires one CT-API license and one Citect Client license in order to runthe Batch Engine; Citect IDC and Flying Licenses are not supported.

  • 8/12/2019 CitectSCADA Batch Installation

    5/62

    5

    CitectSCADA Installation and ASW Guide

    3 Installation

    3.1 CitectThe Citect system has to be installed on the hard disk. During installation you should follow theinstructions of CiTechnologies and use the default settings.

    3.2 Acrobat Reader Acrobat Reader 4.0 or 5.0 should be installed.

    3.3 Install Shield

    3.3.1 Common installationThe install Shield is started via the setup.exe program in the following directory:

    A double click on the setup.exe program starts the Install shield of CitectSCADA Batch.

    The install shields starts with the following screen:In this step you select the type of Setup you want to carry out.The contains of the following window depends from your choice.

  • 8/12/2019 CitectSCADA Batch Installation

    6/62

    6

    CitectSCADA Installation and ASW Guide

    In general:With next you go to the next step / window of the Install Shield.With back you go one step / window back of the Install Shield.With cancel you quit the Install Shield.

    3.3.1.1 Any ClientIf you select the set up type Any Client the following parameters can be defined.With Select All you select all listed parameters.With Clear all you deselect all listed parameters.

    In the next window all selected parameters, in this case for the Any Client, are listed for yourinformation. The content of the window depends on the prior selected setup type andcomponents.

  • 8/12/2019 CitectSCADA Batch Installation

    7/62

    7

    CitectSCADA Installation and ASW Guide

    Here you select the folder in which you want CitectSCADA Batch be installed.

    With Browse you open a second window to search for a destination folder different from thedefault folder.

  • 8/12/2019 CitectSCADA Batch Installation

    8/62

    8

    CitectSCADA Installation and ASW Guide

    With next you start the copy process.

    After the installation of CitectSCADA Batch the installation of the MSDE Client Connectivity willbe started.

  • 8/12/2019 CitectSCADA Batch Installation

    9/62

    9

    CitectSCADA Installation and ASW Guide

    After the installation of CitectSCADA Batch and the MSDE Connectivity the installation hasbeen finished.

    To complete the Setup correctly you have to confirm the installation with the Finish button.

    3.3.1.2 Batch ClientIf you select the set up type Batch Client the following parameters can be defined.With Select All you select all listed parameters.With Clear all you deselect all listed parameters.

  • 8/12/2019 CitectSCADA Batch Installation

    10/62

    10

    CitectSCADA Installation and ASW Guide

    In the next window all selected parameters, in this case for the Batch Client, are listed for yourinformation. The content of the window depends on the prior selected setup type andcomponents.

    Here you select the folder in which Citect has been installed.

  • 8/12/2019 CitectSCADA Batch Installation

    11/62

    11

    CitectSCADA Installation and ASW Guide

    With Browse you open a second window to search for a destination folder different from thedefault folder.

    With next you start the copy process.

  • 8/12/2019 CitectSCADA Batch Installation

    12/62

    12

    CitectSCADA Installation and ASW Guide

    The DAO installation starts with a welcome screen.

    In general:With next you go to the next step / window of the DAO Installation.With back you go one step / window back of the DAO Installation.With cancel you quit the DAO Installation.

    In the following set up window you can define the components to be installed. It isrecommended not to change the standard settings during the DAO installation.

    With back you go backward to the previous step in the install shield application.With next you go forward to the next step in the install shield application.With cancel you will stop the installation.In the following set up window you can define the components to be installed. It isrecommended not to change the standard settings during the DAO installation.

  • 8/12/2019 CitectSCADA Batch Installation

    13/62

    13

    CitectSCADA Installation and ASW Guide

    With back you go backward to the previous step in the install shield application.With next you go forward to the next step in the install shield application.

    With cancel you will stop the installation.

    With next you start the copy process.

  • 8/12/2019 CitectSCADA Batch Installation

    14/62

    14

    CitectSCADA Installation and ASW Guide

    After the DAO installation has been carried out an information message appears that has to beconfirmed with OK.

    After the installation of DAO the installation of the MSDE Client Connectivity will be started.

  • 8/12/2019 CitectSCADA Batch Installation

    15/62

    15

    CitectSCADA Installation and ASW Guide

    After the installation of CitectSCADA Batch, DAO, and the MSDE Connectivity the installationhas been finished.

    To complete the Setup correctly you have to confirm the installation with the Finish button.

  • 8/12/2019 CitectSCADA Batch Installation

    16/62

    16

    CitectSCADA Installation and ASW Guide

    3.3.1.3 Batch ServerIf you select the set up type Batch Server the following parameters can be defined.With Select All you select all listed parameters.With Clear all you deselect all listed parameters.

    In the next window all selected parameters, in this case for the Batch Server, are listed foryour information. The content of the window depends on the prior selected setup type.

  • 8/12/2019 CitectSCADA Batch Installation

    17/62

    17

    CitectSCADA Installation and ASW Guide

    Here you select the folder in which Citect has been installed.

    With Browse you open a second window to search for a destination folder different from thedefault folder.

  • 8/12/2019 CitectSCADA Batch Installation

    18/62

    18

    CitectSCADA Installation and ASW Guide

    If you choose a directory in which Citect isn't installed, following message appears that has tobe confirm with OK.

    Confirm the message and browse for the correct directory.

    With next you start the copy process.

  • 8/12/2019 CitectSCADA Batch Installation

    19/62

    19

    CitectSCADA Installation and ASW Guide

    The DAO installation starts with a welcome screen.

    In general:With next you go to the next step / window of the DAO Installation.With back you go one step / window back of the DAO Installation.With cancel you quit the DAO Installation.

    In the following set up window you can define the components to be installed. It isrecommended not to change the standard settings during the DAO installation.

    With back you go backward to the previous step in the install shield application.With next you go forward to the next step in the install shield application.With cancel you will stop the installation.In the following set up window you can define the components to be installed. It isrecommended not to change the standard settings during the DAO installation.

  • 8/12/2019 CitectSCADA Batch Installation

    20/62

    20

    CitectSCADA Installation and ASW Guide

    With back you go backward to the previous step in the install shield application.With next you go forward to the next step in the install shield application.

    With cancel you will stop the installation.

    With next you start the copy process.

  • 8/12/2019 CitectSCADA Batch Installation

    21/62

    21

    CitectSCADA Installation and ASW Guide

    After the DAO installation has been carried out an information message appears that has to beconfirmed with OK.

  • 8/12/2019 CitectSCADA Batch Installation

    22/62

    22

    CitectSCADA Installation and ASW Guide

    After the installation of DAO the installation of the MSDE will be started. The MSDE Setupstarts with the following screen, if no Microsoft SQL Server Installation is detected.

    Here you define the destination folder for the MSDE SQL Server installation.

  • 8/12/2019 CitectSCADA Batch Installation

    23/62

  • 8/12/2019 CitectSCADA Batch Installation

    24/62

    24

    CitectSCADA Installation and ASW Guide

    Following window indicates that the installation of the CitectSCADA Batch has been carriedout.

    To complete the Setup correctly you have to confirm the installation with the Finish button.

  • 8/12/2019 CitectSCADA Batch Installation

    25/62

    25

    CitectSCADA Installation and ASW Guide

    3.3.2 Failure Handl ing

    Failure or Failuretext

    Effect Possible Reason Actions

    Wrong Parameter bycalling of setup

    The directory name inwhich the setupprogram has beensaved is too long

    The directory nameshould be less than70 characters

    The setup can'tcarried out

    The directorystructure within thesetup directory hasbeen changed

    The structure of thesubfolders in thesetup directory shouldnot be changed

    Error message fromwindows (Servicebatch instancecouldn't be started)

    No databaseavailable

    The service of theBatch instance hasn'tbe startedautomatically.

    Start the service(batch instance)manually

    OSQL.exe not found. Attach Database failed.

    No databaseavailable

    The MSDE databasecouldn't be installded.

    Carry out theinstallation again. Iffailure occurs again

    check the hardwareof you PC.

  • 8/12/2019 CitectSCADA Batch Installation

    26/62

    26

    CitectSCADA Installation and ASW Guide

    3.3.3 UninstallThe first Step to uninstall the Batch Application is to stop the Citect Batch RedundantDatabase Service.First you open the Control Panel via Start settings Control panelIn the Control Panel you start the Service Program and stop the Service

    When the Service is stopped, got o the next uninstall step.

    Uninstall of Citect Batch Redundant Database Service.Open the Windows menu Start and Run

    Change in the Citect \ Batch directory and type in the following cmd line:C:\Citect\CitectSCADA\Batch\ctbreddb r

    (Example)

    The Service will remove.When the Service is removed, got o the next uninstall step.

  • 8/12/2019 CitectSCADA Batch Installation

    27/62

    27

    CitectSCADA Installation and ASW Guide

    To uninstall the batch application you have to open the Add / Remove Program.First you open the Control Panel via Start settings Control panel

    In the Control Panel you start the Add / Remove Program.

  • 8/12/2019 CitectSCADA Batch Installation

    28/62

  • 8/12/2019 CitectSCADA Batch Installation

    29/62

    29

    CitectSCADA Installation and ASW Guide

    After you uninstalled the batch application select the batch instance of the Microsoft SQLServer Desktop Engine and press the button Remove.

    Do uninstall the Microsoft SQL Server Desktop Engine you have to confirm the followingmessage with Yes.

  • 8/12/2019 CitectSCADA Batch Installation

    30/62

    30

    CitectSCADA Installation and ASW Guide

    3.3.4 ProgramsThe programs Batch Advanced Setup Wizard, Batch Equipment Editor, Batch Engine, andBatch Recipe Editor can be called via Programs CitectSCADA Batch

  • 8/12/2019 CitectSCADA Batch Installation

    31/62

    31

    CitectSCADA Installation and ASW Guide

    4 CTB Include

    4.1 The project CtB_Include contains following filesThe files are located in the User directory of the project CtB_Include.Cicode functions: Global.ci

    Tools.ci

    StartBatch1.ciStartBatch2.ciRedDB1.ciRedDB2.ciCtBSum_Log.ciCtBSum_AddOn.ciKW.ciWatchdog.cipdf.ciReport.ci

    ActiveX.ci

    Format files: AlmQue.cidSU1.cidSU2.cidReportInfo.cidRecipe.cid

    Symbol library: sym_gen.ctl

    DLL libraries: FileInfo.dllFileDel.dllCtutil.dll

    Startup Function: StartBatch()Shutdown Function: EndOfRuntime()

    Note : The user has to call the functions, as the Startup and Shutdown function, within theproject.

    Note : All Citect INI Parameters are set with the default values during the first start up of theproject.

  • 8/12/2019 CitectSCADA Batch Installation

    32/62

    32

    CitectSCADA Installation and ASW Guide

    4.2 Definiti on of an I/O Server and I/O DeviceFollowing definitions should be carried out.

    4.2.1 Citect.in i Parameter: (Displayed are the default settings)If the project name is different from CtB_Include there are two possibilities to adapt the

    settings.4.2.1.1 CicodeThe function _StartBatch() in the StartBatch1.ci has to be adapted, accordingly to the enteredproject name.

    4.2.1.2 Citect INI settingsThe entry in the Citect INI has to be adapted, accordingly to the entered project name.[BatchInclude]PathBatch=d:\citect\citect5.50build_108\batchPathBatchProject=d:\citect\citect5.50build_108\User\CtB_Include

  • 8/12/2019 CitectSCADA Batch Installation

    33/62

    33

    CitectSCADA Installation and ASW Guide

    4.3 Display of PDF-Report:Following elements / actions are required to display the PDF-Report:

    Cicode function: pdf.ciSymbol library: sym_gen.ctl

    Page: CtBReportPageEntry Function(): CreateReader()PageExit Function(): ReaderExit()

    Citect Tags Variable Tag Name: sPDF_Filename Data Type: STRING

    4.3.1 Citect.in i Parameter: (Displayed are the default settings)If Acrobat Reader Version 5 is installed, following settings has to be adapted..

    [Acrobat]Version=4 4 = Version 4 , 5 = Version 5

    Requirements: Acrobat Reader has to be installed on the Computer.

    4.3.2 Size of Active X ControlIn the function CreateReader in the file pdf.ci adjustments regarding the size of the Active XControl can be carried out.

  • 8/12/2019 CitectSCADA Batch Installation

    34/62

    34

    CitectSCADA Installation and ASW Guide

    4.4 Display of CtBSumCicode function: ActiveX.ci

    ActiveX Control: CtBSum.ocx, has been installed during the CitectSCADA Batchinstallation.

    Page: CtBSumPageEntry Function(): SleepMs(1);

    _CreateAlarmHistorie("","",89,2,1020,601);

    4.5 Display of CTBS and CTBVCicode function: ActiveX.ci

    ActiveX Control: CtBSCtrl.ocx, has been installed during the CitectSCADA Batchinstallation.

    Following function is used to display the Active X Object:FUNCTI ON _Cr eat eCt BSCt r l ( I NT i Cont r ol t ype , STRI NG sCel l UI D , STRI NG sUni t UI D= " " , I NT i Top = 0 , I NT i Lef t = 0 , I NT i Wi ght = 1274 , I NT i Hei ght = 787 , I NT i An = - 1 )

    Parameters:iControltype 0 = Scheduler

    1 = ViewerDetail2 = ViewerOverview

    sCellUID 8 = used in the Demo project Cell 8 ( Note : The UID number has to be confirmwith the UID number entered in the Equipment Editor

    SUnitUID 0 = used in the Demo project Unit 8.0 ( Note : The UID number has to be confirmwith the UID number entered in the Equipment Editor

    iTop coordination pointiLeft coordination pointiWight coordination point

    iHeight coordination pointiAn Animation Point

    Following function is used to create the Active X Control, therefore you have to add the Animation point to the pages as defined below:

    Ct BSCt r l = DspAnCr eat eCont r ol Obj ect ( 201 , "Ct BSCt r lCont r ol " , i Wi ght , i Hei ght ) ;

    4.5.1 CtBSPage: CtBScheduler

    PageEntry Function(): SleepMs(1); _CreateCtBSCtrl(0,"8","",89,2,1020,601);

    Set the animation point to 201

    4.5.2 CTBV DetailPage: CtBViewerDetail

    PageEntry Function(): SleepMs(1); _CreateCtBSCtrl(1,"8","0",89,2,1020,601);

    Set the animation point to 201

  • 8/12/2019 CitectSCADA Batch Installation

    35/62

    35

    CitectSCADA Installation and ASW Guide

    4.5.3 CTBV OverviewPage: CtBViewerOverview

    PageEntry Function(): SleepMs(1); _CreateCtBSCtrl(2,"8","0",89,2,1020,601);

    Set the animation point to 201

    4.6 CtBRP (Report creation)Cicode function: Report.ci

    Initialization function: InitReport() (the function is called from function StartBatch in thefile StartBatch1.ci)

    4.6.1 DevicesFormat Files: ReportInfo.cid

    Recipe.cid

    Following settings should be carried out:

  • 8/12/2019 CitectSCADA Batch Installation

    36/62

    36

    CitectSCADA Installation and ASW Guide

    4.6.2 Citect.in i Parameter: (Displayed are the default settings)[CTBRP]Redundancy=0Enable=0

    Note : The parameter Redundancy is not supported after installation, as the redundancydepends on the project requirements and has to be defined during engineering. The report isnot enabled after installation.

    Requirements: Reports have to be installed during the installation of CitectSCADABatch .

    For detailed information see 3.3.1 Common installation.

    Requirements: Database access is required.Parameter [CTBE] Server Type has to be set to "PRIMARY" or"STANDBY"

  • 8/12/2019 CitectSCADA Batch Installation

    37/62

    37

    CitectSCADA Installation and ASW Guide

    4.7 WatchdogCicode function: Watchdog.ci

    Initializing function: StartBatchWatchdog() (the function is called from function StartBatch inthe file StartBatch1.ci)

    Label: MAX_IP_INDEX, 25

    Citect Tags Variable Tag Name: PrimaryTag Data Type: IntegerVariable Tag Name: Watchdog Data Type: Long (will be definedduring engineering as this is a PLC Tag)Variable Tag Name: PrimaryBatchTag Data Type: Integer (will bedefined during engineering as this is a PLC Tag)

    Following settings for the label should be carried out.

    Following settings for the Citect Tags should be carried out.

    The PrimaryTag will be used by the Batch Engine to define if the Batch Engine is Primary orStandby on the PC.

  • 8/12/2019 CitectSCADA Batch Installation

    38/62

    38

    CitectSCADA Installation and ASW Guide

    4.7.1 Citect.in i Parameter: (Displayed are the default settings)[CTBE]Enable=0 1 = Enable, 0 = DisableServerType= PRIMARY = Primary Batch Server, STANDBY = Standby

    Batch ServerForceRed=0 0 - Redundancy works normal,

    1 - Primary Batch Server is always active, Standby BatchServer is always inactive

    ServerCycle=6000 Polltime in MillisecondsBatchServerOnCitectServer=1 1 - Batch runs on I/O - Sever,

    0 - Batch runs on Citect Client

    Following settings are required: IF Parameter BatchServerOnCitectServer=1IP_Adress_Primary= IP-Adress of Primary ServerIP_Adress_Standby= IP-Adress of Standby ServerIP_Adress_Client1= IP-Adress of Clients...IP_Adress_Client2= IP-Adress of Clients...IP_Adress_Client3= IP-Adress of Clients...IP_Adress_Client4= IP-Adress of Clients...

    IP_Adress_Client5= IP-Adress of Clients...IP_Adress_Client6= IP-Adress of Clients...IP_Adress_Client7= IP-Adress of Clients...IP_Adress_Client8= IP-Adress of Clients...IP_Adress_Client9= IP-Adress of Clients...IP_Adress_Client10= IP-Adress of Clients...PingTimeout=0 Parameter for TCP/IP PingPingRetry=3 Parameter for TCP/IP PingPingDelay=100 Parameter for TCP/IP Ping

    Following settings are required: IF Parameter BatchServerOnCitectServer=0Partner_LAN_Node= [LAN] Node - Parameter of Batch-PartnerIOServerName1= IOServerName

    IOServerName2= IOServerNameIOServerName3= IOServerNameIOServerName4= IOServerNameIOServerName5= IOServerNameIOServerName6= IOServerName

  • 8/12/2019 CitectSCADA Batch Installation

    39/62

    39

    CitectSCADA Installation and ASW Guide

    4.8 CtBREDDBCicode functions: RedDB1.ci

    RedDB2.ci

    Initialization function: StartRedDB() (the function is called from function StartBatch inthe file StartBatch1.ci)

    Requirements: Installation of CitectSCADA Batch

    4.8.1 Citect.in i Parameter: (Displayed are the default settings)Following entries describe the access parameters for the database (e.g. for a view). Thesettings depends on the current location and name of the database.

    [RedDB]UserNameDB=batchPasswordDB=batchDbServer=127.0.0.1\BATCH

    4.9 CtBBECicode function: StartBatch2.ci

    Initialization function: StartBatchEXE() (the function is called from function StartBatch inthe file StartBatch1.ci)

    Requirements: Installation of the Batch Engine

    Note : With the actions as described above, the Batch Engine will be started with the start ofCitect Runtime.

  • 8/12/2019 CitectSCADA Batch Installation

    40/62

    40

    CitectSCADA Installation and ASW Guide

    4.10 CtBSumCicode functions: CtBSum_Log.ci

    CtBSum_AddOn.ci

    Initialization function: StartCTBSUM() (the function is called from function StartBatch inthe file StartBatch1.ci)

    Note : The creation of files will only be carried out on the alarm server.

    4.10.1 Parameters:Following settings should be carried out:

  • 8/12/2019 CitectSCADA Batch Installation

    41/62

    41

    CitectSCADA Installation and ASW Guide

    4.10.2 Devices:Format Files: AlmQue.cid

    SU1.cidSU2.cid (optional, for future extensions)

    Following settings should be carried out:

  • 8/12/2019 CitectSCADA Batch Installation

    42/62

    42

    CitectSCADA Installation and ASW Guide

    (optional, for future extensions)

    (optional, for future extensions)

    4.10.3 Periodic al EventFollowing settings should be carried out:

    Note : This element has to be activated via the compute setup in Citect on the Citect Primaryand Standby Server.

    4.10.4 Citect.in i Parameter: (Displayed are the default settings )[CTBSUM]Enable=0 0 = Disable, 1 = Enable; NOTE: Enable only on the

  • 8/12/2019 CitectSCADA Batch Installation

    43/62

    43

    CitectSCADA Installation and ASW Guide

    AlarmServerBatchEngineOnAlarmserver=1 0 = Batchengine runs not on an AlarmServer,

    1 = Batchengine runs on an AlarmserverNumberOfSum=1 the number of summary databasesEnableBackupSum=0 0 = no Backup File,

    1 = Create a Backup File in Case of RedundancyBackupPath= Path to store the Backup-FileServerType=PRIMARY PRIMARY = Priimary Alarm Server,

    STANDBY = Standby Alarm ServerDataPathPrimary= Data Path on Primary Alarm Server eg.

    \\\Data'DataPathStandby= Data Path on Standby Alarm Server eg.

    '\\\Data'PrefixFilenameSum1=SU Prefix - FileName, should be only 2 characters longPathSum1=Summary Folder for Summary DatabasePeriodSum1=DAY DAY, WEEK, or MONTHNumberOfDaysSum1=14 Time of History Files in days

    Note : The paths DataPathPrimary and DataPathStandby has to be defined on the Citect Alarm Servers and on the Citect Clients.

    Note : The summary is not enabled after installation.

    4.10.5 User InterfaceFollowing function can be called from every Citect Client to store information in the Summary.FUNCTI ON MsgToHi st or i e ( STRI NG sBatchno , STRI NG sUser , STRI NG sText , STRI NG sPr odukt no = " " , STRI NG sCompNo = " " , STRI NG sRohst of f Par t i e = " " , STRI NG sSet Poi nt = " " , STRI NG sAct ual Val ue = " " , STRI NG sTag = " " )

    Parameters:sBatchno Batch numbersUser User who carried out the actionsText General DescriptionsProduktno Product number (end product)sCompNo Component number (product number of the ingredient)sRohstoffPartie Component lot number (batch number of the ingredient)sSetPoint Set pointsActualValue Actual Valuestag Citect Tag

  • 8/12/2019 CitectSCADA Batch Installation

    44/62

    44

    CitectSCADA Installation and ASW Guide

    4.10.5.1 ExampleFollowing test page can be defined.

  • 8/12/2019 CitectSCADA Batch Installation

    45/62

    45

    CitectSCADA Installation and ASW Guide

    5 Advanced Batch Setup WizardThe Advanced Batch Setup Wizard is used to set the parameters of all CitectSCADA Batchfunctions. These setting can only be done by a Citect engineer during engineering.

    The Advanced Batch Setup Wizard is used to customize the Citect SCADA Batch.

    The Advanced Batch Setup Wizard is called from a button in Citect (V5.5), if Citect is installed,or via CitectSCADA Batch Batch Advanced Setup Wizard.

    The Advanced Batch Setup Wizard is called without Citect by executing the file CTABSW.exefrom the Install Folder.

    During installation you should follow the instructions and use the default settings.

    In general:With next you go to the next step / window of the Setup Wizard.With back you go one step / window back of the Setup Wizard.With cancel you quit the Advanced Batch Setup Wizard without any changes to the settings.

  • 8/12/2019 CitectSCADA Batch Installation

    46/62

  • 8/12/2019 CitectSCADA Batch Installation

    47/62

  • 8/12/2019 CitectSCADA Batch Installation

    48/62

    48

    CitectSCADA Installation and ASW Guide

    In the last step following actions are possible.

    With finish you complete the Advanced Batch Setup Wizard and save the settings.With Cancel you quit the Advanced Batch Setup Wizard without any changes to the settings.

  • 8/12/2019 CitectSCADA Batch Installation

    49/62

    49

    CitectSCADA Installation and ASW Guide

    5.2 Network Computer

    5.2.1 Server and Display ClientHere you configure the role of the computer in the system.

    You have the possibility to run the Batch Application on a Stand Alone Computer, on anetwork computer or on a computer without a Citect installation.The Any Client only supports the Batch Recipe Editor and the Batch Equipment Editor.

    If you select Network computer and Server and Display Client, following windows will appear.

    CTBREDDB ServerIn the next step you decide if the computer will be run as an CTBREDDB Server. If thecheckbox is not activated, thus the computer will not run as an CTBREDDB Server it is notpossible to edit the other fields in the screen.

  • 8/12/2019 CitectSCADA Batch Installation

    50/62

    50

    CitectSCADA Installation and ASW Guide

    If the checkbox "This computer is an CTBREDDB Server" is activated following fields have tobe edit.You have to enter the Computer name and the Port number of the redundant databasepartner.

    Note : If you leave the field of the computer name empty, the system will not be redundant.

    No CTBREDDB ServerIf you have decided that the computer will be not run as an CTBREDDB Server. Followingscreen appears. Here you have to define the names and port of the redundant databaseservers. If there is only one database server on the network leave the standby computer nameblank.

    Note : If only one database server is on the network the system will not be redundant.

  • 8/12/2019 CitectSCADA Batch Installation

    51/62

    51

    CitectSCADA Installation and ASW Guide

    CitectSCADA Batch ServerIn the next step you decide if the computer will be run as a CitectSCADA Batch Server. If thecheckbox is not activated, thus the computer will not run as a CitectSCADA Batch Server it isnot possible to edit the other fields in the screen.

    If the checkbox "This computer is an SCADA Batch Server" is activated following fields have tobe edit.First you have to decide if the Server is running as the Standby or the Primary Server. Thenyou have to enter the Computer name from the SCADA Batch partner. The port number for thebatch engine listener should be defined as well (the port will be used for the XCOMcommunication).

    Note : If you leave the field of the computer name empty, the system will not be redundant.

  • 8/12/2019 CitectSCADA Batch Installation

    52/62

    52

    CitectSCADA Installation and ASW Guide

    No CitectSCADA Batch ServerIf you have decided that the computer will be not run as a CitectSCADA Batch Server.Following screen appears. Here you have to define the names and port of the redundantCitectSCADA Batch Servers. If there is only one CitectSCADA Batch server on the networkleave the standby computer name blank.

    Note : If only one database server is on the network the system will not be redundant.

    In the next step you configure the project which the batch application should be run.You have the possibility to select an existing project via the list box.

  • 8/12/2019 CitectSCADA Batch Installation

    53/62

    53

    CitectSCADA Installation and ASW Guide

    In the next step you select the language in which the Batch application will be run. Followinglanguages will be supported: German, English, and French

    Here you select the language settings of the PC.

    In the last step following actions are possible.

    With finish you complete the Advanced Batch Setup Wizard and save the settings.With Cancel you quit the Advanced Batch Setup Wizard without any changes to the settings.

  • 8/12/2019 CitectSCADA Batch Installation

    54/62

    54

    CitectSCADA Installation and ASW Guide

    5.2.2 Display ClientHere you configure the role of the computer in the system.

    You have the possibility to run the Batch Application on a Stand Alone Computer, on anetwork computer or on a computer without a Citect installation.The Any Client only supports the Batch Recipe Editor and the Batch Equipment Editor.

    If you select Network computer and Display Client, following windows will appear.

    Here you have to define the names and port of the redundant database servers. If there is onlyone database server on the network leave the standby computer name blank.

    Note : If only one database server is on the network the system will not be redundant.

  • 8/12/2019 CitectSCADA Batch Installation

    55/62

    55

    CitectSCADA Installation and ASW Guide

    Next, following screen appears. Here you have to define the names and port of the redundantCitectSCADA Batch Servers. If there is only one CitectSCADA Batch server on the networkleave the standby computer name blank.

    Note : If only one database server is on the network the system will not be redundant.

    In the next step you configure the project which the batch application should be run.You have the possibility to select an existing project via the list box.

  • 8/12/2019 CitectSCADA Batch Installation

    56/62

    56

    CitectSCADA Installation and ASW Guide

    In the next step you select the language in which the Batch application will be run. Followinglanguages will be supported: German, English, and French

    Here you select the language settings of the PC.

    In the last step following actions are possible.

    With finish you complete the Advanced Batch Setup Wizard and save the settings.With Cancel you quit the Advanced Batch Setup Wizard without any changes to the settings.

  • 8/12/2019 CitectSCADA Batch Installation

    57/62

    57

    CitectSCADA Installation and ASW Guide

    5.3 Any ClientHere you configure the role of the computer in the system.

    You have the possibility to run the Batch Application on a Stand Alone Computer, on anetwork computer or on a computer without a Citect installation.The Any Client only supports the Batch Recipe Editor and the Batch Equipment Editor.

    If you select Any Client (Computer without Citect Installation), following windows will appear.

    Here you have to define the names and port of the redundant database servers. If there is onlyone database server on the network leave the standby computer name blank.

    Note : If only one database server is on the network the system will not be redundant.

  • 8/12/2019 CitectSCADA Batch Installation

    58/62

    58

    CitectSCADA Installation and ASW Guide

    In the next step you configure the project which the batch application should be run.You have the possibility to select an existing project via the list box.

    In the next step you can select the option to change the value for standardize.The standardize is used in the dialog Product in the Recipe EditorThe default standardize value is 100.

  • 8/12/2019 CitectSCADA Batch Installation

    59/62

    59

    CitectSCADA Installation and ASW Guide

    In the next step you can select the option if the assigned size in the dialog create controlrecipe in the Recipe Editor is used as constant.This has the effect that the amounts of the raw materials will multiply by the assigned size.

    By the default setting will be the assigned size the sum of all raw material set points

    In the next step you select the language in which the Batch application will be run. Followinglanguages will be supported: German, English, Sweden and French

    Here you select the language settings of the PC.

  • 8/12/2019 CitectSCADA Batch Installation

    60/62

    60

    CitectSCADA Installation and ASW Guide

    In the last step following actions are possible.

    With finish you complete the Advanced Batch Setup Wizard and save the settings.With Cancel you quit the Advanced Batch Setup Wizard without any changes to the settings.

  • 8/12/2019 CitectSCADA Batch Installation

    61/62

    61

    CitectSCADA Installation and ASW Guide

    6 Project Change

    6.1 CitectRestore the required Project

    Computer Setup Citect (custom)

    Stand alone project name . all activated activate events and transfer entry to events enabled if necessary

    Compile the project

    In the Citect INI File delete following entry before starting the Batch Engine:[BatchInclude]PathBatch=e:\Citect542\batchPathBatchProject=e:\Citect542\User\BatchDemo has to be deleted

    Configure Citect INI if necessary Acrobat Reader ?CTBRP Enable = ?CTBSUM Enable = ?

    6.2 Equipment or Recipe EditorNew Project with default.bak via RE or EE

    Empty project

    or Restore an existing project via RE or EE existing project

    CitectSCADA Batch ASW change project

    ( or Via registryHKEY_LOCAL_MACHINE/CTBE/REDDB/CatalogHKEY_LOCAL_MACHINE/CTBRDBCI/ REDDB/Catalog)

    6.3 StartStart of the Citect projectStart of BE (eg. via the start function in the test page of the include project)

  • 8/12/2019 CitectSCADA Batch Installation

    62/62