PET-7H16M Series User Manual, version 1.0.1 P.80
A.1.
Address
The first byte of information in the message structure of Modbus is the receiver’s address. The
valid addresses are in the range of 0 to 247. Addresses from 1 to 247 are given to individual
Modbus devices and 0 is used for broadcast.
Reference
Description
0xxxx
Read/Write Discrete Outputs or Coils. A 0x reference address is used
to device output data to a digital output channel.
1xxxx
Read Discrete Inputs. The ON/OFF status of a 1x reference address is
controlled by the corresponding digital input channel.
3xxxx
Read Input Registers. A reference register contains a 16-bit number
received from an external source --- e.g. an analog signal.
4xxxx
Read/Write Output or Holding Registers. A 4x register is used to store
16-bits of numerical dada (binary or decimal), or to send the data from
the CPU to an output channel.
A.2.
Function Codes
The second byte in the frame structure is the function code. The function code describes what the
slave is required to do. Valid function codes are between 1 and 255. The slave uses the same
function code as the request to answer it. Only when error occurs in the system, the highest bit of
the function code will be made ‘1’. Hence the master will know if the message has been
transmitted correctly or not.
Code
Function
Reference
01 (01H)
Read Coils (Output) Status
0xxxx
02 (02H)
Read Input Status
1xxxx
03 (03H)
Read Holding Registers
4xxxx
04 (04H)
Read Input Registers
3xxxx
05 (05H)
Force Single Coil (Output)
0xxxx
06 (06H)
Preset Single Register
4xxxx
15 (0FH)
Force Multiple Coils (Outputs)
0xxxx
16 (10H)
Preset multiple Registers
4xxxx
Содержание ET-7H16M Series
Страница 1: ...ET 7H16M Series User Manual Version 1 0 1 January 2019 Written by Sean Hsu Edited by Anna Huang...
Страница 20: ...1 5 Block Diagram PET 7H16M functions are illustrated in the block diagram shown here...
Страница 32: ...PET 7H16M Series User Manual version 1 0 1 P 32...
Страница 34: ...PET 7H16M Series User Manual version 1 0 1 P 34...