Sei sulla pagina 1di 342

SCADA:

Project Development
Truong Dinh Chau
Email: chau.truong@me.com
chau.truong@hcmut.edu.vn

Hand phone: +84 (0)91. 543-74-40 / +84 (0)94. 543-74-40


Click to edit Master title style
Instructor
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-40
Email: chau.truong@hcmut.edu.vn,
chau.truong@me.com
Click to edit(pg1-3)
Objectives Master title style

 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
 Troubleshoot problems and take appropriate
action
 Maximise performance of your Vijeo Citect
application
 Use the on-line help and Knowledge Base
effectively
Click
Agendato edit
- DayMaster
1 (pg1-4)title style
 Introduction to open system of Schneider
Electric Automation Design Center (Vietnam)
 Conception. Structure. Component
 Client Configuration
 Managing Projects
 Setting up Communications
 Graphics
Click
Agendato edit
- DayMaster
2 (pg1-4)title style

 Commands and Controls


 Genies
 Pop-up Pages and Super Genies
 Device connection mechanisms
Click
Agendato edit
- DayMaster
3 (pg1-4)title style
 Devices
 Events
 Alarms
 Trends
 Process Analyst
 Navigation
 Reports
 Security
Introduction to open system of
Schneider Electric Automation
Design Center (Vietnam)
Click
Topicsto edit Master title style
 System overview
 Distributed architecture
 Segment
Click
SystemtoOverview
edit Master title style
Click to edit
Distributed Master title style
Architecture
Click to edit Master title style
Segment
Conception
Structure
Component
Click
Topicsto edit Master title style
 Introduction to open system of Schneider
Electric Automation Design Center (Vietnam)
 Supervisory control conception
 SCADA definition
 Structure 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
Supervisory Control
Click to edit Master title style
Conception

Local control
Actuator
loop
Process

Sensor

PLC

Control

Converter Motor

Speed

PLC
Supervisory Control
Click to edit Master title style
Conception

Control

Converter Motor

Speed

PLC

%I0.1.0 %I0.1.1 %Q0.2.0

%Q0.2.0

PID
Set speed
2000 RPM
Supervisory Control
Click to edit Master title style
Conception
Control

Converter Motor
Operator
Speed

SCADA
PLC

%I0.1.0 %I0.1.1 %Q0.2.0

%Q0.2.0
%Q0.2.0

PID Control
Set Speed
%MW100
Click to edit
Definition of Master
SCADAtitle style

 Real-time DAQ
SCADA -  Processing
Supervisory Control And Data Acquisition  Archives
Supervision, Control And Data Acquisition  Monitoring
 Control
Click to edit
Definition of Master
SCADAtitle style

 Supervisory Control And Data Acquisition

 Supervision, Control And Data Acquisition

Source: http://www.webopedia.com/TERM/S/SCADA.html
Structure of traditional SCADA
Click to edit Master title style
systems

Master Remote
Terminal Communication Terminal
Operator Process
Unit System (CS) Unit
(MTU) (RTU)

process

Internet
Internet sensor
process

PLC
Router Router

sensor

operator

sensor

CS RTU
MTU
process
Functional organization of SCADA
Click
systemto edit Master title style
 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
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
Technical keywords of SCADA
Click
systemto edit Master title style
 Graphics displays
 Tag
 Alarms, Events
 Trends: Real-time, historical
 Report
 I/O driver
 I/O server
 Real-time
 Multitasking
 Openness
 Scalability
 Data access
 Database
 Networking
 Fault tolerance and redundancy
 Client/server distributed processing
Click totasks
Typicall edit Master title
in SCADA style
system
 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.
 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.
Distributed architecture in Vijeo
Click
Citect 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
network)
 Concurrent support of
multiple display nodes
 Access any tag from any node
 Access any data (trend, alarm,
report) from any node
Click to edit
Popular SCADAMaster title style
packages
SCADA Company Country
Citect Schneider Electric France
InTouch Wonderware USA
RSView Rockwell Automation USA
iFIX Intellution USA
GeniDAQ Advantech Taiwan
Genesis32 Iconics USA
Trace Mode AdAstra Russia
Vijeo Look Schneider Electric France
Factory Link United States Data USA
LabView National Instruments USA
WinCC Siemens Germany
Click
Vijeo to edit Product
Citect Master title style
 Market share
 Around 80% - 90% Australian market share
 Closer to 14% worldwide
 Age & maturity of the product
 First version released in the mid-1980s
 Currently v7.20
 Strengths
 Flexibility to support PLCs from nearly ALL
vendors
 Robust development environment
Vijeo Citect
Configuration
Environment
Click
Topicsto edit Master title style

 System requirements
 Vijeo Citect Explorer
 Include Projects
 Vijeo Citect Project Editor
 Vijeo Citect Graphics Builder
 Cicode Editor
Click to edit
The Vijeo Master
Citect title style
Environment
 Divided into two distinct parts:
 Runtime System
 Configuration Environment

 Citect Explorer

 Project Editor

 Citect Graphics Builder

 Cicode Editor

 Citect Help
Click
Systemto edit Master title(pg2-2)
Requirements style
 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
Click
Systemto edit Master title(pg2-2)
Requirements style

 Operating System
 Windows 2000
 Windows XP-SP2
 Windows Server 2003

 Minimum Hardware
 Pentium 500MHz
 128MB RAM

 Preferred Hardware
 Pentium 1GHz
 512MB RAM
