UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level....

72
LHC Project Document No. UNICOS PLC Objects CERN Div./Group or Supplier/Contractor Document No. EN/ICE/PLC EDMS Document No. - Date: 2009-02-26 the Large Hadron Collider project CERN CH-1211 Geneva 23 Switzerland Engineering Specification UNICOS PLC Objects Abstract This Specification contains a description of the UNICOS objects in the PLC. File: \\cern.ch\dfs\Departments\AB\Groups\CO\sections\IS\projects\UNICOS\documentation \Documentation Unicos\note\LHC Engineering Specification-UNICOS objects v1.5.doc Prepared by : UNICOS Team [EN-ICE-PLC/CERN] [[email protected]] Checked by : GAYET Philippe [EN-ICE-PLC/CERN] [[email protected]] BLANCO VIÑUELA Enrique [EN-ICE-PLC/CERN] [[email protected]]

Transcript of UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level....

Page 1: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects CERN Div./Group or Supplier/Contractor Document No.

EN/ICE/PLC

EDMS Document No.

-

Date: 2009-02-26

the

Large Hadron Collider project

CERN CH-1211 Geneva 23 Switzerland

Engineering Specification

UNICOS PLC Objects

Abstract

This Specification contains a description of the UNICOS objects in the PLC.

File:

\\cern.ch\dfs\Departments\AB\Groups\CO\sections\IS\projects\UNICOS\documentation

\Documentation Unicos\note\LHC Engineering Specification-UNICOS objects v1.5.doc

Prepared by :

UNICOS Team [EN-ICE-PLC/CERN]

[[email protected]]

Checked by :

GAYET Philippe [EN-ICE-PLC/CERN]

[[email protected]]

BLANCO VIÑUELA Enrique [EN-ICE-PLC/CERN]

[[email protected]]

Page 2: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 2 of 72

History of Changes

Rev. No. Date Pages Description of Changes

0.0

1.0

1.1

1.2

1.3

1.4

1.5

1.6

02/08/2005

15/02/2006

24/4/2006

03/07/2007

06/12/2008

23/02/2009

23/02/2009

26/02/2009

Document creation (B. Bradu AB/CO IS)

Object description changes (E. Blanco AB/CO IS)

New figures

New “active” information for the controllers (E. Blanco AB/CO)

StsReg02 analog, Default PID, Alarm blocked (E. Blanco

AB/CO)

Includes stsreg01 bits of controller and PCO noMaster input

(E. Blanco EN/ICE)

Little corrections: I/O objects descr., AIC, AOC, DO AuPosR,

Analog Manreg01, Anadig MposR, PID MnewPosR, PCO REAL Statuses (N. Kather EN/ICE)

Typos in some descriptions. Added some useful information in descriptions (J.Ortola EN/ICE)

Page 3: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 3 of 72

Table of Contents

1. STRUCTURE OF UNICOS OBJECTS ............................................................ 4 1.1 GENERAL FEATURES APPLICABLE TO ALL OBJECT TYPES .............................. 5 1.1.1 OBJECT INPUT REGISTERS .................................................................................. 5 1.1.2 OBJECT STATES ................................................................................................. 6 1.1.3 OBJECT OUTPUTS ............................................................................................... 7

2. OBJECT DESCRIPTIONS ........................................................................... 8 2.1 I/O OBJECTS ........................................................................................... 8 2.1.1 DIGITAL INPUT OBJECTS ..................................................................................... 9 2.1.2 ANALOG INPUT OBJECTS .................................................................................... 13 2.1.3 DIGITAL OUTPUT OBJECTS ................................................................................. 18 2.1.4 ANALOG OUTPUT OBJECTS ................................................................................. 22 2.2 FIELD OBJECTS ..................................................................................... 27 2.2.1 LOCAL OBJECTS ................................................................................................ 28 2.2.2 ON/OFF OBJECTS .............................................................................................. 31 2.2.3 ANALOG OBJECTS ............................................................................................. 40 2.2.4 ANADIG OBJECTS .............................................................................................. 48 2.3 CONTROL OBJECTS ................................................................................ 53 2.3.1 CONTROLLER OBJECTS ...................................................................................... 53 2.3.2 ALARM OBJECTS ............................................................................................... 63 2.3.3 PROCESS CONTROL OBJECTS ............................................................................. 65

REFERENCES ................................................................................................. 72

Page 4: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 4 of 72

1. STRUCTURE OF UNICOS OBJECTS

All UNICOS Objects which have been developped for Schneider PLC and for Siemens S7 are

described here.

In Schneider PLC the objects are represented by generic DFB with associated variables.

In S7 each object is represented by a generic FB which will be initialized in a DB. This DB will

represent a precise equipment of the application.

Objects are distributed in 3 classes:

I /O Device – Field Device - Process Control Device

The various object types are as follows:

IO devices : - DI & AI & AIC : Digital, Analog and Analog calculated Inputs

- DO & AO & AOC : Digital, Analog and Analog calculated Outputs

Field Devices : - LOCAL : Objects which are only driven in local mode (ex : manual valves).

- ONOFF : Objects driven by a digital signal (ex : Digital valves).

- ANALOG : Objects driven by an Analog signal (ex : Control valves).

- ANADIG : Objects with an Analog input and a digital output.

Control Devices : - PCO : Process Control Object which give orders to the fields devices

- CONTROLLER : Objects which contains a regulation algorithm (generally a PID).

- ALARM : Object which can send an alarm signal.

FIG1 : Example of an UNICOS hierarchy

Digital Output I/O Devices

POINT1.8 Cryogenic system

Compressor Compressor Compressor

Compressor Cold box WCS_ CCB_C

1.8K 4.5K Common QRL

CCS_C

Process Control Devices

Motor Slide Valve Oil valve Oil Pump Field Devices

Page 5: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 5 of 72

1.1 GENERAL FEATURES APPLICABLE TO ALL OBJECT TYPES

All object types are based on the same structure. We review here their common features[1]

FIG3 : GENERAL OBJECT STRUCTURE

1.1.1 OBJECT INPUT REGISTERS

The information and/or requests (Inputs) that an object receives can be classified according to their origin:

• Process Inputs: Information coming from the process and related to physical elements such as sensors or to the status of other objects.

We associate two status flags with each process input:

- Input/Output Error flag: It indicates the presence of an error in the physical channel

- Input/Output Simulated flag: It indicates that the operator simulates the Input/Output value

• Interlock Logic: The interlock logic uses several process inputs, combines them according to

the process behaviour and sets interlocks on the object. The different interlocks are:

- Start Interlock: It prevents the object to start

- Stop Interlock: It sets the object in its Fail-Safe position • Auto Requests: Requests coming from the control logic programmed in a higher object of the

hierarchical repartition. • Manual Requests: Requests coming from the operator via the OWS

Programmer

Information to Other devices or

to operator.

Process channels or

orders to other objects

Operator Command from SCADA

Process control logic Commands

Input channels readings Or

Statuses of other objects

Manual Requests Auto. Requests

Parameters

Orders

Process Inputs

Internal object control logic

Status

Page 6: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 6 of 72

• Parameters: Specific configuration parameters for each object. They are set through the EWS at the programming level.

1.1.2 OBJECT STATES

Object Activity State

There are three activity states: -On/Run when on

- Off/Stop when off

- Transient/Moving when moving between these two states.

For valves On is replaced by Open and Off by Close. For Analog objects, the activity state is given by its Value/Position. For such objects, the On/Open and Off/Close state is the result of threshold comparisons.

Object modes

The object mode identifies whether the object is driven by the operator, the control logic or the process field. Only one mode can be on at a given time. The setting of one of the operation modes automatically resets the other modes. These modes are:

• Forced Mode: the operator drives the object via the OWS.

- Manual Forced Mode Request will set the object in Forced Mode

- When in Forced Mode, an object cannot be set in Auto Mode by an auto request but only through a manual request: Manual Auto Mode Request.

• Auto Mode: The object is driven by the control logic of a higher object of the hierarchy.

- It can be set by an auto request: Auto Auto Mode Request or by a manual request: Manual Auto Mode Request.

• Manual Mode: the operator drives the object via the OWS.

- It can be set only by an operator request: Manual Manual Mode Request.

- If a special auto request Auto Inhibit Manual Mode is on while the object is in Auto Mode the Manual Mode cannot be activated by a manual request

• Local Drive Mode: The object is driven locally by the process field. This mode is used for

Field and I/O objects when the object is to be driven by a command located in the process field.

The Parameter Hardware Local Drive has to be activated to allow the Local Drive Mode.

This mode is activated by a digital input connected to a switch installed in the process field: Hardware Feedback Local Drive.

This mode is intended for maintenance purposes. It doesn’t affect the hierarchy of the normal operation modes (Auto, Manual and Forced) but it overrides it.

Object Warnings

Page 7: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 7 of 72

A warning state means that the normal behaviour of the object is subject to a perturbation that is not (yet) harmful to the process.

The warnings are issued:

- Input/Output Error Warning: when one I/O channel connected to the object has an error

- Input/Output Simulated Warning: When at least one object connected to the process input of the considered object is simulated or forced by the operator

- Auto/Manual Request Warning: when the manual activity request is different from the Auto activity request while the object is in Manual or Forced mode.

- Position Alarm Warning: When there is a discrepancy between the status of the real object and the output order, and when it persists longer than a given time given by the Parameter Alarm Time Delay.

Object Alarm

A warning state means that the normal behaviour of the object is subject to a perturbation affecting the process.

An object is alarmed when an interlock state (Start Interlock or Stop Interlock) is present.

The flag Alarm Unacknowledged remains on as long as the operator does not acknowledge the object.

1.1.3 OBJECT OUTPUTS

The outputs of an object give information on its status and on orders given by the object:

Output Orders

These are orders generated according to the object mode and the internal logic. They are sent: • to the process ( from an Output object) • to an output object ( from a Field object) • to a dependent object (from a Process Control object)

Information is given about the status of the object. It is used by the OWS and/or by the other objects.

Page 8: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 8 of 72

2. OBJECT DESCRIPTIONS

2.1 I/O OBJECTS

The Input objects are used to connect process equipment (sensors) with its associated Field

object in the control system. These objects are created to connect the PLC to the Supervision,

they do not play a role in the process application.(comment: did I get this right?)

This class contains 4 objects types: Analog input, Digital input, Analog output and Digital

output.

Fig 4 : structure of an Input Object Fig 5 : structure of an Output Object

Process variables

Control Logic

Informations to other

objects or to operator via Scada

Output Object AO/DO

Auto Requests

Operator

via OWS

Manual

Requests

Programmer via EWS

Parameters

Process

Order Status

Programmer

via EWS

Input Object AI/DI

Process

Inputs

Operator

via OWS

Manual

Requests

Parameters

Informations to other

objects or to operator via Scada

Status

Page 9: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 9 of 72

2.1.1 DIGITAL INPUT OBJECTS

For digital inputs, scaling of the input measured value isn’t needed. It is sufficient to manage

the warnings, the modes and to update the status.

FIG6 : Digital Input Object

Process Inputs

Name Type Meaning Description

HFPos BOOL Hardware Feedback

Position/Value

Effective position/value information from a

hardware sensor

IoError BOOL Input/Output Error Error in any Input channel of the object

IoSimu BOOL Input/Output Simulated Simulation by the operator of any Input

channel of the object

Auto Requests

AuInhFMo BOOL Auto Inhibit forced mode The control logic blocks the Force Mode

Manual Requests

Name Type Meaning Description

MAuMoR

Manreg01 BIT 0

BOOL Manual Auto Mode

Request

The operator request the Auto Mode (no

simulation)

MFoMoR

Manreg01 BIT 2

BOOL Manual Forced

Mode Request

The operator requests the Forced Mode to

simulate the input position/value

MOnR

Manreg01 BIT 4

BOOL Manual On Request The operator requests a simulated on position

MOffR

Manreg01 BIT 5

BOOL Manual Off Request The operator requests a simulated off position

Manual Requests

Status

Process

Inputs

ManReg01

Auto Requests

Page 10: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 10 of 72

Status Information

Name Type Meaning Description

PosSt

stsreg01 BIT0

BOOL Value/Position Status Current value sent to higher level objects or

program

MPosRSt

stsreg01 BIT15

BOOL Manual Value/Position

Status

Current value requested by the operator

HFSt

stsreg01BIT14

BOOL Hardware Feedback

Status

Current value coming from the sensor

AuMost

stsreg01 BIT2

