forked from epics_driver_modules/motorBase
Removed MicosSrc; Added motorMicos submodule
This commit is contained in:
@@ -1,44 +0,0 @@
|
||||
### motor.cmd.SMChydra
|
||||
#
|
||||
# This file is designed to be sourced:
|
||||
# * after the communication port has been configured
|
||||
# * before iocInit
|
||||
#
|
||||
# Example ethernet port configuration:
|
||||
# drvAsynIPPortConfigure("hydraEth","192.168.1.17:400", 0, 0, 0)
|
||||
#
|
||||
|
||||
# Ethernet
|
||||
HydraPort = "hydraEth"
|
||||
# Serial
|
||||
#!HydraPort = "serial5"
|
||||
|
||||
# Show communication
|
||||
#asynSetTraceMask(HydraPort, 0, 3)
|
||||
# Only show errors
|
||||
asynSetTraceMask(HydraPort, 0, 1)
|
||||
# Leave ascii selected so traces can be turned on with a single click
|
||||
asynSetTraceIOMask(HydraPort, 0, 1)
|
||||
|
||||
# Set end-of-string terminators
|
||||
asynOctetSetInputEos(HydraPort,0,"\r\n")
|
||||
asynOctetSetOutputEos(HydraPort,0,"\r\n")
|
||||
|
||||
dbLoadTemplate("motor.substitutions.SMChydra")
|
||||
|
||||
# SMChydraCreateController(
|
||||
# port name,
|
||||
# asyn port name,
|
||||
# num axes,
|
||||
# moving poll period (ms),
|
||||
# idle poll period (ms) )
|
||||
SMChydraCreateController("Hydra1", HydraPort, 2, 100, 500)
|
||||
# Use the following line to disable idle polling
|
||||
#!SMChydraCreateController("Hydra1", HydraPort, 2, 100, 0)
|
||||
|
||||
# This sleep is useful when asyn traces are enabled
|
||||
#!epicsThreadSleep(3.0)
|
||||
|
||||
# Include an asyn record for each motor to make it easy to enable diagnostic messages
|
||||
dbLoadRecords("$(ASYN)/db/asynRecord.db","P=IOC:,R=hydraAsyn1,PORT=Hydra1,ADDR=0,OMAX=256,IMAX=256")
|
||||
dbLoadRecords("$(ASYN)/db/asynRecord.db","P=IOC:,R=hydraAsyn2,PORT=Hydra1,ADDR=1,OMAX=256,IMAX=256")
|
||||
@@ -1,8 +0,0 @@
|
||||
file "$(TOP)/db/basic_asyn_motor.db"
|
||||
{
|
||||
pattern
|
||||
{P, M, DTYP, PORT, ADDR, DESC, EGU, DIR, VMAX, VELO, VBAS, ACCL, BDST, BVEL, BACC, MRES, PREC, DHLM, DLLM, INIT}
|
||||
{IOC:, m1, "asynMotor", Hydra1, 0, "m1", degrees, Pos, 15., 3., .05, .5, 0, 1.0, 2, 0.01, 2, 175, -175, ""}
|
||||
{IOC:, m2, "asynMotor", Hydra1, 1, "m2", degrees, Pos, 15., 3., .05, .5, 0, 1.0, 2, 0.01, 2, 175, -175, ""}
|
||||
}
|
||||
|
||||
@@ -57,27 +57,6 @@ dbLoadRecords("$(MOTOR)/db/motorUtil.db", "P=IOC:")
|
||||
#!drvPMNC87xxdebug=4
|
||||
|
||||
|
||||
# Micos MoCo driver setup parameters:
|
||||
# Load MicosSetup once.
|
||||
# (1) max # of controller groups. Controller groups are per serial
|
||||
# port.
|
||||
# (2) max # axes per controller group. Maximum 16. (addr 0-15)
|
||||
# (3) motor task polling rate (min=1Hz, max=60Hz, 10Hz works well)
|
||||
# Example:
|
||||
# MicosSetup(1, 2, 10) 1 group. 2 axes (controllers) in the group.
|
||||
# 10Hz poll.
|
||||
#!MicosSetup(1, 2, 10)
|
||||
|
||||
# Micos MoCo driver configuration parameters:
|
||||
# Load one MicosConfig for each group of Micos drivers.
|
||||
# (1) "Controller group" number
|
||||
# (2) ASYN port name
|
||||
#!MicosConfig(0, "a-Serial[0]")
|
||||
#!drvMicosDebug = 4
|
||||
|
||||
# Micos SMC hydra
|
||||
#!< motor.cmd.SMChydra
|
||||
|
||||
# IMS MDrive driver setup parameters:
|
||||
# (1) maximum number of controllers in system
|
||||
# (2) motor task polling rate (min=1Hz,max=60Hz)
|
||||
|
||||
@@ -37,24 +37,6 @@ asynSetOption("L0", -1, "crtscts", "N")
|
||||
#!IM483PLConfig(0, "L0")
|
||||
#!var drvIM483PLdebug 4
|
||||
|
||||
# Micos MoCo driver setup parameters:
|
||||
# Load MicosSetup once.
|
||||
# (1) max # of controller groups. Controller groups are per serial
|
||||
# port.
|
||||
# (2) max # axes per controller group. Maximum 16. (addr 0-15)
|
||||
# (3) motor task polling rate (min=1Hz, max=60Hz, 10Hz works well)
|
||||
# Example:
|
||||
# MicosSetup(1, 2, 10) 1 group. 2 axes (controllers) in the group.
|
||||
# 10Hz poll.
|
||||
#!MicosSetup(1, 2, 10)
|
||||
|
||||
# Micos MoCo driver configuration parameters:
|
||||
# Load one MicosConfig for each group of Micos drivers.
|
||||
# (1) "Controller group" number
|
||||
# (2) ASYN port name
|
||||
#!MicosConfig(0, "L0")
|
||||
#!var drvMicosDebug 4
|
||||
|
||||
# IMS MDrive driver setup parameters:
|
||||
# (1) maximum number of controllers in system
|
||||
# (2) motor task polling rate (min=1Hz,max=60Hz)
|
||||
|
||||
@@ -26,24 +26,6 @@ dbLoadRecords("$(MOTOR)/db/motorUtil.db", "P=IOC:")
|
||||
#!IM483PLConfig(0, "L0")
|
||||
#!var drvIM483PLdebug 4
|
||||
|
||||
# Micos MoCo driver setup parameters:
|
||||
# Load MicosSetup once.
|
||||
# (1) max # of controller groups. Controller groups are per serial
|
||||
# port.
|
||||
# (2) max # axes per controller group. Maximum 16. (addr 0-15)
|
||||
# (3) motor task polling rate (min=1Hz, max=60Hz, 10Hz works well)
|
||||
# Example:
|
||||
# MicosSetup(1, 2, 10) 1 group. 2 axes (controllers) in the group.
|
||||
# 10Hz poll.
|
||||
#!MicosSetup(1, 2, 10)
|
||||
|
||||
# Micos MoCo driver configuration parameters:
|
||||
# Load one MicosConfig for each group of Micos drivers.
|
||||
# (1) "Controller group" number
|
||||
# (2) ASYN port name
|
||||
#!MicosConfig(0, "L0")
|
||||
#!var drvMicosDebug 4
|
||||
|
||||
# IMS MDrive driver setup parameters:
|
||||
# (1) maximum number of controllers in system
|
||||
# (2) motor task polling rate (min=1Hz,max=60Hz)
|
||||
|
||||
Reference in New Issue
Block a user