Fieldbus system
BC9000 and BC910064 Version: 4.0.0
sample programs for the connection of BC9000 to a TwinCAT PC
Sample program in ST Master (https://infosys.beckhoff.com/content/1033/bc9000/Resources/
zip/4351420939.zip)
Sample program in ST Slave (https://infosys.beckhoff.com/content/1033/bc9000/Resources/
pro/4351423115.pro)
7.4.3.3.4 Sample: Changing the Ethernet Coupler settings via ADS
Requirement
For this example a BC9000 is required. Please note two local sockets are required for reading or writing!
Required library:
AdsBC.lb6
TcPlcUlititiesBC.lb6
PlcSystemBC.lb6
PlcHelperBC.lb6
TcUtilitiesBC9000.lb6
Description
The function block enables setting of various parameters (see sample [}î46]). A more detailed description of
the function block can be found in the Library chapter.
Example:
Download sample program in ST (https://infosys.beckhoff.com/content/1033/bc9000/Resources/
pr6/4351425291.pr6)
7.5 ModbusTCP
7.5.1 ModbusTCP Protocol
The Ethernet protocol is addressed by means of the MAC-ID. The user does not normally need to be
concerned about this address. The IP number has a length of 4 bytes, and must be parameterized by the
user on the Bus Coupler and in the application. In ModbusTCP, the TCP port is set to 502. The UNIT can be
freely selected under ModbusTCP, and does not have to be configured by the user.
Fig.î48: ModbusTCP Protocol