BOOL Auto Mode Status Presence of Auto Mode

FoMoSt

stsreg01 BIT4

BOOL Forced Mode Status Presence of Forced Mode

IoErrorW

stsreg01 BIT6

BOOL Input/Output Error

Warning

Error in any Input of the object

IoSimuW

stsreg01 BIT7

BOOL Input/Output

Simulated Warning

Simulation by the operator of any Input of

the object

FoDiPro

stsreg01 BIT8

BOOL Forced Discrepancy

Auto

Flag to compare the Manual Request and the

Auto Request

AuInhFMo

stsreg01 BIT13

BOOL Auto Inhibit force

mode

The control logic blocks the Force Mode

Particularity

• Interlock Logic

There is no Interlock Logic for the Input object.

• Auto Requests

There are no requests coming from the control logic in higher objects or higher-level

programs.

• Manual Requests

Note: In Auto mode, the Manual Position/Value Request follows the Hardware Feedback

Position/Value.

• Output Orders

The Input object does not send orders to the process.

Stsreg01

Page 11: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 11 of 72

Operation principle

Updates the status

according to the operation

mode. The FoDiPro variable

telss wether the manual

request and the process

request are different. With

this control, the operator

can anticipate the

consequence of mode

changes:

A change from Forced to

auto will result in a change

in Post

MODE MANAGER

SURVEILLANCE

PI: MODE_EVALUATION

Takes into account of the

manual request: ON or OFF and

the auto value

Update of the error and

simulation warnings

Update of the operation mode

INPUT MANAGER Identification and

configuration of the variables

PI: ADQUISITION

Page 12: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 12 of 72

Data Processing

MOffR MOnR

MPosRSt = TRUE

MPosRSt = FALSE

PI: ADQUISITION

SURVEILLANCE

IoErrorW: = IoError IoSimuW: = IoSimu

HFSt = HFPos

MPosRSt

INPUT MANAGER

Read Inputs

ManReg01

MODE MANAGER

AuMost: = FALSE FoMoSt: = TRUE

Forced Mode

AuMost: = TRUE FoMoSt: = FALSE

AuInhFoMo = FALSE

MFoMoR

MAuMR

Auto Mode

MPosRSt XOR HFSt

FoMoSt AuMoSt

PosSt = MPosRSt

FoDiPro

FoDiPro = TRUE

FoDiPro = FALSE

FoDiPro = FALSE

PosSt = MPosRSt : =HFPos

STATUS REGISTER

PI: MODE_EVALUATION

Page 13: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 13 of 72

2.1.2 ANALOG INPUT OBJECTS

The Input objects are used to connect process equipment (sensors) to their associated Field

object in the control system.

For the analog inputs, The input object converts the process signal value received from the

sensor (there is a PREMIUM like intermediary) to an engineering value to be used by the

control logic. The basic software performs the Analog to Digital Conversion (ADC). This object

allows:

� To convert the measured value by the equipment into a value usable by the command logic

thanks to a linear interpolation.

� To refresh the filtered value if its variation is larger than a dead band. This value can be

called adapted input value (Where adapted refers to the command logic).

� To manage the operation mode (two here : forced or automatic).

� To update a status including:

The adapted input value adapted used by the other objects.

The input value requested by the operator.

The adapted input value adapted measured by the equipment.

The error or simulation warnings.

FIG 7 : Analog Input Object

Process Inputs

Manual

Requests Status

Parameters

Auto Requests

Page 14: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 14 of 72

Process Inputs

Name Type Meaning Description

HFPos INT* Hardware Feedback

Pos/Value

Actual position/value information from a hardware

sensor

IoError BOOL Input/Output Error Error in any Input channel of the object

IoSimu BOOL Input/Output Simulated Simulation by the operator of any Input channel of

the object

Auto Requests

AuInhFMo BOOL Auto Inhibit forced mode The control logic blocks the Force Mode

Manual Request

Name Type Meaning Description

MAuMoR

Manreg01 BIT0

BOOL Manual Auto Mode

Request

The operator request the Auto Mode (no

simulation)

MFoMoR

Manreg01 BIT2

BOOL Manual Forced Mode

Request

The operator requests the Forced Mode

to simulate the input position/value

NewMR

Manreg01 BIT 6

BOOL New Manual Request The operator requests an acquisition of

MPosR

MPosR REAL Manual Value/Position

Request

A simulated value/position is set by the

operator

Parameters

*: In the AIC case the Type is REAL

Name Type Meaning Description

PMaxRan REAL Parameter Maximum

Range

Engineering value of the input

PMinRan REAL Parameter Minimum

Range

Engineering value of the input

PMaxSca INT* Parameter Maximum

Scale

Input card PLC periphery value (i.e.: 27357)

PMinSca INT* Parameter Minimum

Scale

Input card PLC periphery value (i.e.: -27357)

PDeBand REAL Parameter Dead Band Value of the dead zone, % of range (no refresh of

value)

Manreg01

Page 15: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 15 of 72

Status Information

Name Type Meaning Description

PosSt REAL Value/Position Status Current value sent to higher level

objects or program

MPosRSt REAL Manual Value/Position

Status

Current value request by the

operator

HFSt REAL Hardware Feedback

Status

Current value coming from the

sensor

AuMost

STSREG01 BIT 2

BOOL Auto Mode Status Presence of Auto Mode

FoMoSt

STSREG01 BIT 4

BOOL Forced Mode Status Presence of Forced Mode

IoErrorW

STSREG01 BIT6

BOOL Input/OutputErrorWarning Error in any Input of the object

IoSimuW

STSREG01 BIT 7

BOOL Input/Output Simulated

Warning

Simulation by the operator of any

Input of the object

FoDiPro

STSREG01 BIT 8

BOOL Forced Discrepancy

Process

Flag to compare the Manual Request

and the Auto Request

AuInhFMo

STSREG01 BIT 13

BOOL Auto Inhibit force mode The control logic blocks the Force

Mode

Particularity

• Interlock Logic

There is no Interlock Logic for the Input object.

• Auto Requests

There are no requests coming from the control logic in higher objects or higher-level

programs.

• Manual Requests

Note: In Auto mode, the Manual Position/Value Request follows the Hardware Feedback

Position/Value.

• Output Orders

The Input object does not send orders to the process.

Stsreg01

Page 16: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 16 of 72

Operation principle

Update of the status according

to the operation mode. The

FoDiPro variable permit to know

if the manual request and the

process request are different.

With this control, the operator

can anticipate the consequence

of mode change:

Manual to auto with a variation

of Post

Only a certain variation of Autoi

allows to update this internal variable

An operation is effected in

order to obtain a value of

Hfpos on a single scale

(Autoi)

MODE MANAGER

SURVEILLANCE

PI: ADQUISITION

PI: CONVERSION

PI: REFRESHMENT

PI: MODE_EVALUATION

Taking into account of the

manual request

Update of the error and

simulation warnings

Update of the operation

INPUT MANAGER Identification and configuration of the variables

Page 17: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 17 of 72

Data Processing

INPUT MANAGER

Read Inputs - ManReg01 MODE MANAGER AuMost: = FALSE FoMoSt: = TRUE

AuMost: = TRUE FoMoSt: = FALSE

AuInhFoMo = FALSE

MFoMoR

MAuMR

Forced Mode

Auto Mode

PMaxSca PMinSca

PMinRan

PMaxRan

AutoI: = ((PMaxRan-PMinRan) / (PmaxSca-PMinSca)) * (HFPos-PMinSca) + PMinRan PI: CONVERSION

>= PDeBand < PDeBand

AutoI: = AutoOld

AutoOld: = AutoI

ABS (AutoI - AutoOld) * 100.0 / ABS (PMaxRan-PMinRan)

HFSt

PI: REFRESHMENT

(ABS (AutoI - MPosRSt) /ABS (PMaxRan-PMinRan))

FoMoSt AuMoSt

PosSt = MPosRSt

FoDiPro

FoDiPro = TRUE

FoDiPro = FALSE

> 0.01 <= 0.01

FoDiPro = FALSE

PosSt = MPosRSt : =AutoI

STATUS REGISTER

PI: MODE_EVALUATION

SURVEILLANCE

IoErrorW: = IoError IoSimuW: = IoSimu

NewMR

MPosRSt: = MPosR

Else

PI: ADQUISITION

Page 18: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 18 of 72

2.1.3 DIGITAL OUTPUT OBJECTS

The Output objects are used to connect Field objects in the control system with their

associated process equipment (actuators).

This class contains 2 objects types: Analog Output and Digital output.

In the case of outputs TOR, the conversion isn’t necessary. One is satisfied to manage the

warnings, the modes and to update the command of output and the status.

FIG8 : Digital Output

Auto Requests

Name Type Meaning Description

AuInhFMo BOOL Auto Inhibit forced mode The control logic blocks the Force Mode

AuPosR BOOL Auto Value/Position

Request

The control logic requests specific value/

position

Process Inputs

Name Type Meaning Description

IoError BOOL Input/Output Error Error in any Input channel of the object

IoSimu BOOL Input/Output

Simulated

Simulation by the operator of any Input channel of the

object

Manual Request

Status

Process Inputs

Output Order

Auto Request

Page 19: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 19 of 72

Manual Requests

Name Type Meaning Description

MAuMoR

Manreg01 BIT 0

BOOL Manual Auto Mode

Request

The operator request the Auto Mode (no

simulation)

MFoMoR

Manreg01 BIT 2

BOOL Manual Forced Mode

Request

The operator requests the Forced Mode to

simulate the input position/value

MOnR

Manreg01 BIT 4

BOOL Manual On Request The operator requests a simulated on

position

MOffR

Manreg01 BIT 5

BOOL Manual Off Request A simulated Off position is set by the

operator

Output Orders

Name Type Meaning Description

OutOV BOOL Output Order Value Order sent to the hardware actuator

Status information

Name Type Meaning Description

PosSt

stsreg01 BIT 0

BOOL Value/Position Status Current value sent to higher level

objects or program

MPosRSt

stsreg01 BIT 15

BOOL Manual Value/Position

Status

Current value request by the operator

AuPosRSt

stsreg01 BIT 14

BOOL Auto Value/Position

Request

Current value requested from higher

object or program

AuMost

stsreg01 BIT 2

BOOL Auto Mode Status Presence of Auto Mode

FoMoSt

stsreg01 BIT 4

BOOL Forced Mode Status Presence of Forced Mode

IoErrorW

stsreg01 BIT 6

BOOL Input/Output Error

Warning

Error in any Input of the object

IoSimuW

stsreg01 BIT 7

BOOL Input/Output Simulated

Warning

Simulation by the operator of any Input

of the object

FoDiAu

stsreg01 BIT 8

BOOL Forced Discrepancy Auto Flag to compare the Manual Request

and the Auto Request

AuInhFMo

stsreg01 BIT 13

BOOL Auto Inhibit force mode The control logic blocks the Force Mode

ManReg01

Stsreg01

Page 20: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 20 of 72

Particularity

• Interlock Logic

There is no Interlock Logic for the Output object.

• Manual Requests

Note: In Auto mode, the Manual Value/Position Request follows the Auto Value/Position

Request.

• Output Orders

The order coming from an Output object is sent to process equipment (actuator).

Operation principle

Update of the status according

to the operation mode. The

FoDiAu variable allows to know

if the manual request and the

process request are different.

With this control, the operator

can anticipate the consequence

of mode change:

Forced to auto with a variation

of Post

MODE MANAGER

SURVEILLANCE

PI: MODE_EVALUATION

Taking into account the manual

request: ON or OFF and the

auto value

Update of the error and

simulation warnings

Update of the operation mode

INPUT MANAGER Identification and configuration of the variables

RM: FORCED

Taking into account of the

automatic request RM: AUTOMATIC

Page 21: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 21 of 72

Data Processing

INPUT MANAGER

Read Inputs - ManReg01

MODE MANAGER

AuMost: = FALSE FoMoSt: = TRUE

AuMost: = TRUE FoMoSt: = FALSE

AuInFoMo = FALSE

MFoMoR

MAuMR

Forced Mode

Auto Mode

MOffR MOnR

MPosRSt = TRUE

MPosRSt = FALSE

RM: FORCED

SURVEILLANCE

IoErrorW: = IoError IoSimuW: = IoSimu

MPosRSt

MPosRSt XOR AuPosRSt

FoMoSt AuMoSt

OutOV: = MPosRSt

FoDiAu

FoDiAu = TRUE

FoDiAu = FALSE

