question

Magdalena B3 avatar image
0 Likes"
Magdalena B3 asked Matt Long commented

Emulation pproblem Modbus TCP

Hello everyone, I have a problem with Emulation in Flexsim. I would like to create a Modbus TCP connection as a server not a client. While I create sensors variables the client could read the data. But when I try to make a control variables, client could send some data to server and it can read them, but I can’t see them in Flexim model, I couldn’t write them for example to Table.
Do you have any ideas how or where could I find the sending data in Flexsim model ?

FlexSim 19.0.2
modbus communicationflexsim 19.0.2
· 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.

Matt Long avatar image Matt Long commented ·

@Magdalena B3 What client software are you using? Do you have a sample model to share?

0 Likes 0 ·
Magdalena B3 avatar image Magdalena B3 Matt Long commented ·

I attached the sample model.

I’m using EasyModbus Tools as Client.

Now when I try to connect by localhost there is no connection. And there is the same situation when I try to connect with other computer( Emulated server has my computer’s IP ) the connection was created, I could send some date to server and read them using client, but I can’t see them in Flexim model - the date didn’t appear in simulation.

ex_modbus.fsm

0 Likes 0 ·
Matt Long avatar image Matt Long Magdalena B3 commented ·

Answers is having some issues with attachments. Can you try uploading that model again?

0 Likes 0 ·
Show more comments

1 Answer

Matt Long avatar image
0 Likes"
Matt Long answered Matt Long commented

@Magdalena B3 this has been fixed in FlexSim 20.0.6 and 20.1.2. You can download these latest versions through the FlexSim website.

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

Magdalena B3 avatar image Magdalena B3 commented ·

Thanks, I've downloaded and it works :)

0 Likes 0 ·
Magdalena B3 avatar image Magdalena B3 commented ·

Unfortunately, I still have a problem with Modbus TCP Emulation when Flexism is a server. When the client sends some data to server (to Flexsim) sometimes I could write date to table as a newValue, but sometimes I couldn’t. Does anyone have an idea what is wrong?

Also, I could not find anywhere in simulation raw data from Modbus Registers.

If there is no access to raw data of Server Registers (for example in form of table), I think such functionality would be very useful, in case writing data to that table directly by ProcessFlow, without creating Variables in Emulation.

I work on Flexsim v.20.1.3.

0 Likes 0 ·
Matt Long avatar image Matt Long Magdalena B3 commented ·

I'll look into that. I'm not sure why it would sometimes not work.

As for the raw data, there isn't currently a table to see that, but it is on our dev list and has been partially implemented but not completed.

0 Likes 0 ·