From 333d140559a66a65db3bac9bee9d7d5e71e9d388 Mon Sep 17 00:00:00 2001 From: jsullivan-anl Date: Thu, 14 Jun 2007 16:12:43 +0000 Subject: [PATCH] add IOC startup script examples for serial.cmd and motor.substitutions --- motorApp/PiJenaSrc/README | 72 +++++++++++++++++++++++++-------------- 1 file changed, 46 insertions(+), 26 deletions(-) diff --git a/motorApp/PiJenaSrc/README b/motorApp/PiJenaSrc/README index 6388e98e..7cb99be1 100644 --- a/motorApp/PiJenaSrc/README +++ b/motorApp/PiJenaSrc/README @@ -6,41 +6,33 @@ Model: EDS Tested Version: EDS2, DSM V1.959 - RS232: 9600,8,1,N (See setup warning below) RX EOL: '/r' (13) TX FRAMING: '/023'/r/n'/021' -Commands: - ,,[] - Where axis = 0, 1, ...,5 - - * Reply from motion commands '/023/021' (framing characters only) - * Single command per line - -Query Reply: ,, - *** WARNING *** Printing the EDS responses (during debugging) - lockup the vxWorks terminal session (using cu) because - of the framing characters. - Position Resolution: 0.001 micrometers (um) -DRIVER SUPPORT EXCEPTIONS: - NO Relative Motion - NO JOG command - NO DONE indicator - NO Homing - NO Limit Switches +=================== serial.cmd ============================= +# Piezosystem Jena EDS motor controller/driver setup parameters: +# (1) maximum number of controllers in system +# (2) maximum drives per controller +# (3) motor task polling rate (min=1Hz, max=60Hz) +#drvPIJEDSdebug=1 +PIJEDSSetup(1, 2, 60) -SET_STATUS NOTES: - DONE: No DONE indicator so the 'no motion' test is used - to set the DONE status. +# Piezosystem Jena EDS controller/driver configuration parameters: +# (1) controller being configured +# (2) asyn port name (string) +# (3) asyn address (GPIB) +PIJEDSConfig(0, "serial1", 0) + +================== motor.substitutions ================== + +{P, N, M, DTYP, C, S, DESC, EGU, DIR, VELO,VBAS, ACCL, BDST, BVEL, BACC, MRES, PREC, DHLM, DLLM, INIT} +{xxx:, 9, "m$(N)", "PIJEDS", 0, 0, "motor $(N)", um, Pos, 2., 0, .2, 0, 0, .2, .001, 5, 100, 0, ""} +{xxx:, 10, "m$(N)", "PIJEDS", 0, 1, "motor $(N)", um, Pos, 2., 0, .2, 0, 0, .2, .001, 5, 100, 0, ""} - No Motion Test: Reference position is not available so - the 'no motion' test was widen to a hard coded - tolerance value based on the MAXIMUM RESOLUTION. - This was needed because of encoder jitter. =================== CONTROLLER SETUP ================= @@ -57,6 +49,20 @@ SET_STATUS NOTES: the other motion calibration settings are not available from EPICS. + +============= COMMANDS SYNTAX ================================== + ,,[] + Where axis = 0, 1, ...,5 + + * Reply from motion commands '/023/021' (framing characters only) + * Single command per line + +Query Reply: ,, + *** WARNING *** Printing the EDS responses (during debugging) + lockup the vxWorks terminal session (using cu) because + of the framing characters. + + =================== MOTION ================= ENABLE/DISABLE Servo - ClosedLoop/OpenLoop cl,,[1/0] @@ -104,6 +110,20 @@ SERVO ENABLE stat, 16bit register - bit 7 +================== IMPLEMENTATION NOTES ========================== +DRIVER SUPPORT EXCEPTIONS: + NO Relative Motion + NO JOG command + NO DONE indicator + NO Homing + NO Limit Switches +SET_STATUS: + DONE: No DONE indicator so the 'no motion' test is used + to set the DONE status. + No Motion Test: Reference position is not available so + the 'no motion' test was widen to a hard coded + tolerance value based on the MAXIMUM RESOLUTION. + This was needed because of encoder jitter.