In no event shall ABB Oy be liable for direct, indirect, special, incidental, or consequential damages of any nature or kind arising from the use of this document, nor shall ABB Oy be liable for incidental or consequential damages arising from use of any software or hardware described in this document.
Station Automation COM600 3.4 1MRS756738 Logic Processor User's Manual • Capital letters are used for the name of a keyboard key if it is labeled on the keyboard. For example, press the ENTER key. • Lowercase letters are used for the name of a keyboard key that is not labeled on the keyboard.
Terminology The following is a list of terms associated with COM600 that you should be familiar with. The list contains terms that are unique to ABB or have a usage or definition that is different from standard industry usage. Term...
The report control block controls the reporting processes for event data as they occur. The reporting process continues as long as the communication is available. ABB proprietary communication protocol used in substation automation. SPA device Protection and/or Control Product supporting the SPA protocol version 2.5 or earlier.
Station Automation COM600 3.4 Logic Processor User's Manual Abbreviation Description LonMark interoperable device communicating in LonWorks network. In this document, the term is used for devices that do not support the ABB LON/LAG communication. Logical Node LON SPA Gateway Network Control Center...
1MRS756738 Station Automation COM600 3.4 Logic Processor User's Manual Introduction 2.1. Functional overview The Logic Processor function enables developing customer-specific automated applica- tions for COM600. Applications are programmed using the IEC 61131-3 logic editor (CoDeSys). The COM600 unit has the logic engine (CoDeSys SP Runtime), which can load and execute the created IEC 61131-3 applications.
Station Automation COM600 3.4 1MRS756738 Logic Processor User's Manual Logic Processor.bmp Figure 2.1-1 Functional overview of Logic Processor CoDeSys SP runtime system is manufactured by 3S-Smart Software Solutions GmbH (www.3s-software.com). 2.2. Features Logic editor (CoDeSys V3 programming system) supports all five standard programming languages defined by the IEC 61131-3 standard: •...
Page 13
1MRS756738 Station Automation COM600 3.4 Logic Processor User's Manual • Structured Text (ST) • Instruction List (IL) Logic editor also supports online debugging. CoDeSys SP Runtime system includes the following features: • Loading and execution of the IEC 61131-3 applications •...
Station Automation COM600 3.4 1MRS756738 Logic Processor User's Manual Configuration 3.1. Overview of configuring Logic Processor The prerequisite is to have knowledge about logic programming and IEC 61131-3 standard. Also, CoDeSys V3.2 SP2 must be installed to be able to use the Logic Editor in SAB600.
1MRS756738 Station Automation COM600 3.4 Logic Processor User's Manual Add_Logic_Processor_IED.bmp Figure 3.2-1 Adding a Logic Processor IED 3.3. Logic editor 3.3.1. Creating the logic in the CoDeSys programming environment Logic Processor IED must be added to the communication structure before starting the Logic Processor CoDeSys programming environment.
Station Automation COM600 3.4 1MRS756738 Logic Processor User's Manual Default_POU.bmp Figure 3.3.1-1 Default POU in the CoDeSys project You can modify the existing POU and add more POUs under the device. CoDeSys pro- gramming help is available from the Help menu.
1MRS756738 Station Automation COM600 3.4 Logic Processor User's Manual Adding_symbol_configuration.bmp Figure 3.3.2-1 Adding symbol configuration To get the currently available item pool, first click Refresh. Add a variable from the Available variables field to the Selected variables field, select the variable and click the arrow button [>].
Page 18
Station Automation COM600 3.4 1MRS756738 Logic Processor User's Manual Adding_Program_Main_Task.bmp Figure 3.3.3-1 Adding program to main task In the Devices window the name “Application” is displayed in bold letters. This means that this application is set as “Active application”. Thus all commands and actions concerning the communication with the PLC refers to this application.
1MRS756738 Station Automation COM600 3.4 Logic Processor User's Manual Selecting_Program.bmp Figure 3.3.3-2 Selecting program to add to main task 3.3.4. Configuring communication between Logic Editor and Logic Runtime To download a logic program: 1. Select a device by double-clicking the Device node in the Devices tree.
Page 20
Station Automation COM600 3.4 1MRS756738 Logic Processor User's Manual Add_gateway.bmp Figure 3.3.4-1 Adding the Gateway object 3. Add the IP Address of the COM600 computer to the Gateway dialog and click OK. 4. The Device dialog opens with the Communication Settings tab.
1MRS756738 Station Automation COM600 3.4 Logic Processor User's Manual Select_device.bmp Figure 3.3.4-2 CoDeSys Device dialog 5. In Device dialog, click Scan network. PLC Device on COM600 appears. The Node name is the COM600 computer name. 6. Select the PLC device and click Set active path.
Page 22
Station Automation COM600 3.4 1MRS756738 Logic Processor User's Manual Login_to_application.bmp Figure 3.3.5-1 Logging in to application To start the PLC program application: 1. Select Online > Start ‘Application [Device: PLC Logic]’ .
1MRS756738 Station Automation COM600 3.4 Logic Processor User's Manual Start_application.bmp Figure 3.3.5-2 Starting application on the device 2. When the logic application has started, the status window shows RUN in green. 3.3.6. Monitoring and debugging Open the instance window of a POU, and monitor and debug the application in online...
Page 24
Station Automation COM600 3.4 1MRS756738 Logic Processor User's Manual Monitoring_and_debugging.bmp Figure 3.3.6-1 Monitoring and debugging You can write or force values to Logic Processor variables. To write or force values: 1. Enter values in the Prepared value column of the Expression table.
Page 26
Station Automation COM600 3.4 1MRS756738 Logic Processor User's Manual Variable_is_written.bmp Figure 3.3.6-3 Variable is written 3. After PLC logic has been tested, you can log out from the device by selecting Online > Logout from ‘Application [Device: PLC Logic]’.
1MRS756738 Station Automation COM600 3.4 Logic Processor User's Manual Logout_from_device.bmp Figure 3.3.6-4 Logging out from the Device Logic is still running on PLC device. 3.4. Making cross-references After logging out from the device, you can close the CoDeSys programming environment and launch the Cross References tool to build a cross-reference between the COM600 communication structure and Logic Processor variables.
Page 28
Station Automation COM600 3.4 1MRS756738 Logic Processor User's Manual The variable selected from the CoDeSys symbol configuration is shown in the PLC Server Path column. Logic_Processor_Cross_Ref Figure 3.4-1 Importing Logic Processor variables The Import button can be used for fetching a symbol file from another project.
1MRS756738 Station Automation COM600 3.4 Logic Processor User's Manual 7. The Direction field is used for setting the direction of the value transfer, either from data object data attribute to logic variable (->) or from logic variable to data object data attribute (<-).
Station Automation COM600 3.4 1MRS756738 Logic Processor User's Manual Add_OPC_Item_Path.bmp Figure 3.5-1 Selecting the logic variable to the OPC Item Path 6. Select the logic variable from the list and click OK. The created data objects can be used with COM600 HMI and slave clients.
1MRS756738 Station Automation COM600 3.4 Logic Processor User's Manual Application example 4.1. Logic requirement The following is an example of building PLC logic in COM600, and not intended to implement a complete breaker failure protection logic. An example project is provided on the SAB600 installation CD.
Station Automation COM600 3.4 1MRS756738 Logic Processor User's Manual 1. Each REF615 has a breaker failure protection. Each REF615 uses DNP 3.0. 2. Assume there is a fault F1 on Feeder #1. 3. Normally, REF615 protecting Feeder #1 should detect the fault and send an OPEN/Trip command to Bkr-2.
1MRS756738 Station Automation COM600 3.4 Logic Processor User's Manual Configuring_IEDs.bmp Figure 4.2-1 Configuring IEDs on SAB600 In breaker 1 IED, add a logic node Brk1CSWI1. Add one DPC data object (Pos) to read and control the switch. Add one SPS data object (Reset) to read Reset signal.
Station Automation COM600 3.4 1MRS756738 Logic Processor User's Manual Add_Logic_Processor_IED.bmp Figure 4.3-1 Adding Logic Processor IED 4.4. Creating logic configuration To build logic configuration: 1. Right-click on Logic Processor IED in SAB600 and select Logic Editor to launch the CoDeSys programming environment.
Page 35
1MRS756738 Station Automation COM600 3.4 Logic Processor User's Manual Adding_Function_Block_Diagram.bmp Figure 4.4-1 Adding a function block diagram 7. Click Open to confirm the object settings. 8. A further Function Block Diagram editor window opens for the new program. The Function Block diagram is a graphically-oriented programming language. It...
Page 36
Station Automation COM600 3.4 1MRS756738 Logic Processor User's Manual Adding_R_TRIG.bmp Figure 4.4-2 Adding R TRIG 10. Insert a rising edge detector to catch the breaker failure signal. Select R_TRIG, a rising edge detection function block from the Function blocks catalog, and drag and drop it to the Function Block Diagram editing area.
Page 37
1MRS756738 Station Automation COM600 3.4 Logic Processor User's Manual 12. In the Auto Declare dialog, the variable name, and scope are filled in automatically. 13. Enter the desired type and initialization value, and the declaration code is displayed in the declaration part of the editor.
Page 38
Station Automation COM600 3.4 1MRS756738 Logic Processor User's Manual Adding_AND_gate.bmp Figure 4.4-5 Adding Reset Set function block The logic can be built as follows. Logic_trip.bmp Figure 4.4-6 Failure Protection Logic...
1MRS756738 Station Automation COM600 3.4 Logic Processor User's Manual In this Function Block Diagram, the first row is to catch the rising edge of breaker 2 failure and check Reset signals. The second and third row are to generate an On/Off square wave (Tripping signal) from a break failure status by using Timer Pulse, Timer and XOR gate function blocks.
Station Automation COM600 3.4 1MRS756738 Logic Processor User's Manual 6. Add a variable from the Available variables field to the Selected variables field, select the variable and click the arrow button [>]. You can add all variables by clicking the double-arrow button [>>].
1MRS756738 Station Automation COM600 3.4 Logic Processor User's Manual Setting_communication_channel.bmp Figure 4.7-1 Setting communication channel 4.8. Building and activating the application 1. Select Build -> Build Application to compile the project. All objects belonging to the application is syntactically checked. Any potential error messages or warnings are displayed within the message view.
Station Automation COM600 3.4 1MRS756738 Logic Processor User's Manual 4.9. Making cross-references After logging out from the device, you can close the CoDeSys programming environment and launch the Cross-References tool to build a cross reference between the COM600 communication structure and Logic Processor variables.
Page 43
1MRS756738 Station Automation COM600 3.4 Logic Processor User's Manual Editor_Row.bmp Figure 4.9-2 Cross references tool From the data attribute drop-down list, select 'ctlOperOff' to map 'brk1Trip'. Click Apply to confirm the change in the table. The control signal is sending from the PLC logic to IED, so click the Direction field and make it point to the left <-.
Page 44
Station Automation COM600 3.4 1MRS756738 Logic Processor User's Manual Downloading Logic Processor OPC Server configuration For downloading Logic Processor OPC Server configuration, see 3.6, Downloading Logic Processor OPC Server configuration...
Page 48
Contact us ABB Oy Distribution Automation P.O. Box 699 FI-65101 VAASA, FINLAND Tel. +358 10 22 11 Fax. +358 10 224 1094 ABB Inc. Distribution Automation 655 Century Point Lake Mary, FL 32746, USA Tel: +1 407 732 2000 Fax: +1 407 732 2335...