Unable Read/Write Modbus Registers from Node-Red

Unable Read/Write Modbus Registers from Node-Red

flavia_p2
Not applicable
298 Views
12 Replies
Message 1 of 13

Unable Read/Write Modbus Registers from Node-Red

flavia_p2
Not applicable

[ FlexSim 19.0.9 ]

Hello everyone,

I have been able to read registers of the simulation environment using modbus in nod-red

33373-1602605254225.png

33374-1602605291815.pngNow I was trying to write to the registers but it has been impossible. I used in the same modbus in node red sending the a value 1 to flexsim register 7 and the conveyor belt but it didn't move.

33357-1602605434456.png

33375-1602605517288.png

I have seen in other publication with this example working, I don't kown if youi have any suggestions for me?


0 Likes
Accepted solutions (1)
299 Views
12 Replies
Replies (12)
Message 2 of 13

Ben_WilsonADSK
Community Manager
Community Manager

@Matt Long, @Joshua S, can you please respond to this emulation question?

0 Likes
Message 3 of 13

joshua_s
Not applicable
Accepted solution

@Flavia P2

First make sure you have the connection you want to use selected in the picture below. You have it correctly selected for your Sensors.

33365-1602610026285.png

If that doesn't work I'd like to see if it's reading anything in general. Add a code snipet to the Action Field and enter this print(newValue,oldValue);

33358-1602609883640.png


33364-1602609909052.png

Then open up the Output console and see if anything is being written when you run it. Do this for all the registers you want to listen to.

Message 4 of 13

flavia_p2
Not applicable

Thank you I will try this and let you known


0 Likes
Message 5 of 13

flavia_p2
Not applicable

So after I tried your solution with Code Snippet this was the result on the Output Console

33380-1602672492007.png

I'm new to FlexSim, so I don't know how to intrepert these results, if could help me again please it would be great

0 Likes
Message 6 of 13

flavia_p2
Not applicable

for another register the results were totally differente

33392-1602673091036.png

0 Likes
Message 7 of 13

flavia_p2
Not applicable

33387-1602685810149.png

Just to let you know that I was already able to control de conveyor belts using the Node-red application

0 Likes
Message 8 of 13

isabella_ac
Not applicable

@Flavia P2 Could you share how did you control de conveyor belts using Node-red, please?

0 Likes
Message 9 of 13

leelichou1112
Not applicable

@弗拉維亞P2 I want to know how you use node red, because I am currently using this method

0 Likes
Message 10 of 13

ryan_c10
Not applicable

Hi @立洲,

Could you please post this as a new question? You can link to this post in your new question if that would be helpful for others trying to answer your question. Thanks!

0 Likes
Message 11 of 13

ryan_c10
Not applicable

Hi @Isabella AC,

If you haven't solved this problem already, could you please post this as a new question? You can link to this post in your new question if that would be helpful for others trying to answer your question. Thanks!

0 Likes
Message 12 of 13

leelichou1112
Not applicable

@約書亞S 我想知道你對node red和Flexsim之間的聯繫的想法和秘訣

0 Likes
Message 13 of 13

joerg_vogel_HsH
Mentor
Mentor

@立洲 , please create a new thread by using action field at this answer site thread ask a question from above. This site has got a different policy than bulletin board forums: You ask a question and therefore you create a new thread, you get answers, you can accept an answer to your question, than this thread is finished. You can write comments to clarify answers or questions.

There is an article which describes how to use this type of forum: Best Practices for using this Answers site