EPICS Power Monitor and Control Instructions in Group C lab

MPOD power supply control

Login to ppa-clnrm01 (user "tracker") and open a terminal

$ cd /home/tracker/pelle/epics/svt-epics/svt-mpod-epics/

$./run_ioc

This should run the epics IOC and you should see output to the screen. 

Hybrid power control and monitoring
Login to ppa-pc91245 (user is your normal slac account) and open a terminal

$ cd /u1/epics/svt-epics/svt-daq-epics

$./run_ioc

This should run the epics IOC and you should see output to the screen. Depending on the debug level (see below) there might be lots of output here. Change the debug level using "mySubDebug" in "example/iocBoot/iocmyexampleApp/st.cmd ".

 


Start GUIs

Login to ppa-pc91245 (user is your normal slac account) and open a terminal

$ cd /u1/epics/svt-epics/svt-medm

Start ALL GUIs using scripts:
$ ./runSVTGUIs.sh -x 

Individual GUIs can be opened with:
$ source ./setup_epics.csh
$ medm gui-name.adl & (if you don't add -x it will open in edit mode and you'll have to hit "execute" in one of the windows popping up.

 

Notes on the hybrid power: 
  • The update frequency need to be tuned, sometimes it can take 1-2s before values are updated.  
  • If the DAQ GUI (actually the server) dies and you restart the GUI's may not reflect the new state. For example the GUI's may say ON when channel is OFF. You can press OFF and then ON in that case to sync up manually. Working on a fix for this. 
 
Instructions to change sense usage on MPOD

Slot and channel map

Slot

Channel

snmp name

 

0

X (0-7)

outputUserConfig.uX

 

Y (1-N)

X (0-7)

outputUserConfig.uY0X

 
 

Sense command:
2: use sense for output with medium length cables.
8: do not use sense lines at all

 

Example below for channel 0-3 on card in slot 0.

# enable ramp down; use sense for regulation; moderate regulation speed (cable length between 1 and 30 m); ignore external inhibit
snmpset -v2c -m +WIENER-CRATE-MIB -c guru ppa-mpod1 outputUserConfig.u0 i 2
snmpset -v2c -m +WIENER-CRATE-MIB -c guru ppa-mpod1 outputUserConfig.u1 i 2
snmpset -v2c -m +WIENER-CRATE-MIB -c guru ppa-mpod1 outputUserConfig.u2 i 2
snmpset -v2c -m +WIENER-CRATE-MIB -c guru ppa-mpod1 outputUserConfig.u3 i 2
Below is the definition of the decimal number ('2' in the example above). 
outputUserConfig OBJECT-TYPE
    SYNTAX  Integer32 (0..15)
    MAX-ACCESS  read-write
    STATUS  current
    DESCRIPTION
            "Definition of user-changeable items.
             A bit field packed into an integer which define the behavior of the output channel.
             Usable for WIENER LV devices only.
             The position of the bit fields in the integer value are:
             Bit 0:    Voltage ramping at switch off:
                           0: Ramp down at switch off.
                           1: No ramp at switch off (immediate off)
             Bit 1, 2: Set different regulation modes, dependent on the
                           cable inductance:
                                       0: fast:     short cables, up to 1 meter.
                                       1: moderate: cables from 1 to 30 meter.
                                       2: slow:     cables longer than 30 meter.
                                       3: slow (identical to 2, should not be used)
             Bit 3:    Internal sense line connection to the output (MPOD only):
                           0: The sense input at the sense connector is used
                              for regulation.
                           1: The output voltage is used for regulation.
                              Any signals at the sense connector are ignored.
             Bit 4:    External Inhibit input.
                           0: The external inhibit input is ignored.
                           1: The external inhibit input must be connected to
                              a voltage source to allow switch on.
             Community required for write access: guru.
            "
    ::= { outputEntry 37 }                

                             

  • No labels