Connect to a BC9191 via ADS

To configure the TC3 IoT Data Agent to access a BC9191 controller via ADS, the symbols must be configured manually in the TC3 IoT Data Agent configurator, as the BC9191 controller does not provide symbol information via ADS. The target browser mechanism cannot be used. The IndexGroup/IndexOffset information must be configured for each symbol to be configured for IoT communication.

For input/output variables, this information can be found in the TwinCAT System Manager in the "ADS Info" section.

Connect to a BC9191 via ADS 1:

In the case of internal variables, these variables can be configured for ADS access in several ways. Consult the BC9191 documentation for more information.

The following PLC code snippet provides an example:

VAR_GLOBAL
    iCounter1 AT%MB100 : INT;
    iCounter2 AT%MB200 : INT;
    iCounter3 AT%IB100 : INT;
    iCounter4 AT%IB200 : INT;
END_VAR

The corresponding IndexGroup/IndexOffset combinations for these two variables are:

Variable

IndexGroup

IndexOffset

iCounter1

0x4020 (16416)

0x64 (100)

iCounter2

0x4020 (16416)

0xC8 (200)

iCounter3

0xF020 (61472)

0x64 (100)

iCounter4

0xF020 (61472)

0xC8 (200)

The BC9191 can be added to the TC3 IoT Data Agent configuration as a regular ADS gate. The ADS port must be set to 800, the IoMode is then automatically set to “direct”.

As described, the symbols must be added manually using the corresponding IndexGroup/IndexOffset information. An individual name of your choice can be specified as the URN.

After mapping these Subscriber symbols to corresponding Publisher symbols, e.g. on an MQTT gate, the variables are shown on the Publisher’s side.

Connect to a BC9191 via ADS 2: