I-8093W/I-9093 I/O Module User Manual, v2.0.0 P. 41
4.14.
i8093W_ReadFreq
This function use to read frequency value of encoder input signal.
Syntax
(For I-8093W only)
int i8093W_ReadFreq(
int slot,
int ch,
float* freq
);
Parameter
slot:
specifies the slot number (1 ~ 8).
ch:
specifies the channel (0 ~ 2).
* freq:
[output] get frequency value.
Return Values
Please refer the Error Code.
Note
1: read frequency function supported by firmware version 3 or later version.
2: if there is no encoder input, the frequency will be 0.093 not 0
Example
int slot , ch ;
float freq;
Open_Slot(slot);
i8093W_ReadFreq(slot , ch , &freq);
Summary of Contents for I-8093W
Page 10: ...I 8093W I 9093 I O Module User Manual v2 0 0 P 10 1 2 Pin Assignments I 8093W...
Page 11: ...I 8093W I 9093 I O Module User Manual v2 0 0 P 11 I 9093...
Page 13: ...I 8093W I 9093 I O Module User Manual v2 0 0 P 13 I 9093 5V 24V Input Level 5V 24V...
Page 14: ...I 8093W I 9093 I O Module User Manual v2 0 0 P 14 1 4 Wire Connections I 8093W...
Page 15: ...I 8093W I 9093 I O Module User Manual v2 0 0 P 15 I 9093...
Page 16: ...I 8093W I 9093 I O Module User Manual v2 0 0 P 16 1 5 Block Diagram I 8093W I 8014CW I 9014C...