Vous êtes sur la page 1sur 19

20-sim

Installation

Windows Vista / XP

20-sim Installation
2009, Controllab Products B.V.
Author: Ir. C. Kleijn
Disclaimer
This manual describes the installation procedure of the modeling and simulation package 20-sim and
related software and hardware products.
Controllab Products B.V. makes every effort to insure this information is accurate and reliable.
Controllab Products B.V. will not accept any responsibility for damage that may arise from using this
manual or information, either correct or incorrect, contained in this manual.
Information in this document is subject to change without notice. No part of this document may be
reproduced or transmitted in any form or by any means, electronic or mechanical, for any purpose,
without the express written permission of Controllab Products B.V.

Reference
Kleijn, C.
20-sim Installation
Enschede, Controllab Products B.V., 2009

Information
Controllab Products B.V.
Address: Drienerlolaan 5 HO-8266
7522 NB Enschede
the Netherlands
Phone:
+31-53-4893096
Fax:
+31-53-4892223
Internet: www.20sim.com
www.controllab.nl
E-mail:
info@20sim.com

Installing 20-sim

Table of Contents
1

20-SIM 4.1

1.1

Single License

1.2

Floating License

1.3

Classroom Kit

20-SIM 4C 1.1

2.1

Introduction

2.2

Connecting the Target

2.3

Installing 20-sim

2.4

Installing 20-sim 4C

TORSION BAR 1.0

3.1

Hardware

10

3.2

Software

12

TS-7300 DEMONSTRATION KIT 1.0

4.1

Hardware

13

4.2

Software

15

INDEX

ii

10

13

16

Installing 20-sim

20-sim 4.1

1.1 Single License


A single license must be stored on the computer on which 20-sim is installed. During runtime 20-sim
will check if the program is running from the same computer. You have to follow the steps below to
get a single license:
1.

Install 20-sim and start the program. If you do not have an installation version of the
program download it from the 20-sim website: www.20sim.com.

2.

From the Help menu select Registration/Update License.

This will open the Registration/Update window.

Use the Registration/Update window to request for a license.


3.

Click the Request License button.

Installing 20-sim

Now a window will open like:

Copy the text to your e-mail program and fill in the data.
4.

Select the license type Test or Individual PC and Copy the text to a text editor, fill-in the
missing data and send it by e-mail to info@20sim.com.

Within two working days, you will receive an e-mail message back with a license file that is unique
for your computer.
5.

Overwrite the old license file 20sim.lic (click the Locate License File button to find out
where) with the new one.

If you have purchased multiple licenses, perform step 1 to 5 for every computer on which 20-sim
should be installed.

1.2 Floating License


A floating license allows a predefined number of users to work with 20-sim at the same time. It must
be stored on a server that is reachable from all workstations that have 20-sim installed. If you have
purchased 20-sim, you have to perform the following actions to get a floating license:
1.

Install 20-sim on a workstation and start the program. If you do not have an installation
version of the program, download it from the 20-sim website: www.20sim.com.

2.

From the Help menu select Registration/Update License.

Installing 20-sim

This will open the Registration / Update window.

Use the Registration/Update window to request for a license.


3.

Click the Locate License File button.

Now the location where your license file has been stored is shown. By default this will be in the
C:\Program Files\20-sim 4.1\bin folder.
4.

Copy the license file (20sim.lic) to a location that is open to all users, preferably on a server.

5.

Again click the Locate License File button.

6.

Change the location of the license file so that it points to the new location (i.e. on the server).

7.

Click the Request License button.

Installing 20-sim

Now a window will open like:

8.

Select the license type Server License and Copy the text to a text editor, fill in the
missing data and send it by e-mail to info@20sim.com.

Within two working days, you will receive an e-mail message back with a license file that is unique
for your computer.
9.

Overwrite the old license file 20sim.lic (on the server) with the new one.

10.

Make sure that this file is open for every user: Every user in the network should have read
and write permission for this license file.

For other workstations, the procedure is easy: Install 20-sim and use the Locate License File
button, to point to the shared license file (server).

Installing 20-sim

1.3 Classroom Kit


For educational purposes, 20-sim is available as a Classroom Kit. A Classroom Kit allows the owner to
make unlimited copies for use by students and teachers. Copies may be used at the educational
institute or at home. A Classroom Kit comes with two types of licenses:

student license which may be distributed among students


floating license which can be installed at the educational institute

Student License
A student license has no copy-protection but a time limitation of about one year. Controllab Products
B.V. will take care that every year a new student license is sent to the owner of a Classroom Kit.
1.

The student license has to be stored separately. You have to make copies whenever you
want to distribute this license (or place it on your intranet).

This license can only be used when copies are made from the original file. Once it has been used it
cannot be copied anymore. Of course the staff is also allowed to use the student license. This license
may also be used by students and staff at home.
2.

Install 20-sim 4.1. For installation guidelines see section 1.1.

3.

Overwrite the existing license file 20sim.lic with the student license. Usually the
existing license can be found at: "C:\Program Files\20-sim 4.1\bin".

