342
Vijeo Citect Project Development Instructor: Truong Dinh Chau

Vijeo Citect - Project Development

Embed Size (px)

Citation preview

Page 1: Vijeo Citect - Project Development

Vijeo Citect

Project Development

Instructor: Truong Dinh Chau

Page 2: Vijeo Citect - Project Development

Click to edit Master title styleInstructor

Truong Dinh Chau, Ph.D

Department of Automation & Control,

Automation Design Center, 109 B3

Ho Chi Minh City Univ. of Tech.

Cell phone: +84 (0)91-543-74-40Cell phone: +84 (0)91-543-74-40

Email: [email protected]

[email protected]

Page 3: Vijeo Citect - Project Development

Click to edit Master title styleObjectives (pg1-3)

� Good understanding & competent in use of Vijeo Citect

� Able to communicate with PLC and PLC network using Vijeo Citect

� Apply learning to your own site or project� Apply learning to your own site or project

� Troubleshoot problems and take appropriate action

� Maximise performance of your Vijeo Citect application

� Use the on-line help and Knowledge Base effectively

Page 4: Vijeo Citect - Project Development

Click to edit Master title styleAgenda - Day 1 (pg1-4)

� Introduction to open system of Schneider Electric Automation Design Center (Vietnam)

� Conception. Structure. Component

� Client Configuration

� Managing Projects

� Setting up Communications

� Graphics

Page 5: Vijeo Citect - Project Development

Click to edit Master title styleAgenda - Day 2 (pg1-4)

� Commands and Controls

� Genies

� Pop-up Pages and Super Genies

� Device connection mechanisms� Device connection mechanisms

Page 6: Vijeo Citect - Project Development

Click to edit Master title styleAgenda - Day 3 (pg1-4)

� Devices

� Events

� Alarms

� Trends� Trends

� Process Analyst

� Navigation

� Reports

� Security

Page 7: Vijeo Citect - Project Development

Introduction to open system of Schneider Electric Automation

Design Center (Vietnam)Design Center (Vietnam)

Page 8: Vijeo Citect - Project Development

Click to edit Master title styleTopics

� System overview

� Distributed architecture

� Segment

Page 9: Vijeo Citect - Project Development

Click to edit Master title styleSystem Overview

Page 10: Vijeo Citect - Project Development

Click to edit Master title styleDistributed Architecture

Page 11: Vijeo Citect - Project Development

Click to edit Master title styleSegment

Page 12: Vijeo Citect - Project Development

ConceptionStructure

ComponentComponent

Page 13: Vijeo Citect - Project Development

Click to edit Master title styleTopics

� Introduction to open system of Schneider Electric Automation Design Center (Vietnam)

� Supervisory control conception

� SCADA definition

� Structure of traditional SCADA systemsStructure of traditional SCADA systems

� Functional organization of SCADA system

� Technical keywords of SCADA system

� Typically tasks in SCADA system

� Distributed architecture in Vijeo Citect

� Popular SCADA packages

� Vijeo Citect Product

Page 14: Vijeo Citect - Project Development

Click to edit Master title styleSupervisory Control Conception

Process

Sensor

Actuator

Local control loop

Sensor

PLC

Motor

Speed

Control

PLC

Converter

Page 15: Vijeo Citect - Project Development

Click to edit Master title styleSupervisory Control Conception

Motor

Speed

Control

PLC

Converter

PLC

%I0.1.0 %I0.1.1

%Q0.2.0

PIDSet speed

2000 RPM

%Q0.2.0

Page 16: Vijeo Citect - Project Development

Click to edit Master title styleSupervisory Control Conception

Page 17: Vijeo Citect - Project Development

Click to edit Master title styleDefinition of SCADA

SCADA -Supervisory Control And Data AcquisitionSupervision, Control And

• Real-time DAQ• Processing•Supervision, Control And

Data Acquisition• Archives• Monitoring

• Control

Page 18: Vijeo Citect - Project Development

Click to edit Master title style

� Supervisory Control And Data Acquisition

� Supervision, Control And Data Acquisition

Definition of SCADA

Supervision, Control And Data Acquisition

Source: http://www.webopedia.com/TERM/S/SCADA.html

Page 19: Vijeo Citect - Project Development

Click to edit Master title styleStructure of traditional SCADA systems

process

InternetInternetsensor

PLC

operator

sensor

sensor

RouterRouter

RTUCS

MTU

process

process

Page 20: Vijeo Citect - Project Development

Click to edit Master title styleFunctional organization of SCADA system

� Information data acquisition from controllers located in the low level

� Saving the obtained data in storages

� Processing of obtained information

� Graphical interpretation

� Receiving command from operator and transfer them to � Receiving command from operator and transfer them to controllers

� Event registration regarding to control process and personal actions

� Prevention or notification about events and alarms

� Reporting

� Data exchange with enterprise automated control systems

� Direct automatic control of control processes

Page 21: Vijeo Citect - Project Development

Click to edit Master title style� Graphics displays� Tag� Alarms, Events� Trends: Real-time, historical� Report� I/O driver� I/O server

Technical keywords of SCADA system

� I/O server� Real-time� Multitasking� Openness� Scalability� Data access� Database� Networking� Fault tolerance and redundancy� Client/server distributed processing

Page 22: Vijeo Citect - Project Development

Click to edit Master title style� Input/output task

This program is the interface between the control and monitoring system and the plant floor.

� Alarm task

This manages all alarms by detecting digital alarm points and comparing the values of analog alarm points to alarm thresholds.

Typicall tasks in SCADA system

thresholds.

� Trends task

The trends task collects data to be monitored over time.

� Reports task

Reports are produced from plant data. These reports can be periodic, event triggered or activated by the operator.

� Display task

This manages all data to be monitored by the operator and all control actions requested by the operator.

Page 23: Vijeo Citect - Project Development

Click to edit Master title style� Open architecture design

� Real-time multitasking

� Client/server fully supported with no user configuration

