SWM0018 LogicLinx Getting Started V300 R4
SWM0018 LogicLinx Getting Started V300 R4
Digital Energy
SWM0018
Version 3.00 Revision 4
Associated Software Release: Editor - Version 2.00-6.3
Executor – Version 3.00
GE Information
LogicLinx IEC 61131-3 Soft Logic
Getting Started
GE Digital Energy
TRADEMARK NOTICES
Windows®, Windows 7®, and Windows XP® are claimed as registered trademarks of Microsoft Corporation.
Other company or product names mentioned in this document may be trademarks or registered trademarks of their respective
companies.
2 SWM0018-3.00-4 GE Information
LogicLinx IEC 61131-3 Soft Logic
GE Digital Energy Getting Started
Contents
Purpose........................................................................................................................................ 6
Who Should Use this Document? ............................................................................................... 6
Additional Documentation .......................................................................................................... 6
Training Tool .............................................................................................................................. 6
1. Document Overview...................................................................................................................8
GE Information SWM0018-3.00-4 3
LogicLinx IEC 61131-3 Soft Logic
Getting Started
GE Digital Energy
4 SWM0018-3.00-4 GE Information
LogicLinx IEC 61131-3 Soft Logic
GE Digital Energy Getting Started
A. Troubleshooting ....................................................................................................................111
GE Information SWM0018-3.00-4 5
LogicLinx IEC 61131-3 Soft Logic
Getting Started
GE Digital Energy
Purpose
This document gives a system level description of LogicLinx explaining how it interacts with GE
Digital Energy automation equipment. As well, it provides background information and
exercises that illustrate some of the basics of configuring the LogicLinx Editor and LogicLinx
Executor (DTA).
By following the exercises in this document, a simple soft logic program will be created, tested,
and run on an actual device.
Additional Documentation
For further information about LogicLinx, refer to the following documents:
• On-line help included with LogicLinx Editor
• SWM0019 – The LogicLinx User’s Guide
• IEC 61131-3 standard documents that can be used as a programmer’s guide.
Training Tool
This document will be used as part of the Student documentation set for any formal GE Digital
Energy LogicLinx training program.
6 SWM0018-3.00-4 GE Information
LogicLinx IEC 61131-3 Soft Logic
GE Digital Energy Getting Started
Product Support
If you need help with any aspect of your GE Digital Energy product, you can:
•Access the GE Digital Energy Web site
•Search the GE Technical Support library
•Contact Technical Support
GE Information SWM0018-3.00-4 7
LogicLinx IEC 61131-3 Soft Logic
Getting Started
GE Digital Energy
1. Document Overview
1.1 Overview
This section of the document is designed to help readers understand the role that the
Introduction following chapters will have in their understanding and use of the GE Digital Energy
LogicLinx product.
Information is also provided to assist the reader in interpreting the format of the
document.
8 SWM0018-3.00-4 GE Information
LogicLinx IEC 61131-3 Soft Logic
GE Digital Energy Getting Started
Background For accurate, reliable and efficient operation of LogicLinx, it is imperative that the
practices and recommendations listed below be adhered to at all times.
Some of these practices and recommendations are repeated elsewhere in the LogicLinx
documentation. They are included here to highlight the most probable cause of problems.
If you have any doubts regarding the following practices and recommendations, contact
GE Digital Energy for clarification.
List of Tips Below is a list of tips that will help the first-time user to start using the LogicLinx
system smoothly.
Tip Description
1 Do not attempt to use LogicLinx for project development unless you have
read and understand all of the documentation.
You should read the documents in the following order:
• SWM0018 – LogicLinx Getting Started, and then
• SWM0019 - The LogicLinx User’s Guide.
The on-line documentation should be used as a supplement during
development.
We recommend you spend a few hours navigating around the sample
programs to get a feel of the features prior to immersing yourself in the
documentation.
2 LogicLinx supports on-line modifications without affecting program
execution.
Never attempt on-line modifications unless you have read and understand
the associated documentation.
3 Do not misplace your dongle (for version 1.x.) If you do you will have to
purchase another one (no exceptions).
4 Never forget any passwords you have implemented in a project.
5 Do not attempt to use LogicLinx for project development unless you have at
least a working knowledge of GE Digital Energy equipment, configuration
tools and system applications.
GE Information SWM0018-3.00-4 9
LogicLinx IEC 61131-3 Soft Logic
Getting Started
GE Digital Energy
Tip Description
6 Never commission a system with active LogicLinx programs unless the
programs have been verified in a system context.
7 Do not attempt to use features that are not currently supported.
8 Changes to any I/O device may impact LogicLinx program operation.
Always re-test your LogicLinx programs after changing any system device
configurations.
10 SWM0018-3.00-4 GE Information
LogicLinx IEC 61131-3 Soft Logic
GE Digital Energy Getting Started
Difference Description
1 The 16-bit version only runs on 32-bit versions of the Windows operating system while the
32-bit version runs on both 32-bit and 64-bit versions of the Windows operating system.
2 The 16-bit version requires users to run as administrators while the 32-bit version does not
have this constraint.
3 The 32-bit version allows users to compare LogicLinx programs in two different devices.
4 Sequential function chart (SFC) programs cannot be created or modified in 32-bit version.
Existing programs can be compiled and full support for these programs will be restored in
a future release.
5 Instruction language (IL) programs cannot be created or modified in the 32-bit version.
Existing programs can be compiled and modified using a text editor.
6 Function chart (FC) programs cannot be created or modified in 32-bit version. Existing
programs can be compiled.
7 Most programs created and modified in the 32-bit version can be opened in the 16-bit
version provided they do not exceed the maximum numbers for names, descriptions and
other artefacts of the 16-bit version.
8 The user-interface in the 32-bit version is based on Visual Studio 2010. Most of the
functions previously available through the toolbar and menus in the 16-bit version are now
available using a combination of the Solution Explorer and Properties windows of the 32-
bit version.
9 The Dictionary in the 16-bit version is now called Global Variables in the 32-bit version.
10 Compile and Make operations in the 16-bit version are called Build in the 32-bit version.
11 In order to set the target in the 32-bit version, you need to click on the drop-down in the
Solution Explorer.
12 The Link setup and connection parameters needs to be entered in the Properties window
after selecting Main -> Main from the Solution Explorer Window in the 32-bit version.
13 The debugger toolbar does not indicate the current, maximum and overflow cycle timings
in the 32-bit version.
14 In order to do simulation in the 32-bit version, you need to explicitly select the Simulate
target for a program, build it and then switch to Online mode.
15 You need to choose ‘Online’ mode in order to start real-time debugging in the 32-bit
version.
GE Information SWM0018-3.00-4 11
LogicLinx IEC 61131-3 Soft Logic
GE Digital Energy Getting Started
2. Product Description
2.1 Overview
GE Information SWM0018-3.00-4 13
LogicLinx IEC 61131-3 Soft Logic
Getting Started
GE Digital Energy
consists of periodically observing the global state of the system, instead of reacting to a
Time-driven single event.
The result is that the time interval between global observations is the quantity that drives
the control execution. i.e., time driven.
Comment: most PLC-type control systems use the time-driven approach
Advantages Disadvantages
Simplicity of operating systems Cyclicity; the cycle timing is inherently imposed
(programs) on all input events
Predictability of maximum Uniformity; all events are detected at the same
response time interval, neglecting their own repetitive intervals
Advantages Disadvantages
Flexibility; the programmer has a Complexity; it is very difficult to program for
powerful tool where events can be simultaneous events, and what-if situations
processed based on their nature
and importance
Requires a more complex operating system
Typically will require a more powerful (faster)
platform.
Unpredictable; events with higher priorities will
pre-empt other low priority events.
14 SWM0018-3.00-4 GE Information
LogicLinx IEC 61131-3 Soft Logic
GE Digital Energy Getting Started
GE Information SWM0018-3.00-4 15
LogicLinx IEC 61131-3 Soft Logic
Getting Started
GE Digital Energy
The LogicLinx Editor provides the tools necessary for a user to create, compile,
Overview simulate, download, debug, manage, document, archive, monitor and on-line modify
LogicLinx programs.
Unless otherwise indicated, the term Editor refers to both the 16-bit and the 32-bit
versions.
The Editor employs all of the IEC 61131-3 programming languages, providing
flexibility programming (with certain limitations in the case of the 32-bit version).
The 16-bit version of the Editor is available in sizes that are scaled to your requirements.
Editor
The 32-bit version of the Editor does not have any size limitation.
Options
16 SWM0018-3.00-4 GE Information
LogicLinx IEC 61131-3 Soft Logic
GE Digital Energy Getting Started
The Executor is an application that can be loaded into a GE Digital Energy target
The platform. It performs all program execution independently of the Editor, although the
LogicLinx Editor can modify execution.
Executor The core of the Executor is a software module that is designed to be ported to various
DTA operating systems and platforms, ensuring compatibility with future GE Digital Energy
products.
The Executor is available in versions that reflect the type of communications that will be
2 Versions used in the customer’s soft logic applications. B082-0 (WARP) provides Ethernet, serial,
and WESMAINT communications while B082-1 (MACH) provides serial and
WESMAINT communications.
The LogicLinx Executor can currently be installed into GE Digital Energy D25
Dependen- systems, and CCU base systems running on D20 ME and D20M++ platforms as well as
cies the D20MX platform.
Specifically, LogicLinx requires the use of the 68K File System in addition to the
standard 68K Base System for D20 and D200 platforms.
The Base System is responsible for all system data acquisition and distribution, primarily
via the WESDAC Interface Node (WIN+).
Ethernet communications, using the B082-0 variant (WARP version), requires the use of
the GE Digital Energy iSCS Internet Software package.
GE Information SWM0018-3.00-4 17
LogicLinx IEC 61131-3 Soft Logic
Getting Started
GE Digital Energy
LogicLinx (16-bit version only) features several different visual simulation tools:
Visual • Board Simulator • DDE Exchange
Simulation • SpyList • SpotLight
Tools • Cycle Profiler • Simulation Scripts
Bonus: Opening a program in its editor while in Debug mode will provide a visual
indication of the program operation.
Board Visually displays input/output states. You can, for example, activate digital inputs by
actuating pushbuttons while watching corresponding digital outputs with LEDs.
Simulator
Lets you build non-contiguous lists of variables that are refreshed with their current
SpyList values.
They allow you to watch the changes of a limited part of the controlled process
independent of the corresponding source code in the applications.
is a diagnostic tool that shows how cycle time is distributed between various applications
Cycle within your project.
Profiler Cycle Profiler gives you a quick diagnostic on each application’s performance and leads
you to the parts of the code that may need optimizing.
Simulation Allows you to create input files to automate the verification testing.
Scripting
Allows you to install an advice loop between LogicLinx’s debugger and other Windows
DDE applications such as MS Excel, MS Word and other “off the shelf” software.
Exchange Using Visual C++ or Visual Basic, you can create your own Windows programs to make
summary displays, alarm lists, overviews or to present dynamic data on a graphic display
window.
Allows you to build graphical displays such as one-line diagrams and mimic panels.
Spotlight
Backgrounds can be imported as bitmap files, and object animations can be imported as
icon files. Any icon building tool can be used.
A tool is available from www.easyapps.com.
18 SWM0018-3.00-4 GE Information
LogicLinx IEC 61131-3 Soft Logic
GE Digital Energy Getting Started
3.1 Overview
This chapter provides an overview of the IEC 61131-3 standard as it relates to the
Introduction LogicLinx product.
GE Information SWM0018-3.00-4 19
LogicLinx IEC 61131-3 Soft Logic
Getting Started
GE Digital Energy
Developed with the input of vendors, end-users and academics, the IEC 61131-3 consists
5 Parts of five parts:
• General Information
• Equipment and test requirements
• PLC programming languages
• User guidelines
• Communications
Language Abbreviation
• Ladder Diagram LD
• Sequential Function Charts SFC
• Function Block Diagram FBD
• Structured Text ST
• Instruction List IL
LogicLinx Specific “Language”
• Flow Chart FC
The primary benefit of the standard is that it allows one or more of the languages to be
Primary used within the same project.
Benefit The programming language used would be selected based on which one is best suited for
a specific task
20 SWM0018-3.00-4 GE Information
LogicLinx IEC 61131-3 Soft Logic
GE Digital Energy Getting Started
Each of the IEC 61131-3 languages is best suited for certain types of programming.
Suitability of
Language
GE Information SWM0018-3.00-4 21
LogicLinx IEC 61131-3 Soft Logic
Getting Started
GE Digital Energy
22 SWM0018-3.00-4 GE Information
LogicLinx IEC 61131-3 Soft Logic
GE Digital Energy Getting Started
4. Project Planning
4.1 Overview
GE Information SWM0018-3.00-4 23
LogicLinx IEC 61131-3 Soft Logic
Getting Started
GE Digital Energy
The LogicLinx Executor is intended for use in real time, multi-tasking operating systems.
Background
Program memory usage and performance is therefore extremely application-dependent.
Prior to implementation, assess the capabilities of target devices to ensure that adequate
resources are available for the intended programs.
The amount of memory required on the target system will be defined by:
System • the size of the program being downloaded, and
Loading
• the amount of system I/O mapped into the program
The Executor will also be constrained by whatever limits are present in the existing
target system software. Some of these limits are:
• Number of applications, in addition to LogicLinx, that are concurrently running.
• Communications activity, LAN, VME and/or serial.
24 SWM0018-3.00-4 GE Information
LogicLinx IEC 61131-3 Soft Logic
GE Digital Energy Getting Started
GE Information SWM0018-3.00-4 25
LogicLinx IEC 61131-3 Soft Logic
Getting Started
GE Digital Energy
26 SWM0018-3.00-4 GE Information
LogicLinx IEC 61131-3 Soft Logic
GE Digital Energy Getting Started
GE Information SWM0018-3.00-4 27
LogicLinx IEC 61131-3 Soft Logic
Getting Started
GE Digital Energy
5. Installing LogicLinx
5.1 Overview
This chapter defines the system requirements and procedures for installing the
Introduction LogicLinx Editor.
28 SWM0018-3.00-4 GE Information
LogicLinx IEC 61131-3 Soft Logic
GE Digital Energy Getting Started
It is highly recommended that the LogicLinx Editor be installed to the same PC that
Background SGConfig is installed.
This is suggested because the Executor (DTA) configuration files must be available to
the Editor so that you can map input and output points.
The LogicLinx Editor can be used on any PC that is currently running SGConfig.
The PC
Refer to SGConfig on-line documents or on-line help for detailed requirements.
Do not attempt to install the LogicLinx Editor or the LogicLinx Executor on platforms
! that are not supported by GE Digital Energy.
The Platform PC Must have a parallel port (LPT1) where the protection key (dongle) can
! be installed (LogicLinx Editor version 1.0, 1.1, or 1.2 only.)
GE Information SWM0018-3.00-4 29
LogicLinx IEC 61131-3 Soft Logic
Getting Started
GE Digital Energy
Background While it is possible to install the Editor without loading SGConfig onto the same PC,
GE Digital Energy does not recommend this practice.
As you will see in the exercises to follow, files are created during the SGConfig
procedures that will subsequently be used by the LogicLinx Editor.
LogicLinx If you have already have the LogicLinx Editor Demo version installed on this PC, GE
Demo Digital Energy recommends that you remove or overwrite it to prevent conflict.
What is During installation of the 16-bit version, a dialog box will ask which of these options will
be loaded:
Installed?
• programs
• sample applications
• standard libraries
• help files
It is recommended that a first-time installation include all four options.
If you choose to install only part of the list, the other options can be installed later simply
by repeating the installation process.
Sentinel In order for the security key to be recognized, a driver must be loaded into the PC’s
operating environment.
Driver
During installation, a prompt will ask you which type of Windows is running on the PC.
Once selected, and installed, you must re-start the PC to enable the driver.
30 SWM0018-3.00-4 GE Information
LogicLinx IEC 61131-3 Soft Logic
GE Digital Energy Getting Started
The following procedure shows the steps to install LogicLinx Editor version 1.x for the
Installation first time.
Procedure –
Version 1.x
Step Action
Install the Sentinel Driver
1 Insert the ConfigPro CD-ROM into the target PC.
2 If the installation dialog does not start itself automatically, use My
Computer or Windows Explorer to locate the HSETUP.EXE file on the
root folder of the CD-ROM.
Double-click the HSETUP.EXE file.
3 Click the LogicLinx tab.
4 Click the appropriate Sentinel driver option for your target PC.
5 Click Functions > Install Sentinel Driver from the menu bar.
Results: A dialog box will appear showing the path where the files will be
copied from.
11 Type the drive and path name where you wish to install the editor, and click
Install
12 Select or Clear the desired options from this dialog box, and click Install.
GE Information SWM0018-3.00-4 31
LogicLinx IEC 61131-3 Soft Logic
Getting Started
GE Digital Energy
The following procedure shows the steps to install LogicLinx Editor version 2.x for the
Installation first time.
Procedure –
Version 2.x
Step Action
Installing the Editor
1 Insert the ConfigPro CD-ROM into the target PC.
2 If the installation dialog does not start itself automatically, use My
Computer or Windows Explorer to locate the HSETUP.EXE file on the
root folder of the CD-ROM.
Double-click the HSETUP.EXE file.
3 Click the LogicLinx tab.
4 Click the LogicLinx Editor icon.
32 SWM0018-3.00-4 GE Information
LogicLinx IEC 61131-3 Soft Logic
GE Digital Energy Getting Started
6 Type the drive and path name where you wish to install the editor, and click
Install
7 Select or Clear the desired options from this dialog box, and click Install.
The following procedure shows the steps to install LogicLinx Editor version 6.x for the
Installation first time.
Procedure – Step Action
Version 6.x
Installing the Editor
1 Run the SGConfig 8.5 or higher installer and when prompted, select the
Custom installation type.
2 Select the LogicLinx Editor (32-bit) (trial version) in the Select Modules
page of the installation wizard.
3 Follow the prompts for the rest of the installer.
4 Do not select the option to install AnkhSVN when installing the editor
unless you have access to a Subversion server.
GE Information SWM0018-3.00-4 33
LogicLinx IEC 61131-3 Soft Logic
Getting Started
GE Digital Energy
6.1 Overview
If the soft logic plan has been completed thoroughly, the LogicLinx Executor
Introduction configuration data typically will only be created and loaded into the target device once.
This configuration data defines the quantity and type of system points that will be
available as inputs and outputs for the LogicLinx Editor to use in its program.
The configuration data will be translated into both the software configuration for the
Executor and into database files for the Editor.
34 SWM0018-3.00-4 GE Information
LogicLinx IEC 61131-3 Soft Logic
GE Digital Energy Getting Started
Program
Cycle Current values
Executor
of points are stored
scans system points
internally for use in
in I/O tables
program
LogicLinx
Start
Cycle
Program
Cycle
If output points of
Executor
appl's change, Executor
runs through
generates output
all programs
requests
Executing the program instructions is only part of what the Executor does.
Start of
At the start of each program cycle,
Cycle
• the devices’ system input and output data tables are scanned
• current values stored internally for use by the program.
GE Information SWM0018-3.00-4 35
LogicLinx IEC 61131-3 Soft Logic
Getting Started
GE Digital Energy
LogicLinx programs will run concurrently with other protocols and applications running
Concurrent on the same device.
Operation
Any change to the device’s configuration, requiring a download from SGConfig, will
delete all LogicLinx program files from the target device’s NVRAM.
! The LogicLinx project Must be downloaded to the target device after any SGConfig
configuration updates.
Important
Refer to: 10.8 Embedding LogicLinx and SGConfig Configuration Files for more
information about configuration changes after embedding LogicLinx programs
into SGConfig downloadable files.
The LogicLinx Executor will not start executing any user programs until all enabled
All Other Data Collection Applications (DCAs) in the system are running.
DCAs Must As mentioned in section 4.3 Planning a Soft Logic Project, it is highly recommended that
Be Running the target device be fully configured and running before implementing a soft logic
application. If any of the DCAs are not running, the LogicLinx Executor will not be able
to communicate with the Editor.
If you find yourself unable to communicate with the Executor and are certain that your
communications are configured correctly, verify that no DCAs in the system have failed
or otherwise ceased processing.
36 SWM0018-3.00-4 GE Information
LogicLinx IEC 61131-3 Soft Logic
GE Digital Energy Getting Started
The typical user will be a technician or engineer with system-level knowledge, who is
Knowledge responsible for implementing substation automation programs.
and • A working knowledge of GE Digital Energy products is imperative.
Responsibil- • Familiarity with the SGConfig 8.5 and later configuration utility is necessary, as it
ities will be used exclusively to edit the LogicLinx DTA parameters.
GE Information SWM0018-3.00-4 37
LogicLinx IEC 61131-3 Soft Logic
Getting Started
GE Digital Energy
Enabling the Executor signals the target device to add the application to its list of
Enabling programs to run upon startup.
B082 Once enabled, the application will be visible in the System Point Database manager,
referred to as WIN+.
Configuring WIN+ for the DCA consists of allocating system points to the DCA and
Configuring giving each one a point descriptor.
WIN+
The DCA Configuration Parameters include configuring WIN+ for the DCA part of the
DCA LogicLinx DTA and providing initialization parameters for DCA points.
Configuration
Parameters
The System Point Mapping Tables are used to define the system points that can be
Point accessed by the subsystem.
Mapping
Tables
38 SWM0018-3.00-4 GE Information
LogicLinx IEC 61131-3 Soft Logic
GE Digital Energy Getting Started
Before any soft logic program can be created or configured, the B082 LogicLinx DTA
The First application must be present and enabled in the target device’s SGConfig configuration.
Step Enabling the application does three important things:
• Includes the application in the list of applications that the device will run upon
startup
• Allows you to configure all of the associated tables in SGConfig
• Allows you to define the operating parameters and the environmental variables that
the soft logic program will use as it runs in the Executor.
GE Information SWM0018-3.00-4 39
LogicLinx IEC 61131-3 Soft Logic
Getting Started
GE Digital Energy
Before any configuration of the LogicLinx Executor tables can start, the application
Background must be enabled.
The following procedure shows the steps to enable the B082 application
Procedure
Step Action
1 Using SGConfig, open the Project that contains the target device.
Results: The Enabled column will indicate that the application is now
enabled.
40 SWM0018-3.00-4 GE Information
LogicLinx IEC 61131-3 Soft Logic
GE Digital Energy Getting Started
7.1 Overview
This chapter provides information to assist you in understanding the role of WIN in the
Introduction system, and how we will program WIN will be programmed for the LogicLinx
Executor.
GE Information SWM0018-3.00-4 41
LogicLinx IEC 61131-3 Soft Logic
Getting Started
GE Digital Energy
LogicLinx can use any system points that are available in the device’s database as
Background input/output elements in a soft logic program.
Typically, these points are “owned” by other DTAs and DCAs running in the device.
Always configure the target platform’s System Point Database (WIN) prior to
Important implementing the LogicLinx project.
Failure to do so may result in significant re-work.
It must be assigned points that it can “own” so that it can output information for
transmission to a Master Station, or for other applications to use.
The LogicLinx DCA can “own” up to 32767 of each of these five point types:
Point Types • binary inputs
• binary outputs
• analog inputs
• analog outputs
• 32 bit transition accumulators
42 SWM0018-3.00-4 GE Information
LogicLinx IEC 61131-3 Soft Logic
GE Digital Energy Getting Started
Each of the five LogicLinx owned point types appear in the LogicLinx Editor with the
Opposite opposite data flow:
Flow I.e., outputs appear as inputs and vice versa.
This is done since the points owned by the LogicLinx DCA are used as user-driven
external inputs into soft logic programs being executed by the application, and as
indications or readouts provided by a soft logic program.
These "reflections" of the system points owned by LogicLinx are known as "conversion"
points.
GE Information SWM0018-3.00-4 43
LogicLinx IEC 61131-3 Soft Logic
Getting Started
GE Digital Energy
• When you want to output to a LogicLinx “Owned” input point, they write to the
How are Conversion Point for that point (DIC, AIC or CNC).
Input • If you want to read the state of the LogicLinx point, read the standard input point
Conversion (DI, AI or CN).
Points
Used? As an example:
Read
Mapped LogicLinx From
DI #1 Database
LogicLinx
DI #1
in WIN Database
If you want a soft logic program to provide indications of its progress or to display
Soft Logic analog values created by the program, then the DCA’s owned inputs could be used as
Program outputs in the program.
Status or The program can write values to these points, which are then available to other
Value applications as binary and analog inputs.
Outputs
44 SWM0018-3.00-4 GE Information
LogicLinx IEC 61131-3 Soft Logic
GE Digital Energy Getting Started
• When you want to output to a LogicLinx “Owned” output point, write to the
How are standard output (DO or AO) point.
Output • If you want to read the state of the LogicLinx output point, read the Conversion
Conversion Point (DOC or AOC) for the point.
Points As an example:
Used?
Write
to
Mapped LogicLinx
Database
DO #1
LogicLinx
DO #1
in WIN Database
LogicLinx pseudo, or owned, points are available also as their declared data type, and
Note that not just as their opposite.
• These points can also be mapped into the application as standard inputs and outputs.
• This can enable a soft logic program to control values which it then reads elsewhere
in its execution
For example:
you can write a value to an analog input conversion point (AIC), then read it back as a
real input elsewhere in the program.
GE Information SWM0018-3.00-4 45
LogicLinx IEC 61131-3 Soft Logic
Getting Started
GE Digital Energy
The standard system point descriptors used in WIN are text strings that are used to name
WIN Point system points, as they appear in WESMAINT.
Descriptions • These strings can be any length up to 40 characters.
• Can use almost any printable character
Actual (WIN) point descriptors appear in the "comment" field for variables in the
LogicLinx LogicLinx Editor, and a "tag name" is used to reference the variable in the Editor.
Editor The LogicLinx Editor has restrictions of:
Descriptors
• 16 characters maximum (16-bit version only)
• must have unique point names
• should include only letters, numbers and the underscore, and
• names must start with a letter, not a number.
Note: This tag name can be configured by the user, or left to SGConfig to generate
a default name.
Below is an example of the Boolean section of the Dictionary (Global Variables) for a
As They project. It shows the point descriptors and Tag names as defined in SGConfig.
Appear in
LogicLinx
Editor’s User-Defined SGConfig
Dictionary Tag Name Point
Descriptor
Default Tag
Name SGConfig
Auto-created
Conversion
Point
Descriptor
Conversion
Point Tag
Name
46 SWM0018-3.00-4 GE Information
LogicLinx IEC 61131-3 Soft Logic
GE Digital Energy Getting Started
This procedure outlines the configuration of the System Point Database to create data
Procedure points that will be owned by the LogicLinx application.
Step Action
5 Click the Points button to display a dialog box where the quantity of points
of each type can be defined.
6 Type into each field the number of points of each type that the program will
own, and click OK when completed.
Note: It is not necessary to map all of the point types. If a point type is
not required, it can be left at 0.
7 Click the Descriptors button to display tables for each point type.
8 Edit the default point descriptors of all point types to reflect the
functionality of each point, and click OK to close this dialog box.
9 Click OK to complete the procedure
GE Information SWM0018-3.00-4 47
LogicLinx IEC 61131-3 Soft Logic
Getting Started
GE Digital Energy
8.1 Overview
This chapter assists the programmer in the configuration of the LogicLinx Executor.
Introduction
48 SWM0018-3.00-4 GE Information
LogicLinx IEC 61131-3 Soft Logic
GE Digital Energy Getting Started
The diagram below shows the 16 tables of the B082 LogicLinx Executor DTA
Background application.
GE Information SWM0018-3.00-4 49
LogicLinx IEC 61131-3 Soft Logic
Getting Started
GE Digital Energy
System point mapping tables are used to indicate which system points can be used or
Overview monitored by the LogicLinx subsystem.
There is a map table for all of the five standard system points, plus one that is used to
count selected digital input point state changes that occur between program cycles.
There are six mapping tables; each used to map system points for use in LogicLinx.
6 Map Tables They are:
• B082_DI Digital Input Mapping Table
• B082_DO Digital Output Mapping Table
• B082_CN Transition Counter Mapping Table
• B082_AI Analog Input Mapping Table
• B082_AO Analog Output Mapping Table
• B082_ITC Internal Transition Counters Table
Note: Conversion points are not mapped, but do count towards I/O limits.
Version 1.40 of the B082 LogicLinx DTA has removed the limit (previously set at 128)
Point on the number of points of each type. It is now possible to map 32767 points of each
Mapping type.
Limits
Continued on next page
50 SWM0018-3.00-4 GE Information
LogicLinx IEC 61131-3 Soft Logic
GE Digital Energy Getting Started
As shown above the maximum total number of points that can be mapped is limited by
Practical the LogicLinx Editor to 32640, not 32767 multiplied by the number of point types.
Limits Realistically, if either of these limits is approached the execution of the program will
load the system excessively.
When mapping points into your LogicLinx configuration, be aware that LogicLinx
Contiguous groups its data points together into contiguous blocks, and that a maximum of 256
Point contiguous blocks are allowed in the system.
Grouping If SGConfig reports that you have too many points mapped, it may be that you have
exceeded this limit. To compensate for this limitation, you can include unused points in
your point mapping to bridge the gap between contiguous blocks. This also saves on
system memory and improves LogicLinx performance.
Example:
A LogicLinx program is going to need binary input points 1 through 10, 12
through 21, and 23 through 30. If these points are configured as listed above,
LogicLinx will have 3 contiguous blocks defined. However, if the user also
mapped points 11 and 22, there would only be one block of 30 points.
All six mapping tables have the same structure. Each row in these tables has these fields:
Table
Structure
The Tag Names assigned to a point are in 16-character unique strings, independent from
More about the Point Descriptions assigned to points in the System Point Database.
Tag Names Tag names are labels that will appear on points that are used as variables in a soft logic
program.
When choosing Tag Names for points, select names that reflect the functionality of the
point, to aid in programming with the LogicLinx Editor.
GE Information SWM0018-3.00-4 51
LogicLinx IEC 61131-3 Soft Logic
Getting Started
GE Digital Energy
An Internal Transition Counter (ITC) is used to count the state changes that occur on a
Overview digital input during one cycle of a soft logic program. This is done in order to catch (and
count) multiple changes of a digital input between program cycles.
During operation, an ITC counts the state changes of the digital input it is associated
with.
When the program enters its input update phase, the current count is transferred as the
value of the ITC for that cycle, and then the current count is zeroed, ready for the next
cycle.
When configuring the B082_ITC table, it is not necessary to map all of the points that
! are mapped in the B082_DI table.
For example:
If your program only needs to detect momentary changes of a specific digital input, but
the actual state of the DI is not required, the point only needs to be mapped into the ITC
table.
52 SWM0018-3.00-4 GE Information
LogicLinx IEC 61131-3 Soft Logic
GE Digital Energy Getting Started
All six of the Point Map tables have the same structure. Each row of these tables has:
Background • a field identifying the selected system point
• a field where an identifying tag name can be entered
GE Information SWM0018-3.00-4 53
LogicLinx IEC 61131-3 Soft Logic
Getting Started
GE Digital Energy
There are three tables which are used to further customize the operation of the
3 DCA LogicLinx DCA:
Tables • DCA Index Table (B082_DCA)
• Digital Output Initial Values Table (B082DOIN)
• Analog Output Initial Values Table (B082AOIN)
This is a read-only table that displays the index of the DCA, as it was defined by
DCA Index SGConfig when the device’s System Point Database was configured
Table
(B082_DCA)
54 SWM0018-3.00-4 GE Information
LogicLinx IEC 61131-3 Soft Logic
GE Digital Energy Getting Started
This table is used to optionally configure the initial state (ON or OFF) of the digital
Digital outputs owned by the LogicLinx DCA.
Output Initial • The default state is OFF for all digital outputs, so this table is used to configure those
Values Table points that will be ON at startup.
(B082DOIN) • Only the points that are to have an ON state at startup need to be configured - those
that are OFF at startup can be left out.
• If all points are to be OFF at startup, then this table can be disabled in SGConfig.
This table defines the structure of the B082DOIN Digital Output Initial Values Table.
Table
Structure
GE Information SWM0018-3.00-4 55
LogicLinx IEC 61131-3 Soft Logic
Getting Started
GE Digital Energy
This table is used to optionally configure the initial value of the analog outputs owned by
Analog the LogicLinx DCA.
Output Initial The default value is zero for all analog outputs, so this table is used to configure those
Values Table points which will be non-zero at startup.
(B082AOIN)
Those which are zero at startup can be left out.
If all points are to be zero at startup, then this table can be disabled in SGConfig.
This table defines the structure of the B082AOIN Analog Output Initial Values Table.
Table
Structure
56 SWM0018-3.00-4 GE Information
LogicLinx IEC 61131-3 Soft Logic
GE Digital Energy Getting Started
Directly outputting to a mapped Digital Output point will result in an error unless the
Digital operation type is defined, because the target device will not know what type of control
Output Type output is desired.
Table The Control Type table allows the programmer to specify the following parameters.
(B082DOTY)
Field Name Description Options
Mapped DO The digital output point to any DO point in the BO82_DO table
be “typed”
Control Type Defines what type of • Latching
control will be generated − Output follows input state
when DO state changes
− Does Not use Control Duration
parameter
− Control request not generated if
point is in the requested state.
• Trip/Close Immediate
− 0 state = Trip
− 1 state = Close
• Trip/Close Paired
− Same as immediate, but control
only issued if previous trip/close
operation was the opposite
operation (i.e. trip can only follow
close and vice versa).
• Pulse
− 1 state = Pulse
• Latching, no state checking
− Same as latching, but bypasses
output state checking.
− Used if digital output owner does
not update point states fast enough
for the program cycle.
− Can result in excessive CPU
loading if your program does not
contain decision logic to prevent
the control operation from being
issued every cycle.
GE Information SWM0018-3.00-4 57
LogicLinx IEC 61131-3 Soft Logic
Getting Started
GE Digital Energy
This table Must be configured if you use the LD Ladder Logic tools.
! Other types of program editing tools may be able to use the Operate Function Block
designed for the same purpose.
• The Operate Function Block will override any settings in the Control Type table.
• We recommend you configure the B082DOTY table to give yourself more flexibility
when programming.
58 SWM0018-3.00-4 GE Information
LogicLinx IEC 61131-3 Soft Logic
GE Digital Energy Getting Started
There are three tables which are used to further customize the operation of the LogicLinx
Background DCA:
• Digital Output Initial Values Table (B082DOIN)
• Analog Output Initial Values Table (B082AOIN)
• Digital Output Type Table (B082DOTY)
• The configuration of either of the Initial Values tables is Not necessary if the desired
Notes: initial value for these points is zero.
• The Initial Values tables can be left empty, or disabled, with no negative affect on
the operation of the Executor
Follow this procedure to configure the Digital Output Initial Values Table.
Procedure
Step Action
2 If this is the first time that this table has been opened, the table will be
empty. Follow this step if this is the case.
• Click after positioning cursor over the first row below the gray title bar
containing the word Digital Output.
• If nothing appears, press ENTER
3 Press SPACEBAR
Results: A window displaying the list of points “owned” by the DTA will
appear.
4 Click on the row displaying the first point you wish to assign an initial
value, and click OK
5 Move cursor to field below Initial Value, and press SPACEBAR
6 Click desired option (or use arrows to select) and press SPACEBAR
GE Information SWM0018-3.00-4 59
LogicLinx IEC 61131-3 Soft Logic
Getting Started
GE Digital Energy
Follow this procedure to configure the Analog Output Initial Values Table.
Procedure
Step Action
2 If this is the first time that this table has been opened, the table will be
empty. Follow this step if this is the case.
• Click after positioning cursor over the first row below the gray title bar
containing the word Analog Output.
• If nothing appears, press ENTER
3 Press SPACEBAR
Results: A window displaying the list of points “owned” by the DTA will
appear.
4 Click on the row displaying the first point you wish to assign an initial
value, and click OK
5 Move cursor to field below Initial Value.
60 SWM0018-3.00-4 GE Information
LogicLinx IEC 61131-3 Soft Logic
GE Digital Energy Getting Started
Step Action
2 If this is the first time that this table has been opened, the table will be
empty. Follow this step if this is the case.
• Click after positioning cursor over the first row below the gray title bar.
• If nothing appears, press ENTER
3 Click on the field just below Mapped DO in the gray title bar, and then
press SPACEBAR
Results: A window displaying the list of points previously mapped by the
DTA will appear.
4 Click on the row displaying the point you wish to define, and click OK
5 Move cursor to the field below the Control Type heading, and the press
SPACEBAR
6 Click on the control type option you desire, and press SPACEBAR again.
7 Move cursor to the field below the Control Duration heading. Type in the
“On” duration in milliseconds.
Note: This value is used only for Trip/Close and Pulse control types.
GE Information SWM0018-3.00-4 61
LogicLinx IEC 61131-3 Soft Logic
Getting Started
GE Digital Energy
The communication parameters indicate to the Executor the method that it will use to
Overview communicate with the Editor.
If you will use the front-panel WESMAINT port as the interface between the LogicLinx
! Editor and Executor, the values entered in the following table may be overridden by the
values assigned to the WESMAINT interface.
Note that only the available options are displayed in SGConfig (such as all available
Table parity types).
Structure
Serial Communications: 1
• The Executor will communicate with the Editor
via a single dedicated serial port.
WESMAINT Communications: 2
• The Executor will communicate with the Editor
by any available WESMAINT connection,
including direct serial, dial-up modem, or
TELNET.
Ethernet Communications: 3
• The Executor will communicate with the Editor
via a direct Ethernet connection.
62 SWM0018-3.00-4 GE Information
LogicLinx IEC 61131-3 Soft Logic
GE Digital Energy Getting Started
GE Information SWM0018-3.00-4 63
LogicLinx IEC 61131-3 Soft Logic
Getting Started
GE Digital Energy
64 SWM0018-3.00-4 GE Information
LogicLinx IEC 61131-3 Soft Logic
GE Digital Energy Getting Started
The Communications Table is used to define the method to be used to link the Editor
Background to the Executor for downloading configuration files and maintaining the soft logic
program.
The choices are:
• Serial, where a dedicated communication port on the target device will be used for
the link, or
• WESMAINT, where a user can first establish a connection to the WESMAINT
maintenance facility of the device, and then navigate to a menu where the
Editor/Executor link can be made.
• Ethernet will be discussed in a future version of this document.
Step Action
2 Click on the field below the heading Communication Type, and press
SPACEBAR.
GE Information SWM0018-3.00-4 65
LogicLinx IEC 61131-3 Soft Logic
Getting Started
GE Digital Energy
There are five additional tables used to name the LogicLinx variables associated with the
Background DCA conversion points owned by LogicLinx.
• All of these tables are optional.
If your soft logic program does not use any points of a certain type, then that type's
associated mapping table can be disabled in SGConfig without causing any error in
LogicLinx.
They are:
Five Tables • Analog input conversion point tag name table (AIC_TAGS)
• Analog output conversion point tag name table (AOC_TAGS)
• Transition counter conversion point tag name table (CNC_TAGS)
• Digital input conversion point tag name table (DIC_TAGS)
• Digital output conversion point tag name table (DOC_TAGS)
The conversion point tag name tables are not used to actually map the conversion points
Naming of into LogicLinx - this is done automatically.
Variables Instead, they provide you with a method of naming the LogicLinx Editor variables that
will be associated with the conversion points.
Note: Conversion points will always be mapped into the LogicLinx Editor.
66 SWM0018-3.00-4 GE Information
LogicLinx IEC 61131-3 Soft Logic
GE Digital Energy Getting Started
9.1 Overview
This chapter introduces you to the Editor and provides information and exercises to
Introduction guide you in creating and running a simple soft logic Program.
GE Information SWM0018-3.00-4 67
LogicLinx IEC 61131-3 Soft Logic
Getting Started
GE Digital Energy
If both the LogicLinx Editor and SGConfig have been installed onto the same PC, and
Which to their Properties have been setup correctly, it will be much easier to start LogicLinx
Use? from SGConfig.
• This is mainly due to the fact that SGConfig generates a list of variables that will be
available to the Editor when creating or editing programs. When the Editor is
started from a SGConfig Device icon, the link between the Editor and that device’s
list (dictionary) of variables will be automatically established.
• If the Editor is started independently of SGConfig, the user will have to search for
the Project manually.
68 SWM0018-3.00-4 GE Information
LogicLinx IEC 61131-3 Soft Logic
GE Digital Energy Getting Started
Users that are becoming more familiar with the use of the Editor may find the following
Advanced tips helpful.
Tips
Tip Description
1 Do not attempt to create user-defined functions and function blocks using
standard function blocks.
The standard function blocks are described in the on-line documentation.
2 Do not attempt to create user-defined functions and function blocks using
other user-defined function blocks.
3 Never edit LogicLinx’s I/O Connection Editor for real I/O.
Real I/O is automatically made available using the target platform’s
SGConfig configuration tool.
GE Information SWM0018-3.00-4 69
LogicLinx IEC 61131-3 Soft Logic
Getting Started
GE Digital Energy
The following steps show two ways to start the LogicLinx Editor.
Procedure
Step Action
Start Via SGConfig (Recommended)
1 Start SGConfig, and navigate to the Device icon that will be used for the
LogicLinx application
2 Open the Application List dialog.
2 Click Programs
70 SWM0018-3.00-4 GE Information
LogicLinx IEC 61131-3 Soft Logic
GE Digital Energy Getting Started
A Project Group corresponds to one set of soft logic Projects that run on a specific
The “Project target device.
Group” • each Program of a Project can be created with a different programming tool, or
Defined language.
• The Programs work together to provide the functionality of the soft logic Project.
There are at least two Project Groups installed when LogicLinx is installed:
Project • Default, and
Groups
• Sample
will Not be used by SGConfig, but can be used for tests, prototypes, etc.
Default
Group
Contains a list of example programs that are referred to in the LogicLinx User’s Guide as
Sample a training aid.
Project
Group
The Editor allows for the removal of individual programs from Project Groups, but
Deleting does Not allow for the removal of the groups themselves from the Editor menus.
Project • If the LogicLinx files are stored in the SGConfig device directories, the Project
Groups Groups will be deleted if a SGConfig Device is deleted.
• If you want to remove any other unused Project Groups from the menus, simply
edit the Groups section of the ISA.INI file located in the C:\LGCLNX\EXE
directory.
Each of the five Editor languages supports different operators and operands.
Supported
Refer to the LogicLinx User’s Guide for detailed information.
Operands &
Operators
GE Information SWM0018-3.00-4 71
LogicLinx IEC 61131-3 Soft Logic
Getting Started
GE Digital Energy
This part of the chapter will outline the process used to create an example of a soft logic
Overview application.
It is assumed that the planning steps outlined in 4.3 Planning a Soft Logic Project have
been completed up to and including, Enabling and Configuring the Executor.
Programmer checks Target
Device
Before starting the LogicLinx Editor, verify that the SGConfig device has been
Before generated, verifying that there are no logical errors in the device configuration.
Proceeding This step will generate the lists of variables that will be available to the Editor when
programming begins.
Failure to generate the SGConfig Device will prevent the Editor from starting from
Note: within the SGConfig device menus.
72 SWM0018-3.00-4 GE Information
LogicLinx IEC 61131-3 Soft Logic
GE Digital Energy Getting Started
Refer to the procedure outlined in the document: following Lab #9 to start up the Editor.
Stating the
Once running, the following dialog box will be displayed:
Editor
Project Program
Name Group
Part Function
Project Name: Project Name is automatically created by SGConfig when
MAIN device was generated.
• The name MAIN indicates a single-node device, such as a
D25 or D20
Program Group: The Program Group, D25_LL, is the same as the device name
D25_LL assigned in SGConfig
Opening the Project > MAIN will reveal a list of the Programs that have been created
Opening the to run on this device. It also allows the programmer to edit, delete or create new
Project programs.
GE Information SWM0018-3.00-4 73
LogicLinx IEC 61131-3 Soft Logic
Getting Started
GE Digital Energy
The following procedure outlines the steps that can be used to create a simple program
Objectives that will:
• compare two analog values, and
• toggle a digital output depending on which analog is greater in value.
Step Action
This Procedure continues from previous steps
2 If this is as a new project, the dialog box that appears should be empty, with
no Programs listed.
Click the New Program icon, shown by the arrow.
74 SWM0018-3.00-4 GE Information
LogicLinx IEC 61131-3 Soft Logic
GE Digital Energy Getting Started
Procedure (continued)
Step Action
4 Select FBD: Function Block Diagram as the editor Language to use for
this program. Click OK.
Results: The Program Group dialog box will now have an icon
representing the new Program.
Create the Program
GE Information SWM0018-3.00-4 75
LogicLinx IEC 61131-3 Soft Logic
Getting Started
GE Digital Energy
Procedure (continued)
Step Action
6 Click the icon shown by the arrow to switch the editor window from the
default LD (ladder) mode to the FBD (Function Block Diagram) mode.
Display
Toolbar
7 Click the Function Block selection box shown by the arrow to display the
choice of blocks that are available.
Step 7
Step 9
10 Position the cursor over the workspace and click the mouse button once.
Results: You will see a display similar to the one show below.
76 SWM0018-3.00-4 GE Information
LogicLinx IEC 61131-3 Soft Logic
GE Digital Energy Getting Started
Procedure (continued)
Step Action
Insert
Variable
13 Position the cursor well to the left of the function block and click the mouse
button once.
Notice: if the cursor is too close to the function block when the mouse is
clicked, a warning message will tell you that you cannot overlap
graphic symbols
Results: The Select Variable dialog box should now be on screen,
displaying all of the Boolean (binary) variables that are available
to the editor:
GE Information SWM0018-3.00-4 77
LogicLinx IEC 61131-3 Soft Logic
Getting Started
GE Digital Energy
Procedure (continued)
Step Action
Integer /
Real
15 Select a variable that begins with AI, and is “owned” by the LogicLinx
executor.
16 Repeat steps 13 to 16 once more, using a different analog input variable,
positioning both analog input variables to the left of the function block.
The editor window should now look something like this:
78 SWM0018-3.00-4 GE Information
LogicLinx IEC 61131-3 Soft Logic
GE Digital Energy Getting Started
Procedure (continued)
Step Action
Link Input Variables to Function Block
17 Click once on the Draw Connection Line button, as shown by the arrow.
Draw
Connection Line
18 Draw connector lines from the right side of the input variables to the IN1
and IN2 points on the left of the function block.
Note: You do not have to click the button between drawing successive
connector lines.
19 Click once on the Insert Direct Coil icon as shown by arrow, below:
Insert Direct
Coil
GE Information SWM0018-3.00-4 79
LogicLinx IEC 61131-3 Soft Logic
Getting Started
GE Digital Energy
Procedure (continued)
Step Action
21 Draw connector line, as in Step 19, to link the Q of the function block with
the output coil.
Results: The program should now look similar to the diagram in Step 19.
Note: The point numbers shown in the examples in this document will
not be the same as the numbers you will see in your exercise
80 SWM0018-3.00-4 GE Information
LogicLinx IEC 61131-3 Soft Logic
GE Digital Energy Getting Started
Once a program is completed, the next step is to Verify the program. The process of
Overview of verification:
Verifying • checks the program for logical errors
• generates the downloadable file (for this program)
• readies the program for the next steps: the simulation procedure
When a program is verified, it can create output files in several formats. The two file
Output file types that should be used for this system are:
formats • SIMULATE: Workbench Simulator
− This file type is used by the Editor during program simulation
• ISA68M: TIC code for Motorola
− This file type conforms to the type required by the 68XXX series Motorola
microprocessors used in GE Digital Energy products
Verifying is used to check only the Program that is being displayed during the
Verifying vs. verification
Making Making is used when a Project contains more that one Program.
• Making will check that all programs are verified, then it will check them for
operation as an integrated system of programs.
• If a Project has only one Program, then there is very little difference between the
two processes.
LogicLinx programs can be extracted, or uploaded, from the target platform only if you
Uploading have selected this option during making of the application.
Programs
If a project compiles without errors but does not function in the manner you intended, in
Important all likelihood a programming error was made.
The available simulation tools can help you identify the error(s).
The User’s Guide includes a complete set of error codes. These error codes will point
Error Codes you to the nature of the problem.
GE Information SWM0018-3.00-4 81
LogicLinx IEC 61131-3 Soft Logic
Getting Started
GE Digital Energy
Step Action
2 Click the ISA86M: TIC code for Motorola and click Select.
3 Click the Verify Program icon from the LogicLinx Editor’ Program
window.
Verify
Program
Results: A dialog box will open, showing the progress of the verification
process.
4 If the verification is successful, click Exit when prompted to Exit the Code
Generator?
If the verification is Not successful, go back to the program editor and repair
the program.
82 SWM0018-3.00-4 GE Information
LogicLinx IEC 61131-3 Soft Logic
GE Digital Energy Getting Started
Once a program is successfully verified, the program operation can be simulated before
Background the program is downloaded and put into real operation.
Simulation scripts and Spotlight animations can be moved from one project to another
Simulation using standard Windows file management tools.
Tip
LogicLinx’s simulation tools simulate the functionality of the LogicLinx Executor but
Limitations do not simulate the Executor’s performance on the target platform.
of Simulation is therefore not a replacement for thorough debugging on the target platform.
Simulating
Note: The LogicLinx simulator cannot simulate programs larger than 64K in size.
The procedure found in the following section assumes that the programmer has
Procedure completed the preceding procedures, or equivalent, and the LogicLinx Editor still
displays the Program window.
GE Information SWM0018-3.00-4 83
LogicLinx IEC 61131-3 Soft Logic
Getting Started
GE Digital Energy
The following is an example of a procedure that can be used to simulate the operation of
Procedure a program.
Remember: The variable names used in these examples will Not be the same as you
will see in your program.
Step Action
1 Click the Simulate Program icon from the LogicLinx Editor’ Program
window.
Simulate
Program
2 Re-size the new windows to best display the information required for your
testing.
Results: The Program, Debugger and Main windows will be visible, as
shown below.
84 SWM0018-3.00-4 GE Information
LogicLinx IEC 61131-3 Soft Logic
GE Digital Energy Getting Started
Procedure (continued)
Step Action
3 Click the down control beside the AI3577 symbol on the main window,
until a negative value shows in the field beside it.
Force
DO243 AI3577 to a
is ON Neg. Value
DO243 is
RED =
ON
Results: When the input value in IN1 is less than that on IN2, the DO243
will change state, as represented by:
GE Information SWM0018-3.00-4 85
LogicLinx IEC 61131-3 Soft Logic
Getting Started
GE Digital Energy
The program applications running in the device must share the resources of the
Background microprocessor system. It is important that the LogicLinx Executor does not take too
much of these resources, or it may actually cause other applications to time-out and fail.
If this happens, the device will restart repeatedly, never coming into service.
In order to prevent this situation, it is suggested that a delay be inserted between each
cycle of the soft logic program.
Once the optimum run-time Program Cycle and Communications time-out times have
been determined, they should be permanently defined into the Project files.
• Changes to any LogicLinx Program may affect the time it takes to run a complete
Note: Project.
• Changes to any other application in the device may affect the time that the
LogicLinx Project takes to run.
After any changes such as these, check that the LogicLinx run-time options are
optimally set.
86 SWM0018-3.00-4 GE Information
LogicLinx IEC 61131-3 Soft Logic
GE Digital Energy Getting Started
Step Action
1 Open the Project Group to display the (list of) Programs for this Project.
5 Select Real time option in the Starting Mode section to ensure that the
program runs continuously when started.
6 Select the Run time errors options as desired, if error logging is required.
8 Click Make > Make application to verify and compile Project files.
GE Information SWM0018-3.00-4 87
LogicLinx IEC 61131-3 Soft Logic
Getting Started
GE Digital Energy
10.1 Overview
There are two primary ways to link the Editor to the Executor to perform downloading
Introduction and project maintenance duties:
• Via a dedicated communications link, either serial or Ethernet
• Through a WESMAINT connection, either locally (serial) or through a LAN
TELNET session.
It is also possible to establish a link using the Virtual Terminal facility, but operation of
Virtual Terminal will not be discussed in this document.
88 SWM0018-3.00-4 GE Information
LogicLinx IEC 61131-3 Soft Logic
GE Digital Energy Getting Started
There are three main choices in ways to link the LogicLinx Editor to the LogicLinx
Three Main Executor:
Options • Directly from the Editor’s PC serial (RS232) communication port to an unused
communication port on the target device
• Via a WESMAINT session, which provides for three other options:
− Local serial, directly interfaced with the device’s front panel WESMAINT
interface.
− Remotely, via a serial (dial-up or dedicated) modem connection, or
− Remotely, via an Ethernet LAN/TCP/IP link using TELNET
• Direct Ethernet LAN/TCP/IP link, using WINSOCK of the PC. will be discussed
elsewhere.
The following table outlines some advantages and disadvantages of each option.
Advantages /
Disadvant-
ages
When you specify WESMAINT as the communications link for LogicLinx, you make
Connecting LogicLinx available over all WESMAINT communications links which have been
Via configured for that application.
WESMAINT This means that other standard (i.e. non-WESMAINT) serial ports, dial-up ports, and
TELNET ports are all available to be used for other applications.
Connection from the LogicLinx Editor to the Executor can only be made via one of
Note: these links at a time.
GE Information SWM0018-3.00-4 89
LogicLinx IEC 61131-3 Soft Logic
Getting Started
GE Digital Energy
The following table describes the options available to the LogicLinx Editor.
Communica-
tion Options
90 SWM0018-3.00-4 GE Information
LogicLinx IEC 61131-3 Soft Logic
GE Digital Energy Getting Started
A direct serial link can only be established if the device has an unused communication
Background port.
The cable required for this link would be a standard DTE to DTE RS232 cable. This
type of cable may also be referred to as a null-modem or crossover cable.
The following procedure outlines the steps used to configure a direct serial Editor
Procedure (Windows PC) to Executor (device) link.
Step Action
5 Click Setup
Results: A Serial Link Parameters dialog box will open.
GE Information SWM0018-3.00-4 91
LogicLinx IEC 61131-3 Soft Logic
Getting Started
GE Digital Energy
The following procedure outlines the steps in establishing a direct serial Editor
Procedure (Windows PC) to Executor (device) link.
1 Double-click the Device icon that will be used for the LogicLinx
application
2 Right-click the LogicLinx application
5 If there is more than one program, click once on the desired program.
92 SWM0018-3.00-4 GE Information
LogicLinx IEC 61131-3 Soft Logic
GE Digital Energy Getting Started
Procedure (continued)
Step Action
6 Click Debug > Debug from the Programs window menu bar.
Results: the Debugger dialog box will appear. The display will tell you if
communications is successful, and if a program is running, or not
present.
Now that the connection is established, proceed to the section: Lab #17 - Downloading
Using Debug and Running LogicLinx Project Files
GE Information SWM0018-3.00-4 93
LogicLinx IEC 61131-3 Soft Logic
Getting Started
GE Digital Energy
A link can be established for any user that has rights to access the LogicLinx
Background Application menu in WESMAINT.
Access to WESMAINT can be direct, i.e., via the front panel WESMAINT DB-9
interface, or through any other indirect means, such as dial-up or Ethernet LAN.
The cable required for the direct link will be a standard WESMAINT serial cable.
The following procedure outlines the steps in configuring and accessing the Editor
Procedure (Windows PC) to Executor (device) link via WESMAINT.
Step Action
Configure the Device’s B082 Tables
2 Click Debug > Link Setup from the Programs window menu bar.
3 Select the same communication port that will be used by the WESMAINT
connection from your PC.
4 Click Setup
Results: A Serial Link Parameters dialog box will open.
94 SWM0018-3.00-4 GE Information
LogicLinx IEC 61131-3 Soft Logic
GE Digital Energy Getting Started
Procedure (continued)
Step Action
11 Type 32082 into one of the unused fields under the Application Number
heading, and click OK
Note: all fields in the row to the right of the application number must be
set to Enable.
14 Go on-line with the device’ WESMAINT facility, and download the new
configuration file.
15 Restart the device, and verify correct operation.
GE Information SWM0018-3.00-4 95
LogicLinx IEC 61131-3 Soft Logic
Getting Started
GE Digital Energy
There are several different ways and sequences that will work equally well in
Background establishing the communication between the LogicLinx Editor and the Executor
running in the device.
The one outlined here will start by assuming that the Editor is Not running during the
first steps of the procedure.
The following procedure shows steps that will establish the LogicLinx Editor to
Procedure Executor connection, via WESMAINT.
Step Action
Access B082 in WESMAINT Applications Menu
2 Move the cursor to the B082 LogicLinx Comms entry and press ENTER.
Results: The display will go blank, and will not respond to the typing of
normal keyboard characters
5 Double-click the Device icon that will be used for the LogicLinx
application
6 Right-click the LogicLinx application
96 SWM0018-3.00-4 GE Information
LogicLinx IEC 61131-3 Soft Logic
GE Digital Energy Getting Started
Procedure (continued)
Step Action
9 If there is more than one program, click once on the desired program.
10 Click Debug > Debug from the Programs window menu bar.
Results: the Debugger dialog box will appear. The display will tell you if
communications is successful, and if a program is running, or not
present.
GE Information SWM0018-3.00-4 97
LogicLinx IEC 61131-3 Soft Logic
Getting Started
GE Digital Energy
Once connected, the Editor / Executor link has two primary functions:
Two Uses • provides a means where the Editor’s program output file can be transferred to the
NVRAM of the target device.
• gives programmer an interface where running programs can be monitored, tested and
have run-time options adjusted.
Downloading of LogicLinx soft logic programs will have to performed for several
When to reasons:
Download • A new soft logic program has been created, and it needs to be installed into the
device’s memory.
• An existing program has been modified.
• A configuration change to other applications in the device demanded that a new
SGConfig configuration file be downloaded.
Any time a device has a configuration file change, the LogicLinx project files will have
! to be updated by performing a LogicLinx project download.
Another alternative is to perform an embed procedure following the configuration
change. See Lab #21 – Embedding Configuration Files for more details
Important This is due to the fact that any SGConfig configuration file download process starts by
erasing the entire non-volatile memory (NVRAM) of the target device. Because
LogicLinx project files are also maintained in NVRAM, they are erased as well.
Any changes to SGConfig point mapping should prompt a re-compile of LogicLinx
programs prior to download.
98 SWM0018-3.00-4 GE Information
LogicLinx IEC 61131-3 Soft Logic
GE Digital Energy Getting Started
Before a download can be started, communication between the LogicLinx Editor and
Background Executor must be established.
If you have not yet done so, refer to previous sections of this chapter to find procedures
that will guide you to establishing this connection.
The download procedure can be started once communication between the Editor and
Procedure Executor has been established. Refer to previous procedures for help in establishing this
link.
Start this procedure from the open Debugger window.
Step Action
1 If a program is already running, as shown in the example below, click the
Stop Application button, and acknowledge by clicking Yes.
Download
Stop
Application
2 Click the Download button to start downloading a new soft logic program.
Results: A dialog box appears prompting you to select the file type to
download.
GE Information SWM0018-3.00-4 99
LogicLinx IEC 61131-3 Soft Logic
Getting Started
GE Digital Energy
Procedure (continued)
Step Action
Viewing the Program in Operation
4 Double-click the program icon from the Debug Programs dialog.
Results: The FDB/LD Program window will open, showing the elements
in color to represent their states
After a new or replaced project has been downloaded, it may be necessary to adjust some
After of the runtime parameters, as well as some of the communication parameters to control
Downloading how the Editor is updated while on-line with the Executor.
The Cycle time of a program may be adjusted for several reasons. These may include:
Program • Provide enough time between LogicLinx program cycles for other device
Cycle Time applications to run.
• Reduce the processing load on the device
• Use the cycle time as part of the processing interval of a program.
• Set the minimum time to at least 10 ms more than the maximum time shown in the
Rules for Debugger window
Setting • If the overflow count (in the Debugger window) increments at all, during run-time,
Cycle Time increase the cycle time by at least 10 ms
• If the cycle time is set to a value >500 ms, check the Debugger > Options >
Parameters settings.
Overflow count is actually the number of times that an overflow has occurred since the
More on count has been reset.
Overflow At startup, it is normal for a small number of overflows to occur while other applications
Count are initializing.
If the count is continually incrementing (overflowing) during run-time, increase the cycle
time as mentioned above.
If the Debugger > Options > Parameters settings for Cyclic Refresh Duration are set
Rules for too small, the Editor may think that the Executor has stopped operating in systems
Communica- using a large cycle time.
tions Time- Rules: Always set the Cyclic Refresh Duration to a value that is greater than the
out Options Cycle Time.
Follow this procedure to adjust the LogicLinx Program cycle time while program is
Procedure running.
Note: This procedure starts with a running application, like the state it would be in at
the end of Lab #16
Step Action
1 Click Control > Change Cycle Timing from the Debugger window tool
bar.
2 Type a Cycle timing value into the field that is about 10 ms larger that the
Maximum value that is displayed in the Debugger window, and click OK
Result: The value in the Allowed = field will reflect the change
Warning: Setting this value too small may result in other applications not
being allowed time to run properly, possibly causing system re-
starts.
3 If the Cycle time is set to a very large (>500 ms) interval, click Options >
Parameters and set the Cyclic refresh duration to a value larger than the
cycle time.
Once the optimum run-time Program Cycle and Communications time-out times have
Make been determined, they should be permanently defined into the Project files.
Changes This means that the device would not require further adjustment after any future
Permanent download of a LogicLinx Project.
• Changes to any LogicLinx Program may affect the time it takes to run a complete
Remember: Project.
• Changes to any other application in the device may affect the time that the
LogicLinx Project takes to run.
After any changes such as these, check that the LogicLinx run-time options are
optimally set.
Step Action
The LogicLinx Editor has several utilities that can be employed to monitor and control a
General program while it is running:
• the Debug > Tools > Spy Lists can be used to create a custom list of the input and
output variables used in a program.
• the Debug > Tools > Spotlight can be used to create graphic displays showing the
states of the program variables
• the Project > I/O Connection lists all of the variables, and their states, used in a
project
− For all of these utilities, the states of the (input) variables can be forced to test
program operation
Step Action
1 Close all LogicLinx > Debug windows to release the communications port
2 If the connection was a local serial link, switch Windows applications back
to SGConfig and re-establish communication with WESMAINT.
If the connection was a TELNET link, the WESMAINT connection will
still be active.
3 Press the ESC key or CTRL+R to return to the WESMAINT > Application
menus.
The LogicLinx archive utility enables the user to save the LogicLinx projects and
Archiving libraries on diskettes or backup directory.
projects The LogicLinx archive manager is a dialog box that can be called from LogicLinx
Project Management or Library Management windows.
• For more on archiving and restoring, refer to SWM0019 – LogicLinx User’s Guide.
To create and maintain reliable archives, it is suggested that the following guidelines be
Archiving used:
Guidelines • Write the name and description of the saved object on the disk sticker
• Do not save projects and libraries on the same diskette
• Do not save different projects on the same diskette
When the Compression option is set, all the archive files created during a Backup
Archive procedure are compressed.
Compress- This option is very useful to reduce the size of a large project archive file, and save it on
ion only one diskette. (The archiver cannot save across multiple diskettes.)
The LogicLinx Document Generator allows you to build and print a complete
Creating document for the selected project.
Project It can be called by the Project > Print commands of the Project Management or the
Documenta- Program windows to print a complete document.
tion
The Document Generator is also run by the Print command of all other LogicLinx
editors to print the contents of a single LogicLinx document.
• The LogicLinx Executor DTA, B082, running in the target device must be version
Rules About 1.30, or higher.
Embedding − Versions prior to this do not recognize the presence of a merged program.
− SGConfig checks the version of the B082 application definition before
performing an embed procedure.
• Generating a SGConfig device configuration will not erase a LogicLinx program
previously embedded into the configuration.
− Removing an embedded program file is done by un-checking the option in the
LogicLinx DTA’s Properties dialog box, and re-generating the configuration.
Refer to: Lab #21 – Embedding Configuration Files for the procedure.
Reason: Embedding a LogicLinx program into a SGConfig file effectively “fixes” the
size of the LogicLinx program in the target device’s NVRAM. Attempting an
on-line change may cause the LogicLinx program to increase in size, making
the program too big for the memory space allocated to it.
If this happens, the new LogicLinx program may run from RAM, but will not
be saved to NVRAM. Any restart of the device will cause the previously
saved program (still in NVRAM) to overwrite the new program and start
running.
Step Action
1 Double-click the Device icon that is used for your LogicLinx application.
2 Select the LogicLinx application
3 Select Properties from the drop-down list.
Results: This new dialog box will open.
Step Action
5 Click OK, if you wish to proceed.
Results: The Properties dialog will close.
6 Close all device dialogs and tables, and click the Generate button on the
menu bar.
Results: All LogicLinx files processed are listed in the device log
including the name, path, date, and time of each LogicLinx file
embedded.
Note: When the required LogicLinx files are not found, you will be
notified though a warning dialog, and an entry will appear in the
device log, detailing the path and name of the missing file.
The merged configuration files are now ready for downloading to a target device.
Procedure
Use standard SGConfig procedures for downloading configuration files.
Complete
Do not download a new LogicLinx program file directly from the editor while a merged
Going Back configuration is running.
to Direct
Download Why: Embedding a LogicLinx program into a SGConfig file effectively “fixes” the
size of the LogicLinx program in the target device’s NVRAM. If you
download a new program that is larger than the memory space allocated to the
previous program, it may run from RAM, but the new program cannot be
saved to NVRAM. If this happens, the new LogicLinx program will be
overwritten by the previous program (that is still in NVRAM) when the device
is restarted
To return to a separate download process, perform the previous procedure, except that
you should clear the checkbox in step 5. Next, regenerate the SGConfig configuration
(to clear the merged LogicLinx program), and then download it to the device. You can
then proceed with the LogicLinx download.
A. Troubleshooting
The following is a list of all possible WESMAINT error messages logged during
Introduction execution of a soft logic program in LogicLinx. The various error codes are intended for
use when determining the cause of a failure, and should be included in the description of
any reported fault.
Additional error codes are defined in the LogicLinx User’s Guide.