Modbus RTU is a serial communication protocol used to connect industrial electronic devices. It sends data in a compact binary format over serial lines like RS-485.
Click to reveal answer
beginner
What are the main components of a Modbus RTU message frame?
A Modbus RTU frame includes: a device address, function code, data, and a CRC checksum to check errors.
Click to reveal answer
beginner
Why is CRC used in Modbus RTU communication?
CRC (Cyclic Redundancy Check) helps detect errors in the message during transmission to ensure data integrity.
Click to reveal answer
beginner
How does a Modbus RTU master device communicate with slaves?
The master sends a request to a slave using its address. The slave responds with the requested data or an error message.
Click to reveal answer
beginner
What serial settings are important for Modbus RTU communication?
Key settings include baud rate (speed), parity (error checking), data bits, and stop bits. Both devices must match these settings.
Click to reveal answer
What does RTU stand for in Modbus RTU?
ARemote Transfer Utility
BReal-Time Unit
CRemote Terminal Unit
DReliable Transmission Unit
✗ Incorrect
RTU means Remote Terminal Unit, which refers to the device type in Modbus RTU communication.
Which layer does Modbus RTU operate on?
AApplication layer
BPhysical layer
CNetwork layer
DData link layer
✗ Incorrect
Modbus RTU works at the application layer, defining how data is formatted and exchanged.
What is the purpose of the device address in Modbus RTU?
ATo identify the slave device
BTo set baud rate
CTo check message errors
DTo identify the master device
✗ Incorrect
The device address identifies which slave device should respond to the master's request.
Which serial communication parameter must match on both Modbus RTU devices?
AIP address
BBaud rate
CMAC address
DPort number
✗ Incorrect
Both devices must use the same baud rate for successful serial communication.
What happens if CRC check fails in a Modbus RTU message?
AMessage is accepted
BMessage is encrypted
CMessage is resent automatically
DMessage is ignored or error reported
✗ Incorrect
If CRC fails, the message is considered corrupted and ignored or an error is reported.
Explain how a Modbus RTU master communicates with slave devices.
Think about the request-response pattern and addressing.
You got /5 concepts.
Describe the importance of serial communication settings in Modbus RTU.
Consider what happens if settings differ between devices.
You got /5 concepts.
Practice
(1/5)
1. What is the main purpose of Modbus RTU communication in PLC programming?
easy
A. To exchange data between devices over serial communication
B. To create graphical user interfaces
C. To compile PLC programs
D. To store data in cloud servers
Solution
Step 1: Understand Modbus RTU basics
Modbus RTU is a protocol used for serial communication between devices like PLCs and sensors.
Step 2: Identify the main function
Its main function is to exchange data by sending requests and responses over serial lines.
Final Answer:
To exchange data between devices over serial communication -> Option A
Quick Check:
Modbus RTU = Data exchange over serial [OK]
Hint: Modbus RTU is about device data exchange via serial lines [OK]
Common Mistakes:
Confusing Modbus RTU with programming languages
Thinking it creates user interfaces
Assuming it stores data remotely
2. Which of the following is the correct format for a Modbus RTU request frame?
easy
A. CRC + Device Address + Function Code + Data
B. Device Address + Function Code + Data + CRC
C. Data + Device Address + Function Code + CRC
D. Function Code + Device Address + Data + CRC
Solution
Step 1: Recall Modbus RTU frame structure
The request frame starts with the device address, followed by the function code, then data, and ends with CRC for error checking.
Step 2: Match the correct sequence
Device Address + Function Code + Data + CRC matches this exact order: Device Address + Function Code + Data + CRC.
Final Answer:
Device Address + Function Code + Data + CRC -> Option B
Quick Check:
Frame order = Address, Function, Data, CRC [OK]
Hint: Remember: Address first, then function, data, and CRC last [OK]
Common Mistakes:
Mixing up the order of function code and device address
Placing CRC at the start instead of the end
Confusing data position in the frame
3. Given this Modbus RTU request frame in hex: 01 03 00 0A 00 02 C5 CD, what does the function code 03 represent?
medium
A. Write Multiple Registers
B. Write Single Coil
C. Read Input Status
D. Read Holding Registers
Solution
Step 1: Identify the function code in the frame
The second byte in the frame is 03, which is the function code.
Step 2: Recall Modbus function codes
Function code 03 is used to read holding registers in Modbus RTU communication.
Final Answer:
Read Holding Registers -> Option D
Quick Check:
Function code 03 = Read Holding Registers [OK]
Hint: Function code 03 always reads holding registers [OK]
Common Mistakes:
Confusing function code 03 with write operations
Mixing read input status (code 02) with 03
Ignoring the function code position in the frame
4. You wrote a Modbus RTU request but the PLC does not respond. Which of these is the most likely error in your request frame?
medium
A. Using ASCII instead of RTU mode
B. Sending data without device address
C. Incorrect CRC value
D. Using function code 99
Solution
Step 1: Check common communication errors
Incorrect CRC causes the PLC to reject the frame because it detects data corruption.
Step 2: Evaluate other options
Using ASCII mode or missing device address would cause errors, but CRC error is the most common cause of no response. Function code 99 is invalid but usually triggers an error response, not silence.
Final Answer:
Incorrect CRC value -> Option C
Quick Check:
Bad CRC = No response from PLC [OK]
Hint: Always verify CRC to avoid silent communication failures [OK]
Common Mistakes:
Ignoring CRC errors
Assuming wrong function code causes no response
Confusing ASCII and RTU modes
5. You want to read 4 consecutive holding registers starting at address 100 from a device with address 5 using Modbus RTU. Which request frame (in hex) correctly represents this?
hard
A. 05 03 00 64 00 04 45 C9
B. 05 04 00 64 00 04 45 C9
C. 01 03 00 64 00 04 45 C9
D. 05 03 00 65 00 04 45 C9
Solution
Step 1: Understand the frame components
Device address is 05, function code for reading holding registers is 03, starting address 100 in hex is 00 64, number of registers to read is 00 04, followed by CRC.