You are on page 1of 4

BECKHOFF

Application Notes
www.beckhoffautomation.com

Setting Up Communications Between TwinCAT


System Manager and a BK9000 Bus Coupler

TC-AppNote-005
1.0
31 August 2007

For additional documentation,


please visit
www.beckhoffautomation.com
For further assistance, please
contact Beckhoff USA support
at supportUSA@beckhoff.com

This application note describes step by step how to set up a BK9000


and get it communicating for the first time. This is meant as a "Quick
Start" guide and more details from the BK9000 manual or TwinCAT
System Manager documentation may be helpful when performing these
steps.

Beckhoff Automation
12150 Nicollet Avenue South
Burnsville, MN 55337
Phone: + 1 952 / 890 0000
Fax: + 1 952 / 890 2888
beckhoff.usa@beckhoff.com

Setting Up Communications Between TwinCAT System Manager and a BK9000 Bus Coupler

Overview
Supporting Documents

Documentation for BK9000 and BK9100


ftp://ftp.beckhoff.com/Document/BusTermi/BCoupler/BK9000e.chm
Documentation for BC9000 and BC9100
ftp://ftp.beckhoff.com/Document/BusTermi/BCoupler/BC9000e.chm

Key Concepts

1.

Keep things simple the first time. Use a static IP address and a good crossover
cable connected to the BK9000. Many problems with BK/BC9000 controllers have
simple solutions. It is more difficult to detect these problems in complicated systems.

2.

The cycle time for the IO task that is linked to the BK9000 hardware should not be
set below 50 ms. If the missed count variable in the BK9000 inputs is increasing, it is
because this cycle time is set too low.

3.

Cabling and network configuration can lead to frustrating problems. When using a
hub or switch, be sure to connect it properly.

4.

When using a PC that has two network cards, make sure the TwinCAT router's AMS
Net ID matches the IP address of the card conected to the BK9000.

16 April 2008

Beckhoff Application Notes

Setting Up Communications Between TwinCAT System Manager and a BK9000 Bus Coupler

Procedure
Please read "Documentation for BK9000 and BK9100" before starting this procedure
1.

Please read "Documentation for BK9000 and BK9100" before starting this procedure

2.

For ARP, see BC-AppNote-005, "Beckhoff BC9000 IP Address change Using an


ARP Command"

3.

Set the 4th byte of the IP address in the BK9000 with the DIP switches (switches 1
through 8, binary).

4.

Switch 9, which designates the class of network (on = class C; off = class B)

5.

Switch 10, which designates DHCP or Static IP mode (off = static mode). Typically
this DIP is left off.

6.

Make sure to re-power the BK9000 after making any changes to the DIP switches.

7.

Set the PC's IP address so that the first three bytes are the same as the first three
bytes of the BK9000's address. The 4th byte needs to be different than that of the
BK9000.

8.

When using KS2000 to set the IP address, disconnect the KS2000 interface cable.

9.

Connect an Ethernet crossover cable between the PC & the BK9000.

10. Open System Manager (go to TwinCAT icon on lower right of screen and choose
'system manager')
11. Right click on 'I/O Devices' and choose 'Append Device'
12. Choose 'Ethernet / Virtual Ethernet Interface'. Click 'OK'.
13. Right click 'Device 1 (Ethernet)' and choose 'Append Box'.
14. Choose 'BK9000' and click 'OK'.
15. Right click on 'Box 1 (BK9000)' and choose 'Append Terminal'.
16. Choose the terminal being used and click 'ok'.
17. Add any other terminals being used by repeating steps 14 & 15.
18. Expand the terminal trees until the inputs / outputs appear under each terminal
channel.
19. Right click on 'Additional Tasks' under 'System- Configuration'. Choose 'Append
Task'. Click 'OK'.
20. Highlight the task that was just created. Check the 'Auto-Start' box for that task.
16 April 2008

Beckhoff Application Notes

Setting Up Communications Between TwinCAT System Manager and a BK9000 Bus Coupler

21. Expand the task. Insert input and output variables by right clicking on 'inputs' and
'outputs'.
22. For digital inputs and outputs, just add bit variables.
23. Double-click on one of the variables that was just created. Link it to a corresponding
input or output of the hardware.
24. Select 'Box 1 (BK9000)'. Under the 'IP Address' tab set the IP address to the IP
address the BK9000 was set to in steps (1) & (2) above.
25. Save to registry by clicking on the blue cube icon to the right of the check mark icon.
26. Click 'YES' to 'Generate Mapping', and 'OK' to 'Save Configuration in Registry'.
27. Start the TwinCAT system by clicking on the green TwinCAT icon to the right of the
'save registry' icon.
28. The TwinCAT icon on the lower right of the screen will be green when the system is
running and red when it is not.
29. If the system was already running during step 25 above, it would have automatically
asked to restart TwinCAT after saving to registry.
30. Open an MS-Dos prompt window and type: 'Ping xxx.xxx.xxx.xxx', where the 'xxx'
character string is the IP address set for the BK9000 in steps 1 & 2 above.
31. Open an MS-Dos prompt window and type: 'Ping xxx.xxx.xxx.xxx', where the 'xxx'
character string is the IP address set for the BK9000 in steps 1 & 2 above.
32. Click on a digital output or a variable linked to one of the digital outputs.
33. Click the 'Force' button under the 'Online' tab. Enter '1', and click ok.
34. The character in the 'Value' box should change from 0 to 1 and should be red. The
LED on the bus terminal that contains the forced output should turn on.
This completes the process of setting up a working Ethernet field bus system.

16 April 2008

Beckhoff Application Notes