2
Operation
Example
To write a sequence 0xAA to bits 0-7, the C-Motion command (see section 4, Developing Your Own Applications with
C-Motion, page 51, for more information on C-Motion commands) PMDWriteIO(axis_handle, 0, 0xAA) is used.
Assuming that the signal pattern 0x55 is present on the 8 input connections, if the command
PMDReadIO(axis_handle, 0, &load_reg) is used, load_reg will contain 0x55AA. The upper 8 bits reflect the
present value of the output signals, while the lower 8 bits reflect the 8-bit value being input.
C-Motion commands
In addition to accessing these signals using the C-Motion commands PMDReadIO and
PMDWriteIO, you can use card-specific C-Motion functions for this purpose. Card specific
functions have a ‘MB’ after the letters PMD. The available card specific functions for this feature are:
C-Motion command
PMDMBWriteDigitalOutput
PMDMBReadDigitalInput
PMDMBReadDigitalOutput
Arguments Function description
axis handle,
write_value
This function writes to the 8
general-purpose digital I/O signals
(digitalOut0-7). Write_value holds
the 8 signals in its low order 8 bits.
axis_handle,
read_value
This function reads the value of
the signals DigitalIn0-7 and returns
them in the low order 8 bits of
read_value.
axis_handle,
read_value
This function reads the value of
the signals DigitalOut0-7 and
returns them in the low order
8 bits of read_value.
Connections & associated signals.
The general-purpose I/O signals are direct single-signal digital inputs and outputs. There are no
associated connections that need to be made for these signals to function properly, however one or
more of the digital grounds must be connected. The default value, upon powerup, for all general-
purpose digital outputs is low.
For a complete description of the pinout connections to/from the card, see section 5, Navigator-PC/104
Electrical Reference, page 55.
2.3.2 Amplifier Enable
The signals AmpEnable1-4 provide up to four digital outputs which, if desired, can be used as amplifier
enable signals, although they can also be used as general-purpose digital outputs. Similar to the general-
purpose digital inputs and outputs (section 2.3.1, page 23), these signals are not directly affected by the
motion processor’s behavior, however they can be read or written through the motion processor’s
ReadIO and WriteIO commands.
24
Navigator-PC/104 User’s Guide