Subject: |
EPICS connect to PLC:Illegal field value PV ;Connection timed out |
From: |
"XU Jie" <[email protected]> |
To: |
[email protected] |
Date: |
Sat, 18 Jun 2016 16:12:24 +0800 (GMT+08:00) |
Hello sir,
I used the driver package s7plc.tgz from PSI and tried to connetct the EPICS IOCsoft and siemens PLC317-2PN/DP with TCP protocol. When the IOC starts, the problems like these followed:
Illegal field value PV: ai-int16-1 s7plcInitRecordAi: illegal INP field type
Illegal field value PV: ai-int16-1 s7plcGetInIntInfo: uninitialized record
s7plcReceiveThread Testsystem:0: read error after 0 of 10 bytes: Connection timed out
Is the cause of the problems the ioc failed to connect with PLC? Or there are other reasons?
Thank you.
Look forward to your answer.
Best regards,
Jie Xu
< envPaths
epicsEnvSet("ARCH","linux-x86_64")
epicsEnvSet("IOC","iocfirstIocboot")
epicsEnvSet("TOP","/home/newuser/EPICS/base-3.16.0.1/support")
epicsEnvSet("EPICS_BASE","/home/newuser/EPICS/base-3.16.0.1")
cd "/home/newuser/EPICS/base-3.16.0.1/support"
dbLoadDatabase "dbd/firstIoc.dbd"
firstIoc_registerRecordDeviceDriver pdbbase
var s7plcDebug 1
s7plcConfigure Testsystem:0,192.168.10.152,102,10,10,1,2000,500
dbLoadRecords db/first.db
iocInit
Starting iocInit
############################################################################
## EPICS R3.16.0.1 $Date: Thu 2016-03-03 17:36:43 -0600$
## EPICS Base built Jun 7 2016
############################################################################
s7plcInit: starting main thread
s7plcMain: main thread started
s7plcMain Testsystem:0: Connect to 192.168.10.152:102 on socket 5
s7plcEstablishConnection Testsystem:0: fd=5, IP=192.168.10.152 port=102
Illegal field value PV: ai-int16-1 s7plcInitRecordAi: illegal INP field type
Illegal field value PV: ai-int16-1 s7plcGetInIntInfo: uninitialized record
s7plcMain Testsystem:0: starting send thread Testsystem:0S
s7plcMain Testsystem:0: starting recv thread Testsystem:0R
s7plcSendThread Testsystem:0: started
s7plcReceiveThread Testsystem:0: started
iocRun: All initialization complete
## Start any sequence programs
#seq sncxxx,"user=newuser"
epics> s7plcWaitForInput Testsystem:0: select(5, 2.000000 sec) timed out
s7plcReceiveThread Testsystem:0: read error after 0 of 10 bytes: Connection timed out
first.db
record (ai, "ai-int16-1") {
# map range 0 ... 1000 to 0.0000 ... 10.0000
field (DTYP, "S7plc")
field (INP, "@Testsystem:0/0 'T=INT16 L=0 H=1000'")
field (EGUF, "10")
field (LOPR, "-10")
field (HOPR, "10")
field (LINR, "LINEAR")
field (PREC, "2")
field (SCAN, "I/O Intr")
}
------------------------------------
Xu Jie,
Southwestern Institute of Physics
Chengdu, Sichuan 610041
China
Email: [email protected]
Tel: +86-28-8285-0326
- Navigate by Date:
- Prev:
Re: MCA under windows7 64-bit Hinko Kocevar
- Next:
Caget packet structure Stephen Molloy
- 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:
Re: MCA under windows7 64-bit Hinko Kocevar
- Next:
Caget packet structure Stephen Molloy
- 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
|