Click to edit
Licensing Master title style
(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
Click to edit
Runtime Master
System title style
(pg2-2)

 The runtime system consists of


 Runtime Application
 Vijeo Citect Kernel
 Cicode Debugger
 At runtime Vijeo Citect will communicate
with
 I/O Devices
 MS Windows and other applications
 Other computers
Click
CitecttoExplorer
edit Master
(pg 2-4)title style

 Automatically starts and


stops Project Editor and
Graphics Builder
 Project selection and
management
 Backup and Restore
 Start other applications
Click to Projects
Include edit Master title style
(pg2-5)

Main Project

CSV_ Include Include


Plant Section #1 Plant Section #2
(XP Style) (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
Click to Editor
Project edit Master
(pg2-6) title style

 Create and manage the


Vijeo Citect database
containing the
configuration
information for your
Vijeo Citect project
 Does not manage
graphics pages
 View all Vijeo Citect
project database records
dbf files
Click
Cicodeto Editor
edit Master
(pg2-8) title style

Auto- Indent
Syntax
Colouring
KeyWord Case
Hands-on Exercise

Exercise 2.1

Exploring the Environment

Page 2-9
Click to edit
Summary Master title style
Questions
 Name the four separate programs comprising the
Vijeo Citect Configuration Environment.

 Which component is also known as the controlling


configuration application?

 Which program must be started separately?


Managing Projects
Click
Topicsto edit Master title style

 Create a New Project


 Computer Setup Wizard
 Backup and Restore a Project
 Including Projects
Click to edit Master
New Projects (pg3-2) title style

 Up to 64 characters
 Best not to use any special characters:
 Forbidden:
 “*|\[]:<>?/;‘
 Probably bad:
 !@#$%^&()+=}{~,

 Underscore _ is OK
Hands-on Exercise

Exercise 3.1

Create a New Project

Page 3-4
Click to editSetup
Computer Master title style
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 Controllers


 Select options that affect the runtime
application Outside of Citect
computer set-up wizard
Hands-on Exercise

Exercise 3.2

Computer Setup Wizard

Page 3-6
Click
Backupto edit Master(pg3-9)
& Restore title style

 From Vijeo Citect


Explorer

 Backup

 Restore
Click
Backupto edit
is a Master
Zip File title style
(pg3-9)

You can change the


suffix of “ctz” to “zip”
and view the
contents of the
backup
Click
Backupto edit Master title
Management style
(pg3-9)

 Change Log
 Version Control
 Be able to back-track
Click to edit
Restore Master
as New title style
Project (pg3-12)

 Restore as a current project overwrites


existing project with the same name
Hands-on Exercise

Exercise 3.3

Backing Up, Restoring and


Deleting a Project

Page 3-10
Click to Projects
Include edit Master title style
(pg3-13)

View New Selection


Hands-on Exercise

Exercise 3.4

Including Projects

Page 3-14
Click to edit
Summary Master title style
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?

 Which Wizard allows you to setup and customise


your computer?

 Why should backups be taken of your project?


Setting Up
Communications
Click
Topicsto edit Master title style

 Express communications wizard


 Communications dialogs
 Tag conception
 Variable tags
 Forms
 Testing communications
 Structured tag names
 Using MS Excel and MS Access to add variable
tags
Click
Vijeo to edit Master title
CitectSCADA style
I/O (pg4-2)
Express
Communication
Wizard Vijeo Citect

Vijeo Citect I/O Server

I/O Boards I/O Boards

Ports Ports

Devices
Click to edit Master
Communications title style
Wizard (pg4-2)

 Defines communications with respect to the


Vijeo Citect software

Select Project
Click to edit Master
Communications title style
Wizard (pg4-2)
Click to edit
Express Master title style
Communication (p4-3)
Hands-on Exercise

Exercise 4.1

Express Communication Wizard

Page 4-3
Click to edit Master
Communications title(pg4-10)
Files style
 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
Click to editTypes
I/O Device Master title style
(pg4-11)

 External I/O  Memory I/O Device


Device  Does not retain data
 Manufacturer  Specify protocol
 Protocol
 Address  Disk I/O Device
 Specify data file location
 Retains data
 Specify protocol

PC memory PC Disk
10101
01010
10101
0
Click to editConfiguration
I/O Device Master title style
(pg4-11)

Hit <F2> Key to view


extra options
Click Help for field
information
Click to edit
After the I/O Master
Wizardtitle style
(pg4-11)
Hands-on Exercise

Exercise 4.2

Communication Dialogs

Page 4-11
Tag conception
Click Tag
to interpretation
edit Master title style
Tag conception
Click to structure
edit Master title style
Tag

Tag structure in RSView32, Rockwell Automation


Tag conception
Click to structure
edit Master title style
Tag

Tag structure in GenieDAQ, Advantech


Tag conception
Click Tag
to definition
edit Master title style

 New concept in the industry automation.


 Abstracting of engineering process parameters of
information sources.
 Real-time data from sensors: temperatures,
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.
Tag conception
Click to abstracting
edit Master title style
Tag
Tag =
{
Characteristic 1
Characteristic 2
… Runtime
Characteristic N
}

Tag = Tag =
{ {
Name Pump_1_Speed
ID 0x03C00040
Value 250
EU “RPM”
Description “Speed of feed pump”
Device Premium_192_168_1_51
Address 400123
} }
Tag conception
Click to edit Master title style
Command/Data direction

Input
P

In/Out PC

Output

 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.
Tag conception
Click to edit Master title style
Command/Data direction

Input Device Internal Device

Input Device

Output Device

Internal

Readable
Device
Output

Output Device

Internal
Tag conception
Click to value
edit Master title style
Tag
 Data value VARIANT type
 Time stamp FILETIME
 Quality UNCERTAIN, GOOD, BAD

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

Value.vt = VT_BOOL; class Tag


Value.boolVal = TRUE;
{
...
Value.vt = VT_I2;
Value.iVal = 15; VARIANT Value;
WORD Quality;
FILETIME TimeStamp;
Value.vt = VT_R4;
Value.fltVal = 3.14; ...
};
Tag conception
Click to edit Master title style
Timestamp obtain

Value
2.5

10:12:07 2.5

Quality GOOD

10:12:07

Physical I/O
device
Tag conception
Click Tag
to structure
edit Master title style
in Vijeo Citect

Tag = { Tag = {
Name Pump_1_Speed
ID 0x03C00040
Cluster Cluster1
Device Premium_192_168_1_51
Address 400123
Data Type INT
Value 250
Raw Zero Scale NA
Raw Full Scale NA
Eng Zero Scale 0
Eng Full Scale 500
Deadband NA
EU “RPM”
Description } “Speed of feed pump” }
Tag conception
Click Scaling
to edit Master title style

Raw scale: [n1, m1]

Engineering Scale: [n2, m2]

( x - n1)
Linear scaling: y  n2  (m2  n2)
m1  n1
(x - 0)
y  10  (10  (-10))
4095  0

( x - n1 )
Quadratic scaling: y  n2  (m2  n2)
m1  n1
Tag conception
Click Deadband
to edit Master title style

CurrentVal ue - PrevChange  HighScale - LowScale 


Deadband
100.0
Tag conception
Click Deadband
to edit Master title style
Deadband = 0; 500ms
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.1V; 500ms

Timestamp 15:8:17:140 Value = 7.6986 T = 31.5


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
Click to edit(pg4-13)
Tag Forms Master title style

Create a new Update an Delete the Access help on


record with existing current the currently
the current record with record selected
details the current function
details
Click
ShowtoDeleted
edit Master title(pg4-13)
Entries style
Show
 Deleted items are Deleted
“flagged for Items
deletion”
 File | Pack
deletes items

Deleted
Items
Visible
Click to edit Master title(pg4-14)
Test Communications style
 Create variable tag
called “Test”
 Use graphics builder to
create simple page
 Associate buttons and
text label to “TEST” tag
 Compile, run, and
watch the magic
Hands-on Exercise

Exercise 4.3

Testing Communications

Page 4-14
Click to editTag
Structured Master title(pg4-22)
Names style
 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

 Occurrence section identifies the loop number

 Attribute section identifies the attribute or particular parameter that is


associated with the loop

 ISA Standards Link


Click to editTag
Structured Master title(pg4-23)
Names style
Variable Tag Meaning

Area
B1_bbb_ccc_dd Boiler 1
B2_bbb_ccc_dd Boiler 2
Type
aa_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
Click to edit Master
Tag Naming (pg4-23) title style

 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
Hands-on Exercise

Exercise 4.4

Milk Treatment Plant


Variable Tags

Page 4-24
Click
Backupto edit Master
& Think title(pg4-25)
Again style
Danger!! Always backup your original <name>.dbf file!!
Vijeo Citect can be made inoperable by changing these files outside of the application
Click
Save to editMacro
DBF Master title style
(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
Add Tags using MS Excel and
Click to edit (pg4-26)
MS Access Master title style

 Open
Variable.dbf
 Excel, Access
opens
 Right click &
Save/Close DBF
in C:\temp\ as

variable_new.dbf
Hands-on Exercise

Exercise (optional)

Using Microsoft Excel and MS Access to


Add Variable Tags

Page 4-25
Click to edit
Summary Master title style
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?

 How are the communications tested?

 What sections comprise the naming standard for tags?


Graphics
Click
Topicsto edit Master title style

 Create pages
 CSV_Include project
 Drawing basic objects
 Runtime properties
 Creating symbols
 ActiveX
 True colour graphics
Click to Templates
Include edit Master(pg5-3)
title style

Retain link
to template
when used
in project
Hands-on Exercise

Exercise 5.1

Creating a New Page

Page 5-6
Click to edit
Drawing Master
Objects title style
(pg5-7)

Free hand Line

Rectangle Oval

Polygon Pipe

Text tool Numeric

Button Symbol Set

Trend Cicode Object

Symbol Genie

Active X Control Database Process Analyst


Exchange
Click to edit
Drawing Master
Objects title style
(pg5-7)

 Objects can also be


selected from
“Objects” on the
pull-down menu
Click
ObjecttoProperties
edit Master title style
(pg5-7)

 Appearance (General)
 Quick reference to altered properties
 Alter a property and a  appears in the tab
Click to edit Layout
Pasteuriser Master (pg5-9)
title style
Hands-on Exercise

Exercise 5.2
Drawing the Milk Treatment
Graphics Page

Page 5-10
Click
UsefultoDrawing
edit Master
Tipstitle style
(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


Hands-on Exercise

Exercise 5.3

Rectangles, Squares, Ellipses


and Circles

Page 5-14
Hands-on Exercise

Exercise 5.4

Pipes, Polylines and Polygons

Page 5-16
Click to edit Wizard
Expression Master (pg5-18)
title style
 Avoid typos – use Expression Wizard!
Click to edit
Runtime Master
Object title style
Display (pg5-18)

On / Off MultiState

Array Threshold
Hands-on Exercise

Exercise 5.5

Displaying Objects in Different


Colours at Runtime

Page 5-18
Hands-on Exercise

Exercise 5.6

Displaying a Bar Graph

Page 5-20
Hands-on Exercise

Exercise 5.7

Displaying Numbers at Runtime

Page 5-22
Hands-on Exercise

Exercise 5.8

Displaying Text at Runtime

Page 5-23
Click
SymboltoSets
edit(pg5-25)
Master title style
 Symbol sets
 Multiple or sequential graphics indicate change of states
 Arrays – change colour with values input
 Animation – movement responding to input
Hands-on Exercise

Exercise 5.9

Using Symbol Sets

Page 5-25
Click
Symbolto edit Master title
Set Libraries style
(pg5-27)

 From Include Projects


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

Library Name Object Name Symbol set

 .
Valve_Solenoid up_small_green
libraries

 Duplicate libraries in
multiple projects are
merged
Hands-on Exercise

Exercise 5.10

Creating Symbols

Page 5-30
Click to edit
ActiveX Master
Controls title style
(pg5-32)

 Microsoft standard
 Separate component
 Developed by Citect and
integrated into Vijeo
CitectHMI/SCADA
 Can be developed
(and supported)
by 3rd parties
Click to edit
ActiveX Master
Controls title style
(pg5-32)

 ActiveX properties unique


to each control
 Insert ActiveX control just
like any other object
 Meters
 Menus
 Calendars
 Control Panels
Hands-on Exercise

Exercise 5.11

Add an ActiveX Object

Page 5-33
Click to edit
Importing Master (pg5-37)
Graphics title style

 Create Images from External sources


 Import many file types, including
 BMP
 DXF
 EPS
 JPG
 PCX
 PNG
 TIF
 WMF
Hands-on Exercise

Exercise 5.12

Importing Graphics Images

Page 5-38
Create Image as Background
Click
(pg5-43) to edit Master title style

 Lock Background Images


 Cannot select background image
 Edit | Lock Object
Hands-on Exercise

Exercise 5.14

Set an Image as the Background

Page 5-43
Click to edit
Summary Master title style
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?


Click to edit Master title style

End of Day One


Click
End oftoDay
edit One
Master title style
 What have we covered?
 The Citect Environment (Chapter 2)
 Explorer
 Project Editor
 Graphics Builder
 Cicode Editor
 Managing Projects (Chapter 3)
 Creating Projects
 Backing Up & Restoring Projects
 Computer Setup Wizard
 Including Projects
Click
End oftoDay
edit One
Master title style

 What have we covered?


 Communications (Chapter 4)
 Express Communications Wizard
 I/O Devices etc
 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
Vijeo Citect
Project Development

Day 2
Commands
and
Controls
Click
Topicsto edit Master title style

 Slider Controls
 Touch Commands
 Keyboard Commands
 Creating a Privileged User
Click
SlidertoControls
edit Master
(pg6-2)title style

 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)
Hands-on Exercise

Exercise 6.1

Slider Controls

Page 6-2
Click
TouchtoCommands
edit Master(pg6-5)
title style

 Paste Symbol
 Designate Input(Touch) command
 Designate variable Tag property

Start
Device
Hands-on Exercise

Exercise 6.2

Touch Commands

Page 6-5
Click to edit
Keyboard Master title(pg6-9)
Commands style
 Some Vijeo Citect Keys Pre-defined
 Define Keyboard Key
 Select symbol to be used
 Use Input (keyboard commands)
properties
 Define function to be performed
 Define action
Hit F5
 Go Backward To go
 Go to Forward Forward
Click to edit
Keyboard Master title(pg6-9)
Commands style
 Object level
 Page level
 System Level
Hands-on Exercise

Exercise 6.3

Keyboard Commands

Page 6-10
Click to edit Master
Understanding title style
ArgValue (p6-14)

 Citect will refuse to


directly connect
keyboard entry to a
variable tag
 ArgValue is an
internal variable
which accepts
‘numeric’ keystrokes
 Once the operator
presses ‘enter’ the
typed value is copied
to the PLC tag
Click to edit Master
User Privileges title style
(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
area facility

 Hierarchical privileges set by parameter in


citect.ini 8 - Highest
 [Privilege]Exclusive = 0

 To allocate all privileges, you would only need


to specify privilege 8 1 - Lowest
Click to edit Master
User Privileges title style
(pg6-15)

 Part of security
framework
 Object Level Access
 Users
 Also Areas
 User Logins
Hands-on Exercise

Exercise 6.4

Create a Privileged User

Page 6-16
Click to edit
Summary Master title style
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?


Genies
Click
Topicsto edit Master title style

 Pasting a Genie from Libraries


 Creating a New Genie
 Modifying a Genie
 Genie Syntax
Click
Geniesto (pg7-2)
edit Master title style
 Group together graphical objects
 From standard symbols

 Define combined properties and


actions

 Provide values or operations for


the tags
Developing
Click to edit aMaster
Genie title style
On When F5
Valve_Cool_CMD
Key: F5
%Tag%

Valve_%Name%_CMD F5

Off Symbol Toggle(Valve_Cool_CMD)

Toggle: Toggle(%Tag%)

Toggle(Valve_%Name%_CMD)

On Symbol Press F5 to change Valve_Cool_CMD


Tooltip: Press F5 to change %Tag%

Press F5 to change Valve_%Name%_CMD


Whatto
Click is edit
a Genie?
Master title style
(pg7-2)

 A group of symbols that can be re-used

Symbol Set Properties


On Symbol TAG | <set when used on a page>
On Symbol | Green_Pump
Off Symbol | Red_pump

Numeric Properties
numeric 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.
Hands-on Exercise

Exercise 7.1

Pasting a Genie from


the Libraries

Page 7-3
Click to edit
Viewing GenieMaster title style
Properties (pg7-2)

 Double clicking a genie


shows the tags for
variables to be entered
 <ctrl> Double click
shows the genie
properties
 Links to source of genie
make properties read
only
Click toGenies
Creating edit Master
(pg7-5) title style

 In Graphics Builder
 Do not save in Include
project library
 Update task required to
propagate changes when
modified
Click to edit Master
Substitutions title style
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

Symbol Set Properties


On Symbol TAG | %status TAG%
On Symbol | Green_Pump
Off Symbol | Red_pump
##
# Numeric Properties
numeric expression | %Speed Tag%
Format | ### EU
Click to edit Master
Substitutions title (pg7-6)
in Genies style

 You can specify


variables or
constants in Genies
Genie
 Enclose in % .. % variable
%name%
 Define them when
you use them
Genie
variable
%privilege%
Hands-on Exercise

Exercise 7.2

Creating a New Genie

Page 7-7
Click to edit
Locating theMaster
Geniestitle style
Click to edit
Summary Master title style
Questions
 What is a genie?
Popup Pages and
Super Genies
Click
Topicsto edit Master title style

 Creating Popup Pages


 Calling Popup Pages from Symbols
 Calling Popup Pages from Genies
 Creating Super Genies
SupertoGenies
Click edit Master
(pg8-2) title style

 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
Genie Cicode function, which performs
the substitutions and displays the ON
popup.
AssWin(sPage, X, Y, OFF 80 C
Mode, sTag1..8)
OK
Cicode function within Genie
controller - calls the popup,
Super Genie pop-up
controls where and how it is placed
controller
Click to edit
Anatomy of aMaster
Pop-uptitle style
(pg8-2)

Mode
Wintitle()

?1?=1 ON ?1?

?1?=0 OFF 80 C ?2?

Close
OK
WinFree()

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


Click
SupertoGenie
edit Master title(pg8-2)
vs Popup style

 Super Genies are transportable

.
 Saved into library as file <sgeniename> ctm
 Popup pages saved as page in project
Click to edit Master
Substitution title style
of Variables (pg8-3)

 Variable Tags can be substituted at runtime


by enclosing in ? …. ?

?datatype number?
String, Integer, Tag1
Tag1 Tag2 Tag3
Digital, Real
AssWin(sPage, X, Y, Mode, sTag1, sTag2, sTag3 …)

Page Name to be X,Y Mode sTag1 convention for


called Co-ord string, iTag for integer etc
Hands-on Exercise

Exercise 8.1

Creating Popup Pages

Page 8-4
Click to edit
Viewing Master
System title (p8-7)
Pages style

 Click on Tools | Options

 Check List System Pages

 Allows pages beginning with


! to be displayed
Click
HELPto- AssWin
edit Master title (pg8-8)
Modes style

 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.
Hands-on Exercise

Exercise 8.2

Calling Popup Pages


from Symbols

Page 8-8
Hands-on Exercise

Exercise 8.3

Calling Popup Pages


from Genies

Page 8-9
Click to editPoints
Animation Master title )style
(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
Click
Usingtothe
edit Master
Cicode title style
Editor (pg8-11)

 When complex terms are used in


genies use the Cicode editor
 Select New and Cicode program
 Colour coding! Copy & Paste into form
Hands-on Exercise

Exercise (optional)

Creating Super Genies

Page 8-11
Click to edit
Summary Master title style
Questions
 What are popup pages and super genies?

 Can popup pages be opened using the Page controls?


Device Connection
Mechanisms
Click
Topicsto edit Master title style

 Technologies
 Direct driver (DLL mechanism)
 DDE mechanism
 OPC mechanism
Click to edit Master title style
Technologies
 DLL - Dynamic-link Library
 DDE - Dynamic Data Exchange
 OLE - Object Linking & Embedding
 OPC - OLE for Process Control
Click
DirecttoDriver
edit Master title style
User
C/C++
code

Driver - DLL I/O Device


General part

Driver - DLL I/O Device


(EXE)

… …
Driver - DLL I/O Device

Specific part
SCADA
Click
Modbusto edit
TCPMaster title style
 Premium
 Twido
 Unity Pro
 TwidoSuite
 Modbus TCP
 Programming
Hands-on Exercise

• Programming simple ladder using TwidoSuite


• Programming simple ladder using Unity Pro
Click
Vijeo to edit –Master
Citect ModbustitleTCP
style
Click
Vijeo to edit –Master
Citect ModbustitleTCP
style
Vijeo Citect Runtime Vijeo Citect Runtime
Connection Connection
Hands-on Exercise

Connect Vijeo Citect with Twido and Premium


Click
Vijeo to edit –Master
Citect Other title
PLCs style
Demo with
 Siemens S7-200
 AB Micrologix 1000
Click to edit Master title style
DDE mechanism

DDE Sever I/O Device


DDE Clients, SCADA

DDE Server I/O Device


… …

DDE Server I/O Device

Computer A
Click to edit Master title style
DDE mechanism

I/O Device
DDE Clients, SCADA DDE Sever

Computer B

DDE Server I/O Device

DDE Server I/O Device

Computer A Computer C
Click to edit Master title style
DDE mechanism

Application
Application|Topic1!Item2

Topic1

Item1 Item2 Item3 I/O Device

Topic2

Item1 Item2 Item3

DDE Client DDE Server


Hands-on Exercise

• Vijeo Citect – DDE applications


• MS Excel – Vijeo Citect
OPC mechanism
Click to edit
Architecture Master
of modern processtitle style
control system
Web Modules of factory Business
Server resource management Relation DB Management

SCADA SCADA VB, C++ Realtime


Station Station Applications DB Supervision

Process Management
Automatic
Control

T P
Flow Temp Pressure Actuator
measur. measur. measur.
Analog I/O, Configuration
Field
Discrete I/O and maintenance Management
Control objects
OPC mechanism
Click The
to I/O
edit
driverMaster
problem title style

C/C++ Application SCADA SCADA

Software Software Software


Driver A Driver B Driver C
Physical I/O Physical I/O Physical I/O

Device A Device B Device C


Allow Not allow
OPC mechanism
Click How
to edit Master
does OPC title
solve the style
problem?

C/C++ Application SCADA SCADA


OPC OPC OPC

OPC OPC OPC


Software Software Software
Driver A Driver B Driver C
Physical I/O Physical I/O Physical I/O

Device A Device B Device C


OPC mechanism
Click to edit
Architecture Master
of modern processtitle style
control system
Web Modules of factory Business
Server resource management Relation DB
Management

SCADA SCADA VB, C++ Realtime


Station Station Applications DB Supervision

Process Management
Automatic
Control

T P
Flow Temp Pressure Actuator
measur. measur. measur.
Analog I/O, Configuration
Discrete I/O Field
and maintenance
Management
Control objects
OPC mechanism
Click to edit
Architecture Master
of modern processtitle style
control system
Web Modules of factory Business
Server resource management Relation DB
Management

SCADA SCADA VB, C++ Realtime


Station Station Applications DB Supervision

Process Management
OPC OPC OPC
Server Server Server

Automatic
Control

T P
Flow Temp Pressure Actuator
measur. measur. measur.
Analog I/O, Configuration Field
Discrete I/O and maintenance Management
Control objects
OPC mechanism
Click What
to edit Master title style
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.
An OPC compliant client can read and write data to any OPC compliant server.

OPC Interfaces SCADA


C++, VBA
OPC Interfaces
Applications
OPC Server

Software
driver
MatLab,
OPC Interfaces
Excel Physical
Software driver I/O
Devices
OPC mechanism
Click What
to edit Master title style
is OPC?

Object Linking & Embedding

OPC – OLE for Process Control


OPC – OLE for Production Control
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.
OPCtomechanism
Click OLE edit Master title style

OLE Server I/O Device


(DLL)
OLE Client

OLE Server
(EXE)

(EXE) I/O Device


… …

OLE Server
(DLL) I/O Device
OPCtomechanism
Click OLE edit Master title style

In-process
In-process
Client

Local Remote

Computer A Computer B
OPCtomechanism
Click edit Master title style
The logical object model OPC Data Access Server

OPC OPC Server


Interfaces

OPC
Interfaces OPC Group
OPC Group
OPC Group

OPC
OPCGroup
Group
OPC Item OPC Group
OPC Group
OPC Item OPC
OPCGroup
Group
OPC Item

Device Device

Tag Tag Tag Tag Tag Tag


OPC mechanism
Click OPC
to edit Master title style
Item Object

 Connection to a data source.


Item i
 Properties:
 Data value (v)
VARIANT type: boolean, integer, float, string, …
 Quality (q)
UNCERTAIN, GOOD, BAD, …
Tag j
 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.
 …
OPC mechanism
The path of real-time data in the integrated
Click to edit
process control Master title style
system
Supervision
SCADA station SCADA station

v1, q1, t 2.6,


4.5,
4.2,
3.9,
4.0,
4.3,
4.6,
4.4,
4.1,
3.5,
2.9,
2.7,
2.0,
2.1,
1.9,
1.8,
1.6,
1.7, v4,03:54:34
3.1, GOOD,
3.8,
3.2,
0.9, BAD, q03:54:60
4, t
03:54:06
03:54:07
03:54:10
03:54:12
03:54:13
03:54:16
03:54:20
03:54:21
03:54:23
03:54:24
03:54:26
03:54:27
03:54:31
03:54:32
03:54:33
03:54:01
03:54:02
03:54:03
03:54:04
03:54:05
03:54:08
03:54:09
03:54:11
03:54:14
03:54:15
03:54:17
03:54:18
03:54:19
03:54:22
03:54:25
03:54:28
03:54:29
03:54:30
03:54:35
03:54:36
03:54:38
03:54:39
03:54:40
03:54:41
03:54:42
03:54:43
03:54:44
03:54:45
03:54:46
03:54:47
03:54:48
03:54:49
03:54:50
03:54:51
03:54:52
03:54:53
03:54:54
03:54:55
03:54:56
03:54:57
03:54:58
03:54:59 v5 v6, q6, t

OPC Server OPC Server OPC Server


3.1, GOOD,
3.8,
3.2,
2.6,
4.5,
5.1,
4.2,
3.9,
4.0,
4.3,
4.6,
4.4,
4.1,
3.5,
2.9,
2.7,
2.0,
2.1,
1.9,
1.8,
1.7,
1.6, OK,
BAD,
BAD,
v1, q1, t v4, q4, t
03:54:01
03:54:02
03:54:03
03:54:04
03:54:05
03:54:06
03:54:07
03:54:08
03:54:09
03:54:10
03:54:11
03:54:12
03:54:13
03:54:14
03:54:15
03:54:16
03:54:17
03:54:18
03:54:19
03:54:20
03:54:21
03:54:22
03:54:23
03:54:24
03:54:25
03:54:26
03:54:27
03:54:28
03:54:29
03:54:30
03:54:31
03:54:32
03:54:33
03:54:34
03:54:35
03:54:36
03:54:38
03:54:39
03:54:40
03:54:41
03:54:42
03:54:43
03:54:44
03:54:45
03:54:46
03:54:47
03:54:48
03:54:49
03:54:50
03:54:51
03:54:52
03:54:53
03:54:54
03:54:55
03:54:56
03:54:57
03:54:58
03:54:59
03:54:60 v3, q3, t v5, q5, t' v6, q6, t

PLC Upper controller level

Controller level
Instrumentation PLC

Passive I/O boards

v1, t v2, t v3, t 3.1,v03:54:60


3.8,
3.2,
0.9,
2.6,
4.5,
5.1,
4.2,
3.9,
4.0,
4.3,
4.6,
4.4,
4.1,
3.5,
2.9,
2.7,
2.0,
2.1,
1.9,
1.8,
1.7,
1.6, 4, t
03:54:01
03:54:02
03:54:03
03:54:04
03:54:05
03:54:06
03:54:07
03:54:08
03:54:09
03:54:10
03:54:11
03:54:12
03:54:13
03:54:14
03:54:15
03:54:16
03:54:17
03:54:18
03:54:19
03:54:20
03:54:21
03:54:22
03:54:23
03:54:24
03:54:25
03:54:26
03:54:27
03:54:28
03:54:29
03:54:30
03:54:31
03:54:32
03:54:33
03:54:34
03:54:35
03:54:36
03:54:38
03:54:39
03:54:40
03:54:41
03:54:42
03:54:43
03:54:44
03:54:45
03:54:46
03:54:47
03:54:48
03:54:49
03:54:50
03:54:51
03:54:52
03:54:53
03:54:54
03:54:55
03:54:56
03:54:57
03:54:58
03:54:59 v5, t' v6, t

Parameters of engineering process


OPC mechanism
Click OPC
to edit
GroupMaster
Object title style

 Collection of items. Group i


 Clients must use group to access items.
 Properties: Item 1
 Requested update rate;
Item 2
 Percent dead band;
 Time bias; Item 3
OPC mechanism
Click OPC
to edit
ServerMaster
Object title style
 It is a COM object.
 Collection of groups.

Server i

Group 1
Group 2
Group 3
OPC mechanism
Click OPC
to edit
DA 1.0Master title style

IOPCServer

OPCServer
IOPCBrowseServerAddressSpace

IOPCItemMgt

IOPCAdviseSink IOPCGroupStateMgt
OPС-Client
IOPCSyncIO
OPCGroup
IOPCAsyncIO

IDataObject
Overall picture of the client/server interaction
Click to 1edit Master title styleClient 2
Client

Server 1 Server 2

Group1 2 Group1 2
Group Group

Item 1 Item 1 Item 1 Item 1

Item 2 Item 2

Item 3

Device 1 Device 2
OPC Server

Tag 1 Tag 2 Tag 3 Tag 1 Tag 2


OPC mechanism
Click Data
to edit
sourceMaster title style
in OPC Servers

Read from server’s internal cache.


Read directly from device.
Write directly to the device.
OPC to
Click mechanism
edit Master title style
Modes of data exchange in OPC Servers

Synchronous read/write.
Asynchronous read/write.
Subscription (for read).
Refresh (for read).
Synchronous mode
Click
Data to edit Master
Client title
1 style

Server 1

Group1 2
Group

Item 1 Item 1
OPC Server

Item 2
Item 3

Device 1 Device 2

Tag 1 Tag 2 Tag 3 Tag 1 Tag 2


Asynchronous mode
Click to edit Master
Client title
1 style

Server 1

Group1 2
Group

Item 1 Item 1
OPC Server

Item 2
Item 3

Device 1 Device 2

Tag 1 Tag 2 Tag 3 Tag 1 Tag 2


Subscription
Click to edit Master
Client title
1 style

Server 1

Group1 2
Group

 Item 1 Item 1
OPC Server

 Item 2 Data changed

 Item 3 Data changed

Device 1 Device 2

Tag 1 Tag 2 Tag 3 Tag 1 Tag 2


Refresh = Asynchronous mode for all items in a group

Click to edit Master


Client title
1 style

Server 1

Group1 2
Group

Item 1 Item 1
OPC Server

Item 2
Item 3

Device 1 Device 2

Tag 1 Tag 2 Tag 3 Tag 1 Tag 2


OPC mechanism
Click Demo
to edit Master title style

 Vijeo Citect – Simulator OPC Server


 Vijeo Citect – Siemens PC Access
 Vijeo Citect - OFS
Hands-on Exercise

Vijeo Citect - OFS

Page 9-4
Devices
Click
Topicsto edit Master title style

 What are Devices?


 Setting up Devices
 Using Device History Files
 Set up a Device
Click
What to edit
are Master (pg10-3)
Devices? title style
 An output mechanism to
deliver data from your Vijeo
Citect system
 Can output to
 RTF files
 Rich text format (Microsoft
standard)
 ASCII files
 Plain text files
Device
 dBASE databases
 SQL databases
 Via database connection driver
 Printers
Click to edit
Add New Master(pg10-4)
Devices title style

 System | Devices
 Period allows monthly,
yearly logging periods
 [data] path variable in
citect.ini file
 Specifies folder
Click
Deviceto History
edit Master
Filestitle style
(pg10-5)

 Define
 pathname:filename
 File type
 No. of files
 0 – no files
 -1 keep adding to 1 file
 n files
 Default 10
Hands-on Exercise

Exercise 10.1
Setup a Device

Page 10-7
Why Doesn’t
Click it Work?
to edit Master title style

F5 !Valve

CommandLog No logging!
Click to edit
Summary Master title style
Questions
 What is a device?

 Why are devices used?

 Why are device history files used?


Events
Click
Topicsto edit Master title style

 Define Events
 Enable Events
Click to edit Events
Configuring Master (pg11-2)
title style
 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
Click to edit Events
Configuring Master (pg11-2)
title style

 Events must be enabled


for events to run
 Use the Vijeo Citect
Computer Setup Wizard
(Custom setup) to enable
Events.
 You can process events
on any Vijeo Citect
computer but only one
computer for each event
Click
Globaltovs
edit Master
Named title style
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
 Run event on specific
computers
 Specify an event name
 Citect Computer Setup
Wizard (Custom setup)
 Specify Vijeo Citect
computer(s) to run event
Click
Cicodeto Functions
edit MasterUsed
title style
(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
Click to edit
Entering Master
Cicode title style
(pg11-3)

 Comment complex Cicode events


 64 character limit in action field
Hands-on Exercise

Exercise 11.1

Defining and Enabling Events

Page 11-3
Click to edit
Summary Master title style
Questions
 Why are events used?
 Name two types of event.
Click to edit Master title style

End of Day Two


Alarms
Click
Topicsto edit Master title style
 Alarm State Diagram
 Alarm Types
 HI, LO, HI HI, LO LO
 Deviation
 Rate of Change - ROC
 Configuring Alarms
 Alarm Categories
 Logging Alarms to a Printer
 Displaying Alarms
 Alarm Groups
 Audible Alarms
 Using Alarm Properties as Tags
 Defining an Alarm I/O Device
Click
AlarmtoState
edit Master
Diagramtitle style
(pg12-1)

ON UnAck

ON Ack OFF UnAck

OFF Ack
Click
AlarmtoTypes
edit Master
(pg12-2) title style

 Analog  Hardware
 High High  Pre-configured in Vijeo
 High Citect system
 Deviation
 Low  Advanced
 Low Low  Action on Cicode
 Rate of Change program

 Digital  Time Stamped


 One or Two Tags  Like Digital but with a
(ANDed) time stamp derived
from the PLC
Click to edit
HI, LO, Master
HI HI, LO title
LO style

Нigh High

High

OK

Low

Low Low
Click to edit
HI, LO, Master
HI HI, LO title
LO style
High High activated
Value

HiHi
Deadband

Hi
Deadband

High activated

High activated

time
Click to edit Master title style
Deviation
Value

Event Deviation
activated

Deadband
Allowable
deviation

Setpoint
Deadband

Event Deviation
activated
Time
b)
Ratetoofedit
Click Change - ROC
Master title style

s[i]  s[i  1 ]
Rate 
ti  ti 1

Rate  MaxRateOfChange  ROC


Click
CreatetoAlarms
edit Master
(pg12-2)title style

 Via Explorer or Project Editor


Max: 79
characters
Hands-on Exercise

Exercise 12.1
Configure Alarms

Page 12-4
Click
AlarmtoCategories
edit Master(pg12-7)
title style

 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
 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
Click
AlarmtoCategories
edit Master(pg12-7)
title style
 Define alarm
 Categorize Alarms – what we will do with an alarm
 Device – where the info will go
Click
AlarmtoCategories
edit Master(pg12-7)
title style
 For Instance…
 1000-series: Milk Receiving Area
 1001 – Critical Alarms
 1002 – Urgent Alarms
 Etc

 2000-series: Pasteurisation Area


 2001 – Critical Alarms
 2002 – Urgent Alarms
 Etc

 3000-series: Bottling Area


Hands-on Exercise

Exercise 12.2

Alarm Categories

Page 12-8
Click
AlarmtoPages
edit Master
(pg12-16) title style

 Right click alarm to see details


Click to edit
Standard Master
Alarm title(pg12-16)
Pages style
 Standard Pages in CSV_Include project
 Alarm
 All configured alarms
 Hardware
 Pre-configured hardware alarms
 Summary
 History of alarm activity from event log
 Disabled
 Manually-disabled alarms
Hands-on Exercise

Exercise 12.3

Displaying Alarms

Page 12-17
Click
AlarmtoGroups
edit Master title style
(pg12-20)

 Digital

 Analog

 Configure
 Time Stamped
alarm groups
 Digital time-stamped in the runtime
system
 Analog time-stamped

 Advanced
Hands-on Exercise

Exercise 12.4

Alarm Groups

Page 12-21
Click to edit
Audible Master
Alarms title style
(pg11-24)

1
Category Priority
Advanced 1
Digital 2 2
Analog 3

3
[Alarm]
Sound1 = c:\courses\AdvAlarm.wav
Hands-on Exercise

Exercise 12.5

Audible Alarms

Page 12-24
Click
AlarmtoProperty
edit Master
Tagstitle style
(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

Alarm_name Propert
y
AlarmName.H
AlarmName.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


Click
UsingtoProperty
edit Master
Tagstitle style
(pg12-27)

 Enter
 alarm.property
 Text to be displayed on given condition

Multi-state

Enter
Alarm.property
Hands-on Exercise

Exercise 12.6

Alarm Properties as Tags

Page 12-28
Click to edit
Summary Master title style
Questions
 Why are alarms used?

 Name the two types of alarms.

 What are alarm categories?

 Why are audible alarms used?


Click
End oftoDay
edit Two
Master title style

 What Have We Covered?


 Commands and Controls (Chapter 6)
 Sliders
 Touch Commands
 Keyboard Commands
 Privileged User
 Genies (Chapter 7)
 Using Existing Genies
 Creating Genies
Click
End oftoDay
edit Two
Master title style

 What Have We Covered?


 Popups and Super Genies (Chapter 8)
 Creating & Using Popups
 Calling Popups from Symbols and Genies
 Creating Super Genies
 Device connection mechanisms (Chapter
9)
 Direct driver
 DDE
 OPC
Click
End oftoDay
edit Two
Master title style

 What Have We Covered?


 Devices (Chapter 10)
 Various Kinds of Devices
 Setting Up Devices
 Device History Files
 Events (Chapter 11)
 Defining and Enabling Events
 Alarms (Chapter 12)
 Configuring Alarms
 Alarm Categories & Groups
Vijeo Citect –
Project Development
Day 3
Re-Cap
Day 2
Click
Geniesto edit Master title style
On When F5
Valve_Cool_CMD
Key: F5
%Tag%

Valve_%Name%_CMD F5

Off Symbol Toggle(Valve_Cool_CMD)

Toggle: Toggle(%Tag%)

Toggle(Valve_%Name%_CMD)

On Symbol Press F5 to change Valve_Cool_CMD


Tooltip: Press F5 to change %Tag%

Press F5 to change Valve_%Name%_CMD


Click
Geniesto edit Master title style

 You can specify


variables in Genies
 Enclose in % .. %
Genie
 Define them when variable
%name%
you use them

Genie
variable
%privilege%
Click
Pop-upto Pages
edit Master title style
/ SuperGenies
Mode
Wintitle()

?1?=1 ON ?1?

?1?=0 OFF 80 C ?2?

Close
OK
WinFree()

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


Click
Alarmsto edit Master title style
Trends
Click
Topicsto edit Master title style

 Trend Tags
 Displaying Trends
 Configuring Trend Display
 Trend History Files
 Instant Trends
 Displaying Instant Trends
Click to editTrends
Displaying Master(pg13-1)
title style

 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
Click
TrendtoTags
edit (pg13-2)
Master title style
 Create Trend Tag from Variable Tag
 Create Trend Page

Variable Trend Tag


Tag

Trend Tag Files

Trend Page
Click to edit
Creating Master
Trend Tagstitle style
(p12-2)

Max: 64
characters
Click
Trendsto (pg13-2)
edit Master title style

 Trends Page button

 Displays the "trend" page


 CSV_Trend preconfigured page appears by
default
 Other pages can be set by adjusting
parameter in citect.ini

 [Navigation]TrendPage
Click
Typestoofedit Master
Trends title style
(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
Click
TrendtoHistory
edit Master title(pg13-2)
Logging style
24:00
Sun

Trend Tag
Sample 1

Sample 2

Sample 3

Sample 4

Sample 5

Sample n
start stop

Event
Hands-on Exercise

Exercise 13.1

Trend Tags

Page 13-3
Click
TrendtoTemplate
edit Master title(pg13-5)
Styles style

 Standard style to review trend templates


Hands-on Exercise

Exercise 13.2

Displaying Trends

Page 13-6
Click
TrendtoHistory
edit Master title(pg13-10)
Display style

 History Mode uses Trend History files


 Displays trends for a specific period
Click
TrendtoGroups
edit Master title style
(Pg13-10)

Variable Trend Tag Trend Group Trend Display


Tag

Variable Trend Tag


Tag

Variable Trend Tag


Tag

Frequency Pen Colour


Period
Trigger
Type
Storage / Files
Hands-on Exercise

Exercise 13.3

Configuring the Trend Display

Page 13-11
File Management
Click to edit Master title style
(pg13-14)

 File growth - rule of thumb


 5Mb per month for each 1 second
trend record

 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
Click toTrends
Instant edit Master title style
(pg13-15)

 Computer setup configures instant trends

Trends Enabled
Hands-on Exercise

Exercise 13.4

Instant Trends

Page 13-17
Hands-on Exercise

Exercise 13.5

Displaying Instant Trends

Page 13-18
Click toTrends
Instant edit Master
(13-20) title style

 Note - click anywhere on the trend line to view a


time and date reference line
Click to edit
Summary Master title style
Questions
 Why are trends used?

 What are the three types of trends?

 How are trend history files used?

 Name three of the trend templates.

 Why use instant trends?


Process Analyst
Hands-on Exercise

Exercise 14.1
The Process Analyst
ActiveX Control

Page 14-3
Click
Topicsto edit Master title style
 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
Click to edit
Process Master
Analyst title style
(pg14-2)

 High-end PC with significant graphics card


 64MB Graphics Card (128Mb recommended)
 Displays
 All trend types
 Alarm data
 No extra configuration needed
Click to edit Master
Use Process Analysttitle style
(pg14-3)

 Place anywhere on page


 Configurable at runtime
Click to editTags
Displaying Master title style
(pg14-5)

 Add pens dialog


 Adds tags
 Analog
 Digital
 Adds Alarms
 Configures Pens
Click to edit
Selecting Master
Pens title style
(pg14-5)

 <ctrl> click to select multiple trends


 <shift> click to select adjacent trends
Click to edit
Analyst HelpMaster title style
File (pg14-5)
 Available in the Runtime system
 Not in Citect Help
Click to edit
Analyst ViewMaster
(pg14-5) title style

1. Main toolbar: Contains commands for performing general operations in the 6. Vertical axis: Analog pens have a vertical axis on the left-hand side of the pane
Process Analyst, such as opening views, printing reports to indicate data values.

2. Pens: A Process Analyst pen represents your trend and/or alarm data. The 7. Cursor: A cursor allows an Operator to determine value at a given point in time by
Process Analyst supports three types of pen: analog, digital, and alarm pen. dragging the cursor line to the point required.

3. Panes: Panes are used to group pens visually in the Process Analyst and are 8. Cursor labels: Display the value where the cursor intersects the trend value line
stacked vertically on the Process Analyst display.

4. Chart background: The panes are drawn over the chart background. 9. Navigation toolbar: Contains commands to allow an Operator to travel forward or
Depending on the layout of the pens, the background may be partially visible 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 10. Object View: When displayed, the Object View appears under the navigation
date or time (or both) of the data for the primary selected pen within a pane toolbar and displays information about your Process Analyst pens.
Click to edit
Process Master
Analyst title(pg14-5)
View style
Click to edit
Process Master
Analyst title style
/ Trends (pg14-5)

 “Different but the same!”


 Use the same data source (trend tags)
 Trend system has instant trends
 Trend tags and real tags
Click
AlarmtoDisplay
edit Master
(pg14-7)title style

Clarifier (Digital Alarm)


not in alarm state Silo (Digital Alarm)
HTA (Analog Alarm)
colours represent
HH, H, L & LL

P1A (Advanced Alarm)


P1>=3deg
Colour represents
“in alarm condition”

Unacknowledged
P4A Alarm
P4A Alarm
Acknowledged at
P4A (Advanced Alarm)
this point
P4<=75deg
Click
Cursorto&edit Master
Labels title style
(pg14-11)

Click and Drag


labels around
screen to increase
clarity
Hands-on Exercise

Exercise 14.2

Displaying Trends

Page 14-8
Click to edit Master
PA Properties title style
(pg14-12)

 Access the Dialog Box


 Choosing the ‘show
properties’ button
 Right-click on the pane
Hands-on Exercise

Exercise 14.3

Changing the Properties of the


Process Analyst

Page 14-13
Hands-on Exercise

Exercise 14.4

Comparing Trend Data

Page 14-15
Hands-on Exercise

Exercise 14.5

Displaying Alarms

Page 14-17
Hands-on Exercise

Exercise 14.6

Comparing Trends and Alarms

Page 14-19
Click to edit
Summary Master title style
Questions
 What is the Process Analyst?

 What are pen types?

 Name the three types of pen.

 Why do we save analyst views?


Navigation
Click
Topicsto edit Master title style

 Menu Configuration Tool


 Custom Page Navigation
 Navigation Parameters
Click
MenutoConfiguration
edit Master title
Toolstyle
(pg15-2)

 Customize the run-time pages


 Configuration panel from Admin Tools
 Four Components
 Pages
 Menuname
 Menuitem
 Submenu
Click
MenutoConfiguration
edit Master title
Toolstyle
(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
Click
MenutoFields
edit Master
(pg15-2) title style

 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
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
Click
Menutocomponents
edit Master(pg15-2)
title style

Page
Generic
Page Name

Menuname

Menuitem

Submenu
Hands-on Exercise

Exercise 15.1

Menu Configuration Tool

Page 15-3
Click to edit
Standard MenuMaster title(pg15-5)
Items style

 Generic
 Pull-down menus
 Template
 Associated with
‘2-men’ button
Click to edit
MyLogin Master title style
(pg15-5)

Local variable to trap


success or failure of
FUNCTION LoginForm command
MyLogin()
INT iFail
iFail = LoginForm() LoginForm will return 0 if it
succeeds, non-zero if it fails
IF NOT iFail THEN (eg incorrect password)
CSV_Nav_Home()
END True is equated to 1, thus we
END are asking: if the login
succeeded, display the home
page, otherwise do nothing
Click to edit(pg15-5)
MyLogout Master title style

FUNCTION
MyLogout()
Load the home page before
CSV_Nav_Home(); executing a logout – we
Logout() don’t want to be displaying
a “high security” page with
END no-one logged in!
Hands-on Exercise

Exercise 15.2

Custom Page Navigation

Page 15-5
Click to editParameters
Navigation Master title (pg15-9)
style

 Citect.ini can name the primary pages in the


project in the [navigation] section

[Navigation]
HomePage = Home
AlarmPage = Alarm
HardwarePage = Hardware
SummaryPage = Summary
ToolsPage = Admin
TrendPage = Trend
Hands-on Exercise

Exercise 15.3

Navigation Parameters

Page 15-9
Click to edit
Summary Master title style
Questions
 What are the four levels within the menu system?

 Which program is used to configure menus?

 Complete the following statement: Another way to


configure navigation in your project is by changing
the XXXX parameters in the citect.ini file.
Reports
Click
Topicsto edit Master title style

 Defining a Report
 Reporting Format File
 Viewing Reports
Click to edit Reports
Configuring Master title style
(pg16-2)

 Periodic
 Triggered
 Triggered during a period
 System | Reports

 Output to a Device

 Format in report format file


Click to edit Master
Event-based Triggertitle style
(pg16-2)

 Action: Report (“Past”)

 Silo Exceeds level of 900 Lt

 Trigger: LIC_Silo_PV > 900


Hands-on Exercise

Exercise 16.1

Defining a Report

Page 16-3
Click
ReporttoProcessing
edit Master(pg16-4)
title style
 Define Report format
 Device runs report
 outputs report to destination

Report
Device Destination

Template
Click to edit
Viewing Master title
Documents style
(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
Hands-on Exercise

Exercise 16.2

Viewing Reports

Page 16-6
Hands-on Exercise

Exercise 16.3

Adding Scroll Tools


(optional)
Page 16-8
Click to edit
Summary Master title style
Questions
 How often can reports be run?

 What are the two formats used to view reports?


Security
Click
Topicsto edit Master title style

 Planning Plant Security


 Areas and Privileges
 Allocating Privileges and Areas
 Adding User Records
 Runtime Keyboard and Mouse Security
Click
Plant to edit Master
Security (pg 17-2)title style

 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
Click
Areastoand
editPrivileges
Master title style
(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
plant

 Privilege Levels:
 1: Primary Plant Control
 2: Secondary Plant Control
 3: Shutdown Privilege
Click
Areastoand
editPrivileges
Master title style
(pg 17-3)

Milk Receiving Pasteurisation Bottling


(Area 1) (Area 2) (Area 3)
Viewable: Yes Viewable: Yes Viewable: Yes
Privilege 1: Yes Privilege 1: No Privilege 1: No
Operator 1
Privilege 2: Yes Privilege 2: Yes Privilege 2: No
Privilege 3: Yes Privilege 3: Yes Privilege 3: Yes

Viewable: Yes Viewable: Yes Viewable: Yes


Privilege 1: No Privilege 1: Yes Privilege 1: No
Operator 2
Privilege 2: Yes Privilege 2: Yes Privilege 2: Yes
Privilege 3: Yes Privilege 3: Yes Privilege 3: Yes

Viewable: Yes Viewable: Yes Viewable: Yes


Privilege 1: No Privilege 1: No Privilege 1: Yes
Operator 3
Privilege 2: No Privilege 2: Yes Privilege 2: Yes
Privilege 3: Yes Privilege 3: Yes Privilege 3: Yes

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


For the Purposes of the
Click to edit
Exercise, Master title style
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

 Area 2 will be represented by:


 Utility page (referred to as ‘test area’)
 Visible to Manager & Engineer only
 Modifiable by Engineer only
For the Purposes of the
Click to edit
Exercise, Master title style
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
 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
Click to edit Users
Configuring Master(pg17-3)
title style
 System | Users
 Represent individuals
 Class of Users

To View
F2
Click to edit
Viewable Master
Areas title style
(pg17-3)

 Set Viewable Areas


 Set Areas for privileges 1-8

Global Privileges

Viewable Areas Areas for Privilege 1-8


Click
Areasto&edit Master(pg17-3)
Privileges title style

User X

Global Privileges 2 3 4 5 6 7

Area 1 Privileges 2
1 8
Area 2 Privileges 3 5

Area 3 Privileges 7

Viewable Areas 1,2,3


Click to edit
Runtime Master
Security (pgtitle
16-11)style

 Computer Setup Wizard


 Control Menu
 Title Bar
 Start-up ‘Cancel’ Button

 Computer Security
 <ctrl> <alt> <del> (Task Manager)
 <ctrl> <esc> (Start Menu)
 Policy Editor
Hands-on Exercise

Exercise 17.1

Adding User Records


and Configuring Permissions

Page 17-6
Click to edit
Summary Master title style
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?
Click
End oftoDay
edit Three
Master title style

 What have we covered?


 Trends (Chapter 13)
 Trend Tags
 Configuring the Trend Display
 Trend History Files
 Process Analyst (Chapter 14)
 Properties
 Navigation (Chapter 15)
 Menu Configuration Tool
 Customised Navigation
Click
End oftoDay
edit Three
Master title style

 What Have We Covered?


 Reports (Chapter 16)
 Defining and Viewing Reports
 Security (Chapter 17)
 Planning Security
 Allocating Privileges and Areas
 Run-time Security
Click to edit Master title style

End of Day Three


Course Summary
Click
Topicsto edit Master title style

 Course Review
 Course evaluation
 Further training
 Citect examinations
Click to edit
Achieved theMaster title style
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
application
 Use the on-line help and Knowledge Base effectively
 (Produce a design specification outline)
Click to edit
Training Master title style
Roadmap

Advanced

Upgrade
Technical Skill Requirement

Intermediate

Cicode Configuration
Click
End oftoCourse
edit Master title style

 Course evaluation
 Certificates
 Questions
Click to edit Master title style

End of Course

Potrebbero piacerti anche