forked from epics_driver_modules/motorBase
Converted from MPF to ASYN.
This commit is contained in:
@@ -1,11 +1,7 @@
|
||||
# The is the MPF example for communication to either a Newport MM4000/5 or an
|
||||
# The is the "ASYN" example for communication to either a Newport MM4000/5 or an
|
||||
# IMS483 controller. The examples must be configured by including or omitting
|
||||
# comment characters (i.e., #'s) from this file.
|
||||
|
||||
# The MPF option is either single or double CPU board configuration and is
|
||||
# selected by deleting either the "# !MPF-1-CPU! #" for the "# !MPF-2-CPU! #"
|
||||
# comments.
|
||||
|
||||
# "#!" marks lines that can be uncommented.
|
||||
|
||||
# The following must be added for many board support packages
|
||||
@@ -28,88 +24,70 @@ WithMPFVx_registerRecordDeviceDriver(pdbbase)
|
||||
|
||||
dbLoadRecords("$(TOP)/db/WithMPF.db")
|
||||
|
||||
routerInit
|
||||
MPF_Server_Location = 0
|
||||
# !MPF-1-CPU! #localMessageRouterStart(MPF_Server_Location)
|
||||
# !MPF-2-CPU! #tcpMessageRouterClientStart(MPF_Server_Location,9900,"164.54.53.78",1500,40)
|
||||
|
||||
# Configure the MPF server code. This MUST be configured too!
|
||||
# !MPF-1-CPU! #< st_mpfserver.cmd.Vx
|
||||
# Configure the ASYN server code. This MUST be configured too!
|
||||
< st_asynserver.cmd.Vx
|
||||
|
||||
# Newport MM4000 driver setup parameters:
|
||||
# (1) maximum number of controllers in system
|
||||
# (2) N/A
|
||||
# (3) motor task polling rate (min=1Hz,max=60Hz)
|
||||
#!MM4000Setup(1, 0, 10)
|
||||
# (2) motor task polling rate (min=1Hz,max=60Hz)
|
||||
#!MM4000Setup(1, 10)
|
||||
|
||||
# Newport MM4000 driver configuration parameters:
|
||||
# (1) controller# being configured,
|
||||
# (2) port type: 0-GPIB_PORT or 1-RS232_PORT,
|
||||
# (3) GPIB link or MPF server location
|
||||
# (4) GPIB address or MPF serial server name
|
||||
#!MM4000Config(0, 1, MPF_Server_Location, "a-Serial[0]")
|
||||
# (1) controller# being configured
|
||||
# (2) ASYN port name
|
||||
# (3) address (GPIB only)
|
||||
#!MM4000Config(0, "a-Serial[0]")
|
||||
#!drvMM4000debug=4
|
||||
|
||||
# Newport PM500 driver setup parameters:
|
||||
# (1) maximum number of controllers in system
|
||||
# (2) N/A
|
||||
# (3) motor task polling rate (min=1Hz,max=60Hz)
|
||||
#!PM500Setup(1, 0, 10)
|
||||
# (2) motor task polling rate (min=1Hz,max=60Hz)
|
||||
#!PM500Setup(1, 10)
|
||||
|
||||
# Newport PM500 configuration parameters:
|
||||
# (1) controller# being configured,
|
||||
# (2) port type (0-GPIB_PORT, 1-RS232_PORT)
|
||||
# (3) GPIB link or MPF server location
|
||||
# (4) GPIB address or MPF serial server name
|
||||
#!PM500Config(0, 1, MPF_Server_Location, "a-Serial[0]")
|
||||
# (2) ASYN port name
|
||||
# (3) address (GPIB only)
|
||||
#!PM500Config(0, "a-Serial[0]")
|
||||
#!drvPM500debug=4
|
||||
|
||||
# IMS IM483 driver setup parameters:
|
||||
# (1) maximum number of controllers in system
|
||||
# (2) N/A
|
||||
# (3) motor task polling rate (min=1Hz,max=60Hz)
|
||||
# (2) motor task polling rate (min=1Hz,max=60Hz)
|
||||
# SM - single mode PL - party mode
|
||||
#!IM483SMSetup(1, 0, 1)
|
||||
#!IM483PLSetup(1, 0, 5)
|
||||
#!IM483SMSetup(1, 10)
|
||||
#!IM483PLSetup(1, 10)
|
||||
|
||||
# IMS IM483 configuration parameters:
|
||||
# (1) controller# being configured,
|
||||
# (2) port type (1-RS232_PORT)
|
||||
# (3) MPF server location
|
||||
# (4) GPIB address or serial server task name
|
||||
# (1) controller# (chain#) being configured,
|
||||
# (2) ASYN port name
|
||||
# SM - single mode PL - party mode
|
||||
#!IM483SMConfig(0, 1, MPF_Server_Location, "a-Serial[0]")
|
||||
#!IM483SMConfig(0, "a-Serial[0]")
|
||||
#!drvIM483SMdebug=4
|
||||
#!IM483PLConfig(0, 1, MPF_Server_Location, "a-Serial[0]")
|
||||
#!IM483PLConfig(0, "a-Serial[0]")
|
||||
#!drvIM483PLdebug=4
|
||||
|
||||
# MCB-4B driver setup parameters:
|
||||
# (1) maximum # of controllers,
|
||||
# (2) maximum # axis per controller
|
||||
# (3) motor task polling rate (min=1Hz, max=60Hz)
|
||||
#!MCB4BSetup(1, 1, 10)
|
||||
# (2) motor task polling rate (min=1Hz, max=60Hz)
|
||||
#!MCB4BSetup(1, 10)
|
||||
|
||||
# MCB-4B driver configuration parameters:
|
||||
# (1) controller
|
||||
# (2) MPF card
|
||||
# (3) MPF server
|
||||
# Example:
|
||||
# MCB4BConfig(0, 1, "a-Serial[0]") MPF card 1, port 0 on IP slot A.
|
||||
#!MCB4BConfig(0, MPF_Server_Location, "a-Serial[3]")
|
||||
# (2) ASYN port name
|
||||
#!MCB4BConfig(0, "a-Serial[0]")
|
||||
#!drvMCB4BDebug=4
|
||||
|
||||
# Newport ESP300 driver setup parameters:
|
||||
# (1) maximum number of controllers in system
|
||||
# (2) N/A
|
||||
# (3) motor task polling rate (min=1Hz,max=60Hz)
|
||||
#!ESP300Setup(1, 0, 10)
|
||||
# (2) motor task polling rate (min=1Hz,max=60Hz)
|
||||
#!ESP300Setup(1, 10)
|
||||
|
||||
# Newport ESP300 driver configuration parameters:
|
||||
# (1) controller# being configured,
|
||||
# (2) port type: 0-GPIB_PORT or 1-RS232_PORT,
|
||||
# (3) MPF server location
|
||||
# (4) GPIB address or MPF serial server name
|
||||
#!ESP300Config(0, 1, MPF_Server_Location, "a-Serial[0]")
|
||||
# (2) ASYN port name
|
||||
# (3) address (GPIB only)
|
||||
#!ESP300Config(0, "a-Serial[0]")
|
||||
#!drvESP300debug = 4
|
||||
|
||||
# MicroMo MVP2001 driver setup parameters:
|
||||
@@ -119,29 +97,24 @@ MPF_Server_Location = 0
|
||||
#
|
||||
#
|
||||
# int MVP2001Setup(int num_cards, /* number of CHAINS of controllers */
|
||||
# int num_channels, /* NOT Used. */
|
||||
# int scan_rate) /* polling rate (Min=1Hz, max=60Hz) */
|
||||
#!MVP2001Setup(1, 0, 10)
|
||||
#!MVP2001Setup(1, 10)
|
||||
|
||||
# int MVP2001Config(int card, /* CHAIN being configured */
|
||||
# int port_type, /* 1:RS232_PORT */
|
||||
# int addr1, /* VME Card */
|
||||
# int addr2) /* Serial port name (SerialServer task) */
|
||||
#!MVP2001Config(0, 1, MPF_Server_Location, "a-Serial[4]")
|
||||
# (2) ASYN port name
|
||||
#!MVP2001Config(0, "a-Serial[0]")
|
||||
#!drvMVP2001debug=4
|
||||
|
||||
# PI C-844 driver setup parameters:
|
||||
# (1) maximum number of controllers in system
|
||||
# (2) N/A
|
||||
# (3) motor task polling rate (min=1Hz,max=60Hz)
|
||||
#!PIC844Setup(1, 0, 2)
|
||||
# (2) motor task polling rate (min=1Hz,max=60Hz)
|
||||
#!PIC844Setup(1, 10)
|
||||
|
||||
# PI C-844 driver configuration parameters:
|
||||
# (1) controller# being configured,
|
||||
# (2) port type: 0-GPIB_PORT or 1-RS232_PORT,
|
||||
# (3) GPIB link or MPF server location
|
||||
# (4) GPIB address or MPF serial server name
|
||||
#!PIC844Config(0, 1, MPF_Server_Location, "a-Serial[0]")
|
||||
# (2) ASYN port name
|
||||
# (3) address (GPIB only)
|
||||
#!PIC844Config(0, "a-Serial[0]")
|
||||
#!drvPIC844debug = 4
|
||||
|
||||
# Micos MoCo driver setup parameters:
|
||||
@@ -158,26 +131,18 @@ MPF_Server_Location = 0
|
||||
# Micos MoCo driver configuration parameters:
|
||||
# Load one MicosConfig for each group of Micos drivers.
|
||||
# (1) "Controller group" number
|
||||
# (2) MPF card
|
||||
# (3) MPF serial server
|
||||
# Example:
|
||||
# MicosConfig(0, 1, "a-Serial[0]") Group 0, MPF card 1, port 0 on IP
|
||||
# slot A.
|
||||
#!MicosConfig(0, MPF_Server_Location, "a-Serial[0]")
|
||||
# (2) ASYN port name
|
||||
#!MicosConfig(0, "a-Serial[0]")
|
||||
#!drvMicosDebug = 4
|
||||
|
||||
# IMS MDrive driver setup parameters:
|
||||
# (1) maximum number of controllers in system
|
||||
# (2) N/A
|
||||
# (3) motor task polling rate (min=1Hz,max=60Hz)
|
||||
#!MDriveSetup(1, 0, 1)
|
||||
# (2) motor task polling rate (min=1Hz,max=60Hz)
|
||||
#!MDriveSetup(1, 10)
|
||||
|
||||
# IMS MDrive driver configuration parameters:
|
||||
# (1) controller# being configured,
|
||||
# (2) port type: 0-GPIB_PORT or 1-RS232_PORT,
|
||||
# (3) GPIB link or MPF server location
|
||||
# (4) GPIB address or MPF serial server name
|
||||
#!MDriveConfig(0, 1, MPF_Server_Location, "a-Serial[0]")
|
||||
#!MDriveConfig(0, "a-Serial[0]")
|
||||
#!drvMDrivedebug = 4
|
||||
|
||||
iocInit
|
||||
|
||||
@@ -1,11 +1,7 @@
|
||||
# The is the MPF example for communication to either a Newport MM4000/5 or an
|
||||
# The is the "ASYN" example for communication to either a Newport MM4000/5 or an
|
||||
# IMS483 controller. The examples must be configured by including or omitting
|
||||
# comment characters (i.e., #'s) from this file.
|
||||
|
||||
# The MPF option is either single or double CPU board configuration and is
|
||||
# selected by deleting either the "# !MPF-1-CPU! #" for the "# !MPF-2-CPU! #"
|
||||
# comments.
|
||||
|
||||
# "#!" marks lines that can be uncommented.
|
||||
|
||||
# The following must be added for many board support packages
|
||||
@@ -28,88 +24,70 @@ WithMPFVx_registerRecordDeviceDriver(pdbbase)
|
||||
|
||||
dbLoadRecords("$(TOP)/db/WithMPF.db")
|
||||
|
||||
routerInit
|
||||
MPF_Server_Location = 0
|
||||
# !MPF-1-CPU! #localMessageRouterStart(MPF_Server_Location)
|
||||
# !MPF-2-CPU! #tcpMessageRouterClientStart(MPF_Server_Location,9900,"164.54.53.78",1500,40)
|
||||
|
||||
# Configure the MPF server code. This MUST be configured too!
|
||||
# !MPF-1-CPU! #< st_mpfserver.cmd.Vx
|
||||
# Configure the ASYN server code. This MUST be configured too!
|
||||
< st_asynserver.cmd.Vx
|
||||
|
||||
# Newport MM4000 driver setup parameters:
|
||||
# (1) maximum number of controllers in system
|
||||
# (2) N/A
|
||||
# (3) motor task polling rate (min=1Hz,max=60Hz)
|
||||
#!MM4000Setup(1, 0, 10)
|
||||
# (2) motor task polling rate (min=1Hz,max=60Hz)
|
||||
#!MM4000Setup(1, 10)
|
||||
|
||||
# Newport MM4000 driver configuration parameters:
|
||||
# (1) controller# being configured,
|
||||
# (2) port type: 0-GPIB_PORT or 1-RS232_PORT,
|
||||
# (3) GPIB link or MPF server location
|
||||
# (4) GPIB address or MPF serial server name
|
||||
#!MM4000Config(0, 1, MPF_Server_Location, "a-Serial[0]")
|
||||
# (1) controller# being configured
|
||||
# (2) ASYN port name
|
||||
# (3) address (GPIB only)
|
||||
#!MM4000Config(0, "a-Serial[0]")
|
||||
#!drvMM4000debug=4
|
||||
|
||||
# Newport PM500 driver setup parameters:
|
||||
# (1) maximum number of controllers in system
|
||||
# (2) N/A
|
||||
# (3) motor task polling rate (min=1Hz,max=60Hz)
|
||||
#!PM500Setup(1, 0, 10)
|
||||
# (2) motor task polling rate (min=1Hz,max=60Hz)
|
||||
#!PM500Setup(1, 10)
|
||||
|
||||
# Newport PM500 configuration parameters:
|
||||
# (1) controller# being configured,
|
||||
# (2) port type (0-GPIB_PORT, 1-RS232_PORT)
|
||||
# (3) GPIB link or MPF server location
|
||||
# (4) GPIB address or MPF serial server name
|
||||
#!PM500Config(0, 1, MPF_Server_Location, "a-Serial[0]")
|
||||
# (2) ASYN port name
|
||||
# (3) address (GPIB only)
|
||||
#!PM500Config(0, "a-Serial[0]")
|
||||
#!drvPM500debug=4
|
||||
|
||||
# IMS IM483 driver setup parameters:
|
||||
# (1) maximum number of controllers in system
|
||||
# (2) N/A
|
||||
# (3) motor task polling rate (min=1Hz,max=60Hz)
|
||||
# (2) motor task polling rate (min=1Hz,max=60Hz)
|
||||
# SM - single mode PL - party mode
|
||||
#!IM483SMSetup(1, 0, 1)
|
||||
#!IM483PLSetup(1, 0, 5)
|
||||
#!IM483SMSetup(1, 10)
|
||||
#!IM483PLSetup(1, 10)
|
||||
|
||||
# IMS IM483 configuration parameters:
|
||||
# (1) controller# being configured,
|
||||
# (2) port type (1-RS232_PORT)
|
||||
# (3) MPF server location
|
||||
# (4) GPIB address or serial server task name
|
||||
# (1) controller# (chain#) being configured,
|
||||
# (2) ASYN port name
|
||||
# SM - single mode PL - party mode
|
||||
#!IM483SMConfig(0, 1, MPF_Server_Location, "a-Serial[0]")
|
||||
#!IM483SMConfig(0, "a-Serial[0]")
|
||||
#!drvIM483SMdebug=4
|
||||
#!IM483PLConfig(0, 1, MPF_Server_Location, "a-Serial[0]")
|
||||
#!IM483PLConfig(0, "a-Serial[0]")
|
||||
#!drvIM483PLdebug=4
|
||||
|
||||
# MCB-4B driver setup parameters:
|
||||
# (1) maximum # of controllers,
|
||||
# (2) maximum # axis per controller
|
||||
# (3) motor task polling rate (min=1Hz, max=60Hz)
|
||||
#!MCB4BSetup(1, 1, 10)
|
||||
# (2) motor task polling rate (min=1Hz, max=60Hz)
|
||||
#!MCB4BSetup(1, 10)
|
||||
|
||||
# MCB-4B driver configuration parameters:
|
||||
# (1) controller
|
||||
# (2) MPF card
|
||||
# (3) MPF server
|
||||
# Example:
|
||||
# MCB4BConfig(0, 1, "a-Serial[0]") MPF card 1, port 0 on IP slot A.
|
||||
#!MCB4BConfig(0, MPF_Server_Location, "a-Serial[3]")
|
||||
# (2) ASYN port name
|
||||
#!MCB4BConfig(0, "a-Serial[0]")
|
||||
#!drvMCB4BDebug=4
|
||||
|
||||
# Newport ESP300 driver setup parameters:
|
||||
# (1) maximum number of controllers in system
|
||||
# (2) N/A
|
||||
# (3) motor task polling rate (min=1Hz,max=60Hz)
|
||||
#!ESP300Setup(1, 0, 10)
|
||||
# (2) motor task polling rate (min=1Hz,max=60Hz)
|
||||
#!ESP300Setup(1, 10)
|
||||
|
||||
# Newport ESP300 driver configuration parameters:
|
||||
# (1) controller# being configured,
|
||||
# (2) port type: 0-GPIB_PORT or 1-RS232_PORT,
|
||||
# (3) MPF server location
|
||||
# (4) GPIB address or MPF serial server name
|
||||
#!ESP300Config(0, 1, MPF_Server_Location, "a-Serial[0]")
|
||||
# (2) ASYN port name
|
||||
# (3) address (GPIB only)
|
||||
#!ESP300Config(0, "a-Serial[0]")
|
||||
#!drvESP300debug = 4
|
||||
|
||||
# MicroMo MVP2001 driver setup parameters:
|
||||
@@ -119,29 +97,24 @@ MPF_Server_Location = 0
|
||||
#
|
||||
#
|
||||
# int MVP2001Setup(int num_cards, /* number of CHAINS of controllers */
|
||||
# int num_channels, /* NOT Used. */
|
||||
# int scan_rate) /* polling rate (Min=1Hz, max=60Hz) */
|
||||
#!MVP2001Setup(1, 0, 10)
|
||||
#!MVP2001Setup(1, 10)
|
||||
|
||||
# int MVP2001Config(int card, /* CHAIN being configured */
|
||||
# int port_type, /* 1:RS232_PORT */
|
||||
# int addr1, /* VME Card */
|
||||
# int addr2) /* Serial port name (SerialServer task) */
|
||||
#!MVP2001Config(0, 1, MPF_Server_Location, "a-Serial[4]")
|
||||
# (2) ASYN port name
|
||||
#!MVP2001Config(0, "a-Serial[0]")
|
||||
#!drvMVP2001debug=4
|
||||
|
||||
# PI C-844 driver setup parameters:
|
||||
# (1) maximum number of controllers in system
|
||||
# (2) N/A
|
||||
# (3) motor task polling rate (min=1Hz,max=60Hz)
|
||||
#!PIC844Setup(1, 0, 2)
|
||||
# (2) motor task polling rate (min=1Hz,max=60Hz)
|
||||
#!PIC844Setup(1, 10)
|
||||
|
||||
# PI C-844 driver configuration parameters:
|
||||
# (1) controller# being configured,
|
||||
# (2) port type: 0-GPIB_PORT or 1-RS232_PORT,
|
||||
# (3) GPIB link or MPF server location
|
||||
# (4) GPIB address or MPF serial server name
|
||||
#!PIC844Config(0, 1, MPF_Server_Location, "a-Serial[0]")
|
||||
# (2) ASYN port name
|
||||
# (3) address (GPIB only)
|
||||
#!PIC844Config(0, "a-Serial[0]")
|
||||
#!drvPIC844debug = 4
|
||||
|
||||
# Micos MoCo driver setup parameters:
|
||||
@@ -158,26 +131,18 @@ MPF_Server_Location = 0
|
||||
# Micos MoCo driver configuration parameters:
|
||||
# Load one MicosConfig for each group of Micos drivers.
|
||||
# (1) "Controller group" number
|
||||
# (2) MPF card
|
||||
# (3) MPF serial server
|
||||
# Example:
|
||||
# MicosConfig(0, 1, "a-Serial[0]") Group 0, MPF card 1, port 0 on IP
|
||||
# slot A.
|
||||
#!MicosConfig(0, MPF_Server_Location, "a-Serial[0]")
|
||||
# (2) ASYN port name
|
||||
#!MicosConfig(0, "a-Serial[0]")
|
||||
#!drvMicosDebug = 4
|
||||
|
||||
# IMS MDrive driver setup parameters:
|
||||
# (1) maximum number of controllers in system
|
||||
# (2) N/A
|
||||
# (3) motor task polling rate (min=1Hz,max=60Hz)
|
||||
#!MDriveSetup(1, 0, 1)
|
||||
# (2) motor task polling rate (min=1Hz,max=60Hz)
|
||||
#!MDriveSetup(1, 10)
|
||||
|
||||
# IMS MDrive driver configuration parameters:
|
||||
# (1) controller# being configured,
|
||||
# (2) port type: 0-GPIB_PORT or 1-RS232_PORT,
|
||||
# (3) GPIB link or MPF server location
|
||||
# (4) GPIB address or MPF serial server name
|
||||
#!MDriveConfig(0, 1, MPF_Server_Location, "a-Serial[0]")
|
||||
#!MDriveConfig(0, "a-Serial[0]")
|
||||
#!drvMDrivedebug = 4
|
||||
|
||||
iocInit
|
||||
|
||||
Reference in New Issue
Block a user