This is the uniserv project, uniserv is a program that runs on the UniDrive devices that are used for undulator control at Bessy and the MLS.
uniserv communicates by a CAN bus with the undulator control IOC which runs the IDCP application.
The UniDrive device is programmed in the DPL language. The uniserv program for each axle for each undulator is generated from a common source.
Simply enter the command:
./configure
This should install additional software needed to build uniserv in a local directory.
Enter the command:
make local
This creates a directory "build". All created files are in this directory. Within "build" a directory "dpl" is created. In "dpl" there is a directory for each undulator that uses uniserv, e.g. a directory "UE56-2" for the UE56/2 undulator (slashes "/" are replaced with dashes "-" since slashes have a special meaning in unix).
Now distribute the programs to the server hosts by issuing:
make
A copy of the build directory is now copied to the directory /opt/IOC/Releases/uniserv/dist/[ISO-Date] on the servers aragon.acc.bessy.de and shoshoni.blc.bessy.de.
This is done in order to always have a copy of all installed DPL programs on the servers.
In order to distribute to the servers, you must run "make" as user "idadm". You shoudl also have the ssh-agent running, you can start the agent for user "idadm" by entering "agent" on the command line.
You need to have the Sypt program installed on a windows PC that has a connection to the UniDrive devices.
There you have to have or create a Sypt Project for that undulator.
You have to exit sypt, copy all files from the directory "/opt/IOC/Releases/uniserv/dist/[ISO-date]/dpl/[undulator]" from the server aragon.acc.bessy.de or shoshoni.blc.bessy.de to the project directory and restart sypt.
When Sypt is running, select "rebuild all". After all programs have been rebuilt go online and select "download". Download the program to all drives.
Copyright 2021 Helmholtz-Zentrum Berlin für Materialien und Energie GmbH <https://www.helmholtz-berlin.de>
Author: Goetz Pfeiffer <Goetz.Pfeiffer@helmholtz-berlin.de>
This file is part of uniserv, the insertion device control program.
uniserv is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
uniserv is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with uniserv. If not, see <https://www.gnu.org/licenses/>.