![Performance Motion Devices PR8358120 Скачать руководство пользователя страница 45](http://html.mh-extra.com/html/performance-motion-devices/pr8358120/pr8358120_user-manual_1529622045.webp)
Operation
Prodigy/CME PC/104 User’s Guide
45
2
2.4.7
Downloading and Verifying User Application
Code
The C-Motion Engine development system is used to create, compile, and download user application code. The
development system can download the file image for the current code project being worked on, or a specific named
file can be downloaded. Downloaded files images end with a “.bin” extension. Only one code image file may be
downloaded into the C-Motion Engine at a time. Downloading a new image automatically erases the previous code
image.
There are times when it may be useful to read specific characteristics of a code file that has been downloaded into the
C-Motion Engine. For example a host controller in a production environment may want to confirm that the host
application code version actually loaded on the C-Motion Engine matches the expected production code version. To
accomplish this, the PRP action
Get
is used, specifying a resource ID of
CMotionEngine
. Using this command the file
name of the downloaded user application code, the checksum of the downloaded file, the date & time of file creation,
and the version number of the C-Motion Engine itself (loaded by PMD at the Prodigy/CME factory) can be retrieved.
For complete information on the format and function of these, and other PRP actions, refer to the
Prodigy/CME
Programmer’s Reference
.
2.4.8
C-Motion Engine Heartbeat LED
The Prodigy/CME PC/104 card utilizes an LED, locatable using Figure 1-1 on page 15, to provide visual
confirmation of C-Motion Engine activity. Two different states can be distinguished, user application code running,
and user application code not running.
User application code running means that a file has been downloaded and is actively being executed by the C-Motion
Engine. This is indicated by a steady on/off blinking of the LED, once per second.
If no user application code has been downloaded, or if code execution has been halted by the user or for some other
reason, the LED changes to a ‘chirp’ indication, with a blinking pattern consisting of very brief on, followed by one
second off.
2.5
Communications Functions
The Prodigy/CME PC/104 card provides four different port connection types, PC/104 bus, Serial, CANbus, and
Ethernet. Access to these communications resources is provided via a peripheral connection. A peripheral is a
resource, and is utilized by various PRP actions to send and receive messages to port connections.
Basic access to either the PC/104 bus, Serial, CANbus, or Ethernet ports is accomplished by opening a peripheral with
the detailed connection parameters that will be used during communications associated with that peripheral
connection, and then sending and receiving messages via the peripheral resource address.
For example to create an Ethernet TCP peripheral connection, the IP Address and port number is provided. If the
connection is successfully established, that peripheral is used as the reference for any future communications through
that connection.
In the subsequent sections the operational characteristics of the PC/104 bus, Serial (Serial 1 & Serial 2), CANbus, and
Ethernet network communication ports will be detailed. See Section
3.2.1, “Peripheral Connections,” on page
more information on the
Peripheral
resource and how it is used.
Содержание 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 ...