nada avatar image
nada asked nada commented

connection node red and flexsim

good morning everyone i'm having problem connection nodered to flexsim can anyone help me with the setting configuration please

FlexSim 23.1.2
connectionsplc emulationmodbusnode-red
· 2
5 |100000

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

Kavika F avatar image Kavika F ♦ commented ·
Hey @nada, have you tried using Emulation to make a Modbus or OPC UA connection with your Red-Node client? I noticed in this post that they had successfully made a connection using Modbus.
0 Likes 0 ·
Julie Weller avatar image Julie Weller commented ·

Hi @nada,

We haven't heard back from you. Were you able to solve your problem? If so, please add and accept an answer to let others know the solution. Or please respond to the previous comment so that we can continue to help you.

If we don't hear back in the next 3 business days, we'll assume you were able to solve your problem and we'll close this case in our tracker. You can always comment back at any time to reopen your question, or you can contact your local FlexSim distributor for phone or email help.

0 Likes 0 ·

1 Answer

Phil BoBo avatar image
Phil BoBo answered nada commented

You could use HTTP queries to communicate between a Node-RED server and FlexSim.

To call a Node-RED server from FlexSim, use an HTTP In node ( and call it via the Http FlexScript API (

To call FlexSim from a Node-RED server, use the FlexSim Webserver ( to listen for instance queries and an http request node ( to send them.

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

nada avatar image nada commented ·



acutally its my first time using both flexsim and node red i want to reed speed of conveyer this what i did but i dont know if the connection is right and even the flow .

0 Likes 0 ·
1685080899288.png (66.7 KiB)
1685080957744.png (17.0 KiB)
1685081139845.png (37.4 KiB)
1685081218455.png (13.6 KiB)
Kavika F avatar image Kavika F ♦ nada commented ·
Hey @nada, you can read the speed of a conveyor using the " currentSpeed" property on a conveyor. If you have a reference to a conveyor, you can call it's properties to get and set properties on it.
1 Like 1 ·
nada avatar image nada Kavika F ♦ commented ·
actuaaly i don't know what to put in variables configuration(initial value /register ...) and the actions are they correct or no

0 Likes 0 ·
Show more comments
nada avatar image nada commented ·


actually i did this example with modbus simulator and it works very well

i did also connect the modbus simulator with node-red it works also


but when i try to connect flexsim to node-red nothing happen


0 Likes 0 ·
1686817873020.png (150.0 KiB)
1686817903213.png (14.7 KiB)
1686817932748.png (32.8 KiB)
1686817955266.png (15.3 KiB)
1686818214861.png (106.4 KiB)
1686818304315.png (16.4 KiB)
Joerg Vogel avatar image Joerg Vogel nada commented ·
@nada, this look like a question! Then please ask it as a question! This site follows a different philosophy. Questions are questions! Answers are answers. Conversations are going into comments. You should link question to other threads, if they are in relation to another.
0 Likes 0 ·
nada avatar image nada Joerg Vogel commented ·
okay i'm sorry .

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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