> From:
[email protected]> To:
[email protected];
[email protected]> Subject: RE: Question about the softioc connection refused ?
> Date: Sat, 19 Mar 2016 12:55:02 +0000
>
> Hi Zhefu
>
> > I edited the Koyo1.cmd file to change the ip address in function with two conditions:
> > 1) drvAsynIPPortConfigure("Koyo1","127.0.0.1:5065",0,0,1)
> > where 127.0.0.1:5065 is my localhost ip address.
>
> This is not correct. You have specified port 5065 for the drvAsynIPPort driver that is supposed to connect to a Modbus server. Port 5065 is not used for Modbus, it is used for EPICS channel access.
>
> You cannot run the test application in the Modbus directory unless you actually have a Modbus server that you can connect to. Do you actually have a Modbus server? If so, then you specify its IP address and port 502 in the drvAsynIPPortConfigure command.
>
> Mark
>
>
> ________________________________
> From:
[email protected] [
[email protected]] on behalf of lzfneu [
[email protected]]
> Sent: Saturday, March 19, 2016 7:26 AM
> To:
[email protected]> Subject: Question about the softioc connection refused ?
>
> hi,
>
> I have encountered another softioc connection problem:
>
> I have insatlled modbus-R2-8, and want to run test example (file named Koyo1.cmd) in the iocTest folder.
>
> I edited the Koyo1.cmd file to change the ip address in function with two conditions:
>
> 1) drvAsynIPPortConfigure("Koyo1","127.0.0.1:5065",0,0,1)
> where 127.0.0.1:5065 is my localhost ip address.
>
> 2) drvAsynIPPortConfigure("Koyo1","192.168.1.255:5065",0,0,1)
> where 192.168.1.255:5065 is my broadcast ip address that obtained by command ifconfig.
>
> after starting the ioc:
> $ modbusApp Koyo1.cmd
>
> the results are both two ip address cannot connect the Koyo1, the error messages are shown below:
>
> 1) drvAsynIPPortConfigure("Koyo1","127.0.0.1:5065",0,0,1)
> 2016/03/19 19:40:19.158 Can't connect to 127.0.0.1:5065: Connection refused Koyo1 -1 autoConnect could not connect
>
> 2) drvAsynIPPortConfigure("Koyo1","192.168.1.255:5065",0,0,1)
> 2016/03/19 20:19:49.083 Can't connect to 192.168.1.255:5065: Network is unreachable Koyo1 -1 autoConnect could not connect
>
> I am new in epics, could you plesase help me and thanks in advance.
>
> Best regards
>
> Zhefu
>