question

Flavia P2 avatar image
0 Likes"
Flavia P2 asked Joerg Vogel commented

Unable Read/Write Modbus Registers from Node-Red

Hello everyone,

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

Now 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.

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


FlexSim 19.0.9
flexsim 19.0.9emulation modulenode-red
1602605254225.png (329.5 KiB)
1602605291815.png (418.8 KiB)
1602605434456.png (278.5 KiB)
1602605517288.png (397.8 KiB)
· 7
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Joshua S avatar image
2 Likes"
Joshua S answered Flavia P2 commented

@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.

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);


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.


1602610026285.png (404.9 KiB)
1602609883640.png (9.0 KiB)
1602609909052.png (12.7 KiB)
· 4
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.