Home

NT00320-EN-02 - RTU Control & Formulas

image

Contents

1. a internally by the PLC program In case of shared variables the use of arrays is limited to arrays of simple types one dimension In that case it is necessary to activate the option Store complex variables in a separate segment in the options of C TSATM T5 Runtime for big endian processors the project Project Settings E custom ores the Advanced button s An array of N variables will be linked to N variables in the Code generation T200 F200C software The name of those variables will be Release iY Store complex variables in a NameArray x with x from 1 to N w Debug separate segment u Example creation of arrays State_Array of 5 booleans BOOL and Parameters of 2 integers INT EBBRCIO Properties A Name Value Type Dim Attrib Syb State Array Name Parameters M Global variables Parameters Vers 1 State_Array BOOL 0 4 ES UseExtName No Parameters INT 0 1 ExtName a RETAIN variables MustE xist No Mode Output Name Vers UseExtName ExtName MustExist Mode State Array 1 No j No Input Parameters 1 No No Output Variables created in the T200 F200C software are State_Array_ 1 to State_Array_ 5 and Parameters _ 1 to Parameters 2 STATE ARRAY 1001 olle STATE ARRAY 02 0119 STATE ARRAY 1005 D20 STATE ARRAY 04 C4 STATE ARRAY 95 Dio PARAMETERS 1601 A013 NT00320 EN 02 Schneider 44 RTU Control amp Formulas RTU Control software 1
2. Publication production and printing Schneider Electric Telecontrol Made in France Europe
3. 1 5 6 Program Data Melendi dano 16 1 5 7 Peer to Peer configuration page arias ii aii 17 1 58 PLO Qeb Ug PAI dd 19 O EXAMPLE n 20 2 AL LCCULATION FORMULAS 2 2 ann nee 21 eo ee ee lese re oe ee Armee 21 2 2 UNTERE ANDAR ULES este ae a ee ee ie ee eier 22 2 2 1 DO A o A e ESOO UU N T A 22 22e 8 10 E E aii E ol o 23 20 PUNCUONS instancia tinte oido 26 232 Slaustcal UACUONS aE nee a este 27 2 3 3 Melo Hielo vente kun arena are AE NE O nenne ende eigene 28 2 3 4 Time Date and time functions ccooccnccccnncnccconnnnononnnnncnnnnnnononnnnononnnnononnnnnonnnnnnnnnnnnnnnnnnnnonancnnnnnanens 30 A dactespenee sen esmev ane iesebsusenseesauseneaeneodeacheuncedaeterenseeconsees 31 a EM A An A E GU OS OR E 32 2 4 1 Creating variables a 32 2 4 2 Entering the fOrmula ccccccccsssccccseseeecseeeeeeaeeeeeeeeseeesseeeeeesaaeeeessaeeeessaeeesseneeeeseaeeeessageeeeseeeesssaneees 33 o Schneider NT00320 EN 02 RTU Control amp Formulas 1 Virtual PLC RTU Control development NT00320 EN 02 platform RTU Control software 1 1 Description As an option the 1200 and the Flair 200C can provide an IEC 61131 3 programmable automation functions through an embedded virtual machine PLC The typical applications that can be created with a PLC program e Automatic MV loop reconfiguration Self Healing Grid e Automatism similar to the one embedded in T200 ATS BTA ATS between 2 T200 or involving mor
4. 3 Invalid data 15 Communication Error problem creating a TCP connection 16 Communication error request or reply timed out 20 Set when a message is in progress control Codes 1 2 3 indicate that the message was successfully delivered but that the receiving device rejected it This usualy means some sort of configuration error For type Read ReceiveDataValid Index DO index control variable This is the index of a DO variable that is set when new data has been written by a distant device It should be reset by the PLC application NT00320 EN 02 RTU Control amp Formulas Communication Operation mode Protocol TCPAP Protocol IEC104 1 Port 1 transmission Port 2 transmission Modbus master Communication Slaves Configuration Variable management Variable configuration Classes configuration Embedded PLC Formulas Switch state 1 v Switch state 1 SW1_command 001 SW1_Status_Int SW1_locked 73349 swi_ voltage 73554 SW1_earth_fault TEEN External Address Peer to Peer address Monitoring Embedded PLC EEE Configuration Virtual PLC IP port Variables Flash Memory Cycle time Program Parameters Peer to Peer Program Traces TS runtime SE Telecontrol V1 0 2007 c COPALP SE Telecontrol Flash Code 0x103d0000 65536 bytes VMDB 0x103e0000 65536 bytes Key 0x103 f0000 65536 bytes Starting Program
5. Cold Warm Can Not open File In memory code error f0f00112 Starting Program defaut_equipt Cold Warm Name PANNE DET DEFAUTS Type Input Name MANQUE ALIM EQUIPT Type Input Name MANQUE ALIM MOTOR Type Input Name DEFAUT EQUIPEMENT Type Output Name DEFAUT CHARGEUR Type Input Name DEFAUT BATTERIE Type Input NT00320 EN 02 RTU Control software Protocols and Variable Addresses As the peer to peer feature is using the MODBUS TCP protocol both the MODBUS master and the MODBUS TCP slave protocol is always enabled on the equipment in addition to the main slave protocol IEC101 104 or DNP3 DNP3 IP Each of these protocols have their own web pages for configuration For each variable the External address is used by the main protocol and the Peer to peer address is used in MODBUS TCP for the peer to peer feature If the main protocol is MODBUS MODBUS TCP the same addresses external address are used for both Scada communication and peer to peer communication 1 5 8 PLC debug page The PLC trace can be used to check that the RTU Control program is running correctly and that the variables have been downloaded into the equipment without errors In normal operation it is not necessary to control program execution It s only in case of abnormal behaviour of the PLC that the control of its operation can be useful Schneider 19 P Electric RTU Control amp Formulas RTU Control software 1 6 E
6. 4 3 Miscellaneous Advices concerning the names of the variables Use only capital letters Do not give the same name to two different variables Do not use an integer as a name for example 5 Variable Types The T200 F200C supports the following types BOOL SINT INT DINT BYTE WORD REAL Warning type must be compatible BOOL lt gt TSS TSL DI or DO SINT INT DINT WORD DWORD REAL lt gt TM Al or AO DINT lt gt Counters Important the TSD TCD are not binary but numeric variables BYTE with three possible status TSD TCD value Status 0 Undefined 12 Schneider NT00320 EN 02 Electric RTU Control amp Formulas settings Communication Operation mode Protocol TCPHAP Protocol 1 Port 1 transmission Pont transmission Modbus master Communication Slaves Configuration Control Module n Control amp Automation Measurement Fault Indicator Variable management Variable configuration Classes configuration ala Flash Memory Debua Embedded PLC Virtual PLC IP port ho Cycle time 100 ms Program equipt_fault v PLC Running Stop Start Reset Program Stopped Stop Start Embedded PLC configuration page NT00320 EN 02 Virtual PLC IP port Cycle time Peer to Peer Program RTU Control software 1 5 PLC setting In the same section PLC of the web server other pages are also linked to the PLC notably those concerning the config
7. MODBUS TCP protocol and the write multiple registers command This is similar to the concept of a dataset in other protocols Each dataset is defined as an exchange table within both peer devices On the sending device the table is defined as type Write and on the receiver it is defined as type Read Each exchange table defines a range of MODBUS addresses Variable are part of the dataset if they have a peer to peer address within the range For Write tables the variables may have any type For Read tables the variables must be either DO or AO types The PLC program can launch the sending of the Write tables and is warned when the Read tables are updated The process uses additional variables to indicate the success or failure of each message These can be used by the PLC program to retry messages if needed T200 B T200 A T200 C Schneider 17 Electric RTU Control amp Formulas Transfer Table 1 Transfer Table Configuration a_n er A Transfer Type 02 Read Vv Name Start Address 310 Length Distant Address ReceiveDataValid Index DO27 vw ji Slave Number SendDataActive Index SendDatalnPogress Index SendDataResult Index Save Transfer Table 2 Name A_Out Transfer Type 01 Write 4 10 Length 21 Distant Address 320 10052 v ReceiveDataValid Index Start Address Slave Number SendDataActive Index SendDatalnPogress Index D05
8. same processing cycle 2 2 1 Operands 2 2 1 1 Numerical constants integers decimal numbers The numbers may be positive or negative whole or decimal and or exponent 123 45 1 12 5E3 etc To enter a hexadecimal number its value must be prefixed with the symbol or the letter H for example 10 or H10 For decimal values the decimal separator is the point The type of value integer word IEEE is automatically determined by analysis of the formula 00 Schneider NT00320 EN 02 RTU Control amp Formulas Formulas 2 2 1 2 Character strings A character string must be entered between single quote marks for example my string Character strings are used to reference certain function parameters or names of tables or database columns 2 2 1 3 Variables By entering the name of a variable without quote marks the operand will be interpreted as the value of the variable at the time of execution The type of value is that of the variable Warning the name of a variable used with a formula must not contain spaces 2 2 2 Operators 2 2 2 1 Mathematical Addition Subtraction Multiplication Division dividing by zero causes an execution error Modulo Remainder of the whole division whole numbers Power A B A exponent B A 2 2 2 2 Logical Logical AND A amp amp B true if A true AND B true otherwise false Logical OR A I B true if A true OR B true other
9. to a configurable cycle time minimum cycle time 100 ms NT00320 EN 02 Schneider 9 RTU Control amp Formulas Formulas 2 2 Syntaxes and rules The formulas use a natural and intuitive syntax that combines references with measurement values variables historians etc literal expressions constants operators etc and function calls min max delta etc The user does not need to worry about data formats the interpreter takes care of the conversions This makes it possible to combine logical and mathematical operations B gt 3 C B gt 3 is a logical expression true 1 or false 0 The formulas only make sense if at the end of their execution the value obtained is allocated to a variable or to a database cell It should be understood that a formula is not a script language there is no concept of loops for while or instruction jumps goto if then However there is a conditional operator that allows the allocating of such and such a value according to a logical expression The formulas take into account the case lowercase or uppercase of the operands and functions The maximum length of a formula is 200 characters A formula can accept up to 50 elements operands operators A formula may be split into several sub formulas separated by a semi colon the comma is reserved for separating a function s parameters Each sub formula is executed successively in their order of writing during the
10. 2 3 5 1 bounds X min max Returns the value of X limited by min and max If Xis less than min returns min if X is greater than max returns max otherwise returns X 2 3 5 2 delta X or deltav X Returns the difference between the value of X on the previous execution of the formula and the current value of X The period for calculating the difference in X is therefore the execution period of the formula See also deltats and deltatms 2 3 5 3 switch X AO A1 A2 or cond X AO A1 A2 0 1 X must be a positive whole value This function must include at least three arguments If X 0 the function returns the argument AO if X 1 returns Al if X 2 returns A2 etc If X lt 0 the function returns the argument AO if X is greater than the number of arguments the most recent is returned Schneider 3 RTU Control amp Formulas Settings Communication Operation mode Protocol TCPAP Protocol 1 Port 1 transmission Port 2 transmission Modbus master Communication Slaves Configuration Control Module n 1 Control Automation Measurement Fault Indicator Variable management ariable configuration Classes configuration Embedded PLC Formulas Variable configuration Modbus Server Elements v Ada New element Single point information DI alaj o uenea t Single point command DO k Analog output AO Internal Counter CNT Double point information TSD Double point co
11. 3 v A022 w Save SendDataResult Index 18 aa RTU Control software Configuration Up to 6 tables can be defined For each table Name Transfer Type Inactiv Write or Read Start address local MODBUS address that correspond to the first variable of the table Length Number of 16 bit MODBUS registers Maximum 6 Digital variables are mapped to a single bit Analog variables use one 16 bit register The length value must be the same in the Write table and in the Read table For type Write Slave number correspond to the slave index on the Slaves configuration page where its IP address will be defined Distant address MODBUS address on the slave where the table will be written SendDataActive Index DO index control variable This is the index of the DO variable to be activated by the PLC application to request the firmware to write the content of the table into the distant device This is reset automatically by the firmware when the transfer is in progress SendDatalnProgress DO index control variable This is the index of the DO variable that indicates the write process is in progress for this table It is reset automatically when the transfer is complete or times out Useful for commissioning SendDataResult Index index of an AO variable that shows the status of the transfer Possible values of the AO are 0 Operation successful 1 Invalid MODBUS function 2 Invalid address
12. Control software 1 2 Installation of RTU Control software Easergy Schneid The RTU Control software is supplied with the unit It is ae er included in the Easergy CD Rom To install the software from the CD follow these Gamme Easergy Easergy range v8 29 instructions Insert the CD Rom supplied The software on CD must start automatically and a I Quitter Exit a ps window Easer range V8 xx appears on screen A A Easergy series 3 ag oa a HE gt a 1 gt Y Autres quipements Other equipments lt Ez gt S r Er gt Click on Easergy series 3 link mn In the next window that appears click on the link RTU 0 CONTROL Scheider Equipements Easergy series 3 Easergy series 3 Equipments Carte de communication avec port s Ethernet USB Communication board with Ethernet USB port s Bi bree USB USB ae Then follow the various steps for installation without I Java Runtime Environment changing the options proposed Connexion quipement Connection to the equipment Software installation begins Configurateur module Control pour T200 Control module Wait for the end of the installation and then exit the Configurator fofi200 program I D marrer Start fo T Wy Y BB installation x te DO Ren lt Ez gt gt 7 Pat BB Aide Help f lt b gt T z5 9 Ss HT A gt f E Documentation i gt ao I Quitter Exit iG RTU CONTROL setup S
13. MV electrical network management Easergy range Flair 200C and T200 MV substation remote monitoring and control unit RTU Control and Formulas Addendum to the user s manual RTU Control amp Formulas Summary 1 VIRTUAL PLC atc etree tee ese re ce ee ea ecm en tte soc za le ee anne ale 3 MA HOE SC AIP A e e E oo en 3 1 2 INSTALLATION OF RTU CONTROL SOFTWARE ccoooocccccnnccnoncnonnnnnnnnnnnonnnnnnnnnnnononnnnnnrnnnnnnnnnrnnnennnnnnnnnnnnnnennnnnninnnanas 5 1 3 DOWNLOADING A PROGRAM VIA RTU CONTROL SOFTWARE occcoooccnncccnnnccnnnnononcnononononnnnnononancnnnnnnanennrnnnnnrennnnnnnnns 6 1 3 1 Opening a Pro Sao unten serie seen een nas 6 1 3 2 Connection to the PLC and download Of a prograM ccccccooccnncccccnncnnnccnnnncnnnnnnnnncnnnnonnnncnnnnonnanennnnnnnns 7 14 SHARED VARIABLES asia du dosel ire tier nest Eine dota poa isidro 8 1 4 1 Share a variable wo 002ccdcinck cenewdacadcusscd acs ennentesdusedenendacduls ESENE EN EERE E PEPEES ausqedasincdibunmendes ine demande cddvenscbdesexnesess 8 112 ISO A e e o 11 1 4 3 Miscellaneous nee ee ee ee een 12 EA 13 1 5 1 Eee So 13 1 5 2 Downloading a program via the embedded Web server ooooccccccconnccnccccnncccnccnnnancnnncnnnancnnconanccnnnnnos 14 1 5 3 Working state of the PLC ooooonccncccnncccconccnnccnononcononennononcnnonnnnnnnonnrnrnnnnrnnnnnnnnrrnnnrnnrnnnrnnrnnnnnnennanennnss 15 1 5 4 Error MESSAGES cecciocirarac rta ii a r ddr ad ac 15 1 5 5 PLC variables Page aaa nn ae 16
14. Vv1_Voltage ES siete a Program stopped right click on a variable and select Yariable Properties C_SW1_State E properties ja To share the selected variable with the T200 F200C O sofiware Pins Er E e Check the box Embed symbol Profe e Select the profile RCIO in the profile list RCIO Es e Complete following parameters depending on the E desired link mode Value Description Vers 1 Version of ATU Control s IO profile UseExtName Yes Use ExtName instead of name ExtN ame Switchcontrol1 External Name of the variable if used MustE xist Yes Disable auto creation of the variable Mode Output PLC Mode YarDirection Signal RTU Direction for creation of variable gt Annuler Aide 8 Schneider NT00320 EN 02 RTU Control amp Formulas f Global variables S_Equipment_Fault_LED BOOL C_Automatism_ON_OFF_ SINT C_S V1_State SINT C SWV2 State S MVv1_Voltage gt Me nitane Variable Properties C_SW1_ State Numerical tag Profile RCIO v Description Vers Version of ATU Control s 10 profile UseExtName Yes Use ExtName instead of name ExtN ame Switchcontrol1 MustE xist Yes Mode Output YarDirection Signal External Name of the variable if used Disable auto creation of the variable PLC Mode RATU Direction for creation of variable gt Annuler Aide NT00320 EN 02 HHH YE Y Y E Y Y Y Y Y BEN RTU Control software UseExtName Choice to use t
15. a date time couple in numbers of seconds since a single reference 1st January 1970 at 00 00 00 The days of the week are associated with the following values 1 Sunday 2 Monday 4 Tuesday 8 Wednesday 16 Thursday 32 Friday 64 Saturday 2 3 4 1 dt T X or now T X Without an argument the function returns the current date and time as TIME_T With T as TIME_T and X T serves as a reference for the argument X With X only the current date and time functions serve as references for the argument X if X 1 or Y returns the year in 4 figures if X 2 or M returns the month from 1 to 12 if X 3 or D returns the day of the month from 1 to 31 if X 4 or H returns the time according to the 24Hr clock from O to 23 if X 5 or m returns the minute from O to 59 if X 6 or s returns the second from O to 59 if X 7 or d returns the day of the week 1 2 4 8 16 32 64 if X 8 or p returns 0 if the time is before midday AM 1 for the afternoon PM if X 9 or h returns the time according to the 12Hr clock if X 10 or y returns the year in 2 figures 2 3 4 2 time X F With X only if X is a character string the function converts into TIME_T format the date and time corresponding to X according to the default date and time format If X is numerical the function converts this number into TIME_T With X and F X must be a character string F is also a
16. ameters Topic Virtual single bit Log configuration On status change On active M On inac Page of configuration for a virtual variable Control Embedded PLC MI Configuration Virtual PLC IP port Variables Flash Memory Cycle time Program Parameter Peer to Peer Program PLC Program Parameters New parameter Associated Ao Logic Address SHG TOVloss s 120 AO SHG_TOVloss SHG_TOCommand s 17 AO2 SHG_TOCommand SHG_TOAutoComms s 900 AO3 SHG_TOAutoComms SHG_Comm_HodeType 2 2 Middle Node AO4 SHG_Comm_NodeType SHG_Comm_Path 11 PathB AOS SHG_Comm_Path SHG_Master Node 0 No AOS SHG_Master Node SHG_CheckVoltage 1 Yes AO7 SHG_CheckVoltage Corresp_Switch_A 1 AO8 Comesp_Switch_A Corresp_Switch_B 2 AOS Comesp_Switch_B Corresp_Switch_C 3 AO10 Comesp_Switch_C SHGClosingPriority 1 BAC AO11 SHGClosingPriority SHG_StartDelay 0 AO12 SHG_StartDelay FeederLimit 630 AO13 FeederLimit Example of PLC parameters 16 Schneider P Electric RTU Control software 1 5 5 PLC variables page The page Variables of the Embedded PLC menu permits to manage the internal variables that are used for the internal exchange between PLC and the T200 F200C unit Variables that can be shared are e Existing variables of the T200 F200C defined to be shared with RTU Control because used in the PLC program e Virtual variables created sp
17. ate section indicates if the module is running or stopped The module can be started or stopped using the corresponding buttons This parameter is saved if the RTU re start the module will be in the last state Note to allow the connection with the virtual machine the module must be running 1 5 3 2 Virtual machine state If the module is running a second line shows the state of the virtual machine executing the program The program can be started or stopped from the interface using the buttons Note depending on the number of variables in the program the start up delay can be shorter or longer 1 5 4 Error messages If the start of the module or the program has failed one or more error messages can be shown Schneider 15 Electric RTU Control amp Formulas Control Embedded PLC Virtual PLC IP port Flash Memory Cycle time Program Parameters Peer to Peer en Debuo EHERICH Switchgear_ supply OFF Boolean TSS19 FALSE Telecom _supply_OFF Boolean TSS20 FALSE Charger _fault Boolean TS521 FALSE Battery_fault Boolean TSS22 FALSE FPI_failure Boolean TSS47 FALSE Equipment Fault Boolean DI FALSE Variables page igital input configuration General parameters Variable name Equipment_Fautt Type Logical address Class T200 Internal fault vw Internal address oo Externe Active Inactive status z 3 iras Active 1 ly es qa Inactive Communication par
18. ault File Edit View Insert oes Tools Window Help ae H a GF Build Project FR E Es ql Settings At F7 23 Programs IH Configuration d Libraries T Ant Cycle Clean Project y a Simulate A FS Button for downloading application RUN Pz 4 ault Ag Ham Run status in the RTU Control workbench Embedded PLC Configuration Virtual PLC IP port ho o Cycle time 100 ms Program equipt_fault v Start Option Cold Start w Save PLC Running Stop Start Reset Program Running Stop Star PLC Running status in the Embedded PLC page of web server NT00320 EN 02 RTU Control software 1 3 2 Connection to the PLC and download of a program Once the project is open configure the connection to the virtual PLC From the RTU Control workbench open the following link Menu Tools gt Communication parameters e Select T5 Runtime e Enter the IP address of the device followed by the IP port number used by the Virtual Machine configured previously on the unit The two fields must be separated by the character if IP port is omitted 1100 will be used e The example shows a configuration for a T200 with the IP address 10 199 45 103 and the IP Port number 1100 e Click on Ok To connect the workbench to the T200 F200C and download the application to the target click on Menu Project On line Download application To sto
19. character string that defines the read format for the date and time The function therefore returns date X as TIME_T according to format F F is in the form d m y H M S with d the day of the month from 1 to 31 m the month of the year from 1 to 12 y the year in 2 figures Y the year in 4 figures H the time according to the 24hr clock h the time according to the 12hr clock M the minute from 0 to 59 S the second from O to 59 NT00320 EN 02 RTU Control amp Formulas NT00320 EN 02 Formulas 2 3 4 3 isweek X If X optional is absent the function returns the boolean value true if the current date is a working day from Monday to Friday inclusive If X is of type TIME_T the function returns true if the date X is a working day Otherwise X refers to a number for the day of the week and the function returns true if day X is a working day 2 3 4 4 deltats Returns the time in SECONDS between two executions of the formula This function is very powerful as it allows the creation of integrations differential coefficients etc It is based on the system s real time clock 2 3 4 5 deltatms Returns the time in MILLISECONDS between two executions of the formula This function is very powerful as it allows the creation of integrations differential coefficients etc It is based on the CPU s quartz clock This means that it is relatively inaccurate over the long term 2 3 5 Other functions
20. d Then click on the Submit button to recognize the program in the virtual PLC NT00320 EN 02 RTU Control amp Formulas Memory usage total size 64768 e EE a Contain tame Action equipt_fault 1892 Send a file Browse Submit Flash memory page Control Embedded PLC configuration Virtual PLC IP port Flash Memory Cycle time Program Parameters Peer to Peer N Debug PLC Stopped toy Start Reset PLC stopped PLC Running Stop Start Reset Program Stopped Stop Start PLC running program stopped PLC Running Stop Start Reset Program Running Stop Start PLC and program running Errors Error Loading Program Error Saving Program Error Saving code change Different error messages NT00320 EN 02 RTU Control software The program is ready to be used The name of the program is then displayed in the Contain part with an indication of the file size It is possible to erase this program in the PLC via the Delete button It is possible to download this file to the PC s hard disk in the form of a cod extension by clicking on the name of the program The memory size used by the program is also displayed as a percentage lt is recommended to format the memory before first use via the Format button 1 5 3 Working state of the PLC 1 5 3 1 PLC status In the Embedded PLC Configuration page the first line of the Working st
21. ditional operator can also be used for allocation B gt C D B A in this case if B gt C D is allocated with the value A otherwise it is E that is allocated with the value A 04 Schneider NT00320 EN 02 RTU Control amp Formulas Formulas 2 2 2 Order of importance of operators and use of brackets The decreasing order of importance in the execution of an expression s operations is the following PO max priority Positive sign P1 Negative sign Logical NOT Complement to 1 Power Multiplication P2 P3 Division Remainder Addition ME BEE A A EEE a e OOO Subtraction nn Shift lett EEE Shift right Bitwise AND re Bitwise OR BEE Bitwise EXCLUSIVE A Logical AND ICI Logica OR Logical EXCLUSIVE mm Test equal to A Test less or equal to Test great or equal to Test less than Test greater than Test different from Allocation pte P7 min priority Operation on integer only manipulation on bits Var lt lt gt gt Wit A 88 AN NT00320 EN 02 Schneider 25 RTU Control amp Formulas Formulas 2 3 Functions The functions arguments may be any kind of operand but also mathematical or logical expressions or function results This makes it possible to link together several function and operation Calls the three small dots indicate functions with a varying number of arguments x the square brackets refer to one or several operatio
22. e than two channels for example e Application of load shedding e Any other automatism specific to a customer Warning it is not possible to have simultaneously in the product the option IEC 61131 3 PLC and the predefined automation ATS Sectionalizer A development platform allows creating simulating and testing programs using one of the following languages e SFC Sequential Function Chart e FBD Function Block Diagram e LD Ladder Diagram e ST Structured Text 0 Il Instruction List This development platform is the software RTU Control supplied with the product This platform can generate a program that will be executed by a virtual PLC This virtual PLC embedded in the T200I exchange data in Read Write mode with the T200I software allowing the exploitation of internal variables Variables exchanges NT Programs download Schneider g RTU Control amp Formulas RTU Control software The details of programming with IEC61131 3 languages and the use of the platform will not be explained in this document The specific documentation can be accessed through the RTU Control software However we shall explain in this document how to download and use a PLC program established in tne Web server of the T200 F200C and provide brief initial instructions regarding the platform and management of the parameters and associated variables 4 Schneider NT00320 EN 02 RTU Control amp Formulas RTU
23. ecifically for the RTU Control program The value of a virtual variable can if necessary be modified in this page via the Change Value button Clicking on the name of the variable provides access to the configuration page for that variable Virtual variables are differentiated from the other variables by a topic value Virtual Except for the Topic value the configuration of these variables is identical to the other types of T200 F200C variables See section 2 4 1 Creating variables 1 5 6 Program parameters A set of parameters which are applicable for the PLC Application can be created and modified using this page The parameters values are saved together with the Easergy configuration without having to change the PLC Application These parameters can be numeric within a defined range or part of a list which associates a text to a numeric value To transfer the parameter values to the PLC application it is necessary to define virtual Analog Output variables Each parameter is linked to one Analog Output which must be defined as a shared I O variable in the PLC program The PLC parameter value is written to the AOs when the RTU starts up technically when the PLC virtual machine thread starts up after new values are entered on the PLC parameter web page after the system detects a change in the configuration for MODBUS master and or virtual variables NT00320 EN 02 RTU Control amp Formulas PLC Progra
24. ed in time by TO seconds x TO gt gt 2 3 3 3 hold X T1 X is a boolean value T1 is a number of seconds The function returns true for at least T1 seconds on a front edge transition from O to 1 of X If X stays at 1 true for more than T1 seconds the hold function returns true during this time BEER O EEE O hold X T1 T1 T1 I I I 2 3 3 4 tempo X T2 X is a boolean value T2 is a number of seconds The function returns true if X moves to 1 for at least T2 seconds After this time the function returns true as long as X is at true x t T2 I 4 N I 4 N I Time out X T2 t lt T2 08 Schneider NT00320 EN 02 RTU Control amp Formulas R 33 Formulas 2 3 3 5 pwm T R The function returns a boolean value at the rhythm of a PWM signal of period T and cyclical ratio R as a percentage R must be between 0 and 100 T1 To T1 33 T TO 100 33 T R 50 R 66 L gt lt gt T1 50 T TO 100 50 T T1 TO i i 4 gt i T1 66 T NT00320 EN 02 TO 100 66 T eee T 2 3 3 6 Iswithin X min max returns a boolean value that is worth true if X gt min AND x lt max and otherwise false Schneider 29 RTU Control amp Formulas 30 Schneider Formulas 2 3 4 Time Date and time functions The TIME_T format is a data format that allows the recording of
25. eference This means it is possible to combine it with an allocation operation mini VAR1 VAR2 VAR3 4 with VAR1 VAR2 VAR3 of the variable references if VAR3 has the minimum value this variable will then be allocated with the value 4 2 3 2 2 maxi A B Returns the argument whose value is the largest This function must include at least two argumenis As with mini this function returns the argument reference 2 3 2 3 pmini A B Returns the position from 0 of the argument whose value is the smallest This function must include at least two arguments 2 3 2 4 pmaxi A B Returns the position from 0 of the argument whose value is the largest This function must include at least two arguments 2 3 2 5 sum A B Returns the value of the sum of the arguments This function must include at least two argumenis 2 3 2 6 avg A B Returns the value of the argument s average This function must include at least two arguments Schneider 27 RTU Control amp Formulas Formulas 2 3 3 Logical functions 2 3 3 1 pulse X TO T1 X is a boolean value TO and T1 are numbers of seconds On front edge of X transition from 0 to 1 after TO seconds the function returns true 1 for T1 seconds The rest of the time it returns false 0 1 pulse X TO T1 A 2 3 3 2 delay X TO X is a boolean value TO is a number of seconds The function copies the value of X is shift
26. etup Status Please wait RTU CONTROL installation is in progress If you want to interrupt installation process press the Cancel button But in this case correct working of the program is not quaranteed Copying file C Program Files RTU CONTROLSKSXRet dll Cancel NT00320 EN 02 Schneider 5 RTU Control amp Formulas ES RTU CONTROL Project BEAR EN Edit view Insert Project Tools Window Help New Open Close New Project Open Project E3 Erom Disk Save Project gt I From Zip Project Description From Target Save Ctri 5 Save All Print Ctrl P 1 D documents and Settings 5E5450737 My Documents RTU Control Programmes RTU CONTROL Dossiers completsiProject 2 C Documents en cours Power pointiSoft Straton ConfigiDefaut_Equipt 3 C Documents termin s Notices d utilisation T2001 Stedin SETC_T200_ 12 4 C Documents termines Notices d utilisationT2001 Stedin Defaut_Equipt 5 C Documents en cours Notices d utilisation Stedin SETC_T200_ 12 6 C Documents en cours Stendin SETC_T200_ 12 3 Maths 2 Miscellaneous 2 PID Plus 3 Registers Offline 10 195 43 240 110 A 0 0 EIER Type D o a M Global variables Switchgear_ BOOL Telecom_su BOOL Charger_fault BOOL Battery _fautt Battery_fault BOOL FPI_failure BOOL FPI_failure Equipment_ BOOL RETAIN variables lt Telecom_suppl Charger _fault E Recent Used E am E Advanced Arithmetic Boolea
27. he name of the variable declared in the workbench if this one is different from the one defined in the T200 F200C Yes or to force to use the same name as the variable defined in the T200 F200C No default value ExtName Name of the T200 F200C variable associated to the workbench variable This parameter allows you to make the relation between the variable of the T200 F200C and the corresponding variable in the workbench if they have different name used only if UseExtName Yes The field length is limited to 15 characters MustExist Choice to authorize creation of variable No default value or to impose using already existing variables At start of the program the T200 F200C checks all shared variables If the associated variable exists the link is done If the variable does not exist the T200 F200C can be authorized or forbidden to create it This parameter allows a better control when the goal is to link to an existing variable Mode Input Output Data exchange mode the Mode is used to determine whether from the PLC application perspective variables are read only or read write Variables defined as Inputs in the PLC application will be read only i e changed only by the RTU firmware Variables defined as Outputs will be read write For both Inputs and Outputs the current value will be read at the beginning of each PLC cycle Only Output variables will be updated at the end of the PLC cycle Note tha
28. iew Insert Project Tools Window Help ax Properties Description Variable Vers Version of ATU Control s 10 profile UseExtN ame Name Use ExtName instead of name ExtName MustE xist Mode WarDirection External Name of the variable if used Disable auto creation of the variable PLC Mode RTU Direction for creation of variable MustExist Mode VarDirection Equipmentfault Yes Input Signal AutomatismCtrl Yes Dutput Signal Switchcontrol1 Yes Dutput Signal Switchcontrol2 Yes Dutput Signal MV1Presence Yes Input Signal MV2Presence Yes Input Signal SW Lock Yes Input Signal SW2Lock Yes Input Signal lobal variables A Name Global variables S_Equipment_Fault_LED C_Automatism_ON_OFF_ C_SW1_State C_SW2_State S_MY1_Voltage S_MY2_Voltage 5_S5W1_Locked S_SW2 Locked S_SW _ State S_Automatism_ON_OFF_ S_Local_Remote 5 _SW2_ State PermutationWaitTime ReturnToNormalTime Automatism_ON_OFF_Swit fl RETAIN variables O ATS_Simulation Type BOOL SINT SINT SINT BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL TIME TIME BOOL This explorer allows to have a global view on the variables associated to the RCIO profile and to modify them drag and drop function allows to link easily a variable to a profile NT00320 EN 02 RTU Control amp Formulas RTU Control software 1 4 2 Use of Arrays Project settings l Complex arrays of variables or structures can be used
29. m Parameters Parameter 5G_TOAutoComms s name Value 900 A eiated A03 SHG_TOAutoComms Numeric C List Min value o Max value essas Type PLC Program Parameters de SHG_Comm_NodeType name Value 2 2 Middle Node en A04 SHG_Comm_NodeType v Cancel Delete Control Monitoring Embedded PLC Configuration Virtual PLC IP port Variables Flash Memory Cycle time Program Parameters Program Peer to Peer I O nterface Internal Variables NT00320 EN 02 RTU Control software Up to 20 parameters can be defined For each the following parameters can be defined the name the value the Associated AO the AO must be previously defined the type Numeric or List the possible range of value Min Max for a parameter of type List add and edit the possible items of the list 1 5 7 Peer to Peer configuration page The Peer to peer feature allows direct side ways communication between two or more RTUs independently of the upwards communication to a SCADA system The RTUs must be installed on the same TCP IP network Ethernet or GPRS UMTS This page shows the configuration of the transfer tables that are used to send messages between two neighbouring equipments Peer to Peer principle The peer to peer communication can copy the values of a set of variables from one RTU to another using the
30. mmand TCD Switch control Switch status iu QU Kay Ground disconnecting switch Variable configuration page General parameters Variable name Equipment_Faut Type Logical address Class 7200 Internal fault Internal address bo 8 8 Exterr Active Inactive status s 4 definition Active 1 Yes Ba Inactiy Communication parameters Virtual single bit v Log configuration On status change On active M On inz 32 Schneider P Electric Formulas 2 4 Settings 2 4 1 Creating variables The user must declare variables that are specifically associated to the Formulas They will be updated only by the Formulas function but will be managed like any other variables regarding protocol and display of status Creation is performed from the Variable Configuration page of the Web server in the same way as for the other types of variables The types of variables that can be created for the functions are eee ee type e iee pee signal m Single remote command Single bit command Analogue measurements performed by the T200 F200C currents voltages etc Al Analogue measurements AO Analogue command Analogue writinc AO single bit command switch circuit breaker signal breaker position The name of the variables associated with the calculation formulas should not contain any space A variable associated with a formula should be configured with a Vir
31. nal argumeni s 3 1 Mathematical functions Excluding indications to the contrary the data format of the values returned by these functions is IEEE floating simple precision 2 3 1 1 abs x Returns the absolute value of its argument x The type of data returned by the function is the same as that of x Example Abs VAR1 3 2 3 1 2 sqrt x Returns the square root of x If x is less than zero the operation causes an execution error 2 3 1 3 log x Returns the Napierian logarithm of x If x is less than or equal to 0 the operation causes an execution error 2 3 1 4 logi0 x Returns the logarithm in base 10 of x If x is less than or equal to 0 the operation causes an execution error 2 3 1 5 exp xX Returns the exponential of x exp log x x 2 3 1 6 pow x y Returns x to the power of y pow x y x y xy 2 3 1 7 intg x Returns the whole part of x For example intg 12 46 12 The value returned is an integer INT32 2 3 1 8 rand x Returns a random whole number greater than or equal to 0 and less than x The value returned is a double word DWORD 06 Schneider NT00320 EN 02 RTU Control amp Formulas NT00320 EN 02 Formulas 2 3 2 Statistical functions 2 3 2 1 mini A B Returns the argument whose value is the smallest This function must include at least two argumenis Note that this function returns not only the value of the argument but also its r
32. ns E Clock Comparisons Conversions Counters E Maths Miscellaneous PID OffLine 10 195 43 240 110 A 0 0 0x0 0 0 4 Program open in the workbench 6 Schneider Electric RTU Control software Now that the RTU Control software is installed download a program established in the PLC There are two methods for downloading a PLC program into the T200 F200C equipment e Via the RTU Control platform provided that the RTU Control program is installed on the PC connected to the T200 F200C and that the equipment is powered up with the PLC function started e Via the embedded Web server of the T200 F200C provided that the PLC program is available in the form of a file with a cod extension 1 3 Downloading a program via RTU Control software This chapter shows the first method for downloading a program from the PLC software RTU control This assumes that the RTU Control software is installed on the PC that is connected to the web server of T200 F200C and that the corresponding project is available 1 3 1 Opening a project The opening of the project is carried out from the program interface RTU Control Menu File Open project From Disk Then choose the project to be downloaded The project opens in the workbench NT00320 EN 02 RTU Control amp Formulas Communication Settings Cancel Help t5 Runtime 10 135 43 240 1100 132 169 1 154 17100 Ef RTU CONTROL Equipt_F
33. p the application click on the same button Note this command can be done directly using the task bar The program is now ready to be used in the unit It appears now with the running status e Inthe RTU Control software e In the Embedded PLC page of the T200 F200C s Web server Note We shall learn later the details regarding this Embedded PLC page and how to access it Schneider 7 Electric RTU Control amp Formulas RTU Control software 1 4 Shared variables The embedded PLC handles internal variables and can also share variables with the T200 F200C software A variable shared on the platform will be automatically linked to a T200 F200C variable at start up of the application RTU Control development XY 7 platform Programs download Inputs outputs from internal I O or from an external PLC The variables that can be shared are Global variables These variables can be used anywhere in the program The link between PLC variables and T200 F200C variables can be done in different manners strict equality of the name or using different names automatic creation of variables in the T200 F200C or use of existing variables in case of creation choice of exchange mode T200 F200C point of view fi Global variables Ss Equipment_Fault_LED BOOL E C_Automatism_ON_OFF_ SINT a 1 41 Share a variable 3 C_SW1_State SINT Es C_SW2_State From the workbench disconnected from the device or S M
34. r Variable management Variable configuration Classes configuration Embedded PLC Formulas SEE Enter Activation Code fos o fossa 0216 5254 Save Cancel Reset Page for RTU Control software activation P21CZ xxBM22GZx Administrator Diagrostic Maintenance Control Monitoring Embedded PLC Configuration Variables Virtual PLC IP port py Flash Memory Cycle time Program Parameters Peer to Peer Program Debua Flash memory Applications Memory usage total size 64768 SY Feat Send a file Flash memory page 14 Schneider Electric RTU Control software 1 5 2 Downloading a program via the embedded Web server This chapter explains the second method to download a PLC program from the embedded Web server of T200 F200C To be able to download the program you need first to get the cod file To access the Embedded PLC page of the embedded Web server click on the corresponding link Embedded PLC lf RTU Control software has never been activated in equipment enter the activation code provided by Schneider Telecontrol Then click on the Flash Memory link to access the PLC file and memory management page This page manages the programs of the application to be uploaded or already uploaded in Flash memory of the device Click on the Browse button to define the location of the PLC program file extension cod to be downloade
35. st be complied with for names of variables and operands Each formula can be activated deactivated via a check box A formula refresh period should be defined A period defined as Auto the shortest possible period 100 ms An error message is displayed if the syntax of the formula is not correct The result of the formula can be viewed in the Monitoring page It corresponds to the state of the variable associated with the formula which corresponds to its result Schneider 33 RTU Control amp Formulas Personal notes 34 Schneider NT00320 EN 02 RTU Control amp Formulas Personal notes NT00320 EN 02 Schneider 35 Schneider Electric Industries SAS Schneider Electric Telecontrol 839 chemin des Batterses Z l Ouest 01700 St Maurice de Beynost Tel 33 0 4 78 55 13 13 Fax 33 0 4 78 55 50 00 http www schneider electric com E mail telecontrol schneider electric com NT00320 EN 02 08 2013 En raison de l volution des normes et du materiel les caract ristiques indiqu es par les textes et les images de ce document ne nous engagent qu apres confirmation par nos services As standards specifications and designs change from time to time please ask for confirmation of the information given in this publication Debido a la evoluci n de las normas y del material las caracter sticas y dimensiones indicadasen el texto y las im genes nos comprometen solamente previa confirmaci n de nuestros servicios
36. t concrete variables automatically read only such as TSS are VarDirection Signal Command Type of variable from the T200 F200C point of view Used when a variable is created by the T200 F200C MustExist no and corresponding variable does not exist Variable defined as Signal will be created as an Input DI or Al Variable defined as Command will be created as an Output DO or AO The commands can be controlled by the user via the web interface or via the protocol example parameter set point option Warning the input output notion from the T200 F200C point of view is different from the PLC notion where a parameter is an input of a function block for example After changes have been done to the variables configuration the program must be re build and reloaded into the device so that the modification is taken into account Schneider 9 Electric RTU Control amp Formulas 10 eH amp Workspace Programs AY ATS_Simulat Schneider x Profile a og RACIO S_Equipment_Fault_LED C_Automatism_ON_OFF_Switch C_SW 1_State C_SW2 State S_Mw1_Voltage S_MY 2 Voltage S_SW1_Locked S_SW2 Locked iii 6 TILTI Yers UseExtName ExtName b gt b b b odo Yes Yes Yes Yes Yes Yes Yes Yes RTU Control software Settings management for the shared variables can be done via the browser profiles icon Open Profiles ES RTU CONTROL ATS File Edit V
37. tual topic NT00320 EN 02 RTU Control amp Formulas Communication Operation mode Protocol TCPAP Protocol 1 Port 1 transmission Port 2 transmission Modbus master Communication Slaves Configuration Control Module n 1 Control Automation MeasurementiFault Indicator Variable management Variable configuration Classes configuration Embedded PLC Formulas AA Tr Y Equipment_Fault Switchgear_supply_OFFiTelecom_sy Clear fo m iP Clear an Example of formula defined _OFF Telecom_si Clear o OK Add this formula an Refresh delay of a formula Error message CO Defaut EquipemenT amp incorrect Be Add this formula Example of error message in case of incorrect input in formula T200 Internal fault Switchgear_supply_OFF Telecom_supply_OFF Charger_fault Battery_fault BEZ BEER FPI_failure Ho Formula result in Monitoring page NT00320 EN 02 Formulas 2 4 2 Entering the formula Once the variable has been created the associated formula must be entered in the Formulas page of the Web server This page can include at most 100 formulas 20 formulas can be displayed simultaneously Rules for entering the formula e Each formula should start with name_of_the_variable e No space is accepted in the name of the variables e The content of the formula with the operands and operators is defined after the sign e The case mu
38. uration parameters 1 5 1 PLC Configuration Click on the Parameters link to access the PLC parameters configuration page This page contains informations about the operating status of the virtual machine and the associated program and possible presence or error messages 1 5 1 1 Virtual PLC IP port Number of the IP port that will be used by the PLC program RTU CONTROL Default value 1100 1 5 1 2 Cycle time This value is in milliseconds is a period which correspond to the cycle of the virtual machine This value in ms must be defined between 100 and 10000ms 10 seconds 1 5 1 3 Program Name of the program loaded and executed by the virtual machine including all such programs in the flash memory The T200 F200C help maintain multiple programs in memory but only one can be executed See chapter Downloading a program via the embedded Web server for more information Note the option to start the PLC is not configurable This start up is always performed as a Cold start Consequently all the internal variables of the PLC will be reset to their initial values during start up period The values of Retain variables are not used Schneider 13 Electric RTU Control amp Formulas Communication Operation mode Protocol TCP IP Protocol 1 Port 1 transmission For 2 transmission Modbus master Communication Slaves Configuration Control Module n 1 Control Automation MeasurementiFault Indicato
39. wise false AN Logical A 4 B true if A true AND B false OR A false EXCLUSIVE AND B true OR Logical NOT A true if A false Remark the symbol is obtained by pressing simultaneously the keys AltGr and 6 from the keyboard 2 2 2 3 Binary Bitwise AND GAA 8 55 00 Bitwise OR GAA 55 FF Bitwise EXCLUSIVE AA A A5 0F S pg AA nn ee Complement to 1 and vice versa NT00320 EN 02 Schneider 93 RTU Control amp Formulas Formulas 2 2 2 4 Comparisons Equal Different Greater than a than or equal ess than a than or equal to 2 2 2 5 Allocation operator The operator is used to allocate a value to a variable Example mavar 2 The user does not need to worry about the destination data format as the conversions are automatic In the case of an input output peripheral variable allocation will cause the sending of an order of writing to the peripheral when the formula is executed 2 2 2 6 Conditional operator The operator expr A B returns A if expr is true otherwise B expr must be a boolean expression For example A B gt C D E will allocate D to A if B is greater than C otherwise it will allocate E to A It is of course possible to use brackets to create more complex expressions The same principle applies to operations A B gt C D E is worth A D if B gt C otherwise it is worth A E The con
40. xamples Some demonstration projects are provided as examples They are part of RTU Control installation and are included in the in the folder RTU CONTROL Samples Easergy These projects allow for example to show the link between RTU Control and the T200 variables and also the management of TSD TCD They include corresponding T200 or F200C configurations in a dedicated folder These projects are dedicated to the demonstration and are not supported by the technical support No responsibility is assumed by Schneider Electric for any consequences arising out of the use of these programs 00 Schneider NT00320 EN 02 RTU Control amp Formulas Formulas 2 Calculation formulas 2 1 Presentation Contrary to the PLC which is an option for the T200 and Flair 200C the calculation formulas are provided as standard with the basic T200 The calculation formulas allow arithmetic and combinational operations between variables The formulas make it possible to e Perform mathematical calculations based on physical measurements consumption conversions etc e Create personalized indications combinations of variables grouped faults etc e Define new type of automation for controlling or monitoring change over etc A formula is associated with a variable Following its execution the formula will assign the value obtained to the associated variable Its value is updated at each execution of the formula according

Download Pdf Manuals

image

Related Search

Related Contents

LG MS-192W User's Manual  Philips Citrus press HR2752/90  UX-S15 - produktinfo.conrad.com  

Copyright © All rights reserved.
Failed to retrieve file