70
WiNG-MGR v2 User Guide
800.518.1519
4
4.1.1.3 Data Field
The data field of the request is a variable length depending on the function. The data fields for
the WiNG-MGR are 16-bit registers, transmitted high order byte first (big-endian)
4.1.1.4 Error Check (Checksum) Field
The checksum field lets the receiving device determine if the packet has transmission errors.
The WiNG-MGR’s RTU mode uses a 16-bit cyclic redundancy check (CRC-16).
4.1.2 Exception Responses
If a Modbus master sends an invalid command to the WiNG-MGR or attempts to read an
invalid register, an exception response is generated. The response packet will have the high
order bit of the function code set to one. The data field of the exception response contains the
exception error code.
4.2.
Packet Communications for the WiNG-MGR
This section outlines the registers with the name and a brief description of each.
4.2.1 Function 03: Read Output Registers
To read the WiNG-MGR’s parameter values, the master must send a Read Output Registers
request packet.
The Read Output Registers request packet specifies a start register and the number of registers
to read. The start register is numbered from zero (40001 = zero, 40002 = one, etc.).
Code
Name
Description
01
Illegal Function
The function code is not supported
02
Illegal Data Address
Attempt to access an invalid address
03
Illegal Data Value
Attempt to set a variable to an invalid value
Table 4.1
Exception Codes
Read Registers Request Packet
Read Registers Response Packet
Unit ID (1 byte)
Unit ID (1 byte)
03 (Function code) (1 byte)
03 (Function code) (1 byte)
Start Register (2 bytes)
Byte count (1 byte)
# of registers to read (2 bytes)
First register (2 bytes)
Crc Checksum (2 bytes)
Second register (2 bytes)
…
Crc Checksum (2 bytes)
Table 4.2
Read Output Registers Packet Structure
Содержание WiNG-MGR v2
Страница 4: ...4 WiNG MGR v2 User Guide 800 518 1519 ...
Страница 14: ...14 WiNG MGR v2 User Guide 800 518 1519 1 System Overview ...
Страница 74: ...74 WiNG MGR v2 User Guide 800 518 1519 5 WiNG RXT ...
Страница 78: ...78 WiNG MGR v2 User Guide 800 518 1519 ...
Страница 82: ...82 WiNG MGR v2 User Guide 800 518 1519 ...
Страница 86: ...86 WiNG MGR v2 User Guide 800 518 1519 C Alternate Channel Pair Communications ...
Страница 90: ...90 WiNG MGR v2 User Guide 800 518 1519 D Troubleshooting ...
Страница 94: ...94 WiNG MGR v2 User Guide 800 518 1519 E Technical Specifications ...