Floating License
The floating license will have no time limitation but it is copy protected. It allows you to use 20-sim
on multiple machines. For a floating license, all 20-sim programs use a license file that is stored on a
central location.
1.

To install a floating license follow the instructions of section 1.2.

Installing 20-sim

20-sim 4C 1.1

2.1 Introduction
20-sim 4C is a prototyping environment that allows you to connect 20-sim models to physical
systems. To test the proper working we have to check that both 20-sim 4C and 20-sim are installed
and a target is connected.

2.2 Connecting the Target


20-sim 4C uses an ethernet connection to communicate with a target. This connection can be
established by a cross cable that is connected between your PC and the target directly or by a
network connection. Using a cross-cable to connect the host PC to the target is recommended if you
start 20-sim 4C for the first time.

Plug in the cross cable or network cable.

Cross Cable
1.

Plug the cross cable in the connector of your target.

2.

The other end of the cross cable must be plugged into your PC computer.

It may last several minutes before your PC will notice that a cross cable is connected. So be patient if
20-sim 4C cannot make a connection immediately.

Network Cable
1.

Plug the network cable in the connector of your target.

2.

The other end of the network cable must be plugged into a switch or hub of the
network.

Use a 'normal' network cable to connect your target via a switch or hub to your network. If your
network provides a DHCP server the configuration is automatic. If your network does not provide a
DHCP server make sure your network is configured in the 192.168.1.x range and that your PC
computer has a proper connection to the network.

Installing 20-sim

2.3 Installing 20-sim


20-sim 4.0
1.

Install 20-sim 4.0 Professional.

2.

Make sure that you have a 20-sim license that allows you to run 20-sim 4C. Contact your
local distributor how to get such a license.

3.

From the Windows Start menu open 20-sim.

4.

In the 20-sim Editor from the Tools menu click the Options command.

5.

In the window that pops up, click the Code Generation tab.

In 20-sim 4.0 you can enter the ini-file that is used for C-code generation.
6.

Change the ini-file for C-code Generation to:


C:\Program Files\20-sim 4C 1.1\target\common\20SIM\targets.ini

Note: depending on the location of 20-sim 4C, the path may be different. Enter you own path here.
The file targets.ini shows where 20-sim 4C is located. If you are generating C-code from 20-sim, the
code will be automatically transferred to 20-sim 4C.
20-sim 4.1
1.

Install 20-sim 4.1 Professional.

2.

Make sure that you have a 20-sim license that allows you to run 20-sim 4C. Contact your
local distributor how to get such a license.

3.

From the Windows Start menu open 20-sim.

4.

In the 20-sim Editor from the Tools menu click the Options command.

5.

In the window that pops up, click the Folders tab.

Installing 20-sim

In 20-sim 4.1 you can set libraries and code folders.


6.

Select the C-Code Folders button.

Now you will see an editor where you can enter the path to C-code targets and give these targets a
meaningful name.
7.

Add the folder C:\Program Files\20-sim 4C 1.1\target\common\20SIM and the label


20-sim 4C.

Enter the folder with the 20-sim 4C target.


Note: Depending on the location of 20-sim 4C, the first part of you folder may be different. Enter
you own folder here. If you are generating C-code from 20-sim, the target 20-sim 4C will be
available in the list of targets.

Installing 20-sim

2.4 Installing 20-sim 4C


1.

Install 20-sim 4C on the same computer as 20-sim 4.0 Professional.

2.

Make sure that you have a 20-sim license that allows you to run 20-sim 4C. Contact your
local distributor how to get such a license.

3.

From the Windows Start menu open 20-sim 4C.

Installing 20-sim

Torsion Bar 1.0

3.1 Hardware
For the proper operation of the Torsion Bar, a PC computer is required that is connected to the
Torsion Bar either directly with a cross cable or via a network. On the PC computer, the software
packages 20-sim Professional and 20-sim 4C have to be installed. This section describes how to
make the various installations. In the next sections we will run two models to test if the Torsion Bar
is working properly.

Power
1.

Check if the correct power adapter was supplied.

The Torsion Bar is delivered with a power adaptor that yields 12 V output. Depending on the country,
a 220 V or a 110 V input is used. Check if the power adaptor has the correct input voltage.
2.

Plug in the power adapter.

Plug in the power cable just below the motor. Right of the power connector is the power switch.
The output of the power adaptor can be connected just below the motor. The input of the power
adaptor has to be connected to you local 220 V or 110 V supply.
3.

Switch on the power.

The power switch is located right to the power cable connector. If you switch it down some LED's on
the controller board should start to shine.

10

Installing 20-sim

Cross Cable
The network can be connected in two ways using a cross cable or a network cable. Using a crosscable to connect the host PC to the Torsion Bar is the recommended approach.
1.

Plug in the cross cable in the most left connector of the controller board.

To most left connect or is used for a network connection.


2.

The other end of the cross cable must be plugged in into your PC computer.

Note: It may last several minutes before your PC will notice that a cross cable is connected. So be
patient if 20-sim 4C cannot make a connection immediately.

Network Cable
1.

Plug in the network cable in the most left connector of the controller board.