FoDiAu = FALSE

OutOV = MPosRSt

: =AuPosRSt

STATUS REGISTER

RM: MODE_EVALUATION

AuPosRSt = AuPosR

RM: AUTOMATIC

PosSt: = OutOV

Page 22: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 22 of 72

2.1.4 ANALOG OUTPUT OBJECTS

The Output objects are used to connect Field objects in the control system with their

associated process equipment (actuators).

This class contains 2 objects types: Analog input and Digital output.

In the case of the analog outputs, The Output object must guarantee the conversion of the

control system orders to the field actuators. The basic software performs the Digital to Analog

Conversion (DAC).this object allows:

� To convert the values of output defined by the command logic into a value usable by the

equipment thanks to linear interpolation.

� To manage the procedures (two here, forced or automatic).

� To update the command of output sent to the actuator.

� To update a status including/understanding:

� the output value used by the other objects.

� the output value requested by the operator.

� the output value defined by the command logic.

� The error or simulation warnings.

FIGURE 9 : Analog Output

Manual

Request

s

Process Inputs

Status

Parameters

Output Order

Auto Request

Auto Request

Page 23: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 23 of 72

Auto Requests

Name Type Meaning Description

AuPosR REAL Auto Value/Position

Request

The control logic requests specific value/

position

AuInhFMo BOOL Auto Inhibit forced mode The control logic blocks the Force Mode

Process Inputs

Name Type Meaning Description

IoError BOOL Input/Output Error Error in any Input channel of the object

IoSimu BOOL Input/Output Simulated Simulation by the operator of any Input

channel of the object

Manual Requests

Name Type Meaning Description

MAuMoR

Manreg01 BIT 0

BOOL Manual Auto Mode

Request

The operator requests the Auto Mode (no

simulation)

MFoMoR

Manreg01 BIT 2

BOOL Manual Forced Mode

Request

The operator requests the Forced Mode to

simulate the input position/value

NewMR

Manreg01 BIT 6

BOOL New Manual Request The operator requests an acquisition of

MPosR

MPosR REAL Manual

Value/Position

Request

A simulated value/position is set by the

operator

Parameters

Output orders

Name Type Meaning Description

OutOV INT* Output Order Value Order sent to the hardware actuator

*In the case of an AOC the type is REAL.

Name Type Meaning Description

PMaxRan REAL Parameter Maximum

Range

Engineering value of the Output

PMinRan REAL Parameter Minimum

Range

Engineering value of the Output

PMaxSca INT* Parameter Maximum

Scale

PLC value of the Output card

PMinSca INT* Parameter Minimum Scale PLC value of the output card

ManReg01

Page 24: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 24 of 72

Status information

Name Type Meaning Description

PosSt REAL Value/Position Status Current value sent to higher level

objects or program

MPosRSt REAL Manual Value/Position

Status

Current value request by the operator

AuPosRSt REAL Auto Value/Position

Request

Current value requested from higher

object or program

AuMost

stsreg01 BIT 2

BOOL Auto Mode Status Presence of Auto Mode

FoMoSt

stsreg01 BIT 4

BOOL Forced Mode Status Presence of Forced Mode

IoErrorW

stsreg01 BIT 6

BOOL Input/Output Error

Warning

Error in any Input of the object

IoSimuW

stsreg01 BIT 7

BOOL Input/Output Simulated

Warning

Simulation by the operator of any Input

of the object

FoDiAu

stsreg01 BIT 8

BOOL Forced Discrepancy Auto Flag to compare the Manual Request and

the Auto Request

AuInhFMo

stsreg01 BIT 13

BOOL Auto Inhibit force mode The control logic blocks the Force Mode

Particularity

• Interlock Logic

There is no Interlock Logic for the Output object.

• Manual Requests

Note: In Auto mode, the Manual Value/Position Request follows the Auto Value/Position

Request.

• Output Orders

The order coming out from an Output object is sent to process equipment (actuator).

StsReg01

Page 25: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 25 of 72

Operation principle

Update of the status according

to the operation mode. The

FoDiAu variable permit to know

if the manual request and the

process request are different.

With this control, the operator

can anticipate the consequence

of mode change:

Manual to auto with a variation

of Post

Taking into account of the

automatic request

MODE MANAGER

SURVEILLANCE

RM: FORCED

RM: AUTOMATIC

OUTPUT MANAGER

RM: MODE_EVALUATION

Taking into account of the

manual request

Update of the error and

simulation warnings

Update of the operation mode

INPUT MANAGER Identification and

configuration of the

variables

An operation is performed in

order to obtain a value of

Post on a correct scale

(OutOV)

Page 26: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 26 of 72

Data Processing

INPUT MANAGER

Read Inputs - ManReg01

SURVEILLANCE

IoErrorW: = IoError IoSimuW: = IoSimu

NewMR

MPosRSt: = MPosR

Else

RM: FORCED

AuPosRSt = AuPosR

RM: AUTOMATIC

ABS (AuPosRSt-MPosRSt)/ ABS (PMaxSca-PMinSca)

FoMoSt AuMoSt

PosSt = MPosRSt

FoDiAu

FoDiAu = TRUE

FoDiAu = FALSE

> 0.01 <= 0.01

FoDiAu = FALSE

PosSt = MPosRSt

=AuPosRSt

STATUS REGISTER

RM: MODE_EVALUATION

OutOV: = REAL_TO_INT

((PMaxSca-PMinSca) / (PMaxRan - PMinRan))

OUTPUT MANAGER

MODE MANAGER

AuMost: = FALSE FoMoSt: = TRUE

AuMost: = TRUE FoMoSt: = FALSE

AuInhFoMo =FALSE

MFoMoR

MAuMR

Forced Mode

Auto Mode

Page 27: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 27 of 72

2.2 FIELD OBJECTS

These objects allow the operator to go beyond the channel concept. In a process system we do not manipulate DO/AO but valves, motors, pumps, heaters for these different components an internal logic adapted to their behavior must be set. But despite the apparent diversity we can draw a common logical model.

The internal logic is split into two parts, namely the Object standard logic and the Interlock logic.

The Interlock logic links the object to its resources, its appropriate status registers and, if applicable, to the safety chains components. The purpose of this logic is to integrate the object into its physical environment. This logic is specific to each object and shall be programmed with the User Application Software.

For each class of Field object a specific Object standard logic is defined. This logic integrates some specific functions such as alarm generation, ramping, interlocking, and objects manipulation from the OWS. This logic is integrated into the UNICOS Standard Object Library.

FIG 10 : General organization of Field Objects with their environment

Output Device

Auto Request AO/DO

Informations to

other objects or to operator via Scada

Operator via OWS

Programmer via

EWS

Control Logic Input devices Status

Or other field devices

Field Device

Standard Field Device (FB/DFB)

Manual Requests

Parameters

Auto Requests

Order Status

Interlock Logic

(FC/section)

Process Inputs

Page 28: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 28 of 72

2.2.1 LOCAL OBJECTS

These objects represent equipment driven from the process field only (such as hand valves,

manual pumps, etc.). They are represented in the supervision system and their status is

consistent with the other objects classes.

The LOCAL object is associated with a piece of equipment (actuator). This makes it possible to

represent the equipment in the system of supervision and to return its status in a way that is

consistent with the other objects.

This object allows:

� To determine if an object is on/open or off/closed according to its characteristics (race end

sensor).

� To manage the interlocks.

� To update the error or simulation warnings and position as well as the alarms not recognized

by the operator.

FIG11 : Local Object

Process Inputs

Name Type Meaning Description HFOn BOOL Hardware Feedback

On/Open

Actual ‘On/Open’ information coming from a

digital sensor (I/O object)

HFOff BOOL Hardware Feedback

Off/Closed

Actual ‘Off/Closed’ information coming from

a digital sensor (I/O object)

IoError BOOL Input/Output Simulated Error in any I/O channel of the object

IoSimu BOOL Input/Output Error Simulation by the operator of any I/O

channel of the object

Process Inputs

Manual Request

Status

Parameters

Auto Requests

Page 29: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 29 of 72

Auto Requests

Name Type Meaning Description

AuAlAck BOOL Auto Alarm Acknowledge The control logic acknowledges one or

several alarms

Manual Requests

Name Type Meaning Description

MAlAck

Manreg01 BIT 7

BOOL Manual Alarm

Acknowledge

The operator acknowledges one or

several alarms

Parameters

Name Type Meaning Description

PHFOn BOOL Parameter Hardware

Feedback On/Open

Activation of the hardware ‘On/Open’

feedback sensor

PHFOff BOOL Parameter Hardware

Feedback Off/Closed

Activation of the hardware ‘Off/Closed’

feedback sensor

PosAlWE BOOL Position Alarm Warning

Enable

The Position Alarm Warning is activated

Status Information

Name Type Meaning Description

OnSt

stsreg01 BIT0

BOOL On/Open Status The object is ‘On/Open’

OffSt

stsreg01 BIT1

BOOL Off/Closed Status The object is ‘Off/Closed’

IoErrorW

stsreg01 BIT6

BOOL Input/Output Error

Warning

Error in any I/O channel of the object

IoSimuW

stsreg01 BIT7

BOOL Input/Output

Simulated Warning

Simulation by the operator of any I/O

channel of the object

PosAlWE

stsreg01 BIT8

BOOL Position Alarm

Warning Enable

Enable the position alarm Warning signal

PosAlW

stsreg01 BIT9

BOOL Position Alarm

Warning

disagreement between the activity state

and the output order

AlUnAck

stsreg01 BIT10

BOOL Alarm

Unacknowledged

Alarm not yet acknowledged

PHFOn

stsreg01 BIT14

BOOL Parameter Hardware

Feedback On/Open

Activation of the hardware ‘On/Open’

feedback sensor

PHFOff

stsreg01 BIT 15

BOOL Parameter Hardware

Feedback Off/Closed

Activation of the hardware ‘Off/Closed’

feedback sensor

StsReg01

ManReg01

Page 30: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 30 of 72

Particularity

• Process Outputs

There are no output orders for Local objects.

Data Processing

PROCESS INPUT:

AlUnAck 1

R1: MAlAck or AuAlAck 0

IoErrorW: = IoError IoSimuW: = IoSimu

INPUT MANAGER

Read Inputs - ManReg01

OffSt OnSt

LM: On/Off St

PHFOn & HFOn

PHFOff & HFOff

SURVEILLANCE

STATUS REGISTER

Page 31: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 31 of 72

2.2.2 ON/OFF OBJECTS

These objects represent process equipment like pumps, on/off valves, etc. driven by a digital

signal.

ON/OFF Object commands the equipment (actuator) with a binary digit (valves, pumps…).

It has the following characteristics:

� Two states are possible: ON (Open for valves) or OFF (close for valves).

� There is a position called fail-safe position, it is a configuration in which the equipment is in

its safe position.

� In certain cases, the equipment has an oscillatory operation, it oscillates between the position

One and Off of definite period.

This object also allows:

� To manage the modes (here, four, automatic, forced, manual or local drive).

� To manage the interlocks.

� To manage oscillatory operation.

� To update the output order sent to the actuator.

� To update a status including:

� its states On or Off.

� the position required by the control logic.

� the position required by the operator.

� The output sent to the actuator.

� Operation mode.

� I/O warnings (error and simulation).

� a position warning between the state of the actuator and output order.

� a request warning which, in manual or forced mode, detects a difference between the

request of control logic and the position of the actuator.

� Interlocks.

� the alarms not taken into account.

Page 32: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 32 of 72

FIG12 : ON OFF Object

Process Inputs

Name Type Meaning Description

HFOn BOOL Hardware Feedback

On/Open

Actual ‘On/Open’ information coming from a

digital sensor (I/O object)

HFOff BOOL Hardware Feedback

Off/Closed

Actual ‘Off/Closed’ information coming from a

digital sensor (I/O object)

HDOut BOOL Hardware Digital Output Feedback about the status of the digital output

(I/O object) associated to the object.

Process Inputs

Manual Requests

Interlock Logic

Auto Requests

Parameters

Output Order

Status

Status

Process

Inputs

AlB

AlBW

Page 33: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 33 of 72

HFLd BOOL Hardware Feedback Local

Drive

Feedback from the digital sensor/switch (I/O

object) that actives the Local Drive of the

object. It sets the Local Drive Mode.

HOnR BOOL Hardware On Request A digital sensor orders to the object to ‘switch

On/Open’

HOffR BOOL Hardware Off Request A digital sensor orders to the object to ‘switch

