16
3.4.2.
I/O
#
Brief Description
Name
Arguments (in C Syntax)
Full Description
8
Read the inputs of a chip, the EventFlags of its two encoders, and the Voltage Failure.
ReadInputs
(long
CardHandle
,
short*
Inputs
,
short*
EncoderEventFlags
)
Reads 5 or 6 chip's logical inputs, the two flags of its
EncoderEvents, and, in case of Chip #1, the Voltage Failure.
Inputs
:
For Chip #1: Bit #n corresponds to logical input #n+1 (n = 0
,...,4).
Bit #5 corresponds to Voltage Failure (1 means that
Voltage Failure = true).
For Chip #2: Bit #n corresponds to logical input #n+6. (
n = 0,...,5).
EncoderEventFlags
: Bit #0 corresponds to Encoder1 (A or C).
Bit #1 corresponds to Encoder2 (B or D).
Notes:
1. Chip #1 has 5 logical inputs (marked 1–5).
Chip #2 has 6 logical inputs (marked 6–11).
2. When an encoder event occurs, its software signal is held until
ReadInputs
is called. Afterwards, the software signal is cleared,
unless the signal still lasts. This mechanism ensures that
ReadInputs
will hold the last encoder event (in
EncoderEventFlags
) even though the event is already over.
9
Write to chip's outputs.
WriteOutputs
(long
CardHandle
,
short
Outputs
)
Meaningful only when the active chip is Chip1, in which case its
three general outputs (marked 1,2,3) are written.
Outputs
: Bit #n corresponds to general output #n+1 (n=0,1,2).
Notes:
1. Due to hardware limitations, the current status of
Outputs
should
be kept in order to be passed as argument in the functions
ResetPositionCounter
and
RequestPositionCounter
(named there
OutputsMirror
, refer to section 3.5.5, functions #25–26).
2. Chip2 has no general outputs.
Note: The description of the common arguments is in section 3.6
Summary of Contents for EN-EIC-325-PCI
Page 3: ...1 FOUR AXIS ENCODER INTERFACE CARD M M MO O OD D DE E EL L L Version 2 01 Oct 2003...
Page 30: ...28 APPENDIX B DRAWINGS Connector Wiring for the Inputs...
Page 31: ...29 Connector Wiring for the Outputs...
Page 34: ...32...
Page 35: ...33...
Page 36: ...34...
Page 37: ...35...
Page 38: ...36...
Page 39: ...37...
Page 40: ...38...