Unabled to connect
Posted: Mon Mar 15, 2010 4:29 am
Hey Guys,
I'm using SB70LC, now its running a Modbus Application. The Modbus Server/Slave works great but now i'm having an issue when i'm trying to connect to another controller. I execute the 'connect' and it times out, i see activity but for some reason i can connect. Is theirs anything i'm doing wrong? This is a TCP to TCP app.
Code within a Class object: The controller is on a DHCP network.
const char *pIP = "xx.yy.zz.aa";
IPADDR addr = AsciiToIp(pIP);
m_handle = connect(addr,0,502,TICKS_PER_SECOND*10);
Operation times out and m_handle is always -1.
Please let me know if i'm missing something.
Ed
I'm using SB70LC, now its running a Modbus Application. The Modbus Server/Slave works great but now i'm having an issue when i'm trying to connect to another controller. I execute the 'connect' and it times out, i see activity but for some reason i can connect. Is theirs anything i'm doing wrong? This is a TCP to TCP app.
Code within a Class object: The controller is on a DHCP network.
const char *pIP = "xx.yy.zz.aa";
IPADDR addr = AsciiToIp(pIP);
m_handle = connect(addr,0,502,TICKS_PER_SECOND*10);
Operation times out and m_handle is always -1.
Please let me know if i'm missing something.
Ed