
PET-70216/ET-7026 User Manual, version 1.0.1 beta1, Page: 74
4.2.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.
Read Coils (Output) Status
Force Single Coil (Output)
Force Multiple Coils (Outputs)
Preset multiple Registers
4.2.3. Data Field
The data field consists of messages sent between master and slave. The messages
contain additional information about the action to be taken by the slave or any
information requested by the slave. When the slave does not require this information
the data field can be nonexistent.
4.2.4. Error Check
The error check performed in Modbus/RTU is Cyclic Redundancy Check (CRC). Both
the transmitting device and the receiver compute CRC. Two bytes are used for this
purpose and generally one bit errors are detected by this method.
Kommentare zu diesen Handbüchern