Installation in a network ............................................................................................................................ 15
NEW FEATURES OF AUTOMGEN8................................................................................................................... 16
Choice of “Beginner / Expert” mode......................................................................................................... 16
Increased integration of the Grafcet 60848 standard................................................................................ 16
Compatibility of files.................................................................................................................................. 16
Physical engine integrated to IRIS3D........................................................................................................ 16
Enhanced 3D object handling in IRIS3 D................................................................................................... 16
Improved links between AUTOMGEN and IRIS3D objects....................................................................... 16
General views ............................................................................................................................................ 19
Selecting targets in expert mode ................................................................................................................ 21
Selecting targets in beginner mode............................................................................................................ 21
Palettes in expert mode.............................................................................................................................. 22
Palettes in beginner mode.......................................................................................................................... 22
Displaying or hiding the project window or message window .................................................................. 24
Displaying the work space in full screen mode.......................................................................................... 24
Registering a license.................................................................................................................................. 25
Sending a user code to IRAI....................................................................................................................... 26
Sending a file by e-mail (the best solution)............................................................................................................ 26
Copying the user code in an e-mail message......................................................................................................... 27
By fax (not recommended) .................................................................................................................................... 27
By telephone (highly unadvisable)......................................................................................................................... 27
Entering the validation/enable code .......................................................................................................... 27
Validating by a e-mail received file....................................................................................................................... 27
Validating for a code received in the text of an e-mail .......................................................................................... 27
Validating for a code received by fax or telephone................................................................................................ 27
Modifying a license.................................................................................................................................... 27
Moving a license from one computer to another........................................................................................ 28
Adding a network license....................................................................................................................................... 30
Modifying a license ............................................................................................................................................... 30
Connecting to client stations.................................................................................................................................. 30
Additional information on installing AUTOMGEN in a network environment .......................................... 31
General information............................................................................................................................................... 31
Installing AUTOMGEN8 on a file server............................................................................................................... 31
Installing one or more AUTOMGEN8 licenses on a network license manager...................................................... 31
Installing the network license server as a service...................................................................................................33
THE PROJECT.................................................................................................................................................... 35
Files generated with AUTOMGEN7........................................................................................................... 35
Importing an application from an earlier version of AUTOMGEN (version 6 or earlier)........................ 35
Generating a free distribution executable file............................................................................................ 35
User interface......................................................................................................................................................... 36
THE BROWSER.................................................................................................................................................. 38
Adding a new sheet................................................................................................................................................ 39
Importing old AUTOMGEN version sheets, importing CADEPA sheets............................................................. 40
Modifying the sheet compilation order.................................................................................................................. 40
Deleting a sheet from the list................................................................................................................................. 41
Exporting a sheet to a « .GR7 » file....................................................................................................................... 41
Copying, Cutting, Pasting a sheet.......................................................................................................................... 41
Renaming a sheet................................................................................................................................................... 41
Creating a symbol table ......................................................................................................................................... 42
Importing a symbol table....................................................................................................................................... 42
Generating the instruction list in pivot code.......................................................................................................... 44
Generating the cross reference list......................................................................................................................... 44
Adding an IRIS 2D object...................................................................................................................................... 46
Deleting an IRIS 2D object.................................................................................................................................... 47
Displaying or hiding an IRIS 2D object................................................................................................................. 47
Cutting, copying, pasting an IRIS 2D object..........................................................................................................47
Adding a new IRIS 2D object on a console........................................................................................................... 47
Modifying the properties of an IRIS 2D object...................................................................................................... 47
Setting an object model accessible on the assistant................................................................................................ 48
Importing an IRIS 2D object in an earlier version of AUTOMGEN..................................................................... 49
Creating an IRIS 3D console ................................................................................................................................. 49
Adding a file to the resources ................................................................................................................................50
Deleting a file from the resources.......................................................................................................................... 50
Renaming a file in the resources............................................................................................................................ 50
Modifying a file in the resources........................................................................................................................... 50
Adding and converting 3D STUDIO files in the resources.................................................................................... 50
Designing with the assistant ...................................................................................................................... 52
Designing with the shortcut menu.............................................................................................................. 53
Designing with the pallet ........................................................................................................................... 53
Enhancing and customizing the pallet.................................................................................................................... 53
Designing with the keyboard keys.............................................................................................................. 53
Link blocks............................................................................................................................................................ 53
Test blocks............................................................................................................................................................. 58
Function block blocks............................................................................................................................................ 58
Other blocks........................................................................................................................................................... 59
Documenting program elements................................................................................................................ 59
RUNNING AN APPLICATION ............................................................................................................................... 62
To run an application easily................................................................................................................................... 62
To end the run........................................................................................................................................................ 62
To compile only..................................................................................................................................................... 62
To stop the compilation ......................................................................................................................................... 62
To connect to a processor or install a PC............................................................................................................... 62
To disconnect a processor or uninstall a PC........................................................................................................... 62
To put the target in RUN mode.............................................................................................................................. 62
To put the target in STOP mode ............................................................................................................................ 62
To initialize the target............................................................................................................................................ 62
To run a program cycle on the target (generally not supported on processors)...................................................... 63
To activate the dynamic display.............................................................................................................................63
THE COMPILER ................................................................................................................................................. 64
Finding an error........................................................................................................................................ 64
RUNNING PROGRAMS ON A PC ......................................................................................................................... 66
Configuring the number of variables......................................................................................................... 66
PC system variables................................................................................................................................... 67
Modifying the run period ........................................................................................................................... 68
Removing an object............................................................................................................................................... 71
Dimensioning an object ......................................................................................................................................... 71
Moving an object................................................................................................................................................... 71
Putting an object in « User » mode...................................................................................................................... 71
Putting an object in « Configuration » mode ....................................................................................................... 71
Modifying the characteristics of an object ............................................................................................................. 71
Block access to configuration for all objects ............................................................................................. 72
List of basic objects.................................................................................................................................... 72
The « Button and light » object............................................................................................................................. 72
The « Digital value » object................................................................................................................................... 72
The « Screen, keyboard, message list » object....................................................................................................... 72
The « Sound » object............................................................................................................................................. 73
The « Data archive » object................................................................................................................................... 73
The « Program » object.......................................................................................................................................... 73
The « Dialogue box » object.................................................................................................................................. 73
The « Analog value » object.................................................................................................................................. 73
Modifying the state................................................................................................................................................ 78
Special orders......................................................................................................................................................... 78
Details of « Screen, keyboard, message list » object ................................................................................. 89
Links with the application...................................................................................................................................... 89
« Data » tab............................................................................................................................................................ 93
Details of « Program » object.................................................................................................................. 108
Run time distribution........................................................................................................................................... 108
Writing a program................................................................................................................................................ 109
Variable or variable table address........................................................................................................................ 112
List of functions................................................................................................................................................... 112
« Program » tab.................................................................................................................................................... 120
Creating an IRIS 3D console ................................................................................................................... 136
Adding 3D files to the project.................................................................................................................. 137
Configuring the objects............................................................................................................................ 138
Adding objects to the 3D world................................................................................................................ 139
Removing a 3D file from the resources.................................................................................................... 139
Removing an object from a 3D world ...................................................................................................... 139
Importing an “enhanced” object ............................................................................................................. 139
Exporting an “Enhanced” object ............................................................................................................ 142
Example of creating a 3D simulation based on enhanced objects........................................................... 143
Applying a behavior to an object............................................................................................................. 154
Name of AUTOMGEN variables ........................................................................................................................ 155
Adding a translation............................................................................................................................................. 156
Adding a rotation................................................................................................................................................. 159
Adding a color change......................................................................................................................................... 160
Adding a link ....................................................................................................................................................... 161
Adding another behavior...................................................................................................................................... 162
IRIS 3D example ...................................................................................................................................... 165
COMMON ELEMENTS ...................................................................................................................................... 169
Time delay........................................................................................................................................................... 170
Assignment of a boolean variable........................................................................................................................ 172
Complement assignment of a boolean variable.................................................................................................... 173
Setting a boolean variable to one......................................................................................................................... 174
Resetting a boolean variable................................................................................................................................ 175
Inverting a boolean variable................................................................................................................................. 175
Resetting a counter, a word or a long................................................................................................................... 176
Incrementing a counter, a word or a long............................................................................................................. 177
Decrementing a counter, word or long................................................................................................................. 177
Time delays.......................................................................................................................................................... 178
Interferences among the actions........................................................................................................................... 178
IEC1131-3 standard actions................................................................................................................................. 179
General form........................................................................................................................................................ 181
Test modifier........................................................................................................................................................ 181
Time delays.......................................................................................................................................................... 182
Priority of boolean operators................................................................................................................................ 182
Always true test ................................................................................................................................................... 182
Transitions on multiple lines................................................................................................................................ 184
Use of symbols......................................................................................................................................... 184
Symbol syntax ..................................................................................................................................................... 184
Automatic symbol syntax .................................................................................................................................... 184
How does the compiler manage the automatic symbols ?.................................................................................... 185
Range of variable attribution................................................................................................................................ 185
Divergence and convergence in « And » ............................................................................................................ 191
Divergence and convergence in « Or »................................................................................................................ 193
Destination and source steps, destination and source transitions......................................................................... 195
Actions on activation or deactivation of a step.................................................................................................... 197
Actions on transition crossing.............................................................................................................................. 197
Creating a Gemma............................................................................................................................................... 216
ontent of Gemma rectangles ................................................................................................................................ 216
Obtaining a corresponding Grafcet...................................................................................................................... 216
Example of Gemma............................................................................................................................................. 217
Example of Ladder............................................................................................................................................... 221
Example of a flow chart....................................................................................................................................... 224
How is a literal language used?............................................................................................................................ 226
Setting a code box................................................................................................................................................ 227
Description of pre-defined macro-instructions..................................................................................................... 286
Example of low level literal language.................................................................................................................. 288
WHILE ... ENDWHILE structure........................................................................................................................ 295
Example of a program in extended literal language............................................................................................. 295
ST literal language................................................................................................................................... 296
General Information............................................................................................................................................. 296
Creating an organizational chart.......................................................................................................................... 301
Function blocks........................................................................................................................................ 304
Creating a function block..................................................................................................................................... 305
Drawing a block and creating a « .ZON » file ..................................................................................................... 305
Creating an « .LIB » file...................................................................................................................................... 307
Simple example of a function block..................................................................................................................... 307
Evolved function blocks........................................................................................................................... 312
Time delay blocks................................................................................................................................................ 314
Word table blocks................................................................................................................................................ 314
Grafcet with an OR divergence............................................................................................................................ 318
Grafcet with an AND divergence........................................................................................................................ 319
Grafcet and synchronization................................................................................................................................ 320
Destination and source steps................................................................................................................................ 322
Destination and source steps................................................................................................................................ 323
Grafcet and macro-steps ...................................................................................................................................... 326
Grafcet and Flow Chart........................................................................................................................................ 330
Literal language box ............................................................................................................................................ 331
Function block..................................................................................................................................................... 334
Function block..................................................................................................................................................... 335
Example developed on a train model................................................................................................................... 337
Educational training manual for AUTOMGEN users.............................................................................. 343
Doctor R. in the home automation kingdom ............................................................................................ 345
First example: « which came first the bulb or the switch … »................................................................. 346
Solution 1: natural language of an electrician: ladder.......................................................................................... 347
Solution 2: the sequential language of the automation specialist: Grafcet........................................................... 347
It's your turn to play …............................................................................................................................ 349
Second example: « time frames, time-switches and other time fun… »................................................... 349
Third Example: « variation on the the me of coming and going… »........................................................ 352
Fourth example: « And the push button became intelligent … » ............................................................. 356
The solutions … ....................................................................................................................................... 359
« which came first the switch or the bulb … »..................................................................................................... 359
« time delays, time switches and other time fun… » ........................................................................................... 359
« variation on the theme of coming and going …».............................................................................................. 361
USING AUTOMSIM...................................................................................................................................... 371
Opening an existing application.............................................................................................................. 371
Creating an AUTOMSIM sheet................................................................................................................ 371
Adding an object onto an AUTOMSIM sheet........................................................................................... 372
Using the palette...................................................................................................................................... 374
Selecting one or more objects.................................................................................................................. 375
Selecting one or more objects.................................................................................................................. 376
Deleting one or more objects................................................................................................................... 376
Changing the orientation of one or more objects .................................................................................... 376
Copying/cutting one or more objects to the clipboard............................................................................. 376
Pasting one or more objects from the clipboard...................................................................................... 377
List of design primitives........................................................................................................................... 388
Other primitives................................................................................................................................................... 391
List of programming primitives........................................................................................................................... 393
Example ................................................................................................................................................... 396
GENERAL INFORMATION ................................................................................................................................399
System ................................................................................................................................................................. 400
End manufacturer code........................................................................................................................................ 400
Configuration by default.......................................................................................................................... 400
Modifying the default statements......................................................................................................................... 401
Using the default statements................................................................................................................................ 401
Displaying and modifying configuration elements................................................................................... 401
Stating the variables............................................................................................................................................. 402
Other elements..................................................................................................................................................... 402
See the « System » element in text format........................................................................................................... 402
Displaying system elements................................................................................................................................. 403
Single assignment................................................................................................................................................ 404
Linear assignment................................................................................................................................................ 404
Types of AUTOMGEN elimination variables ..................................................................................................... 405
Modifying a variable function element................................................................................................................ 410
Adding a variable function element..................................................................................................................... 410
Deleting a variable function elemen t ................................................................................................................... 412
Associating an AUTOMGEN bit to a target system bit....................................................................................... 412
Associating a table of AUTOMGEN words to a table of fixed target words....................................................... 413
Associating AUTOMGEN words to target analog inputs or outputs................................................................... 414
Associating a table of AUTOMGEN bits to a table of target bits........................................................................ 414
See the variable functions in text format.............................................................................................................. 415
Start-up manufacturer code, end manufacturer code .............................................................................. 415
Reference to an AUTOMGEN variable............................................................................................................... 415
Referring to an AUTOMGEN application symbol.............................................................................................. 416
Setting and referring to a label............................................................................................................................. 416
Entering machine code in an application ................................................................................................ 416
Communication module ........................................................................................................................... 418
Generating an executable file.................................................................................................................. 419
Direct generation of a binary file......................................................................................................................... 419
Generating an « .FEF » executable file................................................................................................................ 421
Using interrupt tasks................................................................................................................................423
Specific examples..................................................................................................................................... 423
Analog inputs/outputs.......................................................................................................................................... 424
Fast counter TSX 37-10....................................................................................................................................... 424
Fast counter TSX 37-10 used in counting ............................................................................................................ 424
Fast counter TSX 37-22....................................................................................................................................... 424
Selecting processor type .......................................................................................................................... 425
Specific syntax elements........................................................................................................................... 425
Calling up PL72 function blocks ......................................................................................................................... 425
Using a fast task................................................................................................................................................... 427
Communication module ........................................................................................................................... 428
Specific examples..................................................................................................................................... 428
Analog inputs/outputs.......................................................................................................................................... 429
Fast counter.......................................................................................................................................................... 430
Text blocks and xbt.............................................................................................................................................. 430
UNITELWAY text blocks................................................................................................................................... 433
TOR extension module........................................................................................................................................ 435
Selecting CPU type .................................................................................................................................. 436
Communication module ........................................................................................................................... 436
Specific example....................................................................................................................................... 436
Selecting processor type .......................................................................................................................... 437
Specific examples..................................................................................................................................... 437
Analog inputs/outputs.......................................................................................................................................... 438
Selecting processor type .......................................................................................................................... 439
Communication module ........................................................................................................................... 439
Selecting program blocks to use .......................................................................................................................... 443
Selecting data blocks ........................................................................................................................................... 443
Selecting processor type .......................................................................................................................... 444
Associating code written on a sheet to a program block ......................................................................... 444
Specific syntaxes ...................................................................................................................................... 444
Selecting processor type .......................................................................................................................... 455
Communication module ........................................................................................................................... 455
Selecting processor type .......................................................................................................................... 456
Communication module ........................................................................................................................... 456
Fast counter task...................................................................................................................................... 456
Specific examples..................................................................................................................................... 456
Fast counter.......................................................................................................................................................... 457
Selecting processor type .......................................................................................................................... 458
Communication module ........................................................................................................................... 458
Specific syntaxes ...................................................................................................................................... 458
Selecting processor type .......................................................................................................................... 460
Communication module ........................................................................................................................... 460
Specific syntaxes ...................................................................................................................................... 460
Communication module ........................................................................................................................... 461
Specific syntaxes ...................................................................................................................................... 461
Calling up blocks................................................................................................................................................. 462
Importing in SIEMENS SIMATIC software ............................................................................................. 463
Structure of generated code..................................................................................................................... 465
Selecting program blocks to use .......................................................................................................................... 469
Associating code written on a sheet to a program block ......................................................................... 469
Specific examples..................................................................................................................................... 469
Calling up a STEP7 block.................................................................................................................................... 470
Using an OB block............................................................................................................................................... 470
Communication module ........................................................................................................................... 471
Transferring applications to the CX-PROGRAMMER software.............................................................. 471
Specific syntax.......................................................................................................................................... 474
Associating code written on a sheet to a program block ......................................................................... 474
Specific example....................................................................................................................................... 474
Communication module ........................................................................................................................... 477
Generating a binary file........................................................................................................................... 477
Importation in a FESTO software workgroup......................................................................................... 477
Initializing the automaton........................................................................................................................ 487
Configuring the module ........................................................................................................................... 487
Communication module ........................................................................................................................... 487
Selecting the configuration of the automaton.......................................................................................... 488
Communication module ........................................................................................................................... 488
Environment
Environment
Installation
If you are installing AUTOMGEN from the AUTOMGEN CD-ROM, place
it in your CD-ROM drive.
The installation is launched automatically.
If this does not occur, launch the “Setup.exe” executable which is in the
CD-ROM root.
Configuration required
PC compatible computer, with:
- WINDOWS 98 SE or WINDOWS ME or WINDOWS 2000 or
WINDOWS XP or WINDOWS 2003 or WINDOWS VISTA operating
system,
- 256 MB memory (depending on the operating system: the operating
system itself may require more memory),
- graphics board with a resolution of at least 1024 x 768 in 65536 colors.
Installation in a network
AUTOMGEN can be installed in a network environment.
Execute the installation procedure on the “server” PC (make sure you
have all of the access rights when you carry out the procedure).
To launch AUTOMGEN, on the client PCs, create a shortcut to the
“autom8.exe” executable of the AUTOMGEN installation directory on the
server PC.
Refer to the chapter “additional information on installing AUTOMGEN in
a network environment” for more information about installing
AUTOMGEN and licenses in a network environment.
“Beginner” mode allows beginners to use a “simplified” environment that
is extremely easy to use.
Increased integration of the Grafcet 60848 standard
The new elements of this standard can now be accessed in the
contextual program editing menus.
Compatibility of files
The files generated by all of the AUTOMGEN8 versions can be re-read
by all of the AUTOMGEN
8
versions.
Physical engine integrated to IRIS3D
The TOKAMAK motor is integrated to IRIS3D. This enables an extremely
realistic simulation of the 3D operational units to be obtained.
Enhanced 3D object handling in IRIS3D
The saving and re-reading of objects and behaviors allows you to
manage libraries of easily reusable objects. Predefined objects
(cylinders, conveyor belts, etc) are proposed as standard. A 3D
operational unit simulation application can now be created in just a
couple of mouse clicks.
Improved links between AUTOMGEN and IRIS3D objects
Enhanced modes allow you to easily handle displacements of complex
objects between AUTOMGEN and IRIS3D. An AUTOMGEN variable
can, for example, give the speed of an object directly. Position reporting
can also be simulated in the manner of an absolute encoder.
Textured IRIS3D objects
Textured objects now provide IRIS3D with extraordinarily realistic
rendering.
A right click on the IRIS3D objects allows you to access the list of
variables and “drag” a reference over to a programming sheet.
AUTOMSIM user-definable object
AUTOMSIM users will appreciate the new user-definable object, which
will allow you to create your own objects.
(see the section of this manual devoted to AUTOMSIM)
Drag and drop from AUTOMSIM to AUTOMGEN sheets
A click on the AUTOMSIM objects allows you to “drag” a reference over
to a programming sheet.
Improvements to the environment
Finally, numerous improvements to the environment, such as the
magnifying glass in the design palette, the simplified palettes in
“beginner” mode, or personalizing menus make AUTOMGEN even more
user-friendly.
When AUTOMGEN is launched, a choice of mode for the environment is
proposed. “Beginner” modes make it possible to start using AUTOMGEN
in a “simplified” configuration, with a reduced number of options in the
menus and simplified palettes. This mode is especially suited to people
using AUTOMGEN for the first time. Expert mode offers all of the
applications. You could create your own models (see “
At the bottom of the browser window there is a “Targets” tab, allowing
access to the list of post-processors installed.
The active target is indicated with a red tick. Access
to targets displayed in grey is not authorized for the
license installed (see the “Licenses” chapter for
more details). To change the current target, doubleclick on the corresponding line. The targets shown in
this list are the ones selected at installation time. If
the target you want to use is not shown in this list,
re-launch the AUTOMGEN installation and install it.
Selecting targets in beginner mode
In beginner mode, the following window is opened to allow the target to
be selected each time a program is run.
At the bottom of the browser window there is a “Palette” tab, allowing
access to program design elements.
The palette gives a set of elements that can be
selected and placed on the sheets. To select an
element, left-click with the mouse in the palette,
expand the selection, release the mouse button,
click in the area selected and move the area
towards the sheet.
The palette also contains the list of symbols for
the project. You can grab them and drag them
onto a test or an action on a sheet.
A magnifying glass is automatically shown when
the elements displayed are small.
Palettes in beginner mode
In beginner mode, the palette contains a reduced group of the simplest
tools for designing programs. Left-click with the mouse over a category
to “open up this category” like a tree structure.
Displaying or hiding the project window or message window
Select the « Project » or « Messages » option from the « Window »
menu.
Displaying the work space in full screen mode
Select the « Full screen » option from the « Display » menu. Click on
to exit full screen mode.
Keyboard shortcuts
Keyboard shortcuts are written in the menus. « Masked » shortcuts can
also be used:
CTRL + ALT + F8 Save the project in executable
format
CTRL + ALT + F9 Save the project
CTRL + ALT + F10 Access project properties
CTRL + ALT + F11 Display or hide AUTOMGEN
window
Parameters can be set for the entire
environment, its state is saved when you
close AUTOMGEN. Environment windows
can be hidden. The « Windows » menu is
used to display them again. The work space
can be displayed in full screen mode. The
tabs at the bottom of the browser window are
used to access selection for the current postprocessor and the graphics palette.
A user code is valid for a period of 10 days.
So a maximum period of 10 days can pass from when you send a user
code to IRAI and when you receive an enable code provided by IRAI.
Sending a user code to IRAI
There are various methods you can use. Exchanging codes by e-mail is
highly recommended as it limits the risk of error.
A single error in the code will prevent the license from
being registered.
Sending a file by e-mail (the best solution)
License registration dialogue box
To generate a file containing your user code, click on « Save user code
in a file ». You can then transmit the file with « .a8u » extension as an
attachment and send it to the address
Copying the user code in an e-mail message
By clicking on « Copy user code to clipboard », you can then paste the
code in the body of the message and transmit it to the e-mail address
contact@irai.com.
By fax (not recommended)
By clicking on « Copy user code to clipboard », you can then paste the
code in a document and send it by fax to 00 33 4 66 54 91 33. If possible
avoid writing the code by hand and print it using a font which
differentiates between the letter « O » and the number zero.
By telephone (highly unadvisable)
By telephoning 00 33 4 66 54 91 30. Be sure to differentiate between the
letter « O » and number zero. Be careful of consonants which are difficult
to tell apart on the telephone (for example « S » and « F »).
Entering the validation/enable code
Validating by a e-mail received file
If you have received an « .a8v » file by e-mail, save the file on your hard
disk, click on « Read a validation code from a file » and select the file.
Validating for a code received in the text of an e-mail
Select the code in the message text (make sure you only select the code
and do not add any spaces to the end). Click on « Paste a validation
code from the clipboard ».
Validating for a code received by fax or telephone
Enter the code in the spaces under the title « Validation code ».
Modifying a license
Modification of a license Involves changing the elements authorized by
the license (for example adding a post-processor).
The license modification procedure is identical to registration.
This procedure is more complex. The instructions below must be
scrupulously followed to obtain good results. In the instructions below,
« source » PC indicates the computer with the license and the « target »
PC is the PC where the license needs to be moved.
1- if it has not already been done, install AUTOMGEN on the target
PC,
2- generate an « .a8u » user code file on the target PC and move this
file to the source PC (for example on a floppy disk),
3- on the source PC, select the « Move the license to another place »
option,
Dialogue box for moving a license
4- on the source PC, click on « Read a user code from a file » and
select the « .a8u » file that came from the target PC,
5- on the source PC, click on « Move the license »,
6- on the source PC, click on « Save the validation code in a file »,
recopy the generated « .a8v » file to the target PC,
7- on the target PC, click on « Read a validation code from a file »
and select the « .a8v » file that came from the source PC.
The « akey8.exe » executable manages the network license. This
executable must be launched from one of the network computers. The
network must be able to be used with TCP IP protocol. When launched,
the network license manager is hidden and only a
WINDOWS keybar. To display the network license manager window,
double click on the
icon in the keybar.
icon appears in the
The network license manager
Up to 16 different licenses can be managed by the network license
manager. A network license is characterized by a number of users and a
type of copyright (number of all or none inputs/outputs and useable postprocessors). For each license the number of possible user/s, number of
connected user/s and list of connected users (using AUTOMGEN) is
displayed in a tree format attached to each license. Each license is
associated to a port number (a numeric value starting from 5000 by
default). The first port number used can be configured by clicking on
« Parameters ».
Adding a network license
You can add a license by clicking on « Add a license ». The license
registration principle is the same as for single license versions.
Modifying a license
Double click on the licenses to modify them. The license modification
procedure is the identical to that used for single license versions.
Connecting to client stations
Click on « Connect to a network license » to connect a client station to a
network license.
Connecting to a network license
The PC name (the one from the network) where the « akey7.exe » was
launched must be provided as well as the port number corresponding to
the desired license.
You must register your license with IRAI
contact@irai.com) by sending your user
(
code by e-mail (« File/License » menu. The
network license manager is used to manage
multiple licenses on TCP IP network PC's.
Additional information on installing AUTOMGEN in a network
environment
General information
Two aspects of the AUTOMGEN
installing files on the one hand and managing licenses on the other.
These two aspects are completely separate: you can choose to install
the files either on the hard disk of the client PCs or else on a file server
and, completely independently of this, choose to install either a license
locally on a PC or else a network license on a network license manager.
8
installation have to be considered:
Installing AUTOMGEN8 on a file server
Benefit: the AUTOMGEN
8
files are installed just once on a file server,
and updates are simplified.
Procedure on the file server: install AUTOMGEN
8
. Rights needed: read-
access is sufficient.
Procedure on the client workstations: create a shortcut to the
“autom8.exe” executable, which is in the AUTOMGEN
8
installation
directory on the file server.
Installing one or more AUTOMGEN licenses on a network license
8
manager
Benefit: the licenses are no longer restricted to one PC but can be used
by all of the PCs connected to the network (floating licenses).
Principle: one or more licenses are installed on one of the network’s
PCs. A license authorizes from 1 to n users. AUTOMGEN
8
may be
launched on client PCs upto the maximum number of users. A license
has the same features for all users in terms of the number of
inputs/outputs that can be used and the types of post-processors that
can be used. If several configurations (several types of licenses) are
needed, then as many licenses will be created as there are different
types of configurations. When AUTOMGEN
8
is launched on the client
PCs, a connection will be created to one or other of the licenses
depending on the features that are wanted.
Actual example: setting up a network of 4 16 I+16 O PL72 licenses, 4 16
I+16 O PL7 licenses + 2 unlimited I/O PL7 licenses. For this: 3 licenses
will be created on the network license manager: 1 license for 4 16 I+16 O
PL72 users, 1 license for 4 16 I+16 O PL7 users, 1 license for 2 unlimited
I/O PL7 users.
Where to install the network license manager: on one of the network’s
PCs (it does not have to be the server) which must be running all the
8
time (whenever a user would like to use AUTOMGEN
).
Technical constraints: the network must support TCP/IP, the PC where
the network license manager is located must be able to run a WINDOWS
program (application or service).
Installation on the network license manager: on the PC where the
network licenses are going to be managed, install the main
8
AUTOMGEN
module + the network license manager.
Registering one or more licenses on the network license manager:
launch the network license manager: (AKEY8.EXE executable, located in
8
the AUTOMGEN
installation directory). When launched, the license
manager sets up an icon in the bottom right of the WINDOWS task bar.
Left-click once with the mouse to open the window.
Click on “Add a license” to add a license.
Click on “Save the user code in a file” to generate an .n8u file that you
will e-mail to us at the address “contact@irai.com”: we will send back an
.n8v file that you will connect up by clicking on the “Read a validation
code from a file” button.
The licenses installed in this way will then be shown in the network
license manager with the serial number and characteristics of the license
and the associated port number. It is this port number that will allow
clients to connect to a specific license.
Installation on the client workstations: launch AUTOMGEN , and in the
8
“File / License” menu select “Connect to a network license”.
Enter the name of the PC where the network license manager is running
(or its IP address) and the port number (this number makes it possible to
identify the license you want to connect to, if there is more than one).
It is also possible to add an argument in the AUTOMGEN
8
launch
shortcut in order to force connection to one network license.
The argument is:
/NETLICENSE=<name of the PC where the network license manager is
located>,<port>
Make sure that “NETLICENSE” is correctly spelled: S not C at the end.
For example:
/NETLICENSE=MYSERVER,5001
Several launch shortcuts can be created in order to connect to different
licenses.
Possible problems: if you use a firewall, make sure access is authorized
to the ports used by the network license manager (those displayed in the
network license manager).
Installing the network license manager as a service under WINDOWS
NT, 2000, XP, 2003 and VISTA:
see the following chapter.
Displaying the status of the licenses remotely: to display the status of the
network license manager on a different PC from the one on which the
network license manager has been launched (or if the “service” version
of the network license manager is being used), use the
8
“spya8protnet.exe” utility, which is located in the AUTOMGEN
installation directory.
Installing the network license server as a service
The “NT Service” key server allows the AUTOMGEN
8
network licenses
to be managed on a WINDOWS NT4, 2000, 2003, XP or VISTA
workstation without opening a session. Unlike the AKEY8.EXE
“executable” version, AKEY8NT.EXE does not allow either the
protections or the connected users to be displayed.
Before installing the key server as an “NT service”, you are
recommended to make sure that the key server works properly with the
“executable” version: AKEY8.EXE.
Launch the “akey8nt –i” command line to install the NT key server
service. The AKEY8NT.EXE executable is installed in the AUTOMGEN
installation directory.
So that the service starts automatically:
- under WINDOWS NT4: in the “Start/Parameters/Configuration
Panel” menu, select the “Services” icon the “AKEY8” line, click on
the start button and select the “Automatic” button.
Reboot your PC so that the key server is activated.
- under WINDOWS 2000, 2003, XP or VISTA: in the
“Start/Parameters/Configuration Panel” menu, select the
“Administrative Tools” icon then the “Services” icon. Right-click with
the mouse on the “AKEY8” line and select “properties”. In the
“Startup Type” option, select “Automatic”. In the “Recovery” tab,
select “Restart the service” in the “First Failure” area.
Uninstallation
Launch the “akey8nt –u” command to uninstall the NT key server
service.
Errors
After having uninstalled the AKEY8NT.EXE service, use AKEY8.EXE to
determine the cause of any malfunctions.
is strongly based on the idea of a project. A project groups
together the elements that compose an application. The browser (see
page Erreur ! Signet non défini.) displays all the project elements
(sheets, symbols, configuration, IRIS objects etc.) in a tree format.
The new file format of AUTOMGEN
8
(files with « .AGN » extension)
includes all project elements.
When you save an « .AGN » file you are assured of saving all the
elements of an application. You can easily and effectively interchange
applications created with AUTOMGEN.
« .AGN » files are compacted with « ZIP » technology, they do not need
to be compressed to be interchanged, their size is already optimized.
All the files generated by AUTOMGEN
8
versions of AUTOMGEN
: upward and downward compatibility.
8
can be re-read with all of the
Files generated with AUTOMGEN
The files created with AUTOMGEN can be opened directly in
AUTOMGEN
8
.
7
7
Importing an application from an earlier version of AUTOMGEN
(version 6 or earlier)
You need to import all of the sheets (“.GR7” files) and any symbol file
(“.SYM” file). To do this, use the import procedures described in the
following chapters.
Generating a free distribution executable file
The « Generate an executable » command from the « File » menu
is used to generate an executable starting from a project in
progress (an « .EXE » file executable on a PC with WINDOWS).
The AUTOMGEN « viewer » is automatically integrated with the
generated executable (the executable user does not need
AUTOMGEN). This viewer makes it possible to use the
application without modifying it. You can easily distribute your
applications. The generated executable is not covered by
copyright. This technique is normally used for producing a
supervising application.
Modifying project properties
With the right side of the mouse click on the « Project» element on the
browser and select « Properties » from the menu.
Modifying security options
You can restrict reading or modification access to a project by
passwords.
Advanced options
« Save the environment aspect with the project »: if checked, the position
of the windows and the aspect of the toolbars are saved in the « .AGN »
file. When the project is opened, these elements are reproduced.
« Hide the main window upon launching … »: if checked, the
AUTOMGEN window is hidden when the project is opened. Only IRIS
objects incorporated in the project will be displayed. This option is
normally used to create « package » applications which only leave IRIS
objects displayed. Use the [CTRL] + [F11] keys to redisplay the
AUTOMGEN window.
The other options are used to change the display of the AUTOMGEN
window when a project is opened.
User interface
« Block IRIS object configuration »: if checked, a user cannot modify
IRIS object configuration.
The other options are used to modify the behavior of the user interface.
Model
« This project is a document model »: if checked, when opened all the
options and the documents it contains act as a model for the creation of
a new project. This functionality is used to create standard configuration
which can be uploaded when AUTOMGEN is launched (for example a
default symbol file or a default processor configuration).
Defining a mode
To define a mode that can be used when launching AUTOMGEN (like
the “Expert” and “Beginner” modes), save a project model in the
“models” sub-directory of the AUTOMGEN installation directory. An
image can be linked to a model. To do this, create a “jpg” format file with
the same name as the “.agn” file. This file must have the following
dimensions: 120 pixels wide by 90 pixels high.
Automatic GO
«Automatic go at project launch »: if checked, the application is
automatically run when a project is opened.
The project is used to group together the
elements of an AUTOMGEN application.
Once regrouped, the elements form a
compact file with « .AGN » extension. The
project models are used to be able to easily
manage different software configurations.
Generation of executables makes it easy to
distribute applications.
A central element for application
management, the browser is used for
fast access to different application
elements: sheets, symbols,
configuration, printing, IRIS objects etc.
The « + » and « - » icons are used to
develop or retract project elements.
Actions on the browser are effected by
double clicking on the elements (opens
the element) or by clicking with the right
side of the mouse (adds a new element
to a project, special action on an
element etc.).
Certain operations are effected by
dragging and dropping the elements and
moving them on the browser.
The colors (generally called up at the
bottom of documents in the work space)
are used to identify families of elements.
A sheet is a page where a program or part of a program is designed.
Using sheets is extremely simplified in AUTOMGEN
chaining orders needed in the previous versions are no longer used. For
multiple sheets to be compiled together, they only need to be in the
project.
The icons associated to the sheets are shown below:
-
-
-
normal sheet,
normal sheet (excluding compilation),
sheet containing a macro-step expansion,
- sheet containing a function block program,
-
-
-
sheet containing a key,
sheet containing a key (excluding compilation).
sheet containing an encapsulation,
Icons are marked with a cross indicating a closed sheet (not displayed in
the work space). Double clicking on this type of icon opens (displays) the
associated sheet.
8
. The sheet
Adding a new sheet
With the right side of the mouse click on the « Sheets » element on the
browser then select « Add a new sheet ».
Select the sheet size (XXL is the
recommended format, the other
formats are for older versions of
AUTOMGEN, GEMMA is only
used for creating GEMMA
models).
The sheet can be given any
name, but each project sheet
must have its own name.
The comment area is up to your
discretion for modifications or
other information relative to each
sheet.
You can modify the
sheet name, the syntax
used for literal
language and variable
names. The « Do not
compile this sheet »
option is used to
exclude the sheet from
the compilation. The
« Display in GEMMA
format» option is only
available if the sheet
format is GEMMA and
is used to display and
modify a sheet in
GEMMA format. The
« Block the of use
inputs/outputs other
than set symbols »
option blocks the use of
i, %i, o %q variables
not attributed to
symbols. Access to the
sheet can be protected
by a password. -The
« comments » area is
left to your discretion.
Symbols
The list of symbols provides the correspondence between « symbol »
names and variable names. A project may only have one symbol table.
Creating a symbol table
With the right side of the mouse click on the « Symbols» element on the
browser and select « Create a symbol table » from the menu.
Importing a symbol table
With the right side of the mouse click on the « Symbols» element on the
browser and select « Import a symbol table » from the menu.
Post-processors
This section contains all the post-processor configuration elements (see
the post-processor manual for more information).
Compiler options
Double click on this element to modify the settings of compiler options.
Documentation
This is used to access the file printing function (double click on the
« Print » element. You can print a complete file composed of an end
paper, cross reference table, symbol list and sheets. The print setup
function is used to display all these elements.
Generating the instruction list in pivot code
By double clicking on « Pivot code » you generate a list in low level literal
language (AUTOMGEN pivot code). Viewing of the generated code is
normally reserved for specialists involved in understanding the
translation methods used by the compiler.
Generating the cross reference list
Double clicking on the « Cross reference » element generates and
displays the list of variables used in an application with any associated
processor variables and the name of or sheet(s) where they are used.
Post-processors
The other elements concern the files generated by the post-processors:
instruction lists are in processor language.
Settings
Contains the tools to display and modify the state of the variables.
Viewing and modifying a variable or variable table
With the right side of the mouse click on « Settings » and select
« Monitoring » to open an element where you can see the state of a
variable or variable table.
IRIS 2D objects are used to create consoles, supervision applications
and simulation applications of 2D operating parts. IRIS 3D is used to
create simulation applications of 3D operating parts. Each IRIS 2D object
appears in the project tree (see the chapters
IRIS 3D references for additional information).
Adding an IRIS 2D object
Click with the right side of the mouse on « Add an IRIS 2D object ». The
object selection assistant is used to select it and set its parameters.
Deleting an IRIS 2D object
With the right side of the mouse click on the IRIS object on the browser
and select « Delete » from the menu.
Displaying or hiding an IRIS 2D object
With the right side of the mouse click on the IRIS object on the browser
and select « Display/hide » from the menu.
Cutting, copying, pasting an IRIS 2D object
With the right side of the mouse click on the IRIS object on the browser
and select « Copy » or « Cut » from the menu.
To paste, with the right side of the mouse click on the « Sheet » element
on the browser and select « Paste ».
To paste an IRIS object on a console, select « Paste» from the console
menu or click with the right side of the mouse on the console on the
browser and select « Paste».
Adding a new IRIS 2D object on a console
Select « Add an object » from the console menu or click with the right
side of the mouse on the console on the browser and select « Add an
object on the console » from the menu (for more information on the
console see the chapter
« Console » object)
Modifying the properties of an IRIS 2D object
With the right side of the mouse click on the IRIS object on the browser
and select « Properties ». For higher level objects (parent objects),
special properties can be accessed:
Display establishes under which conditions the object is displayed or
hidden. The reinstallation option is used to return an object to its initial
state when dynamic display is launched (normally used for OP simulation
applications).
Setting an object model accessible on the assistant
With the right side of the mouse click on the IRIS object on the browser
Selection of modifiable parameters for users of your models
You can select the list of parameters which remain accessible to the user
on the assistant. By clicking on « Save », you save your object model.
The storage directory for object models is « <AUTOMGEN installation
directory>\i2d\lib ». You can use a sub-directory called « my objects » for
saving your models.
Importing an IRIS 2D object in an earlier version of AUTOMGEN
With the right side of the mouse click on the « IRIS» element on the
browser and select « Import IRIS 2D objects ». Select one or more
« .AOF » files.
Creating an IRIS 3D console
With the right side of the mouse click on the « IRIS » element on the
browser and select « Add an IRIS 3D console » (see the chapter on IRIS
3D for more information).
This project element is used for adding all types of files to a project. Files
which are added will become an integral part of the project and will be
saved along with the other elements. To refer to a pseudo directory
where the resources are, the key word « <RESDIR> » can be used in the
specific directory name in AUTOMGEN. For example IRIS objects can
refer to bitmaps if they are included in the resources.
Adding a file to the resources
With the right side of the mouse click on the « Resources» element on
the browser and select « Add » from the menu.
Deleting a file from the resources
With the right side of the mouse click the resource file on the browser
and select « Delete ».
Renaming a file in the resources
With the right side of the mouse click the resource file on the browser
and select « Rename ».
Modifying a file in the resources
With the right side of the mouse click the resource file on the browser
and select « Modify ».
Adding and converting 3D STUDIO files in the resources
3D STUDIO files can be converted into .x files and added to the
resources by clicking with the right side of the mouse on the
« Resources » element on the browser and selecting « Import 3D files »
(see the chapter
IRIS 2D references and IRIS 3D references for more
information).
External modules
These elements are reserved for executable modules developed by third
parties and interfaced with AUTOMGEN.
The browser is used to display and manage
all the project elements. By double clicking
on the elements or by clicking with the right
side of the mouse, you access the different
functions applicable to each element.
Various tools are available for designing programs.
Designing with the assistant
This is without doubt the simplest when starting with AUTOMGEN. With
the right side of the mouse click on an open sheet in the work space and
select « Assistant » from the menu. You will then be guided for making
selections. When you have finished click on « OK » and put the design
on the sheet by clicking with the left side of the mouse.
Click with the right side of the mouse on an open sheet in the work
space, the menu will propose a series of elements that you can put on
the sheet. This is an instinctive and fast creation method.
Designing with the pallet
By selecting elements on the pallet you can quickly create programs
starting from previously created elements.
Enhancing and customizing the pallet
« .GR7 » files are used to set the pallet, they are located in the directory
« <AUTOMGEN installation directory>\pal ». You can delete, modify,
rename or add files. To generate « .GR7 », files use the « Export »
command by clicking with the right side of the mouse on a sheet on the
browser. The names displayed on the pallet are « .GR7 » files. Relaunch
AUTOMGEN for a new element to be displayed on the pallet.
Designing with the keyboard keys
Each key is associated to design blocks. The « Blocks » element also
provides access to the blocks. The table below lists the blocks and their
use.
Delete block
Aspect Associated key Generic name Comments Languages
[A] Delete
Link blocks
Aspect Associated key Generic name Comments Languages
To document program elements, click below with the left side of the
mouse. To create comments, click on a blank space on the sheet. To
validate modifications, push the [Enter] key or click outside the editing
are with the left side of the mouse. To delete modifications, push the
[Esc] key or click outside the editing area with the right side of the
mouse.
When editing tests and actions, a « … » button appears under the editing
area. If you click on it you access an assistant for creating tests or
actions.
To create a symbol, click with the right side of the mouse on the symbol
table in the work space and select « Add ». Or click the
toolbar. You can also launch program compiling containing unset
symbols. You will be asked for variables corresponding to the symbols
during the compilation.
To easily design a program, create a new
sheet, then click with the right side of the
mouse on the bottom of the sheet. Select
« Assistant » from the menu, you will then
be guided by it.
The compiler translates the sheets into a set of pivot language equations
(these can be displayed by double clicking on the « Generated code /
pivot language » element on the browser).
The pivot language is then translated into a language which can be run
by a post-processor (the current post-processor can be displayed and
selected by double clicking on the « Targets » panel accessible by
clicking on the « Targets » tab at the lower part of the window where the
browser is.
Modifying compiler options
Double click on the element « Configuration / Compiler options».
Displaying compilation messages
The « Compilation » panel on the messages window contains the counts
produced by the last compilation.
Finding an error
By double clicking on error messages, you can find the source.
If the message windows are hidden and if one or more errors are
detected by the compiler, a dialogue box indicates the first error detected
(to display the message windows: use the « Messages » command from
the « Windows » menu).
At the end of the compilation the
« Compilation » window provides a list of
any errors. By double clicking on the error
messages, the site in the program that
caused the error is displayed.
The « run PC» target is an actual processor loaded in your PC.
You can:
- test your applications,
- drive a virtual operating part created with IRIS 2D or 3D,
- drive input/output cards connected to the PC.
Configuring the number of variables
Double click on the « Configuration / Post-processors / Executor PC /
Variables » element.
Selecting the number of variables
The space needed for the variables used in the application is
automatically reserved by default. You can manually select the amount
of memory to reserve for each type of variable. This may be necessary if
an indexed addressing is used to access a variable table.
Bits 0 to 99 and words 0 to 199 are system variables and can not be
used as user variables in your applications. The two tables below provide
details on the PC system variables.
Bits Use
0
1 to 4
5 to 7
8
9 and
10
11
12
13 to
29
30
31
32
33
34
35
36
37
38 to
55
56
57 to
67
68 to
99
active at first cycle, activation of initial Grafcet steps
reserved for I/O drivers
reserved for I/O driver errors
error on watchdog overflow is equal to 1
error general PC fault
run mode 1=RUN, 0=STOP
emergency stop pass to 1 in the event of an error or set to 1 to stop the program
reserved for drivers
bit associated to timer 1
bit associated to timer 2
bit associated to timer 3
bit associated to timer 4
bit associated to timer 5
bit for repeating sector (pass to 1 on repeat sector, reset to zero is the job of the
programmer)
setting this bit to 1 causes reading of the clock in real time and transfer to System
words 4, 5, 6, 7, 8, 51 and 52.
setting this bit to 1 causes writing of System words 4, 5, 6, 7, 8, 51 and 52 in the
real time clock.
reserved
reserved for the upper part of the multiplication result or the remainder of the
division
timers in milliseconds
timer in 1/10 second
timer in seconds
timer in minutes
timer in hours
timer in days
reserved for I/O drivers
timer 1 counter
Environment
31
32
33
34
35
36
37
38
39
40
41
42 to
50
51
52
timer 2 counter
timer 3 counter
timer 4 counter
timer 5 counter
timer 1 procedure
timer 2 procedure
timer 3 procedure
timer 4 procedure
timer 5 procedure
lower part of clock reference
upper part of clock reference
reserved for I/O drivers
timer in months
timer in years
Modifying the run period
Double click on « Post-processors / Executor PC / Run ».
Setting the run period
Driving inputs/outputs
Double click on « Configuration / Post-processor / Executor PC / I/O
Drivers ».
IRIS 2D objects are used to create supervision and simulation
applications of 2D operating parts.
The link between the objects and the automatically functioning
applications is always created by interchanging the variable state.
IRIS 2D objects are contained in WINDOWS windows.
An IRIS 2D object
IRIS 2D objects have two possible states: the « Configuration » mode
(used to modify the object characteristics) and « Use » mode (for using
an object). The « User » mode is also called « Employ » mode.
Modifying object display
The objects can be hidden or displayed. This property can be specified
when opening an object or when changing the state of the dynamic
display in the environment. Only higher level objects (not objects located
on a console) can be displayed or hidden. Objects located on a console
are displayed or hidden at the same time as the console.
To dynamically modify the visibility of objects, click with the left side of
the mouse on the objects on the browser and select « Display/Hide ».
To modify the display properties, click with the left side of the mouse on
the objects on the browser and select « Properties ».
button on the surface of the object.
Method 2: with the right side of the mouse click on the object on the
browser and select « Delete » from the menu.
Dimensioning an object
By dragging the object from one of its edges you can enlarge or shrink it
(you can also precisely modify the size of an object by accessing its
properties, see below).
Moving an object
Drag the object by clicking with the left side of the mouse on the minibar
located on the upper part of its surface.
Putting an object in « User » mode
Method 1: click on the button
on the object with the left side of the
mouse.
Method 2: click with the right side of the mouse on the object.
Putting an object in « Configuration » mode
Click with the right side of the mouse on the object.
Modifying the characteristics of an object
Method 1: click on the
button.
Method 2: push down the [CTRL] key on the keyboard and click with the
right side of the mouse on the object, then release the [CTRL] key.
Method 3: with the right side of the mouse click on the object on the
browser and select « Properties » from the menu.
Block access to configuration for all objects
With the right side of the mouse click on « Project » on the browser,
select « Properties » and check « Block IRIS 2D object configuration »
on the « Advanced » tab.
Basic objects, preset objects
The basic objects set major functionality types. Preset objects are based
on a basic type and a configuration to meet a specific need. For an
example, an emergency pushbutton is an object derived from a basic
object used to create pushbuttons and lights. To access preset objects,
use the assistant by clicking with the right side of the mouse on the
« IRIS » element on the browser and select « Adding an IRIS 2D
object ».
List of basic objects
« Console » object
The console object is the only object which can contain other objects on
its surface. It is used to create command consoles and animation
surfaces for virtual operating parts. This object has a pushbutton
to manage objects on its surface: add, move, delete etc.
The « Button and light » object
This is used to create pushbuttons and lights that interact with the
The « Sound » object
This is used to produce output sounds when the variable state of the
processing application changes.
The « Data archive » object
This is used to display processing application data in a table or chart
format and save them in the computer memory or on the disk.
The « Program » object
This is used for processing run separately from the processing
application.
The « Dialogue box » object
This is used to display messages in a pop-up window format regarding
changes in the variable state of the processing application.
The « Analog value » object
This is used to display processing application numeric variables in an
analog numeric format (bars, dials etc.).
Practical experience
In this chapter you will be able to quickly create your first IRIS 2D
application. We are going to create a console, put a pushbutton on it and
link the object variables to the processing application.
Step 1
Creating a minimal application with AUTOMGEN see chapter
Step 2
Launch the run of the AUTOMGEN application (click on the « Go »
button on the toolbar).
Step 3
With the right side of the mouse click on the « IRIS » element on the
browser and then select « Add an IRIS 2D object » from the menu. In the
« Basic objects » category, double click on « Console ».
At this point the object will appear on the screen in this format:
Step 4
To add a pushbutton to the console click on the console icon
(menu
access) and select the « Add an object » option. In the « Basic objects »
category, double click on « illuminated button ».
The object will then appear on the console:
Step 5
Now we are going to associate the pushbutton to a processing
application output, for example %Q4. Click the pushbutton icon
(not
the console icon). The pushbutton properties dialogue box will open:
Click the « Links » tab (upper part of the dialogue window). In the
« Action when button is pressed » section enter « %Q4=1 ». In the
« Action when button is released » section enter « %Q4=0 ». Then click
on « OK » on the pushbutton on the lower part of the dialogue window.
Actions on the pushbutton will drive processing application output 4. You
can open a « Monitoring » window from the « Set-up » menu by clicking
with the right side of the mouse on the browser. You display the state of
output 4 when you click then release the pushbutton.
Step 6
We are going to associate a light to the « Illuminated Button » object, this
light will be associated to a processing application input (for example 12).
Click the pushbutton icon
again. In the « Aspect » tab click on the
« Pushbutton and light » radio button. Click on the « Links » tab and
enter « %i2 » in the « Light state » section. Click on the « OK »
pushbutton in the lower part of the property dialogue window. You can
keep the state of variable « %i2 » modified (with a « Monitoring » window
or by modifying the state of the physical input, if it exists).
Step 7
We are going to duplicate the « Illuminated Button » on the console in
order to obtain a second pushbutton whose properties we will modify.
Click on the pushbutton with the left side of the mouse while pressing
down the [SHIFT] key. Black squares will appear around the selected
object. Click on the console icon
Click on the console icon
and select the « Paste » option. Now there
and select the « Copy » option.
are two overlapping « Illuminated Button» objects. Drag the upper one (it
is the only accessible one) by its upper bar and move it away from the
other pushbutton. The object which has been duplicated has the same
properties as the first. Now you can set the parameters for the second
object, for example, so it is linked to output 5 and input 3.
You can also customize the aspect of the pushbuttons by using the
aspect tab for the two objects. You can modify the size of the objects by
dragging their edges.
The three objects on the screen (console and two pushbuttons) are in
« Configuration » mode, this means that they have a mini bar on the
upper part of their surface, icons and edges for modifying their
dimensions. The objects have another mode called « Employ », in this
mode their aspect is permanent: the upper bar, icon and edges for
modifying the dimensions no longer exist. To tilt an object, click on it with
the right side of the mouse.
At this point you will have created an object that looks like this:
To create an autonomous supervision application (without developing a
processing application with AUTOMGEN) follow the procedure below:
- create correspondences for the AUTOMGEN variables and the
processor variables by double clicking on the « Configuration /
Post-processor / <post-processor name> / Variable
correspondence » element (see the post-processor manual for
more information).
- compile the application by clicking on the
button on the toolbar
(this validates the variable correspondence).
- configure the connection mode on « Only connect » by double
clicking on « Configuration / Post-processor / <post-processor
name> / Connection option ».
Comments:
- the « Automatic go » project option is used to obtain an application
which automatically connects to the target to be started.
- the « Generate an executable » on the « File » menu is used to
obtain an autonomous supervision application which is zipped and
not covered by copyright in the format of a single executable file.
Syntax for accessing the state of variables
You can use variable names in AUTOMGEN , IEC 1131-3 or a symbol
syntax. The « … » pushbuttons located near the drag areas in the object
are used to access the assistant for selecting a variable name.
Boolean state
This syntax is used in the object « states » section.
To test the state of a boolean variable, use the variable name, for
example: « i0 », « %q0 », « gate open ».
To test the complement state of a boolean variable, add a character « / »
in front of the variable name, for example: « /i4 », « /%M100 », « /high
level ».
To test the equality of a numeric variable with a constant, use the name
of the numeric variable followed by « = », « < », « > » and a constant, for
example: « %MW200=4 », « speed>2 ».
The complement state is used for creating « if different », « if less than or
equal to» and « if greater than or equal to » tests, for example:
« /%MW201<300 ».
The operator '&' is used to test a bit of a numeric variable, for example
M200&4 tests the third bit (4 = 2 power 3) of word m200.
Numeric state
This syntax is used in the object « states » section.
To read the state of a numeric variable, use the variable name, for
example: « %MW300 », « m400 », « pressure », « _+V_ ».
Modifying the state
This syntax is used in the object « order » section.
To modify the variable state, add the « = » sign followed by a constant
after the variable name.
The following constants are used for boolean variables:
« 0 », « 1 », « F1 » (set to 1), « F0 » (reset), « UF » (end set), for
example: « %Q0=1 », « %I10=F1 », « %I12=UF ».
For numeric variables, the constant is a number, for example:
« M200=1234 », « speed=4 ».
Special orders
The following key words can be used in the object order sections:
« RUN »: puts the target in RUN mode,
« STOP »: puts the target in stop,
« INIT »: initializes the target,
« STEP »: effects a step on the target,
« GO »: identical to the environment GO command,
« ENDGO »: stops the GO command,
« EXIT »: exits the environment,
« UCEXIT »: exits the environment without asking for confirmation,
« OPENAOF(<object>) »: displays an object. « <object> » designates an
object by its title and identifier number (configured in object properties)
with the « #identifier » syntax.
« CHAINAOF(<object>) »: displays an object and hides the current
object. « <object> » designates an object by its title and identifier number
(configured in object properties) with the « #identifier » syntax.
This is used for a sister object to access a parent console parameter.
The parameter must be set in the parent console « Links / Data for sister
objects » section. See the chapter
« Console » object SISTERPARAM(
identifier , parameter)
When used for the OBJECT object, this syntax makes it possible to read
an object's value. See the « Object » object.
SETPARAM( identifier , parameter , value)
Used to modify the object parameter.
To access the list of parameters that can be modified, click with the right
side of the mouse on « Illuminated Button» while editing the action areas
of an object, then select the « Parameters » command.
Details of a « Console » object
« Aspect » tab
Window
This is used to set the aspect of the console window: presence of edges,
a title bar (in this case a title can be given) presence of close and reduce
icons. If you check « Display help messages » you set-up a message
area at the bottom of the window, the size of this area is automatically
established based on the selected font (see below). If this area is not set,
messages from the sisters will be displayed on the parent console of the
console and on the bottom of the AUTOMGEN environment window (if
the object does not have a parent).
This establishes the console background: color (see below), transparent
(accessible only if the console is the sister of another console), bitmap
(the background is set by a « .BMP » file, for example created with
PAINTBRUSH).
Colors
This is used to select the color for the console background (if a colored
background is selected - see above), the background and the characters
of the help message display area (if this area is valid - see above).
Fonts for the help area
This establishes the font used for displaying help messages at the
bottom of the console.
Object size
This establishes object dimensions in number of dots. These values can
be modified to precisely set the size of an object.
Texts
Help text and bubble text.
« Bitmap » tab
Bitmap
If the console background contains a bitmap (see « Aspect » tab) the
editing area must contain a complete access name to a « .BMP » file (16
color, 256 color and 24 bits formats are supported).
The « SCAN » and « EDITOR » pushbuttons are respectively used to
search for a « .BMP » file and edit a file with WINDOWS PAINTBRUSH
software.
« Links » tab
Data for sister objects
This editing area is used to set parameters that sister objects can access
with the key word « PARENTPARAM ». One setting per line must be
written. Each setting must comply with the following syntax:
« PARAMETER=VALUE ».
This is used to set a grid (invisible) for positioning objects. Only the
« Move» command on the console integrated menu uses the grid. Grid
values are expressed in number of pixels. Values 0 and 1 cancel the grid
effect. This function must be used to perfectly align objects.
Resetting sisters
If you check « Continue to reset sisters ... » you establish that the sister
must continue to be updated when the console is changed to an icon.
This option is used, when it is not selected, to increase system
performance when a console changed to an icon only contains visual
elements.
« Sisters » tab
Sisters
This section contains the list of console sister objects. The « Properties »
pushbutton is used to directly open the properties dialogue box for the
sister selected from the list. The « Destroy » pushbutton eliminates the
selected object. The « Positions » editing areas are used to set object
positions.
« External » tab
Executable name
Name of an executable file operating on the console.
Parameters
Parameters provided on the command line for the executable.
This is used to select the object type: pushbutton, light or pushbutton
integrated with a light.
Colors
This is used to select the object color. If the object is a pushbutton, the
« Background off » setting represents the color of the pushbutton. If the
object is a light or a pushbutton integrated with a light the « Background
on » setting establishes the color of the background when the light is on
and « Background off » when the light is off. If the object aspect is
established by a bitmap only the character color can be set.
Object size
This establishes object dimensions in number of dots. These values can
be modified to precisely set the size of an object. This is necessary if the
object aspect is established by a bitmap.
Font
This is used to select character font and size. The font file used must be
present on the PC where the program is run.
Text
This is used to specify the text displayed on the object, its position, its
print direction as well as the help text displayed when the button is
pressed and a bubble text which is displayed when the cursor is placed
on the object.
« Links » tab
Action when
This is used to set the actions to be effected when the button is pressed
and when it is released.
An action can be setting the state of a variable, for example:
O0=1, m200=4, _depart cycle_=3
Or a preset key word
Configuration example where the input 10 reflects the pushbutton state
(i10 to 0 if the button is released, i10 to 1 if the button is pressed):
Action when the button is pressed: i10=1
Action when the button is released: i10=0
Light state
Establishes the light state. This section must contain the name of a
variable which drives the light: 0 = light off, 1 = light on.
For example:
b31, o4, _light init_, m200=50, m400<8, m500&16
Identifier
This is used to refer to an object in relation to the other objects.
Deactivation condition
This is used to deactivate the light. If this section contains a variable
name, then that variable deactivates the object if it is true.
« Options » tab
Type of pushbutton
This establishes if the pushbutton is bistable (it remains pressed)
monostable or a combination of the two: monostable with a simple click
and bistable with a double click.
Keyboard
This is used to associate a key to a pushbutton. If this key or
combination of keys is present on the keyboard then the pushbutton will
be pressed.
Different syntaxes can be used to set the key code:
• a simple character: For example A, Z, 2,
• the $ character followed by hexadecimal key code,
• the name of a function key, for example F5.
For combinations of keys CTRL+ or SHIFT+ must be added to the
beginning.
For example: CTRL+F4 or SHIFT+Z.
Bitmap
This is used to specify a bitmap which contains the design of an object.
The « Resize the image » option is used to extend the bitmap over the
entire surface of the object.
The bitmap file contains the four possible object aspects: button released
light off, button pressed light off, button released light on, button pressed
light on.
Even if the file is a pushbutton without a light or a light there are always
four aspects of which only two are used.
The bitmap file is divided horizontally in four.
Example:
The « Different aspect if the cursor is on the object… » option is used to
display a different image when the cursor passes over the object.
If this option is checked, the bitmap file contains 8 aspects, four
supplementary aspects are added to the right of the bitmap to contain
the design of the object when the cursor is on the object.
This validates or invalidates the use of graduations
Start value, end value
Values displayed for the graduations, these values can be signed and/or
floating point numbers.
No small graduations, no large graduations
No graduations (two levels) related to start and end values. These values
can be floating point numbers.
Font
This establishes the characters used for the graduations.
Area N°1, area N°2 and area N°3
This is used to establish colored areas. « Start value » and « End value »
set each area. The color for each area is specified by three components
of red, green and blue between 0 and 255.
Colors
This establishes the character and graduation color. Again here the
colors are expressed by their three components: red, green and blue.
Details of « Screen, keyboard, message list » object
Links with the application
The link between the object and the application is made using word
tables.
To send data to a type of object (with or without the keyboard) the data
must be placed starting from the second word of the reception table plus
the length of the data in the first word in the table (maximum length is
255). Each word contains a datum.
The data can be: an ASCII character, a number of a preset message +
8000 hexa, or a special command: 100 hexa deletes the window, 200
hexa displays the date, 300 hexa displays the time, 400 displays the
message number.
When the object has reread the available data in a table it resets the first
word to 0 to indicate that the operation has been effected.
The principle is the same for « with keyboard » objects: the first word of
the transmission table contains the number of characters entered on the
keyboard, the following words contain the characters (one per word). The
application must reset the first word to 0 when it has used the data.
The interchange table for the « Message box, alarm list » object has a
fixed length of 10 words. As is true for the « Screen » type the first word
starts the message display. If it is different than 0 it designates a
message number to be displayed. Only registered messages can be
displayed. The first word can also take an ffff hexa value to clear the
message box.
Description of 10 words used for interchanges with the « Message box »:
Word 0 represents the first word on the table, Word 1 the second, etc.
Word 0: message number to be displayed if 0 is no messages or ffff hexa
to clear all messages,
Word 1: class number for the message (see chapter
for a more detailed explanation).
The following words establish the date and time and can displayed for
each message. A value equal to ffff hexa asks the object to use the
current computer date and time (this does not include milliseconds).
Word 2: day
Word 3: month
Word 4: year
Word 5: hours
Word 6: minutes
Word 7: seconds
Word 8: milliseconds
Word 9: reserved (put 0)
Message classes
Message classes are used to classify messages into families which
share the following characteristics: background color, character color and
an icon.
there are two preset classes:
• the information message class: blue characters on a white
background, icon
, it bears the number -1,
• the alarm message class: white characters on a red background, icon
, it bears the number -2.
Other classes can be set by the user.
A bubble text can be associated with the object.
« Aspect » tab
Object type
This is used to set an object type. See chapter links with the application
Colors
This is used to select the background colors of the object and the
characters.
Font
This is used to select the character font used for displaying texts.
Object size
This establishes object dimensions in number of dots. These values can
be modified to precisely set the size of an object.
This sets the first variables of the reception and transmission tables.
These areas can contain a variable name or symbol.
« List » tab
These sections do not regard « Message box » objects.
Icons
If this is checked an icon is displayed before the messages.
Classes
If this is checked a message class number is displayed
Days, Months, Years, Hours, Minutes, Seconds, 1/1000 seconds
If these are checked each one of these elements is displayed.
Messages
If this is checked a message is displayed.
Numbers
If this is checked a message display number is displayed.
Message classes
This editing area is used to establish new message classes. Each line
sets a class. The following must appear in order and be separated by
commas on each line: the background color three components red,
green and blue), the character color (three components red, green and
blue), the class name, the bitmap file name for the icon associated to the
class.
For example:
255,0,0,0,0,0,ALARM,alarm.bmp
Means:
Red background color, black character color, ALARM class name, file
containing icon: « alarm.bmp ».
This option is used to display hexadecimal code for each character in
place of its ASCII representation. It is used for « Screen ... » type objects
and is normally used for starting up programs.
Horizontal, vertical scroll bar
Displays or hides scroll bars.
Converting OEM characters to ANSI
If this is checked, the characters from the processing application are
automatically converted from OEM characters (MS-DOS) to ANSI
characters (WINDOWS). The reverse conversion is applied to characters
which drive the object for the processing application.
Duplicating messages to ...
This section can receive a file or peripheral name (for example, « LPT1 »
for the printer) It is possible to specify multiple files and/or peripherals by
separating them with a comma. The displays will be automatically
duplicated: Printing « edge of the water ».
Associating a message storage file ...
This is used for setting a file which will be associated to the object and
used for storing information. If this file exists then the messages will be
saved (according to the number set in the « number of memorized lines»
section, when the number is reached the oldest data is deleted. When
the object is open, and if a storage file exists since its last use, then the
data contained in the file is transferred to the object.
Write the old message to ...
This is used to set a file or a peripheral which receives old messages
(the messages which are eliminated from the storage file to make room).
Number of memorized lines ...
This establishes the message storage file capacity in number of lines.
The value 0 attributes the maximum space that can be used (not a fixed
limit).
This indicates to the ARCHIVE object the consecutive number of
variables to the « First variable to read » that it must archive.
Number of memorized registrations
This is used to size memory database.
A registration represents an acquisition of « n » variables (« n » is the
number of variables to read).
Periodic reading
Variable acquisition will be done at fixed intervals of ARCHIVE object
running.
Start reading
Variable acquisition will be effected when the « Control word » has given
the order.
Period
This is used to establish the time between two acquisitions. The time is
in Day(s)/Hour(s)/Minute(s)/Second(s)/Millisecond(s) format:
J for days
H
for hours
M
for minutes
S
for seconds
MS
for milliseconds
E.g.: 2J
E.g.: 2H10M15S
Control
This is used to set a variable (a word) that controls the ARCHIVE object.
From the value taken in the count, its contents is reset by the ARCHIVE
object.
Value
Action
0 Nothing
1 Start an acquisition (Reading started)
2 Freeze the acquisitions
3 Restart archiving (after freezing)
4 Clear the memory database
5 Destroy the archive file
6 Activate « Save last acquisitions » mode
7 Cancel « Save last acquisitions » mode
« Options » tab
Use the image file
The image file is used:
At the end of using the ARCHIVE object, to save the database present in
the memory.
When the ARCHIVE object is launched
, to reconstruct the database
present in the memory during the last use.
Using the archive file
Each acquisition is saved in the file in standard database format.
Displaying
Acquisition date:
This is used to display the acquisition date of a
registration.
Acquisition time:
This is used to display the acquisition time of a
registration.
Hours, minutes, seconds, milliseconds:
This is used to configure the
acquisition time display.
The time display is effected downstream from the display of acquisitions
for the TABLE object (figure 3.1) or under the grid when it is set for the
GRAPH object (figure 3.2)
(figure 3.1) (figure 3.2)
« Tables » tab
Font
This is used to select a font for displaying the column name, times and
acquisition value.
This is used to set the column name for the TABLE object as well as the
display format for these columns (figure 4.1)
syntax: name, format
format *
Display
no format specified Signed, decimal, visible
h Hexadecimal
d Decimal
ns Not signed
s Signed
nv Not visible
v Visible
* The different options can be combined, for example:
Format
Display
d,ns,v Decimal without sign visible
(figure 4.1)
« Graph» tab
Minimum, maximum value
This is used to select the minimum and maximum values for displaying
graphs.
Only values included between the minimum and maximum values will be
displayed on the screen.
This is used to set the display time.
This is communicated to the ARCHIVE object in the
day(s)/Hour(s)/Minute(s)/Second(s)/Millisecond(s) format:
J
for days
H
for hours
M for minutes
S for seconds
MS for milliseconds
E.g.: Display
2H30M10S
E.g.: Display 100MS
Plotting values on the graph
This is used to make a mark on the graph for each acquisition (figure
5.1)
Displaying time
This is used to display the date and time of an acquisition of one or more
variables on the grid if it is open. Colors and fonts can be set for the time
display.
Outline colors
This is used to set a color for each graph. The first graph has the color of
the first line, the second graph has the color of the second line etc.
Colors are in Red, Green, Blue format.
E.g.: 255,0,0 red outline
If a color is not set on a line, the graph corresponding to this line will not
be outlined.
(figure 5.1)
« Graduations » tab
Using the graduations
This validates or invalidates the use of graduations (figure 6.1).
Values displayed for the graduations, these values can be signed and/or
floating point numbers.
No small graduations, no large graduations
No graduations (two levels) related to start and end values. These values
can be floating point numbers.
Font
Establishes the characters used for the graduations.
Area N°1, area N°2 and area N°3
This is used to establish colored areas. "Start value" and "End value" set
each area. The color for each area is set by three components of red,
green and blue between 0 and 255.
Colors
This establishes the character and graduation color. Again here the
colors are expressed by their three components: red, green and blue.
(figure 6.1)
« Grid » tab
Displaying the grid
This validates or invalidate grid display.
Not for ordinates
This sets the vertical pitch of the grid.
Not for abscissas
This sets the horizontal pitch of the grid. The pitch is in
Day(s)/Hour(s)/Minute(s)/Second(s)/Millisecond(s) format:
J for days