Full IOC init log (and dbgf in .BINP made manually by me):
#!/usr/local/epics/apps/pigcs2IOC/bin/linux-x86_64/pigcs2
< /usr/local/epics/apps/pigcs2IOC/iocBoot/iocPIGCS2/envPaths
epicsEnvSet("IOC","iocPIGCS2")
epicsEnvSet("TOP","/usr/local/epics-nfs/modules/R3.15.6/synApps/R6.1/support/motor-R7-1/modules/motorPIGCS2-R1-1/iocs/pigcs2IOC")
epicsEnvSet("SUPPORT","/usr/local/epics-nfs/modules/R3.15.6/synApps/R6.1/support")
epicsEnvSet("ASYN","/usr/local/epics-nfs/modules/R3.15.6/synApps/R6.1/support/asyn-R4-36")
epicsEnvSet("STREAM","/usr/local/epics-nfs/modules/R3.15.6/synApps/R6.1/support/StreamDevice-2-8-9")
epicsEnvSet("CALC","/usr/local/epics-nfs/modules/R3.15.6/synApps/R6.1/support/calc-R3-7-3")
epicsEnvSet("RECCASTER","/usr/local/epics-nfs/apps/recsync/1.4_epics_3.15/client")
epicsEnvSet("SNCSEQ","/usr/local/epics-nfs/modules/R3.15.6/synApps/R6.1/support/seq-2-2-6")
epicsEnvSet("BUSY","/usr/local/epics-nfs/modules/R3.15.6/synApps/R6.1/support/busy-R1-7-2")
epicsEnvSet("IPAC","/usr/local/epics-nfs/modules/R3.15.6/synApps/R6.1/support/ipac-2-15")
epicsEnvSet("MOTOR","/usr/local/epics-nfs/modules/R3.15.6/synApps/R6.1/support/motor-R7-1")
epicsEnvSet("EPICS_BASE","/usr/local/epics-nfs/base/R3.15.6")
cd "/usr/local/epics-nfs/modules/R3.15.6/synApps/R6.1/support/motor-R7-1/modules/motorPIGCS2-R1-1/iocs/pigcs2IOC"
## Set up environment
epicsEnvSet("DEV","MGN:A:E873:DIAG:A:")
epicsEnvSet("BL", "MGN:A:E873:DIAG:A")
epicsEnvSet("IOCNAME", "MGN-A-E873A-DIAG-A")
# protocol file paths
epicsEnvSet ("STREAM_PROTOCOL_PATH", ".:/usr/local/epics-nfs/modules/R3.15.6/synApps/R6.1/support/motor-R7-1/db")
## Register all support components
dbLoadDatabase "dbd/pigcs2.dbd"
pigcs2_registerRecordDeviceDriver pdbbase
cd "/usr/local/epics-nfs/modules/R3.15.6/synApps/R6.1/support/motor-R7-1/modules/motorPIGCS2-R1-1/iocs/pigcs2IOC/iocBoot/iocPIGCS2"
## motorUtil (allstop & alldone)
dbLoadRecords("/usr/local/epics-nfs/modules/R3.15.6/synApps/R6.1/support/motor-R7-1/db/motorUtil.db", "P=MGN:A:E873:DIAG:A:")
# PI GCS2 support
#dbLoadTemplate("/usr/local/epics/apps/config/PIGCS2/e873a.substitutions")
drvAsynIPPortConfigure("E873_ETH","CDE5B3D.abtlus.org.br:50000",0,0,0)
# Turn on asyn trace
#asynSetTraceMask("E873_ETH",0,3)
#asynSetTraceIOMask("E873_ETH",0,1)
# PI_GCS2_CreateController(portName, asynPort, numAxes, priority, stackSize, movingPollingRate, idlePollingRate)
# speedup debug
PI_GCS2_CreateController("E873", "E873_ETH", 1, 0, 0, 50, 1000)
2023/01/09 09:40:33.436 read from E873_ETH: (c)2016-2020 Physik Instrumente (PI) GmbH & Co. KG, E-873.1AT, 120040762, 03.033
PIasynAxis::PIasynAxis() 0: 1
----------------- axis num: 0 createCLParams() m_szAxisName: 1-------------------
# Turn off asyn trace
#asynSetTraceMask("E873_ETH",0,1)
#asynSetTraceIOMask("E873_ETH",0,0)
# Set end-of-string terminators (port, addr, terminator)
asynOctetSetInputEos("E873_ETH", 0, "\n")
asynOctetSetOutputEos("E873_ETH", 0, "\n")
#dbLoadRecords("$(TOP)/db/PI_Support.db","P=$(DEV),R=m1:,PORT=E873,ADDR=0,TIMEOUT=1")
# asyn record for troubleshooting
# Old IMAX in next line was 256. Might be convenient to revert value.
dbLoadRecords("/usr/local/epics-nfs/modules/R3.15.6/synApps/R6.1/support/asyn-R4-36/db/asynRecord.db","P=MGN:A:E873:DIAG:A:,R=asynEth,PORT=E873_ETH,ADDR=0,OMAX=256,IMAX=520000")
# RECSYNC
dbLoadRecords("/usr/local/epics-nfs/apps/recsync/1.4_epics_3.15/client/db/reccaster.db", "P=MGN:A:E873:DIAG:A:REC:")
iocInit
Starting iocInit
############################################################################
## EPICS R3.15.6
## EPICS Base built Sep 27 2021
############################################################################
cas warning: Configured TCP port was unavailable.
cas warning: Using dynamically assigned TCP port 41815,
cas warning: but now two or more servers share the same UDP port.
cas warning: Depending on your IP kernel this server may not be
cas warning: reachable with UDP unicast (a host's IP in EPICS_CA_ADDR_LIST)
iocRun: All initialization complete
## motorUtil (allstop & alldone)
motorUtilInit("MGN:A:E873:DIAG:A:")
# Boot complete
# fix, PI default is '\r'
dbpf "MGN:A:E873:DIAG:A:asynEth.OEOS" "\n"
DBR_STRING: "\n"
dbpf "MGN:A:E873:DIAG:A:asynEth.IEOS" "\n"
DBR_STRING: "\n"
# DEBUGGING ASYN
dbpf MGN:A:E873:DIAG:A:asynEth.IFMT 2
DBR_STRING: "Binary"
dbpf MGN:A:E873:DIAG:A:asynEth.IEOS ""
DBR_STRING:
dbpf MGN:A:E873:DIAG:A:asynEth.AOUT "DRR?"
DBR_STRING: "DRR?"
epics> 2023/01/09 09:40:39.129 PIInterface::sendAndReceive error calling writeRead, output=4 status=3, error=asynManager::queueLockPort queueRequest timed out
dbgf MGN:A:E873:DIAG:A:asynEth.BINP
epics> 2023/01/09 09:40:44.130 PIGCSController:sendAndReceive error calling write, output=POS? 1 status=3, error=asynManager::queueLockPort queueRequest timed out
dbgf MGN:A:E873:DIAG:A:asynEth.BINP
DBR_CHAR[800]:
"# REM E-873
#
# VERSION = 1
# TYPE = 1
# SEPARATOR = 32
# DIM = 4
# S" +
"AMPLE_TIME = 0.00050
# NDATA = 7616
#
# NAME0 = Commanded Position of Ax" +
"is AXIS:1
# NAME1 = Actual Position of Axis AXIS:1
# NAME2 = Motor Curr" +
"ent AXIS:1
# NAME3 = Signal Status Register of Axis AXIS:1
#
# END_HEA" +
"DER
-0.000001 0.000001 -0.0015 36877
-0.000001 -0.000001 -0.0015 36877
-" +
"0.000001 -0.000001 -0.0015 36877
-0.000001 -0.000001 -0.0015 36877
-0.000" +
"001 -0.000001 -0.0015 36877
-0.000001 0.000000 -0.0015 36877
-0.000001 0." +
"000001 -0.0015 36877
-0.000001 -0.000001 -0.0015 36877
-0.000001 -0.00000" +
"1 -0.0015 36877
-0.000001 -0.000001 -0.0015 36877
-0.000001 -0.000001 -0." +
"0015 36877
-0.000001 0.000001 -0.0015 36877
-0.000001 0.000001 -0.0015 36" +
"877
-0.000001 0.000000 -0.0015 36877
-0.000001 0"
epics> dbpf "MGN:A:E873:DIAG:A:asynEth.AOUT" "POS? 1"
DBR_STRING: "POS? 1"
epics> dbgf MGN:A:E873:DIAG:A:asynEth.BINP
DBR_CHAR[11]: "1=0.000001
"