|
The M550 and M560 have the facility to re-order their Modbus
3X registers to suit an existing Modbus network.
The integrated register re-ordering function ('Registers' button)
in the MultiView Program
provides an easy method of achieving this.
If
MultiView isn't going to be used, Modbus function code 42h (66)
can be used to request this data and Modbus function code 41h (65)
can be used to send a string of data to set the order of the registers.
The order will automatically be saved in EEPROM.
UNLIKE THE 3X AND 4X REGISTERS, THESE DATA ARE WORD WIDE INTEGER.
It is important to remember that each register in the packet's
data field contains two references to the registers to be re-ordered.
A sample read packet will look like this:-
[Node][42][start address(always 0000h)][No. of Double Registers
Required][CRC(2 bytes)]
e.g. To read 42
Modbus registers in node 23h a request to send 21 (15h) registers is made:-
[23h][42h][0000h][0015h][CRC(2 bytes)]
A sample write packet will look like this:-
[Node][41][start address(always 0000h)][No. of Double Registers][Data
length in bytes] [REGISTERS][CRC(2 bytes)]
e.g. To set the 42 Modbus registers to their default order in node
23h:-
[23h][41h][0000h][0015h][2Ah][0102h][0304h][0506h][0708h][090Ah][0B0Ch][0D0Eh]
[0F10h][1112h][1314h][1516h][1718h][191Ah][1B1Ch][1D1Eh][1F20h][2122h]
[2324h][2526h][2728h][292A][CRC(2 bytes)]
|