24
UFC_GetLatchMode
Read out latch register mode
Prototype:
return = UFC_GetLatchMode (unsigned char card, unsigned char Axis,
unsigned char Reg, unsigned char *Mode);
return: (-2…1)
card:
Number of the module (0…7)
Axis:
Number of the axis (0…2)
Reg:
Latch register (0 or 1)
*Mode:
Selected counter latch mode (0–7)
UFC_LatchImpuls
Generate latch pulse
Prototype:
return = UFC_LatchImpuls (unsigned char card);
return: (-2…1)
card:
Number of the module (0…7)
UFC_LatchCounter
For each counter channel two seperate latch registers (reg. 0 and 1) are available.
With this function the individual count values can be loaded into the latch registers by software.
The count values can also be loaded into a latch register by a number of hardware sources
(see UFC_SetLatchMode on page 23).
Prototype:
return = UFC_LatchCounter (unsigned char card, unsigned char Latch);
return: (-2…1)
card:
Number of the module (0…7)
Latch:
Bit 0 = 1
a
Store value of counter 1 (axis 0) in the corresponding latch reg. 0
Bit 1 = 1
a
Store value of counter 1 (axis 0) in the corresponding latch reg. 1
Bit 2 = 1
a
Store value of counter 2 (axis 1) in the corresponding latch reg. 0
Bit 3 = 1
a
Store value of counter 2 (axis 1) in the corresponding latch reg. 1
Bit 4 = 1
a
Store value of counter 3 (axis 2) in the corresponding latch reg. 0
Bit 5 = 1
a
Store value fo counter 3 (axis 2) in the corresponding latch reg. 1
UFC_GetLatchReg
Read out latch register
Prototype:
return = UFC_GetLatchReg (unsigned char card, unsigned char Axis,
unsigned char Reg, unsigned long *Data);
return: (-2…1)
card:
Number of the module (0…7)
Axis:
Number of the axis (0…2)
Reg:
Latch register (0 or 1)
*Data:
Contents of the latch register