question

Flavia P2 avatar image
0 Likes"
Flavia P2 asked Jeanette F commented

Establish Communication between FlexSim and Node-Red

Hello, everyone, i'm trying to establish communication between my FlexSim model and the Node-red software. Initially, I'm trying to read the flexsim variable values to the Node-Red software, but I have tried to do this through modbus in the emulation function but without luck. Do you have any suggestions for me?

FlexSim 19.0.9
flexsim 19.0.9modbus communicationco
· 3
5 |100000

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

Ben Wilson avatar image Ben Wilson ♦♦ commented ·

Hi @Flavia P2,

Maybe @Joshua S or @Matt Long will be able to comment on FlexSim's emulation functionality.

You may also consider some other communication avenues, like sockets or web, or websockets using FlexSim's built in WebKit and methods to call back and forth between WebKit and FlexSim.

0 Likes 0 ·
Joshua S avatar image Joshua S commented ·

@Flavia P2

I'm not familiar with Node-Red, what types of protocols does it use for communication? Emulation and Modbus are for mostly PLC communication. Starting in version 20.1 we have a HTTP API that you can use as well.

0 Likes 0 ·
Ben Wilson avatar image Ben Wilson ♦♦ commented ·

Hi @Flavia P2,

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

·
Flavia P2 avatar image
0 Likes"
Flavia P2 answered Jeanette F commented

Thank you for your answers, I was able to solve my problem and read registers from Flesim to node-red, Now I'm trying to write to the registers but with no luck (already made another post regarding this problem)

· 3
5 |100000

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

Jason Lightfoot avatar image Jason Lightfoot ♦ commented ·
You could also try using OPC-UA with Node-Red.
0 Likes 0 ·
nada avatar image nada commented ·

good morning can u please tell me how to establish communication between node-red and flexsim


0 Likes 0 ·
Jeanette F avatar image Jeanette F ♦♦ nada commented ·

Hello @nada

Please follow our best practices and start your own post for your question. You can reference this post in yours.

1 Like 1 ·

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.