Forum Home › Forums › Communicating with Devices › Modbus › Modbus TCP No sending command for write new value to slave device
- This topic has 13 replies, 2 voices, and was last updated 2 weeks, 1 day ago by Mikhail.
-
AuthorPosts
-
August 17, 2024 at 4:40 pm #15154nakornParticipant
Hello I’m a newbie for Rapidscada. after install and follow a quick guide on youtube. My project can receive information for a simulation device but It doesn’t have any sending command to a simulation device. Please suggest
August 19, 2024 at 8:14 am #15159MikhailModeratorHello,
Could you clarify your question by providing screenshots?August 20, 2024 at 9:40 am #15179nakornParticipantThank you, Mikhail. Now I deleted the project and made a new one, which worked. Could the problem be from adding a new device on Device Polling?
August 21, 2024 at 1:27 am #15183nakornParticipantadd new device
https://drive.google.com/file/d/1Dh0OI6Hkqma0XsUntE0oAx2nl4cR8sPS/view
communication log
https://drive.google.com/file/d/1qwHWG7FeoDLH-7XHQw4DiunJ27zr4Mic/view
no new device in device table
https://drive.google.com/file/d/1p02fXUHuIKNarwDE__XSmxBO2WXG8L5L/viewAugust 21, 2024 at 11:25 am #15193MikhailModeratorAlso check the communication line log after sending a command to get a error message.
Please provide a screenshot of the Modbus template.August 21, 2024 at 1:45 pm #15196nakornParticipantThank you, Mikhail. here is a short video. clip.https://drive.google.com/file/d/1MmwjoQg3lcLW2UWyoqEmXKP69ghybPqu/view
I can’t find a command to send to the Modbus slave simulation.August 22, 2024 at 9:45 am #15203MikhailModeratorTo check the communication line log, navigate to Line Stats – Line Log, or find the file lineXXX.log
Then find in the log a moment when you send a command.August 22, 2024 at 10:26 am #15208nakornParticipantThis is information in the log file when I send a command.
2024-08-22 17:18:18 [IMUM04][IMUM04$][ACT] Command with ID 7405906156018121508 to the device 2 from C:\Program Files\SCADA\ScadaComm\Cmd\cmd_7405906156018121508.dat
2024-08-22 17:19:03 [IMUM04][IMUM04$][ACT] Command with ID 7405906350209285025 to the device 2 from C:\Program Files\SCADA\ScadaComm\Cmd\cmd_7405906350209285025.dat
2024-08-22 17:19:50 [IMUM04][IMUM04$][ACT] Command with ID 7405906556098538204 to the device 2 from C:\Program Files\SCADA\ScadaComm\Cmd\cmd_7405906556098538204.dat
2024-08-22 17:19:56 [IMUM04][IMUM04$][ACT] Command with ID 7405906580700786187 to the device 2 from C:\Program Files\SCADA\ScadaComm\Cmd\cmd_7405906580700786187.dathttps://drive.google.com/file/d/1J5czW3e5s040Lglbo2GiegaZOPVVueUc/view
August 22, 2024 at 3:06 pm #15210nakornParticipantSory Mikhail, I found it.
”
2024-08-22 22:03:02 Command 06 to the device [2] Tim-94n-4ch
Error: invalid command2024-08-22 22:03:02 Session with the device [2] Tim-94n-4ch
Request element group “Tim-94n-4CH”
Send (12): 79 BD 00 00 00 06 02 03 00 00 00 0D
Receive (7/7): 79 BD 00 00 00 1D 02
Receive (28/28): 03 1A 02 EE 02 08 01 90 40 18 01 F4 00 C8 01 2C 01 90 00 00 00 00 00 00 00 00 00 00
OK
”August 23, 2024 at 9:48 am #15217MikhailModeratorNow it’s more clear.
When you send a command:
Command number – keep by default, it’s not used when the command code is set.
Command code – the code from the Modbus template.Could you make a screenshot of the Modbus template with the selected register to which you send commands?
- This reply was modified 3 weeks, 1 day ago by Mikhail.
August 24, 2024 at 7:52 am #15225nakornParticipantHi Mikail. I need to send a command to write updated data to register 6 of slave ID2. The command frame should be “2-byte transaction id, 0x00 0x00 0x00 0x06 0x02 0x06 0x00 0x06 0x01 0x2C”
August 26, 2024 at 1:44 pm #15232MikhailModeratorHi,
Please send a screenshot of the Modbus template that you created in the Rapid SCADA project.August 29, 2024 at 11:41 am #15264nakornParticipantHi Mikail, Thank you for your help. Now I can write data from the Webstation.
August 30, 2024 at 12:03 pm #15267MikhailModeratorGood 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.