Modbustcp; Modbustcp Protocol; Fig. 48 Modbustcp Protocol - Beckhoff BC9000 Documentation

Bus terminal controller for ethernet
Table of Contents

Advertisement

Fieldbus system
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
64
Version: 4.0.0
BC9000 and BC9100

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Bc9100

Table of Contents