forked from epics_driver_modules/motorBase
ad11d7ec6f
Removed motorAxisPrimitive, motorAxisSetLogParam
motorAxisSetLog now takes a logParam parameter
drvMotorAsynConfigure takes an extra can_block parameter
Simulator create function only takes int parameters to avoid problems
passing double parameters from the vxWorks shell on PowerPC arch
Functional changes:
Order of drvMotorAsyn interrupt callbacks has been changed to pass back
Float64 interrupts (typically position, etc.) before Int32 interrupts
(typically status), so that a move reaches its desired position before
it is signalled as complete. This is not a complete solution.
More parameter checking, particularly of axis number
39 lines
1.2 KiB
Plaintext
39 lines
1.2 KiB
Plaintext
#!$(INSTALL)/bin/$(ARCH)/motorSim
|
|
|
|
## You may have to change test to something else
|
|
## everywhere it appears in this file
|
|
|
|
cd "$(INSTALL)"
|
|
|
|
# Load binaries on architectures that need to do so.
|
|
# VXWORKS_ONLY, LINUX_ONLY and RTEMS_ONLY are macros that resolve
|
|
# to a comment symbol on architectures that are not the current
|
|
# build architecture, so they can be used liberally to do architecture
|
|
# specific things. Alternatively, you can include an architecture
|
|
# specific file.
|
|
$(VXWORKS_ONLY)ld < bin/$(ARCH)/motorSim.munch
|
|
|
|
## This drvTS initializer is needed if the IOC has a hardware event system
|
|
#TSinit
|
|
|
|
## Register all support components
|
|
dbLoadDatabase("dbd/motorSim.dbd")
|
|
motorSim_registerRecordDeviceDriver(pdbbase)
|
|
|
|
## Load record instances
|
|
dbLoadRecords("db/motorSimTest.db","DEVICE=motorSim")
|
|
#dbLoadRecords("db/dbExample2.db","user=npr78,no=1,scan=1 second")
|
|
#dbLoadRecords("db/dbExample2.db","user=npr78,no=2,scan=2 second")
|
|
#dbLoadRecords("db/dbExample2.db","user=npr78,no=3,scan=5 second")
|
|
#dbLoadRecords("db/dbSubExample.db","user=npr78")
|
|
|
|
## Set this to see messages from mySub
|
|
#mySubDebug 1
|
|
|
|
motorSimCreate( 0, 0, -32000, 32000, 0, 1, 1 )
|
|
|
|
iocInit()
|
|
|
|
## Start any sequence programs
|
|
#seq sncExample,"user=npr78Host"
|