Off/Close’

IoError BOOL Input/Output Simulated Error in any I/O channel of the object

IoSimu BOOL Input/Output Error Simulation by the operator of any I/O channel

of the object

AlB BOOL Alarm blocked A dependent Alarm is blocked by the user

Interlock Logic

StartI BOOL Start Interlock Presence of a start interlock: all the requests

are blocked when On

StopI BOOL Stop Interlock Presence of a stop interlock: safe

position/value request when On

Auto Requests

Name Type Meaning Description

AuOnR BOOL Auto On Request The control logic requests the object to ‘switch

On/Open’

AuOffR BOOL Auto Off Request The control logic requests the object to ‘switch

Off/Close’

AuAuMoR BOOL Auto Auto Mode Request The control logic requests the Auto Mode

AuInhMMo BOOL Auto Inhibit Manual Mode The control logic blocks the Manual Mode

AuInhFMo BOOL Auto Inhibit Force Mode The control logic blocks the Force Mode

AuAlAck BOOL Auto Alarm Acknowledge The control logic acknowledges one or several

alarms

Manual Requests

Name Type Meaning Description

MOnR

Manreg01 BIT4

BOOL Manual On Request The operator requests the object ‘switch

On/Open’

MOffR

Manreg01 BIT5

BOOL Manual Off Request The operator requests the object to ‘switch

Off/Close’

MMMoR

Manreg01 BIT1

BOOL Manual Manual Mode

Request

The operator requests the Manual Mode

MAuMoR

Manreg01 BIT0

BOOL Manual Auto Mode

Request

The operator requests the Auto Mode

MFoMoR

Manreg01 BIT2

BOOL Manual Forced Mode

Request

The operator requests the Forced Mode

MAlAck

Manreg01 BIT15

BOOL Manual Alarm

Acknowledge

The operator acknowledges one or several

alarms

ManReg01

Page 34: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 34 of 72

Parameters

Name Type Meaning Description

PFsPosOn

POnOff BIT0

BOOL Parameter Fail-Safe

Position On/Open

When On the Fail-Safe position is

‘On/Open’

PHFOn

POnOff BIT1

BOOL Parameter Hardware

Feedback On/Open

Activation of the hardware ‘On/Open’

feedback sensor

PHFOff

POnOff BIT2

BOOL Parameter Hardware

Feedback Off/Closed

Activation of the hardware ‘Off/Closed’

feedback sensor

PPulse

POnOff BIT3

BOOL Parameter Pulse Activation of the Pulse object functionality

PHLdrive

POnOff BIT4

BOOL Parameter Hardware

Local Drive

Activation of the hardware Local Drive

feedback sensor (I/O object)

PHLDCmd

POnOff BIT5

BOOL Parameter Local Drive

command

The Local Drive command is allowed

PHDOut

POnOff BIT6

BOOL Parameter Hardware

Digital Output

Activation Feedback about the status of the

digital output (I/O object) associated to the

object.

PAlTiDe TIME Parameter Alarm Time

Delay

Alarm Time delay

PPulseLe TIME Parameter Pulse Length Duration of the pulse when the

functionality Pulse object is activated

Process Output

OutOV BOOL Output Order Value Digital Output Order sent to an Output

object

Status Information

Name Type Meaning Description

OnSt

stsreg01 BIT0

BOOL On/Open Status The object is ‘On/Open’

OffSt

stsreg01 BIT1

BOOL Off/Closed Status The object is ‘Off/Closed’

AuMoSt

stsreg01 BIT 2

BOOL Auto Mode Status The object is in Auto Mode

MMoSt

stsreg01 BIT3

BOOL Manual Mode Status The object is in Manual Mode

LdSt

stsreg01 BIT5

BOOL Local Drive Status The object is driven locally, Local Drive

Mode

FoMoSt

stsreg01 BIT4

BOOL Forced Mode Status The object is in Forced Mode

AuInhMMo

stsreg01 BIT15

BOOL Auto inhibit Manual

Mode

The control logic blocks the Manual Mode

AuInhFMo

stsreg01 BIT 13

BOOL Auto inhibit Forced

Mode

The control logic blocks the Force Mode

IoErrorW BOOL Input/Output Error Error in any I/O channel of the object

POnOff

Stsreg01

Page 35: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 35 of 72

stsreg01 BIT6 Warning

IoSimuW

stsreg01 BIT7

BOOL Input/Output

Simulated Warning

Simulation by the operator of any I/O

channel of the object

AuMRW

stsreg01 BIT8

BOOL Auto Manual Request

Warning

Auto and Manual requests Discrepancy

when Manual/Forced mode active

PosAlW

stsreg01 BIT9

BOOL Position Alarm Warning Discrepancy between the activity state and

the output order

StartISt

stsreg01 BIT10

BOOL Start Interlock Status Presence of a start interlock: all the

requests are blocked when On

StopISt

stsreg01 BIT11

BOOL Stop Interlock Status Presence of a stop interlock: safe position

requested when On

AlUnAck

stsreg01 BIT12

BOOL Alarm Unacknowledged Alarm not yet acknowledged

PFsPosOn

stsreg01 BIT14

BOOL Parameter Fail-Safe

Position On/Open

When On the Fail-Safe position is

‘On/Open’

AuOnRSt

stsreg02 BIT1

BOOL Auto On/Open Request Current value of the Auto On/Open

Request

AuOffRSt

stsreg02 BIT3

BOOL Auto Off/Closed

Request

Current value of the Auto Off/Closed

Request

MOnRSt

stsreg02 BIT2

BOOL Manual On/Open

Request

Current value of the Manual On/Open

Request

MOffRSt

stsreg02 BIT4

BOOL Manual Off/Closed

Request

Current value of the Manual Off/Closed

Request

HOnRSt

stsreg02 BIT5

BOOL Hardware On Request A digital sensor orders to the object to

‘switch On/Open’

HOffRSt

stsreg02 BIT6

BOOL Hardware Off Request A digital sensor orders to the object to

‘switch Off/Close’

OutOVSt

stsreg02 BIT0

BOOL Output Order Value set The signal OutOV is set to TRUE

PHFOn

stsreg02 BIT7

BOOL Parameter Hardware

Feedback On/Open

Activation of the hardware ‘On/Open’

feedback sensor

PHFOff

stsreg02 BIT8

BOOL Parameter Hardware

Feedback Off/Closed

Activation of the hardware ‘Off/Closed’

feedback sensor

PPulse

stsreg02 BIT9

BOOL Parameter Pulse Activation of the Pulse object functionality

PHLdrive

stsreg02 BIT10

BOOL Parameter Hardware

Local Drive

Activation of the hardware Local Drive

feedback sensor (I/O object)

PLDCmd

stsreg02 BIT11

BOOL Parameter Local Drive

Command allowed

The Local Drive command is allowed

PHDOut

stsreg02 BIT12

BOOL Parameter Hardware

Digital Output

Activation Feedback about the status of

the digital output (I/O object) associated

with the object.

AlBW

stsreg02 BIT13

BOOL Alarm Blocked A dependent Alarm is blocked by the user

Stsrg02

Page 36: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 36 of 72

Particularity

• Activity state

For On/Off objects other than valves, the two possible active states are On and Off. For On/Off

valves, the two possible statuses are Open and Closed.

• Fail-Safe Position

For On/Off objects, the fail-safe position must be specified. A safe state is reached in case of

failure of the equipment (or failure of any of their auxiliary utilities connected with the

equipment). It is On/Open if and when the Parameter Fail-Safe Position On/Open is On

(typically for normally open valves), otherwise it is Off/Closed (typical for normally closed

valves).

• Pulse Object

There is a special object available within the On/Off objects family: In activating the Parameter

Pulse, the Pulse object is created. It is used for generating pulses. The duration of the pulse is

specified with the Parameter Pulse Length.

• Output Orders

The Input object does not send orders to the process.

• Process Outputs

The On/Off object sends its orders to an Output object (digital), this one is associated to an

actuator.

Program Organisation

• INTERFACE

This class organizes the execution flow of the Input Object and provides a smooth integration

in the target system (certain PLC oriented features).

• INPUT_MANAGER

This Class evaluates the ON/Off Object inputs.

• REQUEST_MANAGER

This Class calculates the different requests (effective, manual and automatic requests).

• PULSE_MANAGER

This class generates a pulse of given frequency. To generate the pulse, two timers are used.

Timers flip alternatively in order to simulate the generation of the pulse.

• LIMIT_MANAGER

This class calculates at which of the physical/logical limits (if reached) is the On/Off Object and

eventually if the On/Off Object is in its fail-safe position

Page 37: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 37 of 72

• SURVEILLANCE

This Class checks the ON/OFF Object for several warnings.

• POSITION_WATCHDOG

The Position Alarm Warning is computed within this class. Note that when the discrepancy

between the real object status and the output order (a discrepancy which has been previously

calculated in the SURVEILLANCE_MANAGER) persists longer than a given time delay, fixed by

the Parameter Alarm Time Delay (PAlTiDel), this particular warning is activated.

• OUTPUT_MANAGER

This Class does effectively calculate the output of the ON/OFF Object. This class, within the

framework of the ON/OFF object, identifies whether the ON/OFF OBJECT is being driven by the

Operator, by the Control Logic (of a higher hierarchical level) or by an object of lower

hierarchical level corresponding to a manual field action. Only one mode can be on at a given

time, therefore the setting of one of the operation modes automatically resets the other

modes. These modes are:

- Forced Mode

- Auto Mode

- Manual Mode

- Coupled Mode (equivalent – from the functional point of view - to Local Drive)

• OUTPUT_REGISTER

This class collects the information for the output register. The presence of this class within the

ON/OFF Object is more a formality.

• STATUS_REGISTER

This class collects the status information from the different classes of the ON/OFF Object and

assigns these collected attributes to the status register, which is a structure in charge of

managing the information in a compact and packed format.

• BI-STABLE

It is a support structure/class that models the behavior of a “Bi-stable”. A number of cases of

this class will be created in order to model:

- warnings

- states (special conditions affecting the ON/OFF Object mode).

Page 38: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 38 of 72

Mode Manager

Hardware Feedback Local Drive

Hardware Feedback Local Drive

Local Drive

Mode

Auto Inhibit Manual Mode

Manual Manual Mode Request

Auto Inhibit Manual Mode

&

Manual Auto Mode Request

Auto Auto Mode Request

Manual Forced Mode Request AuMost: = FALSE

MMoSt: = FALSE FoMoSt: = TRUE

AuMost: = FALSE MMoSt: = TRUE

FoMoSt: = FALSE

Manual Forced Mode Request

Manual Manual Mode Request

Manual Mode

Forced Mode

AuMost: = TRUE MMoSt: = FALSE FoMoSt: = FALSE

Auto Mode Default Mode

: Control by higher object

: Control by operator

: Local Control

Software Command

Hardware Command

Page 39: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 39 of 72

Operation Principle

When discrepancy between the

real object status and the

output order persists longer

than a given time delay, fixed

by the Parameter Alarm Time

Delay (PAlTiDe), this particular warning is activated.

Update of the

Manual mode status

This class

calculates at which

of the

physical/logical

limits is the On/Off

Object.

INPUT MANAGER

SURVEILLANCE

RM: INTERLOCKS

POSITION WARNING

OUTPUT REGISTER

STATUS REGISTER

Update of OutOV, depending

of PfsPosOn and OutOV

This Class checks the ON/OFF

Object for several warnings.

Update of the operation

mode

LM: On/Off St LM: FAIL-SAFE

MODE MANAGER

PULSE M

RM: LOCAL DRIVE

RM: AUTO MODE RM: MANUAL MODE

This class collects the status

information from the different

classes of the ON/OFF Object

and assigns these collected

attributes to the status register,

which is a structure in charge of

managing the information in a compact and packed format.

This Class evaluates the ON/Off Object inputs.

This class controls if

the On/Off Object is

in its fail-safe

position

Update of the

Auto mode

status

Update of the

Local mode

status

Update of

interlocks

1 3

2 This Class calculates the output

of the ON/OFF Object in

generating:

- A pulse of a given frequency.

To generate the pulse, one timer

is used. OR

- A status depending of the

current operation mode (with priority).

Page 40: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 40 of 72

2.2.3 ANALOG OBJECTS

These objects represent process equipment driven by an analog signal like control valves,

control heaters, etc…

Analog objects command equipment (actuator) with an analog signal (valves, heaters…).

They havethe following characteristics:

