cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Value of 0 not recognized by Modbus Server instance in Emulation Module

Value of 0 not recognized by Modbus Server instance in Emulation Module

I was recently building an example where two FlexSim instances should communicate via Modbus TCP/IPv4 connection. One instance acts as the server and one as the client. I noticed that the server does not recognize the register of a control variable getting set to 0.

This is demonstrated in the two attached models (require Emulation Module to run).

The server model writes the value of the "Register_1" variable to the output console every 2s.

The client model changes that value every 2s (where 20% of the time 0 will be the new value) and then also writes the current value to the console.

As the example output below shows, the server instance does not recognize the register getting changed to 0 and instead returns the previous value.

 

moehlmann_fe_0-1752827077984.png  

 

Can't find what you're looking for? Ask the community or share your knowledge.

Submit Idea