User`s manual

CYDAS UDR Library User’s Guide Counter Boards - CYCTM Series
113
CYCTM Series
Counter I/O
Counter functions and methods supported
UDR:
cbC9513Config(), cbC9513Init(), cbCStoreOnInt(), cbCFreqIn(), cbCIn(),
cbCLoad()
UDR for .NET: C9513Config(), C9513Init(), CStoreOnInt(), CFreqIn(), CIn(), CLoad()
Counter argument values
CounterNum 1 to 5 (All boards in this series)
CYCTM 10/P & 4/CYCTM 10H also support counters 6 through 10
CYCTM 20H/U also supports counters 11 through 20
RegNum: LOADREG1 – 5, HOLDREG1 – 5, ALARM1CHIP1, ALARM2CHIP1
CYCTM 10/P & 4/CYCTM 10H also support
LOADREG6 – 10, HOLDREG6 – 10,
ALARM1CHIP2, ALARM2CHIP2
CYCTM 20H/U also supports
LOADREG11 – 20, HOLDREG11 – 20, ALARM1CHIP3,
ALARM2CHIP3, ALARM1CHIP4, ALARM2CHIP4
LoadValue 0 to 65535 (Refer to "16-bit values using a signed integer data type" on page 7 for
information on 16-bit values using unsigned integers.).
ChipNum 1 (All boards in this series)
CYCTM 10/P & 4/CYCTM 10H also support chip 2
CYCTM 20H/U also support chips 3 and 4
FOutSource CTRINPUT1 – 5, GATE1 – 5, FREQ1 – 5
These values refer to the sources on a particular 9513 chip, so are limited to the
sources on that particular chip. For example, to set the source to the input for
counter 6, use
CTRINPUT1 (the first counter on the second 9513 chip).
CountSource TCPREVCTR, CTRINPUT1 – 5, GATE1 – 5, FREQ1 – 5
These values refer to the sources on a particular 9513 chip, so are limited to the
sources on that particular chip. For example, to set the source to the input for
counter 6, use
CTRINPUT1 (the first counter on the second 9513 chip). Likewise for
the
TCPREVCTR value; when applied to the first counter on a chip (counter 6, for
example) the “previous counter” is counter 5 on that chip (for this example,
counter 10).
Digital I/O
Digital I/O functions and methods supported
UDR:
cbDOut(), cbDIn(), cbDBitIn(), cbDBitOut()
UDR for .NET: DOut(), DIn(), DBitIn(), DBitOut()
Digital I/O argument values
PortNum AUXPORT*
DataValue CYCTM 05/P: 0 to 255
CYCTM 10/P: 0 to 65535. Refer to "Basic signed integers
" on page 112.
BitNum CYCTM 05/P: 0 to 7; CYCTM 10/P: 0 to 15
*
AUXPORT is not configurable for these boards.