From c2cbaf6bfd4c8b74366bd595ea93b3c766e458c4 Mon Sep 17 00:00:00 2001 From: Daniel Sissom Date: Fri, 24 May 2024 13:41:54 -0500 Subject: [PATCH] Updated ioc to send enable power supply command to md90. --- iocs/dsmIOC/iocBoot/iocDsm/st.cmd.md90 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/iocs/dsmIOC/iocBoot/iocDsm/st.cmd.md90 b/iocs/dsmIOC/iocBoot/iocDsm/st.cmd.md90 index 68f6a8e..c40aa73 100644 --- a/iocs/dsmIOC/iocBoot/iocDsm/st.cmd.md90 +++ b/iocs/dsmIOC/iocBoot/iocDsm/st.cmd.md90 @@ -5,7 +5,7 @@ dbLoadDatabase("../../dbd/dsm.dbd") dsm_registerRecordDeviceDriver(pdbbase) -# Port 2 on a Moxa +# Network device #!drvAsynIPPortConfigure("serial0", "192.168.1.16:4002",0,0,0) # Local serial port #!drvAsynSerialPortConfigure("serial0", "/dev/ttyS0", 0, 0, 0) @@ -24,6 +24,11 @@ asynOctetSetOutputEos("serial0", 0, "\r") asynSetTraceIOMask("serial0", 0, 2) #asynSetTraceMask("serial0", 0, 255) +# Turn on the power supply +asynOctetConnect("initConnection", "serial0", 0) +asynOctetWrite("initConnection", "EPS") +asynOctetDisconnect('test') + MD90CreateController("MD900", "serial0", 1, 100, 5000) ### Motors