Kaiyi — 11.4.3.3 Allocation of the Mapping Addresses for the Modules

Chapter 11 DeviceNet Remote I/O Module AHRTU-DNET The mapping address allocation for each module is independent and adding or deleting one module will not affect the mapping addresses of other module. By doing so, the work load of modifying the program can be reduced. Since the control over each module is comparatively independent in one program, even if one or more modules are added or deleted, other module can still run normally and no change is needed to make in the main program as long as the mapping range of the original module is not changed The range of mapping address of each module can be allocated automatically by the software or allocated manually by users.

Automatic allocation is easy and quick; the lengths of the input and output mapping addresses are the shortest and the rate of data exchange on the bus is the highest. While, manual allocation can reserve the mapping addresses of each module, adding or deleting the mapping parameters of the module will not influence the mapping addresses of other module. The lengths of the input and output mapping addresses of AHRTU-DNET-5A will be a bit longer and the data exchange rate on the bus will be a bit lower due to the reserved mapping addresses.

 Automatic allocation of the addresses Click the “Auto-Addr” button on the interface, the software will automatically allocate the parameter mapping addresses of the module according to the numbers from small to large of the rack and the slot where the modules are.

As above, AH06XA-5A is set to the present value of 4 channels and 8 words input and the present value of 2 channels and 4 words output; AH04DA-5A is of 4 channels and 8 words output by default and is configured with 2 parameters “Mapping to the device” (2 words input and 2 words output); 16AP occupies 1 word of input present value and 1 word of output present value and every word corresponds to one D in the mapping area of the master (That is to map to PLC). Suppose that the input and output mapping starting addresses which the master allocates to AHRTU-DNET-5A are D1005 and D2005 respectively. The mapping addresses that the software automatically allocates to each module are like this.

For example, D2005 and D1005 are the control word and status word of AHRTU-DNET-5A respectively; then the corresponding input and output mapping addresses for AH06XA-5A are D1006~D1013 and D2006~D2009 respectively; the corresponding input and output mapping addresses for AH04DA-5A are D1014~D1015 and D2010~D2019 respectively; the corresponding input and output mapping addresses for 16AP are D1016 and D2020 respectively. The input and output mapping addresses of AHRTU-DNET-5A are D1005~D1016 and D2005~D2020 respectively.  Manual allocation of the addresses Manual allocation of the addresses means to set the input and output mapping starting addresses of each module by manual.

Suppose one module currently needs to use 4 words of input data and 4 words of output data, but it may use 8 words of input data and 8 words of output data in the future. Set that the input and output mapping starting addresses of the module and the last input and output mapping addresses of the previous neighboring module are inconsecutive so that the mapping relations between the original module parameters and the D registers will keep unchanged. While, by means of automatic allocation of addresses, the mapping relations between the original module parameters and D registers will be changed if the module needs to add some parameters.

The input and output mapping starting addresses or the offsets of the starting addresses of each module can be set and the input and output mapping starting addresses of different modules can not be repeated, which the software can count automatically. The mapping addresses of a single module are consecutive. Add AHRTU-DNET-5A to Scan List on the Scanner Module Configuration interface before the I/O module parameters of AHRTU-DNET-5A has not been configured. Suppose that the input and output mapping starting addresses that the master allocates to AHRTU-DNET-5A are D1005 and D2005 respectively.

11-55 Auto-allocation Input Output AHRTU-DNET-5A D1005 status word D2005 control word AH06XA-5A D1006~D1013 D2006~D2009 AH04DA-5A D1014~D1015 D2010~D2019 16AP D1016 D2020