ADS Services

Note

The user data of  an ADS Telegram is maximum 1900 byte.

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 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 is 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 only)

0...4096

ADS services

AdsServerAdsStateB7

Data type (read only)

Meaning

String

Start - the local PLC is running
Stop - 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

positive edge starts the block

TMOUT

for example: t#1000ms

Note

Note for the acyclic data communication, that the establishment of a  TCP/IP connection takes app. 20 - 30 milliseconds. After successful establishment of  the connection, the ADS data is to be read or written. An ADS read of about 1000 Byte takes app. 50 ms. If no data is transferred for 10 seconds, the TCP/IP connection is cut by the BC/BK9000, B/C900.

Register port 100

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

Index group

Index offset (value range)

Meaning

Hi-Word

Low Word

0

0...127

0...255

Registers in the Bus Coupler
High word, table number of the Bus Coupler
Low word, register number of the table

1...64

0...3

1...64

Register of the Bus Terminal
High word, channel number
Low word, register number of the Bus Terminal

Note

Note when reading the register that the time out for the ADS block is set to a time longer than 1 second.

Note

Note when writing to the registers that the password is set (see the documentation for the particular Bus Terminal).

Access control and association between IP and AMS-Net-IDB6

The AMS Net-Id table permits access control to the BC 9000 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. An explicit association of the AMS-Net-ID and the IP address of the node is also made 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 bytes

IP address

4 bytes

Reserve

2 bytes

Reserve

4 bytes

Reserve

4 bytes

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 bytes

1...10

Entry n (1...10)

Data structure, 20 bytes

Note

The first entry must be that for 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.

)B6: as from firmware B6
)B7:  as from firmware B7
)BA : as from firmware BA

See the example