mirror of
https://github.com/Binary-Coalescence/motorDSM.git
synced 2025-08-04 21:55:40 -05:00
Updated ioc to send enable power supply command to md90.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user