� Distributed project updates (changes reflected across

Distributed architecture in Vijeo Citect

(changes reflected across network)

� Concurrent support of multiple display nodes

� Access any tag from any node

� Access any data (trend, alarm, report) from any node

Page 24: Vijeo Citect - Project Development

Click to edit Master title stylePopular SCADA packages

Schneider Electric

Wonderware

Rockwell Automation

Intellution

Company

France

USA

USA

USA

Country

Citect

InTouch

RSView

iFIX

SCADA

Intellution

Advantech

Iconics

AdAstra

Schneider Electric

United States Data

National Instruments

Siemens

USA

Taiwan

USA

Russia

France

USA

USA

Germany

iFIX

GeniDAQ

Genesis32

Trace Mode

Vijeo Look

Factory Link

LabView

WinCC

Page 25: Vijeo Citect - Project Development

Click to edit Master title styleVijeo Citect Product

� Market share

� Around 70% - 80% Australian market share

� Closer to 8% worldwide

� Age & maturity of the product

� First version released in the mid-1980s� First version released in the mid-1980s

� Currently v7.10

� Strengths

� Flexibility to support PLCs from nearly ALL vendors

� Robust development environment

Page 26: Vijeo Citect - Project Development

Vijeo Citect

Configuration

EnvironmentEnvironment

Page 27: Vijeo Citect - Project Development

Click to edit Master title styleTopics

� System requirements

� Vijeo Citect Explorer

� Include Projects

� Vijeo Citect Project Editor� Vijeo Citect Project Editor

� Vijeo Citect Graphics Builder

� Cicode Editor

Page 28: Vijeo Citect - Project Development

Click to edit Master title styleThe Vijeo Citect Environment

� Divided into two distinct parts:

� Runtime System

� Configuration Environment

� Citect ExplorerCitect Explorer

� Project Editor

� Citect Graphics Builder

� Cicode Editor

� Citect Help

Page 29: Vijeo Citect - Project Development

Click to edit Master title styleSystem Requirements (pg2-2)

� Review your hardware requirements if upgrading from previous versions

� Minimum Hardware – False economy

� Process Analyst – very intensive graphics

Standard Business PC has low-end graphics capability

� Windows 95, 98, ME, NT no longer supported

Page 30: Vijeo Citect - Project Development

Click to edit Master title styleSystem Requirements (pg2-2)

� Operating System

� Windows 2000

� Windows XP-SP2

� Windows Server 2003

� Minimum Hardware

� Pentium 500MHz

� 128MB RAM

� Preferred Hardware

� Pentium 1GHz

� 512MB RAM

Page 31: Vijeo Citect - Project Development

Click to edit Master title styleLicensing (pg2-3)

� Point Count

� 75, 150, 500, 1500, 5000, 15000, unlimited

� 1 point = 1 variable tag linked to an external device that is used in the project

� Client Access Licences (CALs)

� Full: Server or Display Client

� Manager: Read only (not for servers)

� Internet Display, Internet Manager

� Server-side (floating) licences

Page 32: Vijeo Citect - Project Development

Click to edit Master title styleRuntime System (pg2-2)

� The runtime system consists of

� Runtime Application

� Vijeo Citect Kernel

� Cicode Debugger

� At runtime Vijeo Citect will communicate � At runtime Vijeo Citect will communicate with

� I/O Devices

� MS Windows and other applications

� Other computers

Page 33: Vijeo Citect - Project Development

Click to edit Master title styleCitect Explorer (pg 2-4)

� Automatically starts and stops Project Editor and Graphics Builder

� Project selection and managementmanagement

� Backup and Restore

� Start other applications

Page 34: Vijeo Citect - Project Development

Click to edit Master title styleInclude Projects (pg2-5)

Main Project

Plant Section #1 Plant Section #2CSV_ Include

(XP Style)Include

(Pre V5.5 Objects)

� Include up to 240 projects (including system projects)

� Any modifications in Citect supplied Include projects will be overwritten in upgrades

� Create your own Include project for cross project needs

(XP Style) (Pre V5.5 Objects)

Page 35: Vijeo Citect - Project Development

Click to edit Master title styleProject Editor (pg2-6)

� Create and manage the Vijeo Citect database containing the configuration information for your information for your Vijeo Citect project

� Does not manage graphics pages

� View all Vijeo Citect project database records

dbf files

Page 36: Vijeo Citect - Project Development

Click to edit Master title styleCicode Editor (pg2-8)

Auto- IndentSyntax

ColouringKeyWord Case

Page 37: Vijeo Citect - Project Development

Hands-on Exercise

Exercise 2.1Exercise 2.1

Exploring the Environment

Page 2-9

Page 38: Vijeo Citect - Project Development

Click to edit Master title styleSummary Questions

� Name the four separate programs comprising the Vijeo Citect Configuration Environment.

� Which component is also known as the controlling configuration application?configuration application?

� Which program must be started separately?

Page 39: Vijeo Citect - Project Development

Managing Projects

Page 40: Vijeo Citect - Project Development

Click to edit Master title styleTopics

� Create a New Project

� Computer Setup Wizard

� Backup and Restore a Project

� Including Projects� Including Projects

Page 41: Vijeo Citect - Project Development

Click to edit Master title styleNew Projects (pg3-2)

� Up to 64 characters

� Best not to use any special characters:

� Forbidden:

� “ * | \ [ ] : < > ? / ; ‘

� Probably bad:� Probably bad:

� ! @ # $ % ^ & ( ) + = } { ~ ,

� Underscore _ is OK

Page 42: Vijeo Citect - Project Development

Hands-on Exercise

Exercise 3.1Exercise 3.1

Create a New Project

Page 3-4

Page 43: Vijeo Citect - Project Development

Click to edit Master title styleComputer Setup Wizard (pg3-5)

� Defines Vijeo Citect communications and PC hardware

� Run on each computer running Vijeo Citect to define its role

� Client

� Server and Client

� Manager Client (no control, full monitoring)

� Set up alarms, reports, trends & events

� Select options that affect the runtime application Outside of Citect

computer set-up wizard

Controllers

Page 44: Vijeo Citect - Project Development

Hands-on Exercise

Exercise 3.2Exercise 3.2

Computer Setup Wizard

Page 3-6

Page 45: Vijeo Citect - Project Development

Click to edit Master title styleBackup & Restore (pg3-9)

� From Vijeo Citect Explorer

� Backup

� Restore

Page 46: Vijeo Citect - Project Development

Click to edit Master title styleBackup is a Zip File (pg3-9)

You can change the You can change the suffix of “ctz” to “zip” and view the contents of the backup

Page 47: Vijeo Citect - Project Development

Click to edit Master title styleBackup Management (pg3-9)

� Change Log

� Version Control

� Be able to back-track

Page 48: Vijeo Citect - Project Development

Click to edit Master title styleRestore as New Project (pg3-12)

� Restore as a current project overwrites existing project with the same name

Page 49: Vijeo Citect - Project Development

Hands-on Exercise

Exercise 3.3

Backing Up, Restoring and Deleting a Project

Page 3-10

Page 50: Vijeo Citect - Project Development

Click to edit Master title styleInclude Projects (pg3-13)

View New Selection

Page 51: Vijeo Citect - Project Development

Hands-on Exercise

Exercise 3.4Exercise 3.4

Including Projects

Page 3-14

Page 52: Vijeo Citect - Project Development

Click to edit Master title styleSummary Questions

� In which directory is each project created and stored?

� What is the name of the pre-configured project that is installed with each new project?is installed with each new project?

� Which Wizard allows you to setup and customise your computer?

� Why should backups be taken of your project?

Page 53: Vijeo Citect - Project Development

Setting Up CommunicationsCommunications

Page 54: Vijeo Citect - Project Development

Click to edit Master title styleTopics

� Express communications wizard

� Communications dialogs

� Tag conception

� Variable tags� Variable tags

� Forms

� Testing communications

� Structured tag names

� Using MS Excel and MS Access to add variable tags

Page 55: Vijeo Citect - Project Development

Click to edit Master title styleVijeo CitectSCADA I/O (pg4-2)

Vijeo Citect

Vijeo Citect I/O Server

Express Communication

Wizard

I/O BoardsI/O Boards

PortsPorts

Devices

Page 56: Vijeo Citect - Project Development

Click to edit Master title styleCommunications Wizard (pg4-2)

� Defines communications with respect to the Vijeo Citect software

Select Project

Page 57: Vijeo Citect - Project Development

Click to edit Master title styleCommunications Wizard (pg4-2)

Page 58: Vijeo Citect - Project Development

Click to edit Master title styleExpress Communication (p4-3)

Page 59: Vijeo Citect - Project Development

Hands-on Exercise

Exercise 4.1Exercise 4.1

Express Communication Wizard

Page 4-3

Page 60: Vijeo Citect - Project Development

Click to edit Master title styleCommunications Files (pg4-10)

� Database files (*.dbf)

� Can be viewed in MS Excel,

MS Access, etc.

I/O Server -- scanner.dbf

Boards -- boards.dbf

Ports -- ports.dbf

I/O Devices -- unit.dbf

Page 61: Vijeo Citect - Project Development

Click to edit Master title styleI/O Device Types (pg4-11)

� External I/O Device

� Manufacturer

� Protocol

� Address

� Memory I/O Device

� Does not retain data

� Specify protocol

� Disk I/O Device� Address � Disk I/O Device

� Specify data file location

� Retains data

� Specify protocol

1010101010101010

PC memory PC Disk

Page 62: Vijeo Citect - Project Development

Click to edit Master title styleI/O Device Configuration (pg4-11)

Hit <F2> Key to view extra options

Click Help for field information

Page 63: Vijeo Citect - Project Development

Click to edit Master title styleAfter the I/O Wizard (pg4-11)

Page 64: Vijeo Citect - Project Development

Hands-on Exercise

Exercise 4.2Exercise 4.2

Communication Dialogs

Page 4-11

Page 65: Vijeo Citect - Project Development

Click to edit Master title styleTag conception

Tag interpretation

Page 66: Vijeo Citect - Project Development

Click to edit Master title styleTag conceptionTag structure

Tag structure in RSView32, Rockwell Automation

Page 67: Vijeo Citect - Project Development

Click to edit Master title styleTag conceptionTag structure

Tag structure in GenieDAQ, Advantech

Page 68: Vijeo Citect - Project Development

Click to edit Master title styleTag conception

Tag definition

� New concept in the industry automation.

� Abstracting of engineering process parameters of information sources.

� Real-time data from sensors: temperatures, pressures, flow, … (primary parameters)pressures, flow, … (primary parameters)

� State of actuators – open/close, start/stop, state of regulators (PID): automatic/manual/off.

� Value of counter, random number generator.

� Messages from measuring instruments.

� Secondary parameters.

Page 69: Vijeo Citect - Project Development

Click to edit Master title styleTag conceptionTag abstracting

Tag =

{

Characteristic 1

Characteristic 2

Characteristic N

}

Runtime

Tag = {

NameIDValueEUDescriptionDeviceAddress

}

Tag = {

Pump_1_Speed0x03C00040250“RPM”“Speed of feed pump”Premium_192_168_1_51400123

}

Page 70: Vijeo Citect - Project Development

Click to edit Master title styleTag conceptionCommand/Data direction

� Input – signal is resulted from physical devices.

� Output – signal is intended for write to physical devices.

� Readable output – Input/Output.

� Internal – resulted from other tags by specified algorithm,

internal channels, buffers.

Page 71: Vijeo Citect - Project Development

Click to edit Master title styleTag conceptionCommand/Data direction

Input Device

Input Device

Internal

Page 72: Vijeo Citect - Project Development

Click to edit Master title styleTag conceptionTag value

� Data value VARIANT type

� Time stamp FILETIME

� Quality UNCERTAIN, GOOD, BAD

32.234, GOOD, 20 December, 2004 15:21:22:74

class Tag

{

...

VARIANT Value;

WORD Quality;

FILETIME TimeStamp;

...

};

Value.vt = VT_BOOL;Value.boolVal = TRUE;

Value.vt = VT_I2;Value.iVal = 15;

Value.vt = VT_R4;Value.fltVal = 3.14;

Page 73: Vijeo Citect - Project Development

Click to edit Master title styleTag conceptionTimestamp obtain

Value2.5

10:12:07 2.5

Physical I/O device

Quality GOOD

10:12:07

2.5

Page 74: Vijeo Citect - Project Development

Click to edit Master title styleTag conception

Tag structure in Vijeo Citect

Tag = {NameIDClusterDeviceAddressData TypeValueRaw Zero ScaleRaw Full ScaleEng Zero ScaleEng Full ScaleDeadbandEUDescription }

Tag = {Pump_1_Speed0x03C00040Cluster1Premium_192_168_1_51400123INT250NANA0500NA“RPM”“Speed of feed pump” }

Page 75: Vijeo Citect - Project Development

Click to edit Master title styleTag conception

Scaling

Raw scale: m1] [n1,

Engineering Scale: m2] [n2,

n1)-x (Linear scaling:

n1m1

n1)-x (n2)(m2n2y

−−+=

Quadratic scaling:n1m1

) n1 -x (n2)(m2n2y

−−+=

0 4095

0) -(x (-10)) (1010y

−−+−=

Page 76: Vijeo Citect - Project Development

Click to edit Master title styleTag conception

Deadband

( )100.0

Deadband LowScale- HighScale e PrevChang- ueCurrentVal >

Page 77: Vijeo Citect - Project Development

Click to edit Master title styleTag conception

Deadband

Timestamp 15:5:0:177 Value = 8.4834

Timestamp 15:5:0:678 Value = 8.4901

Timestamp 15:5:1:179 Value = 8.4305

Timestamp 15:5:1:679 Value = 8.4454

Timestamp 15:5:2:180 Value = 8.4492

Timestamp 15:5:2:681 Value = 8.4240

Deadband = 0; 500ms

Timestamp 15:5:2:681 Value = 8.4240

Timestamp 15:8:17:140 Value = 7.6986

Timestamp 15:8:48:686 Value = 0.8023

Timestamp 15:9:20:231 Value = 7.6478

Timestamp 15:9:51:776 Value = 0.7230

Timestamp 15:10:23:322 Value = 7.6375

Timestamp 15:10:54:867 Value = 0.7939

Deadband = 0.1V; 500ms

T = 31.5

Page 78: Vijeo Citect - Project Development

Click to edit Master title styleTag Forms (pg4-13)

Create a new record with the current details

Update an existing record with the current details

Delete the current record

Access help on the currently selected function

Page 79: Vijeo Citect - Project Development

Click to edit Master title styleShow Deleted Entries (pg4-13)

� Deleted items are “flagged for deletion”

� File | Packdeletes items

ShowDeletedItems

DeletedItemsVisible

Page 80: Vijeo Citect - Project Development

Click to edit Master title styleTest Communications (pg4-14)

� Create variable tag called “Test”

� Use graphics builder to create simple page

� Associate buttons and � Associate buttons and text label to “TEST” tag

� Compile, run, and watch the magic

Page 81: Vijeo Citect - Project Development

Hands-on Exercise

Exercise 4.3Exercise 4.3

Testing Communications

Page 4-14

Page 82: Vijeo Citect - Project Development

Click to edit Master title styleStructured Tag Names (pg4-22)

� Area_Type_Occurrence_Attribute

� Simplifies maintenance and allows creation of sophisticated genies

� Area section identifies a plant area, number, or name – can be omitted if not needed

� Type section identifies the Type of parameter, process equipment, or control hardware. The ISA standard naming system is recommended

� Type section identifies the Type of parameter, process equipment, or control hardware. The ISA standard naming system is recommended

� Occurrence section identifies the loop number

� Attribute section identifies the attribute or particular parameter that is associated with the loop

� ISA Standards Link

Page 83: Vijeo Citect - Project Development

Click to edit Master title styleStructured Tag Names (pg4-23)

Variable Tag Meaning

Area

B1_bbb_ccc_dd Boiler 1

B2_bbb_ccc_dd Boiler 2

Type

aa_TIC_ccc_dd Temperature Indicating Controlleraa_TIC_ccc_dd Temperature Indicating Controller

aa_FIV_ccc_dd Flow Indicating Controller

aa_VALVE_ccc_dd Valve

Occurence

aa_TIC_101_dd Temperature Indicating Controller 101

aa_FIV_102_dd Flow Indicating Controller 102

Attribute

aa_bbb_ccc_PV Process variable

aa_bbb_ccc_SP Set Point

aa_bbb_ccc_CMD Command Signal

Page 84: Vijeo Citect - Project Development

Click to edit Master title styleTag Naming (pg4-23)

� Up to 79 characters

� Do not start names with a digit

� Best not to use any special characters:

� Forbidden:

� * | \ [ ] : < > ? / ; , “� * | \ [ ] : < > ? / ; , “

� Probably bad:

� ! @ # $ % ^ & ( ) + = } { ~ `

� Underscore _ is OK

� Structured tags allow text string substitution in genies and super genies

� Avoids entering full tag names

Page 85: Vijeo Citect - Project Development

Hands-on Exercise

Exercise 4.4

Milk Treatment Plant Variable Tags

Page 4-24

Page 86: Vijeo Citect - Project Development

Click to edit Master title styleBackup & Think Again (pg4-25)

Danger!! Always backup your original <name>.dbf file!!

Vijeo Citect can be made inoperable by changing these files outside of the application

Page 87: Vijeo Citect - Project Development

Click to edit Master title styleSave DBF Macro (pg4-25)

� Handy to use Excel, Access to make mass changes or view multiple records

� In c:\Citect\bin is a macro that you can run and add in this functionality

� Excel will open dbf files but not save them as dbf files easily

� Must set Excel security to “low” and restart Excel

Page 88: Vijeo Citect - Project Development

Click to edit Master title styleAdd Tags using MS Excel and MS Access (pg4-26)

� Open Variable.dbf

� Excel, Access opens

� Right click & � Right click & Save/Close DBF in C:\temp\ as

variable_new.dbf

Page 89: Vijeo Citect - Project Development

Hands-on Exercise

Exercise (optional)Exercise (optional)

Using Microsoft Excel and MS Access to Add Variable Tags

Page 4-25

Page 90: Vijeo Citect - Project Development

Click to edit Master title styleSummary Questions

� What is the minimum number of I/O servers required?

� What information is configured through the Express Communications Wizard?

� What information is stored within a variable tag?� What information is stored within a variable tag?

� How are the communications tested?

� What sections comprise the naming standard for tags?

Page 91: Vijeo Citect - Project Development

Graphics

Page 92: Vijeo Citect - Project Development

Click to edit Master title styleTopics

� Create pages

� CSV_Include project

� Drawing basic objects

� Runtime properties� Runtime properties

� Creating symbols

� ActiveX

� True colour graphics

Page 93: Vijeo Citect - Project Development

Click to edit Master title styleInclude Templates (pg5-3)

Retain link to template when used in project

Page 94: Vijeo Citect - Project Development

Hands-on Exercise

Exercise 5.1Exercise 5.1

Creating a New Page

Page 5-6

Page 95: Vijeo Citect - Project Development

Click to edit Master title styleDrawing Objects (pg5-7)

Free hand

Rectangle

Polygon

Line

Oval

Pipe

Process Analyst

Genie

Text tool

Button

Active X Control

Symbol

Numeric

Symbol Set

Cicode ObjectTrend

Database Exchange

Page 96: Vijeo Citect - Project Development

Click to edit Master title styleDrawing Objects (pg5-7)

� Objects can also be

selected from

“Objects” on the

pull-down menu

Page 97: Vijeo Citect - Project Development

Click to edit Master title styleObject Properties (pg5-7)

� Appearance (General)

� Quick reference to altered properties

� Alter a property and a ���� appears in the tab

Page 98: Vijeo Citect - Project Development

Click to edit Master title stylePasteuriser Layout (pg5-9)

Page 99: Vijeo Citect - Project Development

Hands-on Exercise

Exercise 5.2Exercise 5.2

Drawing the Milk Treatment Graphics Page

Page 5-10

Page 100: Vijeo Citect - Project Development

Click to edit Master title styleUseful Drawing Tips (pg5-12)

� ‘Lasso’ several objects

� Group Objects

� Send to Back

� Bring to Front

� Copy: <ctrl> d / <ctrl> drag

� Mouse-down + arrow keys

� ‘Enter’ + arrow keys

Page 101: Vijeo Citect - Project Development

Hands-on Exercise

Exercise 5.3Exercise 5.3

Rectangles, Squares, Ellipses and Circles

Page 5-14

Page 102: Vijeo Citect - Project Development

Hands-on Exercise

Exercise 5.4Exercise 5.4

Pipes, Polylines and Polygons

Page 5-16

Page 103: Vijeo Citect - Project Development

Click to edit Master title styleExpression Wizard (pg5-18)

� Avoid typos – use Expression Wizard!

Page 104: Vijeo Citect - Project Development

Click to edit Master title styleRuntime Object Display (pg5-18)

MultiStateOn / Off

Array Threshold

Page 105: Vijeo Citect - Project Development

Hands-on Exercise

Exercise 5.5Exercise 5.5

Displaying Objects in Different Colours at Runtime

Page 5-18

Page 106: Vijeo Citect - Project Development

Hands-on Exercise

Exercise 5.6Exercise 5.6

Displaying a Bar Graph

Page 5-20

Page 107: Vijeo Citect - Project Development

Hands-on Exercise

Exercise 5.7Exercise 5.7

Displaying Numbers at Runtime

Page 5-22

Page 108: Vijeo Citect - Project Development

Hands-on Exercise

Exercise 5.8Exercise 5.8

Displaying Text at Runtime

Page 5-23

Page 109: Vijeo Citect - Project Development

Click to edit Master title styleSymbol Sets (pg5-25)

� Symbol sets

� Multiple or sequential graphics indicate change of states

� Arrays – change colour with values input

� Animation – movement responding to input

Page 110: Vijeo Citect - Project Development

Hands-on Exercise

Exercise 5.9Exercise 5.9

Using Symbol Sets

Page 5-25

Page 111: Vijeo Citect - Project Development

Click to edit Master title styleSymbol Set Libraries (pg5-27)

� From Include Projects

� Add your own library� Avoids being overwritten on upgrading CitectHMI/SCADA

� Valve_Solenoid.up_small_green

� Duplicate libraries in multiple projects are merged

Symbol setlibraries

Library Name Object Name

Page 112: Vijeo Citect - Project Development

Hands-on Exercise

Exercise 5.10Exercise 5.10

Creating Symbols

Page 5-30

Page 113: Vijeo Citect - Project Development

Click to edit Master title styleActiveX Controls (pg5-32)

� Microsoft standard

� Separate component

� Developed by Citect and integrated into Vijeo integrated into Vijeo CitectHMI/SCADA

� Can be developed(and supported)by 3rd parties

Page 114: Vijeo Citect - Project Development

Click to edit Master title styleActiveX Controls (pg5-32)

� ActiveX properties unique to each control

� Insert ActiveX control just like any other objectlike any other object

� Meters

� Menus

� Calendars

� Control Panels

Page 115: Vijeo Citect - Project Development

Hands-on Exercise

Exercise 5.11Exercise 5.11

Add an ActiveX Object

Page 5-33

Page 116: Vijeo Citect - Project Development

Click to edit Master title styleImporting Graphics (pg5-37)

� Create Images from External sources

� Import many file types, including

� BMP

� DXF

� EPS� EPS

� JPG

� PCX

� PNG

� TIF

� WMF

Page 117: Vijeo Citect - Project Development

Hands-on Exercise

Exercise 5.12Exercise 5.12

Importing Graphics Images

Page 5-38

Page 118: Vijeo Citect - Project Development

Click to edit Master title styleCreate Image as Background (pg5-43)

� Lock Background Images

� Cannot select background image

� Edit | Lock Object

Page 119: Vijeo Citect - Project Development

Hands-on Exercise

Exercise 5.14Exercise 5.14

Set an Image as the Background

Page 5-43

Page 120: Vijeo Citect - Project Development

Click to edit Master title styleSummary Questions

� Which project is automatically configured with new projects?

� What do libraries contain?

� What steps do you take to test modifications to the project page?

� Why are True Colour Graphics used?

� Which program is used to import these graphic files?

Page 121: Vijeo Citect - Project Development

Click to edit Master title style

End of Day One

Page 122: Vijeo Citect - Project Development

Click to edit Master title styleEnd of Day One

� What have we covered?� The Citect Environment (Chapter 2)

� Explorer

� Project Editor

� Graphics Builder

� Cicode Editor� Cicode Editor

� Managing Projects (Chapter 3)� Creating Projects

� Backing Up & Restoring Projects

� Computer Setup Wizard

� Including Projects

Page 123: Vijeo Citect - Project Development

Click to edit Master title styleEnd of Day One

� What have we covered?

� Communications (Chapter 4)

� Express Communications Wizard

� I/O Devices etc

� Testing Communications� Testing Communications

� Structured Tag Names

� Using MS Excel, MS Access to edit tag

� Graphics (Chapter 5)

� Building the Pasteuriser Page

� Variable Colours and Appearance

� Symbol Sets and Simple Animation

� Creating Symbols, ActiveX

Page 124: Vijeo Citect - Project Development

Vijeo Citect Project Development

Day 2

Page 125: Vijeo Citect - Project Development

Commands and

Controls Controls

Page 126: Vijeo Citect - Project Development

Click to edit Master title styleTopics

� Slider Controls

� Touch Commands

� Keyboard Commands

� Creating a Privileged User� Creating a Privileged User

Page 127: Vijeo Citect - Project Development

Click to edit Master title styleSlider Controls (pg6-2)

� Paste Symbol� Designate input variable Tag property

� Input wrt the symbol - Physical output in this case

� Calculate an appropriate offset size in Pixels

Symbol Slider(vertical)

Page 128: Vijeo Citect - Project Development

Hands-on Exercise

Exercise 6.1Exercise 6.1

Slider Controls

Page 6-2

Page 129: Vijeo Citect - Project Development

Click to edit Master title styleTouch Commands (pg6-5)

� Paste Symbol

� Designate Input(Touch) command

� Designate variable Tag property

StartDevice

Page 130: Vijeo Citect - Project Development

Hands-on Exercise

Exercise 6.2Exercise 6.2

Touch Commands

Page 6-5

Page 131: Vijeo Citect - Project Development

Click to edit Master title styleKeyboard Commands (pg6-9)

� Some Vijeo Citect Keys Pre-defined

� Define Keyboard Key

� Select symbol to be used

� Use Input (keyboard commands)propertiesproperties

� Define function to be performed

� Define action� Go Backward

� Go to Forward

Hit F5To go

Forward

Page 132: Vijeo Citect - Project Development

Click to edit Master title styleKeyboard Commands (pg6-9)

� Object level

� Page level

� System Level

Page 133: Vijeo Citect - Project Development

Hands-on Exercise

Exercise 6.3Exercise 6.3

Keyboard Commands

Page 6-10

Page 134: Vijeo Citect - Project Development

Click to edit Master title styleUnderstanding ArgValue (p6-14)

� Citect will refuse to directly connect keyboard entry to a variable tag

� ArgValue is an � ArgValue is an internal variable which accepts ‘numeric’ keystrokes

� Once the operator presses ‘enter’ the typed value is copied to the PLC tag

Page 135: Vijeo Citect - Project Development

Click to edit Master title styleUser Privileges (pg6-15)

� By default, privileges are non-hierarchical (i.e. users with privilege 3 only have access to commands with classification 3)

� Non-hierarchical privileges add flexibility to your system, especially when used with the your system, especially when used with the area facility

� Hierarchical privileges set by parameter in citect.ini

� [Privilege]Exclusive = 0

� To allocate all privileges, you would only need to specify privilege 8

8 - Highest

1 - Lowest

Page 136: Vijeo Citect - Project Development

Click to edit Master title styleUser Privileges (pg6-15)

� Part of security framework

� Object Level Access

� Users

� Also Areas

� User Logins

Page 137: Vijeo Citect - Project Development

Hands-on Exercise

Exercise 6.4Exercise 6.4

Create a Privileged User

Page 6-16

Page 138: Vijeo Citect - Project Development

Click to edit Master title styleSummary Questions

� Name the three types of commands and controls.

� Which control allows the value of an analog variable to be changed?

� Which command enables the operator to execute a command (or series of commands) by clicking on an object with the mouse?

� Why are privileges set?

Page 139: Vijeo Citect - Project Development

Genies Genies

Page 140: Vijeo Citect - Project Development

Click to edit Master title styleTopics

� Pasting a Genie from Libraries

� Creating a New Genie

� Modifying a Genie

� Genie Syntax� Genie Syntax

Page 141: Vijeo Citect - Project Development

Click to edit Master title styleGenies (pg7-2)

� Group together graphical objects� From standard symbols

� Define combined properties and actionsactions

� Provide values or operations for the tags

Page 142: Vijeo Citect - Project Development

Click to edit Master title styleDeveloping a Genie

On When

Off Symbol

Key:

F5

Toggle(Valve_Cool_CMD)

Valve_Cool_CMD

F5

F5

%Tag%

Valve_%Name%_CMD

Off Symbol

On Symbol

Tooltip:

Toggle:

Toggle(Valve_Cool_CMD)

Press F5 to change Valve_Cool_CMD

Toggle(%Tag%)

Toggle(Valve_%Name%_CMD)

Press F5 to change %Tag%

Press F5 to change Valve_%Name%_CMD

Page 143: Vijeo Citect - Project Development

Click to edit Master title styleWhat is a Genie? (pg7-2)

� A group of symbols that can be re-used

Symbol Set PropertiesOn Symbol TAG | <set when used on a page>On Symbol | Green_PumpOff Symbol | Red_pump

Numeric Propertiesnumeric expression | <numeric expression>Format | ### EU##

#

� The power of a Genie is that objects are defined only once

� Every time you place the Genie onto a page, you will only have to specify the <substitution> information.

Page 144: Vijeo Citect - Project Development

Hands-on Exercise

Exercise 7.1Exercise 7.1

Pasting a Genie from the Libraries

Page 7-3

Page 145: Vijeo Citect - Project Development

Click to edit Master title styleViewing Genie Properties (pg7-2)

� Double clicking a genie shows the tags for variables to be entered

� <ctrl> Double click shows the genie shows the genie properties

� Links to source of genie make properties read only

Page 146: Vijeo Citect - Project Development

Click to edit Master title styleCreating Genies (pg7-5)

� In Graphics Builder

� Do not save in Include project library

� Update task required to propagate changes when propagate changes when modified

Page 147: Vijeo Citect - Project Development

Click to edit Master title styleSubstitutions for Genies (pg7-6)

� You are not restricted to using only variable tags as substitution strings

� Any expression can be substituted, such as constants or labels

� Only fields that accept text can have Genie tag substitutions� Only fields that accept text can have Genie tag substitutions

Symbol Set PropertiesOn Symbol TAG | %status TAG%On Symbol | Green_PumpOff Symbol | Red_pump

Numeric Propertiesnumeric expression | %Speed Tag%Format | ### EU

###

Page 148: Vijeo Citect - Project Development

Click to edit Master title styleSubstitutions in Genies (pg7-6)

� You can specify variables or constants in Genies

� Enclose in % .. %

� Define them when

Genie variable

%name%� Define them when

you use them

%name%

Genie variable

%privilege%

Page 149: Vijeo Citect - Project Development

Hands-on Exercise

Exercise 7.2Exercise 7.2

Creating a New Genie

Page 7-7

Page 150: Vijeo Citect - Project Development

Click to edit Master title styleLocating the Genies

Page 151: Vijeo Citect - Project Development

Click to edit Master title styleSummary Questions

� What is a genie?

Page 152: Vijeo Citect - Project Development

Popup Pages and Super Genies Super Genies

Page 153: Vijeo Citect - Project Development

Click to edit Master title styleTopics

� Creating Popup Pages

� Calling Popup Pages from Symbols

� Calling Popup Pages from Genies

� Creating Super Genies� Creating Super Genies

Page 154: Vijeo Citect - Project Development

Click to edit Master title styleSuper Genies (pg8-2)

� Dynamic pages (usually pop-ups), to which you can pass information when the page is displayed in the runtime system

� You can use Super Genies for pop-up type controllers

� Control a process, or a single piece of plant floor equipment

Genie controller. Calls a Super

OFF

ON

80 C

OK

AssWin(sPage, X, Y, Mode, sTag1..8)

Genie controller. Calls a Super Genie Cicode function, which performs the substitutions and displays the

popup.

Cicode function within Genie controller - calls the popup, controls where and how it is placed

Super Genie pop-up controller

Page 155: Vijeo Citect - Project Development

Click to edit Master title styleAnatomy of a Pop-up (pg8-2)

ON?1?=1 ?1?

Mode

Wintitle()

OFF 80 C

OK

?1?=0 ?2?

CloseWinFree()

AssWin( sPage, X, Y, Mode, dTag1,iTag2)

Page 156: Vijeo Citect - Project Development

Click to edit Master title styleSuper Genie vs Popup (pg8-2)

� Super Genies are transportable

� Saved into library as file <sgeniename>.ctm� Popup pages saved as page in project

Page 157: Vijeo Citect - Project Development

Click to edit Master title styleSubstitution of Variables (pg8-3)

� Variable Tags can be substituted at runtime by enclosing in ? …. ?

?datatype number?

AssWin(sPage, X, Y, Mode, sTag1, sTag2, sTag3 …)

Page Name to be called

X,YCo-ord

Mode sTag1 convention for string, iTag for integer etc

String, Integer, Digital, Real

Tag1Tag1 Tag2 Tag3

Page 158: Vijeo Citect - Project Development

Hands-on Exercise

Exercise 8.1Exercise 8.1

Creating Popup Pages

Page 8-4

Page 159: Vijeo Citect - Project Development

Click to edit Master title styleViewing System Pages (p8-7)

� Click on Tools | Options

� Check List System Pages

� Allows pages beginning with ! to be displayed

Page 160: Vijeo Citect - Project Development

Click to edit Master title styleHELP - AssWin Modes (pg8-8)

� 0 - Normal page.� 0 - Normal page.� 1 - Page child window. The window is closed when a new page is displayed, e.g. when the PageDisplay() or PageGoto()

function is called. The parent is the current active window.� 2 - Window child window. The window is closed automatically when the parent window is freed with the WinFree()

function. The parent is the current active window.� 4 - No re-size. The window is displayed with thin borders and no maximize/minimize icons. The window cannot be re-

sized.� 8 - No icons. The window is displayed with thin borders and no maximize/minimize or system menu icons. The

window cannot be re-sized.� 16 - No caption. The window is displayed with thin borders, no caption, and no maximize/minimize or system menu

icons. The window cannot be re-sized.� 32 - Echo enabled. When enabled, all keyboard echo, prompts, and error messages are displayed on the parent window.

This mode should only be used with child windows (e.g. Mode 1 and 2).� 64 - Always on top.� 128 - Open a unique window. This mode prevents this window from being opened more then once.� 256 - Display the entire window. This mode ensures that no parts of the window will appear off the screen� 512 - Open a unique Super Genie. This mode prevents a Super Genie from being opened more than once (at the same

time). However, the same Super Genie with different associations can be opened.� 1024 - Disables dynamic resizing of the new window, overriding the setting of the [Page]DynamicSizing parameter.

Page 161: Vijeo Citect - Project Development

Hands-on Exercise

Exercise 8.2Exercise 8.2

Calling Popup Pages from Symbols

Page 8-8

Page 162: Vijeo Citect - Project Development

Hands-on Exercise

Exercise 8.3Exercise 8.3

Calling Popup Pages from Genies

Page 8-9

Page 163: Vijeo Citect - Project Development

Click to edit Master title styleAnimation Points (pg8-11)

� The points on a graphics page where an object displays when you add an object to your page

� an animation number (AN) is automatically allocated

� location of the object

� Super Genie format automatically allocates:

� AN1 +1

keyboard input

� AN2 +2

Prompt information

� Do not remove these objects

� Simply move them out of the visible area of the genie

� They are still saved when you do this

Page 164: Vijeo Citect - Project Development

Click to edit Master title styleUsing the Cicode Editor (pg8-11)

� When complex terms are used in genies use the Cicode editor

� Select New and Cicode program

� Colour coding! Copy & Paste into formColour coding! Copy & Paste into form

Page 165: Vijeo Citect - Project Development

Hands-on Exercise

Exercise (optional)Exercise (optional)

Creating Super Genies

Page 8-11

Page 166: Vijeo Citect - Project Development

Click to edit Master title styleSummary Questions

� What are popup pages and super genies?

� Can popup pages be opened using the Page controls?

Page 167: Vijeo Citect - Project Development

Device Connection MechanismsMechanisms

Page 168: Vijeo Citect - Project Development

Click to edit Master title styleTopics

� Technologies

� Direct driver (DLL mechanism)

� DDE mechanism

� OPC mechanism� OPC mechanism

Page 169: Vijeo Citect - Project Development

Click to edit Master title styleTechnologies

� DLL - Dynamic-link Library

� DDE - Dynamic Data Exchange

� OLE - Object Linking & Embedding

� OPC - OLE for Process Control� OPC - OLE for Process Control

Page 170: Vijeo Citect - Project Development

Click to edit Master title style

I/O DeviceDriver - DLL

General part

Direct DriverUserC/C++ code

SCADA

Specific part

Driver - DLL

Driver - DLLGeneral part

(EXE) I/O Device

I/O Device

Page 171: Vijeo Citect - Project Development

Click to edit Master title styleModbus TCP

� Premium

� Twido

� Unity Pro

� TwidoSuite

� Modbus TCP� Modbus TCP

� Programming

Page 172: Vijeo Citect - Project Development

Hands-on Exercise

• Programming simple ladder using TwidoSuite

• Programming simple ladder using Unity Pro

Page 173: Vijeo Citect - Project Development

Click to edit Master title styleVijeo Citect – Modbus TCP

Page 174: Vijeo Citect - Project Development

Click to edit Master title styleVijeo Citect – Modbus TCPVijeo Citect Runtime

Connection

Vijeo Citect Runtime Connection

Page 175: Vijeo Citect - Project Development

Hands-on Exercise

Connect Vijeo Citect with Twido and Premium

Page 176: Vijeo Citect - Project Development

Click to edit Master title styleVijeo Citect – Other PLCs

Demo with� Siemens S7-200� AB Micrologix 1000

Page 177: Vijeo Citect - Project Development

Click to edit Master title styleDDE mechanism

I/O DeviceDDE Sever

DDE Server

DD

E C

lient

s, S

CA

DA

I/O Device

……

DDE Server

DD

E C

lient

s, S

CA

DA

I/O Device

Computer A

Page 178: Vijeo Citect - Project Development

Click to edit Master title styleDDE mechanism

I/O DeviceDDE SeverD

DE

Clie

nts,

SC

AD

AD

DE

Clie

nts,

SC

AD

A

Computer B

DDE ServerDDE Server

DDE ServerDDE ServerDD

E C

lient

s, S

CA

DA

DD

E C

lient

s, S

CA

DA

I/O Device

I/O Device

Computer A Computer C

Page 179: Vijeo Citect - Project Development

Click to edit Master title styleDDE mechanism

Application

Topic1

App

licat

ion|

Topi

c1!I

tem

3

I/O Device

DDE Server

Item1 Item3 Item3

Topic2

Item1 Item3 Item3

DDE Client

App

licat

ion|

Topi

c1!I

tem

3

Page 180: Vijeo Citect - Project Development

Hands-on Exercise

• Vijeo Citect – DDE applications• MS Excel – Vijeo Citect

Page 181: Vijeo Citect - Project Development

Click to edit Master title styleOPC mechanismArchitecture of modern process control system

Supervision

Business Management

Process Managem

ent

Automatic Control

Field Management

Process Managem

ent

Page 182: Vijeo Citect - Project Development

Click to edit Master title styleOPC mechanism

The I/O driver problem

C/C++ ApplicationC/C++ Application SCADASCADA SCADASCADA

SoftwareSoftwareDriver CDriver C

SoftwareSoftwareDriver BDriver B

SoftwareSoftwareDriver ADriver A

Physical I/OPhysical I/O

Device ADevice A

Physical I/OPhysical I/O

Device BDevice B

Physical I/OPhysical I/O

Device CDevice C

Not allowAllow

Page 183: Vijeo Citect - Project Development

Click to edit Master title styleOPC mechanism

How does OPC solve the problem?

C/C++ ApplicationC/C++ Application SCADASCADA

OPCOPC

SCADASCADA

OPCOPC OPCOPC

SoftwareSoftwareDriver CDriver C

SoftwareSoftwareDriver BDriver B

SoftwareSoftwareDriver ADriver A

Physical I/OPhysical I/O

OPCOPC OPCOPC OPCOPC

Device ADevice A

Physical I/OPhysical I/O

Device BDevice B

Physical I/OPhysical I/O

Device CDevice C

Page 184: Vijeo Citect - Project Development

Click to edit Master title styleOPC mechanismArchitecture of modern process control system

Supervision

Business Management

Process Managem

ent

Automatic Control

Field Management

Process Managem

ent

Page 185: Vijeo Citect - Project Development

Click to edit Master title styleOPC mechanismArchitecture of modern process control system

Supervision

Business Management

Process Managem

ent

Automatic Control

Field Management

Process Managem

ent

Page 186: Vijeo Citect - Project Development

Click to edit Master title styleOPC mechanism

What is OPC?

OPC is an industry standard created by a number of worldwide leading

hardware and software suppliers.

The OPC standard specifies an interface between client applications and

servers of process data.

The standard was purposely limited to the reading and writing of real-time

process values (Data Access – DA). Alarm handling, process events (A&E),

historical data access (HDA), … were all deferred to subsequent releases of the

standard.OPC Server

Software

driver

standard.

An OPC compliant client can read and write data to any OPC compliant server.

Page 187: Vijeo Citect - Project Development

Click to edit Master title styleOPC mechanism

What is OPC?

OPC – OLE for Process Control

OPC – OLE for Production Control

OPC – Openness, Productivity and Connectivity

Object Linking & Embedding

OPC – Openness, Productivity and Connectivity

OPC – OLE COM for Process Control

COM – “Component Object Model” provides

interfaces and inter-component communication.

Through COM, an application may use features of

any other application object. COM is the core of

DCOM (Distributed COM), ActiveX.

Page 188: Vijeo Citect - Project Development

Click to edit Master title styleOPC mechanismOLE

I/O DeviceI/O Device

I/O DeviceI/O DeviceOLE ServerOLE Server((DLLDLL))

OLE ServerOLE Server((EXEEXE))

OLE Client

OLE Client

EX

EE

XE

))