� Two states, On/Open and Off/Closed, are possible according to the limits of operation.

� There exists a position called fail-safe position, where the equipment is in a safeposition..

� This type of object, in certain cases, can be controlled with a binary digit (On/Off).

� the position change is limited in "speed". This speed depends on the procedure.

� In manual or forced mode, the operator can force a position, increment or decrement the

existing value or put the object directly On or Off.

this object Also allows:

� To manage the operation mode (here, four, automatic, forced, manual or ordered locally

(local drive)).

� To limit the "speed" of position change.

� To manage the interlocks.

� Update the output order sent to the actuator that it is binary or analog.

� To update a status including:

� its states on or Off.

� the position required by the control logic.

� the position required by the operator.

� The output sent to the actuator.

� Operation mode.

� I/O warnings (error and simulation).

� position warning between the activity of actuator and output order.

� request warning which, in manual or forced mode, detects a difference between the

request of control logic and that of actuator.

� Interlocks.

� alarms not taken into account.

Page 41: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 41 of 72

FIG 13: ANALOG Object

Process Inputs

Manual Request

Interlock Logic

Auto

Requests

Parameters

Status

Manual Request

Output Order

Status

AlB

AlBW

Page 42: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 42 of 72

Process Inputs

Name Type Meaning Description

HFOn BOOL Hardware Feedback

On/Open

Actual ‘On/Open’ information coming from a

digital sensor (I/O object)

HFOff BOOL Hardware Feedback

Off/Closed

Actual ‘Off/Closed’ information coming from a

digital sensor (I/O object)

HFPos REAL Hardware Feedback Position Actual position/value information coming from

an Analog sensor (I/O object)

HAOut REAL Hardware Analog Output Feedback about the value/status of the analog

output (I/O object) associated to the object

HFLd BOOL Hardware Feedback Local

Drive

Feedback from the digital sensor/switch (I/O

object) that actives the Local Drive of the

object. It sets the Local drive Mode

IoError BOOL Input/Output Error Error in any I/O channel of the object

IoSimu BOOL Input/Output Simulated Simulation by the operator of any I/O channel

of the object

AlB BOOL Alarm blocked A dependent Alarm is blocked by the user

Interlock Logic

Name Type Meaning Description

StartI BOOL Start Interlock Presence of a start interlock: all the requests

are blocked when On

StopI BOOL Stop Interlock Presence of a stop interlock: safe

position/value request when On

Auto Requests

Name Type Meaning Description

AuOnR BOOL Auto On Request The control logic requests the object to

‘switch On/Open’

AuOffR BOOL Auto Off Request The control logic requests the object to

‘switch Off/Close’

AuPosR REAL Auto Position Request The control logic requests the object to be set

at a specific position/value

AuAuMoR BOOL Auto Auto Mode Request The control logic requests the Auto Mode

AuInhMMo BOOL Auto Inhibit Manual Mode The control logic blocks the Manual Mode

AuInhFMo BOOL Auto Inhibit Force Mode The control logic blocks the Force Mode

AuInSpd REAL Auto Increase Speed The control logic sets a speed for decreasing

the position/value (units/s)

AuDeSpd REAL Auto Decrease Speed The control logic sets a speed for increasing

the position/value (units/s)

AuAlAck BOOL Auto Alarm Acknowledge The control Logic requests the acknowledge

of the alarm

Page 43: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 43 of 72

Manual Requests

Name Type Meaning Description

MOnR

Manreg01 BIT4

BOOL Manual On Request The operator requests the object ‘switch

On/Open’

MOffR

Manreg01 BIT5

BOOL Manual Off Request The operator requests the object to

‘switch Off/Close’

MSpInR

Manreg01 BIT7

BOOL Manual Step Increase

Request

The operator requests to increase the

position by one basic step

MSpDeR

Manreg01 BIT8

BOOL Manual Step Decrease

Request

The operator requests to decrease the

position by one basic step

MMMoR

Manreg01 BIT1

BOOL Manual Manual Mode

Request

The operator requests the Manual Mode

MAuMoR

Manreg01 BIT0

BOOL Manual Auto Mode

Request

The operator requests the Auto Mode

MFoMoR

Manreg01 BIT2

BOOL Manual Forced Mode

Request

The operator requests the Forced Mode

MAlAckR

Manreg01

BIT15

BOOL Manual Alarm

Acknowledge

The operator acknowledges one or several

alarms

MnewMR

Manreg01 BIT 6

BOOL Manual New Manual

position Request

The operator requests an acquisition of

MPosR

MPosR REAL Manual Position Request The operator requests the object to be set

at a specific position/value

Parameters

Name Type Meaning Description

PfsPosOn

PAnalog BIT0

BOOL Parameter Fail-Safe

Position On/Open

When On the Fail-Safe position is

‘On/Open’

PHFOn

PAnalog BIT1

BOOL Parameter Hardware

Feedback On/Open

Activation of the hardware ‘On/Open’

feedback sensor

PHFOff

PAnalog BIT2

BOOL Parameter Hardware

Feedback Off/Closed

Activation of the hardware ‘Off/Closed’

feedback sensor

PHFPos

PAnalog BIT3

BOOL Parameter Hardware

Feedback Position

Activation of the hardware ‘Position/value’

feedback sensor

PHLdrive

PAnalog BIT4

BOOL Parameter Hardware

Local Drive

Activation of the hardware Local Drive

feedback sensor

PHAOut

PAnalog BIT5

BOOL Parameter Hardware

Analog Output

Activation Feedback about the status of

the Analog output (I/O object) associated

to the object.

PAlTiDe TIME Parameter Alarm Time

Delay

Time delay to mask an alarm

PMinRan REAL Parameter Min Range Minimum output of the object

PMaxRan REAL Parameter Max Range Maximum output of the object

ManReg01

PAnalog

Page 44: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 44 of 72

PMInSpd REAL Parameter Manual

Increase Speed

Increasing speed for manual

position/value orders

PMDeSpd REAL Parameter Manual

Decrease Speed

Decreasing speed for manual

position/value orders

PSpInV REAL Parameter Step Increase

Value

Step value for manual step increase

position/value orders

PSpDeV REAL Parameter Step Decrease

Value

Step value for manual step decrease

position/value orders

PLiOn REAL Parameter Limit

On/Open

Threshold to set ‘On/Open’ state

PLiOff REAL Parameter Limit

Off/Closed

Threshold to set ‘Off/Closed’ state

Process Output

Name Type Meaning Description

AOutOV REAL Analog Output Order Value Analog Output Order sent to the process

(I/O object). The Digital Control object

option must be deactivated

Status Information

Name Type Meaning Description

PosSt REAL Position Status Current value/position state

AuPosRSt REAL Auto Position Request

Status

Current value of the Auto Position

Request

MPosRSt REAL Manual Position Request

Status

Current value of the Manual Position

Request

OutOV REAL Output Order Value Current value of the Output Order

OnSt

stsreg01 BIT0

BOOL On/Open Status The object is ‘On/Open’

OffSt

stsreg01 BIT1

BOOL Off/Closed Status The object is ‘Off/Closed’

AuInhMMo

stsreg01 BIT15

BOOL Auto Inhibit Manual

Mode

The Control Logic blocked the Manual

Mode

AuInhFMo

stsreg01 BIT13

BOOL Auto Inhibit Forced

Mode

The Control Logic blocked the Forced

Mode

AuMoSt

stsreg01 BIT2

BOOL Auto Mode Status The object is in Auto Mode

MMoSt

stsreg01 BIT3

BOOL Manual Mode Status The object is in Manual Mode

LdSt

stsreg01 BIT5

BOOL Local Drive Status The object is driven locally, Local Drive

Mode

FoMoSt

stsreg01 BIT4

BOOL Forced Mode Status The object is in Forced Mode

IoErrorW

stsreg01 BIT6

BOOL Input/Output Error

Warning

Error in any I/O channel of the object

StsReg01

PAnalog

Page 45: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 45 of 72

IoSimuW

stsreg01 BIT7

BOOL Input/Output Simulated

Warning

Simulation by the operator of any I/O

channel of the object

AuMRW

stsreg01 BIT8

BOOL Auto Manual Request

Warning

Auto and Manual requests Discrepancy

when Manual/Forced mode active

PosAlW

stsreg01 BIT9

BOOL Position Alarm Warning Discrepancy between the activity state

and the output order

StartISt

stsreg01 BIT10

BOOL Start Interlock Status Presence of a start interlock: all the

requests are block when active

StopISt

stsreg01 BIT11

BOOL Stop Interlock Status Presence of a stop interlock: safe

position request when active

AlUnAck

stsreg01 BIT12

BOOL Alarm Unacknowledged Alarm not yet acknowledged

PfsPosOn

stsreg01 BIT14

BOOL Parameter Fail-Safe

Position On/Open

When active the Fail-Safe position is

‘On/Open’

AlBW

stsreg02

BIT13

BOOL Alarm Blocked A dependent Alarm is blocked by the user

Particularity

• Activity state

The activity states of the Analog object are:

On when the output order or the position feedback (if the Parameter Hardware Feedback

On/Open is On) is above the fixed Parameter Limit On/Open

Off when the output order or the position feedback (if the Parameter Hardware Feedback

Off/Closed is On) is below the fixed Parameter Limit Off/Closed.

• Fail-Safe Position

For the Analog object, a fail-safe position must be specified. That is, a safe position when

failure of the equipment they drive occurs (or any of the auxiliary utilities of the equipment

fails). It is On/Open when the Parameter Fail-Safe Position On/Open is On (typical for normally

open valves), otherwise It is Off/Closed (typical for normally closed valves).

• Increase/Decrease value/position Requests

The speed for changing the Auto Position Requests is set by the Auto Increase Speed and Auto

Decrease Speed parameters coming from higher hierarchical level.

For the Manual Position Request, the speed is determined by the Parameter Manual Increase

Speed and Parameter Manual Decrease Speed. In addition, the Manual Step Increase Request

and Manual Step Decrease Request allow the operator to modify the value/position of the

object by little steps. These steps are specified with the Parameter Step Increase Value and

the Parameter Step Decrease Value.

• Output Orders

StsReg01

StsReg02

Page 46: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 46 of 72

The Analog object sends the orders to an Output object associated to an actuator.

Mode Manager

Hardware Feedback Local Drive

Hardware Feedback Local Drive

PHLd

Local Drive Mode

Auto Inhibit Manual Mode

Manual Manual Mode Request

Auto Inhibit Manual Mode

&

Manual Auto Mode Request

Auto Auto Mode Request

Manual Forced Mode Request AuMost: = FALSE

MMoSt: = FALSE FoMoSt: = TRUE

AuMost: = FALSE MMoSt: = TRUE

FoMoSt: = FALSE

Manual Forced Mode Request

Manual Manual Mode Request

Manual Mode

Forced Mode

AuMost: = TRUE MMoSt: = FALSE FoMoSt: = FALSE

Auto Mode Default Mode

: Control by higher object

: Control by operator

Software Command

Hardware Command

Page 47: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 47 of 72

: Local Control

When discordance between the

real object status and the

output order persists longer

than a given time delay, fixed

by the Parameter Alarm Time

Delay (PAlTiDe), this particular warning is activated.

Update of the

Manual mode

status

This Class calculates the output

of the ON/OFF Object in

generating a ramp. Ramp

parameters are function of

operation mode.

This class

calculates at

which of the

physical/logical

limits is the

On/Off Object.

INPUT MANAGER

SURVEILLANCE

RM: INTERLOCKS

POSITION WARNING

OUTPUT REGISTER

STATUS REGISTER

Update of AOutOV,

depending of PfsPosOn and

OutOV

This Class checks the

ON/OFF Object for

several warnings.

Update of the operation

mode

POSITION MANAGER LM: FAIL-SAFE

MODE MANAGER

OUTPUT MANAGER

RM: LOCAL DRIVE RM: AUTO MODE RM: MANUAL MODE

This class collects the status

information from the different

classes of the ON/OFF Object

and assigns this collected

attributes to the status register,

which is a structured in charge

of managing the information in

a compact and packed structure.

This Class evaluates the

ON/Off Object inputs.

This class controls if

the On/Off Object is

in its fail-safe position

Update of the

Auto mode status

Update of the

Local mode status

Update of

interlocks

1 2

RM: MODE EVALUATION

Update of OUTPUT

MANAGER parameters

Page 48: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 48 of 72

2.2.4 ANADIG OBJECTS

It is the same description than for the ANALOG Object but the output is not an analog value

