Go to the source code of this file.
Detailed Description
Define motion for 2 slit blades driven by one axis that moves them both to adjust the position, and another that moves only one to adjust the gap.
Original Author: Emma Shepherd
Defined axes:
- X (addr 6) = centre in same EGUs as blade
- Y (addr 7) = size in same EGUs as blade
Macros:
- COORD = CS number, e.g. 2
- PLC = PLC number, should be CS number+15, e.g. 17
- CENT = Axisnum for centre motor, e.g. 1
- GAP = Axisnum for gap motor, e.g. 3
- DIR = Set to 1 if aperture is opened by driving positively,
- and -1 if negatively.
Definition in file CS_gap_and_centre_slits.pmc.
Define Documentation
#define CENTMOVE P(4700+$(CENT)) |
#define CENTMRES P(4800+$(CENT)) |
#define CENTOFF P(4900+$(CENT)) |
#define CENTPOS (CENTMRES*P$(CENT)+CENTOFF) |
#define CENTPOS (CENTMRES*m$(CENT)62/(I$(CENT)08*32)+CENTOFF) |
#define GAPMOVE P(4700+$(GAP)) |
#define GAPMRES P(4800+$(GAP)) |
#define GAPOFF P(4900+$(GAP)) |
#define GAPPOS (GAPMRES*P$(GAP)+GAPOFF) |
#define GAPPOS (GAPMRES*m$(GAP)62/(I$(GAP)08*32)+GAPOFF) |