General-Purpose I/O Ports
You can use the general-purpose I/O port structure for programmable logic controller (PLC) functions or for simple point I/O. Refer to Analog & Digital I/O VIs for information about how to configure the direction and polarity of the I/O ports and bits, set and reset individual bits, and read the logical port status.
These I/O ports are also hardware resources, but because they are never mapped to axes, they are not considered motion resources. Refer to 73xx Controller General-Purpose I/O Port IDs and NI SoftMotion Controller General-Purpose I/O Port IDs for I/O port resource numbers.
Notes
|
Using Unlisted General-Purpose I/O Ports
Complete the following steps to use unlisted general-purpose I/O ports:
- Open the desired VI in LabVIEW.
- View the block diagram.
- Right-click the appropriate terminal and select Create»Constant.
- Click the drop-down arrow on the constant and select Other.
- Type the selected port number, in decimal.
Available I/O Resources
The following table lists the I/O resources by controller type.
Device | Digital I/O Lines |
---|---|
NI 7330 | four 8-bit ports, RTSI I/O port |
NI 7340 | four 8-bit ports, RTSI I/O port |
NI 7350 | eight 8-bit ports, RTSI I/O port |
NI PCI-7390 | four 2-bit input ports, four 2-bit output ports, RTSI I/O port |
NI SoftMotion Controller for Xenus (Copley Controls CANopen drive) |
seven digital input lines, three digital output lines per axis |
NI SoftMotion Controller for Accelnet (Copley Controls CANopen drive) |
seven digital input lines, two digital input lines per axis |