but two digital values which correspond of the PWM signal of OutOV.

Parameters

Status

Output Orders

Process

Inputs

Manual Request

Auto

Requests

Interlock Logic

Manual Request

AlB

AlBW

Page 49: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 49 of 72

FIGURE 14 : ANADIG Object

Process Inputs

Name Type Meaning Description

HFOn BOOL Hardware Feedback

On/Open

Actual ‘On/Open’ information coming from a

digital sensor (I/O object)

HFOff BOOL Hardware Feedback

Off/Closed

Actual ‘Off/Closed’ information coming from a

digital sensor (I/O object)

HFPos REAL Hardware Feedback Position Actual position/value information coming from

an Analog sensor (I/O object)

HAOut REAL Hardware Analog Output Feedback about the value/status of the analog

output (I/O object) associated to the object

HFLd BOOL Hardware Feedback Local

Drive

Feedback from the digital sensor/switch (I/O

object) that actives the Local Drive of the

object. It sets the Local drive Mode

IoError BOOL Input/Output Simulated Error in any I/O channel of the object

IoSimu BOOL Input/Output Error Simulation by the operator of any I/O channel

of the object

AlB BOOL Alarm blocked A dependent Alarm is blocked by the user

Interlock Logic

Name Type Meaning Description

StartI

BOOL Start Interlock Presence of a start interlock: all the requests

are blocked when On

StopI

BOOL Stop Interlock Presence of a stop interlock: safe

position/value request when On

Auto Requests

Name Type Meaning Description

AuOnR BOOL Auto On Request The control logic requests the object to

‘switch On/Open’

AuOffR BOOL Auto Off Request The control logic requests the object to

‘switch Off/Close’

AuPosR REAL Auto Position Request The control logic requests the object to be set

at a specific position/value

AuAuMoR BOOL Auto Auto Mode Request The control logic requests the Auto Mode

AuInhMMo BOOL Auto Inhibit Manual Mode The control logic blocks the Manual Mode

AuInhFMo BOOL Auto Inhibit Force Mode The control logic blocks the Force Mode

AuInSpd REAL Auto Increase Speed The control logic sets a speed for decreasing

the position/value

AuDeSpd REAL Auto Decrease Speed The control logic sets a speed for increasing

the position/value

Page 50: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 50 of 72

AuAlAck BOOL Auto Alarm Acknowledge The control logic requests the acknowledge of

the alarm

Manual Requests

Name Type Meaning Description

MOnR

stsreg01 BIT4

BOOL Manual On Request The operator requests the object ‘switch

On/Open’

MOffR

stsreg01 BIT5

BOOL Manual Off Request The operator requests the object to ‘switch

Off/Close’

MPosR

stsreg01 BIT2

REAL Manual Position Request The operator requests the object to be set

at a specific position/value

MSpInR

stsreg01 BIT7

REAL Manual Step Increase

Request

The operator requests to increase the

position by one basic step

MSpDeR

stsreg01 BIT8

REAL Manual Step Decrease

Request

The operator requests to decrease the

position by one basic step

MMMoR

stsreg01 BIT1

BOOL Manual Manual Mode

Request

The operator requests the Manual Mode

MAuMoR

stsreg01 BIT0

BOOL Manual Auto Mode

Request

The operator requests the Auto Mode

MFoMoR

stsreg01 BIT2

BOOL Manual Forced Mode

Request

The operator requests the Forced Mode

MAlAck

stsreg01

BIT15

BOOL Manual Alarm

Acknowledge

The operator acknowledges one or several

alarms

MnewMR

stsreg01 BIT 6

BOOL Mamual New Manual

position Request

The operator requests an acquisition of

MPosR

Parameters

Name Type Meaning Description

PfsPosOn

PAnalog BIT0

BOOL Parameter Fail-Safe

Position On/Open

When On the Fail-Safe position is

‘On/Open’

PHFOn

PAnalog BIT1

BOOL Parameter Hardware

Feedback On/Open

Activation of the hardware ‘On/Open’

feedback sensor

PHFOff

PAnalog BIT2

BOOL Parameter Hardware

Feedback Off/Closed

Activation of the hardware ‘Off/Closed’

feedback sensor

PHFPos

PAnalog BIT3

BOOL Parameter Hardware

Feedback Position

Activation of the hardware ‘Position/value’

feedback sensor

PHLdrive

PAnalog BIT4

BOOL Parameter Hardware

Local Drive

Activation of the hardware Local Drive

feedback sensor

ManReg01

PAnalog

Page 51: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 51 of 72

PHAOut

PAnalog BIT5

BOOL Parameter Hardware

Analog Output

Activation Feedback about the status of the

Analog output (I/O object) associated to

the object.

PAlTiDe TIME Parameter Alarm Time

Delay

Time delay to mask an alarm

PMinRan REAL Parameter Min Range Minimum output of the object

PMaxRan REAL Parameter Max Range Maximum output of the object

PMInSpd REAL Parameter Manual

Increase Speed

Increasing speed for manual position/value

orders

PMDeSpd REAL Parameter Manual

Decrease Speed

Decreasing speed for manual position/value

orders

PSpInV REAL Parameter Step

Increase Value

Step value for manual step increase

position/value orders

PspDeV REAL Parameter Step

Decrease Value

Step value for manual step decrease

position/value orders

PliOn REAL Parameter Limit

On/Open

Threshold to set ‘On/Open’ state

PliOff REAL Parameter Limit

Off/Closed

Threshold to set ‘Off/Closed’ state

IN_Max REAL Max Deviation % of Max deviation of Pulses (PWM)

T_Period TIME Time Period of pulses Period of Pulses (PWM)

T_Min TIME Time Min of pulses Length of Min pulse of output (PWM)

Process Output

Name Type Meaning Description

DOutOnO BOOL Digital Out On/Open Order PWM Output signal for positive value

DoutOffO BOOL Digital Out Off /CloseOrder PWM Output signal for negative value

Status Information

Name Type Meaning Description

PosSt REAL Position Status Current value/position state

AuPosRSt REAL Auto Position Request

Status

Current value of the Auto Position

Request

MPosRSt REAL Manual Position Request

Status

Current value of the Manual Position

Request

OutOV REAL Output Order Value Current value of the Output Order

OnSt

stsreg01 BIT0

BOOL On/Open Status The object is ‘On/Open’

OffSt

stsreg01 BIT1

BOOL Off/Closed Status The object is ‘Off/Closed’

AuInhMMo

stsreg01

BIT15

BOOL Auto Inhibit Manual Mode The control logic blocks the Manual Mode

AuInhFMo

stsreg01

BIT13

BOOL Auto Inhibit Forced Mode The control logic blocks the Force Mode

AuMoSt

stsreg01 BIT2

BOOL Auto Mode Status The object is in Auto Mode

StsReg01

PAnalog

PControl

Page 52: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 52 of 72

MMoSt

stsreg01 BIT3

BOOL Manual Mode Status The object is in Manual Mode

LdSt

stsreg01 BIT5

BOOL Local Drive Status The object is driven locally, Local Drive

Mode

FoMoSt

stsreg01 BIT4

BOOL Forced Mode Status The object is in Forced Mode

IoErrorW

stsreg01 BIT6

BOOL Input/Output Error

Warning

Error in any I/O channel of the object

IoSimuW

stsreg01 BIT7

BOOL Input/Output Simulated

Warning

Simulation by the operator of any I/O

channel of the object

AuMRW

stsreg01 BIT8

BOOL Auto Manual Request

Warning

Auto and Manual requests Discrepancy

when Manual/Forced mode active

PosAlW

stsreg01 BIT9

BOOL Position Alarm Warning Discrepancy between the activity state

and the output order

StartISt

stsreg01

BIT10

BOOL Start Interlock Status Presence of a start interlock: all the

requests are block when On

StopISt

stsreg01

BIT11

BOOL Stop Interlock Status Presence of a stop interlock: safe

position request when On

AlUnAck

stsreg01

BIT12

BOOL Alarm Unacknowledged Alarm not yet acknowledged

PfsPosOn

stsreg01

BIT14

BOOL Parameter Fail-Safe

Position On/Open

When On the Fail-Safe position is

‘On/Open’

DoutOnO

stsreg02 BIT0

BOOL Digital Out On/Open

Order

PWM Output signal for positive value

DoutOffO

stsreg02 BIT1

BOOL Digital Out Off /Close

Order

PWM Output signal for negative value

AlBW

stsreg02

BIT13

BOOL Alarm Blocked A dependent Alarm is blocked by the

user

• Analog-Digital Output

Some actuators are driven by two digital-pulse signals. The Anadig object allows to drive the

actuator with the two signals: Digital Output On/Open Order and Digital Output Off/ Close

Order.

The Mode manager is the same than for Analog Objects

StsReg02

StsReg01

Page 53: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 53 of 72

2.3 CONTROL OBJECTS

These objects allow the control of others objects. They don’t represent equipment in the

installation. Controller objects and alarm objects have the same format as Field Objects

whereas Process Control Objects (PCO) have a special format of their own

2.3.1 CONTROLLER OBJECTS

The Controller objects are objects encapsulating a regulation algorithm. Although the most

often used one is the PID regulator. The possibility exists to modify the regulation algorithm

while keeping the features presented below. The Controller objects must be associated to an

Analog object (Field object).

, this object Also allows:

� To manage the procedures.

� To set the output command:

- By regulation and its associated instructions (that it is in automatic, manual or tracking

mode)

- By requests set by the command logic or the operator, independently of the regulator.

� To take into account the limits on the speed with which instructions can be changed (?).

� To take into account the limits concerning the command of output and the instructions.

� To define the parameters of the regulator (automatically or manually).

� To update status including:

� The instruction and its associated flag.

� speed Limits of the changes of instructions and their associated flag.

� The command of output and its associated flag.

� Limits of the command of output and their associated flag.

� Parameters of the regulator and their associated flag.

� Procedures.

� Error and simulation warnings.

� The value measured in input.

� The position of output if it exists.

Page 54: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 54 of 72

Active

FIG15 : Controller Object

Process Inputs

Manual Request

Auto Requests

Parameters

Manual Requests

Output Order

Process Inputs

Parameters

Status

Parameters

Auto Requests

Logic input

AuInhSR

Page 55: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 55 of 72

Process Inputs

Name Type Meaning Description

HMV REAL Hardware measured value The process value to be regulated

HOutO REAL Hardware output order Feedback Analog value

IoError BOOL Input/Output Simulated Error in any I/O channel of the object

IoSimu BOOL Input/Output Error Simulation by the operator of any I/O channel

of the object

FFScaled REAL Feed Forward Scaled Parameter of the PID Controller

Auto Requests

Name Type Meaning Description

AuRegR BOOL Auto Regulation Mode

Request

When On it sets the Regulation Mode

AuTR BOOL Auto Tracking Request Tracking of measured value requested

AuAuMoR BOOL Auto Auto Mode Request Activates the auto position or regulation

mode according to the Auto request present

AuInhMMo BOOL Auto Inhibit Manual Mode The operator cannot switch the controller to

manual mode

AuInhSR BOOL Auto Inhibit Save Restore The operator cannot save nor restore the

controller PID parameters (Default values)

AuPosR REAL Auto position request Output order position requested by the

Control Logic

AuSPo REAL Auto set point Set point requested by the Control Logic *Activated by a pulse

AuESPo BOOL Auto enable auto set point Activates set point set in control logic

AuSPoSp REAL Auto set point Sp Parameter of Ramp generator (VEL_LIM)

Manual Requests

Name Type Meaning Description

MMMoR

Manreg01 BIT1

BOOL Manual Manual mode

request

When On it sets the Manual Mode

MAuMoR

Manreg01 BIT0

BOOL Manual Auto Mode

Request

Activates the auto position or

regulation mode according to the Auto

request present

MFoMoR

Manreg01 BIT2

BOOL Manual Forced Mode

Request

When On it sets the Forced Mode

MDefParRest

Manreg01 BIT4

BOOL Restore default PID

parameters

Restore default PID params (it can be

params, SP & OUT limits or SP)

MDefParSave

Manreg01 BIT5

BOOL Save default PID

parameters

Save default PID params (it can be

params, SP & OUT limits or SP)

MnewPosR

Manreg01 BIT 6

BOOL Manual New position

Request

The operator requests an acquisition of

MOutPosR

MnewSpR

Manreg01 BIT7

BOOL Manual New Set Point

Request

The operator requests an acquisition of

the set point

ManReg01

