Appendix A. CRBasic Programming Instructions
A.5.7 Digital I/O
CheckPort
Returns the status of a C terminal configured for control.
Syntax
X = CheckPort(Port)
PortGet
Reads the status of a C terminal configured for control.
Syntax
PortGet(Dest, Port)
PortsConfig
Configures C terminals for input or output.
Syntax
PortsConfig(Mask, Function)
ReadIO
Reads the status of C terminals.
Syntax
ReadIO(Dest, Mask)
TimerIO
Measures the time between edges (state transitions) or frequency on C terminals.
Syntax
TimerIO(Dest, Edges, Function, Timeout, Units)
A.5.7.1 Control
PortSet
Sets the specified C terminal high or low.
Syntax
PortSet(Terminal, State)
PulsePort
Toggles the state of a C terminal, delays, toggles the terminal, and delays a
second time.
Syntax
PulsePort(Terminal, Delay)
554