ADS services

ADS services 1:

User data of an ADS telegram

The maximum size of the user data in an ADS telegram is 1900 bytes.

Process data port 300

The fieldbus data is accessed via ADS port number 300. The data is monitored by a watchdog. If no further telegram arrives within 1000 ms the outputs will be switched to the safe state.

Index group

Meaning

Index offset (value range)

0xF020

Inputs

0...511

0xF030

Outputs

0...511

Local process image port 800 (BC9000, C900 only)

Data can be read from and written to the local process image. If it is necessary for outputs to be written, it is important to ensure that they are not used by the local PLC, because the local controller will overwrite these values. The data are not associated with a watchdog, and therefore must not be used for outputs that would have to be switched off in the event of a fault.

Index group

Meaning

Index offset (value range)

0xF020

Inputs

0...511

0xF030

Outputs

0...511

0x4020

Flags (BC 9000, C900 only)

0...4096

ADS services

AdsServerAdsStateB7

Data type (read only)

Meaning

String

Start - the local PLC is running
Start - the local PLC is stopped

AdsServerDeviceStateB7

Data type (read only)

Meaning

INT

0 - Start - the local PLC is running
1 - Stop - the local PLC is stopped

AdsServerTypeB7

Data type (read only)

Meaning

String

Coupler_PLC

ADSWriteControlBA

Data type (write only)

Meaning

NetID

Net ID of the BC9000,C900

Port

800

ADSSTATE

5 - RUN / 6 - STOP

DEVSTATE

0

LEN

0

SRCADDR

0

WRITE

rising edge starts the block

TMOUT

example: t#1000 ms

ADS services 2:

Acyclic data communication

With acyclic data communication it is important to note that about 20 to 30 ms are required in order to establish a TCP/IP connection. Following the successful establishment of a connection the ADS data are sent or read. An ADS read of 1000 bytes takes about 50 ms. If no data are transmitted for 10 seconds, the TCP/IP connection is disconnected from the BC/BK9000, B/C900.

Register port 100

The ADS port number in the BK/BC9000, B/C900 for register communication is fixed, being set at 100.

Index group

Index offset (value range)

Meaning

Hi-Word

Lo-Word

0

0...127

0...255

Registers in the Bus Coupler
Hi-Word, table number of the Bus Coupler
Lo-Word, register number of the table

1...64

0...3

1...64

Register of the Bus Terminals
Hi-Word, channel number
Lo-Word, register number of the Bus Terminal

ADS services 3:

Timeout of the ADS function block

When reading the register, the time out of the ADS block has to be set to a time longer than 1 second.

ADS services 4:

Setting the password

When writing to the registers, the password has to be set (see the documentation for the particular Bus Terminal).

Access control and IP - AMS-Net ID assignmentB6

The AMS Net-Id table permits access control to the BC 9000, C900 via AMS. As soon as this table has entries, only those AMS devices that have been entered will be able to access the BC 9000. 
Furthermore, an assignment of the AMS-Net ID to the IP address of the node is explicitly done here. 
The AMS Net-Id table can be filled with ADS write commands:
a maximum of 10 entries is possible.

The structure

AMS Net ID

Size

AMS Net ID

6 byte

IP address

4 byte

Reserve

2 byte

Reserve

4 byte

Reserve

4 byte

Access takes place via port number: 10,000

Index group: 700

Index Offset (Write)

Comment

Data

0

Add an entry

Data structure, 20 bytes

1

Delete an entry

-

2

Delete all entries

-

10

Save the table in Flash memory

-

Index Offset (Read)

Comment

Data

0

Number of entries

2 byte

1..10

Entry n (1...10)

Data structure, 20 bytes

ADS services 5:

First entry

The first entry must be the device that his writing into the table, because the settings have immediate effect. Make sure that all the settings are correct. The table can also be deleted if the end terminal only is inserted, and the DIP switches 1 to 7 are set to ON.

* as from firmware B6
** as from firmware B7
)² as from firmware BA

See the example.