2.

The other end of the network cable must be plugged in into a switch or hub of the
network.

Use a 'normal' network cable to connect the Torsion Bar Setup via a switch or hub to your network. If
your network provides a DHCP server the configuration is automatic. If your network does not
provide a DHCP server make sure your network is configured in the 192.168.1.x range and that your
PC computer has a proper connection to the network.

11

Installing 20-sim

3.2 Software
On the PC computer two software packages have to be installed: 20-sim 4.0 Profession or higher and
20-sim 4C 1.1 or higher.
1.

Install 20-sim 4.0 Professional or higher. For installation guidelines see chapter 1.

2.

Install 20-sim 4C 1.1 or higher. For installation guidelines see chapter 2.

In the examples, 20-sim models are used to generate C-code. These models have to be copied onto
your PC computer.
3.

Copy the example files from the CD-Rom (e.g. D:\Torsion Bar\20-sim\*.*) to a local folder
(e.g. C:\My Documents\Torsion Bar\20-sim\*.*).

Please check that you have read and write access to the local folder. Therefore we advise to copy
the files to the Windows "My Documents" folder.

12

Installing 20-sim

TS-7300 Demonstration Kit 1.0

4.1 Hardware
To run the TS-7300 board, a PC computer should be connected, either with a cross cable or via a
network. On the PC computer, the software packages 20-sim Professional and 20-sim 4C have to be
installed. This section describes how to make the various installations. In the next section we will run
a model to test if the TS-7300 board is working properly.

SD-Card
1.

Check if the SD-Card was inserted.

Check if the SD-Card is inserted in the board.

Power
1.

Check if the correct power adapter was supplied.

The Demonstration Kit is delivered with a power adaptor that yields 5 V output. Depending on the
country, a 220 V or a 110 V input is used. Check if the power adaptor has the correct input voltage.
2.

Connect the power adapter to the board as indicated in the next picture.

13

Installing 20-sim

Connect the power adaptor to the board at the opposite side of the network connector.
3.

Switch on the power.

You switch on the power by putting the power plug of the power adapter into the local grid. As soon
as the power is on, the LED's on the controller board should start to shine. The board will now
automatically boot from the SD card.

Cross Cable
The communication between the TS-7300 board and the host PC is established with a cross cable or
a network cable. A cross cable is used for a direct connection with the PC. A network cable is used for
an indirect connection through a network switch or other network components. Using a cross-cable to
connect the host PC to the TS-7300 board is the recommended approach for first time users.
1.

Plug in the cross cable in the most left connector of the controller board.

To most left connect or is used for both the cross cable and network cable.
2.

The other end of the cross cable must be plugged into your PC.

It may last several minutes before your PC will notice that a cross cable is connected. So be patient if
20-sim 4C cannot make a connection immediately.

Network Cable
1.

Plug in the network cable in the most left connector of the controller board.

2.

The other end of the network cable must be plugged in into a switch or hub of the
network.

Use a 'normal' network cable to connect the TS-7300 board Setup via a switch or hub to your
network. If your network provides a DHCP server the configuration is automatic. If your network
does not provide a DHCP server make sure your network is configured in the 192.168.1.x range and
that your PC computer has a proper connection to the network.

14

Installing 20-sim

Potentiometer and LED


1.

Check if the potentiometer and the LED connectors are mounted properly .

The potentiometer connector has to be mounted on the DIO1 pins as indicated in the next figure. The
LED connector has to mounted on the DIO2 right pins.

The correct mounting of the connectors.

4.2 Software
On the PC computer two software packages have to be installed: 20-sim 4.0 Professional or higher
and 20-sim 4C 1.1 or higher.
1.

Install 20-sim 4.0 Professional or higher. For installation guidelines, see the 20-sim
Getting Started manual.

2.

Install 20-sim 4C 1.1 or higher. For installation guidelines, see the 20-sim 4C Reference
manual.

In the examples, 20-sim models are used to generate C-code. These models have to be copied onto
your PC computer.
3.

Copy the example files from the CD-Rom (e.g. D:\TS-7300 Demonstration Kit\20-sim\*.*)
to a local folder (e.g. C:\My Documents\TS-7300 Demonstration Kit\20-sim\*.*).

Please check that you have read and write access to the local folder. Therefore we advise to copy
the files to the Windows "My Documents" folder.

15

Installing 20-sim

Index
20-sim 4.0
20-sim 4.0 Professional
20-sim Models
C-code Generation
C-code Generation dialog
Code Generation tab
Connecting
Controllab Products B.V.
Cross Cable
Floating License
ini-file
Installation
Installing 20-sim
Installing 20-sim 4C

16

6, 10
6, 10
10
7
7
6, 7
6
i
6, 10
2
7
6, 10
7
6, 9

license
License
Locate License File
Models
Network Cable
Registration/Update License
Request License
Requirements
Single License
Software
Windows
Windows 2000
Windows Vista
Windows XP

6
1, 2
2
10
6, 10
1, 2
1, 2
6, 10
1
10
6, 10
6
6, 10
6, 10

Vous aimerez peut-être aussi