Page 56: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 56 of 72

MNweSpHLR

Manreg01 BIT8

BOOL Manual New Setpoint High

Limit Request

Manual set point High Limit On

MNweSpLLR

Manreg01 BIT9

BOOL Manual New Setpoint Low

Limit Request

Manual set point Low Limit On

MNwePosHLR

Manreg01 BIT10

BOOL Manual New Output High

Limit Request

Manual Output High Limit On

MNwePosLLR

Manreg01 BIT11

BOOL Manual New Output Low

Limit Request

Manual Output Low Limit On

MKpPR

Manreg01 BIT12

BOOL Manual Kp Parameter

Request

Manual Kp Parameter On

MTdPR

Manreg01 BIT13

BOOL Manual Td Parameter

Request

Manual Td Parameter On

MTiPR

Manreg01 BIT14

BOOL Manual Ti Parameter

Request

Manual Ti Parameter On

MKdPR

Manreg01 BIT15

BOOL Manual Kd Parameter

Request

Manual Kd Parameter On

MReMoR

Manreg01 BIT3

BOOL Manual regulation request When On it sets the Regulation Mode

MOutPosR REAL Manual output position

request

Output order position requested by the

operator

MSPo REAL Manual Setpoint Set point requested by the operator

MSPoH REAL Manual Setpoint High

Limit

High limit for set point requested by

the operator

MSPoL REAL Manual Setpoint Low Limit Low limit for set point requested by the

operator

MOutOH REAL Manual Output High Limit High limit for output order requested

by the operator

MOutOL REAL Manual Output Low Limit Low limit for output order requested by

the operator

MKp REAL Manual Kp Parameter Controller parameter requested by the

operator

MTd REAL Manual Td Parameter Controller parameter requested by the

operator

MTi REAL Manual Ti Parameter Controller parameter requested by the

operator

MKd REAL Manual Kd Parameter Controller parameter requested by the

operator

ManReg01

Page 57: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 57 of 72

Parameters

EnableHigh BOOL EnableHigh Setpoint HighLimit Setpoint On

EnableLow BOOL EnableLow Setpoint LowLimit Setpoint On

HighLimit REAL HighLimit Setpoint High limit for set point requested by the

Control Logic

LowLimit REAL LowLimit Setpoint Low limit for set point requested by the

Control Logic

EnableHigh BOOL EnableHigh Output HighLimit Output On

EnableLow BOOL EnableLow Output LowLimit Output On

HighLimit REAL HighLimit Output High limit for output order requested by

the Control Logic

LowLimit REAL LowLimit Output Low limit for output order requested by

the Control Logic

Ekp Etd

Eti Ekd

BOOL Enable PID Parameter Activates Controller parameters

requested by the Control Logic

Kp REAL PID Proportinal term

Controller parameters requested by the

Control Logic

Ti REAL PID Integral term

Kd REAL PID Derivative term

Td REAL PID derivative filtering

Avg INT Average Nb of value to calculate average values

PMaxRan REAL Parameter Maximum

Range

Maximum Engineering value (measured

value)

PMinRan REAL Parameter Minimum Range Minimum Engineering value (measured

value)

RA BOOL Reverse Action When On it inverses the action direction

of the output

Active BOOL Controller Active Logic explicitly sets this input to

distinguish between multiple controllers

Output Order

Name Type Meaning Description

OutO REAL Output order Orders sent to a Field Object

Status information (stsReg0x)

Bit Name stsReg Meaning Description

0 TSt 01 Tracking status Set point is tracking the measured value

1 Active 01 Controller active The controller is active in the current

phase (activated by user logic)

2 AuMoSt 01 Auto Mode Status Auto mode On

StrOut

StrSP

StrPar

Page 58: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 58 of 72

3 MMoSt 01 Manual mode status Manual mode On

4 FoMoSt 01 Forced Mode Status Forced mode On

5 ReMoSt 01 Regulation mode

status

Regulation mode On

6 IoErrorW 01 Input Output Error

Warning

Error in any I/O of the object

7 IoSimuW 01 Input Output

simulated Warning

Simulation by the operator of any I/O

channel of the object

8 AuRegReq 01 Auto Regulation

Request

Auto Regulation request activation

9 - 01 - -

10 - 01 - -

11 - 01 - -

12 AuInhSR 01 Auto Inhibit Save

Restore

Inhibit Save Restore Actions Activation

13 - 01 - -

14 AtESPo 01 Actual Enable

Setpoint

Activates set point & indication of CL origin

15 AuInhMMo 01 Auto Inhibit Manual

Mode

The control logic blocks the Manual Mode

0 AtEKp 02 Auto Enable Kp

parameter

When On the current parameters are set

by operator or Control Logic

1 AtETi 02 Auto Enable Ti

parameter

When On the current parameters are set

by operator or Control Logic

2 AtETd 02 Auto Enable Td

parameter

When On the current parameters are set

by operator or Control Logic

3 AtEKd 02 Auto Enable Kd

(Tds) parameter

When On the current parameters are set

by operator or Control Logic

4 BOpKp 02 By Operator Kp

parameter

Current Kp Parameter different from

Automatic

5 BOpTi 02 By Operator Ti

parameter

Current Ti Parameter different from

Automatic

6 BOpTd 02 By Operator Td

parameter

Current Td Parameter different from

Automatic

7 BOpKd 02 By Operator Kd

(Tds) parameter

Current Kd Parameter different from

Automatic

8 BOpSPoH 02 By Operator AtSPoH

parameter

Current AtSPoH different from Automatic

9 BOpSPoL 02 By Operator AtSPoL

parameter

Current AtSPoL different from Automatic

10 BOpOutH 02 By Operator AtOutH

parameter

Current AtOutH different from Automatic

Page 59: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 59 of 72

11 BOpOutL 02 By Operator AtOutL

parameter

Current AtOutL different from Automatic

12 AtESPoH 02 Auto Enable

Setpoint High limit

Set point high limit On

13 AtESPoL 02 Auto Enable

Setpoint Low limit

Set point low limit On

14 AtEOutH 02 Auto Enable Output

Order H Limit

Output order high limit On

15 AtEOutL 02 Auto Enable Output

Order L Limit

Output order low limit On

Status information

Name Type Meaning Description

AtSPo REAL Actual Setpoint Actual Setpoint

AtMSPo REAL Actual Manual Setpoint Set point requested by the operator

AtAuSPo REAL Actual Auto Setpoint Set point requested by the Control Logic

AtSPoH REAL Actual Setpoint High

Limit

Set point high limit

AtSPoL REAL Actual Setpoint Low

Limit

Set point low limit

AtOutO REAL Actual Output Order Actual Output Order

AtOutH REAL Actual Output Order High

Limit

Output Order High Limit

AtOutL REAL Actual Output Order Low

Limit

Output Order Low Limit

AtKp REAL Actual Kp Parameter

Actual controller parameters

AtTd REAL Actual Td Parameter

Current value requested by the operator

AtTi REAL Actual Ti Parameter

Current value request by the Control

Logic

AtKd REAL Actual Kd Parameter

MPosRSt REAL Manual position request

status

Actual measured value

AuPosRSt REAL Auto position request

status

MV REAL Measured value

ReLAuMo BOOL Regulation Automatic

Mode

The Regulation Mode is activated by the

Control Logic

AtPSt

Page 60: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 60 of 72

Particularities

• Modes

Regulation mode: The regulation algorithm is on and drives the output order

Auto position mode: The regulation algorithm is disabled. The output is driven by the Auto

Position ed coming from a higher level

Manual mode: The regulation algorithm is disabled. The Operator drives the output with the

Manual Position Request.

Forced mode: Equal to manual mode, but the Control Logic cannot switch back to auto position

mode or regulation mode.

• Function

o The set point modification: The set point can be fixed by:

� The Control Logic with the Auto Set-Point

� The Operator with the Manual Set-Point

� When the flag Auto Set-Point Enable is on, the current set point is fixed by

the Auto Set-Point, when it is not on, the Operator can modify the set point

with the Manual Set-Point.

� Tracking:

� When tracking is requested, the set point must follow the measured value

(Hardware Measured Value).

o Set-Point limitations:

� The set-point speed variation can be controlled with the Auto set point

variation speed.

� The set point can be bounded by the Control Logic with the Auto set point H

limit and the Auto set point L Limit. These limits are active when a flag is set

(Auto enable auto set point H limit and Auto enable auto set point L limit

respectively). Otherwise the limits are set by the operator with the Manual

set point H limit and Manual set point L limit.

o Output limitations:

The output order can be limited by the Control Logic with the Auto output order

H limit and the Auto output order L limit. These limits are active when a flag is

set (Auto enable auto output H limit and Auto enable auto output L limit

respectively). Otherwise the limits are set by the operator with the Manual

output order H limit and the Manual output order L limit.

o Controller parameters:

The controller parameters such as gain, integral time, or derivative time for a

PID, are given either by the Control Logic or by the operator. They are set with

the Auto controller parameter (one per parameter) by the Control Logic when a

Page 61: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 61 of 72

flag is active (Auto controller parameter enable, one flag per parameter).

Otherwise the operator sets them with the Manual controller parameter (one per

parameter).

o Reverse action:

� When a reverse action is required the output order's direction is reversed:

� Normal: if the set point is higher than the measured value, then the output order

will increase.

� Reverse: if the set point is higher than the measured value, then the output

order will decrease.

o Coupling with the field object:

Since a Controller Object is always associated with an Analog Object (Field

Object), special conditions must be satisfied:

When the Analog Object is in Manual or Forced Mode, the Controller Object must

be set in Auto Position Mode. The Auto Position Request must receive the output

order of the Analog Object. The Tracking function must be activated.

When the Analog Object is released into Auto Mode, the Controller Object must

be set into:

� Regulation Mode when the Auto Regulation Mode Request is on. The

control algorithm generates the Output Order.

� Auto Position Mode when the Auto Regulation Mode Request is off. The

Auto Position Request must receive the output of a higher object.

• Scaling

Depending on the regulation algorithm proposed by the basic software, a scaling function

might be necessary. In this case, the measuring range is given by parameters.

• There are no interlock requests for a Controller Object.

Page 62: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 62 of 72

Data Processing

Auto Inhibit Manual Mode

&

Regulation

Mode Manual Auto

Mode Request

Auto Auto Mode

Request

Manual Forced Mode Request

AuMost: = TRUE ReMoSt: = FALSE MMoSt: = FALSE FoMoSt: = FALSE

Auto Mode Default Mode

AuMost: = FALSE ReMoSt: = FALSE MMoSt: = TRUE

FoMoSt: = FALSE

Manual Forced Mode Request

Manual Manual Mode Request

Manual Mode

Forced Mode

Manual Forced Mode Request

Manual Forced Mode

AuMost: = FALSE ReMoSt: = TRUE MMoSt: = FALSE FoMoSt: = FALSE

Manual Manual

Mode Request

Manual Auto Mode Request

Manual Auto Mode

Request

Auto Auto Mode Request

Auto Regulation Request

Manual Regulation Request

Manual Manual Mode Request

AuMost: = FALSE ReMoSt: = FALSE MMoSt: = FALSE FoMoSt: = TRUE

Page 63: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 63 of 72

2.3.2 ALARM OBJECTS

This ALARM object allows:

· To manage the interlocks. · To update the alarms not recognized by the operator.

Process Input

IoError BOOL Input/Output Simulated Error in any I/O channel of the object

IoSimu BOOL Input/Output Error Simulation by the operator of any I/O channel

of the object

Manual Request

Auto Request

Data Processing This ALARM object output is activated when the I=1 and delay time has expired. In case of blocked alarm the delay time will be reset, and once is unblocked the alarm output will be equial to the input after the complete delay time.

Name Type Meaning Description

I BOOL Interlock Presence of an interlock

Name Type Meaning Description MAlAck Manreg01 BIT 15

BOOL Manual Alarm

Acknowledge

The operator acknowledges one or several

alarms

MBAlAct Manreg01 Bit 8

BOOL Manual Block

Alarm

Acknowledge

The operator blocks the Acknowledgement

MDAlAct Manreg01 Bit 7

BOOL Manual Deblock

Alarm

Acknowledge

The operator deblocks the Acknowledgement

Name Type Meaning Description AuAlAck BOOL Auto Alarm Acknowledge The control logic acknowledges one or

several alarms

AuInhBAl BOOL Auto Inhibit alarm block Inhibits the user block alarm action

ManReg01

IoError IoErrorW

IoSimu IoSimuW

