| WAGODAC.MAC |
|
[
source code |
installed at |
configured at
]
|
|
See other macros in category:
Generic I/O
|
Description:
Macros to implement WAGO DAC as macro motors
|
Documentation:
DESCRIPTION
Macros to implement WAGO DAC as macro motors
using the WAGO Device Server and parameters from SPEC config only.
This set of macros is based of ID23 macros (written by VR). The main
change is the use of SPEC config instead of properties file, to get
parameters. Therefore to configure the macro motors, nothing else
than SPEC is needed.
- For each macro motor to configure:
- "Generic Parameter 1": WAGO box name (ex: wcid23b)
- "Generic Parameter 2": DS logical name of the DAC(s) (ex: dac_piezo)
- "Generic Parameter 3": DS logical channel of the DAC (ex: 0)
- "Generic Parameter 4": convertion factor (ex: 1.5)
- The "Generic Parameter 3" is optional and would be 0 by default which
means that there is only one DAC channel with the logical name specified as
seconde parameter.
- The "Generic Parameter 4" is optional and would be 1 by default which
means that the user of the macro motor gives directly the voltage that
would be generated by the WAGO. If a factor is given...
- The WAGO Device Server name will be automatically generated from
the beamline name and the WAGO box name (ex: id13/wcid13b/wc or
tango:id13/wcid13b/tg)
|
|
Macros:
|
|
Internal Macros:
|
wagodac_config
Usage: wagodac_config( motnum, type, unit, module, chan )
Called by spec after reading the config file
wagodac_cmd
Usage: wagodac_cmd(num, cmd, p1, p2)
Called by spec
wagodac_read
Usage: wagodac_read(mne)
wagodac_set
Usage: wagodac_set(mne,newpos)
|
| Filename: | wagodac.mac |
| Author: | VR+MP / BLISS / ESRF Feb 2005 |
| Last mod.: | 13/07/2022 10:49 by ahoms |
|