I'm relatively new to Modbus, but I've got ModbusPal up and running on a remote VM, with a single slave and simple ramp function of data. I'm trying to pull the tags to a local "Edge Device" to then send the data to the cloud as a test demonstration. I'm having trouble connecting to the ModbusPal to get the data tags. Do I just use the IP Address of the VM and then port 502? In my Edge Device config, I've tried https://<ip address="" of="" VM="">:502 and tcp://<ip address="" of="" VM="">:502. When I run the logs of the Edge Device, it isn't making the connection. Do I need to specify the slave, called 1:test or is there another "endpoint" I need to use to collect the data.
Thanks for the help,
Mike
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi there,
I'm not sure what you're trying to do. ModbusPal opens up a port and listens for the protocol. First off make sure you can see that the port has been opened. This is done differently depending on the OS you are running it on: https://sites.google.com/site/mullais/network/to-check-if-a-port-is-open
If the port is open, make sure you don't have firewalls blocking the ports. Once you've confirmed that it is open, you should be able to connect to it. Since this is TCP modbus, the slave address is irrelevant.
Hope that helps!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
ModbusPal,
I'm relatively new to Modbus, but I've got ModbusPal up and running on a remote VM, with a single slave and simple ramp function of data. I'm trying to pull the tags to a local "Edge Device" to then send the data to the cloud as a test demonstration. I'm having trouble connecting to the ModbusPal to get the data tags. Do I just use the IP Address of the VM and then port 502? In my Edge Device config, I've tried https://<ip address="" of="" VM="">:502 and tcp://<ip address="" of="" VM="">:502. When I run the logs of the Edge Device, it isn't making the connection. Do I need to specify the slave, called 1:test or is there another "endpoint" I need to use to collect the data.
Thanks for the help,
Mike
Hi there,
I'm not sure what you're trying to do. ModbusPal opens up a port and listens for the protocol. First off make sure you can see that the port has been opened. This is done differently depending on the OS you are running it on: https://sites.google.com/site/mullais/network/to-check-if-a-port-is-open
If the port is open, make sure you don't have firewalls blocking the ports. Once you've confirmed that it is open, you should be able to connect to it. Since this is TCP modbus, the slave address is irrelevant.
Hope that helps!