migrate from EPICS 3.14.12 to 7.0.7
This commit is contained in:
@@ -1,11 +1,4 @@
|
||||
### Required Parameters ###
|
||||
#PORT='PPMAC1'
|
||||
#P='SARFE10-OAPU090'
|
||||
#powerPmacCreateController(<port_name>, <moving_poll_pseriod [ms]>, <idle_poll_period [ms]>)
|
||||
#powerPmacCreateController("$(PORT)", 100, 100) <<< done in commom module
|
||||
###########################
|
||||
require stream
|
||||
require gpasciiCommander
|
||||
! $(gpasciiCommander_DIR)/gpasciiCommander --path $(ESB_MX_DIR) $(ESB_MX_DIR)/$(P)3.cfg
|
||||
|
||||
powerPmacCreateAxis($(PORT), 1)
|
||||
@@ -25,26 +18,23 @@ powerPmacCreateVirtualAxis("$(PORT)", 11, 1, "U",1,2,3,4)
|
||||
powerPmacCreateVirtualAxis("$(PORT)", 12, 1, "V",1,2,3,4)
|
||||
powerPmacCreateVirtualAxis("$(PORT)", 13, 1, "W",1,2,3,4)
|
||||
|
||||
|
||||
powerPmacSetCustomMotion $(PORT) 1 1
|
||||
powerPmacSetCustomMotion $(PORT) 2 1
|
||||
powerPmacSetCustomMotion $(PORT) 3 1
|
||||
powerPmacSetCustomMotion $(PORT) 4 1
|
||||
powerPmacSetCustomMotion $(PORT) 5 1
|
||||
powerPmacSetCustomMotion $(PORT) 9 1
|
||||
powerPmacSetCustomMotion $(PORT) 10 1
|
||||
powerPmacSetCustomMotion $(PORT) 11 1
|
||||
powerPmacSetCustomMotion $(PORT) 12 1
|
||||
powerPmacSetCustomMotion $(PORT) 13 1
|
||||
|
||||
# Load databse
|
||||
dbLoadTemplate("$(ESB_MX_TEMPLATES)/$(P)3.subs", "PORT_M=$(PORT),P_M=$(P)")
|
||||
|
||||
epicsEnvSet STREAM_PROTOCOL_PATH, $(STREAM_PROTOCOL_PATH):$(ESB_MX_DIR)
|
||||
|
||||
#asynSetTraceMask("$(PORT)", -1, 0x6)
|
||||
#asynSetTraceIOMask("$(PORT)", -1, 0x2)
|
||||
var streamError 1
|
||||
#var streamDebug 1
|
||||
require PB_EXTRA
|
||||
#- Brakes - need to load motor status PVs as well
|
||||
dbLoadRecords("$(PB_EXTRA_TEMPLATES)motorStatus.db" "SYS=${P}, PORT=${PORT}, M=MOT_GIR_1, M_NO=1")
|
||||
dbLoadRecords("$(PB_EXTRA_TEMPLATES)motorStatus.db" "SYS=${P}, PORT=${PORT}, M=MOT_GIR_2, M_NO=2")
|
||||
dbLoadRecords("$(PB_EXTRA_TEMPLATES)motorStatus.db" "SYS=${P}, PORT=${PORT}, M=MOT_GIR_3, M_NO=3")
|
||||
dbLoadRecords("$(PB_EXTRA_TEMPLATES)motorStatus.db" "SYS=${P}, PORT=${PORT}, M=MOT_GIR_4, M_NO=4")
|
||||
dbLoadRecords("$(PB_EXTRA_TEMPLATES)motorStatus.db" "SYS=${P}, PORT=${PORT}, M=MOT_GIR_5, M_NO=5")
|
||||
dbLoadRecords("${PB_EXTRA_TEMPLATES}motorBrake.db", "SYS=${P}, PORT=${PORT}, M=MOT_GIR_1, M_NO=1")
|
||||
dbLoadRecords("${PB_EXTRA_TEMPLATES}motorBrake.db", "SYS=${P}, PORT=${PORT}, M=MOT_GIR_2, M_NO=2")
|
||||
dbLoadRecords("${PB_EXTRA_TEMPLATES}motorBrake.db", "SYS=${P}, PORT=${PORT}, M=MOT_GIR_3, M_NO=3")
|
||||
dbLoadRecords("${PB_EXTRA_TEMPLATES}motorBrake.db", "SYS=${P}, PORT=${PORT}, M=MOT_GIR_4, M_NO=4")
|
||||
dbLoadRecords("${PB_EXTRA_TEMPLATES}motorBrake.db", "SYS=${P}, PORT=${PORT}, M=MOT_GIR_5, M_NO=5")
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user