question

Clarice avatar image
0 Likes"
Clarice asked Jeanette F commented

Emulation issue with Modbus TCP (Catching exception) and NodeRED

Hello all,

I'm trying to make FlexSim send information to a NodeRed flow using Modbus TCP where FlexSim is the Server and a node in my flow is the client. The thing is I don't know how to properly configure the Emulation tool in FlexSim. I followed the instructions from here: https://docs.flexsim.com/en/21.2/Reference/Tools/Emulation/Emulation.html.

My objective is to send something when a box enters the Testing Station.

This is the error I obtained:

error.png

This is what I have done for configuration:

1711546510836.png

1711546633328.png

1711546682890.png

This is my flow in NodeRed:

1711546817703.png

This is my client node:

1711546887832.png

FlexSim 24.0.2
emulationexceptionmodbusexception caughtmodbus tcp
error.png (15.9 KiB)
1711546510836.png (97.0 KiB)
1711546633328.png (19.2 KiB)
1711546682890.png (67.4 KiB)
1711546817703.png (44.5 KiB)
1711546887832.png (40.2 KiB)
· 5
5 |100000

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

Luciano Cavallero avatar image Luciano Cavallero commented ·

You configuration seem correct.

Could tou try to change the roles: Flexsim as client and Nodered as server?

Here a link of similar topic:

https://answers.flexsim.com/questions/144179/connection-nodered-and-flexsim-without-modbus-simu.html

0 Likes 0 ·
Clarice avatar image Clarice Luciano Cavallero commented ·
Hello, thanks for the answer. I imported your flow from the other question and tried to connect to my flexsim simulation but it didnt work. Could you please provide more detail? It's my first time using flexsim. Thank you in advance.
0 Likes 0 ·
Jeanette F avatar image Jeanette F ♦♦ Clarice commented ·
@Luciano Cavallero​, Can you assist further with this question?
0 Likes 0 ·
Jeanette F avatar image Jeanette F ♦♦ commented ·

@Luciano Cavallero, @Tancredi Canonico, @Fiorenzo A, can you please take a look at this emulation-related question?

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

Hi @Clarice,

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 ·

0 Answers