AuInhBAl PosAlW

AlActBSt

PROCESS INPUT: INTERLOCKS

AlUnAck S : I 1

R: MAlAck or AuAlAck 0

INPUT MANAGER

Read Inputs - ManReg01

STATUS REGISTER acknowledge/Interlock

Page 64: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 64 of 72

Status Information

IoErrorW

stsreg01 BIT6

BOOL Input Output Error

Warning

Error in any I/O of the object

IoSimuW

stsreg01 BIT7

BOOL Input Output

simulated Warning

Simulation by the operator of any I/O

channel of the object

Name Type Meaning Description ISt stsreg01 BIT0

BOOL Interlock Status Presence of an interlock

AlUnAck stsreg01BIT 12

BOOL Alarm

Unacknowledged

Alarm not yet acknowledged

AlActB stsreg01BIT 11

BOOL Alarm A Alarm ackloledge is blocked

PosAlW stsreg01BIT 9

BOOL Position alarm

Warning

Output of the alarm is not consistent

with Input. (delay not expired or

blocked)

AlActBSt stsreg01BIT 10

BOOL Alarm block status Alarm blocked status

AuInhBAl stsreg01BIT 13

BOOL Inhibit Alarm block

status

Status of the inhibit input

StsReg01

Page 65: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 65 of 72

2.3.3 PROCESS CONTROL OBJECT

Whereas the I/O and field objects are fully generic and can be re-used as such by any application, the PCOs which are the nodes of the object hierarchy must be versatile enough to cope with complex and application specific process logic. They provide indeed developers with placeholders for the application specific logic:

• Conditions for the Controlled Stop completion (used to stop the object in a controlled way).

• Configurable interlock conditions to stop PCOs in case of severe process anomalies: Start interlock (avoid start-up but inducing no stop), Temporary-stop (to stop in case of anomalies but allow restart when it disappears) and Full-stop (to stop in case of anomalies but allow restart only after an operator acknowledgement).

• Configurable feedbacks: The On/Off status of a PCO is the result of the combination of status of its child objects and process inputs.

Global Logic: to implement global parameters computation or a finite state machine.

Dependant object logic: Piece of code which drive each child object of a given PCO. It define the “auto” requests to be sent according to process inputs, the status of the PCO and if any, the finite state machine.

In addition to the internal object logic described above, the PCO one’s implements:

• Propagation of the alarm acknowledgements and transitions to auto mode toward their children;

• Evaluation of the following PCO specific properties which will be used in the global and dependent objects logic: Interlocks dependant start; Controlled stop request; Option Modes handling (to set the PCO in different “options mode” such as cool down, warm-up etc.)

FIG 15 : Process Control Objects

The PCO standard logic is identical for all PCO objects. It is part of the UNICOS Standard

Object Library. Its function is to set the Statuses and standard orders in a uniform way as a

function of the incoming inputs and outgoing requests.

Page 66: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 66 of 72

Process Inputs

Interlocks

Auto Requests

Manual Request

Status

Configuration

Logic

Status

Output Orders

Parameter

Manual Request

AlB

AlBW

noMaster

Page 67: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 67 of 72

FIG 16 : Process Control Objects

Process Input

Name Type Meaning Description

IoError BOOL Input/Output Simulated Error in any I/O channel of the object

IoSimu BOOL Input/Output Error Simulation by the operator of any I/O channel

of the object

AlB BOOL Alarm blocked A dependent Alarm is blocked by the user

Interlock Logic

Name Type Meaning Description

StartI BOOL Start Interlock Presence of Start Interlock : All the requests

are blocked when On

TStopI BOOL Temporary Stop Interlock Sends ‘Off/Close’ request to the object when

On

FuStopI BOOL Full Stop Interlock Sends ‘Off/Close’ request to the object & waits

acknowledge when on

Configuration Logic Requests

Name Type Meaning Description

FOn BOOL Feedback on The object is on

FOff BOOL Feedback off The object is off

CStopFin BOOL Controlled stop finished The controlled stop sequence is ended

Auto Requests

Name Type Meaning Description

AuOnR BOOL Auto On request start requested

AuOffR BOOL Auto Off request stop requested

AuCOffR BOOL Auto controlled off

request

A controlled stop is requested

AuAuMoR BOOL Auto Auto mode Request Turns on the regulation mode

AuInhMMo BOOL Auto Inhibit Manual Mode The operator cannot switch the controller in

manual mode

AuInhFMo BOOL Auto Inhibit Force Mode The operator cannot switch the controller in

Force mode

AuDeR BOOL Auto Dependant object

Request

The control logic sends an Auto Auto mode

request to all dependent objects when on

AuOpMox REAL Auto option Mode x

request

The option mode x is requested

noMaster BOOL No master is configured This input allows the PCO to know that there

are no parent master and avoid warning

animation when set by the operator

Page 68: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 68 of 72

Manual Requests

Name Type Meaning Description

MOnR

Manreg01 BIT4

BOOL Manual On request start requested

MOffR

Manreg01 BIT5

BOOL Manual Off request stop requested

MCoffpR

Manreg01 BIT 6

BOOL Manual Controlled off

request

A controlled stop is requested

MMMoR

Manreg01 BIT1

BOOL Manual Manual mode

request

Enable the manual mode

MAuMoR

Manreg01 BIT0

BOOL Manual auto mode

request

Enable the Auto mode

MFoMoR

Manreg01 BIT2

BOOL Manual forced Mode

request

Enable the Forced Mode

MAlAck

Manreg01 BIT15

BOOL Manual Alarm

acknowledge

Acknowledge an alarm due to interlock

MSTSasFS

Manreg01 BIT8

BOOL Manual set stop as full

stop

In case of temporary stop the full stop will

be generated

MRTSasFS

Manreg01 BIT9

BOOL Manual reset stop as

full stop

Reverse of the precedent request

MBAlAct

Manreg01 BIT10

BOOL Manual Block alarm

action

In case of interlock the run order will remain

on

MDAlAct

Manreg01 BIT11

BOOL Manual DeBlock alarm

action

Reverse of the precedent request

OMP

Manreg01 BIT 12

BOOL Option Manual Pulse

MDeR

Manreg01 BIT13

BOOL Manual auto Forced

mode to Dependant

object Request

The operator sends an Auto Auto mode

to all dependent objects

MAuOpMoX REAL Manual Option Mode x

Request

The option mode x is requested

Parameters

Name Type Meaning Description

MoOpAlTa (8x8)

Binary

Modes Option Allowance

Table

Option switch capabilities

(Specific configuration parameters for the

On/Off object)

Process Outputs

Name Type Meaning Description

RunO BOOL Run Order Indicate that the object start is requested and

there is no interlock

ManReg01

Page 69: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 69 of 72

CStopO BOOL Control Stop order Control stop requested

AuDeO BOOL Auto Dependant object

Order

Auto mode order is sent to Dependent

objects

OpMoX REAL Option Mode X order Option mode X order

Status Information

OnSt

stsreg01 BIT0

BOOL Status on Feedback on request flag is on

OffSt

stsreg01 BIT1

BOOL Status off Feedback off request flag is on

MMoSt

stsreg01 BIT3

BOOL Manual mode status Manual mode On

FoMoSt

stsreg01 BIT4

BOOL Forced Mode Status Forced mode On

AuMoSt

stsreg01 BIT2

BOOL Auto mode status Auto mode On

BMMoSt

stsreg01 BIT15

BOOL Block Manual Mode The operator cannot switch the controller in manual

mode

AuInhFo

stsreg01 BIT13

BOOL Block Force Mode The operator cannot switch the controller in Force

mode

AlUnAck

stsreg01 BIT12

BOOL Alarm Unacknowledged When a an interlock has not been acknowledged

FuStopAI

stsreg01 BIT9

BOOL Full stop alarm The full stop interlock is on

TStopAI

stsreg01 BIT11

BOOL Temporary stop alarm The temporary stop interlock is on

StartAI

stsreg01 BIT10

BOOL Start interlock alarm The start interlock is On

IoErrorW

stsreg01 BIT6

BOOL Input Output Error Warning Error in any I/O of the object

IoSimuW

stsreg01 BIT7

BOOL Input Output simulated

Warning Simulation by the operator of any I/O of the object

AuMRW

stsreg01 BIT8

BOOL Auto Manual Request Warning Discrepancy between the activity state and the output

order

RunOSt

stsreg01 BIT0

BOOL Run order Run order to specific object logic

AuOnRSt

stsreg01 BIT1

BOOL Auto On/Open Request Current value of the Auto On/Open Request

MOnRSt

stsreg01 BIT2

BOOL Manual On/Open Request Current value of the Manual On/Open Request

CStopOSt

stsreg01 BIT8

BOOL Control Stop Order Status Control stop requested

AuCStop

stsreg01 BIT5

BOOL Auto Controlled Stop request A controlled stop is requested

AuDeSt

stsreg01 BIT4

BOOL Auto Dependent object Status Auto mode order to Dependent objects

StsReg01

StsReg02

Page 70: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 70 of 72

AuDeRSt

stsreg01 BIT3

BOOL Auto Dependent object

Request Status

Auto Auto mode request sent to all dependent

objects

AlActB

stsreg01 BIT6

BOOL Alarm action blocked When the alarm action are blocked

TFuStop

stsreg01 BIT7

BOOL Temporary Full Stop

AlBW

stsreg02 BIT13 BOOL Alarm Blocked A dependent Alarm is blocked by the user

AuMoOpX REAL Auto option Mode X

requested

The control logic requested option mode X

OpMoXSt REAL Option Mode X Status Object is currently in option mode X.

Particularity

The logic of the object PROCESS CONTROL is divided into several sub-functions which are: the

logic of the interlocks, the logic of configuration, the standard logic of the object and logic

specific to the process. They have the following characteristics:

• Interlocks logic 3 interlocks are possible:

- Start Interlock (prevents the object from starting). - Full Stop Interlock (stops the object). -

Restarting requires the elimination of the interlock and the operator attending to it). -

Temporary Stop Interlock (stops of the object). Restarting does not require the intervention of

the operator except when in manual or forced mode.

• Configuration logic: This logic determines wether the object will be on or off pending

on the status of dependent objects

� One can also originate a controlled stop. In the case of an orderly pause at the request or an

interlock (off), all orders associated with the objects dependent on the process are stopped.

In the case of a controlled stop, before interrupting the orders, the object is put in a

configuration defined by the specific logic of the process.

• Standard Object Logic: There are several optional modes such as the start-up phase,

the warm up phase …There are eight possible modes which can be set either by the

command logic or by the operator. If the process is stopped, one can go from one to

another without restrictions. On the other hand, if the process is active, the passage

from one mode to another must be authorized. This is described by an [ 8,8

]authorization

• Specific Process Object Logic: the operation point of the process depends on the logic

of the interlocks, logic of configuration and standard logic of the object. A command is

then sent to the specific logic of the process. - Run Order: the process must be

activated except if there are stop interlocks or if there is a start interlock and that the

process is stopped. - Controlled Order Stop: request of controlled stop.

- Auto Order Mode: All objects depending on the process must be put in automatic mode. -

Option Mode X: Activation of the optional mode X.

Page 71: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 71 of 72

According to these commands and inputs, the logic specific to the process sends commands to

all the objects which make up the process.

Output order from Specific Logic to Dependent Objects: The orders sent to the Dependent

objects are the result of the Specific Process object logic, they are adapted to the object class

and type and sent to the Auto request of the dependent objects.

Mode Manager

Manual Manual Mode Request

Auto Inhibit Manual Mode

&

Manual Manual Mode Request

Auto Inhibit Manual Mode

&

Manual Auto Mode Request

Auto Auto Mode Request

Manual Forced Mode Request AuMost: = FALSE

MMoSt: = FALSE FoMoSt: = TRUE

AuMost: = FALSE MMoSt: = TRUE

FoMoSt: = FALSE

Manual Forced Mode Request

AuMost: = TRUE MMoSt: = FALSE FoMoSt: = FALSE

Auto Mode Default Mode

Manual Auto Mode Request

Manual Mode

Forced Mode

: Control by higher object

: Control by operator

Page 72: UNICOS PLC Objects - espace.cern.ch Documents/Test setup at Cryolab... · at the programming level. 1.1.2 OBJECT STATES Object Activity State There are three activity states: -On/Run

LHC Project Document No.

UNICOS PLC Objects

Page 72 of 72

REFERENCES

[1] P.Gayet – “UNICOS project, Object programming principles”