Forum Home › Forums › Communicating with Devices › Modbus › modbus transfer string value
- This topic has 29 replies, 5 voices, and was last updated 9 months, 1 week ago by Mikhail.
-
AuthorPosts
-
April 13, 2023 at 2:56 am #12418asherbParticipant
hello, Mikhail,
I tried your solution, however, the server goes to error, and shows ‘Arrldx’ does not exist in the current context. could you please advise.
Also, for the Byte order in the Modbus template is 76543210, is this byte order should be applied to all str1-str4? since i did not see you apply byte order in your screenshot
thanks
April 13, 2023 at 10:02 am #12422MikhailModeratorHello,
Byte order is set in the template options https://ibb.co/9wWZHG4
Could you make a screenshot of the settings and the error?
April 13, 2023 at 4:51 pm #12424asherbParticipanthello Mikhail,
when i have your setup, the server goes down and it shows me this error:https://sm.ms/image/RLVTirJ5gjeIdHf
my setup: https://sm.ms/image/6JE54lRvHIiTAWL
https://sm.ms/image/mMLq49No5hfAKx2
https://sm.ms/image/ng8MtWzpso2DIFfif i don’t use Arrldx, it shows me this for the string: https://sm.ms/image/l5v3QsZzp71on6g
the correct string should looks like: https://sm.ms/image/oMvLWAbqHxTpCtJ
thanks for help
April 14, 2023 at 7:32 am #12433MikhailModeratorHello,
1. Copy the valid variable name from here:
ArrIdx
I
andl
are different characters.2. Find the appropriate byte order.
April 14, 2023 at 4:36 pm #12436asherbParticipanthello Mikhail,
thank you for the help. Right now we can get all letter in, but the order is not right and no orders. the correct string should be: ‘1.Vertical Nail Both’, however, we got this: https://sm.ms/image/xAlPIzpXKNWqDwm (with byte order: 44012367)
we tried change byte order, however, we are not able to get the right byte order. would this be related to the script of Strings? can you help us to figure this out?
our current setup:
https://sm.ms/image/pNVc9oYsitZ5Sa7
https://sm.ms/image/j89WeTUDXPOqyHCthanks!
April 16, 2023 at 7:55 am #12444MikhailModeratorHello,
Why don’t you do the following:
1. Set the default by order 01234567
2. Get string as is.
3. Draw tables with the expected and actual strings. Draw arrows from one table to another to find proper byte order.June 19, 2023 at 3:18 pm #12829TDEParticipantHi,
I tried it and this is the findings.
Can you tell me how to deal with it?
Cordially.
https://drive.google.com/file/d/1ONNhyiESX_RNBsO-yNxKfLZ3E9Y1Cg0G/view?usp=drive_link
https://drive.google.com/file/d/105GBXZQ_4Efnq-5lR4T-OWJJdPN-sGWj/view?usp=drive_linkJune 20, 2023 at 11:27 am #12835MikhailModeratorHi,
The above links don’t work.
June 20, 2023 at 2:51 pm #12841TDEParticipantJune 21, 2023 at 11:02 am #12848MikhailModeratorHi,
Try the Unicode sting data type instead of ASCII.June 23, 2023 at 7:37 pm #12859IT0508ParticipantHi, I can’t get the correct values from a datalogger via modbus TCP. The data logger manufacturer sent me a program to test communications via modbus and it generates this command: 12 34 00 00 00 06 01 04 00 0E 00 02, while rapid scada generates this command: 00 01 00 00 00 06 01 03 00 0E 00 02. What should I do? I’m sorry but it’s the first time I work with a scada program and I always have problems in the modbus configurations… In the links the various photos of the configurations.
https://ibb.co/fQ5qp5x
https://ibb.co/MZxVky5
https://ibb.co/PGRnPJN
https://ibb.co/0Zmzbsr
https://ibb.co/zPfdsH9
https://ibb.co/g9KqWxc
https://ibb.co/xHYmryc
https://ibb.co/9wRYgMXJune 25, 2023 at 10:11 am #12864IT0508ParticipantI believe the issue is with the amount of digits of the number of registers. In my case the register number is 300002 but rapid scada doesn’t get to this register? Why?
June 26, 2023 at 7:59 am #12866manjey73ParticipantSwitch the operating mode in Read Input Registers
June 26, 2023 at 9:08 am #12869MikhailModeratorHi,
Use https://rapidscada.net/modbus to parse the packets and find the difference.June 26, 2023 at 9:09 am #12870 -
AuthorPosts
- You must be logged in to reply to this topic.