I'm trying to set up a TCP Socket connection between a CompactLogix 1769-L16 and a printer that can receive external data through a TCP socket.
I know the printer IP address and port (192.168.25.112:10000) and I can send the printer a message using Hercules setup utility
I have a sample program from Rockwell (Socket TCP Client) imported into my program and I can get the "Delete All Socket Requests" and "Create Socket Request" messages status to change to DN
The next message block always fails with error code 16#0000_0046, which indicates that:
Connect Service message:
– Server IP exists, but port does not.
– Server IP and port exist, but it does not accept connection on this port.
– Service ‘timeout’ value in UDT set to 0 or low value
Since I know the IP address and port are correct, it leads me to think the timeout value is too low, but I have absolutely no idea how to increase it. Can anyone help?
I know the printer IP address and port (192.168.25.112:10000) and I can send the printer a message using Hercules setup utility
I have a sample program from Rockwell (Socket TCP Client) imported into my program and I can get the "Delete All Socket Requests" and "Create Socket Request" messages status to change to DN
The next message block always fails with error code 16#0000_0046, which indicates that:
Connect Service message:
– Server IP exists, but port does not.
– Server IP and port exist, but it does not accept connection on this port.
– Service ‘timeout’ value in UDT set to 0 or low value
Since I know the IP address and port are correct, it leads me to think the timeout value is too low, but I have absolutely no idea how to increase it. Can anyone help?