Beamline Instrument Software Support |
|
SPEC Macro documentation:
[ Macro Index |
BCU Home ]
|
WAGOSER.MAC | ||||||
[ source code | installed at | configured at ] | ||||||
See other macros in category: All | ||||||
Description:
| ||||||
Documentation:
Macro to handle a WAGO serial line module through the WAGO Device Server and the wagocore.mac macros. Therefore a call to wagosetup must have been done before using these macros. The serial line is identified by the logical name given in the Device Server resources to the WAGO module. EXAMPLE | ||||||
Macros:
Usage: wago_ser_put (logname,s) Writes the string s to the serial device with logical name logname. wago_ser_get Usage: wago_ser_get (logname) Reads and return a string from the serial channel with logical name logname. Returns as many characters as are already available in the receiving queue. Returns a null string if no characters become available within the timeout period set with wago_ser_par() wago_ser_par Usage: wago_ser_par (logname,"?") Return the document list of possible argins | ||||||
Internal Macros: | ||||||
Usage: _wago_ser_checkto (logname) Initialize timeout for the channel logname _wago_ser_checkch Usage: _wago_ser_checkch (logname) Check if the logname has already configured with wagosetup | ||||||
|