Appendix A. Using The Handshaking Lines For General Input/Output; The Input Pin (Cts/Pin 11) - Campbell SDM-SI01A Product Manual

Table of Contents

Advertisement

Appendix A. Using the
handshaking lines for general
input/output
This appendix describes how to use the CTS and RTS lines for input and output ports.
The I/O pins (CTS/pin 11 and RTS/pin 8) can be read or set by the user as required, allowing
unique protocols to be created, or they can simply be used as flags or enable lines.
If the user enables automatic handshaking as discussed in
Using RTS/CTS and automatic
handshaking
(p. 24), pins 8 and 11 cannot be accessed.
A.1 The input pin (CTS/pin 11)
The state of the input line (pin 11) can be read by using the special
SDMGeneric()
instruction in
CRBasic.
SDMGeneric()
Bit 16 of a value returned to the data logger using the
instruction reports
whether the input is logic high or low. The following example shows how to call the instruction
with the required parameters.
SDM-SIO1A and SDM-SIO4A Serial Input/Output Modules
32

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sdm-si04a

Table of Contents