ptp21a40014-eq descrição blocos.pdf
TRANSCRIPT
-
Copyright ALSTOM 2008. We reserve all rights in this document and in the information contained therein.Reproduction, use or disclosure to third parties without express authority is strictly forbidden
Template No.: CS-T-010 Rev.C (Procedure CS-P-009)
ALSPA Controcad
System
Function Blocks
Library
ACCESSIBILITY Free
DATE 2008-05-21
NAME SIGNATURE
CREATED BY DELIGNE D.
CHECKED BY DOR J.C.
APPROVED BY SABOT H.
DOCUMENT TYPE
ALSTOM DOCUMENT CODE
REFERENCE LG REV ORIGIN FormatSize
Status SH/SH END N of SH
P T P 2 1 A 4 0 0 1 4 en Q EMB/PCS/CSD A4 GFE 1/342 342
-
Copyright ALSTOM 2008. We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties without express authority is strictly forbidden
ALSPA Controcad - System PTP21A40014-en Rev.QFunction Blocks - Library 2/342
REVISION HISTORY
REV CREATED BY CHECKED BY APPROVED BY DATE DESCRIPTION STAT.
A MARDUEL BARTHOULOT CANTERO 2000/06/27 First version BPEB MARDUEL BARTHOULOT CANTERO - Intermediate version BPOC MARDUEL BARTHOULOT CANTERO 2001/01/15 FIX : functionnal block deleted
ABS : input types between INT, DOUBLE & REALIF_MOVE_BOOL : redundancy managementTranslation FROM/TO BCD, FROM/TO GRAY
BPO
D MARDUEL BARTHOULOTTARDY
DOR
CANTERO 2001/11/28 News blocks TON/TOF/TP/IMP with word redundancySQRT, INV, DIV, DIVMUL : security managementMAX3 & MIN3FROM/TO BCD, FROM/TO GRAY : more explanationCompatible with the versions 3.2.4 and 3.2.5
BPE
E MARDUEL SABOT CANTERO 2002/04/12 New FB : TON_W, TOF_W, TP_W, IMP_W, IMP_R, OSL_D,OSL_W, OSL_R, EVLOG, DIV_D, DIV_R : more security,MUL2_R, AVERAGE_R : more security, LOGCPFB modified : DIV , SQRT, DIVMUL, INV, INT_TO_BCDcompatible with the version CCAD 331
BPE
F DELIGNE SABOT CANTERO 2003/02/17 Update of documentNew FB : APP_PROPS / New FB : CCL_HMIES /CCL_ICES / New FB : CCL_OMR / CUR_CTRL_FLTS / NewFB : DUAL_CTRL_FLTS / EXT_CTRL_FLTS / FCL_OMR /RECV_FROM_DUAL / New FB : S_REF / SA_REF / B_REF/ SC_REF / New FB : SEQ_END / SEQ_FG / SEQ_STEP
BPE
G DELIGNE SABOT CANTERO 2003/05/14 New FB : ZONE_S, ZONE_SA, ZONE_SB, ZONE_SC1_32,ZONE_SC33_128 BPE
H DELIGNE SABOT CANTERO 2003/06/20 NEW FB : DATE TIMEFB modified : SQRT, RCV_FROM_DUAL,SEND_TO_DUAL BPE
I DELIGNE GATEAU SABOT 2003/07/24 NEW FB : DATE TIMECorrection FB : ZONE_SC12_32 & ZONE_SC33_128Update FB : TOF & TON & TP
GFE
J DELIGNE GATEAU SABOT 2004/03/03 FB modified : EV_LOG (CR10330 / 12876),R_TRIG (CR11251), TWB (CR11225 GFE
K DELIGNE GATEAU SABOT 2005/03/22 FB modified : SEQ_FG (CR16288)SEQ_END (CR16288)SEQ_STEP (CR16288)
GFE
L DELIGNE REYDON SABOT 2005/04/21 FB modified : SEQ_FG (CR16872) GFE
M DELIGNE HOLZ SABOT 2005/06/14 FB modified : TBW (CR16262) GFE
N DELIGNE HOLZ SABOT 2006/12/20 FB modified : TOB, TBO (CR20654 - 22330)New FB : ISFLOAT / SUB / OSC_B / CYCPLS /
CUR_CPU_FLTS / CUR_E920_FLTS /CUR_EPL_FLTS / CUR_F8000_FLTS /CUR_MODBUS_FLTS / CUR_PROFIBUS_FLTS/ CUR_REDUNDANCY_FLTS /CUR_STI300_FLTS / DUAL_CPU_FLTS /DUAL_E920_FLTS / DUAL_EPL_FLTS /DUAL_F8000_FLTS / DUAL_MODBUS_FLTS /DUAL_PROFIBUS_FLTS /DUAL_REDUNDANCY_FLTS /DUAL_STI300_FLTS / PROFIBUS_CONTROL /CUR_EPL_PRES / CUR_MODBUS_PRES /DUAL_EPL_PRES / DUAL_MODBUS_PRES /APPLI_STATUS
GFE
O DELIGNE HOLZ SABOT 2007/11/29 New form documentFB modified : CUR_MODBUS_PRES (CR24939)
DUAL_MODBUS_PRES (CR24939)IMP_D, IMP_W, IMP_R, IMPW_DCYCPLS, OSC_B
GFE
P DELIGNE PERRIER SABOT 2008/04/22 FB modified : APPLI_STATUS / FCL_OMR / EVLOG /CUR_EPL_PRES / DUAL_EPL_PRES
FB created : CUR_F8000_PRES / DUAL_F8000_PRESGFE
Q DELIGNE PERRIER SABOT 2008/05/21 Update for version 4.5.1GFE
-
Copyright ALSTOM 2008. We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties without express authority is strictly forbidden
ALSPA Controcad - System PTP21A40014-en Rev.QFunction Blocks - Library 3/342
SOMMAIRE / TABLE OF CONTENTS
Section 1 PRESENTATION OF THE DOCUMENT.................................................................. 7Section 2 2OF3 : VOTING 2 OF THREE INPUTS.................................................................. 13Section 3 2OF4 : VOTING 2 OF 4 INPUTS........................................................................... 14Section 4 3OF4 : VOTING 3 OF 4 INPUTS........................................................................... 15Section 5 ABS : ABSOLUTE VALUE.................................................................................... 16Section 6 ACOS : PRINCIPAL ARC COSINE ....................................................................... 17Section 7 ACOSMC : ARC COSINE...................................................................................... 18Section 8 ACTION : ACTION CONTROL BLOCK................................................................. 19Section 9 ADD : ADDITION OF 2.N INPUTS......................................................................... 22Section 10 AND : BOOLEAN AND OF 2.N INPUTS ............................................................... 23Section 11 APP_PROPS ......................................................................................................... 24Section 12 APPLI_STATUS .................................................................................................... 26Section 13 ASIN : PRINCIPAL ARC SINE .............................................................................. 28Section 14 ASINMC : ARC SINE............................................................................................. 29Section 15 ATAN : PRINCIPAL ARC TANGENT .................................................................... 31Section 16 AVERAGE : AVERAGE......................................................................................... 32Section 17 AVERAGE_R : SECURED AVERAGE BETWEEN REALS .................................. 33Section 18 BCD_TO_INT : BCD VALUE TO DECIMAL VALUE ............................................. 35Section 19 CCL_HMIES .......................................................................................................... 37Section 20 CCL_ICES ............................................................................................................. 39Section 21 CCL_OMR ............................................................................................................. 41Section 22 CELL_TEMP.......................................................................................................... 44Section 23 CONVERGENCE_AND : CONVERGENCE OF SIMULTANEOUS
SEQUENCES ........................................................................................................ 46Section 24 CONVERGENCE_OR : CONVERGENCE OF SEQUENCE SELECTION ............. 48Section 25 COS : COSINE ...................................................................................................... 50Section 26 COSMC : COSINE................................................................................................. 51Section 27 CTUD_I/D : UP-DOWN COUNTER........................................................................ 52Section 28 CUR_CPU_FLTS................................................................................................... 56Section 29 CUR_CTRL_FLTS................................................................................................. 58Section 30 CUR_E920_FLTS .................................................................................................. 61Section 31 CUR_EPL_FLTS ................................................................................................... 63Section 32 CUR_EPL_PRES................................................................................................... 65Section 33 CUR_F8000_FLTS ................................................................................................ 67Section 34 CUR_F8000_PRES ............................................................................................... 69Section 35 CUR_MODBUS_FLTS........................................................................................... 72Section 36 CUR_MODBUS_PRES.......................................................................................... 74Section 37 CUR_PROFIBUS_FLTS ........................................................................................ 77Section 38 CUR_REDUNDANCY_FLTS ................................................................................. 79Section 39 CUR_STI300_FLTS............................................................................................... 81Section 40 CYCPLS : CYCLE PULSE..................................................................................... 84
-
Copyright ALSTOM 2008. We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties without express authority is strictly forbidden
ALSPA Controcad - System PTP21A40014-en Rev.QFunction Blocks - Library 4/342
Section 41 DATE TIME............................................................................................................ 87Section 42 DEMUX_I/D/R : DEMULTIPLEXER ....................................................................... 89Section 43 DIV : DIVIDE......................................................................................................... 91Section 44 DIV_D : INTEGER DIVIDE..................................................................................... 92Section 45 DIV_R : REAL DIVIDE........................................................................................... 94Section 46 DIVERGENCE_AND : DIVERGENCE OF SIMULTANEOUS SEQUENCES ......... 96Section 47 DIVERGENCE_OR : DIVERGENCE OF SEQUENCE SELECTION...................... 98Section 48 DIVMUL : DIVISION AND MULTIPLICATION ..................................................... 100Section 49 DUAL_CPU_FLTS............................................................................................... 102Section 50 DUAL_CTRL_FLTS............................................................................................. 104Section 51 DUAL_E920_FLTS.............................................................................................. 107Section 52 DUAL_EPL_FLTS ............................................................................................... 109Section 53 DUAL_EPL_PRES .............................................................................................. 111Section 54 DUAL_F8000_FLTS ............................................................................................ 113Section 55 DUAL_F8000_PRES ........................................................................................... 115Section 56 DUAL_MODBUS_FLTS ...................................................................................... 118Section 57 DUAL_MODBUS_PRES...................................................................................... 120Section 58 DUAL_PROFIBUS_FLTS.................................................................................... 123Section 59 DUAL_REDUNDANCY_FLTS ............................................................................. 125Section 60 DUAL_STI300_FLTS........................................................................................... 127Section 61 END OF SEQUENCE SEQ_END......................................................................... 130Section 62 EQ : EQUALITY................................................................................................... 132Section 63 EVLOG : EVENT LOG......................................................................................... 133Section 64 EXP : EXPONENTIAL ......................................................................................... 142Section 65 EXP : EXPONENTIAL ......................................................................................... 143Section 66 EXPT : EXPONENTIATION................................................................................. 144Section 67 EXT : EXTENSION .............................................................................................. 145Section 68 EXT_CTRL_FLTS................................................................................................ 147Section 69 F_TRIG : FALLING EDGE DETECTOR .............................................................. 151Section 70 FCL_OMR............................................................................................................ 153Section 71 FGEN : FUNCTION GENERATOR ...................................................................... 155Section 72 FUNCTION GROUP SEQ_FG ............................................................................. 157Section 73 GE : GREATER OR EQUAL................................................................................ 166Section 74 GRAY_TO_INT : GRAY DECODING................................................................... 167Section 75 GT : GREATER ................................................................................................... 169Section 76 IF_MOVE_BOOL : CONDITIONNED MOVE_BOOL BLOCK.............................. 170Section 77 IMP_D : PULSE (PARAMETER TYPE DOUBLE INTEGER UNIT 0,01
SECOND) ............................................................................................................ 172Section 78 IMP_R : PULSE (PARAMETER TYPE REAL UNIT 1 SECOND) ..................... 177Section 79 IMP_W : PULSE (PARAMETER TYPE WORD UNIT 0,01 SECOND) .............. 181Section 80 IMPW_D : PULSE (PARAMETER TYPE DOUBLE INTEGER UNIT 0,01
SECOND) ............................................................................................................ 186Section 81 INT_TO_BCD : BCD CODING............................................................................. 191Section 82 INT_TO_GRAY : GRAY CONFIG........................................................................ 193
-
Copyright ALSTOM 2008. We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties without express authority is strictly forbidden
ALSPA Controcad - System PTP21A40014-en Rev.QFunction Blocks - Library 5/342
Section 83 INV : INVERSE .................................................................................................... 195Section 84 ISFLOAT : TEST IF VARIABLE HAS A FLOAT FORMAT.................................. 197Section 85 LE : LESS OR EQUAL ........................................................................................ 199Section 86 LIMIT : LIMITER .................................................................................................. 200Section 87 LN : NEPERIAN LOGARITHM ............................................................................ 202Section 88 LOG : LOGARITHM BASE 10............................................................................. 203Section 89 LOGCP : LOGICAL THRESHOLD ...................................................................... 204Section 90 LT : LESS THAN ................................................................................................. 208Section 91 MAX : MAX OF 2.N INPUTS................................................................................ 209Section 92 MAX3 : MAX OF 2 OR 3 INPUTS........................................................................ 211Section 93 MIN : MIN OF 2.N INPUTS .................................................................................. 213Section 94 MIN3 .................................................................................................................... 215Section 95 MOD : MODULO.................................................................................................. 217Section 96 MOVE : MOVE..................................................................................................... 218Section 97 MOVE_B : MOVE(BOOLEAN) ............................................................................ 219Section 98 MUL : MULTIPLICATION OF 2.N INPUTS.......................................................... 220Section 99 MUL2_R : MULTIPLICATION OF 2 REAL INPUTS ............................................ 221Section 100 MUX : MULTIPLEXER......................................................................................... 223Section 101 NE : INEQUALITY ............................................................................................... 225Section 102 NOT : LOGICAL NEGATION............................................................................... 226Section 103 OPP : OPPOSITION ............................................................................................ 227Section 104 OR : BOOLEAN OR OF 2.N INPUTS ................................................................. 228Section 105 OSC_B : OSCILLATOR ...................................................................................... 229Section 106 OSL_D : ONE SHOT LIMITED FOR DOUBLE, 32 BITS REDUNDANCY ........... 232Section 107 OSL_R : ONE SHOT LIMITED FOR REAL, 32 BITS REDUNDANCY ................ 235Section 108 OSL_W : ONE SHOT LIMITED FOR WORD, 16 BITS REDUNDANCY .............. 238Section 109 PROFIBUS_CONTROL ....................................................................................... 241Section 110 R_TRIG : RISING EDGE DETECTOR ................................................................. 245Section 111 RECV_FROM_DUAL........................................................................................... 247Section 112 ROL : LEFT-ROTATED BY N BITS CIRCULAR ................................................. 249Section 113 ROR : RIGHT-ROTATED BY N BITS CIRCULAR............................................... 250Section 114 RS BISTABLE FUNCTION BLOC (RESET DOMINANT) .................................... 251Section 115 S_REF ................................................................................................................. 253Section 116 SA_REF............................................................................................................... 256Section 117 SB_REF............................................................................................................... 259Section 118 SC_REF............................................................................................................... 261Section 119 SEL : BINARY SELECTION................................................................................ 263Section 120 SEL_B : BINARY SELECTION BETWEEN BOOLEANS.................................... 265Section 121 SEND_TO_DUAL ................................................................................................ 267Section 122 SHL : LEFT-SHIFTED BY N BITS,ZERO FILLED ON RIGHT............................. 269Section 123 SHR : RIGHT-SHIFTED BY N BITS,ZERO FILLED ON LEFT ............................ 270Section 124 SIN : SINE ........................................................................................................... 271Section 125 SINMC : SINE...................................................................................................... 272Section 126 SM : SUM ............................................................................................................ 274
-
Copyright ALSTOM 2008. We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties without express authority is strictly forbidden
ALSPA Controcad - System PTP21A40014-en Rev.QFunction Blocks - Library 6/342
Section 127 SQRT : SQUARE ROOT ..................................................................................... 276Section 128 SR : BISTABLE FUNCTION BLOC (SET DOMINANT)....................................... 278Section 129 STEP OF SEQUENCE (SEQ_STEP)................................................................... 280Section 130 STEP : PAIR ( STEP, TRANSITION ) OF THE SFC MODEL .............................. 284Section 131 SUB : SUBSTRACTION ...................................................................................... 286Section 132 TAN : TANGENT ................................................................................................. 288Section 133 TBO : TRANSFER BIT/BYTE.............................................................................. 289Section 134 TBW : TRANSFER BIT/WORD ........................................................................... 291Section 135 TOB : TRANSFER BYTE/BIT.............................................................................. 293Section 136 TOF_D : OFF-DELAY FOR DOUBLE, WITH REDUNDANCY 32 BITS............... 295Section 137 TOF_R : OFF-DELAY FOR REAL....................................................................... 297Section 138 TOF_W: OFF-DELAY for WORD ........................................................................ 299Section 139 TOFI_D : OFF-DELAY FOR DOUBLE, 16 BITS REDUNDANT .......................... 301Section 140 TOFW_D : OFF-DELAY FOR DOUBLE, WITH REDUNDANCY 16 BITS ........... 303Section 141 TON_D : ON-DELAY FOR DOUBLE, WITH REDUNDANCY 32 BITS ................ 305Section 142 TON_R : ON-DELAY FOR REAL ........................................................................ 307Section 143 TON_W : ON-DELAY FOR WORD, WITH REDUNDANCY 16 BITS................... 309Section 144 TONI_D : ON-DELAY FOR DOUBLE, WITH REDUNDANCY 16 BITS ............... 311Section 145 TONW_D : ON-DELAY FOR DOUBLE, WITH REDUNDANCY 16 BITS............. 313Section 146 TP_D : PULSE TIMING FOR DOUBLE, WITH 34 BITS REDUNDANCY ............ 315Section 147 TP_R : PULSE TIMING FOR REAL .................................................................... 317Section 148 TP_W : PULSE TIMING FOR WORD, WITH 18 BITS REDUNDANCY ............... 319Section 149 TPI_D : PULSE TIMING FOR DOUBLE, WITH 18 BITS REDUNDANCY ........... 321Section 150 TPW_D : PULSE TIMING FOR DOUBLE, WITH 18 BITS REDUNDANCY......... 323Section 151 TRANSP_VAL : TRANSPORT VALIDATOR....................................................... 325Section 152 TRIGGER_SPT : TRIGGER OF SET POINT ....................................................... 327Section 153 TWB : TRANSFER WORD/BIT ........................................................................... 329Section 154 XOR : EXCLUSIVE OR........................................................................................ 331Section 155 ZONE_S : %S BIT VALUE ................................................................................. 333Section 156 ZONE_SA : %SA BIT VALUE ............................................................................. 335Section 157 ZONE_SB : %SB BIT VALUE ............................................................................. 337Section 158 ZONE_SC1_32 : %SC1_32 BIT VALUE.............................................................. 339Section 159 ZONE_SC33_128 : %SC33_128 BIT VALUE...................................................... 341
-
Section 1 PRESENTATION OF THE DOCUMENT
Copyright ALSTOM 2008. We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties without express authority is strictly forbidden
ALSPA Controcad - System PTP21A40014-en Rev.QFunction Blocks - Library 7/342
Section 1 PRESENTATION OF THE DOCUMENT
This document describes the use of the function blocks belonging to the systemlibrary. Each function block is described in a technical sheet enclosed in thefollowing document. The technical sheets are presented in alphabetical order.
1.1 Presentation Of The Technical Sheets
The technical sheet includes the following items :
The name of the function block (on the left top of the sheet),
The graphical Representation of the function block,
The FB function description
The table of arguments characteristics,
The function block use description that includes ;
an optional and specific argument description,
some notes on particular use.
the fast description of the state variables used inside the block
The function block specification of the variables used into the FB.
the technical description of the variables used in the FB,
the LEA code generated by CONTROCAD in place of the graphical FBs,
the basic function used by the FB.
-
Section 1 PRESENTATION OF THE DOCUMENT
Copyright ALSTOM 2008. We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties without express authority is strictly forbidden
ALSPA Controcad - System PTP21A40014-en Rev.QFunction Blocks - Library 8/342
1.2 Function Block Graphical Representaton
1.3 Function Block Use Description
A function block Representation is given hereafter ;
1- Name of the function block,
2- Code name(10 characters) ; name of the argument which is used in the FBcode,
3- Display name (10 characters): name of the argument displayed inCONTROCAD,
4- ARROW :
Full arrow : represent an input/output that must be wired to another FB,or connected to a variable or an immediate value (mandatoryconnection='Y'),
Empty arrow : represent an optional input/output.
-
Section 1 PRESENTATION OF THE DOCUMENT
Copyright ALSTOM 2008. We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties without express authority is strictly forbidden
ALSPA Controcad - System PTP21A40014-en Rev.QFunction Blocks - Library 9/342
1.4 Table Of Arguments Characteristics
Name Description Type Neg Range Mand.Connection
Def.Value
MandData
Advisedparameters
value
Firstscanvalue
Inputs
INPUT1 (IN1)IN2IN3IN4
InputInputInputInput
BBBB
YYYY
----
YYNY
--1-
NNNN
----
----
Outputs
RE Operatorresult
Boolean
Y - Y - Y - -
Parameters
There are two names for an argument. The key name which is used into the codeand the display name which is displayed. Often, the names are the same, butsometimes they could be differents. In this case, the display name is betweenparents.
The differents columns contain:
NAME : name of the argument
input
output
parameters : it is an input often connected to a tunning variable whichcan have 2 levels :
Configurator : the parameters cant be changed online(eg : mechanical characteristics).
User : the parameters can be changed online.
DESCRIPTION : description of the argument,
-
Section 1 PRESENTATION OF THE DOCUMENT
Copyright ALSTOM 2008. We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties without express authority is strictly forbidden
ALSPA Controcad - System PTP21A40014-en Rev.QFunction Blocks - Library 10/342
TYPE : a variable can have one of the following types :(B)OOLEAN [1 bit, 0 or 1](W)ORD [16 bits integer, from 0 to 65535](I)NTEGER [16 bits integer, from 32768 to 32767](L)ONG [32 bits integer, from 0 to 4294967295](D)OUBLE [32 bits integer, from 2147483648 to 2147483647](R)EAL [32 bits, +/- 3,438](TIME)DURATION [32 bits](SINT) Short INT [8 bits](USINT) Unsigned Short INT [8 bits]ANY_INT WORD, INTEGER, LONG, DOUBLE, TIME DURATION, SINT, USINTANY_NUM WORD, INTEGER, LONG, DOUBLE, REAL, TIME DURATION, SINT,
USINTANY_NUM : mean that all the arguments in the FB must be in the same type.
For arguments representing an array of value, the lenght must beindicated. eg : an array of 8 boolean -> BOOLEAN[8].
RANGEFor each argument, the limit of the numerical value must be indicated according toits type. Sometimes it is important to give its physical value.
NEGIt is the possibilty of negation for a boolean input (/) and of opposition for anumerical input (-). The choce between the negation and the opposition is accordingto the genius of the component, which can be logical or numerical.
MANDATORY CONNECTIONWhen set to "Y" the argument must be wired to another FB, or connected to avariable or an immediate value.
DEFAULT VALUEIts the default value of the signal on an argument if there is no signal associatedwith that argument. Another possibility to define a default signal is to declare aDEFAULT VARIABLE by using the pre-processing directives of the LEA language.
MANDATORY DATAObligation to affect a value or a variable to the argument.
ADVISED PARAMETER VALUEValue used in normal condition during the execution of the FB.This value is anattribute of the connected varible.
FIRST SCAN VALUEValue of the argument during the first execution cycle. It allows the function block tobe internally initialized.
-
Section 1 PRESENTATION OF THE DOCUMENT
Copyright ALSTOM 2008. We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties without express authority is strictly forbidden
ALSPA Controcad - System PTP21A40014-en Rev.QFunction Blocks - Library 11/342
1.5 General Type Of Argument
There is a rule to name the arguments according to their goal inside the block :
HY hysteresis RUN run commandHI high limit BCL busy for closed loopLO low limit BOL busy for open loopHT high threshold BSY busyLT low threshold ME measurementDL line validation SP set pointDI Disable input FRZ freezeDF default validation OLC open loop compaignTY type of process TRK trackingSL slope ENO error outputPT Period of Time GN gainIN input AT attenuationIC init command TH thresholdIV init value BD BandIS init status LL Low limit indicatorST Status HL High limit indicatorRE Result
1.5.1 Function or function block ?
The international standard IEC 1131-3 defines the functions and the function blocks.
A function is defined as something which, when executed, yields exactly onedata element and whose invocation can be used as an operand in aexpression. Functions shall contain no internal state information: theinvocation of a function with the same inputs shall always yield the sameoutputs. Since the name of the function is often used for the assignment of itsoutput value, no formal output name shall be shown at the right side of theblock.
A function block is defined as something which, when executed, yields one ormore values. It can have state variables, and the invocation of the same FBwith the same inputs nedd not always yield the same output values.
The IEC standard defines the basic functions and functions blocks. CONTROCADprovides a main part of all these basic blocks, but sometimes a block which is afunction inside the standard IEC is a function block inside CONTROCAD. Weindicate the nature of the block.
1.5.2 State variables & redundancy
If the block is a function block we indicate the variables used inside the block, whichcan be state variables or work variables. A state variable is a redundant variable: theusers don't have to matter with the redundancy of all their other variables. Theirprogram will stand the redundancy.
-
Copyright ALSTOM 2008. We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties without express authority is strictly forbidden
ALSPA Controcad - System PTP21A40014-en Rev.QFunction Blocks - Library 13/342
Section 2 2OF3 : VOTING 2 OF THREE INPUTS
2.1 Representation
2.2 Function
The output RE of the function block is set to 1 if at least 2 inputs are set to 1.Theoutput DFA of the function block is set to 1 if all inputs are not identical.
2.3 Arguments Characteristics
Name Description Type Neg Range Mand.Connection
Def.value
MandData
Advisedparameters
value
Firstscanvalue
Inputs
IN1IN2IN3
Input 1Input 2Input 3
BBB
Y(/)Y(/)Y(/)
---
YYY
---
NNN
---
---
Outputs
REDFA
ResultAntivalence
BB
Y(/)Y(/)
--
YN
- YY
- -
Parameters
2.4 Use
No state variables. It is a function block in the meaning of IEC.
2.5 Specifications
Function block code
BOO IN1.IN2+IN2.IN3+IN3.IN1=RE#IF defined ($DFA)BOO /(IN1.IN2.IN3 + /IN1./IN2./IN3)= DFA#ENDIF
-
Copyright ALSTOM 2008. We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties without express authority is strictly forbidden
ALSPA Controcad - System PTP21A40014-en Rev.QFunction Blocks - Library 14/342
Section 3 2OF4 : VOTING 2 OF 4 INPUTS
3.1 Representation
3.2 Function
The output RE of the function block is set to 1 if at least 2 inputs are set to 1. Theoutput DFA of the function block is set to 1 if all inputs are not identical.
3.3 Arguments Characteristics
Name Description Type Neg Range Mand.Connection
Def.Value
Mand.Data
Advisedparameters
value
Firstscanvalue
Inputs
IN1IN2IN3IN4
InputInputInputInput
BBBB
Y(/)Y(/)Y(/)Y(/)
----
YYYY
----
NNNN
----
----
Outputs
REDFA
ResultAntivalence
BB
Y(/)Y(/)
--
YN
- YY
- -
Parameters
3.4 Use
The block is a function block in the IEC meaning, without state variables.
3.5 Specifications
3.5.1 Function block code
BOO IN1.IN2+IN1.IN3+IN1.IN4+IN2.IN3+IN2.IN4+IN3.IN4=RE#IF defined ($DFA)BOO /(IN1.IN2.IN3.IN4 + /IN1./IN2./IN3./IN4) = DFA#ENDIF
-
Copyright ALSTOM 2008. We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties without express authority is strictly forbidden
ALSPA Controcad - System PTP21A40014-en Rev.QFunction Blocks - Library 15/342
Section 4 3OF4 : VOTING 3 OF 4 INPUTS
4.1 Representation
4.2 Function
The output RE of the function block is set to 1 if at least 3 inputs are set to 1. Theoutput DFA of the function block is set to 1 if all inputs are not identical.
4.3 Arguments Characteristics
Name Description Type Neg Range Mand.Connection
Def.Value
MandData
Advisedparameters
value
Firstscanvalue
Inputs
IN1IN2IN3IN4
Input 1Input 2Input 3Input 4
BBBB
Y(/)Y(/)Y(/)Y(/)
----
YYYY
----
NNNN
----
----
Outputs
REDFA
ResultAntivalence
BB
Y(/)Y(/)
- YN
- YY
- -
Parameters
4.4 Use
No state variable. Function block in the IEC meaning
4.5 Specifications
4.5.1 Internal function block code
BOO IN2.IN3.IN4+IN1.IN3.IN4+IN1.IN2.IN4+ IN1.IN2.IN3=RE#IF defined ($DFA)BOO /(IN1.IN2.IN3.IN4 + /IN1./IN2./IN3./IN4) = DFA#ENDIF
-
Copyright ALSTOM 2008. We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties without express authority is strictly forbidden
ALSPA Controcad - System PTP21A40014-en Rev.QFunction Blocks - Library 16/342
Section 5 ABS : ABSOLUTE VALUE
5.1 Representation
5.2 Function
The ABS function block sends in its output RE the absolute value of IN.
5.3 Arguments Characteristics
Name Description Type Neg Range Mand.connection
Def.value
Mand.Data
Advisedparameters
value
Firstscanvalue
Inputs
IN InputINT,
DOUBLE,REAL,SINT,USINT
Y(-) - Y - N - -
Outputs
RE Result output ANY_NUM Y(-) - Y - N - -Parameters
5.4 Use
It is a function in the meaning of IEC.
5.5 Specifications
5.5.1 Generated expression
ABS (IN)
-
Copyright ALSTOM 2008. We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties without express authority is strictly forbidden
ALSPA Controcad - System PTP21A40014-en Rev.QFunction Blocks - Library 17/342
Section 6 ACOS : PRINCIPAL ARC COSINE
6.1 Representation
6.2 Function
The function block returns in its output the arccosine of IN in the range 0 to radians.
6.3 Arguments Characteristics
Name Description Type Neg Range Mand.Connection
Def.value
Mand.Data
Advisedparameters
value
Firstscanvalue
Inputs
IN Input REAL Y(-) [-1 ;1] Y - N - -
Outputs
RE Operatorresult
REAL Y(-) [0 ;]radians
Y - N - -
Parameters
6.4 Use
If the input IN is less than 1 or greater than 1, ACOS returns an indefinite value.This function block is a function in the meaning of IEC
6.5 Specifications
6.5.1 Generated expression
ACOS (IN)
-
Copyright ALSTOM 2008. We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties without express authority is strictly forbidden
ALSPA Controcad - System PTP21A40014-en Rev.QFunction Blocks - Library 18/342
Section 7 ACOSMC : ARC COSINE
7.1 Representation
7.2 Function
The ACOSMC function block returns in its output the arccosine of IN in the range 0to *10000 radians.Input scale range : -1 is equivalent to 10000 and +1 is equivalent to +10000.
Output scale range : 0 is equivalent to 0 and is equivalent to *10000.
7.3 Arguments Characteristics
Name Description Type Neg Range Mand.Connection
Def.value
Mand.Data
Advisedparameters
value
Firstscanvalue
Inputs
IN Input I Y(-) [-10000 ;+10000]
Y - N - -
Outputs
RE Operatorresult
I Y(-) [0 ;*10000]radians
Y - Y - -
Parameters
7.4 Use
If the input IN is less than 10000 or greater than 10000, ACOSMC returns anindefinite value in its output RE.The block is a function block in the meaning of IEC, without state variables.
7.5 Specifications
7.5.1 Function block code
CAL 10000 * ACOS(/10000.0) =
-
Copyright ALSTOM 2008. We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties without express authority is strictly forbidden
ALSPA Controcad - System PTP21A40014-en Rev.QFunction Blocks - Library 19/342
Section 8 ACTION : ACTION CONTROL BLOCK
8.1 Representation
8.2 Function
This block is relevant to a sequential function block diagram.
Actions shall be associated with steps via graphical action blocks. But for a goodvisibility, control of actions shall be expressed by actions qualifiers. The best wayto associate an action with diffrents steps is to use the action control block.
QUALIFIER EXPLANATION
N Non storedR Overriding resetS Set (stored)L Time limitedD Time delayedP PulseSD Stored and time delayedDS Delayed and storedSL Stored and time limited
An action control block is a graphical element for the combination of a booleanvariable with one of the actions qualifiers, to produce an enabling condition,according to the rules given below, for an associated action.
-
Copyright ALSTOM 2008. We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties without express authority is strictly forbidden
ALSPA Controcad - System PTP21A40014-en Rev.QFunction Blocks - Library 20/342
Associated with each action shall be the functional equivalent of an instance of theACTION_CONTROL function block. If the action is declared as a boolean variable,the output of the block ACTION_CONTROL shall be the state of this booleanvariable. If the action is declared as a collection of boolean transferts, then thiscollection shall be executed continually while the output of the ACTION_CONTROLblock stands at TRUE. The IF_MOVE_BOOL block is the block of a transfertaccording to a condition.
It is not required that the ACTION_CONTROL block itself be implemented, but onlythat the control of actions be equivalents to the precedent rules.
8.3 Arguments Characteristics
Name Description Type Neg Range Mand.connection
Def.value
Mand.Data
Advisedparameters
value
Firstscanvalue
Inputs
N
R
S
L
D
P
SD
DS
SL
Non Stored
Overriding Reset
Set (Stored)
Time Limited
Time Delayed
Pulse
Stored and TimeDelayed
Delayed ansStored
Stored ans TimeLimited
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
N
N
N
N
N
N
N
N
N
- N
N
N
N
N
N
N
N
N
FALSE
FALSE
FALSE
FALSE
FALSE
FALSE
FALSE
FALSE
FALSE
N
N
N
N
N
N
N
N
N
- -
Outputs
Q Output Boolean N - Y - Y - -Parameters
T Time, in 0.01 s Duration N N 0 N
8.4 Use
The best way to use it is to have only an instance of block by action. For example, iltwo steps are associated with the same action which is the set not stored of aboolean variable, a OR gate must be used for the logical union between the statevariables of each step and the rsult of the OR gate must be connected with theentry N of the block. The scurity is to have only one time the set of the value of anaction.
There is a lot of indirect state variables, which are the state variable of the rizingtrigger, of the 4 blocks RS and of the 5 blocks TON_D.
-
Copyright ALSTOM 2008. We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties without express authority is strictly forbidden
ALSPA Controcad - System PTP21A40014-en Rev.QFunction Blocks - Library 21/342
8.5 Specifications
8.5.1 Internal Variables
The output of a block SR associated with S entry: VS, boolean
The outputs of a block TON_D associated with L entry : VL, boolean and VTL,duration
The outputs of a block TON_D associated with D entry : VD, boolean and VTD,duration
The output of the block R_TRIG associated with P entry: VP, boolean
The output of the block RS associated with SD entry : VSD1, boolean
The outputs of the block TON_D associated with SD entry : VSD2, boolean, andVTSD2, duration
The ouputs of the block TON_D associated with DS entry : VDS1, boolean andVTDS1, duration
The outputs of the block RS associated with DS entry : VDS2, boolean
The output of the block RS associated with SL entry : VSL1, boolean
The outputs of the block TON_D associated with SL entry : VSL2, boolean andVTSL2, duration
8.5.2 Internal code
#FB( RS, S, R, 0, VS, )#FB( TON_D, L, T, VL, VTL )#FB( TON_D, D, T, VD, VTD )#FB( R_TRIG, P, VP )#FB( RS, SD, R, 0, VSD1, )#FB( TON_D, VSD1, T, VSD2, VTSD2 )#FB( TON_D, DS, T, VDS1, VTDS1 )#FB( RS, VDS1, R, 0, VDS2, )#FB( RS, SL, R, 0, VSL1, )#FB( TON_D, VSL1, T, VSL2, VTSL2 )BOO /R.(N + VS + L./VL + VD + VP + VSD2 + VDS2 + VSL1./VSL2) = Q
-
Copyright ALSTOM 2008. We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties without express authority is strictly forbidden
ALSPA Controcad - System PTP21A40014-en Rev.QFunction Blocks - Library 22/342
Section 9 ADD : ADDITION OF 2.N INPUTS
9.1 Representation
9.2 Function
The functionality of the ADD block is as the following : RE = IN1+IN2+.+Inn
9.3 Arguments Characteristics
Name Description Type Neg Range Mand.Connection
Def.value
Mand.Data
Advisedparameters
value
Firstscanvalue
Inputs
ININn Inputs to beadded
ANY_NUM Y(-) - Y - N - -
Outputs
RE Operatorresult
ANY_NUM Y(-) - Y - N - -
Parameters
9.4 Use
No indication of overflow.
It is a function, in the meaning of IEC
9.5 Specifications
9.5.1 generated expression
I1 + I2 +IN
-
Copyright ALSTOM 2008. We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties without express authority is strictly forbidden
ALSPA Controcad - System PTP21A40014-en Rev.QFunction Blocks - Library 23/342
Section 10 AND : BOOLEAN AND OF 2.N INPUTS
10.1 Representation
10.2 Function
The function block AND represent Boolean logic AND gates for 2.N inputs.
The functionality of the AND block is to do :
with boolean inputs, the boolean AND
with word or integer inputs, the boolean AND bit by bit
10.3 Arguments Characteristics
Name Description Type Neg Range Mand.connection
Def.value
Mand.Data
Advisedparameters
value
Firstscanvalue
Inputs
IN1..Inn Inputs B/W/I Y(/) - Y - N - -
Outputs
RE Result output B/W/I Y(/) - Y - N - -Parameters
10.4 Use
It is a function in the meaning of IEC.
10.5 Specifications
10.5.1 Expression generated
IN1.IN2 INn
-
Copyright ALSTOM 2008. We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties without express authority is strictly forbidden
ALSPA Controcad - System PTP21A40014-en Rev.QFunction Blocks - Library 24/342
Section 11 APP_PROPS
11.1 Representation
11.2 Function
The APP_PROPS function block shows the application properties such as theinitialization phase, the cycle time and the presence of the master controller. It canbe used in any controller (cell or field controller).
11.3 Arguments Characteristics
Name Description Type Neg Range Mand.Connection
Def.value
Mand.Data
Advisedparameters
value
Firstscanvalue
Output
RE_INITRE_CYC
RE_MASTER
Indicator ofInitialisationCycle Time
Master Indicator
B
LB
Y
NY
N
NN
Y
YY
11.4 Use
Not used for a CE2000
11.4.1 Description of terminals
RE_INIT : It is set to 1 at the first cycle of the controller, then set to 0 for theother cycles.
RE_CYC : It shows the cycle time in milliseconds. It depends on the applicationsweep time and the period of POU owner of diagram where is putthis function block.Application Sweep Time POUs Period = RE_CYC
RE_MASTER : It is set to 1 when the controller is present in master running mode.If the controller is alone, it is always set to 1.
-
Copyright ALSTOM 2008. We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties without express authority is strictly forbidden
ALSPA Controcad - System PTP21A40014-en Rev.QFunction Blocks - Library 25/342
11.5 Specifications
11.5.1 Internal variables
None
11.5.2 Internal code
#IF defined ($RE_INIT)BOO INIT = RE_INIT
#ENDIF
#IF defined ($RE_CYC)CAL CYC = RE_CYC
#ENDIF
#IF defined ($RE_MASTER)BOO MASTER = RE_MASTER
#ENDIF
-
Copyright ALSTOM 2008. We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties without express authority is strictly forbidden
ALSPA Controcad - System PTP21A40014-en Rev.QFunction Blocks - Library 26/342
Section 12 APPLI_STATUS
12.1 Representation
12.2 Function
To prevent the maintenance of a Safety equipment, the APPLI_STATUS functionblock allowed to inform applicative bits which go back to the CENTRALOG throughMFC3000's STAT. These applicative bits correspond to diagnostic bits of the safetyequipment.
It has to obligatory entries :
NON_BLOCK
HIGH_TEMP
12.3 Arguments Characteristics
Name Description Type Neg Range Mand.Connection
Def.value
Mand.Data
Advisedparameters
value
Firstscanvalue
Inputs
NON_BLOCK
HIGH_TEMP
Non blocking faultTemperature high
limit reached
B
B
N
N
-
-
Y
Y
-
-
Y
Y
-
-
-
-
12.4 Use
Used for a MFC3000
12.5 Description Of Terminals
NON_BLOCK : Set to 1 if non blocking fault. It makes it possible to ensure themaintenance of the safety equipment before a second fault does notcause the release of alarm
HIGH_TEMP : Set to 1 to prevent the going beyond of the temperature
-
Copyright ALSTOM 2008. We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties without express authority is strictly forbidden
ALSPA Controcad - System PTP21A40014-en Rev.QFunction Blocks - Library 27/342
12.6 Specifications
12.6.1 Internal variables
BIT_INDEX usint
BIT_VALUE usint
BYTE_INDEX usint
BYTE_VALUE2 Boolean
12.6.2 Internal code
#IF $TARGET_TYPE !~ 'PCX'#ERROR Invalid target type '$TARGET_TYPE'#ENDIF
(* Common bit index in driver tablesCAL CCAD_SAFETY_EQPT_NUM MOD 8 = BIT_INDEX
(* B0: Configured safety equipmentTBW 1 = CCAD_APPLI_STATUS(0)
(* B1: Safety equipment present on channel 1CAL 1 + CCAD_SAFETY_NET_NUM * 32 + 0 + CCAD_SAFETY_EQPT_NUM / 8 = BYTE_INDEXSHR CCAD_SENT_TO_DUAL (BYTE_INDEX), BIT_INDEX = BIT_VALUETWB BIT_VALUE = BIT_VALUE2BOO / BIT_VALUE2 = BIT_VALUE2TBW ,BIT_VALUE2 = CCAD_APPLI_STATUS(0)
(* B2: Safety equipment present on channel 2CAL 1 + CCAD_SAFETY_NET_NUM * 32 + 8 + CCAD_SAFETY_EQPT_NUM / 8 = BYTE_INDEXSHR CCAD_SENT_TO_DUAL (BYTE_INDEX), BIT_INDEX = BIT_VALUETWB BIT_VALUE = BIT_VALUE2BOO / BIT_VALUE2 = BIT_VALUE2TBW ,,BIT_VALUE2 = CCAD_APPLI_STATUS(0)
(* B3: Non blocking faultTBW ,,,NON_BLOCK = CCAD_APPLI_STATUS(0)
(* B4: Temperature high limit reachedTBW ,,,,HIGH_TEMP = CCAD_APPLI_STATUS(0)
(* B5: Safety equipment com. OK on channel 1(* B7: Safety equipment com. OK on channel 1 on dual PCXCAL 1 + CCAD_SAFETY_NET_NUM * 32 + 16 + CCAD_SAFETY_EQPT_NUM / 8 = BYTE_INDEXSHR CCAD_SENT_TO_DUAL (BYTE_INDEX), BIT_INDEX = BIT_VALUETWB BIT_VALUE = BIT_VALUE2BOO / BIT_VALUE2 = BIT_VALUE2TBW ,,,,,BIT_VALUE2 = CCAD_APPLI_STATUS(0)SHR CCAD_RECVD_FROM_DUAL (BYTE_INDEX), BIT_INDEX = BIT_VALUETWB BIT_VALUE = BIT_VALUE2BOO / BIT_VALUE2 = BIT_VALUE2TBW ,,,,,,,BIT_VALUE2 = CCAD_APPLI_STATUS(0)
(* B6: Safety equipment com. OK on channel 2(* B8: Safety equipment com. OK on channel 2 on dual PCXCAL 1 + CCAD_SAFETY_NET_NUM * 32 + 24 + CCAD_SAFETY_EQPT_NUM / 8 = BYTE_INDEXSHR CCAD_SENT_TO_DUAL (BYTE_INDEX), BIT_INDEX = BIT_VALUETWB BIT_VALUE = BIT_VALUE2BOO / BIT_VALUE2 = BIT_VALUE2TBW ,,,,,,BIT_VALUE2 = CCAD_APPLI_STATUS(0)SHR CCAD_RECVD_FROM_DUAL (BYTE_INDEX), BIT_INDEX = BIT_VALUETWB BIT_VALUE = BIT_VALUE2BOO / BIT_VALUE2 = BIT_VALUE2TBW BIT_VALUE2 = CCAD_APPLI_STATUS(1)
-
Copyright ALSTOM 2008. We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties without express authority is strictly forbidden
ALSPA Controcad - System PTP21A40014-en Rev.QFunction Blocks - Library 28/342
Section 13 ASIN : PRINCIPAL ARC SINE
13.1 Representation
13.2 Function
The ASIN function block returns in its output RE the arcsine of IN in the range /2to /2 radians.
13.3 Arguments Characteristics
Name Description Type Neg Range Mand.Connection
Def.Value
Mand.Data
Advisedparameters
value
Firstscanvalue
Inputs
IN Input REAL Y(-) [-1 ;1] Y - N - -
Outputs
RE Operatorresult
REAL Y(-) [-/2 ; /2]radians
Y - N - -
Parameters
13.4 Use
If the input IN is less than 1 or greater than 1, ASIN returns an indefinite value in itsoutput RE.Recommendation : To avoid overflow problems, a solution is to connect a limiter tothe output of the ASIN block.It is a function in the meaning of IEC.
13.5 Specifications
13.5.1 Generated expression
ASIN(IN)
-
Copyright ALSTOM 2008. We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties without express authority is strictly forbidden
ALSPA Controcad - System PTP21A40014-en Rev.QFunction Blocks - Library 29/342
Section 14 ASINMC : ARC SINE
14.1 Representation
14.2 Function
The ASIN function block returns in its output RE the arcsine of IN in the range /2*10000 to /2*10000 radians.
Input scale range : -1 is equivalent to 10000 and +1 is equivalent to+10000.
Output scale range :-/2 is equivalent to -/2*10000 and /2 is equivalent to/2*10000.
14.3 Arguments Characteristics
Name Description Type Neg Range Mand.connection
Def.Value
Mand.Data
Advisedparameters
value
Firstscanvalue
Inputs
IN Input I Y(-) [-10000 ;10000] Y - N - -
Outputs
RE Operatorresult
I Y(-) [-/2*10000;/2*10000]
radians
Y - Y - -
Parameters
14.4 Use
If the input IN is less than 10000 or greater than 10000, ASIN returns an indefinitevalue in its output RE.Recommendation : To avoid overflow problems, a solution is to connect a limiter tothe output of the ASIN function block.this block is a function block in the meaning of IEC, without state variables.
-
Copyright ALSTOM 2008. We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties without express authority is strictly forbidden
ALSPA Controcad - System PTP21A40014-en Rev.QFunction Blocks - Library 30/342
14.5 Specifications
14.5.1 Function block code
CAL 10000 * ASIN(/10000.0) =
-
Copyright ALSTOM 2008. We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties without express authority is strictly forbidden
ALSPA Controcad - System PTP21A40014-en Rev.QFunction Blocks - Library 31/342
Section 15 ATAN : PRINCIPAL ARC TANGENT
15.1 Representation
15.2 Function
The ATAN function block calculates and returns in its output RE the arctangent ofIN. If IN is 0, ATAN returns 0.
ATAN returns a value in the range /2 to /2 radians.
15.3 Arguments Characteristics
Name Description Type Neg Range Mand.Connection
Def.value
Mand.Data
Advisedparameters
value
Firstscanvalue
Inputs
IN Input REAL Y(-) ]- ;+[ Y - N - -
Outputs
RE Operator rsult REAL Y(-) ]- /2 ;+/2 [radians
Y - N - -
Parameters
15.4 Use
This function block is a function in the meaning of IEC
15.5 Specifications
15.5.1 Generated expression
ATAN(IN)
-
Copyright ALSTOM 2008. We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties without express authority is strictly forbidden
ALSPA Controcad - System PTP21A40014-en Rev.QFunction Blocks - Library 32/342
Section 16 AVERAGE : AVERAGE
16.1 Representation
16.2 Function
The function block AVERAGE gives the average of the inputs: RE = (IN1++INn)/n
16.3 Arguments Characteristics
Name Description Type Neg Range Mand.Connection
Def.value
Mand.Data
Advisedparameters
value
Firstscanvalue
Inputs
IN1..IN2IN3..IN8
InputsInputs
ANY_NUMANY_NUM
Y(-)Y(-)
--
YN
--
NN
Y-
--
Outputs
RE Result output ANY_NUM Y(-) - Y - Y - -Parameters
16.4 Use
No indication of overflow
Function block in the meaning of IEC, without state variables
16.5 Specifications
16.5.1 Internal code of the block
#EVAL CAL (IN1 + IN2 + IN3 + IN4 + IN5 + IN6 + IN7 + IN8) /@{[defined($IN1) + defined($IN2) + defined($IN3) +defined($IN4) + defined($IN5) + defined($IN6) + defined($IN7)+ defined($IN8)]} = RE
-
Copyright ALSTOM 2008. We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties without express authority is strictly forbidden
ALSPA Controcad - System PTP21A40014-en Rev.QFunction Blocks - Library 33/342
Section 17 AVERAGE_R : SECURED AVERAGE BETWEEN REALS
17.1 Representation
17.2 Function
The function block AVERAGE_R gives the average of the inputs:
RE = (IN1++INn)/n
17.3 Arguments Characteristics
Name Description Type Neg Range Mand.Connection
Def.value
Mand.Data
Advisedparameters
value
Firstscanvalue
Inputs
IN1..IN8 Inputs REAL Y(-) - N - N - -
Outputs
RE Result output REAL Y(-) - Y - Y - -Parameters
17.4 Use
Not used for a CE2000Function block in the meaning of IEC, without state variables
-
Copyright ALSTOM 2008. We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties without express authority is strictly forbidden
ALSPA Controcad - System PTP21A40014-en Rev.QFunction Blocks - Library 34/342
17.5 Specifications
17.5.1 State variables and internal variables
No state variables.
One internal real variable.
17.5.2 Internal code of the block
(* BEGIN AVERAGE_R#IF $TARGET_TYPE =~ 'CE2000'#ERROR Invalid target type '$TARGET_TYPE'#ENDIF(*#EVAL CAL @{[defined($IN1) + defined($IN2) + defined($IN3) +defined($IN4) + defined($IN5) + defined($IN6) + defined($IN7)+ defined($IN8) ]} = NBCAL 0 = RE#IF defined($IN1)CAL RE + IN1 / NB = RE#ENDIF#IF defined($IN2)CAL RE + IN2 / NB = RE#ENDIF#IF defined($IN3)CAL RE + IN3 / NB = RE#ENDIF#IF defined($IN4)CAL RE + IN4 / NB = RE#ENDIF#IF defined($IN5)CAL RE + IN5 / NB = RE#ENDIF#IF defined($IN6)CAL RE + IN6 / NB = RE#ENDIF#IF defined($IN7)CAL RE + IN7 / NB = RE#ENDIF#IF defined($IN8)CAL RE + IN8 / NB = RE#ENDIF(*(* END AVERAGE_R
17.5.3 Basic function
No use of BF.
-
Copyright ALSTOM 2008. We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties without express authority is strictly forbidden
ALSPA Controcad - System PTP21A40014-en Rev.QFunction Blocks - Library 35/342
Section 18 BCD_TO_INT : BCD VALUE TO DECIMAL VALUE
18.1 Representation
18.2 Function
The block converts a BCD value into a decimal value, which can be positive ornegative according to the value of the input.
BCD value = 0x0000 0000 0010 0011 => decimal value = 23
BCD value = 0x1000 0000 0010 0011 => decimal value = -23
18.3 Argument Characteristics
Name Description Type Neg Range Mand.Connection
Def.Value
Mand.Data
Advisedparameters
value
Firstscanvalue
Inputs
IN Input WORD N - Y - N - -
Outputs
RE Result INTEGER
N [-7999,7999]
Y - Y - -
Parameters
18.4 Use
If the BCD value can't be converted, the output is set to the specific value 0 and thestatus is set to FALSE, elsewhere the status is set to TRUE.The block is without state variables.
18.5 Specifications
18.5.1 Internals variables
V1, integerV2, word
-
Copyright ALSTOM 2008. We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties without express authority is strictly forbidden
ALSPA Controcad - System PTP21A40014-en Rev.QFunction Blocks - Library 36/342
18.5.2 Function block code
IF { IN = 0 } THENCAL 0 = RE#IF defined($ST)BOO 1 = ST#ENDIFELSELOG IN . 16#7FFF = V2TRA V2 DTB V1IF { V1 = 0 } THEN#IF defined($ST)BOO 0 = ST#ENDIFELSE#IF defined($ST)BOO 1 = ST#ENDIFENDIFIF { IN >= 16#8000 } THENCAL -V1 = REELSECAL V1 = REENDIFENDIF
-
Copyright ALSTOM 2008. We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties without express authority is strictly forbidden
ALSPA Controcad - System PTP21A40014-en Rev.QFunction Blocks - Library 37/342
Section 19 CCL_HMIES
19.1 Representation
19.2 Function
The CCL_HMIES function block gives informations on exchanges between the cellcontroller and supervisors. It can only be used in a cell controller.
19.3 Arguments Characteristics
Name Description Type Neg Range Mand.Connection
Def.value
Mand.Data
Advisedparameters
value
Firstscanvalue
Outputs
E_TMR_TCI_TC
R_TVCI_TVC
Emission IndicatorReception IndicatorBoolean Command
RowReception IndicatorAnalog Command
Row
BBW
BW
NNN
NN
NNN
NN
---
-
YYY
YY
19.4 Use
Used for a C8035 only head cell
-
Copyright ALSTOM 2008. We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties without express authority is strictly forbidden
ALSPA Controcad - System PTP21A40014-en Rev.QFunction Blocks - Library 38/342
19.4.1 Description of terminals
E_TM : It shows if there is at least one sent analogic signal (ccASig) in thecurrent cycle.
R_TC : It shows if there is one received boolean command(OpenLoop_ccCmd_x) in the current cycle.
I_TC : It is set by the Communication Services at each reception of booleancommand (OpenLoop_ccCmd_x) and it shows the row of the lastreceived boolean command.
R_TVC : It is set by Communication Services at each reception of analogicsetpoint (ccSPt_x).
I_TVC : It is set by Communication Services at each reception of analogiccommand (ccSPt_x) and it shows the row of the last receivedanalogic setpoint.
19.5 Specifications
19.5.1 Internal variables
None
19.5.2 Internal code
#IF defined ($E_TM)BF (C_GET_BIT_M, 83, E_TM)
#ENDIF
#IF defined ($R_TC)BF (C_GET_BIT_M, 90, R_TC)
#ENDIF
#IF defined ($I_TC)BF (C_GET_WORD_R, 9803, I_TC)
#ENDIF
#IF defined ($R_TVC)BF (C_GET_BIT_M, 91, R_TVC)
#ENDIF
#IF defined ($I_TVC)BF (C_GET_WORD_R, 9804, I_TVC)
#ENDIF
-
Copyright ALSTOM 2008. We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties without express authority is strictly forbidden
ALSPA Controcad - System PTP21A40014-en Rev.QFunction Blocks - Library 39/342
Section 20 CCL_ICES
20.1 Representation
20.2 Function
The CCL_ICES function block gives informations on emissions through the unitnetwork. It can only be used in a cell controller.
20.3 Arguments Characteristics
Name Description Type Neg Range Mand.Connection
Def.Value
Mand.Data
Advisedparameters
value
Firstscanvalue
Outputs
E_IAE_RG
IndicatorIndicator
BB
YY
NN
--
YY
20.4 Use
Used for a C8035 only head cell
20.4.1 Description of terminals
E_IA : It is an indicator of emission towards all cells. It is set to 1 if theemission happens at the end of the current cycle.
E_RG : It is an indicator of emission towards the cell of regroupement. It is setto 1 if the emission happens at the end of the current cycle.
-
Copyright ALSTOM 2008. We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties without express authority is strictly forbidden
ALSPA Controcad - System PTP21A40014-en Rev.QFunction Blocks - Library 40/342
20.5 Specifications
20.5.1 Internal variables
None
20.5.2 Internal code
#IF defined ($E_IA)BF (C_GET_BIT_M, 86, E_IA)
#ENDIF
#IF defined ($E_RG)BF (C_GET_BIT_M, 87, E_RG)#ENDIF
-
Copyright ALSTOM 2008. We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties without express authority is strictly forbidden
ALSPA Controcad - System PTP21A40014-en Rev.QFunction Blocks - Library 41/342
Section 21 CCL_OMR
21.1 Representation
21.2 Function
The CCL_OMR function block sets informations for the redundancy managementand gives informations on redundancy and operationnal mode of the cell controller.It can only be used in a cell controller.
21.3 Arguments Characteristics
Name Description Type Neg Range Mand.Connection
Def.Value
Mand.Data
Advisedparameters
value
Firstscanvalue
Inputs
INSTCRIx
Inhibition inputCriteria input
[17]
BB
NN
NN
YY
Outputs
NORMMTF8S_OKC_OK
Function modeFunction mode
Supervisor presencePresence of
commandability
BBBB
NNNN
NNNN
YYYY
21.4 Use
Used for a C8035 only head cell
-
Copyright ALSTOM 2008. We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties without express authority is strictly forbidden
ALSPA Controcad - System PTP21A40014-en Rev.QFunction Blocks - Library 42/342
21.4.1 Description of terminals
INST : This indicator is set by the application in the master cell controller toinhibit temporarily the topple. It so allows to avoid the master cellcontroller on F8000 network to topple after the faults arrival, whomdont concern the F8000, when the application must keep the controlon F8000 to retain her coherency vis--vis her equipments.The indicator INST can be set by the application on the master toinibate the topple master-slave.It can be set to 1 only if the FS_MTF8is set to 1 to avoid dysfunction.
CRIx (x between 1 to 7) :These indicators are set by the application on each cell controller toshow that given conditions, which determine if one of controllers hasthe best state, act upon the choice of master cell controller function ofthe relative priority of each criteria.So that one criteria indicate that the controller is more capable ofbeing the master than the other, this criteria should set to 1 on theprimary controller and should set to 0 in the secondary controller.
NORM : This indicator shows the function mode, master or slave, of the cellcontroller vis--vis S8000. It is set to 1 for master S8000 operationalmode. It is set to 0 for the slave mode.
MTF8 : This indicator shows the function mode, master or slave, of the cellcontroller vis--vis F8000. It is set to 1 for master F8000 operationalmode. It is set to 0 for the slave mode.
S_OK : It is set by communication service at any sweep in function ofsupervisors presence.
C_OK : It is set to 1 by the communication service when the supervisor isable to send directly commands to the cell controller. It is set to 0 ifthe connexion with the supervisor has lost since at least 30 secondsor if the cell controller topples in slave mode.
-
Copyright ALSTOM 2008. We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties without express authority is strictly forbidden
ALSPA Controcad - System PTP21A40014-en Rev.QFunction Blocks - Library 43/342
21.5 Specifications
21.5.1 Internal variables
None
21.5.2 Internal code
#IF defined ($INST)BF (C_STORE_BIT_M, 385, INST)
#ENDIF#IF defined ($CRI1)
BF (C_STORE_BIT_M, 386, CRI1)#ENDIF#IF defined ($CRI2)
BF (C_STORE_BIT_M, 387, CRI2)#ENDIF#IF defined ($CRI3)
BF (C_STORE_BIT_M, 388, CRI3)#ENDIF#IF defined ($CRI4)
BF (C_STORE_BIT_M, 389, CRI4)#ENDIF#IF defined ($CRI5)
BF (C_STORE_BIT_M, 390, CRI5)#ENDIF#IF defined ($CRI6)
BF (C_STORE_BIT_M, 391, CRI6)#ENDIF#IF defined ($CRI7)
BF (C_STORE_BIT_M, 392, CRI7)#ENDIF#IF defined ($NORM)
BF (C_GET_BIT_M, 78, NORM)#ENDIF#IF defined ($MTF8)
BF (C_GET_BIT_M, 75, MTF8)#ENDIF#IF defined ($S_OK)
BF (C_GET_BIT_M, 81, S_OK)#ENDIF#IF defined ($C_OK)
BF (C_GET_BIT_M, 82, C_OK)#ENDIF
-
Copyright ALSTOM 2008. We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties without express authority is strictly forbidden
ALSPA Controcad - System PTP21A40014-en Rev.QFunction Blocks - Library 44/342
Section 22 CELL_TEMP
22.1 Representation
22.2 Function
The bit system %SB33 of C80-75 is now dedicated to the generation of informationsystem "cubicle Temperature high". The acquisition of this information (dry contactresulting from a thermostat installed in the standard ES cubicle) is done via 1 to 3boolean input cards included in 1 to 3 CE2000.The value of the thermostat shall be set to:
25 or 40C, within the framework of the applications of safety boiler, in order tosatisfy the recommendation of the level of safety SIL3, of the IEC 61508standards. (These adjustments relate to the temperature of the ambient airinside the cubicle corresponding to a maximum temperature at the location ofthe components of 30 and 45 C respectively.)
55 C maximum, excepting boiler safety applications, which corresponds tothe maximum authorized operation value of a cell ES.
22.3 Arguments Characteristics
Name Description Type Neg Range Mand.connection
Def.Value
Mand.Data
Advisedparameters
value
Firstscanvalue
Inputs
IN1
IN2
IN3
Input 1
Input 2
Input 3
B
B
B
-
-
-
-
-
-
Y
N
N
0
0
Y
N
N
-
-
-
-
-
-
Outputs
RE Result B - - N N - -
-
Copyright ALSTOM 2008. We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties without express authority is strictly forbidden
ALSPA Controcad - System PTP21A40014-en Rev.QFunction Blocks - Library 45/342
22.4 Use
Used for C8075The purpose is to calculate the bit %SB33 according to the state of the contact ofhigh temperature on one of the 3 input channels (3 Boolean, of which the first oneonly must be input, and the 2 others have value 0 by default).
%SB33 is equal to 1 if at least one of the three entries is equal to 1, and 0 if the 3inputs are equal to 0.Moreover, the FB includes at output the value of bit %SB33 worked out in this FB(one non mandatory boolean).
22.5 Specifications
22.5.1 Internal variables
1 internal boolean private variable : VI
22.5.2 Internal code
#IF $TARGET_TYPE !~ 'C8075'#ERROR Invalid target type '$TARGET_TYPE'#ENDIF
(* Compute high temperature contact (from 1 to 3 inputchannels)BOO IN1 + IN2 + IN3 = VI
(* Store result in %SB33BF (C_STORE_BIT_SB, 33, VI)
(* Store result in optional output argument#IF defined ($RE)BOO VI = RE#ENDIF
-
Copyright ALSTOM 2008. We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties without express authority is strictly forbidden
ALSPA Controcad - System PTP21A40014-en Rev.QFunction Blocks - Library 46/342
Section 23 CONVERGENCE_AND : CONVERGENCE OF SIMULTANEOUSSEQUENCES
23.1 Representation
23.2 Function
This block is relevant to a sequential function block diagram.
As many as eight simultaneous sequences can be managed by the block. Theblock has eight inputs which are the activation orders from the last step from eachsequence and an output which is set to one if each sequence ordered the next stepactivation.
23.3 Arguments Characteristics
Name Description Type Neg Range Mand.connection
Def.Value
Mand.Data
Advisedparameters
value
Firstscanvalue
Inputs
ORDER1(O1)
ORDER2(O2)
ORDER8(O8)
First sequencenext step activation
orderSecond sequence
next step activationorder
Last sequence nextstep activation
order
Boolean
Boolean
Boolean
N
N
N
- N
N
..N
1
1
..1
N
N
..N
--
--
Outputs
NEXT Next sequenceactivation order
Boolean N - Y - Y - 0
-
Copyright ALSTOM 2008. We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties without express authority is strictly forbidden
ALSPA Controcad - System PTP21A40014-en Rev.QFunction Blocks - Library 47/342
23.4 Use
All inputs have their property 'mandatory connection' at 'No'. It means it is notmandatory to have a signal on each input. If the application needs only twosimultaneous sequences, it can have no care with the six others inputs.
At the first scan into the controlers, the output's value is FALSE.There are 8 boolean internal variables and 8 indirect state variables, by the calls tothe 8 SR Function Blocks
23.5 Specifications
8 Internal variables : V1, V2, V3 -> V8, all booleans
23.5.1 Internal code
IF INITTHEN
BOO 0 = NEXTELSE
BOO V1.V2.V3.V4.V5.V6.V7.V8 = NEXTENDIF#FB( SR, ORDER1, NEXT, 0, V1, )#FB( SR, ORDER2, NEXT, 0, V2, )#FB( SR, ORDER3, NEXT, 0, V3, )#FB( SR, ORDER4, NEXT, 0, V4, )#FB( SR, ORDER5, NEXT, 0, V5, )#FB( SR, ORDER6, NEXT, 0, V6, )#FB( SR, ORDER7, NEXT, 0, V7, )#FB( SR, ORDER8, NEXT, 0, V8, )
-
Copyright ALSTOM 2008. We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties without express authority is strictly forbidden
ALSPA Controcad - System PTP21A40014-en Rev.QFunction Blocks - Library 48/342
Section 24 CONVERGENCE_OR : CONVERGENCE OF SEQUENCESELECTION
24.1 Representation
24.2 Function
This block is relevant to a sequential function block diagram.
The goal of the block is to manage the convergence of a sequence selection. Theblock has eight inputs which are the activation orders from the last steps and anoutput which is the next step activation order. The block set to one its output if oneof the eight sequences ordered the next step activation.
24.3 Arguments Characteristics
Name Description Type Neg Range Mand.connection
Def.Value
Mand.Data
Advisedparameters
value
Firstscanvalue
InputsORDER1(O1)
ORDER8(O8)
First sequencenext step
activation ordereighth
sequencenext step
activation order
Boolean
Boolean
N
N
- N
N
0
0
N
N
--
--
OutputsNEXT Next sequence
activation orderBoolean N - Y - Y - -
24.4 Use
The output's value is always the rsult of a OR gate between the differentmeaningful inputs.
The block is a function block in the meaning of IEC, without state variables.
-
Copyright ALSTOM 2008. We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties without express authority is strictly forbidden
ALSPA Controcad - System PTP21A40014-en Rev.QFunction Blocks - Library 49/342
24.5 Specifications
24.5.1 Internal code
BOO ORDER1+ORDER2+ORDER3+ORDER4+ORDER5+ORDER6+ORDER7+ORDER8 = NEXT
-
Copyright ALSTOM 2008. We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties without express authority is strictly forbidden
ALSPA Controcad - System PTP21A40014-en Rev.QFunction Blocks - Library 50/342
Section 25 COS : COSINE
25.1 Representation
25.2 Function
The COS function return in its output RE the cosine of the input IN. The input unit isthe radian.
25.3 Arguments Characteristics
Name Description Type Neg Range Mand.Connection
Def.Value
Mand.Data
Advisedparameters
value
Firstscanvalue
Inputs
IN Input REAL Y(-)- ; Y - N - -
Outputs
RE Operatorresult
REAL Y(-) -1 ; 1 Y - N - -
Parameters
25.4 Use
If IN is greater than or equal to , or less than or equal to , a loss of significance inthe result of a call to COS occurs, in which case the function returns an indefiniteresult.
The block is a function in the meaning of IEC
25.5 Specification
25.5.1 Generated Expression
COS(IN)
-
Copyright ALSTOM 2008. We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties without express authority is strictly forbidden
ALSPA Controcad - System PTP21A40014-en Rev.QFunction Blocks - Library 51/342
Section 26 COSMC : COSINE
26.1 Representation
26.2 Function
The COS function return in its output RE the cosine of the input IN. The input unitis the radian.
Output scale range : -1 is equivalent to 10000 and +1 is equivalent to +10000.
Input scale range : - is equivalent to -*10000 and is equivalent to *10000.
26.3 Arguments Characteristics
Name Description Type Neg Range Mand.Connection
Def.Value
Mand.Data
Advisedparameters
value
Firstscanvalue
Inputs
IN Input I Y(-) -*10000 ;*10000
Y - N - -
Outputs
RE Operatorresult
I Y(-) -10000 ;10000
Y - Y - -
Parameters
26.4 Use
If IN is greater than or equal to *10000, or less than or equal to *10000, a loss ofsignificance in the result of a call to COS occurs, in which case the function returnsan indefinite result.
The block is a function block in the meaning of IEC.No state variables
26.5 Specification
26.5.1 Internal Code
CAL 10000 * COS(IN/10000.0) = RE
-
Copyright ALSTOM 2008. We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties without express authority is strictly forbidden
ALSPA Controcad - System PTP21A40014-en Rev.QFunction Blocks - Library 52/342
Section 27 CTUD_I/D : UP-DOWN COUNTER
27.1 Representation
27.2 Function
The goal is provide an up-counter and a down-counter in the same block: It ispossible to count from 0 to a preset value, or to down-count from a preset value to 0.
Two CTUD function block are available :CTUD_I for integer and CTUD_D for doubleinteger. The overflow is managed in each block.
27.3 Arguments Characteristics
Name Description Type Neg Range Mand.connection
Def.Value
Mand.Data
Advisedparameters
value
Firstscanvalue
Inputs
CUCDR
LD
Up countingDown counting
ResetLoad
BBBB
NNNN
----
YYYY
----
YYYY
----
----
Outputs
CVQDQU
Counter resultDown counting state
Up counting state
I or DBB
NNN
---
YNN
---
YYY
---
0--
ParametersPV preset value I or D N - Y - Y -
-
Copyright ALSTOM 2008. We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties without express authority is strictly forbidden
ALSPA Controcad - System PTP21A40014-en Rev.QFunction Blocks - Library 53/342
27.3.1 Use
Not used for a CE2000There is a state variable of the block and its value is always put into the output CV.Its initial value is set to 0.The parameter PV can be tuned on line or before the execution of the functionblock.
Specific Argument description
CU : up counting input. Compulsory boolean input.CD : Down counting input. Compulsory boolean input.LD : LOAD.
If LD = 1, CV = PV to intiate the down-counting
R : RESET. Optional boolean inputIf R = 1, CV = 0 to initiate the up-counting
CV : OPERATOR RESULT : Positive integer output.CV++ if CU
CV-- if CD
QU : Boolean output: up counting operator state :Set to TRUE when the preset value has been reached
QU = 1 if CV>=PV
QD : Down counting operator state : Boolean output.Set to true when the zero value has been reached
QD=1 if CV0), and the starting value for counting down (PV
-
Copyright ALSTOM 2008. We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties without express authority is strictly forbidden
ALSPA Controcad - System PTP21A40014-en Rev.QFunction Blocks - Library 54/342
27.4 Specification
27.4.1 State Variables
ST1, same type as CV, redundant
27.4.2 Internal Variables
The variables QUI and QDI are internal boolean variables. Their goal is to give notmandatory the connexion of arguments QU and QD.
27.4.3 Function Block Code
(*BEGIN CTUD_I(* Initialization:(* --------------#IF $TARGET_TYPE =~ 'CE2000'#ERROR Invalid target type '$TARGET_TYPE'#ENDIF
if INIT + Rthen
cal 0 = STA
(* Operational mode:(* ----------------
elseif LDthen
cal PV = STAelse
if {STA < 32767} . CU (* INT_MAX value in limits.hthen
cal STA + 1 = STAelse
if {STA > -32767} . CD (* INT_MIN value in limits.hthen
cal STA - 1 = STAendif
endifendif
endif
(* set output values:(* -----------------#IF defined($QU)boo {STA >= PV} = QU#ENDIF#IF defined($QD)boo {STA
-
Copyright ALSTOM 2008. We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties without express authority is strictly forbidden
ALSPA Controcad - System PTP21A40014-en Rev.QFunction Blocks - Library 55/342
(* BEGIN CTUD_D(* Initialization:(* --------------#IF $TARGET_TYPE =~ 'CE2000'#ERROR Invalid target type '$TARGET_TYPE'#ENDIF
if INIT + Rthen
cal 0 = STA
(* Operational mode:(* ----------------
elseif LDthen
cal PV = STAelse
if {STA < 2147483647} . CU (* INT_MAX value inlimits.h
thencal STA + 1 = STA
elseif {STA > -2147483647} . CD (* INT_MIN value in
limits.hthen
cal STA - 1 = STAendif
endifendif
endif
(* set output values:(* -----------------#IF defined($QU)boo {STA >= PV} = QU#ENDIF#IF defined($QD)boo {STA
-
Copyright ALSTOM 2008. We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties without express authority is strictly forbidden
ALSPA Controcad - System PTP21A40014-en Rev.QFunction Blocks - Library 56/342
Section 28 CUR_CPU_FLTS
28.1 Representation
28.2 Function
The CUR_CPU_FLTS function block allows to create an application fault in thecurrent controller when there is a fault detected with the CPU about the loss ofsynchronization signal.
28.3 Arguments Characteristics
Name Description Type Neg Range Mand.Connection
Def.Value
Mand.Data
Advisedparameters
value
Firstscanvalue
Output
TOP
HI_TEMP
Synchro signalreception
High temperature
B
B
N
N
-
-
N
N
-
-
Y
Y
-
-
-
-
28.4 Use
Used for a MFC3000
-
Copyright ALSTOM 2008. We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties without express authority is strictly forbidden
ALSPA Controcad - System PTP21A40014-en Rev.QFunction Blocks - Library 57/342
28.4.1 Description of terminals
TOP : SYNCHRO SIGNAL RECEPTIONSet to 1 if Synchronisation signal is not received from externalequipment
HI_TEMP : HIGH TEMPERATURESet to 1 when the high temperature value (85C) is reached.
28.5 Specification
28.5.1 Internal variables
None
28.5.2 Internal code
#IF $TARGET_TYPE !~ 'PCX'#ERROR Invalid target type '$TARGET_TYPE'#ENDIF(* Major faultsTWB CCAD_FAULTS(2) = TOP, HI_TEMP
-
Copyright ALSTOM 2008. We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties without express authority is strictly forbidden
ALSPA Controcad - System PTP21A40014-en Rev.QFunction Blocks - Library 58/342
Section 29 CUR_CTRL_FLTS
29.1 Representation
29.2 Function
The CUR_CTRL_FLTS function block allows to create an application fault in thecurrent controller and use some defaults of this controller. It can be used in anycontroller (cell or field controller).
The faults A, SY, SN, M, F and RF concern the field and cell controller.The faults GF, RS, GS and C concern only the cell controller.
29.3 Arguments Characteristics
Name Description Type Neg Range Mand.Connection
Def.Value
Mand.Data
Advisedparameters
value
Firstscanvalue
Input
DFA Input B Y - N - N - -
Outputs
ASYNSNMF
RFGFRSGSC
Application faultSynchronization fault
Non-blocking faultModule faultI/O forcing
Redundancy faultCommunication fault
Redundancy faultCommunication faultCommunication fault
BBBBBBBBBB
NNNNNNNNNN
NNNNNNNNNN
YYYYYYYYYY
-
Copyright ALSTOM 2008. We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties without express authority is strictly forbidden
ALSPA Controcad - System PTP21A40014-en Rev.QFunction Blocks - Library 59/342
29.4 Use
Used for a C8035 and RX3i
29.4.1 Description of terminals
DFA: APPLICATION FAULT INPUTIt can be set to 1 by the application to send a fault to the controller.
A : Application faultThis fault is set by the application using the FS_DF_A indicator.
SY : Synchronization faultThis fault is set if the synchronization can be realized in at least 30seconds before. In the field controller, the synchronisation needsto receive the synchronization pip all 5 seconds and the timemessage from the supervisor.
SN : non-blocking faultThis fault is set to 1 when at least one fault appears in one of bothfault tables (I/O or CPU) of the controller, and is set to 0 when theboth fault tables are erased by the operator with P80.
M : Module faultThis fault is set to 1 when at least one module is declared in fault,and erased when entered faults in the IO faults table are acquittedby the operator with P80.
F : I/O ForcingIt is set to 1 when at least one forcing is in the controller. Else it isset to 0.
RF : F8000 medium redundancy faultThis fault is set if the FBC ready condition is true AND the mediumfault condition given by the FBC30 is true, else it is set to 0.
GF : F8000 communication global faultThis fault is set if the FBC ready condition is false OR if thiscondition is true AND no operational network condition given bythe FBC30 is true, else it is set to 0. It can be only used in the cellcontroller.
RS : S8000 medium redundancy faultIf the unit network is S8000-E, then it is always set to 0. If the unitnetwork is S8000-F, then it is set if the FBC Ready condition istrue AND medium default given by the FBC30 is true on aredundant network, else it is set to 0. It can be only used in the cellcontroller.
GS : S8000 communication global faultIt is set if the S Drive Interface condition is false, OR if this S DriverOK is false, OR the S Driver connected is false, else it is set to 0. Itcan be only used in the cell controller.
C : Supervisor communication faultIt is set if the cell controller has not relation with the supervisor (noreception of the time message since at least 30 seconds), else it isset to 0. It corresponds to the S_OK indicator.
-
Copyright ALSTOM 2008. We reserve all rights in this document and in the information contained therein. Reproduction