Advant Controller 31
Intelligent Decentralized
Automation System
Installation /
Special Functions
07 KP 90
07 KT 97
07 DC 92
07 AC 91
Contents
1
1.1
1.2
1.2.1
1.3
1.4
1.4.1
1.4.2
1.4.3
1.4.4
1.5
1.5.1
1.5.2
2.1
2.2
2.3
2.3.1
2.3.2
2.3.3
2.4
2.4.1
2.4.2
Menus which are not described in the operating instructions ................................ 2-22
Menus in the main menu "Online" ........................................................................ 2-22
The PLC browser ................................................................................................. 2-24
2.5
2.6
2.7
2.7.1
2.7.2
2.7.3
Contents
3.1
Introduction............................................................................................................ 3-1
3.2
3.2.1
3.2.2
Creating the ASCII files for the program and variables using 907 PC 331 ............ 3-1
Creating an ASCII file of the variables list............................................................. 3-2
Creating an ASCII file of the program (IL)............................................................. 3-4
3.3
3.3.1
3.3.2
3.3.3
3.3.4
3.4
4.1
4.1.1
4.1.2
4.2
4.2.1
4.2.2
4.2.3
4.2.4
4.3
4.3.1
4.3.2
4.3.3
4.3.4
Index ........................................................................................................................... I
Contents
1.1
Installation disc
Insert the CD into your CD-ROM drive and follow the setup instructions.
Caution:
If you want to use programming via ARCNET, you must install the ARCNET card first.
The installation of the ARCNET driver is described in section 1.3.
1.2
Necessary files
With the installation the following files for 907 AC 1131 are installed on your PC:
Directory 907 AC 1131:
AC1131.EXE
AC1131.HLP
AC1131.CNT
SPEZ_S90.HLP
SPEZ_S90.CNT
Bibliotheken.HLP
Bibliotheken.CNT
Base_S90.HLP
Base_S90.CNT
RCOM_S90.HLP
RCOM_S90.CNT
ARCNET_S90.HLP
ARCNET_S90.CNT
CS31_S90.HLP
CS31_S90.CNT
COM_S90.HLP
COM_S90.CNT
Datenablage_S90.HLP
Datenablage_S90.CNT
SystemInfo_S90.HLP
SystemInfo_S90.CNT
PROFIBUS_S90.HLP
PROFIBUS_S90.CNT
SYSTEM40.HLP
SYSTEM40.CNT
D2HTLS32.DLL
ABB.DFR
ABB_DFR.BMP
BROWSERINIFILE.INI
AC1131.INI
CoDeSysOPC.EXE
OPCCFG.EXE
OCS_PROXY.DLL
1-1
Installation
Subdirectory Library:
IEC_S90_V41.LIB
IECSFC_S90_V41.LIB
Base_S90_V41.LIB
RCOM_S90_V41.LIB
ARCNET_S90_V41.LIB
CS31_S90_V41.LIB
COM_S90_V41.LIB
Datenablage_S90_V41.LIB
SystemInfo_S90_V41.LIB
Coupler_S90_V41.LIB
PROFIBUS_S90_V41.LIB
ABB-BIB4.LIB
*.BMP
AUSLAST.EXP
FEHLER_M.EXP
SY_CONST.EXP
STEP_VAR.EXP
KT98_ONB.EXP
KT97_DEA.EXP
KT97_ONB.EXP
KT96_ONB.EXP
KT95_ONB.EXP
Subdirectory PROJEKTE
BSPDT.PRO
AMPEL.PRO
ABB_LEER.PRO
Installation
1-2
1-3
Installation
Caution:
In order to keep the capability of undoing faulty modifications always create a copy of
the file before performing any modifications to this file.
Most of the parameters are automatically updated or entered together with the 907 AC 1131
software. Parameters which are relevant for the user are described below. These parameters
are:
- InitZero=No
- DebugCode=Yes
- KT94WaitTime=2200
- UpdateRate=200
- Autoload=Yes
- LibraryDir=c:\Programme\AC1131\library
- ProjectsDir=c:\Programme\AC1131\Projekte
- ImportExportDir=c:\Programme\AC1131\Library\
- DocuframeDir=c:\Programme\AC1131
- TraceDir=c:\Programme\AC1131\Projekte
- WatchDir=c:\Programme\AC1131\Projekte
- Project0=c:\Programme\AC1131\Projekte\Ein_Ausgang.pro
- Project1=c:\Programme\AC1131\Projekte\Bspdt.pro
- Project2=c:\Programme\AC1131\Projekte\Ampel.pro
Parameter InitZero:
If InitZero=Yes, initialization code is created for all variables (including all variables which are
initialized by zero or FALSE). In this case the program code becomes considerably larger. If
InitZero=No, initialization code is only created for variables which are initialized by TRUE or not
equal to zero. When the controller is started the non-buffered memory areas are initialized by
zero (see volume 3 - System technology, Initialization and buffering of data areas).
Default value: InitZero=No
Installation
1-4
Parameter DebugCode:
Code for which all the online functions such as breakpoint, single step, etc. are possible is only
created if the setting is DebugCode=Yes. If the parameter is set to DebugCode=No the program
code is becoming smaller but the program cannot be tested any more using all online functions.
Default value: DebugCode=Yes
Parameter KT94WaitTime:
The parameter KT94WaitTime is used to set the wait time until a communication error is
reported in case of serial communication disturbances.
Default value: KT94WaitTime=2200 (corresponds to approx. 10 sec.)
Parameter UpdateRate:
The parameter UpdateRate is used to set the refresh time in milliseconds for the variables.
Default value: UpdateRate=200 (smaller values are not possible)
Parameter Autoload:
If Autoload=Yes the project opened last is automatically opened again when the 907 AC 1131 is
started. For batch operation on read-only projects this parameter must be set to Autoload=No
(refer to section "Peculiarities of batch operation in version V4.1").
Default value: Autoload=Yes
Parameter LibraryDir:
This parameter is used to set the library path. The parameter is set to
"Projekt/Optionen/Verzeichnisse/Bibliotheken".
Default value: LibraryDir=c:\Programme\AC1131\Library
Parameter ProjectsDir:
This parameter is used to set the project path.
Default value: ProjectsDir=c:\Programme\AC1131\Projekte
Parameter ImportExportDir:
The parameter ImportExportDir is used to set the path for *.exp files.
Default value: ImportExportDir=c:\Programme\AC1131\Library\
Parameter DocuframeDir:
The parameter DocuframeDir is used to set the path for the online help system files.
Default value: DocuframeDir=c:\Programme\AC1131
1-5
Installation
Parameter TraceDir:
The parameter TraceDir is used to set the path for trace files.
Default value: TraceDir=c:\Programme\AC1131\Projekte
Parameter WatchDir:
The parameter WatchDir is used to set the path for the watch lists *.WTC.
Default value: WatchDir=c:\Programme\AC1131\Projekte
Parameter Project0..Project9:
The file names of the projects opened last and their paths are entered to the parameters
Project0 ..Project8. If Autoload=Yes the project in parameter Project0 is loaded when starting
the 907 AC 1131 software.
Example: Project0=c:\Programme\AC1131\Projekte\Ein_Ausgang.pro
Note:
The parameters Project0.. can be deleted in case a project cannot be opened any
more.
1.3
Installation
1-6
1.4
Note:
The factory settings are applicable.
(I/O address = 120 hex, IRQ = 10, KOAX mode, 2.5 MHz).
Copy the content of the 907 AC 1131 programming software subdirectory
ARCNET\ARCNET_NT\Treiber
from your PC to an empty floppy disk without any subdirectory!!!
Copy the file ARCNET32.DLL in the 907 AC 1131 programming software subdirectory
ARCNET\ARCNET_NT
to the operating system subdirectory System32 (e.g. WINNT\SYSTEM32)!
For installing the driver proceed as follows:
1. Execute Settings=>Control Panel=>Network.
2. In the Control Panel select "Network".
3. Select "Add" => Floppy disk A:.
(The installation routine does not permit subdirectories !)
4. Select the option "ISA card", "COM20020".
5. The following settings ("Properties") match with the factory settings:
- Interrupt:
- IO address:
- Mem address:
- Controller:
- Driver:
- Licence number:
IRQ10
120 hex (decimal 288)
0
COM20020
FARC
ABB number: 34687-2-304-2710-0105877
(or request own number from SoHard)
After restarting the computer the settings are applied and the communication should work.
The following problems can occur:
1. The IRQ or the I/O range set is already used by another hardware device on your PC.
This can be checked using:
"Programs" => "Administrative Tools" => "Windows NT Diagnostics" => "Resources"
2. The used IRQ is configured for PCI interrupts and not for ISA interrupts. This setting is
performed in the BIOS.
1-7
Installation
1.4.2 ARCNET PC card for notebooks using Windows NT (without PCMCIA cards)
For programming the PLC via ARCNET using a notebook Contemporary Controls PCMCIAARCNET adapter PCM 20E can be used (can be obtained from SoHard).
SoHards NT (ISA card!!) driver FARC.SYS is used because Contemporary Controls does not
provide a NT driver. During the installation the I/O range and IRQ which NT has assigned to the
PCMCIA slot must be predetermined for the driver. The ISA card driver is not able to perform a
"normal" PCMCIA configuration with the PCMCIA controller. The driver assumes that the
PCMCIA controller can predetermine standard settings for the card.
Proceed as follows if your PC is not yet equipped with PCMCIA cards:
Copy the content of the 907 AC 1131 programming software subdirectory
ARCNET\ARCNET_NT\Treiber
from your PC to an empty floppy disk without any subdirectory!!!
Copy the file ARCNET32.DLL in the 907 AC 1131 programming software subdirectory
ARCNET\ARCNET_NT
to the operating system subdirectory System32 (e.g. WINNT\SYSTEM32)!
Switch-off the computer, insert the PCMCIA card and connect the adapter.
After switching-on the PC and booting Windows NT, select:
"Settings" => "Control Panel" => "PC Card (PCMCIA)".
Now the card should be detected in one of the PCMCIA slots as:
"Contemporary Control Systems, Inc. PCM20 ARCNET Adapter".
If the card is not detected automatically the card or the PCMCIA controller is faulty.
In the second step some settings in the registry must be entered which tell the SoHard ARCNET
ISA card driver, that the inserted card is a PCMCIA card. For this purpose, a registry file
"PCM20_NT.REG" is provided which contains the most settings correctly. If you double-click on
this file in the Windows NT Explorer you should receive the message
"The information from C:\...\PCM20_NT.REG was entered in the registry".
Restart NT so that the settings become valid. After starting select:
"Settings" => "Control Panel" => "PC Card (PCMCIA)".
In
"Socket State" => "Properties" => "Resources"
the parameters should be set as follows:
- Interrupt Request:
10
(Example)
- I/O Range:
300-30F
(Example)
Installation
1-8
The values 10 and/or 300-30F are probably different in your system. Note down the values. It
does not matter that it is displayed in
"Socket State" => "Properties" => "Drivers"
that no driver was installed for this device.
If in
"Socket State" => "Properties" => "Resources"
nothing is displayed, your Laptop or your PCMCIA controller is not able to predetermine
standard settings for a PCMCIA card for which no driver was loaded.
In this case the ARCNET PCMCIA controller cannot be used in your system! In order to rule out
errors you should check and if necessary repeat the steps described above. Please contact
your PC supplier.
With the following tested laptops the ARCNET PCMCIA adapter did not work:
- Gateway 2000 Solo
- ...
Now install the Farc driver performing the same procedure as for the ISA card (steps 1-5). For
the bus type you must select "ISA", not PCI, PCMCIA, PnP or anything else. For the I/O
address enter the I/O address assigned by NT (in the example above: 300 hex) and also the
IRQ (in the example above: 10)! For the Mem memory area select 0, for the controller type
select "COM20020" as you did for the ISA card, for the driver select FARC and enter your
licence number.
1. Select "Settings" => "Control Panel" => "Network".
2. Double-click on the "Network" icon in the control panel.
3. Select "Add" => Floppy disk A:.
4. Select the option "ISA card", "COM20020".
5. Enter the settings ("Properties"):
- Interrupt IRQ:
IRQ assigned by NT!!! (in the example: 10)
- I/O address:
I/O address assigned by NT!!! (in the example: 300hex)
- Mem address:
0
- Controller:
COM20020
- Driver:
FARC
- Licence number:
ABB number: 34687-2-304-2710-0105877
(or request own number from SoHard)
After restarting the computer the settings are applied and the communication should work.
1-9
Installation
1.4.3 ARCNET PC card for notebooks using Windows NT (with PCMCIA cards)
The installation is described for the Toshiba notebook T460CDX.
Copy the content of the 907 AC 1131 programming software subdirectory
ARCNET\ARCNET_NT\Treiber
from your PC to an empty floppy disk without any subdirectory!!!
Copy the file ARCNET32.DLL in the 907 AC 1131 programming software subdirectory
ARCNET\ARCNET_NT
to the operating system subdirectory System32 (e.g. WINNT\SYSTEM32)!
For installing the PCMCIA ARCNET card proceed as follows:
1. Uninstall the AVM card (FRITZ modem card) if necessary
The AVM card assigns IRQ5. For uninstalling use SETUP from the CD supplied with the AVM
card.
2. Determine and enter the assignment for ARCNET
- Switch-off the computer.
- Remove all PCMCIA cards with the exception of the ARCNET card.
- Switch-on and reboot the computer.
- Check the assignment for PCMCIA ARCNET (IRQ, I/O).
"Settings" => "Control Panel" => "PC Card" => "Contemporary Control Systems" =>
"Properties" => "Resources"
3. Now some settings in the registry must be entered which inform the SoHard ARCNET ISA
card driver that the inserted card is a PCMCIA card. For this purpose, a registry file
"PCM20_NT.REG" is provided which contains the most settings correctly. If you double-click on
this file in the Windows NT Explorer you should receive the message
"The information from C:\...\PCM20_NT.REG was entered in the registry".
4. Now install the Farc driver performing the same procedure as for the ISA card (steps 1-5).
For the bus type you must select "ISA", not PCI, PCMCIA, PnP or anything else. However, for
the I/O address enter the I/O address assigned by NT (in the example above: 300 hex) and also
the IRQ (in the example above: 10)! For the Mem memory area select 0, for the controller type
select "COM20020" as you did for the ISA card, for the driver select FARC and enter your
licence number.
1. Select "Settings" => "Control Panel" => "Network".
2. Double-click on the "Network" icon in the control panel.
3. Select "Add" => Floppy disk A:.
4. Select the option "ISA card", "COM20020".
5. Enter the settings ("Properties"):
- Interrupt IRQ:
IRQ assigned by NT!!! (in the example: 10)
- I/O address:
I/O address assigned by NT!!! (in the example: 300hex)
- Mem address:
0
- Controller:
COM20020
- Driver:
FARC
- Licence number:
ABB number: 34687-2-304-2710-0105877
(or request own number from SoHard)
Installation
1-10
1-11
Installation
1.5
Note:
The factory settings are applicable
(I/O address = 120 hex, IRQ = 10, KOAX mode, 2,5 MHz).
For installing the driver proceed as follows:
1. If you need other settings for I/O range or IRQ than the standard settings, edit the file
FARC20.REG in the directory
907 AC 1131\ARCNET\AECNET_95_98\Treiber.
Do not double click to open! This would already start the registration.
The file has the following content:
REGEDIT4
[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\VxD\FARC20]
[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\VxD\FARC20\Parameters]
"IoPortAddress"=dword:00000120
"IoPortIrq"=dword:0000000A
"Clock"=dword:00000001
"LicenceNumber"="0000"
"ControllerType"="20020"
"MainVendor"="SOHARD ARC95"
Enter hexadecimal values for your I/O address after "IoPortAddress" and for your IRQ after
"IoPortIrq".
2. In the following directory double click on the file Install.bat to execute it:
907 AC 1131\ARCNET\ARCNET_95_98\Treiber
The driver FARC20.VXD and the file ARCNET32.DLL are copied to the operating system
subdirectory SYSTEM (e.g. WINDOWS\SYSTEM). The driver is entered to the registry.
3. Reboot your computer.
Using the provided DOS test programs you can test in the MS-DOS shell whether the
communication with another ARCNET subscriber (e.g. a PLC) works properly.
Installation
1-12
1-13
Installation
Installation
1-14
2.1
Programming via ARCNET using the operating systems Windows95 and Windows98 SE
(refer to installation).
Entering the basic unit into the controller configuration of 907 AC 1131 (refer to section
"Entering the PLC into the controller configuration").
New functions for FORCING and OVERWRITING (refer to section "Peculiarities for forcing
and overwriting").
Reorganization and enlargement of the block libraries (refer to volume 6 "Libraries"). New
ARCNET blocks (in ARCNET_S90_V41.LIB / ARCNET new) and blocks for ASCII
communication (DRUCK / EMAS replacement). Due to reasons of compatibility the version
V4.0 libraries are still installed (in Library\Save_V40).
2-1
Special functions
2.2
Special functions
2-2
5. A window appears where you can select the PLC. Using the mouse, select the controller
"07KT97" and click on "OK".
6. A window appears where you can select the block name, the block type and the PLC
language. For the name and the type keep the settings PLC_PRG and PROGRAM. Select
"FBD" for the language and confirm with "OK".
2-3
Special functions
7. You have now opened a new project. When inserting the block PLC_PRG the following
global variables were already created in the folder "Global Variables" of the "Resources"
page.
Object "Systemkonstanten" containing the default values of the system constants (refer
to volume 3 - System technology, section "System constants").
Object "Fehlermerker" containing all the system and error flags (refer to volume 3 System technology, section "System and diagnosis flags").
Object "Auslastung" containing the system flags for the indication of the controller
capacity utilization (refer to volume 3 - System technology, section "System and diagnosis
flags").
The empty objects "Global Variables" and "Variable_Configuration" to enter further global
variables.
Switch to the "Resources" page by double clicking on the "Resources" tab.
Special functions
2-4
In this page, click on "Global Variables" or open the respective folder. You can see the
respective variables if you open the individual objects with a double click.
(In the example, the object "Systemkonstanten" is opened).
2-5
Special functions
All *.exp files are displayed now (in the Library directory). Select "KT97_onb" and confirm it
by clicking on "Open". Now the import file "KT97_onb.exp" is loaded. This file contains the
declaration of all onboard in- and outputs of the 07 KT 97.
When you create a new project the IEC standard library IEC_S90_V41.LIB is also loaded
into the library management. Select "Window/Library Manager".
Special functions
2-6
In the upper left window of the library management you can see "IEC_S90_V41...". (If you
need further libraries for your project, you can open a menu in this window with a right
mouse click and then select "Additional Library" from this menu. A window is opened where
you can select the desired library).
2-7
Special functions
9. In the network "0001", position the mouse cursor onto the project cursor (which is
represented by a "quadrilateral") and press <CTRL><A> (press the keys <CTRL> or
<STRG> and <A> simultaneously) or click with the right mouse button and then select
"Assign" from the appearing context menu. The display is as following:
10. Instead of the question marks, enter the symbolic name for input E62_00 on the left side
and on the right side the name for output A62_00. To do this, left-click on the question
marks, type the name and confirm with <Enter>. These names are predefined in the import
file KT97_onb.exp. If you want to use other symbolic names, you have to change the
names in the object "KT97_Onboard" located in the folder "Global Variables" of the
"Resources" tab. After changing the names you must translate the project by pressing the
<F11> key or by selecting "Project/Rebuild All" from the menu in order to announce the
global variables to the block(s).
Special functions
2-8
11. The definition of the project is now completed and the project has to be translated. To do
this, press the <F11> key or select "Project/Rebuild All" from the menu.
12. If no errors were detected the message "0 errors" is displayed in the last line of the
message box. In the next to last line the code and data size of the program is displayed in
bytes. For the data size the size of the data segments is displayed. The default setting is
always 2 data segments.
Now the communication parameters for the connection to the controller have to be set. To
perform this, please click on "Online/Communication Parameters".
2-9
Special functions
A window for setting the communication parameters appears. First click on "Gateway" and
then select "Connection", "Local" in the subsequently appearing window. Confirm the
setting with "OK".
Select the driver "ABB SST" or "ABB RS232". This selects the standard serial driver for
COM1 of the PC with the settings 19200 baud, no parity, 8 data bits and 1 stop bit.
If you use the serial interface COM2 of your PC, you have to add a new gateway setting.
To perform this, please click on "New":
Special functions
2-10
Enter any name of your choice for the gateway channel into the "Name" field (in our
example "RS232 COM2"), select "ABB RS232" for the device and confirm with "OK".
Youll return to the "Communication Parameters" window.
In the window on the right, select the "Port" by double clicking on "COM1".
2-11
Special functions
In our example the project is saved under the name "Ein_Ausgang" to the folder "Projekte".
The file extension "pro" is automatically created by 907 AC 1131 software.
14. In the next step we will load the program into the controller. To perform this, please select
"Online/Login":
Special functions
2-12
The gateway icon appears on the right side of the windows status bar and the controller
reports the project information and the runtime system version:
Select "Yes" and subsequently the new program is loaded. During the load process a
progress display informs about the currently loaded bytes. When starting the load process
the PLC changes to the STOP mode.
2-13
Special functions
15. The next step is to store the program in the FLASH memory of the PLC to protect it against
voltage breakdown. To perform this, please select "Online/Create Boot Project (Flash user
program)":
The project is stored to the Flash memory. During the flashing process the entry "FLASH"
is displayed in black in the status bar of 907 AC 1131 and also the LED "Batt." on the PLC
flashes.
16. Now the program has to be started. To perform this, select "Online/Run":
The status bar of 907 AC 1131 displays "RUN" in black color and the LED "RUN" on the
PLC lights up.
Special functions
2-14
17. In order to test the program we are going to force input E62_00 by TRUE. To do this,
please double click on the icon "E62_00". Next to "E62_00" the entry "TRUE" is displayed.
After performing another double click, "FALSE" is displayed followed by "Release Force".
This way you can choose the desired value for forcing. In our example "TRUE" is used.
Now you can force the output to FALSE again or "Release Force". Using "Online/Logout"
the connection to the PLC is disconnected again. To exit the software 907 AC 1131 use
"File/Exit".
2-15
Special functions
2.3
Special functions
2-16
2-17
Special functions
Special functions
2-18
Configuration file
CPUKT95.con
CPUKT96.con
CPUKT97.con
CPUKT98.con
2-19
Special functions
The configuration file for the controller 07 KT 98 contains the following parameters and
values:
; Basic address %M area
Param1=BaseMerker;DWORD:=16#02800000;16#02800000;16#02800000;
; Basic address %I area
Param2=BaseInputs;DWORD:=16#710000;16#710000;16#710000;
; Basic address %Q area
Param3=BaseOutputs;DWORD:=16#714000;16#714000;16#714000;
; Basic address RETAIN variable
Param4=BaseRetains;DWORD:=16#02810000;16#02810000;16#02810000;
; Size of user program (1 MB := 1024 kB-64 kB I/O description = 960 kB)
Param5=CodeSize;DWORD:=16#0F0000;16#0F0000;16#0F0000;
; Size of user data without RETAIN
; Standard: 1MB:=1024kB:=16#100000
Param6=DataSize;DWORD:=16#100000;16#100000;16#100000;
; Size of RETAIN variable (256kB)
Param7=RetainSize;DWORD:=16#40000;16#40000;16#40000;
; Segment size user data
; max.:
256 kB := 16#40000
; possible:
64 kB := 16#10000
;
128 kB := 16#20000
; standard:
32 kB :=16#8000
Param8=DataSegmentSize;DWORD:=16#8000;16#8000;16#8000;
For the controller 07 KT 98 the parameter "Param8" can be modified if necessary (if a block in
the project requires more than 32 kB of data). In this case the modification applies to all
projects.
Special functions
2-20
2-21
Special functions
2.4
"Import variables from ABB 907 PC 33 projects into global variables list"
Note:
If the controller is in the RUN mode, this operation can take some minutes.
Together with the user program the areas of the constants %MW3000.0..%MW3089.15 and the
double word constants %MD4000.0..%MD4023.15 as well as the PROFIBUS configuration data
and, if necessary, the force list are stored in the Flash memory.
Menu "Import variables from ABB 907 PC 33 projects into global variables list"
The menu item "Import variables from ABB 907 PC 33 projects into global variables list" is part
of importing projects created with 907 PC 331 and is described in the corresponding chapter.
Special functions
2-22
Caution:
The SmartMedia Card is formatted prior to writing data to it. Data which are possibly
stored on the card are deleted without any inquiry.
If both parameters under "Online/Settings for Force" are set to "yes":
- "Do not release force when logging out" - yes (checked)
- "Save force list in boot project (Flash/SMC)" - yes (checked)
you are asked whether you really want to write the force values to the SmartMedia Card. The
menu is aborted if you answer with no.
(Refer to chapter "Peculiarities for forcing and overwriting in version V4.1").
The following error is displayed if no SmartMedia Card is inserted in the controller:
"The controller has performed the last online service incorrect".
2-23
Special functions
Special functions
2-24
If you enter a question mark followed by <Enter>, the functions implemented in the controller
are displayed.
Using the command "mem <start address> <end address>" you can directly view the memory
areas.
2-25
Special functions
Using the command "tsk" you can obtain detailed information about the user tasks.
Special functions
2-26
2.5
Caution:
The new features for forcing and overwriting are only available on controllers with a
runtime system from version V4.1 onwards. The force parameters described below
are without any effects on controllers with runtime system version V4.0x.
Using "Write Values" values are written once. After this, the variables can immediately change
their value again initiated by the program.
Using "Force Values" the values are written at each beginning and each end of a cycle until
this process is cancelled with "Release Force". For example when you force a digital input to
TRUE, the I/O image of the tasks works with the forced TRUE, independently from the actual
status of the input. But, for instance, if you force an INT variable to 0 and increment this variable
in the program, the variables value inside the program is set to 1 (and not 0). This applies to all
variables and also to outputs.
The "Online" menu contains the menu item "Settings for Force". If you select this menu item a
window containing the force parameters appears.
2-27
Special functions
When you click on "Do not release force when logging out" the entry is marked by a checkmark
(indicating that the function is selected) and the entry for the parameter "Save force list in
boot project (Flash/SMC)" is displayed in black and can be selected now.
Special functions
2-28
2-29
Special functions
2.6
Caution:
To obtain a correct function of the batch operation for write protected projects, the
parameter Autoload in the file AC1131.INI (for WinNT in the folder WINNT\SYSTEM32
or for Win95/98 in the folder WINDOWS\System) must be set to off (Autoload=No).
By default Autoload is set to on, i.e. Autoload=Yes.
Below an example project is introduced together with the corresponding command file. The lines
beginning with a semicolon are comment lines. Comments written in command lines are also
preceded by a semicolon.
The content of the command file ABB.CMD shall be as follows:
; the following line can be omitted if the project has no access passwords
; insert "query off ok" already at this point if the project file is write protected
query off cancel ; ignore the password request - no writing permission
;file open downloadbatch.pro ; project name => enter your own project here
file open c:\programme\ac1131\projekte\downloadbatch.pro ; or enter file with path
query off ok ; all following dialogs with OK
online sim off ; switch off the simulation
gateway local ; local access to gateway (shared memory)
; Example for serial communication
;device guid {83BC99E0-3455-11d3-A2A8-00104BB37AA1} ; ABB RS232
;device parameter 1000 COM2 ; COM port 2
;device parameter 1001 19200 ; baud rate
; Select ARCNET driver
device guid {F41F2C40-346C-11d3-A2A8-00104BB37AA1}
; enter target address of the controller
; address of first controller:
device parameter 1101 35 ; target node number 35 (ARCNET address)
online login ; login to controller
delay 15000 ; wait time for download (15 seconds, long enough?? => change if necessary)
online createbootproject ; start flashing
delay 10000 ; 10 sec for flashing process
online run ; start program
delay 2000
online logout ; logout from the controller
delay 7000 ; 7 sec. for logout
Special functions
2-30
In our example the write protected project download.pro is sent via ARCNET to the ARCNET
subscribers 35 and 2. The project is flashed in each controller and then started. If necessary,
the set wait times must be modified according to the program length.
To call the command file:
Enter:
c:\programme\ac1131\ac1131.exe /cmd c:\programme\ac1131\projekte\abb.cmd
In this case the command file abb.cmd and the project downloadbatch.pro are located in the
directory
c:\programme\ac1131\projekte.
2-31
Special functions
2.7
Special functions
2-32
2-33
Special functions
For our project we create one (or more) watch list(s) containing the RETAIN variables. Note that
the initialization value is entered after the variable name (without ;). In our example the watch
list was saved using the name VAR_RETAIN_1.WTC.
Now the program is saved, provided with write protection, downloaded to the controller and
flashed.
Special functions
2-34
The next step is to add one more counter. Prior to modifying the program we must read the
current state of the RETAIN variables. For this, we login to the controller with the project still
unchanged. Then we set the controller to STOP mode ("Online/Stop") and in the watch and
recipe manager we open a context menu by right clicking with the mouse.
Select "Read Recipe". The variables are updated once again.
After this we open the context menu again and select "Save Watch List". In our example the
name VAR_RETAIN_2.WTC was chosen. Now we logout and delete the watch list (same
context menu, "Delete Watch List").
2-35
Special functions
After that we modify the project (or close it and open it again entering the write protection
password for modifying). Now we add one more counter to the VAR_RETAIN list which is also
incremented by 3 every 5 seconds in the program. After the modifications are completed,
translate the project using the <F11> key, save it and download it to the controller.
Special functions
2-36
To write the correct values back to the controller, you must open the context menu again using
the right mouse button (or menu "Extras") and then select the command "Write Recipe". Answer
the question "Do you really want to write the current recipe" with "Yes". The "old" values are
written and the new counter is initialized by zero.
If the program is now started the values go on correctly. The new counter begins to count
correctly. After this log out again.
2-37
Special functions
Modifying a library:
To modify a library which was created this way, use "File/Open", select the file type "Library
(*.lib) and enter the file name to open the library.
Now existing blocks can be modified or deleted and/or new blocks can be added. To save the
library perform the steps 5, 6, 7 and 9 as described above in the section "Creating a library".
Caution:
The manufacturer libraries are password protected and may not be modified by the
user.
Special functions
2-38
3.1
Introduction
The programming and test software 907 AC 1131 offers the option to import programs (in IL)
which were created for the controllers 07 KR91, 07 KT 92, 07 KT 93 and 07 KT 94 using the
programming and test software 907 PC 331. Aim of the import is to avoid laborious typing out of
existing programs. However, it will always be necessary to rework the programs. The
functionality of the blocks which are not contained in the 907 AC 1131 library ABB-BIB4.LIB
must be adapted. A list of these blocks can be found in the block library documentation. In
section 3.4 "Reworking the programs" the peculiarities to be observed are once again
described.
To import projects created with 907 PC 331 perform the following steps:
3.2
Create an ASCII file containing the variable list using 907 PC 331
Create an ASCII file containing the translated IL using 907 PC 331
Load the variable list into the 907 AC 1131
Load the program file into the 907 AC 1131
Correct the created project, if necessary
Creating the ASCII files for the program and variables using 907 PC 331
To import a project generated with 907 PC 331, the variables list and the instruction list are
required as ASCII files.
3-1
Importing projects
Page length:
Left margin:
Papersave:
Convers. file:
Initial. file:
Re-init file:
100
0
Y
(none)
(none)
(none)
0
0
Start variable:
End variable:
Start symbol:
End symbol:
Sorting Abs./Symb. (A/S):
Print with cover sheet (Y/N):
First page:
Print destination:
Importing projects
(none)
(none)
(none)
(none)
A
N
1
projectname.VAR
3-2
Variable
Symbol
Long text
E 02,00
E 62,00
E 62,09
Eingang E2,0
Onboard E0
Input 0 at module 2
Input 0 at basic unit
EW 06,00
Analn1
A 62,01
AW 02,00
M 000,00
M 000,01
M 255,15
I+
JR2
1.SPS-Zykl
MW 000,01
MW 013,04
FKT_Feld+0
TXT-Nummer
K 00,00
K 00,01
K 00,01
Bit=0
B1
Bit=1
0
1
1
KW
KW
KW
KW
KW
KW
KW
KW
KW
MAST_SLV
INIT_M
INIT_MW
INIT_MD
INIT_S
INIT_VW
MODE_SST
SLV_SEND
SLV_REC
-2
0
0
0
0
0
101
0
0
KW 01,00
KW 01,01
0
1
0
1
KD 00,00
KD 00,06
ZYKL_ZEIT
25
10
25
# +00001
# +00004
# +00127
#H C800
1
#_4
#H 7F
1
#_4
127
MRK 199
MRK 199
Label 199
B 000
B 000
BA-Nr
Block no (pre-assigned 0)
00,00
00,01
00,02
00,03
00,04
00,05
00,06
00,10
00,11
MD 00,00
3-3
Importing projects
As only comment lines are added into the instruction list which start with a semicolon, all
comment lines to be imported must start with a semicolon.
To quickly find again segment plans, a comment line with the segment plan number should
be added at the beginning of each segment plan.
The connection elements of the 907 PC 331 (I+, I-, RS, SR, =1) should also be marked by
comment lines, if they should be replaced by blocks of the 907 AC 1131 when reworking the
program.
If you have used blocks, which have been converted to several types, you have to verify
whether the constants K 00,00 or K 00,01 are assigned to the block input for selecting the
operand type. Otherwise it is possible that the wrong block is used.
907 PC 331
907 AC 1131
SHIFT SHIFTW, SHIFTD
FIFO
FIFOB, FIFOW
LIFO
LIFOB, LIFOW
INITS
INITSB, INITSW, INITSD
INITV
INITVB16, INITVB32, INITVW16, INITVW32, INITVD16, INITVD32
The program ASCII file is generated by printing the translated IL from the 907 PC 331 into a file.
To receive standardized files the following print parameters have to be set:
Menu: Print param./Print parameter
Page length:
Left margin:
Papersave:
Convers. file:
Initial. file:
Re-init file:
100
0
Y
(none)
(none)
(none)
0
0
Start variable:
End variable:
Start symbol:
End symbol:
Sorting Abs./Symb. (A/S):
Print with cover sheet (Y/N):
First page:
Print destination:
(none)
(none)
(none)
(none)
A
N
1
projectname.AWL
Note:
If the program was created in FBD/LD, only comment lines which start with a
semicolon are imported to the IL.
Importing projects
3-4
Word
00000 00000
00001
Command Operand
Symbol
Long text
; ARCNET - CEs
!BA
000
APOLL
; Initialization of the ARCNET coupler
00001 00002
00004
!
=N
00002 00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
!BA
AINIT
M
M
NODE=7
255,15
238,01
000
M
238,01
KW 30,04
M
017,02
M
017,00
MW 030,02
MW 030,03
MW 030,00
M
017,03
MW 030,05
MW 030,04
MW 030,01
M
017,04
; Receiver block ARCNET
3-5
TIMOUT
100
Importing projects
3.3
A PLC_PRG block with at least one "dummy statement" (e.g. in IL LD 0, in FBD TRUE).
The libraries "Standard.lib" and "ABB-BIBx.lib" must be included in the library management.
Caution:
The file Step_Var.EXP must be located in the route directory of the 907 AC 1131.
Copy the files "projectname.VAR" and "projectname.AWL" into your project directory.
Load the variables list "projectname.VAR" to the project. For that purpose, select the menu
item "Online/Import variables from ABB 907 PC 33 projects into global variables list". A
window appears to select the *.VAR files. Select your variables file. The variables list is
loaded. In the folder "Resources/Global Variables" one or several new entries (according to
the size of the variables file) "GlobalVariables3" ... "GlobalVariablesYY" and the entry
"Schrittketten" are created.
If necessary, correct the reported errors and translate the project again.
Load the program file "projectname.AWL" to the project. To do this, call the menu
"Online/Import program from ABB 907 PC 33 project". A window appears to select the
*.AWL files. Select your program file. For loading into the language IL confirm with "OK".
The program file is loaded. A new block of the type program (PRG) named "projectname" is
created in the folder "Bausteine" of your AWL file (projectname.AWL).
Caution:
Loading the program file can take several minutes.
If necessary, correct the reported errors and translate the project again.
In the PLC_PRG insert a block call for your block or delete PLC_PRG and rename your
block to PLC_PRG.
Importing projects
3-6
After successful translation, the block can be converted to Function Block Diagram (FBD).
Please verify your project after conversion. Pay special attention to program parts with set S - and reset -R - instructions.
Check your project for non-importable functionality (refer to section "Peculiarities") and
redesign them.
Set the cycle time for the program using the task configuration.
Variable name
The unique identification of a variable is only possible via the absolute variable name (refer to
example of the variables list) because the symbolic name:
can include special characters (symbols which are not conform to the IEC1131-3 ),
Therefore the variable names are generated from the absolute variable names during the
import. If a symbolic name exists, it is attached to the absolute name. Special characters are
replaced by "_".
The long text of a variable is added as a comment to the variables list.
For the constants word KW xx,yy and double word KD xx,yy the value appears in the long text
and is entered as initialization value during the import.
The variable K 00,00 (boolean constant 0) is not included in the variables list and replaced by
FALSE when importing the program. K 00,01 (boolean constant 1) is replaced by TRUE
accordingly.
The direct constants #, #H are not included in the variables list and directly entered as constants
when importing the program. As the IEC1131-3 does not allow HEX constants with the upper bit
set as INT, these numbers are displayed as negative decimal values.
Examples:
# +00001
#H 5F
#H FFFF
1
16#5F
-1
The block number B 000 is not imported to the variables list, because it is not required for
907 AC 1131 blocks.
3-7
Importing projects
EW 06,00
Analn1
EW 06,01
Analn2
KW 00,00
MastSlv
-1
KW 01,00
Time Out
100
907 PC 331:
907 AC 1131:
For the blocks which have been converted into function blocks, instances are created
automatically as local variable (for every block call).
For the timing element blocks, a type conversion DINT_TO_TIME is inserted automatically
before the time value input.
As intermediate flag, the local variable d_u_mm_y : BOOL; is inserted.
In the operating system of the controllers 07 KR 91, 07 KT 92, 07 KT 93 and 07 KT 94, the rules
of the boolean algebra (AND before OR and MULTIPLICATION/DIVISION before
ADDITION/SUBTRACTION) are observed automatically. In order to keep this functionality also
with the 907 AC 1131, the corresponding parentheses are set while importing the project.
Importing projects
3-8
907 AC 1131
Chain0 Step00
Chain0 Step01
Chain255 Step00
Chain255 Step15
3-9
Importing projects
3.4
Reworking programs
After the program has been loaded, it has to be translated using "Online/Rebuild All" or <F11>.
If no errors are reported, the blocks could be imported successfully. If any errors are reported,
they can be displayed one after the other by pressing <F4>.
In the most cases, errors result from impossible type conversions which must be
reprogrammed.
Example: Cannot convert DINT to INT.
WOS
DWOS
WOL
DWOL
COPY
AWM
USM
Importing projects
3-10
IDLB
IDSB
INITSB
INITVB
FIFOB
LIFOB
In most cases the address operator ADR is inserted automatically. Verify for completeness.
Conversion:
Rework:
907 AC 1131
SHIFTW, SHIFTD
FIFOB, FIFOW
LIFOB, LIFOW
INITSB, INITSW, INITSD
INITVB16, INITVB32, INITVW16, INITVW32, INITVD16, INITVD32
COUNTBW, COUNTBD
SHIFT block for word/double word
Input D/W of type E, A; M, K, S := 0 word / := 1 double word
D/W := K0,0, E, A, M, S SHIFTW
D/W := K0,1 SHIFTD
Check the block type
Stack memory (first in/first out) for binary or word data
Input B/W of type E, A; M, K, S := 0 word / := 1 binary
B/W := K0,0, E, A, M, S FIFOW (do not prefix by ADR)
B/W := K0,1 FIFOB (input ANF must be prefixed by ADR)
Check the block type, ADR
Stack memory (last in/last out) for binary or word data
Input B/W of type E, A; M, K, S := 0 word / := 1 binary
B/W := K0,0, E, A, M, S LIFOW (do not prefix by ADR)
B/W := K0,1 LIFOB (input ANF must be prefixed by ADR)
Check the block type, ADR
Word wise initialization of operand memory areas
Input VAR of type
E, A, M, K, S binary, number of words (2 bits
each)
EW, AW, MW, KW word, number of words
MD, KD double word, number of words ( *2)
E, A, M, K, S INITSB (prefix input VAR by ADR,
number of bits/BOOLS)
EW, AW, MW, KW INITSW (do not prefix by ADR, number in words)
MD, KD INITSD (do not prefix by ADR, number in double words)
Check block type, ADR, adapt number
3-11
Importing projects
INITV block:
Conversion:
Rework:
COUNTB block:
Conversion:
Rework:
ARCNET blocks:
The block APOLL is not required any more.
For every operation at the block AREC a block AREC is generated. The operand at the
907 PC 331 AREC block output UJOB is entered to all UJOB outputs of the new AREC blocks.
When reworking, another variable of the type BOOL has to be assigned to the output UJOB
(e.g. AREC_0_UJOB ... AREC_n_UJOB). These variables must be connected with an OR
operation after the last AREC block and are to be assigned to the original variable UJOB.
The blocks ASEND, ASEND+ are transferred into the corresponding blocks ASEND1, ASEND4
and ASEND16.
Importing projects
3-12
Meaning
Module connected to bus
Module address not found
Module address ok, data range incorrect
RCOM/RCOM+ blocks:
In the 907 PC 331, the RCOM/RCOM+ blocks were used as connection elements (CE). This
must be observed for programs which are using the remote protocol RCOM/RCOM+.
Correspondingly the CEs are resolved in the IL. The program code of the RCOM/RCOM+ CEs
must be replaced with the new blocks from the RCOM library.
MODBUS blocks:
The 907 AC 1131 provides uniform blocks (MODINIT, MODMAST) for the communication via
the serial interfaces COM1 and COM2 or the external MODBUS coupler 07 KP 93. For the
basic unit 07 KT 94, the setting of the MODBUS slave address is done using the system
constant
KW 00,06 / %MW3000.6.
For
the
07 KT 97,
the
system
constant
KW 00,06 / %MW3000.6 is not longer significant. The setting of the interface is done using the
MODINIT block.
The MODBUS master functionality must be programmed with the MODMAST block.
3-13
Importing projects
907 AC 1131
Positive edge
Negative edge
Reset memory, dominating
Set memory, dominating
Exclusive OR for binary values
The CEs are resolved in the IL. In order to use the 907 AC 1131 blocks, the imported IL must be
reworked accordingly. Reworking is not absolutely necessary since the logical connection is
performed correctly.
Positive edge: (I+ R_TRIG)
907 PC 331/IL:
Import
!N M 238,02
0_1
LDN
=R M 000,00
Q
R
!
M 238,02
0_1
LD
&N M 000,00
Q
ANDN
=S M 000,00
Q
S
=
M 020,00
PULS
LD
ANDN
ST
Rework
M238_02_0_1
M000_00_Q
M238_02_0_1
M000_00_Q
M000_00_Q
M238_02_0_1
M000_00_Q
M020_00_PULS
Rework
M238_02_1_0
M000_00_Q
M238_02_1_0
M000_00_Q
M000_00_Q
M238_02_0_1
M000_00_Q
M020_00_PULS
Importing projects
3-14
Declaration:
R_TRIG1 : R_TRIG;
Instructions:
CAL
R_TRIG1(CLK := M238_02_0_1)
LD
R_TRIG1.Q
ST
M020_00_PULS
Declaration:
F_TRIG1 : F_TRIG;
Instructions:
CAL
F_TRIG1(CLK := M238_02_1_0)
LD
F_TRIG1.Q
ST
M020_00_PULS
Declaration:
RSInst1 : RS;
Instructions:
CAL
RSInst1(SET := M238_02_S,
RESET1 := M238_00_R);
LD
RSInst1.Q1
ST
M020_00_Q
Rework
M010_00_E1
M010_01_E2
M010_00_E1
M010_01_E2
M011_00_A1
Declaration:
SRInst1 : SR;
Instructions:
CAL
SRInst1(SET := M238_00_S,
RESET1 := M238_02_R);
LD
SRInst1.Q1
ST
M020_00_Q
LD
XOR
ST
M010_00_E1
M010_00_E2
M011_00_A1
3-15
Importing projects
4.1
Caution:
If a download to the target system is performed while the OPC server is active, its
configuration becomes invalid and all items get the quality "Bad".
4-1
OPC test
OPC test
4-2
Motorola Byteorder: no
The target system of the project does not use Motorolas byte order (especially to be
observed for 68K, 8051, Power PC!).
Kommunikations-Timeout (s): 3
The OPC server finishes automatically after this time period if it does not receive an answer
from the controller to a transmitted service.
Puffer-Gre (Byte): 0
Communication buffer size on the target system. If it is set to 0 it is attempted to receive this
information from the device driver. If nothing is stated there it is assumed that the buffer size
is infinite.
4-3
OPC test
Using the menu item "Konfiguration/Verbindung" the communication channel is set. This is
performed the same way as for the programming software 907 AC 1131.
As well as the serial coupling all the linking can be set as for the programming software
907 AC 1131.
After this, the settings are saved and the configurator is exited.
Note:
If another hardware is loaded on the same computer when using the programming
software 907 AC 1131, the connection to the hardware must be defined in the dialog
"Online/Communication Parameters". This setting is applied and also used for the
OPC server without any notice. Due to this, the configuration program must be started
again after the process of loading in order to correct the OPC connection.
OPC test
4-4
Selecting the option "Dump symbol entries" ensures that a symbol file which provides the
selected variables for the OPC data exchange is prepared on each translation process.
Note:
The file is not written to the hard disk of the PC (C:\Winnt\Gateway Files) until the
project is sent to the target hardware. The file name is equal to the corresponding
project but with the extension "sym".
The OPC data exchange cannot be performed prior to this.
4-5
OPC test
The selection of the variables is done using the button "Configure symbol file".
Note:
If you want to select individual objects (e.g. BOOL_100 in the folder "Global
variables"), first all attributes must be reset for the entire selection. This must be
concluded with the button "OK". After this, only the desired object (e.g. BOOL_100)
must be selected (or highlighted) to activate the desired attributes.
Explanation:
"Export variables of object": The variables of the desired object are written to the symbol file.
"Export data entries": Entries for accessing the total variables are created for structures and
arrays of the object. Assumption: "Export variables of object" is activated.
"Export structure components": For the structures of the object one entry is created for each
component of the variable. Assumption: ": "Export variables of object" is activated.
"Export array entries": For the arrays of the object one entry is created for each component
of the variable. Assumption: ": "Export variables of object" is activated.
"Write access": The OPC server can modify the variables of the object.
OPC test
4-6
4.2
Note:
The selection is not effective until the project is downloaded to the target hardware.
Using the Visiwin developers package the variables of the symbol file can be entered into a
Visiwin database in order to be available in the visualization interface. A form was filled with the
ten counters and the flashing flags. Consequently the update of the OPC variables became
continuously visible.
After rebooting the PC and starting the test client or the Visiwin application, the OPC data
exchange was restarted again without any problems.
OPC off; start 907 AC 1131 and login:
OK
PC off/on; start OPC; start 907 AC 1131 and login:
Note:
During parallel operation via ARCNET no problems will occur if both, OPC and
907 AC 1131, work to the same node. The connection established first will experience
a communication error as soon as it is attempted to operate different nodes. The
communication error in the Visiwin application will cause the computer to crash. The
ARCNET driver cannot handle 4F telegrams to different nodes at the same time.
Repeated login onto 2 different controllers containing the same program:
Altering between 2 controllers containing identical programs (node 1 and node 2) is performed
without any problems for the OPC server with the configuration program. Connection and
display were frequently altered between the two nodes during one PC session. It is of no
importance whether the login is performed via COM1 or ARCNET.
Note:
If a program requires a modification, the program must be loaded to both controllers
and stored in the Flash memory. The OPC server does not work anymore if there are
any differences between the programs on the controller and on the PC. No data
exchange is performed any more.
Using the write protection ("Write Protection Password" under
"Project\Options\Passwords") will protect against unintentional program modifications
if the same program is used for multiple controllers.
4-7
OPC test
OPC test
4-8
Note:
Using VisiWin an image sensitive variables update can be switched on. This
automatically switches off all variables which are not contained on the currently used
image (Form).
Caution:
When switching to the Form1, all the OPC variables are correctly logged off at the
server. This also sets the data exchange between the server and the target hardware.
If the "Central_Form" is now used again, the variables update does not start any more.
This condition can only be corrected by re-starting VisiWin.
Caution:
If the visualization is active and a program modification is loaded to the target
hardware, the variables update is interrupted and does not start any more.
4-9
OPC test
The sampling time for the visualization package VisiWin is set in milliseconds using the
parameter "Abtastzeit" under "Konfigurationen/Treiber-Schnittstellen".
1st test row: fixed number of OPC variables, increasing PLC program size
Basic information:
Seven OPC variables (objects "Auslastung" and "OPC-Allgemein"). The variables used in
the figure were updated using the setting "nicht benutzte Variablen/Items abmelden".
Both sampling times set to 100 ms.
PLC program size varies.
Serial or ARCNET coupling.
The results of this test row are listed in the table located at the end of this chapter.
2nd test row: fixed PLC program size, increasing number of OPC variables
Basic information:
PLC program with binary/word processing, ARCNET telegram and MODBUS traffic.
Using the setting "nicht benutzte Variablen/Items abmelden" ensures that all variables are
always updated.
Both sampling times set to 100 ms.
Different OPC variables (refer to the table for objects).
The symbol configuration for the objects "Auslastung", "OPC_Allgemein" and "Int_1000" is
established using 907 AC 1131.
The number of OPC variables is adapted in the VisiWin data base using "Objekt/Aktivieren"
or "Objekt/Deaktivieren". This results in the number 200, 300, etc.
Caution:
Only 499 OPC variables (as arranged in the table) can be called via the OPC server.
The PLC will crash (restart!) if 500 variables are defined.
The results of this test row are listed in the table located at the end of this chapter.
OPC test
4-10
Note:
WIZCON always updates all defined gates. That means there is no image sensitive
switch-on/off of the gates. Therefore it was not possible to switch on/off OPC variables
during a running application by altering the image (refer to test with VisWin).
Adding/deleting of gates is performed "online". If a current image variable is deleted
the status "bad" is assigned. It is then no longer updated. Adding this variable again
does not automatically result in an update of the image. The current value of the
variable is not visible until the image is switched off and called again.
Caution:
When installing the communication driver under
"Konfiguration/Kommunikationstreiber", the CoDeSys server is not offered in the
combo box. This means that it is not recognized. Communication was only possible
after it was entered manually into the combo box.
4-11
OPC test
In WIZCON the sampling time is given for each gate. The setting can be made in seconds and
milliseconds.
1st test row: fixed number of OPC variables, increasing PLC program size
Basic information:
The results of this test row are listed in the table located at the end of this chapter.
2nd test row: fixed PLC program size, increasing number of OPC variables
Basic information:
PLC program with binary/word processing, ARCNET telegram and MODBUS traffic.
Both sampling times set to 100 ms.
Different OPC variables (refer to the table for objects).
The symbol configuration for the objects "Auslastung", "OPC_Allgemein" and "Int_1000" is
established using 907 AC 1131.
The number of OPC variables is adapted in the WIZCON gate definition by adding or
deleting them. This results in the number 200, 300, etc.
The results of this test row are listed in the table located at the end of this chapter.
Caution:
Only 499 OPC variables (as arranged in the table) can be called via the OPC server.
The PLC will crash (restart!) if 500 variables are defined.
OPC test
4-12
Test results
PLC_PRG
_10000binre Anweisungen
_10000WortAdd
_10000binreSetAnweisungen
PLC_PRG
_10000binre Anweisungen
_10000WortAdd
_10000binreSetAnweisungen
_10000WortMul
Auslastung
OPC-Allgemein
Auslastung
OPC-Allgemein
PLC_PRG
_10000binre Anweisungen
_10000WortAdd
PLC_PRG
_10000binre Anweisungen
Program
Blocks
Auslastung
OPC-Allgemein
Auslastung
OPC-Allgemein
OPC variables
4.3
C
C
serial
ARCNET
ARCNET
serial
ARCNET
ARCNET
serial
serial
Connection
to the PLC
Cyclic task
(C)
Task
(T=xxms)
4-13
100
100
100
100
99-100
99-100
97-100
118
118/131
65/ 66
66/ 76
49/ 50
47/ 58
12/13
12/16
ms
%
97-100
Program
calculation
time
Capacity
utilization of
the PLC
12
10
sec
2-3
3-4
2-4
3-5
2-4
3-5
7-9
13-14
cycles
Required
cycles to
recognize
changes
OPC test
Initialization
time (in the
image)
236/357
380/500
130/264
225/340
98/196
170/300
84/108
168/224
ms
Required time
to recognize
changes
(min / max)
PLC_PRG
_10000binre
Anweisungen_10000WortAdd
ARCNET-Datenaustausch
MODBUS
PLC_PRG
_10000binre Anweisungen
_10000WortAdd
_10000binreSetAnweisungen
_10000WortMul
Auslastung
OPC-Allgemein
Auslastung
OPC-Allgemein
OPC test
PLC_PRG
_10000binre Anweisungen
PLC_PRG
_10000binre Anweisungen
_10000WortAdd
ARCNET-Datenaustausch
Auslastung
OPC-Allgemein
Auslastung
OPC-Allgemein
Program
Blocks
OPC variables
T=150
T=150
T=150
serial
ARCNET
T=150
ARCNET
serial
ARCNET
ARCNET
serial
Connection
to the PLC
Cyclic task
(C)
Task
(T=xxms)
4-14
15-24
20-40
82-85
84-86
100
100
12
12/16
117
118/131
54/59
54/55
55/64
ms
%
100
Program
calculation
time
Capacity
utilization of
the PLC
10
sec
Initialization
time (in the
image)
1-2
3-5
2-4
3-5
cycles
Required
cycles to
recognize
changes
150
150
150/300
300
162/295
106/216
189/320
ms
Required time
to recognize
changes
(min / max)
Auslastung
OPC-Allgemein
PLC_PRG
_10000binre Anweisungen
_10000WortAdd
ARCNET-Datenaustausch
MODBUS
Auslastung
OPC-Allgemein
PLC_PRG
_10000binre Anweisungen
Program
Blocks
PLC_PRG
_10000binre Anweisungen
_10000WortAdd
ARCNET-Datenaustausch
Auslastung
OPC-Allgemein
OPC variables
ARCNET
ARCNET
T=60
T=60
T=60
T=20
ARCNET
serial
T=20
serial
Connection
to the PLC
Cyclic task
(C)
Task
(T=xxms)
4-15
96-100
94
96-100
70-71
54/59
52/52
51/53
11/12
12/16
ms
%
73-75
Program
calculation
time
Capacity
utilization of
the PLC
sec
3-5
2-4
4-6
5-7
5-10
cycles
Required
cycles to
recognize
changes
OPC test
Initialization
time (in the
image)
180/300
120/240
240/360
100/140
100/200
ms
Required time
to recognize
changes
(min / max)
PLC_PRG
_10000binre Anweisungen
_10000WortAdd
ARCNET-Datenaustausch
Auslastung
OPC-Allgemein
Int_100
Auslastung
OPC-Allgemein
Int_1000, 300 of
them released
OPC test
PLC_PRG
_10000binre Anweisungen
_10000WortAdd
ARCNET-Datenaustausch
PLC_PRG
_10000binre Anweisungen
_10000WortAdd
ARCNET-Datenaustausch
PLC_PRG
_10000binre Anweisungen
_10000WortAdd
ARCNET-Datenaustausch
Auslastung
OPC-Allgemein
Int_10
Auslastung
OPC-Allgemein
Int_1000, 200 of
them released
Program
Blocks
OPC variables
ARCNET
ARCNET
serial
ARCNET
serial
ARCNET
serial
serial
Connection
to the PLC
Cyclic task
(C)
Task
(T=xxms)
4-16
100
100
100
100
100
100
99-100
54/55
61/62
53/55
63/65
53/55
57/67
53/55
65/67
ms
%
99-100
Program
calculation
time
Capacity
utilization of
the PLC
22
29
20
26
13
19
10
sec
Initialization
time (in the
image)
33-35
64-66
23-25
44-46
12-14
23-24
3-5
5-6
cycles
Required
cycles to
recognize
changes
1782/1925
3904/4092
1219/1375
2816/2990
636/770
1608/1325
156/275
325/408
ms
Required time
to recognize
changes
(min / max)
PLC_PRG
_10000binre Anweisungen
_10000WortAdd
ARCNET-Datenaustausch
Auslastung
OPC-Allgemein
Int_10
PLC_PRG
_10000binre Anweisungen
_10000WortAdd
ARCNET-Datenaustausch
MODBUS
PLC_PRG
_10000binre Anweisungen
_10000WortAdd
ARCNET-Datenaustausch
PLC_PRG
_10000binre Anweisungen
_10000WortAdd
ARCNET-Datenaustausch
Program
Blocks
Auslastung
OPC-Allgemein
Int_1000, 486 of
them released
Auslastung
OPC-Allgemein
Int_1000, 486 of
them released
Auslastung
OPC-Allgemein
Int_1000, 400 of
them released
OPC variables
T=70
T=70
serial
ARCNET
ARCNET
ARCNET
ARCNET
serial
serial
Connection
to the PLC
Cyclic task
(C)
Task
(T=xxms)
4-17
83-85
89-90
100
100
100
100
51/52
61/65
53/56
52/55
54/56
53/55
58/60
ms
%
100
Program
calculation
time
Capacity
utilization of
the PLC
31
30
55
25
47
sec
1-3
4-6
53-54
52-54
106-107
44-45
87-89
cycles
Required
cycles to
recognize
changes
OPC test
Initialization
time (in the
image)
70/210
280/420
2809/3024
2704/2916
5830/5936
2332/2430
5046/5280
ms
Required time
to recognize
changes
(min / max)
PLC_PRG
_10000binre Anweisungen
_10000WortAdd
ARCNET-Datenaustausch
PLC_PRG
_10000binre Anweisungen
_10000WortAdd
ARCNET-Datenaustausch
PLC_PRG
_10000binre Anweisungen
_10000WortAdd
ARCNET-Datenaustausch
Auslastung
OPC-Allgemein
Int_1000, 200 of
them released
Auslastung
OPC-Allgemein
Int_1000, 300 of
them released
Auslastung
OPC-Allgemein
Int_1000, 400 of
them released
OPC test
PLC_PRG
_10000binre Anweisungen
_10000WortAdd
ARCNET-Datenaustausch
Auslastung
OPC-Allgemein
Int_100
Program
Blocks
OPC variables
T=70
T=70
ARCNET
T=70
ARCNET
serial
T=70
T=70
ARCNET
serial
T=70
T=70
ARCNET
serial
T=70
serial
Connection
to the PLC
Cyclic task
(C)
Task
(T=xxms)
4-18
87-88
93
87-88
90-93
86-88
91-92
86-88
51
54/57
51
51
51
51/53
51/52
52/62
ms
%
92-93
Program
calculation
time
Capacity
utilization of
the PLC
15
44
13
32
12
24
10
12
sec
Initialization
time (in the
image)
14-16
66-67
11-13
49-50
8-9
33-35
4-6
18-19
cycles
Required
cycles to
recognize
changes
980/1120
4620/4690
770/910
3430/3500
560/630
2310/2450
280/420
1260/1330
ms
Required time
to recognize
changes
(min / max)
PLC_PRG
_10000binre Anweisungen
_10000WortAdd
ARCNET-Datenaustausch
PLC_PRG
_10000binre Anweisungen
_10000WortAdd
ARCNET-Datenaustausch
MODBUS
Auslastung
OPC-Allgemein
Int_1000, 486 of
them released
Auslastung
OPC-Allgemein
Int_1000, 486 of
them released
Program
Blocks
OPC variables
T=60
T=70
ARCNET
T=70
ARCNET
ARCNET
T=70
serial
Connection
to the PLC
Cyclic task
(C)
Task
(T=xxms)
4-19
89-90
96-100
87-88
51/52
52
51
53
ms
%
93
Program
calculation
time
Capacity
utilization of
the PLC
18
21
14
40
sec
19-20
52-56
17-19
79-80
cycles
Required
cycles to
recognize
changes
OPC test
Initialization
time (in the
image)
1330/1400
3120/3360
1190/1330
5530/5600
ms
Required time
to recognize
changes
(min / max)
PLC_PRG
_10000binre Anweisungen
_10000WortAdd
PLC_PRG
_10000binre Anweisungen
_10000WortAdd
_10000binreSetAnweisungen
PLC_PRG
_10000binre Anweisungen
_10000WortAdd
_10000binreSetAnweisungen
_10000WortMul
Auslastung
OPC-Allgemein
Auslastung
OPC-Allgemein
Auslastung
OPC-Allgemein
OPC test
PLC_PRG
_10000binre Anweisungen
Auslastung
OPC-Allgemein
Program
Blocks
OPC variables
ARCNET
serial
ARCNET
serial
ARCNET
serial
serial
C
Connection
to the PLC
ARCNET
Cyclic task
(C)
Task
(T=xxms)
4-20
100
100
100
100
99-100
99-100
97-100
118/119
118/134
65/66
66/80
49/50
49/59
12/13
12/16
ms
%
97-100
Program
calculation
time
Capacity
utilization of
the PLC
sec
Initialization
time (in the
image)
2-3
3-4
2-4
4-5
2-4
4-6
7-8
13-14
cycles
Required
cycles to
recognize
changes
236/357
390/516
132/264
280/340
98/196
212/306
84/108
168/210
ms
Required time
to recognize
changes
(min / max)
PLC_PRG
_10000binre Anweisungen
_10000WortAdd
ARCNET-Datenaustausch
PLC_PRG
_10000binre Anweisungen
_10000WortAdd
ARCNET-Datenaustausch
MODBUS
PLC_PRG
_10000binre Anweisungen
_10000WortAdd
_10000binreSetAnweisungen
_10000WortMul
PLC_PRG
_10000binre Anweisungen
Auslastung
OPC-Allgemein
Auslastung
OPC-Allgemein
Auslastung
OPC-Allgemein
Auslastung
OPC-Allgemein
Program
Blocks
OPC variables
T=150
T=150
serial
ARCNET
T=150
T=150
ARCNET
serial
ARCNET
ARCNET
serial
Connection
to the PLC
Cyclic task
(C)
Task
(T=xxms)
4-21
15-22
20-30
82-85
86-88
100
100
11/12
11/15
117
131/132
53/59
53/55
58/67
ms
%
100
Program
calculation
time
Capacity
utilization of
the PLC
sec
1-2
1-2
2-3
2-4
2-4
4-5
cycles
Required
cycles to
recognize
changes
OPC test
Initialization
time (in the
image)
150
150/300
150/300
300/450
106/220
108/216
232/340
ms
Required time
to recognize
changes
(min / max)
PLC_PRG
_10000binre Anweisungen
_10000WortAdd
ARCNET-Datenaustausch
PLC_PRG
_10000binre Anweisungen
_10000WortAdd
ARCNET-Datenaustausch
MODBUS
Auslastung
OPC-Allgemein
Auslastung
OPC-Allgemein
OPC test
PLC_PRG
_10000binre Anweisungen
Auslastung
OPC-Allgemein
Program
Blocks
OPC variables
serial
ARCNET
ARCNET
ARCNET
serial
T=70
T=60
T=60
T=60
T=20
T=20
Connection
to the PLC
ARCNET
Cyclic task
(C)
Task
(T=xxms)
4-22
85-87
96-100
94
97-100
69-71
51/53
51/53
51/52
51/53
12
12/15
ms
%
77-78
Program
calculation
time
Capacity
utilization of
the PLC
sec
Initialization
time (in the
image)
1-2
3-5
2-4
4-6
4-6
9-11
cycles
Required
cycles to
recognize
changes
70/140
180/300
120/240
240/360
80/120
180/220
ms
Required time
to recognize
changes
(min / max)
PLC_PRG
_10000binre Anweisungen
_10000WortAdd
ARCNET-Datenaustausch
PLC_PRG
_10000binre Anweisungen
_10000WortAdd
ARCNET-Datenaustausch
PLC_PRG
_10000binre Anweisungen
_10000WortAdd
ARCNET-Datenaustausch
PLC_PRG
_10000binre Anweisungen
_10000WortAdd
ARCNET-Datenaustausch
Auslastung
OPC-Allgemein
Int_10
Auslastung
OPC-Allgemein
Int_100
Auslastung
OPC-Allgemein
Int_1000, 200 of
them released
Auslastung
OPC-Allgemein
Int_1000, 300 of
them released
Program
Blocks
OPC variables
C
C
ARCNET
ARCNET
serial
ARCNET
serial
ARCNET
serial
serial
Connection
to the PLC
Cyclic task
(C)
Task
(T=xxms)
4-23
100
100
99-100
100
99-100
100
99-100
53/54
60/61
52/55
63/64
53/55
64/67
53/55
64/66
ms
%
99-100
Program
calculation
time
Capacity
utilization of
the PLC
sec
33-35
65-66
23-25
45-46
12-14
23-24
3-5
5-6
cycles
Required
cycles to
recognize
changes
OPC test
Initialization
time (in the
image)
1782/1890
3900/3965
1196/1375
2835/2944
636/770
1560/1608
156/275
325/396
ms
Required time
to recognize
changes
(min / max)
PLC_PRG
_10000binre Anweisungen
_10000WortAdd
ARCNET-Datenaustausch
PLC_PRG
_10000binre Anweisungen
_10000WortAdd
ARCNET-Datenaustausch
MODBUS
PLC_PRG
_10000binre Anweisungen
_10000WortAdd
ARCNET-Datenaustausch
Auslastung
OPC-Allgemein
Int_1000, 486 of
them released
Auslastung
OPC-Allgemein
Int_1000, 486 of
them released
Auslastung
OPC-Allgemein
Int_10
OPC test
PLC_PRG
_10000binre Anweisungen
_10000WortAdd
ARCNET-Datenaustausch
Auslastung
OPC-Allgemein
Int_1000, 400 of
them released
Program
Blocks
OPC variables
T=70
T=70
serial
ARCNET
ARCNET
ARCNET
ARCNET
serial
serial
Connection
to the PLC
Cyclic task
(C)
Task
(T=xxms)
4-24
84-86
87-89
100
99-100
100
100
51
61/63
55/59
53/54
53/54
54/55
57/58
ms
%
100
Program
calculation
time
Capacity
utilization of
the PLC
sec
Initialization
time (in the
image)
1-3
5-6
52-53
51-53
104-106
44-45
87-89
cycles
Required
cycles to
recognize
changes
70/210
350/420
2860/3021
2754/2862
5512/5724
2376/2475
5959/5162
ms
Required time
to recognize
changes
(min / max)
PLC_PRG
_10000binre Anweisungen
_10000WortAdd
ARCNET-Datenaustausch
PLC_PRG
_10000binre Anweisungen
_10000WortAdd
ARCNET-Datenaustausch
PLC_PRG
_10000binre Anweisungen
_10000WortAdd
ARCNET-Datenaustausch
PLC_PRG
_10000binre Anweisungen
_10000WortAdd
ARCNET-Datenaustausch
Auslastung
OPC-Allgemein
Int_100
Auslastung
OPC-Allgemein
Int_1000, 200 of
them released
Auslastung
OPC-Allgemein
Int_1000, 300 of
them released
Auslastung
OPC-Allgemein
Int_1000, 400 of
them released
Program
Blocks
OPC variables
T=70
T=70
ARCNET
T=70
ARCNET
serial
T=70
T=70
ARCNET
serial
T=70
T=70
ARCNET
serial
T=70
serial
Connection
to the PLC
Cyclic task
(C)
Task
(T=xxms)
4-25
87-88
92-93
87-88
92-93
86-88
91-92
86-88
51
53/56
51
51/52
51
51/58
51
52/61
ms
%
91-93
Program
calculation
time
Capacity
utilization of
the PLC
sec
14-16
66-67
11-13
50
8-9
34-35
4-6
18-19
cycles
Required
cycles to
recognize
changes
OPC test
Initialization
time (in the
image)
980/1120
4620/4690
770/910
3500
560/630
2380/2450
280/420
1260/1330
ms
Required time
to recognize
changes
(min / max)
PLC_PRG
_10000binre Anweisungen
_10000WortAdd
ARCNET-Datenaustausch
MODBUS
Auslastung
OPC-Allgemein
Int_1000, 486 of
them released
OPC test
PLC_PRG
_10000binre Anweisungen
_10000WortAdd
ARCNET-Datenaustausch
Auslastung
OPC-Allgemein
Int_1000, 486 of
them released
Program
Blocks
OPC variables
T=60
T=70
ARCNET
T=70
ARCNET
ARCNET
T=70
serial
Connection
to the PLC
Cyclic task
(C)
Task
(T=xxms)
4-26
89-90
96-100
87-89
51
52/53
51
51/52
ms
%
93
Program
calculation
time
Capacity
utilization of
the PLC
sec
Initialization
time (in the
image)
19-20
49-53
16-18
78-80
cycles
Required
cycles to
recognize
changes
1330/1400
2940/3180
1120/1260
5460/5600
ms
Required time
to recognize
changes
(min / max)
Index
ABB_LEER.PRO 3-6
accessing address of boolean variables when
importing a project 3-11
accessing direct addresses when importing projects
3-10
P
peculiarities for forcing and overwriting in version
V4.1 2-27
peculiarities of batch operation in version V4.1 2-30
Perform cold start 2-23
PLC browser 2-24
procedure for importing the project 3-8
project protection for logging in to the controller 2-32
C
code and data size 2-20
code size 2-20
configuration files for the controllers 2-19
controller configuration - changing the PLC 2-18
controller configuration - entering the PLC 2-16
controller configuration - how to enter the PLC 2-17
Create boot project 2-22
creating and modifying your own library 2-38
R
RETAIN variables - note for program change 2-33
reworking projects from 907 PC 331 3-10
E
V
H
how to enter the PLC into the controller configuration
2-17
I
importing a project - creating an ASCII file of the
program 3-4
importing a project creating an ASCII file of the
variables list 3-2
importing a project sequence of steps 3-6
importing projects from 907 PC 331 3-1
importing step chains from 907 PC 331 3-9
Info on project on PLC 2-23
M
menus in the Online main menu 2-22
Index