M
ODBUS
TCP C
ONFIGURATION
Modbus TCP protocol
ADVANCED MICRO CONTROLS INC.
72
Supported Modbus Exceptions
Table R4.2 Supported Modbus Exceptions
Multi-Word Format
The Modbus protocol uses 16 bit registers, which limits the range of values from -32,768 to 32,767 or 0 to
65,535. Many parameters and data values from the NR60E2 exceed this range. These parameters are transmitted
as 32-bit values in two separate registers with little endian format. The table below shows how values are split.
Table R4.3 Multi-Word Format Examples
Output Data Format
Table R4.4 shows the correct format for the Network Output Registers that configure the NR60E2. On power
up, the NR60E2 writes the current configuration to these registers. The current configuration can be retrieved
by reading these words. The configuration can be changed by writing to these words. Presetting the position
or saving the configuration to flash memory requires state changes on bits in the Command Word. All other
data is acted on as soon as it is accepted. (Invalid data values are rejected by the NR60E2.)
Table R4.4 Output Registers Data Format
Code
Name
Description
01
Illegal function
The NR60E2 does not support the function code in the query
02
Illegal data address
The data address received in the query is outside the initialized memory area
03
Illegal data value
The parameter data in the request is outside it’s valid range.
Value
First Register
Second Register
12
(0x0000 000C)
12
(0x000C)
0
(0x0000)
1,234,567
(0x0012 D687)
54,919
(0xD687)
18
(0x0012)
Register
Description
Example
1024
Command Word
See Description
below
1025
Preset Value:
The value that you want the position to become when you issue
this command. The Preset Value can be any number between 0 and the
maximum count of the encoder. The values on the right show the register
values in hexadecimal if the Preset Value is 704,303 (0x 000A BF2F)
0xBF2F
1026
0x000A
1027
Configuration Word
See Description
Below
1028
Counts per Turn:
Sets the number of counts generated over a single turn if
the Scaling Function Control parameter equals “1”. This value requires
two registers and ranges from 2 to 65,536. A value of 39,370 (16#99CA)
is shown to the right.)
0x99CA
1029
0x0000
1030
Velocity Format:
Format of the velocity data. 0x1F04 (7,940) for pulses/sec-
ond, 0x1F05 (7,941) for pulses/millisecond, 0x1F07 (7,943) for pulses/
minute or 0x1F0F (7,951) for revolutions/minute. The value of “1F04” to
the right would set the unit of measure to pulses/second.
0x1F04
1031
Total Measurement Range:
Sets the number of counts before the position
value returns to zero. If this parameter is left at its default value of zero,
the roll over position is determined by the
Measuring Units per Span
parameter and the number of turns the NR60E2 can encode. The Total
Measurement Range can be any number between 0 and the maximum
count of the encoder. The values on the right show the register values in
hexadecimal if the Total Measurement Range is 8,073,859 (0x 007B 3283)
0x3283
1032
0x007B
Содержание NR60E2
Страница 1: ...MICRO CONTROLS INC ADVANCED U s e r M anual E2 Technology E2 Technology Manual 940 0D161...
Страница 6: ...TABLE OF CONTENTS NR60E2 User Manual ADVANCED MICRO CONTROLS INC 6 Notes...
Страница 20: ...NR60 SPECIFICATIONS NR60E2 User Manual ADVANCED MICRO CONTROLS INC 20 Notes...
Страница 44: ...PROTOCOL SPECIFIC INFORMATION NR60E2 User Manual ADVANCED MICRO CONTROLS INC 44 Notes...
Страница 52: ...IMPLICIT COMMUNICATIONS WITH AN EDS EtherNet IP Protocol ADVANCED MICRO CONTROLS INC 52 Notes...
Страница 58: ...IMPLICIT COMMUNICATIONS WITHOUT EDS EtherNet IP Protocol ADVANCED MICRO CONTROLS INC 58 Notes...
Страница 70: ...CIP POSITION SENSOR OBJECT EtherNet IP Protocol ADVANCED MICRO CONTROLS INC 70 Notes...
Страница 90: ...PROFINET CYCLIC DATA FORMATS PROFINET Protocol ADVANCED MICRO CONTROLS INC 90 Notes...
Страница 98: ...LEADERS IN ADVANCED CONTROL PRODUCTS ADVANCED MICRO CONTROLS INC...