iv HC900 Hybrid Controller Communications User Guide Revision 4
9/03
Contents
1. INTRODUCTION ................................................................................................... 1
1.1 Modbus/TCP Interface ................................................................................................................... 1
1.2 Modbus RTU RS232/RS485 Communication Ports ...................................................................... 4
2. IEEE 32-BIT FLOATING POINT REGISTER INFORMATION.............................. 7
2.1 IEEE Floating Point Data Format................................................................................................... 7
3. MODBUS DOUBLE REGISTER FORMAT ......................................................... 10
3.1 IEEE Floating Point Formats........................................................................................................ 11
3.2 Unsigned/signed 32-bit Register Formats .................................................................................... 13
4. MODBUS/TCP & MODBUS RTU FUNCTION CODES....................................... 17
4.1 Definition...................................................................................................................................... 17
4.2 Function Code 01 – Read Digital Output Status .......................................................................... 20
4.3 Function Code 02 - Read Digital Input Status.............................................................................. 24
4.4 Function Codes 03- Read Holding (Data) Registers .................................................................... 25
4.5 Function Codes 04 - Read Input Registers ...................................................................................27
4.6 Function Code 05 - Force Single Digital Output.......................................................................... 29
4.7 Function Code 06 - Preset Single Register................................................................................... 30
4.8 Function Code 08 - Loopback Message .......................................................................................31
4.9 Function Codes 16 (10h) - Preset Multiple Registers................................................................... 32
4.10 Function Code 17 (11h) - Report HC900 ID ............................................................................ 33
5. MODBUS RTU EXCEPTION CODES................................................................. 35
5.1 Introduction .................................................................................................................................. 35
6. REGISTER MAP FOR PROCESS AND OPERATION TYPE VARIABLES ....... 37
6.1 Register Map Overview................................................................................................................ 37
6.2 Miscellaneous Register Map ........................................................................................................ 41
6.3 Loop Value Register Map ............................................................................................................ 42
6.4 Example for queries using Function Codes 3, 6, 16..................................................................... 45
6.5 Analog Input Value Register Map - Function Code 03................................................................47
6.6 Analog Input Value Register Map - Function Code 04................................................................48
6.7 Variable Register Map.................................................................................................................. 49
6.8 Time Register Map....................................................................................................................... 50
6.9 Signal Tag Register Map.............................................................................................................. 51