……

((EXEEXE))

……

OLE ServerOLE Server((DLLDLL))

OLE Client

OLE Client

((EX

EE

XE

I/O DeviceI/O Device

Page 189: Vijeo Citect - Project Development

Click to edit Master title styleOPC mechanismOLE

In-processIn-process

Client

Local

Client

Remote

Computer A Computer B

Page 190: Vijeo Citect - Project Development

Click to edit Master title styleOPC mechanismThe logical object model OPC Data Access Server

OPCInterfaces

OPCInterfaces OPC GroupOPC GroupOPC GroupOPC GroupOPC GroupOPC Group

OPC ServerOPC Server

OPC GroupOPC GroupOPC GroupOPC GroupOPC ItemOPC Item OPC GroupOPC GroupOPC GroupOPC GroupOPC ItemOPC ItemOPC GroupOPC GroupOPC GroupOPC GroupOPC ItemOPC Item

DeviceDevice

TagTag TagTag TagTag

DeviceDevice

TagTag TagTag TagTag

Page 191: Vijeo Citect - Project Development

Click to edit Master title styleOPC mechanism

OPC Item Object

� Connection to a data source.

� Properties:

• Data value (v)

VARIANT type: boolean, integer, float, string, …

• Quality (q)

Item iItem i

Tag jTag j• Quality (q)

UNCERTAIN, GOOD, BAD, …

• Time stamp (t)- FILETIME: {yyyy:mm:dd:hh:mm:ss:…}

- The Timestamp should indicate the time that the

value and quality was obtained by the device.

• …

Tag jTag j

Page 192: Vijeo Citect - Project Development

Click to edit Master title styleOPC mechanismThe path of real-time data in the integrated process control system

SupervisionSupervision

SCADA station

OPC Server OPC Server

SCADA station

v5

OPC Server

v1, q1, t v4, q4, t v6, q6, t

v6, q6, tv4, q4, t v3, q3, tv1, q1, t v5, q5, t'3.1, OK, 03:54:01

3.1, GOOD, 03:54:01

3.2, OK, 03:54:02

3.2, GOOD, 03:54:02

3.5, OK, 03:54:03

3.5, GOOD, 03:54:03

3.8, OK, 03:54:04

3.8, GOOD, 03:54:04

3.8, OK, 03:54:05

3.8, GOOD, 03:54:05

4.1, BAD, 03:54:06

4.1, BAD, 03:54:06

4.3, BAD, 03:54:07

4.3, BAD, 03:54:07

4.0, GOOD, 03:54:08

4.0, GOOD, 03:54:08

3.9, GOOD, 03:54:09

3.9, GOOD, 03:54:09

4.2, BAD, 03:54:10

4.2, BAD, 03:54:10

4.0, GOOD, 03:54:11

4.0, GOOD, 03:54:11

4.5, BAD, 03:54:12

4.5, BAD, 03:54:12

4.3, BAD, 03:54:13

4.3, BAD, 03:54:13

3.8, GOOD, 03:54:14

3.8, GOOD, 03:54:14

3.2, GOOD, 03:54:15

3.2, GOOD, 03:54:15

3.2, BAD, 03:54:16

0.9, BAD, 03:54:16

1.7, GOOD, 03:54:17

1.7, GOOD, 03:54:17

2.0, GOOD, 03:54:18

2.0, GOOD, 03:54:18

2.6, GOOD, 03:54:19

2.6, GOOD, 03:54:19

4.3, BAD, 03:54:20

4.3, BAD, 03:54:20

4.1, BAD, 03:54:21

4.1, BAD, 03:54:21

4.0, GOOD, 03:54:22

4.0, GOOD, 03:54:22

4.5, BAD, 03:54:23

4.5, BAD, 03:54:23

5.1, BAD, 03:54:24

4.5, BAD, 03:54:24

3.9, GOOD, 03:54:25

3.9, GOOD, 03:54:25

4.3, BAD, 03:54:26

4.3, BAD, 03:54:26

4.2, BAD, 03:54:27

4.2, BAD, 03:54:27

4.0, GOOD, 03:54:28

4.0, GOOD, 03:54:28

3.9, GOOD, 03:54:29

3.9, GOOD, 03:54:29

4.0, GOOD, 03:54:30

4.0, GOOD, 03:54:30

4.3, BAD, 03:54:31

4.3, BAD, 03:54:31

4.6, BAD, 03:54:32

4.6, BAD, 03:54:32

4.4, BAD, 03:54:33

4.4, BAD, 03:54:33

4.1, BAD, 03:54:34

4.1, BAD, 03:54:34

3.5, GOOD, 03:54:35

3.5, GOOD, 03:54:35

2.9, GOOD, 03:54:36

2.9, GOOD, 03:54:36

2.7, GOOD, 03:54:38

2.7, GOOD, 03:54:38

2.0, GOOD, 03:54:39

2.0, GOOD, 03:54:39

1.9, GOOD, 03:54:40

1.9, GOOD, 03:54:40

2.0, GOOD, 03:54:41

2.0, GOOD, 03:54:41

1.8, GOOD, 03:54:42

1.8, GOOD, 03:54:42

1.9, GOOD, 03:54:43

1.9, GOOD, 03:54:43

1.8, GOOD, 03:54:44

1.8, GOOD, 03:54:44

1.7, GOOD, 03:54:45

1.7, GOOD, 03:54:45

1.7, GOOD, 03:54:46

1.7, GOOD, 03:54:46

1.7, GOOD, 03:54:47

1.7, GOOD, 03:54:47

1.7, GOOD, 03:54:48

1.7, GOOD, 03:54:48

1.8, GOOD, 03:54:49

1.8, GOOD, 03:54:49

1.7, GOOD, 03:54:50

1.7, GOOD, 03:54:50

1.8, GOOD, 03:54:51

1.8, GOOD, 03:54:51

2.0, GOOD, 03:54:52

2.0, GOOD, 03:54:52

2.1, GOOD, 03:54:53

2.1, GOOD, 03:54:53

1.9, GOOD, 03:54:54

1.9, GOOD, 03:54:54

1.8, GOOD, 03:54:55

1.8, GOOD, 03:54:55

1.7, GOOD, 03:54:56

1.7, GOOD, 03:54:56

1.6, GOOD, 03:54:57

1.6, GOOD, 03:54:57

1.6, GOOD, 03:54:58

1.6, GOOD, 03:54:58

1.6, GOOD, 03:54:59

1.6, GOOD, 03:54:59

1.7, GOOD, 03:54:60

1.7, GOOD, 03:54:60

Upper controller levelUpper controller level

Controller levelController level

Parameters of engineering process

PLC

Passive I/O boards

Instrumentation

PLC

v1, t v2, t v6, tv4, tv3, t v5, t'3.1, 03:54:013.2, 03:54:023.5, 03:54:033.5, 03:54:043.8, 03:54:054.1, 03:54:064.3, 03:54:074.0, 03:54:083.9, 03:54:094.2, 03:54:104.0, 03:54:114.5, 03:54:124.3, 03:54:133.8, 03:54:143.2, 03:54:150.9, 03:54:161.7, 03:54:172.0, 03:54:182.6, 03:54:194.3, 03:54:204.1, 03:54:214.0, 03:54:224.5, 03:54:235.1, 03:54:243.9, 03:54:254.3, 03:54:264.2, 03:54:274.0, 03:54:283.9, 03:54:294.0, 03:54:304.3, 03:54:314.6, 03:54:324.4, 03:54:334.1, 03:54:343.5, 03:54:352.9, 03:54:362.7, 03:54:382.0, 03:54:391.9, 03:54:402.0, 03:54:411.8, 03:54:421.9, 03:54:431.8, 03:54:441.7, 03:54:451.7, 03:54:461.7, 03:54:471.7, 03:54:481.8, 03:54:491.7, 03:54:501.8, 03:54:512.0, 03:54:522.1, 03:54:531.9, 03:54:541.8, 03:54:551.7, 03:54:561.6, 03:54:571.6, 03:54:581.6, 03:54:591.7, 03:54:60

Page 193: Vijeo Citect - Project Development

Click to edit Master title styleOPC mechanism

OPC Group Object

� Collection of items.

� Clients must use group to access items.

� Properties:

� Requested update rate;

Group iGroup i

Item 1Item 1

Item 2Item 2� Requested update rate;

� Percent dead band;

� Time bias;

Item 2Item 2

Item 3Item 3

Page 194: Vijeo Citect - Project Development

Click to edit Master title styleOPC mechanism

OPC Server Object

� It is a COM object.� Collection of groups.

Server iServer i

Group 1Group 1

Group 2Group 2

Group 3Group 3

Page 195: Vijeo Citect - Project Development

Click to edit Master title styleOPC mechanism

OPC DA 1.0

Page 196: Vijeo Citect - Project Development

Click to edit Master title styleOverall picture of the client/server interaction

Group 2

Client 2

Server 2

Group 1Group 2

Client 1

Server 1

Group 1

Item 2

Item 1Item 1

Device 1

Tag 1 Tag 2 Tag 3

Device 2

Tag 1 Tag 2

Item 3

Item 2

Item 1Item 1

OP

C S

erve

r

Page 197: Vijeo Citect - Project Development

Click to edit Master title styleOPC mechanism

Data source in OPC Servers

Read from server’s internal cache.

Read directly from device.

Write directly to the device.

Page 198: Vijeo Citect - Project Development

Click to edit Master title styleOPC mechanismModes of data exchange in OPC Servers

Synchronous read/write.

Asynchronous read/write.

Subscription (for read).

Refresh (for read).

Page 199: Vijeo Citect - Project Development

Click to edit Master title styleSynchronous mode

Group 2

Client 1

Server 1

Group 1

Item 1Item 1

DataData

OP

C S

erve

r

Device 1

Tag 1 Tag 2 Tag 3

Device 2

Tag 1 Tag 2

Item 3

Item 2

Item 1Item 1

Page 200: Vijeo Citect - Project Development

Click to edit Master title styleAsynchronous mode

Group 2

Client 1

Server 1

Group 1

Item 1Item 1Item 1

OP

C S

erve

r

Device 1

Tag 1 Tag 2 Tag 3

Device 2

Tag 1 Tag 2

Item 3

Item 2

Item 1Item 1Item 1

Item 2

Page 201: Vijeo Citect - Project Development

Click to edit Master title styleSubscription

Group 2

Client 1

Server 1

Group 1

Item 1Item 1Item 1√√√√

OP

C S

erve

r

Device 1

Tag 1 Tag 2 Tag 3

Device 2

Tag 1 Tag 2

Item 3

Item 2

Item 1Item 1Item 1

Item 2

√√√√

√√√√

√√√√ Item 3

Data changed

Data changed

Page 202: Vijeo Citect - Project Development

Click to edit Master title styleRefresh = Asynchronous mode for all items in a group

Group 2

Client 1

Server 1

Group 1

Item 1Item 1Item 1

OP

C S

erve

r

Device 1

Tag 1 Tag 2 Tag 3

Device 2

Tag 1 Tag 2

Item 3

Item 2

Item 1Item 1Item 1

Item 2

Item 3

Page 203: Vijeo Citect - Project Development

Click to edit Master title styleOPC mechanism

Demo

� Vijeo Citect – Simulator OPC Server

� Vijeo Citect – Siemens PC Access

� Vijeo Citect - OFS

Page 204: Vijeo Citect - Project Development

Hands-on Exercise

Vijeo Citect - OFS

Page 9-4

Page 205: Vijeo Citect - Project Development

Devices Devices

Page 206: Vijeo Citect - Project Development

Click to edit Master title styleTopics

� What are Devices?

� Setting up Devices

� Using Device History Files

� Set up a Device� Set up a Device

Page 207: Vijeo Citect - Project Development

Click to edit Master title styleWhat are Devices? (pg10-3)

� An output mechanism to deliver data from your Vijeo Citect system

� Can output to� RTF files� RTF files

� Rich text format (Microsoft standard)

� ASCII files� Plain text files

� dBASE databases

� SQL databases� Via database connection driver

� Printers

Device

Page 208: Vijeo Citect - Project Development

Click to edit Master title styleAdd New Devices (pg10-4)

� System | Devices

� Period allows monthly, yearly logging periods

� [data] path variable in � [data] path variable in citect.ini file

� Specifies folder

Page 209: Vijeo Citect - Project Development

Click to edit Master title styleDevice History Files (pg10-5)

� Define

� pathname:filename

� File type

� No. of files� No. of files

� 0 – no files

� -1 keep adding to 1 file

� n files

� Default 10

Page 210: Vijeo Citect - Project Development

Hands-on Exercise

Exercise 10.1Exercise 10.1

Setup a Device

Page 10-7

Page 211: Vijeo Citect - Project Development

Click to edit Master title styleWhy Doesn’t it Work?

F5 !Valve

No logging!CommandLog

Page 212: Vijeo Citect - Project Development

Click to edit Master title styleSummary Questions

� What is a device?

� Why are devices used?

� Why are device history files used?� Why are device history files used?

Page 213: Vijeo Citect - Project Development

Events

Page 214: Vijeo Citect - Project Development

Click to edit Master title styleTopics

� Define Events

� Enable Events

Page 215: Vijeo Citect - Project Development

Click to edit Master title styleConfiguring Events (pg11-2)

� Events can trigger an action, such as a command or set of commands

� An operator can be notified when:

� Process is complete

� Series of instructions can be executed when process reaches certain stage

� Note: Events do not provide a service with redundancy

� If you want to run an event with redundancy, use reports

Page 216: Vijeo Citect - Project Development

Click to edit Master title styleConfiguring Events (pg11-2)

� Events must be enabled for events to run

� Use the Vijeo Citect Computer Setup WizardComputer Setup Wizard(Custom setup) to enable Events.

� You can process events on any Vijeo Citect computer but only one computer for each event

Page 217: Vijeo Citect - Project Development

Click to edit Master title styleGlobal vs Named Events (pg11-2)

� Events do not need unique name

� Vijeo Citect on a network and want to run an event on all computers

� Use GLOBAL for event name� Use GLOBAL for event name

� Run event on specific computers

� Specify an event name

� Citect Computer Setup Wizard (Custom setup)

� Specify Vijeo Citect computer(s) to run event

Page 218: Vijeo Citect - Project Development

Click to edit Master title styleCicode Functions Used (pg11-3)

� Use Citect Help to look up the new functions

� Rand(n)� Generates a random number between 0 and a specified

maximum number less one.

� Syntax:� Rand(Maximum)

� Maximum: The maximum number. This number must be between 2

and 32767 (inclusive).

� Sleep(n)� Pauses the current thread for the specified number of seconds

� SleepMS(n)� Pauses the current thread for the specified number of milli-

seconds

Page 219: Vijeo Citect - Project Development

Click to edit Master title styleEntering Cicode (pg11-3)

� Comment complex Cicode events

� 64 character limit in action field

Page 220: Vijeo Citect - Project Development

Hands-on Exercise

Exercise 11.1Exercise 11.1

Defining and Enabling Events

Page 11-3

Page 221: Vijeo Citect - Project Development

Click to edit Master title styleSummary Questions

� Why are events used?

� Name two types of event.

Page 222: Vijeo Citect - Project Development

Click to edit Master title style

End of Day Two

Page 223: Vijeo Citect - Project Development

Alarms Alarms

Page 224: Vijeo Citect - Project Development

Click to edit Master title styleTopics� Alarm State Diagram� Alarm Types� HI, LO, HI HI, LO LO� Deviation� Rate of Change - ROC� Configuring Alarms� Alarm Categories� Alarm Categories� Logging Alarms to a Printer� Displaying Alarms� Alarm Groups� Audible Alarms� Using Alarm Properties as Tags� Defining an Alarm I/O Device

Page 225: Vijeo Citect - Project Development

Click to edit Master title styleAlarm State Diagram (pg12-1)

ON UnAck

ON OFF

OFF

UnAckAck

Ack

Page 226: Vijeo Citect - Project Development

Click to edit Master title styleAlarm Types (pg12-2)

� Analog� High High

� High

� Deviation

� Low

� Low Low

� Hardware� Pre-configured in Vijeo

Citect system

� Advanced� Action on Cicode � Low Low

� Rate of Change

� Digital� One or Two Tags

(ANDed)

� Action on Cicode program

� Time Stamped� Like Digital but with a

time stamp derived from the PLC

Page 227: Vijeo Citect - Project Development

Click to edit Master title styleHI, LO, HI HI, LO LO

Page 228: Vijeo Citect - Project Development

Click to edit Master title styleHI, LO, HI HI, LO LO

Deadband

High High activated

Value

HiHi

Hi

Deadband

High activated

High activated

time

Page 229: Vijeo Citect - Project Development

Click to edit Master title styleDeviation

Event Deviation

activatedValue

Deadband

Time

Deadband

Event Deviation

activated

Setpoint

Allowable

deviation

b)

Page 230: Vijeo Citect - Project Development

Click to edit Master title styleRate of Change - ROC

1

1

−−−−=

ii tt

]s[is[i]Rate

ROChangeMaxRateOfCRate ⇒≥

Page 231: Vijeo Citect - Project Development

Click to edit Master title styleCreate Alarms (pg12-2)

� Via Explorer or Project EditorMax: 79

characters

Page 232: Vijeo Citect - Project Development

Hands-on Exercise

Exercise 12.1Exercise 12.1

Configure Alarms

Page 12-4

Page 233: Vijeo Citect - Project Development

Click to edit Master title styleAlarm Categories (pg12-7)

� For each category:

� Set alarm display details (font and page type)

� Logging details (printer or data file)

� Action to be taken when an alarm in the category is triggered (e.g., activating an audible alarm)

� Can have an associated priority � Can have an associated priority

� Order alarm displays

� Filtering for the operator

� You can configure up to 16376 alarm categories

� 16 character names

� Category 0 is the default category

� Category 254 reserved for user-created alarm summary

� Category 255 is reserved for hardware alarms

Page 234: Vijeo Citect - Project Development

Click to edit Master title styleAlarm Categories (pg12-7)

� Define alarm

� Categorize Alarms – what we will do with an alarm

� Device – where the info will go

Page 235: Vijeo Citect - Project Development

Click to edit Master title styleAlarm Categories (pg12-7)

� For Instance…

� 1000-series: Milk Receiving Area

� 1001 – Critical Alarms

� 1002 – Urgent Alarms

� Etc� Etc

� 2000-series: Pasteurisation Area

� 2001 – Critical Alarms

� 2002 – Urgent Alarms

� Etc

� 3000-series: Bottling Area

Page 236: Vijeo Citect - Project Development

Hands-on Exercise

Exercise 12.2Exercise 12.2

Alarm Categories

Page 12-8

Page 237: Vijeo Citect - Project Development

Click to edit Master title styleAlarm Pages (pg12-16)

� Right click alarm to see details

Page 238: Vijeo Citect - Project Development

Click to edit Master title styleStandard Alarm Pages (pg12-16)

� Standard Pages in CSV_Include project

� Alarm

� All configured alarms

� Hardware

� Pre-configured hardware alarms� Pre-configured hardware alarms

� Summary

� History of alarm activity from event log

� Disabled

� Manually-disabled alarms

Page 239: Vijeo Citect - Project Development

Hands-on Exercise

Exercise 12.3Exercise 12.3

Displaying Alarms

Page 12-17

Page 240: Vijeo Citect - Project Development

Click to edit Master title styleAlarm Groups (pg12-20)

� Digital

� Analog

� Time Stamped� Configure

� Time Stamped

� Digital time-stamped

� Analog time-stamped

� Advanced

� Configure alarm groups in the runtime system

Page 241: Vijeo Citect - Project Development

Hands-on Exercise

Exercise 12.4Exercise 12.4

Alarm Groups

Page 12-21

Page 242: Vijeo Citect - Project Development

Click to edit Master title styleAudible Alarms (pg11-24)

Category Priority

Advanced 1

1

Advanced 1

Digital 2

Analog 3

2

3

[Alarm]

Sound1 = c:\courses\AdvAlarm.wav

Page 243: Vijeo Citect - Project Development

Hands-on Exercise

Exercise 12.5Exercise 12.5

Audible Alarms

Page 12-24

Page 244: Vijeo Citect - Project Development

Click to edit Master title styleAlarm Property Tags (pg12-27)

� Alarms can be combined with their properties to form an Alarm Property Tag

� Allows alarms to be fed into graphical pages to give a visual indication

AlarmName.H

Alarm_name Property

AlarmName.HAlarmName.L

� An Alarm I/O Device will need to be set up to use alarm property tags� Use alarm protocol � alarm as the port name

� The Alarm server must be the same computer as the IO server

Page 245: Vijeo Citect - Project Development

Click to edit Master title styleUsing Property Tags (pg12-27)

� Enter

� alarm.property

� Text to be displayed on given condition

EnterAlarm.property

Multi-state

Page 246: Vijeo Citect - Project Development

Hands-on Exercise

Exercise 12.6Exercise 12.6

Alarm Properties as Tags

Page 12-28

Page 247: Vijeo Citect - Project Development

Click to edit Master title styleSummary Questions

� Why are alarms used?

� Name the two types of alarms.

� What are alarm categories?� What are alarm categories?

� Why are audible alarms used?

Page 248: Vijeo Citect - Project Development

Click to edit Master title styleEnd of Day Two

� What Have We Covered?

� Commands and Controls (Chapter 6)

� Sliders

� Touch Commands

� Keyboard Commands

� Privileged User

� Genies (Chapter 7)

� Using Existing Genies

� Creating Genies

Page 249: Vijeo Citect - Project Development

Click to edit Master title styleEnd of Day Two

� What Have We Covered?� Popups and Super Genies (Chapter 8)

� Creating & Using Popups

� Calling Popups from Symbols and Genies

� Creating Super Genies� Creating Super Genies

� Device connection mechanisms (Chapter 9)� Direct driver

� DDE

� OPC

Page 250: Vijeo Citect - Project Development

Click to edit Master title styleEnd of Day Two

� What Have We Covered?� Devices (Chapter 10)

� Various Kinds of Devices

� Setting Up Devices

� Device History Files� Device History Files

� Events (Chapter 11)� Defining and Enabling Events

� Alarms (Chapter 12)� Configuring Alarms

� Alarm Categories & Groups

Page 251: Vijeo Citect - Project Development

Vijeo Citect –Project Development

Day 3Day 3

Page 252: Vijeo Citect - Project Development

Re-Cap Day 2Day 2

Page 253: Vijeo Citect - Project Development

Click to edit Master title styleGenies

On When

Off Symbol

Key:

F5

Toggle(Valve_Cool_CMD)

Valve_Cool_CMD

F5

F5

%Tag%

Valve_%Name%_CMD

Off Symbol

On Symbol

Tooltip:

Toggle:

Toggle(Valve_Cool_CMD)

Press F5 to change Valve_Cool_CMD

Toggle(%Tag%)

Toggle(Valve_%Name%_CMD)

Press F5 to change %Tag%

Press F5 to change Valve_%Name%_CMD

Page 254: Vijeo Citect - Project Development

Click to edit Master title styleGenies

� You can specify variables in Genies

� Enclose in % .. %

� Define them when you use them

Genie variable

%name%you use them

%name%

Genie variable

%privilege%

Page 255: Vijeo Citect - Project Development

Click to edit Master title stylePop-up Pages / SuperGenies

ON?1?=1 ?1?

Mode

Wintitle()

OFF 80 C

OK

?1?=0 ?2?

CloseWinFree()

AssWin( sPage, X, Y, Mode, dTag1,iTag2)

Page 256: Vijeo Citect - Project Development

Click to edit Master title styleAlarms

Page 257: Vijeo Citect - Project Development

Trends Trends

Page 258: Vijeo Citect - Project Development

Click to edit Master title styleTopics

� Trend Tags

� Displaying Trends

� Configuring Trend Display

� Trend History Files� Trend History Files

� Instant Trends

� Displaying Instant Trends

Page 259: Vijeo Citect - Project Development

Click to edit Master title styleDisplaying Trends (pg13-1)

� Graphical representation of variable or Cicode expression

� Can move back thru historical data

� Display not need to be active

� Trend Tags need to be created

Page 260: Vijeo Citect - Project Development

Click to edit Master title styleTrend Tags (pg13-2)

� Create Trend Tag from Variable Tag

� Create Trend Page

Variable Tag

Trend TagTag

Trend Tag Files

Trend Page

Page 261: Vijeo Citect - Project Development

Click to edit Master title styleCreating Trend Tags (p12-2)

Max: 64 characters

Page 262: Vijeo Citect - Project Development

Click to edit Master title styleTrends (pg13-2)

� Trends Page button

� Displays the "trend" page

� CSV_Trend preconfigured page appears by � CSV_Trend preconfigured page appears by default

� Other pages can be set by adjusting parameter in citect.ini

� [Navigation]TrendPage

Page 263: Vijeo Citect - Project Development

Click to edit Master title styleTypes of Trends (pg13-2)

� Periodic

� A trend that is sampled continuously at a specified interval (eg every 1 second, every 10 seconds)

� Event

� A single sample is taken whenever a trigger action switches on

� Periodic Event

� Samples are taken according to a predetermined rate only while a trigger value is true

Page 264: Vijeo Citect - Project Development

Click to edit Master title styleTrend History Logging (pg13-2)

24:00 Sun

start stop

Sam

ple 2

Sam

ple 3

Sam

ple 4

Sam

ple 5

Sam

ple n

Sam

ple 1Event

Trend Tag

Page 265: Vijeo Citect - Project Development

Hands-on Exercise

Exercise 13.1Exercise 13.1

Trend Tags

Page 13-3

Page 266: Vijeo Citect - Project Development

Click to edit Master title styleTrend Template Styles (pg13-5)

� Standard style to review trend templates

Page 267: Vijeo Citect - Project Development

Hands-on Exercise

Exercise 13.2Exercise 13.2

Displaying Trends

Page 13-6

Page 268: Vijeo Citect - Project Development

Click to edit Master title styleTrend History Display (pg13-10)

� History Mode uses Trend History files

� Displays trends for a specific period

Page 269: Vijeo Citect - Project Development

Click to edit Master title styleTrend Groups (Pg13-10)

Variable Tag

Trend Tag

Variable Tag

Trend Tag Trend Group Trend Display

Variable Tag

Trend Tag

FrequencyPeriodTrigger

TypeStorage / Files

Pen Colour

Page 270: Vijeo Citect - Project Development

Hands-on Exercise

Exercise 13.3Exercise 13.3

Configuring the Trend Display

Page 13-11

Page 271: Vijeo Citect - Project Development

Click to edit Master title styleFile Management (pg13-14)

� File growth - rule of thumb� 5Mb per month for each 1 second trend record

� Change� Change� Archive and delete existing files before starting new config

� Change file location – move files or new files created

� Security� Perform scheduled backup on old trend files

Page 272: Vijeo Citect - Project Development

Click to edit Master title styleInstant Trends (pg13-15)

� Computer setup configures instant trends

Trends Enabled

Page 273: Vijeo Citect - Project Development

Hands-on Exercise

Exercise 13.4Exercise 13.4

Instant Trends

Page 13-17

Page 274: Vijeo Citect - Project Development

Hands-on Exercise

Exercise 13.5Exercise 13.5

Displaying Instant Trends

Page 13-18

Page 275: Vijeo Citect - Project Development

Click to edit Master title styleInstant Trends (13-20)

� Note - click anywhere on the trend line to view a time and date reference line

Page 276: Vijeo Citect - Project Development

Click to edit Master title styleSummary Questions

� Why are trends used?

� What are the three types of trends?

� How are trend history files used?� How are trend history files used?

� Name three of the trend templates.

� Why use instant trends?

Page 277: Vijeo Citect - Project Development

Process Analyst

Page 278: Vijeo Citect - Project Development

Hands-on Exercise

Exercise 14.1

The Process Analyst ActiveX Control

Page 14-3

Page 279: Vijeo Citect - Project Development

Click to edit Master title styleTopics

� What is the Process Analyst?

� Process Analyst ActiveX Control

� Properties of the Process Analyst

� Displaying Tags in the Process Analyst

� Pen Types

� Displaying Trends

� Changing the Properties of the Process Analyst

� Comparing Trend Data

� Displaying Alarms

� Comparing Trends and Alarms

Page 280: Vijeo Citect - Project Development

Click to edit Master title styleProcess Analyst (pg14-2)

� High-end PC with significant graphics card� 64MB Graphics Card (128Mb recommended)

� Displays� Displays� All trend types� Alarm data� No extra configuration needed

Page 281: Vijeo Citect - Project Development

Click to edit Master title styleUse Process Analyst (pg14-3)

� Place anywhere on page

� Configurable at runtime

Page 282: Vijeo Citect - Project Development

Click to edit Master title styleDisplaying Tags (pg14-5)

� Add pens dialog

� Adds tags

� Analog

� Digital

� Adds Alarms

� Configures Pens

Page 283: Vijeo Citect - Project Development

Click to edit Master title styleSelecting Pens (pg14-5)

� <ctrl> click to select multiple trends

� <shift> click to select adjacent trends

Page 284: Vijeo Citect - Project Development

Click to edit Master title styleAnalyst Help File (pg14-5)

� Available in the Runtime system

� Not in Citect Help

Page 285: Vijeo Citect - Project Development

Click to edit Master title styleAnalyst View (pg14-5)

1. Main toolbar : Contains commands for performing general operations in the Process Analyst, such as opening views, printing reports

6. Vertical axis : Analog pens have a vertical axis on the left-hand side of the pane to indicate data values.

2. Pens : A Process Analyst pen represents your trend and/or alarm data. The Process Analyst supports three types of pen: analog, digital, and alarm pen.

7. Cursor : A cursor allows an Operator to determine value at a given point in time by dragging the cursor line to the point required.

3. Panes : Panes are used to group pens visually in the Process Analyst and are stacked vertically on the Process Analyst display.

8. Cursor labels : Display the value where the cursor intersects the trend value line

4. Chart background : The panes are drawn over the chart background. Depending on the layout of the pens, the background may be partially visible

9. Navigation toolbar : Contains commands to allow an Operator to travel forward or backward through trends, as well as other navigation-related tasks.

5. Date/time axis : Located at the top of a pane, the date/time axis displays the date or time (or both) of the data for the primary selected pen within a pane

10. Object View : When displayed, the Object View appears under the navigation toolbar and displays information about your Process Analyst pens.

Page 286: Vijeo Citect - Project Development

Click to edit Master title styleProcess Analyst View (pg14-5)

Page 287: Vijeo Citect - Project Development

Click to edit Master title styleProcess Analyst / Trends (pg14-5)

� “Different but the same!”

� Use the same data source (trend tags)

� Trend system has instant trends

� Trend tags and real tags

Page 288: Vijeo Citect - Project Development

Click to edit Master title styleAlarm Display (pg14-7)

Silo (Digital Alarm)Clarifier (Digital Alarm)

not in alarm state

HTA (Analog Alarm) colours represent

HH, H, L & LL

P1A (Advanced Alarm) P1>=3deg

Colour represents “in alarm condition”

P4A (Advanced Alarm) P4<=75deg

Unacknowledged P4A Alarm P4A Alarm

Acknowledged at this point

Page 289: Vijeo Citect - Project Development

Click to edit Master title styleCursor & Labels (pg14-11)

Click and Drag labels around

screen to increase screen to increase clarity

Page 290: Vijeo Citect - Project Development

Hands-on Exercise

Exercise 14.2Exercise 14.2

Displaying Trends

Page 14-8

Page 291: Vijeo Citect - Project Development

Click to edit Master title stylePA Properties (pg14-12)

� Access the Dialog Box

� Choosing the ‘show properties’ button

� Right-click on the pane

Page 292: Vijeo Citect - Project Development

Hands-on Exercise

Exercise 14.3Exercise 14.3

Changing the Properties of the Process Analyst

Page 14-13

Page 293: Vijeo Citect - Project Development

Hands-on Exercise

Exercise 14.4Exercise 14.4

Comparing Trend Data

Page 14-15

Page 294: Vijeo Citect - Project Development

Hands-on Exercise

Exercise 14.5Exercise 14.5

Displaying Alarms

Page 14-17

Page 295: Vijeo Citect - Project Development

Hands-on Exercise

Exercise 14.6Exercise 14.6

Comparing Trends and Alarms

Page 14-19

Page 296: Vijeo Citect - Project Development

Click to edit Master title styleSummary Questions

� What is the Process Analyst?

� What are pen types?

� Name the three types of pen.� Name the three types of pen.

� Why do we save analyst views?

Page 297: Vijeo Citect - Project Development

Navigation Navigation

Page 298: Vijeo Citect - Project Development

Click to edit Master title styleTopics

� Menu Configuration Tool

� Custom Page Navigation

� Navigation Parameters

Page 299: Vijeo Citect - Project Development

Click to edit Master title styleMenu Configuration Tool (pg15-2)

� Customize the run-time pages� Configuration panel from Admin Tools� Four Components

� Pages� Menuname� Menuitem� Submenu

Page 300: Vijeo Citect - Project Development

Click to edit Master title styleMenu Configuration Tool (pg15-2)

� Left panel is a graphical representation of a DBF lookup table that forms the basis of the menus displayed at runtime

� Actions start with ‘?’

� Page-loads do not

Page 301: Vijeo Citect - Project Development

Click to edit Master title styleMenu Fields (pg15-2)

� Page The page field is defined as

� Generic (associated with all pages)

� Name of a page within the project menus will appear on that particular page

� Menuname The name(s) of the menus included � Menuname The name(s) of the menus included on the specified page

� Menuitem The item(s) that appear within each menu

� Submenu Any submenus that appear in a menu

� Adding a sub menu will automatically remove the action defined for the menu item it is branched from

Page 302: Vijeo Citect - Project Development

Click to edit Master title styleMenu components (pg15-2)

Page Generic

Page Name

Menuname

Menuitem

Submenu

Page 303: Vijeo Citect - Project Development

Hands-on Exercise

Exercise 15.1Exercise 15.1

Menu Configuration Tool

Page 15-3

Page 304: Vijeo Citect - Project Development

Click to edit Master title styleStandard Menu Items (pg15-5)

� Generic

� Pull-down menus

� Template

� Associated with ‘2-men’ button‘2-men’ button

Page 305: Vijeo Citect - Project Development

Click to edit Master title styleMyLogin (pg15-5)

FUNCTIONMyLogin()INT iFail

iFail = LoginForm()

Local variable to trap success or failure of LoginForm command

LoginForm will return 0 if it succeeds, non-zero if it fails iFail = LoginForm()

IF NOT iFail THENCSV_Nav_Home()

ENDEND

LoginForm will return 0 if it succeeds, non-zero if it fails (eg incorrect password)

True is equated to 1, thus we are asking: if the login succeeded, display the home page, otherwise do nothing

Page 306: Vijeo Citect - Project Development

Click to edit Master title styleMyLogout (pg15-5)

FUNCTIONMyLogout()

CSV_Nav_Home();Logout()

Load the home page before executing a logout – we don’t want to be displaying a “high security” page with

Logout()END

a “high security” page with no-one logged in!

Page 307: Vijeo Citect - Project Development

Hands-on Exercise

Exercise 15.2Exercise 15.2

Custom Page Navigation

Page 15-5

Page 308: Vijeo Citect - Project Development

Click to edit Master title styleNavigation Parameters (pg15-9)

� Citect.ini can name the primary pages in the project in the [navigation] section

[Navigation]

HomePage = HomeHomePage = Home

AlarmPage = Alarm

HardwarePage = Hardware

SummaryPage = Summary

ToolsPage = Admin

TrendPage = Trend

Page 309: Vijeo Citect - Project Development

Hands-on Exercise

Exercise 15.3Exercise 15.3

Navigation Parameters

Page 15-9

Page 310: Vijeo Citect - Project Development

Click to edit Master title styleSummary Questions

� What are the four levels within the menu system?

� Which program is used to configure menus?

� Complete the following statement: Another way to � Complete the following statement: Another way to configure navigation in your project is by changing the XXXX parameters in the citect.ini file.

Page 311: Vijeo Citect - Project Development

Reports

Page 312: Vijeo Citect - Project Development

Click to edit Master title styleTopics

� Defining a Report

� Reporting Format File

� Viewing Reports

Page 313: Vijeo Citect - Project Development

Click to edit Master title styleConfiguring Reports (pg16-2)

� Periodic

� Triggered

� Triggered during a period

� System | Reports� System | Reports

� Output to a Device

� Format in report format file

Page 314: Vijeo Citect - Project Development

Click to edit Master title styleEvent-based Trigger (pg16-2)

� Action: Report (“Past”)

� Silo Exceeds level of 900 Lt

� Trigger: LIC_Silo_PV > 900

Page 315: Vijeo Citect - Project Development

Hands-on Exercise

Exercise 16.1Exercise 16.1

Defining a Report

Page 16-3

Page 316: Vijeo Citect - Project Development

Click to edit Master title styleReport Processing (pg16-4)

� Define Report format

� Device runs report

� outputs report to destination

Report Destination

Template

Device

Page 317: Vijeo Citect - Project Development

Click to edit Master title styleViewing Documents (pg16-5)

� In page based on File template

� Use Cicode functions

� PageFile()

� PageRichTextFile()

� DspRichTextScroll(AN,3,5)

� DspRichTextPgScroll(AN,3)

� 3=up, 4=down

� 5=number of lines to scroll

Page 318: Vijeo Citect - Project Development

Hands-on Exercise

Exercise 16.2Exercise 16.2

Viewing Reports

Page 16-6

Page 319: Vijeo Citect - Project Development

Hands-on Exercise

Exercise 16.3Exercise 16.3

Adding Scroll Tools

(optional)

Page 16-8

Page 320: Vijeo Citect - Project Development

Click to edit Master title styleSummary Questions

� How often can reports be run?

� What are the two formats used to view reports?

Page 321: Vijeo Citect - Project Development

SecuritySecurity

Page 322: Vijeo Citect - Project Development

Click to edit Master title styleTopics

� Planning Plant Security

� Areas and Privileges

� Allocating Privileges and Areas

� Adding User Records� Adding User Records

� Runtime Keyboard and Mouse Security

Page 323: Vijeo Citect - Project Development

Click to edit Master title stylePlant Security (pg 17-2)

� What functions Staff groups can do

� What functions staff groups can view

� Which areas need security

� Based on

� Privileges at object level (what can be done)

� Areas defined in User definitions (what can be seen)

� Defaults to Area 0, Privilege 0

Page 324: Vijeo Citect - Project Development

Click to edit Master title styleAreas and Privileges (pg 17-3)

� Security Scenario� Each operator has responsibility for his own section of the plant and will be able to see all areas. They will also be permitted partial control of adjacent areas

� All operators have the ability to shutdown the � All operators have the ability to shutdown the plant

� Privilege Levels:� 1: Primary Plant Control

� 2: Secondary Plant Control

� 3: Shutdown Privilege

Page 325: Vijeo Citect - Project Development

Click to edit Master title styleAreas and Privileges (pg 17-3)

Milk Receiving(Area 1)

Pasteurisation (Area 2)

Bottling(Area 3)

Operator 1

Viewable: YesPrivilege 1: YesPrivilege 2: YesPrivilege 3: Yes

Viewable: YesPrivilege 1: NoPrivilege 2: YesPrivilege 3: Yes

Viewable: YesPrivilege 1: NoPrivilege 2: NoPrivilege 3: YesPrivilege 3: Yes Privilege 3: Yes Privilege 3: Yes

Operator 2

Viewable: YesPrivilege 1: NoPrivilege 2: YesPrivilege 3: Yes

Viewable: YesPrivilege 1: YesPrivilege 2: YesPrivilege 3: Yes

Viewable: YesPrivilege 1: NoPrivilege 2: YesPrivilege 3: Yes

Operator 3

Viewable: YesPrivilege 1: NoPrivilege 2: NoPrivilege 3: Yes

Viewable: YesPrivilege 1: NoPrivilege 2: YesPrivilege 3: Yes

Viewable: YesPrivilege 1: YesPrivilege 2: YesPrivilege 3: Yes

Privilege 1 = Primary Control Privilege 2 = Secondary Control Privilege 3 = Shutdown Privilege

Page 326: Vijeo Citect - Project Development

Click to edit Master title styleFor the Purposes of the Exercise, Areas

� We only have one major production area, thus :-

� Area 1 will be represented by:

� Pasteuriser and all Alarm pages

� Visible to Operator, Manager & Engineer

� Modifiable by Operator & Engineer only� Modifiable by Operator & Engineer only

� Area 2 will be represented by:

� Utility page (referred to as ‘test area’)

� Visible to Manager & Engineer only

� Modifiable by Engineer only

Page 327: Vijeo Citect - Project Development

Click to edit Master title styleFor the Purposes of the Exercise, Privileges

� Privilege 1 – Main Plant Operation� Turn valves, pumps and other components ON/OFF

� Engineer in Areas 1 & 2

� Operator in Area 1 only

� Privilege 2 – Secondary Plant Operation� Changing analog variable values� Changing analog variable values

� Engineer in Areas 1 & 2

� Operator in Area 1 only

� Privilege 3 – System Commands� System Shutdown & System Info

� Engineer in Areas 1 & 2 only

� Note - Manager� Has read-only permission in Areas 1 & 2

� This could be achieved by installing a manager licence

Page 328: Vijeo Citect - Project Development

Click to edit Master title styleConfiguring Users (pg17-3)

� System | Users

� Represent individuals

� Class of Users

To ViewF2

Page 329: Vijeo Citect - Project Development

Click to edit Master title styleViewable Areas (pg17-3)

� Set Viewable Areas

� Set Areas for privileges 1-8

Global Privileges

Areas for Privilege 1-8Viewable Areas

Page 330: Vijeo Citect - Project Development

Click to edit Master title style

User X

Areas & Privileges (pg17-3)

Global Privileges 2 3 4 5 6 7

Area 3 Privileges

Area 2 Privileges

Area 1 Privileges 2

1 8

3 5

7

Viewable Areas 1,2,3

Page 331: Vijeo Citect - Project Development

Click to edit Master title styleRuntime Security (pg 16-11)

� Computer Setup Wizard

� Control Menu

� Title Bar

� Start-up ‘Cancel’ Button

��

� Computer Security

� <ctrl> <alt> <del> (Task Manager)

� <ctrl> <esc> (Start Menu)

� Policy Editor

Page 332: Vijeo Citect - Project Development

Hands-on Exercise

Exercise 17.1Exercise 17.1

Adding User Records and Configuring Permissions

Page 17-6

Page 333: Vijeo Citect - Project Development

Click to edit Master title styleSummary Questions

� What events can be monitored?

� What controls should be considered before implementing any security?

� When configuring your project, use what to determine security levels?

Page 334: Vijeo Citect - Project Development

Click to edit Master title styleEnd of Day Three

� What have we covered?� Trends (Chapter 13)

� Trend Tags

� Configuring the Trend Display

� Trend History Files� Trend History Files

� Process Analyst (Chapter 14)� Properties

� Navigation (Chapter 15)� Menu Configuration Tool

� Customised Navigation

Page 335: Vijeo Citect - Project Development

Click to edit Master title styleEnd of Day Three

� What Have We Covered?

� Reports (Chapter 16)

� Defining and Viewing Reports

� Security (Chapter 17)Security (Chapter 17)

� Planning Security

� Allocating Privileges and Areas

� Run-time Security

Page 336: Vijeo Citect - Project Development

Click to edit Master title style

End of Day Three

Page 337: Vijeo Citect - Project Development

Course Summary

Page 338: Vijeo Citect - Project Development

Click to edit Master title styleTopics

� Course Review

� Course evaluation

� Further training

� Citect examinations� Citect examinations

Page 339: Vijeo Citect - Project Development

Click to edit Master title styleAchieved the Objectives?

� Good understanding & competent in use of Vijeo Citect

� Able to communicate with PLC using Vijeo Citect

� Apply learning to your own site or project

� Troubleshoot problems and take appropriate action

Maximise performance of your Vijeo Citect � Maximise performance of your Vijeo Citect application

� Use the on-line help and Knowledge Base effectively

� (Produce a design specification outline)

Page 340: Vijeo Citect - Project Development

Click to edit Master title styleTraining Roadmap

Upgrade

Advanced

Technical Skill Requirement

Intermediate

Cicode Configuration

Technical Skill Requirement

Page 341: Vijeo Citect - Project Development

Click to edit Master title styleEnd of Course

� Course evaluation

� Certificates

� Questions

Page 342: Vijeo Citect - Project Development

Click to edit Master title style

End of Course