Default Slave Address Mode

<< Click to Display Table of Contents >>

 

Default Slave Address Mode

This Driver can assume, automatically, a default and global value for the N1 or B1 parameters of all Tags from an application, that is, all Tags from an application can be, at a certain time, completely dedicated to a single Slave address. To do so, select the Use Default Slave Address option on the Hydran tab on the configuration window and configure this address in the Default Slave Address option. The value of the Use Default Slave Address option can be changed at any time at run time, both in Offline mode and in Online mode.

 

Offline or without Communication

In Offline, mode, use a writing to a Block Tag to define the current Slave, according to the next table.

Parameters in Offline mode

Parameter

Block Tag

Use Default Slave Address

Element 1: Hydran.UseDefaultSlave Address and Element 2: 0 (zero, False) or 1 (one, True)

Default Slave Address

Element 1: Hydran.DefaultSlaveAddress and Element 1: Address of a Slave, between 1 (one) and 254

 

All configurations in Offline mode at run time use a writing to a Block Tag with the B1 parameter equal to -1 (minus one), the B2 parameter equal to 0 (zero), the B3 parameter equal to 0 (zero), and the B4 parameter equal to 3 (three).

 

Online or with Communication

In Online mode, use a writing to a PLC Tag to define the current Slave, according to the next table.

Parameters in Online mode

Parameter

PLC Tag

Use Default Slave Address

N1: 9001, N2: 9001, N3: 9001, and N4: 9001. Possible values for writing are 0 (zero, False) or 1 (one, True)

Default Slave Address

N1: 9002, N2: 9002, N3: 9002, and N4: 9002. Possible value for writing is the address of a Slave, between 1 (one) and 254

Was this page useful?