I have used Modbus Device Simulator (PyModbus) to run 200 Battery, 90 PCS and 10 FIP Modbus devices on localhost each with 1000+ registers.
The simulator created devices sequentially from a port you specify, e.g. 300 devices starting on port 6001 will occupy the ports 6001-6300 with specified number of registers. Refer the attached test screenshots.
All simulator devices are working correctly and can see values update with open ModScan client software, but all the values are zeroed in the OPC Quick client and in FT View Live Data Test Client even though the comms quality is Good. Refer the ModScan Output image.
Unfortunately, I cannot set the ports for the channels independently. As soon as I change the port on one channel, same port gets assigned for all channels.
Greetings!
Yes, it is possible to set up multiple PyModbus TCP simulators and read their data in Kepware and FTView SE on the same machine. However, you’ll need to carefully manage port assignments, ensure proper channel configurations in Kepware, and verify your license supports advanced tag features.
Recommended Solutions: -
1. Multiple PyModbus Instances
Yes, you can run multiple PyModbus TCP simulators on the same machine:
Use different ports for each instance.
Launch each simulator in a separate terminal or script with unique port assignments.
Ensure Kepware channels are configured to match these ports.
2. Kepware Configuration Tips
Create separate channels for each simulator group (Battery, PCS, FIP).
Assign unique ports manually in each channel.
If Kepware overrides ports globally, consider:
Using different IPs via virtual adapters.
Running simulators on separate VMs or containers to isolate port bindings.
3. Licensing Check
Verify if your Kepware license includes Advanced Tags.
If not, consider upgrading or using static tags only.
You can check license details in the Kepware UI or via the https://my.kepware.com/s/login/.
4. FactoryTalk View SE Setup
Ensure FTView SE is configured to read from correct OPC tags.
Use static tag groups if random values cause issues.
Consider using FactoryTalk Historian for better tag management and logging.
Regards,
Mohit
Hi,
I tried to match Kepware channels with unique ports in the simulator.
I have assigned different IPs for each channel via virtual adapters but still Kepware overrides ports globally.
In terms of licensing, Rockwell doesn't provide advance tags plugin as standard. I have also tried KepwareEX 6 directly and the advance tags didn't help either.
The only configuration that worked is to create multiple device ID's using one unique port and I was able to read/write static registers using device ID, which is not the ideal setup for my current testing.
is there any chance of assigning different ports to the channels, so that I can read the registers of each simulator device per channel?
Also is there any chance of getting one of your techs to have a look at this issue remotely?
Hello,
I recommend opening a support ticket for further investigation of this query.
Please log in to mykepware.com and create a case with our team.
Regards,
Mohit
