Example communication from BC9000 to a TwinCAT PC system

In some applications polling operation (master-slave principle) is not wanted. The ADS function blocks of the BC9000 enable both cross communication (from BC9000 to BC9000) and communication to the higher-level TwinCAT PC system. This means that the BC9000 application can decide when data are sent to the higher-level system. Any fault information, for example, is transferred immediately to the TwinCAT PC.

Cross communication from one PC to two BC9000s

Requirement

TwinCAT 2.9 Build 1025
The IP address matches the AMS Net ID plus ".1.1"

An >ipconfig< command issued in a DOS window can be used to find out the IP address of your PC.

Command >ipconfig< in the DOS window

The AMS Net ID is displayed under Properties/AMS router.

Display of the AMS Net ID

If the AMS Net ID does not match the TCP/IP address, the link can be entered in the routing table (table 2).

Example for AMS Net ID OK

AMS Net ID: 172.16.100.10.1.1
TC/IP: 172.16.100.10

Required library: AdsBC.lb6

sample programs for the connection of BC9000 to a TwinCAT PC

Sample program in ST Master (sample program)

Sample program in ST Slave (sample program)

bc9000_ads_mastertc.zip
tc_ads_slave.pro