Experimental Physics and Industrial Control System
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
- Replies:
- RE: Question about the connection refused lzfneu
- References:
- Question about the softioc connection refused ? lzfneu
- Navigate by Date:
- Prev:
Question about the softioc connection refused ? lzfneu
- Next:
caget pv with a space 梁雅翔
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
<2016>
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Question about the softioc connection refused ? lzfneu
- Next:
RE: Question about the connection refused lzfneu
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
<2016>
2017
2018
2019
2020
2021
2022
2023
2024