From 87bc42d909d59afa79e342fa41033bb6a45640ee Mon Sep 17 00:00:00 2001 From: MarkRivers Date: Thu, 15 Dec 2005 20:23:06 +0000 Subject: [PATCH] New file for WIN32 --- iocBoot/iocWithAsyn/st.cmd.win32 | 136 ++++++++++++++++++++ iocBoot/iocWithMPF/st.cmd.win32 | 136 ++++++++++++++++++++ motorExApp/WithAsyn/WithMPFWin32Include.dbd | 13 ++ motorExApp/WithMPF/WithMPFWin32Include.dbd | 13 ++ 4 files changed, 298 insertions(+) create mode 100755 iocBoot/iocWithAsyn/st.cmd.win32 create mode 100755 iocBoot/iocWithMPF/st.cmd.win32 create mode 100644 motorExApp/WithAsyn/WithMPFWin32Include.dbd create mode 100644 motorExApp/WithMPF/WithMPFWin32Include.dbd diff --git a/iocBoot/iocWithAsyn/st.cmd.win32 b/iocBoot/iocWithAsyn/st.cmd.win32 new file mode 100755 index 00000000..883e286f --- /dev/null +++ b/iocBoot/iocWithAsyn/st.cmd.win32 @@ -0,0 +1,136 @@ +# The is the ASYN example for communication to a Newport MM4000/5/6. +# "#!" marks lines that can be uncommented. + +< envPaths + +dbLoadDatabase("$(TOP)/dbd/WithMPFWin32.dbd") +WithMPFWin32_registerRecordDeviceDriver(pdbbase) +dbLoadTemplate("motor.substitutions") + +# This is for WIN32, local serial ports not supported. Must use IP terminal server. + +# Newport MM3000 and MM4000/5/6 driver setup parameters: +# (1) maximum number of controllers in system +# (2) motor task polling rate (min=1Hz,max=60Hz) +#!MM3000Setup(1, 10) +MM4000Setup(1, 10) + +# Newport MM3000 and MM4000/5/6 driver configuration parameters: +# (1) controller# being configured +# (2) ASYN port name +# (3) address (GPIB only) +#!MM3000Config(0, "a-Serial[0]") +#!drvMM3000debug=4 +MM4000Config(0, "L0") +#!var drvMM4000debug 4 + +# Newport PM500 driver setup parameters: +# (1) maximum number of controllers in system +# (2) motor task polling rate (min=1Hz,max=60Hz) +#!PM500Setup(1, 10) + +# Newport PM500 configuration parameters: +# (1) controller# being configured, +# (2) ASYN port name +# (3) address (GPIB only) +#!PM500Config(0, "L0") +#!var drvPM500debug 4 + +# IMS IM483 driver setup parameters: +# (1) maximum number of controllers in system +# (2) motor task polling rate (min=1Hz,max=60Hz) +# SM - single mode PL - party mode +#!IM483SMSetup(1, 10) +#!IM483PLSetup(1, 10) + +# IMS IM483 configuration parameters: +# (1) controller# (chain#) being configured, +# (2) ASYN port name +# SM - single mode PL - party mode +#!IM483SMConfig(0, "L0") +#!var drvIM483SMdebug 4 +#!IM483PLConfig(0, "L0") +#!var drvIM483PLdebug 4 + +# MCB-4B driver setup parameters: +# (1) maximum # of controllers, +# (2) motor task polling rate (min=1Hz, max=60Hz) +#!MCB4BSetup(1, 10) + +# MCB-4B driver configuration parameters: +# (1) controller +# (2) ASYN port name +#!MCB4BConfig(0, "L0") +#!asynOctetSetInputEos("L0",0,"\r") +#!asynOctetSetOutputEos("L0",0,"\r") +#!var drvMCB4BDebug 4 + +# Newport ESP300 driver setup parameters: +# (1) maximum number of controllers in system +# (2) motor task polling rate (min=1Hz,max=60Hz) +#!ESP300Setup(1, 10) + +# Newport ESP300 driver configuration parameters: +# (1) controller# being configured, +# (2) ASYN port name +# (3) address (GPIB only) +#!ESP300Config(0, "L0") +#!var drvESP300debug 4 + +# MicroMo MVP2001 driver setup parameters: +# +# NOTE: The 1st controller on each chain should have it's address = 1. +# The rest of the controllers on a chain should follow sequentially. +# +# +# int MVP2001Setup(int num_cards, /* number of CHAINS of controllers */ +# int scan_rate) /* polling rate (Min=1Hz, max=60Hz) */ +#!MVP2001Setup(1, 10) + +# int MVP2001Config(int card, /* CHAIN being configured */ +# (2) ASYN port name +#!MVP2001Config(0, "L0") +#!drvMVP2001debug=4 + +# PI C-844 driver setup parameters: +# (1) maximum number of controllers in system +# (2) motor task polling rate (min=1Hz,max=60Hz) +#!PIC844Setup(1, 10) + +# PI C-844 driver configuration parameters: +# (1) controller# being configured, +# (2) ASYN port name +# (3) address (GPIB only) +#!PIC844Config(0, "L0") +#!var drvPIC844debug 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) +#!MDriveSetup(1, 10) + +# IMS MDrive driver configuration parameters: +# (1) controller# being configured, +# (2) ASYN port name +#!MDriveConfig(0, "L0") +#!var drvMDrivedebug 4 + +iocInit diff --git a/iocBoot/iocWithMPF/st.cmd.win32 b/iocBoot/iocWithMPF/st.cmd.win32 new file mode 100755 index 00000000..883e286f --- /dev/null +++ b/iocBoot/iocWithMPF/st.cmd.win32 @@ -0,0 +1,136 @@ +# The is the ASYN example for communication to a Newport MM4000/5/6. +# "#!" marks lines that can be uncommented. + +< envPaths + +dbLoadDatabase("$(TOP)/dbd/WithMPFWin32.dbd") +WithMPFWin32_registerRecordDeviceDriver(pdbbase) +dbLoadTemplate("motor.substitutions") + +# This is for WIN32, local serial ports not supported. Must use IP terminal server. + +# Newport MM3000 and MM4000/5/6 driver setup parameters: +# (1) maximum number of controllers in system +# (2) motor task polling rate (min=1Hz,max=60Hz) +#!MM3000Setup(1, 10) +MM4000Setup(1, 10) + +# Newport MM3000 and MM4000/5/6 driver configuration parameters: +# (1) controller# being configured +# (2) ASYN port name +# (3) address (GPIB only) +#!MM3000Config(0, "a-Serial[0]") +#!drvMM3000debug=4 +MM4000Config(0, "L0") +#!var drvMM4000debug 4 + +# Newport PM500 driver setup parameters: +# (1) maximum number of controllers in system +# (2) motor task polling rate (min=1Hz,max=60Hz) +#!PM500Setup(1, 10) + +# Newport PM500 configuration parameters: +# (1) controller# being configured, +# (2) ASYN port name +# (3) address (GPIB only) +#!PM500Config(0, "L0") +#!var drvPM500debug 4 + +# IMS IM483 driver setup parameters: +# (1) maximum number of controllers in system +# (2) motor task polling rate (min=1Hz,max=60Hz) +# SM - single mode PL - party mode +#!IM483SMSetup(1, 10) +#!IM483PLSetup(1, 10) + +# IMS IM483 configuration parameters: +# (1) controller# (chain#) being configured, +# (2) ASYN port name +# SM - single mode PL - party mode +#!IM483SMConfig(0, "L0") +#!var drvIM483SMdebug 4 +#!IM483PLConfig(0, "L0") +#!var drvIM483PLdebug 4 + +# MCB-4B driver setup parameters: +# (1) maximum # of controllers, +# (2) motor task polling rate (min=1Hz, max=60Hz) +#!MCB4BSetup(1, 10) + +# MCB-4B driver configuration parameters: +# (1) controller +# (2) ASYN port name +#!MCB4BConfig(0, "L0") +#!asynOctetSetInputEos("L0",0,"\r") +#!asynOctetSetOutputEos("L0",0,"\r") +#!var drvMCB4BDebug 4 + +# Newport ESP300 driver setup parameters: +# (1) maximum number of controllers in system +# (2) motor task polling rate (min=1Hz,max=60Hz) +#!ESP300Setup(1, 10) + +# Newport ESP300 driver configuration parameters: +# (1) controller# being configured, +# (2) ASYN port name +# (3) address (GPIB only) +#!ESP300Config(0, "L0") +#!var drvESP300debug 4 + +# MicroMo MVP2001 driver setup parameters: +# +# NOTE: The 1st controller on each chain should have it's address = 1. +# The rest of the controllers on a chain should follow sequentially. +# +# +# int MVP2001Setup(int num_cards, /* number of CHAINS of controllers */ +# int scan_rate) /* polling rate (Min=1Hz, max=60Hz) */ +#!MVP2001Setup(1, 10) + +# int MVP2001Config(int card, /* CHAIN being configured */ +# (2) ASYN port name +#!MVP2001Config(0, "L0") +#!drvMVP2001debug=4 + +# PI C-844 driver setup parameters: +# (1) maximum number of controllers in system +# (2) motor task polling rate (min=1Hz,max=60Hz) +#!PIC844Setup(1, 10) + +# PI C-844 driver configuration parameters: +# (1) controller# being configured, +# (2) ASYN port name +# (3) address (GPIB only) +#!PIC844Config(0, "L0") +#!var drvPIC844debug 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) +#!MDriveSetup(1, 10) + +# IMS MDrive driver configuration parameters: +# (1) controller# being configured, +# (2) ASYN port name +#!MDriveConfig(0, "L0") +#!var drvMDrivedebug 4 + +iocInit diff --git a/motorExApp/WithAsyn/WithMPFWin32Include.dbd b/motorExApp/WithAsyn/WithMPFWin32Include.dbd new file mode 100644 index 00000000..49d94554 --- /dev/null +++ b/motorExApp/WithAsyn/WithMPFWin32Include.dbd @@ -0,0 +1,13 @@ +include "base.dbd" +include "motorSupport.dbd" +# Comment out the following line for win32-x86, since drvAsynSerialPort does not build yet +#include "drvAsynSerialPort.dbd" +include "devAcsMotor.dbd" +include "devImsMotor.dbd" +include "devMclennanMotor.dbd" +include "devMicos.dbd" +include "devMicroMo.dbd" +include "devNewport.dbd" +include "devPIMotor.dbd" +include "devSoftMotor.dbd" + diff --git a/motorExApp/WithMPF/WithMPFWin32Include.dbd b/motorExApp/WithMPF/WithMPFWin32Include.dbd new file mode 100644 index 00000000..49d94554 --- /dev/null +++ b/motorExApp/WithMPF/WithMPFWin32Include.dbd @@ -0,0 +1,13 @@ +include "base.dbd" +include "motorSupport.dbd" +# Comment out the following line for win32-x86, since drvAsynSerialPort does not build yet +#include "drvAsynSerialPort.dbd" +include "devAcsMotor.dbd" +include "devImsMotor.dbd" +include "devMclennanMotor.dbd" +include "devMicos.dbd" +include "devMicroMo.dbd" +include "devNewport.dbd" +include "devPIMotor.dbd" +include "devSoftMotor.dbd" +