28
UFC_SetExtOut
Write external outputs (X4)
Prototype:
return = UFC_SetExtOut (unsigned char card, unsigned char Out);
return: (-2…1)
card:
Number fo the module (0…7)
OUT:
Bit 0 = 0
a
Output 1 inactive
1
a
Output 1 active
Bit 1 = 0
a
Output 2 inactive
1
a
Output 2 active
Bit 2 = 0
a
Output 3 inactive
1
a
Output 3 active
Bit 3 = 0
a
Output 4 inactive
1
a
Output 4 active
UFC_GetExtIn
Read out external inputs (X4)
Prototype:
return = UFC_GetExtIn (unsigned char card, unsigned short *Input);
return: (-2…1)
card:
Number fo the module (0…7)
*Input:
Bit 0 = 0
a
Input 1 inactive
1
a
Input 1 active
Bit 1 = 0
a
Input 2 inactive
1
a
Input 2 active
Bit 2 = 0
a
Input 3 inactive
1
a
Input 3 active
Bit 3 = 0
a
Input 4 inactive
1
a
Input 4 active
Bit 4 = 0
a
Input 5 inactive
1
a
Input 5 active
Bit 5 = 0
a
Input 6 inactive
1
a
Input 6 active
Bit 6 = 0
a
Input 7 inactive
1
a
Input 7 active
Bit 7 = 0
a
Input 8 inactive
1
a
Input 8 active