esrf

Beamline Instrument Software Support
SPEC Macro documentation: [ Macro Index | BCU Home ]

Huber_attenuators.mac $Revision: 1.1 $
See other macros in category: Attenuator
Description:
    Macros for Huber Attenuator
Documentation:
    DESCRIPTION
    Macros for Huber Attenuator

    INTERNALS
    based on WAGO SPS, Huber Diffraction

    SETUP
    This macro assumes that an Interface I "FIELD" with "Modbus over TCP IP" with device ID 0 is defined ie device x.x.x.x:502 Modbus over TCP_IP byte 32000 contains the 8 Bits of the IO ports of the SPS controller

    Attention: TCP timeout has to be set to 0 = no timeout on WAGO controller

    connection problems: connection refused: reason: generic modbus controller must be present and working

    INTERNALS
    for any reason commands always have to be sent twice ** solved by TCP timeout = 0

Macros:
    attenuator_help
    Usage: attenuator_help
    help

    attenuator
    Usage: attenuator [off|set|get]


Internal Macros:
    att_get_text
    Usage: att_get_text (att_mod_adress)
    extract letters from 16 Bit answer

Filename: Huber_attenuators.mac
Author: SG 2022 $Revision: 1.1 $
Last mod.: 05/03/2024 15:59 by witsch