question

nada avatar image
0 Likes"
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
connections
· 1
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 ·

1 Answer

·
Phil BoBo avatar image
2 Likes"
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 (cookbook.nodered.org) and call it via the Http FlexScript API (docs.flexsim.com).

To call FlexSim from a Node-RED server, use the FlexSim Webserver (docs.flexsim.com) to listen for instance queries and an http request node (cookbook.nodered.org) to send them.

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

nada avatar image nada commented ·

1685080899288.png1685080957744.png1685081139845.png

1685081218455.png

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

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.