![Performance Motion Devices PR8358120 Скачать руководство пользователя страница 60](http://html.mh-extra.com/html/performance-motion-devices/pr8358120/pr8358120_user-manual_1529622060.webp)
Accessing Card Resources
60
Prodigy/CME PC/104 User’s Guide
3
External communications use this same bus to access the serial, CANbus, or Ethernet communication ports. This
means that commands to card resources may originate from outside the card via the serial, CANbus, or Ethernet ports,
or internally, via the C-Motion Engine.
A powerful feature of the Prodigy/CME PC/104 card’s communication bus is that it can process multiple
communication requests simultaneously. For example the C-Motion Engine can be used to send motion commands
to the on-card Magellan Motion Processor, while an external host controller can communicate to the same Magellan
via the Ethernet port to monitor progress of the moves, and display results on a remote capture/analysis program
such as PMD’s Pro-Motion software.
3.2.1
Peripheral Connections
The Prodigy/CME PC/104 card provides four different programmable network connection types, PC/104 bus,
Serial, CANbus, and Ethernet. These communication resources are represented in PRP by a construct called a
peripheral connection. A peripheral is a resource (resource ID: 4), and is provided, or utilized, by various PRP actions
to send and receive messages to network connections.
Obtaining access to either the PC/104 bus, Serial, CANbus, or Ethernet port is accomplished via the PRP
Open
action. This action opens a peripheral by specifying a sub-action of
OpenISA
,
OpenSerial
,
OpenCAN
, or
OpenTCP
or
OpenUDP
, as well as the detailed connection parameters that will be used during communications with that specific
peripheral connection. Each new open peripheral connection receives an automatically assigned address. The
application code that requests the new peripheral connection must record that provided address for future use, and it
is this address that is used within the PRP message to reference the newly created peripheral connection.
To send a message to the new peripheral connection, a timeout parameter and the desired message is loaded into the
PRP message body and the
Send
action is specified. To retrieve messages from that peripheral connection the
Receive
action is used. The
Receive
action requires that an amount of time (the communication timeout) be loaded into the
message body. If a message is not received in the specified amount of time an error is returned.
While it is allowed to have more than one communications channel send motion commands to the Prodigy/CME
PC/104 card’s Magellan Motion Processor and another channel send monitoring-related requests, it is not advis-
able to have multiple communication channels send motion commands to the Magellan at the same time. This may
result in unexpected or unsafe motion.
Automatically assigned addresses generally increment by one each time they are assigned, however this should
not be assumed. The exact return address value should be stored and only that value should be used to reference
that specific peripheral. Each
Peripheral
Open action is specific to the type of connection being requested. For
example there is an ‘open peripheral’ command for CANbus communications, one for Serial communications, and
so on.
Содержание PR8358120
Страница 6: ...vi Prodigy CME PC 104 User s Guide This page intentionally left blank ...
Страница 8: ...viii Prodigy CME PC 104 User s Guide This page intentionally left blank ...
Страница 56: ...Operation 56 Prodigy CME PC 104 User s Guide 2 This page intentionally left blank ...
Страница 68: ...Accessing Card Resources 68 Prodigy CME PC 104 User s Guide 3 This page intentionally left blank ...
Страница 88: ...Electrical Reference 88 Prodigy CME PC 104 User s Guide 4 This page intentionally left blank ...
Страница 98: ...Interconnect Module 98 Prodigy CME PC 104 User s Guide 5 This page intentionally left blank ...
Страница 102: ...102 Prodigy CME PC 104 User s Guide This page intentionally left blank ...