Kontron ThinkIO-P Manual
Hide thumbs Also See for ThinkIO-P:

Advertisement

Quick Links

ThinkIO™ - P
Premium DIN Rail PC
for Fieldbus and IO Systems
Manual ID: 29867.06, Rev. Index 01
19 March, 2007
PROGRAMMING ASSISTANCE GUIDE
-
CoDeSys PLC
The product described in this manual is
in compliance with all applied CE stan-
dards.

Advertisement

Table of Contents
loading

Summary of Contents for Kontron ThinkIO-P

  • Page 1 ThinkIO™ - P Premium DIN Rail PC for Fieldbus and IO Systems Manual ID: 29867.06, Rev. Index 01 19 March, 2007 PROGRAMMING ASSISTANCE GUIDE CoDeSys PLC ™ The product described in this manual is in compliance with all applied CE stan- dards.
  • Page 2 +49 (0) 800-SALESKONTRON Sudetenstraße 7 sales@kontron.com D - 87600 Kaufbeuren Germany For further information about other Kontron Modular Computers products, please visit our In- ternet web site: www.kontron.com Page ii ID 29867.06, Rev. 01 © 2007 Kontron Modular Computers GmbH...
  • Page 3: Table Of Contents

    4. Ethernet Network Configuration ................2 4.1 Interfacing ....................2 4.2 Providing a Route Between the Windows Host PC and the ThinkIO-P ..3 5. CoDeSys Installation and Settings ............... 4 5.1 Installation of CoDeSys IDE on a Host PC (Windows) ......... 4 5.2 Installing the CoDeSys Target Support Package (TSP) .......
  • Page 4 CoDeSys PLC ThinkIO ™ PROGRAMMING ASSISTANCE GUIDE This page has been intentionally left blank. Page iv ID 29867.03, Rev. 01 © 2005 Kontron Modular Computers GmbH...
  • Page 5: Copyright

    • a network connection between the Host PC and the ThinkIO-P (1-to-1 patch cable or a crossed Ethernet cable) • a DVD from Kontron containing the CoDeSys IDE and CoDeSys ThinkIO-P target files • a USB keyboard for the ThinkIO-P •...
  • Page 6: Virtual Console

    Use of the Ethernet interface requires that the IP addresses of the local host PC and the ThinkIO-P be known, and the IP address of the gateway if the ThinkIO-P and the local host PC are in different networks. If requred, consult the system administrator for this information.
  • Page 7: Providing A Route Between The Windows Host Pc And The Thinkio-P

    Sub-netmask: 255.255.255.0 Standard Network Configuration If the IP address of the ThinkIO-P is known and it is required to change the address, the ThinkIO-P maybe accessed via Web Based Management. In any event, the IP address of the ThinkIO-P is required to download a CoDeSys application.
  • Page 8: Codesys Installation And Settings

    3. Choose a language and then click OK 4. If requested by the InstallShield Wizard, close all running applications, and then click OK 5. To continue, click Next Page 4 ID 29867.06, Rev. 01 © 2007 Kontron Modular Computers GmbH...
  • Page 9 7. Select CoDeSys components • to select components, set or delete selections as required • to continue, click Next The selection indicated below is minimal but sufficient for an installation. ID 29867.06, Rev. 01 Page 5 © 2007 Kontron Modular Computers GmbH...
  • Page 10 8. To accept the proposed program folder click Next 9. Examine the Configuration Overview • if satisfactory, click Next to continue • to revise, click Back and modify as required Page 6 ID 29867.06, Rev. 01 © 2007 Kontron Modular Computers GmbH...
  • Page 11 CoDeSys software. 11. Click Finish to exit the InstallShield Wizard PROCEDURE END: Installation of the CoDeSys components is now complete. ID 29867.06, Rev. 01 Page 7 © 2007 Kontron Modular Computers GmbH...
  • Page 12 CoDeSys PLC ThinkIO ™ PROGRAMMING ASSISTANCE GUIDE The installation in the folder "Programme" or "Program Files" now should look like this: Page 8 ID 29867.06, Rev. 01 © 2007 Kontron Modular Computers GmbH...
  • Page 13: Installing The Codesys Target Support Package (Tsp)

    • K-Bus plus PROFIBUS DP Master on EC1 chip (EC1DPM) in the file "ThinkIO-P_ EC1DPM.trg" • etc. When installing from the KONTRON distribution DVD, all required ThinkIO-P targets will be in- stalled automatically (see files ThinkIO-P_ ..trg in the directory above). Installing the CoDeSys Target Support Package (TSP) Normally all implemented ThinkIO-P targets are installed automatically when installing CoDeSys from the Kontron DVD.
  • Page 14 ThinkIO ™ PROGRAMMING ASSISTANCE GUIDE The variations of ThinkIO-P differ in the support of field busses. There are different variations: • K-Bus, but no field bus (NOFB) • K-Bus plus PROFIBUS-DP Master on EC1 chip (EC1DPM) • K-Bus plus PROFIBUS-DP Slave on EC1 chip (EC1DPS) •...
  • Page 15 PROGRAMMING ASSISTANCE GUIDE 3. Click the file to be installed and then click Open The ".tnf" file for the ThinkIO-P is ”…\Targets\KONTRON\ThinkIO_P.tnf”. 4. At the top of the InstallTarget box the installation directory is displayed. Ensure that the path indicated is correct for the CoDeSys installation, i.e.
  • Page 16: Working With The Codesys Ide

    Note: The gateway may or may not be present in this configuration. SWITCH/HUB Ethernet THINKIO-P DVI + USB PROFIBUS loop back MONITOR WITH Siemens TOUCH SCREEN DI/O Sample System for CoDeSys Application Development Page 12 ID 29867.06, Rev. 01 © 2007 Kontron Modular Computers GmbH...
  • Page 17: Creating A New Project

    2. Select Programs, 3S Software, CoDeSys V2.3, and then click CoDeSys V2.3 3. Select File and then click NEW 4. Select the project target and then click OK ID 29867.06, Rev. 01 Page 13 © 2007 Kontron Modular Computers GmbH...
  • Page 18 6. Type or select the resolution of the target system display, select Target visualization, select Web visualization, then select OK When designing the Target Visualization, the display resolution should also be consid- ered in the CoDeSys project as well as the ThinkIO-P settings. Page 14 ID 29867.06, Rev. 01...
  • Page 19 PROCEDURE END: A new project has been created, given a name, and the target settings have been selected. The screen displayed after step 8 is the starting screen for the procedure in section 6.2.1. ID 29867.06, Rev. 01 Page 15 © 2007 Kontron Modular Computers GmbH...
  • Page 20: Plc Configuration (I/O)

    To add and configure K-Bus I/O modules using the K-Bus configurator, perform the following: PROCEDURE START: Configuring K-Bus I/O modules 1. Initial screen (same as in section 6.1, after step 8) 2. Click the Resources tab Page 16 ID 29867.06, Rev. 01 © 2007 Kontron Modular Computers GmbH...
  • Page 21 3. Double click PLC Configuration in the resources area 4. Double click PLC Configuration in the work space area to the right of the resources area, then right click K-Bus, then click the Append Subelements ID 29867.06, Rev. 01 Page 17 © 2007 Kontron Modular Computers GmbH...
  • Page 22 • If more than one module is to be added to the configuration, repeat the above until all modules have been selected The following screens indicate the selections required for the sample system. Page 18 ID 29867.06, Rev. 01 © 2007 Kontron Modular Computers GmbH...
  • Page 23 ThinkIO ™ CoDeSys PLC PROGRAMMING ASSISTANCE GUIDE 6. Click OK to add the selected modules to the configuration ID 29867.06, Rev. 01 Page 19 © 2007 Kontron Modular Computers GmbH...
  • Page 24 • type the variable name in the text insertion box, then press <ENTER> to accept the name and close the box • repeat the above until all inputs and outputs have been assigned variable names Page 20 ID 29867.06, Rev. 01 © 2007 Kontron Modular Computers GmbH...
  • Page 25 ThinkIO ™ CoDeSys PLC PROGRAMMING ASSISTANCE GUIDE PROCEDURE END: Configuring of the K-Bus modules is now complete ID 29867.06, Rev. 01 Page 21 © 2007 Kontron Modular Computers GmbH...
  • Page 26: Configuring A Fieldbus

    PROFIBUS DP master device. PROCEDURE START: Configuring a fieldbus - PROFIBUS DP Master 1. Right click PLC Configuration, select Append Subelement, then click THINKIO-C-FB-PRO-MS… Page 22 ID 29867.06, Rev. 01 © 2007 Kontron Modular Computers GmbH...
  • Page 27 CoDeSys PLC PROGRAMMING ASSISTANCE GUIDE 2. To add PROFIBUS slaves (in this case Siemens Slaves ET 200B 8DI/8DO ): • Right click THINKIO-C-FB-PRO-MS[VAR], select Append Subelement, then click B-8DI/8DO ID 29867.06, Rev. 01 Page 23 © 2007 Kontron Modular Computers GmbH...
  • Page 28 (e.g. PROFIBUS output with variable name: PROFIBUS_OUT and PROFIBUS input with the variable name: PROFIBUS_IN) PROCEDURE END: Configuring fieldbus - PROFIBUS DP Master - now complete Page 24 ID 29867.06, Rev. 01 © 2007 Kontron Modular Computers GmbH...
  • Page 29: Writing A Test Application

    PROFIBUS will be automatically initialized when the user program starts. The I/O communica- tion with the slave and reading from and writing to K-Bus modules will start when the program starts. ID 29867.06, Rev. 01 Page 25 © 2007 Kontron Modular Computers GmbH...
  • Page 30: Creating A Visualization

    Name. The first visualization object must be named as PLC_VISU. You can use the visualization object for target visualization and for Web visualization. Compiling the Project The compilation is started by selecting Project and then clicking Rebuild all. Page 26 ID 29867.06, Rev. 01 © 2007 Kontron Modular Computers GmbH...
  • Page 31: Setting Up The Gateway Server For Communication

    PROGRAMMING ASSISTANCE GUIDE Setting Up the Gateway Server for Communication Any time it is necessary to communicate with a ThinkIO-P (e.g to download a project) a gateway server is required to be operating using preselected communication parameters. When needed, the gateway server will be started automatically (if not already running) by the CoDeSys IDE.
  • Page 32 PROGRAMMING ASSISTANCE GUIDE 2. Click New 3. Enter an appropriate name for the connection and then click OK 4. Select a device from the Device list, then click OK Page 28 ID 29867.06, Rev. 01 © 2007 Kontron Modular Computers GmbH...
  • Page 33: Download The Program

    Now the communication parameters are stored along with the project currently loaded in the IDE. Download the Program To download the program select Online and then click Login. ID 29867.06, Rev. 01 Page 29 © 2007 Kontron Modular Computers GmbH...
  • Page 34: Start The Program

    To start the program select Online and then click Run. Transfering an Application to the ThinkIO-P One way to transfer a CoDeSys application program to the ThinkIO-P is to log in to the ThinkIO-P from the host PC and transfer the application using the CoDeSys Development Environment.

Table of Contents