Unity 01 Introduction
Unity 01 Introduction
Introduction
F.L.Smidth A/S - Automation
Høffdingsvej 34
DK-2500 Valby
Copenhagen
Denmark
+45 36 18 27 00
Fax: +45 36 18 27 99
Printing History:
The information in this document is subject to change without notice and should not be construed, as a commitment by
F.L.Smidth A/S. F.L.Smidth assumes no responsibility for any errors that may appear in this document.
In no event shall F.L.Smidth be liable for direct, indirect, special, incidental or consequential damages of any nature
or kind arising from the use of this document, nor shall F.L.Smidth be liable for incidental or consequential damages
arising from use of any software or hardware described in this document.
Options specified and described in the F.L.Smidth documentation as part of the general description - but initially
neither ordered by the customer nor confirmed by the seller - will not commit the supplier to any further and future
supply and/or installation.
The software described in this document is furnished under a license and may be used, copied, or disclosed only in
accordance with the terms of such license.
General
Purpose
This manual contains a PLC specific description of ACESYS for the Schneider
Electric Unity controllers. This version of ACESYS for Unity is designed for the
HMI system ECS.
This manual has to be seen in consecutive with the generic ACESYS manual.
This manual will not cover information included in the Unity documentation from
Schneider Electric or ECS documentation. On the other hand some essential
information will be mentioned even they are part of the Unity/ECS documentation.
Software Requirements
The following software is used during developing and test of the ACESYS package
for Unity. Newer versions will probably be suitable, but are not tested:
Unity Pro XL V2.1.0
ECS Major Version 7.0.5
SdrModiconSvr30.exe Version 7.0.5.4
SdrModiconCfgUi30.exe Version 7.5.0.3
SdrModiconAcfgUi30.exe Version 7.5.0.3
Memory Allocation
The Unity PLC operates with two different types of memory:
Located Memory
Unlocated Memory
Variables of the located memory type are linked to a fixed memory address by the
PLC-programmer. Variables linked to an unlocated memory location are
automatically assigned to an internal address when the PLC program is compiled.
The size of the located memory is limited to 64.000 words. Since it is mandatory to
use located memory for data exchange with ECS it is necessary to manage the
layout of this memory area. In addition located memory has to be used for field I/O
signals.
The following configuration of the Unity controller illustrates a suggested
configuration:
The above memory allocation can be changed but the following part of the
documentation will refer to this layout.
Watchdog
The purpose of this variable is to monitor the communication between the PLC and
ECS. For further information see “Master Block” on page 17 and “General
Configuration” on page 24.
ECS_CMD
The purpose of this array is to receive department commands from ECS. For
information about the PLC program for the department see “Department Block” on
page 19 and for the ECS configuration see “Department Configuration” on page 28.
The data array contains the information shown below:
MSW_ROUTES
This array contains the Machine Status Word (MSW) and timestamp for all route
objects for monitoring actual state on ECS. For further information about routes see
chapter “Route”.
MSW_SELECT
This array contains the Machine Status Word (MSW) and timestamp for all select
objects for monitoring actual state on ECS. For further information about routes see
chapter “Select”.
ANALOG_ALARMS
This array contains the actual analog value, Machine Status Word (MSW) and
timestamp for all analog measuring objects for monitoring actual state on ECS. For
further information about routes see chapter “Alarm”.
After installation of the CD “ACESYS V7.04 for Unity” two libraries have to be
installed. By default the ACESYS installation will copy files to
“C:\ACESYS\v7.0.4”:
Libraries to
be installed
The “PLC Library” contains the ACESYS standard function block library and data
types, and the “SIM Library” contains functions for writing to physical input for
Device Simulation purpose.
Please note that the “Unity Pro XL” software must not be started during the library
installation.
Browse to the PLC Library (default stored in “C:\ACESYS\v7.0.4\Unity\PLC
Library”) pick select the FAMILY.DSC and select open:
If the library to be installed already exists on the system a message similar to the
following message will be shown:
The following section describes how the ACESYS standard has been implemented
in the Unity Controller, in respect to the controller functionality.
Program Organizing
The program structure can be displayed in Functional or Structural view
The structural view is shown below:
The execution order of the program is equal to the section order in the structural
view.
Swapping between the two views is done by clicking the two icons shown below:
To Department
FBs
Watchdog
If the input “WatchDog_Enable” is set to high, the master block will monitor the
communication with ECS. If a high signal is not received on the in-/output
“WatchDog_ECS” within the time defined on the input “WatchDog_Time” a
master stop command will be launched. The master block will automatically clear
the in-/output “WatchDog_ECS” after receiving a high signal.
The remaining time before a master stop is launched can be monitored on the
output “WatchDog_Elap”.
See “General Elementary Variables” on page 7 for declaring of the variable
“WATCHDOG”.
Scan Time
The actual scan time for the PLC can be monitored on the output “ScanTime_ms”
in milliseconds.
PLC Clock
The in-/output “Time_Set” is used to adjust the PLC system date and time from
ECS. The actual time will be send from ECS in the format DT (Data & time). After
the PLC has adjusted the PLC clock the in-/output “Time_Set” will be reset to
“DT#2000-01-01-12:00:00”. Any new values will trig a new adjusting of the PLC
system date and time.
From Master FB
To Group FBs
Some time it can be necessary to manipulate with this command for a single unit.
Since the CMD is a structure a new variable can be created of the type
“ACESYS_CMD”:
In the PLC-program the originally is copied to this new variable. Now it is possible
to make logic for each item in the structure, and link the new variable to the unit:
In the above the Group Select command is not passed to the unit, but all other
commands are passed.
Function Blocks
The following Derived FB Types are included in the ACESYS standard:
The following sections describes configuration of the ECS system for proper
communication with the Unity. The examples will use the memory layout shown in
Figure 2 ACESYS Memory Layout page 6, and are based on Ethernet
communication. Parameters to pay special attention are marked with a circle.
Common Configuration
The Common configuration is valid for all PLCs configured. Two parameters have
to be configured different from the default value:
Max. Holding Register: 64000
Max Input Register: 64000
These figures have to match to the memory allocation shown Figure 2 ACESYS
Memory Layout page 6.
Furthermore server to synchronize system clocks in the PLCs has to be selected.
The possible options are No, From Server 1, From Server 2 or From Both:
Please note the length of the T.O.D. Register doesn’t matter when Unity PLC is
selected because the time and date is always send in the PLC format DT which
allocate 4 words.
The addresses configuration for these status points using algorithm 13 has to be left
blank:
The following sections describe basic configurations for settings up a Unity PLC-
project.
Project Settings
Select Tools Project Settings in the menu:
Set the parameter “Variables not used” in the Warning during analyses. This will
ensure that you get a warning if you have defined variables which are not used.
Select the parameter Include Upload Information. This makes it possible to make an
upload a complete PLC-program without having an offline program. It is
recommended to use the option to ensure the possibility to upload the complete
program, including variables adjusted from the faceplates. Using the option will
require more memory in the PLC
When the connection is established it is possible to transfer the project to the PLC:
If the connection is the on board port on the PLC it is has to be “TCP/IP 10/100
Extended connection”. A normal 140 NOE 771 01 Ethernet 10/100 module has to
be configured as a “TCP/IP 10/100 Regular connection”.
After the network has been configured the network has to be linked to the Ethernet
card or on-board Ethernet port on the CPU. Select the Ethernet port in the hardware
configuration:
During program editing (online or offline) it is a good idea to bring this menu up
from time to time and press the push button “Pack”. This function will make a
memory re-organization.
It the above example the device simulation is programmed in Structured Text (ST).