advertisement
Command Status Codes
3
Command Status Codes
Code
$09
$0A
$0B
$0C
$0D
$0E
$0F
$10
$11
$12
$13
$14
$00
$01
$02
$03
$04
$05
$06
$07
$08
The VMIVME-2540 local CPU responds to VMEbus commands with status codes relevant to the commanded action as shown in Table 3-21 below. These status codes are described in Modes of Operation on page 64 with the corresponding mode of operation. These codes are applicable for both command status and channel status conditions. However, some of the commands, such as command acknowledge are applicable only to command write operations by the host. Other commands are applicable only for channel status reporting. Command and channel columns of
Table 3-21 indicate the applicability of the status codes. A nonzero command status code is always returned in the command status byte ($0007) in response to a host write operation to the command code register ($0004) with the exception of the clear command status command which returns a zero.
The command status code provides the primary synchronization method between the host program and the VMIVME-2540 by always providing a nonzero status code when the command processing is completed for the command sent by the host program. Failure to wait for a command status word for each command sent can result in fatal errors occurring during command processing by the VMIVME-2540 local CPU.
Table 3-21 VMIVME-2540 Status Codes
Status Description
NULL
Command Acknowledge
Event Count Ready
Period Measurement Ready
Frequency Measurement Ready
Pulse-width measurement Ready
Quadrature Position Measurement Ready
Limit Alarm
Timer Alarm
Channel Allocation Error
Bounds Error
Period Error
Pulse width Error
Frequency Error
Scale Error
Reserved
Gate Error
Limit Error
Active Channel Error
Request Denied
Under-Range**
Command
Yes
Yes
Yes
Yes
Yes
Yes
No
Yes
Yes
Yes
Yes
No
Yes
Yes
Yes
No
No
No
Yes
No
No
Channel
No
No
No
No
No
Yes
No
No
No
No
No
Yes
Yes
No
Yes
Yes
Yes
Yes
Yes
Yes
Yes
NOTE:
** Returned as a status code with a valid measurement. Indicates a higher resolution is obtainable and ranging is active.
63
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
advertisement
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Related manuals
advertisement
Table of contents
- 10 List of Figures
- 12 List of Tables
- 14 Overview
- 15 Disclaimer: Notice About Equivalent Parts
- 16 Reference Material List
- 16 Physical Description and Specifications
- 17 Safety Summary
- 17 Ground the System
- 17 Do Not Operate in an Explosive Atmosphere
- 17 Keep Away from Live Circuits
- 17 Do Not Service or Adjust Alone
- 17 Do Not Substitute Parts or Modify System
- 17 Dangerous Procedure Warnings
- 18 Safety Symbols Used in This Manual
- 20 Chapter 1 - Theory of Operation
- 20 Functional Description
- 20 System Timing Controller Front-End Logic
- 20 RS-422 Line Driver and Receiver
- 21 Synchronizer and Conditioning Logic
- 23 AM9513A System Timing Controller
- 24 QPM Direction Change Interrupt Logic
- 25 I/O Processor
- 25 68HC000 CPU
- 25 Decode and Control Logic
- 25 Local Bus Arbitration
- 27 Local Address Decode
- 29 Local I/O Functions
- 31 Local Memory
- 31 EPROM Firmware
- 31 Static RAM
- 32 Local Interrupt Controller
- 32 STC Interrupts
- 32 VMEbus Command Interrupt
- 34 VMEbus Slave Interface
- 34 VMEbus Slave Address Decode
- 34 Command Status Code
- 36 VMEbus Interrupter Modules
- 38 Chapter 2 - Configuration and Installation
- 39 Unpacking Procedures
- 40 Configuration
- 41 DIP Switch Settings
- 41 Jumper Options
- 43 I/O Connector Pin Assignments
- 46 Recommended Discrete Wire Connectors and Terminal Blocks
- 47 TTL/Single-Ended Input Signal Compatibility Configuration
- 50 Chapter 3 - Programming
- 52 VMEbus Interface Memory Map
- 53 Board ID/Configuration Buffer
- 54 Firmware Revision Level
- 54 Command Code
- 54 Command Status Code
- 55 Command Status Interrupt Request Level
- 56 Command Status Interrupt Vector
- 56 Channel ID
- 56 Continuous/Discrete Flag
- 57 Measurement Ready Flag
- 57 Measurement Channel ID
- 57 Channel Measurement Status
- 58 Channel Control Block Registers
- 58 Timer Channel Control Block
- 59 VMIVME-2540 Continuous/Discrete Flag Buffer
- 59 VMIVME-2540 Measurement Data Valid Flags Buffer
- 59 VMIVME-2540 Firmware Release Information
- 60 VMIVME-2540 Daignostic Buffer
- 61 Command Interface
- 62 Programming Using the Command Interface
- 64 Command Status Codes
- 65 Modes of Operation
- 66 Input Modes of Operation
- 67 Output Modes of Operation
- 67 Timing Modes of Operation
- 68 Channel Control Blocks Common Parameters
- 69 Operation Mode Selection Flag
- 70 Operational Mode Select Flag
- 71 Command Descriptions
- 71 Initialization and Synchronization Command Codes
- 72 Channel Input/Measurement Command Codes
- 72 Integer 16-bit Event Counting
- 73 Integer 32-bit Event Counting
- 75 Period Measurement
- 76 Frequency Measurement
- 77 Pulse-Width Measurement
- 79 Quadrature Position Measurement
- 82 Integer Quadrature Position Measurement
- 83 16-bit Integer Period Measurement
- 84 32-bit Integer Period Measurement
- 86 32-bit Integer Pulse-Width Measurement
- 87 Group Acquisition Mode (Integer QPM)
- 88 16-bit Integer Pulse Measurement
- 89 Delayed Event Timer with VMEbus Interrupt
- 90 Programming Strategies for Input Operations
- 91 Continuous Data Acquisition Mode
- 92 Discrete Data Acquisition Mode
- 94 Channel Output/Waveform Generation Command Codes
- 94 16-bit Frequency Divider
- 95 32-bit Frequency Divider
- 96 Period/Pulse-Width Generation
- 97 Frequency/Duty Cycle Generation
- 97 Pulse Sequence Generation
- 98 Programmed Output Mode
- 99 Quadrature Position Control
- 100 Programming Strategies for Output Operations
- 100 Timer Operation Command Codes
- 100 Timer/Periodic Interrupt
- 101 Auxiliary Commands
- 103 Getting Started
- 118 Appendix A - Example Code
- 119 Terminal Output of Program gs.c
- 121 Programming Example