Accessing Card Resources
3
Sending a message to the
address indicates 'no peripheral,' and may be useful in certain situations for disabling console messages, or disabling
the Magellan's event output mechanism.
3.2.2
Although most network configurations are created once and left in place while the machine is operating, there may be
circumstances where peripheral connections are made, and are then no longer needed. If this is the case, these
connections should be 'closed,' thereby freeing that automatically assigned
via the PRP action
Figure 3-3 shows a Prodigy/CME PC/104 card being used as a production Ethernet device exerciser.
Figure 3-3:
Example
Prodigy/CME
PC/104
Architecture
with Ethernet
Device Testers
In this example the Prodigy/CME card sends messages to two different Ethernet/TCP addresses and then closes
those peripheral connections to allow the process to be repeated indefinitely.
PeriphID1 = PRP Device, Addr 0, Open
PRP Peripheral, Addr PeriphID1, Send
PeriphID2 = PRP Device, Addr 0, Open
PRP Peripheral, Addr PeriphID2, Send
PRP Peripheral, PeriphID2, Close
PRP Peripheral, PeriphID1, Close
For complete information on the format and function of these, and other PRP commands, refer to the Prodigy/CME
Programmer's Reference.
62
resource at address 0 has special meaning as the 'null' peripheral. This peripheral
Peripheral
Managing Automatically Assigned Addresses
.
Close
Host Controller
Peripheral
Prodigy/CME
PC/104 Card
Serial
C-Motion
Engine
Ethernet
device 1
// Open a peripheral connection to Ethernet device 1
// Send a test string to Ethernet device 1
// Open a peripheral connection to Ethernet device 2
// Send a test string to Ethernet device 2
// Close peripheral connection for Ethernet device 2
// Close peripheral connection for Ethernet device 1
Prodigy/CME PC/104 User's Guide
address. This is accomplished
Magellan
Ethernet
Ethernet
device 2
Need help?
Do you have a question about the Prodigy Series and is the answer not in the manual?