Professional Documents
Culture Documents
TwinCAT IO System Manual
TwinCAT IO System Manual
Table Of Contents
Introduction ......................................................................................3 Configuration of TwinCAT I/O System.......................................................4 2.1. Scan Devices Automatically ............................................................... 4 2.2. Scan Boxes Automatically ................................................................. 6 2.3. Scan Terminals Automatically ............................................................ 8 3. Manual Network Configuration ............................................................. 11 3.1. Add Device Manually ..................................................................... 11 3.2. Add Boxes Manually....................................................................... 13 3.3. Add Terminals Manually ................................................................. 15 4. Active TwinCAT System Configuration.................................................... 18 4.1. Generate Mappings ....................................................................... 18 4.2. Check Configuration ...................................................................... 19 4.3. Activate Configuration ................................................................... 20 5. Testing the TwinCAT I/O System ........................................................... 22 5.1. Free-Run Mode ............................................................................ 22 5.2. Testing Digital Inputs..................................................................... 24 5.3. Testing Analogue Inputs ................................................................. 25 5.4. Testing Digital Outputs .................................................................. 26 5.5. Testing Analogue Outputs ............................................................... 28 1. 2.
Key
Device a master controller for a fieldbus network, usually fitted in the PC Box a slave device connected to the fieldbus network Terminal an I/O terminal block fitted to a bus coupler 1. Numbered statements are actions that the user should perform in TwinCAT
Updated: 19/11/2004
Page 2 of 29
Revision: 1.1
1. Introduction
The TwinCAT System Manager is used to configure: The PC-based communications hardware, e.g. PROFIBUS-DP master controller, Ethernet master controller, etc Devices connected to the communications system, e.g. BK3100, BC9000, etc I/O terminals connected to bus coupler devices This allows all inputs and outputs on the system to be made available for use by a higher-level controller, such as TwinCAT PLC or a custom-written external control program.
Updated: 19/11/2004
Page 3 of 29
Revision: 1.1
Updated: 19/11/2004
Page 4 of 29
Revision: 1.1
Configuring the TwinCAT I/O System System Manager will scan the PC for known devices, and place them under I/O devices. It will also scan the network for any known boxes, and determine the configuration of any known boxes that are found. In the example below, System Manager has found an FC2001 Lightbus card in the PC, with a BK2000 (with 4 I/O terminals fitted) connected to the Lightbus network.
NOTE: automatic scanning does not detect all types of hardware within a PC, e.g. Virtual Ethernet Interface. In this case, the master controller or device must be added manually. Refer to section 3.1 on page 11.
Updated: 19/11/2004
Page 5 of 29
Revision: 1.1
Updated: 19/11/2004
Page 6 of 29
Revision: 1.1
Configuring the TwinCAT I/O System System Manager will scan the Ethernet network and show a list of known boxes that have been found on the network. 3. Select the devices that need to be added to System Manager and click OK
System Manager will add the device(s) selected to the master device. In our example, a BC9000 has been added to Ethernet Master.
Updated: 19/11/2004
Page 7 of 29
Revision: 1.1
Updated: 19/11/2004
Page 8 of 29
Revision: 1.1
Configuring the TwinCAT I/O System To scan the terminals connected to a bus coupler and update the I/O terminal configuration. 4. Right click on the box. (BC9000-22 in the example below.) 5. Select Scan Terminals.
Updated: 19/11/2004
Page 9 of 29
Revision: 1.1
Configuring the TwinCAT I/O System System Manager will re-scan the bus coupler and update the I/O terminal configuration for the selected box.
Updated: 19/11/2004
Page 10 of 29
Revision: 1.1
Updated: 19/11/2004
Page 11 of 29
Revision: 1.1
Configuring the TwinCAT I/O System 3. Select the required device from the list of all currently supported hardware devices in the Insert Device screen. 4. Give the device a name and click OK.
Our example system requires a Virtual Ethernet Interface, and it has been given the name Ethernet Master.
Updated: 19/11/2004
Page 12 of 29
Revision: 1.1
Updated: 19/11/2004
Page 13 of 29
Revision: 1.1
Configuring the TwinCAT I/O System 3. Select the required device from the list of all currently supported hardware devices for the network in the Insert Box screen. 4. Give the box a name and click OK.
For our example system, select the BC9000 and give it a name. System Manager shows that Ethernet Master with one box (BC9000-22) attached to it.
Updated: 19/11/2004
Page 14 of 29
Revision: 1.1
Updated: 19/11/2004
Page 15 of 29
Revision: 1.1
Configuring the TwinCAT I/O System 3. Double click on the type of I/O terminal required (or click once on the + symbol, as shown below) in the Insert Terminal screen.
4. Select the required terminal from the list of available terminals in the category. KL 1002, 2Ch. Input (24V, 3.0ms) is required for our example. 5. Specify the number of terminals of this type that are required. For our example, 2 * KL1002 terminals are required. 6. Give the terminal a name and click OK.
Updated: 19/11/2004
Page 16 of 29
Revision: 1.1
Configuring the TwinCAT I/O System 7. System Manager will add this terminal to the terminal configuration list for BC9000-22.
8. Repeat steps 1 to 6 for each terminal required for the BC9000-22. The fully configured example system is shown below.
Updated: 19/11/2004
Page 17 of 29
Revision: 1.1
Updated: 19/11/2004
Page 18 of 29
Revision: 1.1
TwinCAT may give the warning message shown below. This message appears because the system has not yet been linked to a TwinCAT device that will drive the TwinCAT system. This does not prevent the TwinCAT I/O system from being activated. 1. Click OK to clear the warning message.
Updated: 19/11/2004
Page 19 of 29
Revision: 1.1
TwinCAT will ask for confirmation to activate the configuration. 2. Click OK to continue system activation.
TwinCAT may also display the warning seen during he Check Configuration sequence. 3. Click OK to continue system activation.
Updated: 19/11/2004
Page 20 of 29
Revision: 1.1
Configuring the TwinCAT I/O System TwinCAT will ask for confirmation to restart the TwinCAT system in Run Mode. 4. Click OK to restart the TwinCAT I/O system.
TwinCAT will restart the system in the RUN mode. This can be seen in the bottom right of the screen, where Running will be displayed in white text on the green background.
Updated: 19/11/2004
Page 21 of 29
Revision: 1.1
Updated: 19/11/2004
Page 22 of 29
Revision: 1.1
Configuring the TwinCAT I/O System 4. Click Yes to Activate Free Run mode.
The TwinCAT I/O System will restart in Config Mode with Free Run active. This can be seen in the bottom right hand corner of System Manager where the status window will alternate between Config Mode on blue and Free Run on red.
Updated: 19/11/2004
Page 23 of 29
Revision: 1.1
The Value field will show the current status of the digital input, and the oscilloscope display will show the recent history of the digital input.
Updated: 19/11/2004
Page 24 of 29
Revision: 1.1
Updated: 19/11/2004
Page 25 of 29
Revision: 1.1
TwinCAT System Manager will display the Write Value screen. As digital outputs are boolean, they can only be set to 0 or 1: 6. Click the 1 or 0 buttons to set and reset the digital output.
Updated: 19/11/2004
Page 26 of 29
Revision: 1.1
Configuring the TwinCAT I/O System TwinCAT System Manager will set the digital output value to 1 and display the new output status. The status light on the digital output terminal will also switch on.
Updated: 19/11/2004
Page 27 of 29
Revision: 1.1
TwinCAT System Manager will display the Write Value screen. As digital outputs are boolean, they can only be set to 0 or 1: 6. Enter the new value in the appropriate box.
Updated: 19/11/2004
Page 28 of 29
Revision: 1.1
Configuring the TwinCAT I/O System TwinCAT System Manager will set the analogue output value to the new value and display the new output status. +32767 is the full scale positive value, so 16384 will produce +5V on a KL4032 analogue output terminal.
Updated: 19/11/2004
Page 29 of 29
Revision: 1.1