The text of a manual · part 16 of 23
Owner's Manual: BayTech M Series DAC, pages 151 to 160
Pages 151 to 160 of 229
The original document is the PDF (499 KB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the BayTech M3 DAC
Page 151
M SERIES DAC BASE UNIT AND MODULE OPERATION ____________________________________________________________________________ can use one of the following formats as shown for the CBn<cr> (clear buffer) command: CB1,2,3,4,5,6,7,8<cr> CB0<cr> CB1,2,4,5<cr>
Clear the buffer for Ports 1-8 Clear the buffer for Ports 1-8 Clear the buffer for Ports 1, 2, 4, and 5
CLEAR BUFFER (CB) COMMAND The Clear Buffer (CB) command deletes all present messages or data in the buffer for the specified port(s) in any of the reporting modes. This command has the following format: CBn<cr> where n is the desired port number (1 to 4 or 0 for all). REPORT ALL BUFFERED MESSAGES (RA) COMMAND The Report All Buffered Messages (RA) command instructs the module to send all messages currently stored in the buffer for the specified port(s) starting with the lowest numbered port. This command has the following format: RAn<cr> where n is the desired port number (1 to 4 or 0 for all). If there are no messages, the module responds with <cr>. NOTE: If you issue an RA command and start receiving messages, the module ignores subsequent RA commands until all messages from the current port(s) have been sent to the requesting host module or the Stop Report (SR) command is received. REPORT ALL BUFFERED DATA (RB) COMMAND The Report All Buffered Data (RB) command instructs the module to send all data currently stored in the buffer for the specified port(s) whether or not it is a "message". Data from the lowest numbered port specified is sent first. This command has the following format: RBn<cr> where n is the desired port number (1 to 4 or 0 for all). If there is no data in the buffer for the specified port(s), the module responds with <cr>.
REPORT SINGLE MESSAGE (RS) COMMAND The Report Single Message (RS) command instructs the V74/V75/V87 module to send a single message currently stored in the buffer of the specified port(s). The
139
Page 152
M SERIES DAC BASE UNIT AND MODULE OPERATION ____________________________________________________________________________ message sent is the oldest message in the buffer. This command has the following format: RSn<cr> where n is the desired port number (1 to 4 or 0 for all). If there are no messages in the buffer for the specified port(s), the module responds with <cr>. STOP REPORT (SR) COMMAND The Stop Report (SR) command instructs the V74/V75/V87 module to stop sending messages or data after an RA or RB command has been issued. You can instruct the module to resume sending messages or data by issuing the desired request for messages or data command (RA, RB, or RS). This command has the following format: SRn<cr> where n is the desired port number (1 to 4 or 0 for all).
PORT ID STATUS (ID) COMMAND The Port ID Status (ID) command instructs the V74/V75/V87 to report its current Port ID status for the selected module. This command has the following format: ID<cr>. When a user sends the ID command, a status message similar to the following is sent: Unit 01, Module 02 Port I.D Port 1=01:02,1 Port 2=01:02,2 Port 3=01:02,3 Port 4=01:02,4
This message is sent for an I/O module installed in Unit 1 as Module 2 using the default Port ID settings. BROADCAST MODE The 4-port peripheral communications modules (e.g., V74) supports a "broadcast" mode where any data received by the host module is sent out all four ports of the selected module(s) simultaneously. A 4-port serial module is placed into broadcast mode by sending the port select code (default - $BT), capital "B", the desired module number(s), and <cr> to the host module. To place all peripheral communications modules into broadcast mode, send $BTB<cr>. If you wish to place multiple 4-port serial modules into broadcast mode, each module number should be separated by a comma. For example, to place three V74 modules installed as Module 2, Module 3, and Module 4 into broadcast mode using the default port select code, send the command $BTB2,3,4<cr> to the host module. The 4-port serial module remains in broadcast mode until the host module issues a disconnect command consisting of the port select code followed by <cr> (e.g., $BT<cr>).
140
Page 153
M SERIES DAC BASE UNIT AND MODULE OPERATION ____________________________________________________________________________
If a peripheral communications module is configured to operate in immediate reporting mode and the destination host module places that module into broadcast mode, the destination host module can receive data or messages from the peripheral ports while simultaneously broadcasting data out to the ports. While in broadcast mode, other host modules can connect to the I/O module(s) and issue data commands if the module(s) are in command reporting mode. The clear buffer command can be issued to any 4-port serial module in broadcast mode by another host module regardless of the programmed reporting mode. DATA/MESSAGE PRESENTATION Data presentation varies slightly in format depending on the reporting mode you are using. In full duplex mode, data is presented to the host computer and selected peripheral exactly as it is transmitted and/or received (i.e., the V74/V75/V87 module does not add any extra characters). In immediate reporting mode, messages are sent to the designated host computer with an optional port identification code preceding the actual message. For example, suppose the 4-port serial module is installed in Unit 1 as Module 2, Port ID is enabled, <cr> is the programmed message terminate character, and time tag is enabled. The 4-port serial module sends complete messages to the designated host computer which appears similar to the following: 01:02,1 06/16/98 15:55:30 MESSAGE FROM PORT 1<cr> 01:02,2 06/16/98 15:55:30 MESSAGE FROM PORT 2<cr> 01:02,3 06/16/984 15:55:30 MESSAGE FROM PORT 3<cr> 01:02,4 06/16/98 15:55:30 MESSAGE FROM PORT 4<cr> where 01:02,x represents Unit 1/Module 2/Port x, 06/16/94 15:55:30 is the time tag indicating that the message was recorded on June 16, 1998 at 3:55:30 pm, and MESSAGE FROM PORT x<cr> is the actual message (x = 1 to 4). If you are in command reporting mode and request a single message or all messages from Port x, you will receive a single message or all messages that appear in a format similar to that shown above. The Port ID can also consist of the device name of the port. If you are operating in command reporting mode and issue the RBn<cr> command, the I/O module sends all buffered data from the requested port(s) with each data block preceded by the Unit#:Module#,Port# or device name. Only data buffered at the time the RBn<cr> command is issued is sent to the host computer. Data received after the RBn<cr> command has been issued is buffered and requires another command to be sent to the host computer.
141
Page 154
M SERIES DAC BASE UNIT AND MODULE OPERATION ____________________________________________________________________________
V77 OPERATION GENERAL The V77 ADM-1 may be operated as 8 differential or 16 single ended input channels. The input source is an analog voltage signal which is sampled and digitized into a data message. The data message is sent to a host communication module automatically or upon request. The host communication module is the primary user interface to the V77 ADM-1 which allows a host computer or terminal to change configuration or transmit data commands and receive data messages. Each data message may be presented in a hexadecimal, decimal, or voltage format and will be preceded by the unit/module/channel number from which the data message came. The data message may be optionally appended with a "real time" Time Tag showing the date and time the data message was recorded. Data resolution is 12 bits. Data commands are used to instruct the V77 ADM-1 to perform various tasks that pertain to data acquisition. These include calibration, buffer clearing, report a single data message or all data messages in the receive buffer, and sample/report a single data message on demand. You have the choice of programming the V77 ADM-1 via verbose (menu-driven) or non-verbose (dynamic) configuration mode. When using verbose configuration mode, a series of menus will prompt you to enter the desired configuration parameters. Non-verbose or dynamic configuration mode allows you to program certain parameters of the V77 ADM-1 by downloading configuration commands. USER-PROGRAMMABLE FEATURES You may program the Sampling Setup, Reporting Setup, Channel Input Setup, and enable/disable Dynamic Configuration on the V77 ADM-1. SAMPLING SETUP Sampling Setup allows you to program how the V77 ADM-1 takes samples of the analog input voltage signals. The items you may program in the Sampling Setup include Sampling Method, Sample Start Time, Sample Interval, Sample Rate, and Number of Samples to Average. SAMPLING METHOD
142
Page 155
M SERIES DAC BASE UNIT AND MODULE OPERATION ____________________________________________________________________________
Sampling Method is the manner in which sampling is initiated. The V77 ADM-1 provides three Sampling Methods. These are Command (upon request via data commands only), Immediate (upon exiting configuration), and Schedule (where sampling begins at a specified time). The default Sampling Method is Command. SAMPLE START TIME Sample Start Time is the time sampling begins when Schedule Sampling Method is selected. The start of sampling may be delayed up to twenty-four hours from the current time recorded by the M Series time-of-day clock. The default Sample Start Time is 00:00. SAMPLE INTERVAL You may program the V77 ADM-1 to sample continuously or in repetitive periods where the V77 ADM-1 will sample for a certain period of time, stop sampling, and then resume sampling after a specified time interval. Sample Interval is the time between the start of sampling periods. The duration of a sampling period is determined by the Sampling Rate and the Number of Samples to average. Continuous sampling is selected by choosing no Sample Interval. The default Sample Interval is 00:00:00 (continuous sampling).
SAMPLE RATE Sample Rate is the actual number of samples an V77 ADM-1 channel will read in one second. Sample Rate may range from 1 to 4000 samples per second (S/sec). The sample rate for an individual channel is the programmed rate divided by the number of active channels. The default Sample Rate is 1 S/sec. NUMBER OF SAMPLES TO AVERAGE The Number of Samples to Average is the number of samples averaged per data message. The V77 ADM-1 will sample at a certain Sampling Rate and average a specified number of samples. This average will then be quantized into a discrete digital value and sent to a host module as a data message upon request or automatically depending on the Reporting Method. The Number of Samples to Average may range from 1 to 4000 samples. The default Number of Samples to Average is 10 samples. REPORTING SETUP
143
Page 156
M SERIES DAC BASE UNIT AND MODULE OPERATION ____________________________________________________________________________
Reporting Setup allows you to program how the V77 ADM-1 reports data messages to the host module. The items you may program in the Reporting Setup include Reporting Method, Report Start Time, Report Interval, Set Host Address, Data Format, Time Tag, and Terminating Character(s). REPORTING METHOD Reporting Method is the manner in which data messages are sent to the designated host module. The V77 ADM-1 provides three Reporting Methods. These are Command (upon request via data commands), Immediate (upon exiting configuration), and Schedule (where reporting begins at a specified time). The default Reporting Method is Command. REPORT START TIME Report Start Time is the time reporting begins when Schedule Reporting Method is selected. The start of reporting may be delayed up to 24 hours from the current time recorded by the M Series time-of-day clock and reporting will occur in cyclic periods as determined by the Report Interval. The default Report Start Time is 00:00. REPORT INTERVAL You may program the V77 ADM-1 to report in repetitive periods using Schedule Reporting Method, where the V77 ADM-1 will report all data messages in the receive buffer after the specified Report Interval has elapsed. The V77 ADM-1 will report until the buffer is empty and then report again after the specified Report Interval has expired. The default Report Interval is 00:00 (every 24 hours). HOST ADDRESS Host Address is the designated host module where data messages are sent when using Immediate or Schedule Reporting Method. The Host Address consists of the Unit Number (1 to 32), Module Number (1 to 16), and Port Number (1 to 4) of the designated host module. The default Host Address is Unit 1, Module 1, Port 1. DATA FORMAT Data Format is the format of the data messages sent to the designated host module which may be in Hexadecimal, Decimal, or Engineering Units. When Hexadecimal Data Format is selected, the data message will appear as a hexadecimal value between 000 Hex (low range) and FFF Hex (high range). When Decimal Data Format is selected, the data message will appear as a decimal value between 0 (low range) and 4095 (high range). When Engineering Units Data Format is selected, the data
144
Page 157
M SERIES DAC BASE UNIT AND MODULE OPERATION ____________________________________________________________________________ message will appear as the actual sampled voltage. The default Data Format is Hexadecimal. TIME TAG When Time Tag is enabled, a time tag is appended immediately after the data. The time tag consists of the month, day, year, hour, minute, and second at which the data was calculated. Time Tag may be enabled or disabled. The default Time Tag is disabled. TERMINATING CHARACTER(S) The Terminating Character(s) is added at the end of a complete data message to match the requirements of the host terminal or application software. The Terminating Character(s) consists of one or two hexadecimal characters. The default Terminating Characters are 0D Hex (cr) followed by 0A Hex (lf). CHANNEL INPUT SETUP Channel Input Setup allows you to program the various measurement features of the V77 ADM-1 inputs. The items you may program in the Channel Input Setup include Range, Unipolar/Bipolar, Single Ended/Differential, and Active Channels. RANGE Range is the desired working voltage range of the channel inputs. You may choose one of nine different voltage ranges. The voltage range depends on the Unipolar/Bipolar voltage input polarity setting. The unipolar voltage ranges are: 0 to +10 volts, 0 to +5 volts, 0 to +2.5 volts, and 0 to +1.25 volts. The bipolar voltage ranges are -10 to +10 volts with jumper JP1 installed, -5 to +5 volts, -2.5 to +2.5 volts, -1.25 to +1.25 volts, and -0.625 to +0.625 volts. The default Range is 0 to +10 volts. UNIPOLAR/BIPOLAR The Unipolar/Bipolar setting is used in conjunction with the Range to establish the desired input voltage range. A Unipolar setting allows an input to range from 0 to +X volts and a bipolar setting allows an input to range from -X to +X volts where X is the selected voltage range. The default Unipolar/Bipolar setting is Unipolar. SINGLE ENDED/DIFFERENTIAL
145
Page 158
M SERIES DAC BASE UNIT AND MODULE OPERATION ____________________________________________________________________________
The Single Ended/Differential selection provides selection of single-ended or differential operation. Single Ended mode allows 16 active channels and Differential mode allows 8 active channels. The default Single Ended/Differential setting is Single Ended mode. ACTIVE CHANNELS The Active Channels selection is used to enable individual input channels on the V77 ADM-1 for data acquisition. Single Ended mode allows up to 16 active channels and Differential mode allows up to 8 active channels. The default Active Channels setting has Channel 1 active and all other channels inactive. DYNAMIC CONFIGURATION You may enable or disable Dynamic Configuration for the V77 ADM-1. Dynamic configuration mode allows non-verbose or "on-the-fly" configuration commands to be issued to the V77 ADM-1. The default Dynamic Configuration setting is disabled. DATA COMMANDS You may issue V77 ADM-1 data commands through a host module to perform single operations while temporarily overriding the module's current operating configuration. Some data commands apply to all types of DAC modules, while others apply to specific modules. Data commands may be entered repeatedly to get specific data messages or to direct the V77 ADM-1's actions. You may issue a single data command for action on multiple channels. Data commands must be used to obtain data when using Command Reporting Method. V77 ADM-1 data commands are sent through a host module using the following procedure: 1.
2.
146
Select the V77 ADM-1 from the host module by sending a select sequence which consists of the port select code ($BT - default), the appropriate unit number followed by a colon (01: to 30: - for cascaded units only), the desired module number (2 to 16), and a terminating character for <cr> (0D Hex). For example, to select an V77 ADM-1 Module installed as Module 15 in a non-cascaded unit using the default port select code, send $BT15<cr>.
Once the V77 ADM-1 is selected, it enters Command Mode and allows you to send data commands. The V77 ADM-1 data commands begin with two capital letters designating the specific command and are terminated with <cr>. Most data commands also require a number
Page 159
M SERIES DAC BASE UNIT AND MODULE OPERATION ____________________________________________________________________________ between the command letters and <cr>. This number is typically the desired input channel(s) for the data command. If you have a requirement to send the data command to multiple channels simultaneously, you may use one of the following formats as shown for the SA (sample) command: SA1,2,3,4,5,6,7,8<cr> SA1-8<cr> SA/0 <cr> SA1,2,4-8<cr>
3.
Take a single sample for Ports 1-8 Take a single sample for Ports 1-8 Take a single sample for Ports 1-8 Take a single sample for Ports 1, 3, 4, 5, 6, 7, and 8
After you have sent the desired data command(s) to the V77 ADM1 module, you may disconnect by sending $BT<cr>. You may disconnect from the V77 ADM-1 and select a different module or the base unit by sending $BTn<cr>.
IMPORTANT: If the V77 ADM-1 is operating in self reporting mode (i.e., Immediate or Schedule Reporting Method) and a host device issues a data command, the host system must disconnect by sending the Port Select Code and <cr> before the V77 ADM-1 will resume sending data messages to the designated host module. CALIBRATE COMMAND The Calibrate (CA) command initiates auto-calibration. When this command is sent, the V77 ADM-1 tests for offsets and automatically generates a correction value to remove any that are observed. These offset corrections are applied to all A/D values from 0/ t o 1/0 0/ % of Full Scale (FS). Corrections are continually applied to all reported data messages until another Calibrate command is issued. At that time, a new calibration is performed and any resulting corrections applied to future readings. The Calibrate command has the following format: CAn<cr> where n=/0 to 3 (/0 = all, 1 = 25%, 2 = 5/0 %, and 3 = 75% of FS). CLEAR BUFFER COMMAND The Clear Buffer (CB) command is useful to clear all old data from the FIFO buffer when a new data set is started. If the buffer is not cleared, previous data samples remain in the buffer until overwritten. The Clear Buffer command has the following format:
147
Page 160
M SERIES DAC BASE UNIT AND MODULE OPERATION ____________________________________________________________________________ CBn<cr> where n = Channel# (1 to 16 or 0 for all). REPORT ALL BUFFERED SAMPLES COMMAND The Report All Buffered Samples (RA) command instructs the V77 ADM-1 to report all samples currently stored in the buffer of the selected channel(s). The Report All Buffered Samples command has the following format: RAn<cr> where n = Channel# (1 to 16 or 0 for all). REPORT A SINGLE BUFFERED SAMPLE COMMAND The Report A Single Buffered Sample (RS) command instructs the V77 ADM-1 to report the first sample stored in the buffer of the selected channel(s). The Report A Single Buffer Sample command has the following format: RSn<cr> where n = Channel# (1 to 16 or 0 for all). SAMPLE COMMAND The Sample (SA) command instructs the V77 ADM-1 to read and report a single data message for each channel specified. When using Command Reporting Method, the data message is made from the programmed No. of Samples to Average taken at the programmed Sample Rate. When using Immediate or Schedule Reporting Method, the data message is made from the programmed No. of Samples to Average taken at a burst sampling rate. For example, if the Sample command is sent and the present No. of Samples to Average is 400, the data message reported is 400 samples taken at the burst sample rate, averaged, then reported. The Sample command has the following format: SAn<cr> where n = Channel# (1 to 16 or 0 for all). DATA MESSAGE GENERATION
148