Modbus TCP Server

More
1 month 1 week ago #61 by ekar
Modbus TCP Server was created by ekar
Hello! 

I´m having some problems to get Modbus TCP Server working. 
I have added Modbus_TCP_Server in the "NodeHier" then placed Modbus_TCP_ServerModule as a child. 
In the PLC program i just test to send/write a random value to a ChanAo. See the pictures... 
Cant get the status to change
What am i missing? Do i need to start the server somehow? 

I´ve tried ModbusPoll and another SCADA-system for communication. 


Med vänliga hälsningar!





 
Attachments:

Please Log in or Create an account to join the conversation.

More
1 month 1 week ago #64 by claes
Replied by claes on topic Modbus TCP Server
Hi ekar,

The server is included in the plc executable, and there has to be at least one PlcPgm in the plc thread, otherwise the IO for that thread will not be executed.

If you are trying to start the Modbus server in the development environment, the pwrp user does not have permissions to open the Modbus TCP port 502. Super user permissions are required to open ports less than 1000 in Linux. Either you can change the port number to something larger than 1000 both in the clients and server, or you can start ProviewR runtime logged in as root.

/Claes

Please Log in or Create an account to join the conversation.

Time to create page: 0.443 seconds
Powered by Kunena Forum