ADS services

Local Process Image PLC Task 1 Port 800/801

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...2047

0xF021

Bit inputs

0...16376

0xF030

Outputs

0...2047

0xF031

Bit outputs

0...16376

0x4020

Flags

0...4095

0x4021

Flag bit

0...32760

ADS services

AdsServerAdsState

Data type (read only)

Meaning

String

Start - the local PLC is running
Stop - the local PLC is in stop mode

AdsServerDeviceState

Data type (read only)

Meaning

INT

0 - Start - the local PLC is running
1 - Stop - the local PLC is in stop mode

AdsServerType

Data type (read only)

Meaning

String

BX PLC Server

ADSWriteControl

Data type (write only)

Meaning

NetID

Net ID of the Ethernet Controller*

Port

800

ADSSTATE

5 - RUN / 6 - STOP

DEVSTATE

0

LEN

0

SRCADDR

0

WRITE

positive edge starts the function block

TMOUT

e.g.: t#1000 ms

* BC9050, BC9020, BC9120, BC9191, BX9000

Register Access Port 100

On the Bus Terminal Controllers of the BX series, and on the BCxx50/xx20 and BC9191 , the ADS port number for register communication is fixed at 100.

Index group

Index offset (value range)

Meaning

Hi-Word

Low Word

0  [READ ONLY]

0...127

0...255

Bus Coupler register
High-word table number of the Bus Coupler
Low-word register number of the table

1...255

0...3

1...255

Bus Terminal registers
High-word channel number
Low-word register number of the Bus Terminal

ADS services 1:

Timeout of the ADS function block

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

ADS services 2:

Setting the password

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