<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Setting the IP Address of Modbus slave"]]></title>
		<link>http://forum.infiniteautomation.com/forum/posts/list/11.page</link>
		<description><![CDATA[Latest messages posted in the topic "Setting the IP Address of Modbus slave"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Setting the IP Address of Modbus slave</title>
				<description><![CDATA[ I am trying to simulate an TCP Modbus slave.<br /> <br /> I extended the class [b]TcpSlave[/b] for this and added some Process Images.<br /> <br /> Unfortunately, the TcpSlave provides only the port to set.<br /> <br /> <br /> How can I set the IP Address of the slave ?<br /> <br /> <br /> I tried to add the following code snippet in TcpSlave but it doesn't help :<br /> <br /> [code]<br /> <br />     @Override<br />     public void start() throws ModbusInitException {<br />         try {<br />             serverSocket = new ServerSocket(port);<br /> <br />            //Socket socket;<br /> <br /> <br />             <br />           //this should be the ip address of the slave<br />            Socket socket = new Socket("192.168.20.100", 502);<br /> <br /> <br /> <br /> <br />             while (true) {<br />                 socket = serverSocket.accept();<br />                 TcpConnectionHandler handler = new TcpConnectionHandler(socket);<br />                 executorService.execute(handler);<br />             }<br /> <br /> <br /> [/code]<br /> <br /> <br /> <br /> Can someone help me ?]]></description>
				<guid isPermaLink="true">http://forum.infiniteautomation.com/forum/posts/preList/931/4067.page</guid>
				<link>http://forum.infiniteautomation.com/forum/posts/preList/931/4067.page</link>
				<pubDate><![CDATA[Wed, 6 Jul 2011 07:40:43]]> GMT</pubDate>
				<author><![CDATA[ two80]]></author>
			</item>
	</channel>
</rss>