你的哈尼- 编写PLC程序来实现与Modbus设备的通信,包括读取数据。确保在PLC程序中正确设置Modbus通信指令,如MB_Read_Input_Register或MB_Read_Holding_Register,以读取数据。