Models DR130/DR231/DR232/DR241/DR242 Communication Interface Instruction Manual IM DR231-11E IM DR231-11E 6th Edition
Introduction This Communication Interface User’s Manual describes the functions and commands of the optional GP-IB, RS-232-C, RS-422-A/RS-485, and Ethernet interfaces. Read this manual carefully before using these interface functions, and be sure to keep this manual on hand for future reference should any problems arise. As manuals relative to the DR130, DR231, DR232, DR241 and DR242, the following manuals are also provided. Read them if necessary. Name of manuals Manual No.
Configuration and Use of This Manual Configuration This user’s manual is composed of chapter 1 to chapter 8, Appendix, and indices. Chapter 1 Overview and Specifications of GP-IB Interface Describes the functions and specifications of the GP-IB interface and the address setting method. Chapter 2 Overview and Specifications of RS-232-C Interface Describes the functions and specifications of the RS-232-C interface and the parameter setting method.
TABLE OF CONTENTS 1 INTRODUCTION .................................................................................................................................................................... 1 CONFIGURATION AND USE OF THIS MANUAL .................................................................................................... 2 2 CHAPTER 1 OVERVIEW AND SPECIFICATIONS OF GP-IB INTERFACE 1.1 1.2 1.3 Description of Functions (GP-IB) ...............................................................
TABLE OF CONTENTS 6.3 6.4 6.5 6.6 4 Setting the Display .......................................................................................................................................... 6-5 Setting the display mode on the upper part of the display (UD) Setting the display mode on the middle part of the display (MD) Setting the display mode on the lower part of the display (LD) Setting the switching time for the displayed channel (XW) Setting the Recording ......................................
TABLE OF CONTENTS 6.
1.1 Description of Functions (GP-IB) 1 Listener Function This allows almost all settings except power on/off and operation control. • Settings except communication settings. • Operation control except power on/off.
1.1 Description of Functions Status Byte Format The format of status byte output in serial polling is as follows: Upper-level byte 0 Lower-level byte 0 0 Interrupt generated at the end of A/D conversion. Interrupt generated at the time of syntax error. Interrupt generated when the internal timer is being operated or hourly, daily and monthly reports are created. Interrupt generated after storing data on media, or reading data from media (with a floppy disk drive).
1.2 Setting of Address of GP-IB Interface 1 CDE AB 4 56 789 789 Rotary switch with which address is to be set IM DR231-11E 4 56 23 CDE AB 23 F0 1 F0 1 Address is the numeral to which the arrow is pointed 1-3 Overview and Specifications of GP-IB Interface The GP-IB address is set with the rotary switch located on the side of the GP-IB module connector. Turn the arrow on the rotary switch with a flat-blade screwdriver or the like to align the arrow with the address to be set.
1.
2.1 Description of Functions (RS-232-C) Listener and Talker Functions Data Output When trigger(GET) becomes activated DR130/DR230/DR240 will store the new data in a buffer. When an output request such as the FM command is received, these new data will be output. IM DR231-11E 2-1 2 Overview and Specifications of RS-232-C Interface Listener Function This allows almost all settings except power on/off and operation control. • Settings except communication settings.
2.1 Description of Functions Commands Applicable to RS-232-C Only The following commands are only applicable to RS-232-C. ESC T Trigger Execution Setting ESC T Description Before executing this command, select the output data using the TS command. The data selected with the TS command are prepared for output. The data are output with the FM, LF, CF, MF or RF command. ESC S Status Output Command Setting ESC S Description The status for a sent command is output.
2.2 Electrical & mechanical specs Connection format Communication format Synchronizing format : : : : Baud rate (bps) START bit Data length Parity STOP bit Connector Hardware handshake Software handshake Reception buffer length Escape sequence : : : : : : : : : : Conform to the EIA RS-232-C Standard. Point-to point Half duplex Start-stop asynchronous transmission (synchronized by start/stop bit) 150, 300, 600, 1200, 2400, 4800, 9600, 19200, 38400 1 bit, fixed. Either 7 or 8 bits (selectable).
2.3 RS-232-C Interface Connection When connecting this instrument to a personal computer, first it is necessary to match settings such as handshake format, data transmission speed, and data format at the computer’s side. For details relating to these settings, refer to the description on this and following pages. Furthermore, make sure to use an interface cable which matches this instrument’s specifications. Connector and Signal Names 2 3 4 5 20 7 Numeric values in the above figure indicate Pin Nos. 2.
2.3 RS-232-C Interface Connection RS-232-C Signal List and Corresponding JIS & CCITT Abbreviation Signal Table Abbreviation Pin No.
2.4 Handshake Format Selection In order to ensure proper data transfers between the recorder and the host computer via the RS-232C interface, a mutual procedure is required for processing the electrical signals. Such a procedure is referred to as a ‘handshake’. Several handshake formats are available, with selection depending on the host computer being used. The same handshake format must be designated for both the recorder and the host computer.
2.4 Handshake Format Selection XON-DTR • Transmission data control • Reception data control • Reception data control CTS-DTR • Transmission data control • Reception data control IM DR231-11E : A hardware handshake status is established between the recorder and the host computer. The recorder will stop a data transmission if a ‘CTS=False’ status is established, and will resume the transmission when a ‘CTS=True’ status is established.
2.5 Communication Data Format The RS-232-C interface uses a START-STOP communication format. With this format, a START bit is placed at the beginning of each character transmitted, followed by the data bits, parity bit, and stop bit, in that order. (See the figure below.) ‘Line idle’ condition Return to ‘line idle’ condition (dotted line), or proceed to next data START bit.
2.6 RS-232-C Interface Parameter Setting Procedure Setting of the RS-232-C parameters must be carried out using the 3 dipswitches located next to the module connector. 1 2 Parameter setting switch 2 1 2 Parameter setting switch 3 1 2 3 4 Data length Baud rate 3 4 ON OFF Baud rate Stop bit Parity 3 4 ON OFF Not use Handshake system Baud rate (No.1 to 3 of setting switch 1 and No.4 of setting switch 2) Baud rate No.1 No.2 No.3 No.
3.1 Description of Functions (RS-422-A/RS-485) Listener and Talker Functions Listener Function This allows almost all settings except power on/off and operation control. • Settings except communication settings. • Operation control except power on/off. • Call-up of setting data • Specifying of output data (specifying of channel numbers or output data types) 3 Data Output When trigger(ESC T) becomes activated DR will store the new data in a buffer.
3.
3.3 RS-422-A/RS-485 Interface Connection The following explains how the RS-422-A/RS-485 module is connected to the computer.
3.3 RS-422-A/RS-485 Interface Connection Connecting to the Host Computer Can be connected to a host computer with RS-232-C, RS-422-A, RS-485 ports. • In the case of RS-232-C, a converter is used as shown in the diagram below. • For information on recommended converters, refer to “Converters” in the latter. • Dip switch needs to be changed depending on whether it is a two-wire system or four-wire system. Refer to “3.5 RS-422-A/RS-485 Interface Parameter Setting Procedure.
3.3 RS-422-A/RS-485 Interface Connection In the case of two-wire system Connect send and receive terminals with the same signal polarity on the terminal arrangement of the RS-422-A/RS-485 module. Only two wires are used in connecting to other units.
3.3 RS-422-A/RS-485 Interface Connection Converter Recommended converter : Sharp Z-101HE Caution Some converters other than the recommended, do not have the FG and SG terminals insulated. In such cases, do not connect as in the diagram on the previous page (do not connect anything to the FG and SG terminals of the converter). Especially when it is long distance, the potential difference may damage the devices or the communication may become unreliable.
3.3 RS-422-A/RS-485 Interface Connection Minimum Response Time Because send and receive are done on the same line in the two-wire system, minimum response time needs to be set. The minimum response time is the amount of time the RS-422-A/RS-485 module waits in order for the host computer to be able to receive the data after it sends data. The time can be set in the range from 0 to 100 ms.
3.4 Communication Data Format Same as the RS-232-C interface. For a description, refer to “2.5 Communication Data Format.
3.5 RS-422-A/RS-485 Interface Parameter Setting Procedure Setting of the RS-422-A/RS-485 parameters must be carried out using the 4 dip switches located next to the module connector. SW1 1 2 3 4 ON OFF Data length Baud rate 1 2 3 4 ON OFF four-wire/two-wire Stop bit Parity SW3 1 2 3 4 ON OFF Address (upper) Minimum response time SW4 1 2 3 4 ON OFF Address (lower) Baud rate (No.1 to 3 of SW1) Baud rate No.1 No.2 No.
3.5 RS-422-A/RS-485 Interface Parameter Setting Procedure Minimum response time (No.1 to 3 of SW3) Minimum response time No.1 No.2 No.3 0ms 10ms 20ms 50ms 100ms OFF OFF OFF OFF ON OFF OFF ON ON OFF OFF ON OFF ON OFF ←Default Setting Address (No.4 of SW3 and No.1 to 4 of SW4) 3-10 Address No.4(SW3) No.1(SW4) No.2(SW4) No.3(SW4) No.
4.1 Introduction of Functions (Ethernet) Connecting to the Network The Ethernet Module DT300-41 can connect to a network conforming to IEEE802.3 through a 10BASE-T. By connecting to a network, a PC also connected to the same network will be able to read the data measured by the DR. However, to do so, the PC must have the following application software installed.
4.1 Introduction of Functions Communication Operation The flow of the communication is indicated below.
4.2 Specifications Communication Specifications Transmission specifications : 10BASE-T (CSMA/CD, 10Mbps, Baseband) Electrical/Mechanical specifications: Conforms to IEEE802.3 (Frames are not supported.) Protocols : TCP, IP, UDP, ARP, ICMP When supporting RS-232-C commands Communication format Keepalive When reading in instantaneous value data Communication format Keepalive : TCP/IP : Turn ON/OFF using dip switch 3.
4.3 Names and Functions of Each Section Dip Switch Tx (yellow) ) LINK (yellow) ON Status Indicator LED STS1 (green) OFF 1 2 3 4 STS2 (green) 10BASE-T Port Connect the RJ-45 modular jack of the twist pair cable connected to the 10BASE-T network. Setting the Dip Switch You can select the following three modes by setting the dip switch. Configuration mode: A mode in which the IP address, subnet mask, and default gateway are set for theDR.
4.3 Names and Functions of Each Section Warning A warning is being indicated when STS2 is lit. You can check the details of the warning by displaying the communication condition (see section 4.8 “Displaying the Communication Information”). Error An error occurs when the communicaiton fails. When communication error or EEPROM error occurs, the DR must be repaired.
4.4 Setting the IP Address Before connecting to the network, you will set the IP address, subnet mask, and default gateway of the DR. There are two methods in setting these parameters. Configure from the SET menu of the DR Configuring from the PC To configure from the PC, you will need the Data Acquisition Software 32 that came with the DR or the Data Acquisition Software 32 Plus that is sold separately.
4.4 Setting the IP Address Configuring from the PC Connect the PC and the DR as shown below. The PC must have the Data Acquisition Software 32 or the Data Acquisition Software 32 Plus installed. Set the mode of the Ethernet module to configuration mode. DR Ethernet module PC ETHERNET I/F 10BASE-T Hub 10BASE-T cable 4 Ethernet card 1. Switch on power of your PC and the DR, Startup DAQ 32 and select Software Configurator with the Launcher toolbar. 2.
4.5 Connection Methods When Directly Connecting to the PC If you are directly connecting the DR and the PC to read in the measured data, connect them through a hub as follows. Ethernet module DR PC ETHERNET I/F 10BASE-T Hub Ethernet module DR Ethernet card PC ETHERNET I/F 10BASE-T Ethernet card 10BASE-T cable When Connecting to the Network An example in which one DR and one PC are connected to the network is shown below.
4.6 Checking the Connection (Loopback test) Automatically tests the condition of the physical connection of the DR to the network. Mode Setting Set the dip switch of the Ethernet module to test mode (switch 1: OFF, switch 2: ON). Functions of the Ethernet module are suspended while in test mode. Therefore, it’s necessary to set the dip switch to communication mode after testing. Note • After testing, set the dip switch to communication mode and reboot the DR.
4.7 Transferring the Instantaneous V alues The instantaneous values of the data measured on the DR (current measured data) are transmitted to the PC that is connected through port No. 34151. Note • Up to four PCs can connect to port No. 34151 of one DR. • The commands described here do not affect the status byte. • EF, EL, and EB command do not support sub-delimiters. The measured data are transmitted using the following command.
4.7 Transferring the Instantaneous Values The alarm status indicates two levels with one byte.
4.8 Displaying the Communication Information The following information can be displayed by using Telnet. • Warning information • Connection information • Network information • The timeout for the information display application is 15 minutes. The operating procedures on Windows 95 Telnet are shown below. 1. Set the mode of the Ethernet module to communication mode and connect the DR and the PC. 2. Start the Telnet application that comes with Windows 95. 3.
4.8 Displaying the Communication Information 7. Enter any of the following commands to display the various information. wlog: Warning information con: Connection information net: Network information quit: Terminate the information display and disconnect the connection If you are using UNIX, follow the directions below. 1. telnet 133.140.1.1 34159 Port DR's IP address or telnet open 133.140.1.1 34159 Port DR's IP address 4 2. Enter any of the following commands: wlog, con, or net.
4.9 Setting the T imeout A PC connected to the DR for a certain period of time is automatically disconnected. ET Mode Syntax p1 Description Sets the timeout. Operation mode ETp1 Timeout time 0 No timeouts (Default setting).
5.1 Command Format • Channel number A channel number ..................... 3 characters Range of channel numbers ....... 6 characters AAA-BB For details of channel numbers, see page 5-4. Note • If the same setting is to be done for subsequent channels, it can be achieved by connecting channels with a “-” (minus sign). However, channels that can be set subsequently are effective only in the same unit.
5.1 Command Format Terminator Any one of the following forms a terminator. • CR + LF • LF • EOI = True (If EOI is to be used for a terminator, add EOI = True to the last parameter character.) Sub-delimita Several commands can be executed in a row when they are divided by a semicolon (;). Example XA2, 2, 0.5 ; XV4 ; XI2, AUTO CrLf Note • The total data length from the first character to the terminator should not exceed 200 bytes.
5.2 Command Syntax In this manual, each command is explained as shown below. Command function Command SD Set date & time. Effective command mode Command syntax Mode Set Parameter description Example of setting Ex. Explanation of the way to Comments use and remarks in more detail Operation mode SDp1, p2 p1 year, month, day p2 hour, min., sec. Set the clock inside the DA to July 1, ’96, 13:00:00 SD96/07/01, 13:00:00 • The formats of p1 and p2 are fixed to 8 characters.
5.3 Setting a Channel No., and Alarm Output Relay No. Channel and relay numbers are expressed as shown below in three characters. Unit No. + Slot No. + Number in slot 12 3 Channel/relay No. Slot No. (In case of channel/relay No. 10, Slot No. + 1) Unit No. ("A" for optional computation channel) Channel Number DR130/DR231/DR241 (Stand-alone type) DR232/DR242 (Expandable type) Unit No. 0 0 to 5 (Subunit: DS400/DS600) Slot No. 0 to2 (0 or 1 for DR130) 0 to 5 Channel No.
5.
5.
5.5 Input Range Parameter DC Voltage Input Nominal Parameter input format Setting range 20mV 60mV 200mV 2V 6V 20V 50V 20mV 60mV 200mV 2V 6V 20V 50V –20.000 to 20.000mV –60.00 to 60.00mV –200.00 to 200.00mV –2.0000 to 2.0000V –6.000 to 6.000V –20.000 to 20.000V –50.00 to 50.00V Parameter input format Setting range Thermocouple Nominal 0.0 to 1760.0°C 0.0 to 1760.0°C 0.0 to 1820.0°C –200.0 to 1370.0°C –200.0 to 800.0°C –200.0 to 1100.0°C –200.0 to 400.0°C 0.0 to 1300.0°C 0.0 to 2315.0°C –200.
5.5 Input Range Parameter Contact Nominal Parameter input format VOLT LEVL CONTACT CONT *1: Less than 2.4 V → Off (0), 2.4 V or more → On (1) *2: Contact On (1), Contact Off (0) Setting range 0 to 1*1 0 to 1*2 DC Current Input Nominal Parameter input format Setting range 20mA 20mA -20.000 to +20.000mA Power Monitor Input range Nominal Parameter input format Setting range 25V-0.5A 25V-5A 250V-0.5A 250V-.5A 25V-0.5A 25V-5A 250V-0.5A 250V-5A 25VAC, 0.5A 25VAC, 5A 250VAC, 0.
5.
5.
ASCII Code Table 0 0 1 2 3 SP 0 4 5 6 7 8 9 A B C D E p P 1 1 A Q a q ° 2 2 B R b r Ω 3 C S c s µ 4 D T d t ε 3 # 4 5 % 5 E U e u 6 & 6 F V f v 7 G W g w 7 ( 8 H X h x 9 ) 9 I Y i y * : J Z j z + ; K k L l – M m E . N n F / O o LF B C D CR 5 Command Format 8 A F Ω 5.
6.1 Setting the Input 6.1 Setting the Input SR • If any change has been made to the number, input mode (type of input or scaling), or measuring range of a given reference channel, the alarm setting of the channel for which the item “DELTA/RRJC” is being set changes to “OFF.
6.1 Setting the Input • Set the span values, p6 and p7, within the measurement range indicated on page 5-8. • Input values within 6 digits disregarding the decimal point for p6 and p7. The decimal point position is fixed to the decimal point position of the setting range of page 5-8. • The measurement range cannot be changed while executing a report. • The measurement range cannot be changed while executing a report or computation, or when a file is written.
6.1 Setting the Input • For the measurement item p6, refer to the list of measurement items on page 5-9 and 5-10. • There are items that can not be set on the measurement item, p6, depending on the wiring method or the settings on other channels. Set within the group indicated on page 5-10. • Set the span values, p7 and p8, within the measurement range indicated on page 5-8. • Input values within 6 digits disregarding the decimal point for p7 and p8.
6.2 Setting Alarms 6.2 Setting Alarms SA • Set the alarm value for the computation channel within the range of a given recording span. • Enter the p4 alarm value with up to 6 characters, excluding the decimal point. For computation channels, set the alarm value in no more than 8 digits, excluding the decimal point. • Setting the output relay number of a module that is not connected to p5 causes an error. For details on how to specify the relay number, see Page 5-4.
6.3 Setting the Display Example Use No. 1 of slot 0 to No.10 of slot 2 in the alarm output relay module connected to the main unit as AND relay outputs. XNI, 01-30 Comments • The setting is effective only in the same unit. • Set p2 with the first relay number (01=fixed) to the last relay number. If all OR outputs are to be set, set p2 to NONE. • If a remote or output relay module is not connected to the specified unit, an error occurs. XD Sets energizing or deenergizing.
6.4 Setting the Recording • The display modes are as follows: Auto Displays a channel after automatically selecting a channel. Manual Can freely change the channel to be displayed. Alarm search Displays measured data in the channel in which an alarm occurs in turn. Bargraph Displays measured data using a bargraph. Alarm status Displays alarm statuses in up to 30 channels. Relay status Displays statuses of up to 30 alarm output relays. LD 6.
6.4 Setting the Recording SZ Sets the recording zone. Example Set the message “test” to message No. 5. SG05, test Comments • For details of the character strings that can be used in messages, see the characters in the table of ASCII codes on Page 5-11.
6.4 Setting the Recording Example SB Print the range list and alarm list but do not print the parameter list related to printing or the other parameter list. SFON, ON, OFF, OFF Sets whether interpolation is performed or not. Example Perform manual printing for channel 6 in slot 3 of subunit 4. PM436, ON Comments • The optional computation channel number for a stand-alone model is A01 to A30.
6.4 Setting the Recording Example Perform tag display/recording with 7 characters, analog recording when an alarm occurs, time printing in 4 channels in a line, channel printing interval of 12.5 mm, title printing with 600 mm interval, and horizontal writing of logging records and at the intervals set for each channel. XRTAG, 7, ALARM1, OFF, OFF, 4, 12.5 mm, 600 mm, OFF, HORIZON, MULTIPLE Comments • Set the timer with the SI command (see 6-10).
6.5 Other Settings 6.5 Other Settings SD Comments • Delimit the channels set in p2 with a comma (,). For successive channels, insert a “-” (minus) between the first and last channels. Sets the date and time. Mode Setting Operation mode SDp1, p2 p1 Date (year, month, day) p2 Time (hour, minute, second) Example Set the clock in the DR230/DR240 to 1 o’clock pm, (0 min., 0 sec.) on July 1, 1996. SD96/07/01, 13:00:00 Comments • The formats for p1 and p2 are fixed at 8 characters.
6.
6.5 Other Settings • If the action mode is set to LEVL and the action is set to RECORD, SPEED_CHG, GR_TREND, or MATH,REPORT, FLAG, the set action continues from the first event occurrence to the next event occurrence. • If the event is set to TIMER, MFUNC_KEY or MATCH_TIME, the action mode to LEVL, and the action to RECORD, the set action continues from the first event occurrence to the next event occurrence. • For details on an event/action, see the separate manual (IMDR231-01E or IM DR232-01E).
6.5 Other Settings Example Do not create hourly reports and create daily and monthly reports in standard format. Create the monthly report at 10 O'clock on the first day of every month and the daily report at 10 O'clock everyday. ROOFF, ON1, ON1, 01 10 Comments • Effective only on instruments with the optional report function. • The report is output using TS4+device trigger (GET)+RF. • Date is set between 01 and 28 and hour is set between 00 and 23 for p4.
6.5 Other Settings KEY_LOCK_ON Key lock is turned on. MATH_START Starts computation. MATH_CLR_START Clears computation results then re-start computation. MATH_STOP Stops computation. MATH_ACK Clears the computation status indication. REPORT_START Starts report. REPORT_STOP Stops report. REP_RECALL_START Starts printing the report. REP_PRINT_STOP Stops printng the report. KEY_LOCK_OFF Key lock is turned off. S/U_LIST_START Setup list printing starts. S/U_LIST_STOP Setup list printing is stopped.
6.5 Other Settings XJ Selection of reference junction compensation Setup mode XJp1, p2, p3 p1 Channel number (001 to 560) p2 Selection of reference junction compensation value INT Internal compensation circuit EXT External junction compensation p3 External reference junction compensation value (-20000 to 20000) Example Set channel 01 of subunit 0 to external junction compensation at a compensation value of 1000 µV XJ001, EXT, 1000 Comments • For p2 = INT, parameter p3 is ineffective.
6.5 Other Settings Example For digital input module 60 mV, 6 V Calibrate the 20-mV range on the module in slot 1 of subunit 0. XZ0, 1, CAL/EXEC, 20 mV p2 p3 p4 p5 p6 p7 p8 p9 Correcting the calibration value manually (universal module) Setting XZp1, p2, p3, .....
6.6 Control and Execution Command 6.6 Control and Execution Command PS Starts or stops recording. Mode Setting Operation mode PSp1 p1 0 Recording starts. 1 Recording stops. Setting Example AC Mode Setting Example MP Starts or stops manual printing. Mode Setting Example LS Operation mode MPp1 p1 0 Manual printing starts. 1 Manual printing stops. Start manual printing. MP0 Starts or stops list printing.
6.6 Control and Execution Command LOGIC Data are stored each time the specified event is generated. p4 Data length (10, 20, 40, 50, 100, 200, 300, 400, 500, 1k, 2k, 3k, 4k, 5k, 10k, 20k, 30k, 40k, 50k) p5 Pretrigger Example After generating a trigger signal, store only a file of data length of 3K of the measured data. Set the retention interval at 2 min, the pretrigger to 10%. MWTRIGER, TEST, 2 min, 3K, 10 Comments • This command is effective only with a floppy disk drive function.
6.6 Control and Execution Command • Parameters p7 and p8 are set in the range from 1 to the last data number in the file. • Channel numbers are recognized in the order of input channel and channel for computation. If you set 005 for the first channel and A10 for the last channel, an ASCII conversion will be made in input channel 005 to the last input channel as well as channels A01 to A10 for computation. • This command is not executable during computation.
6.6 Control and Execution Command 0: Start the report 1: Stop the report Start the report. DR0 Comments • Effective only on instruments with the optional report function. • Measurement range, date, time cannot be changed during a report. Copy using the range copy ON also cannot be executed during a report. • All report data up to that point are cleared when a report is started. • This setting is effective when one of hourly, daily and monthly reports is ON. transmitting the RC command.
6.7 Data Output Request Command 6.7 Data Output Request Command TS 3 On/off information on channel on which specified file exists p2 File name (up to eight characters) p3 First output channel number p4 Last output channel number p5 First output data number p6 Last output data number Comments • This command is effective only with an optional floppy disk drive. • Always specify data that are output with TS command before sending MF command, and execute [GET] or [ESCT].
6.7 Data Output Request Command CF Specifies the system configuration output format. Mode Setting All modes CFp1 p1 0 Information on system-configured modules 1 Current status module information (realtime information) Comments • You must specify data to be output with the TS command and execute “GET” or “ESC T” before sending the CF command. BO Specifies the order of byte output (in binary output). e=16 Interrupt occurs when timer No. 5 operates. =0 No interrupt occurs.
7.
7.
7.
7.
7.4 Setting Data Output Format (Operation mode) Alarm setting data For alarm setting data, setting data from level 1 to level 4 are output for every channel.
7.
7.6 Output Format for Unit and Decimal Point Position These outputs are issued in the following format by the TS2 + “Device Trigger (GET)” + LF command. S1S2CCCUUUUUU, PCrLf Each symbol denotes the following: S1: Data status 1 N --------------------- Normal D --------------------- Differential input S ---------------------- Measurement range skips.
7.7 System Configuration Output Format The measurement interval and system connection data are output in the following format by the TS5 + “Device Trigger (GET)” + CF command: M : sssssCrLf S1 : 0=MMMMMM(DD)1=MMMMMM(DD)~5=MMMMMM(DD)CrLf Slot number Each symbol denotes the following: M: Measurement interval mark sssss: Measurement interval; output down to one decimal place (Example: 10.0 for a measurement interval of 10 sec.). The unit is “second.
7.8 A/D Calibration Data Output Format A/D calibration data are output in the following format by the TS8 + “Device Trigger (GET)” + LF command: This is effective only in the A/D calibration mode. XZ A/D calibration data for the first slot CrLf XZ EN A/D calibration data for the last slot Output completion CrLf CrLf Calibration data are output for every slot after the command to execute A/D calibration. The output format is the same form as in the XZ command setting shown below.
7.9 RAM Disk Output Format (File Directory Output) The following formats are output by the TS3 + [GET] + MF0 command. _FFFFFFFF, YY/MM/DD hh:mm, NNNNNN, CCC, MMCrLf -------------_FFFFFFFF, YY/MM/DD hh:mm, NNNNNN, CCC, MMCrLf _ENDCrLf Each symbol denotes the following: FFFFFFFF: File name (eight characters) YY/MM/DD hh:mm: Date and time (year/month/day hour: minute) when a trigger signal or data storage is started.
7.10 RAM Disk Output Format (ASCII Code) The following formats are output by the TS3 + [GET] + MF1 command.
7.10 RAM Disk Output Format (ASCII Code) CCC:Channel number (three characters) Channel for computation A01 to A30 (stand-alone model) A01 to A60 (expandable model) ±: Data polarity (+, -) DDDDD: Data mantissa (eight characters for computed data) ± 99999 ----------------- data overflow + 99999 ----------------- abnormal data E - E: Data exponent Note • If the RAM disk is faulty, the character string “# ERROR ON DATA MEMORY” will be output.
7.11 RAM Disk Output Format (Binary Code) The following formats are output by the TS3 + [GET] + MF2 command.
7.
7.12 RAM Disk Output Format (Channel On/Off) The following formats are output by the TS3 + [GET] + MF3 command.
7.13 Report Output Format Hourly report The hourly report is output in the following format with the command, TS4+device trigger(GET)+RF0.
7.13 Report Output Format Data status Outputs the status of the report computation result. The sum of the top numbers of the phenomena from the following items is output. 1H: Detected over-limit data during measurement 2H: Detected special data during sampling 4H: Power failure occurred during computation 80H: Numerical data valid Output data Depending on the type of report computation, the results are output in the following order.
7.13 Report Output Format Daily Report The daily report is output in the following format with the command, TS4+device trigger(GET)+RF1.
7.13 Report Output Format Extended format for the daily report If the daily report is set to ON2, extended daily report is output in the following format with the command, TS4+device trigger(GET)+RF1.
7.13 Report Output Format Monthly Report The monthly report is output in the following format with the command, TS4+device trigger(GET)+RF2.
7.13 Report Output Format Extended format for the monthly report If the monthly report is set to ON2, extended daily report is output in the following format with the command, TS4+device trigger(GET)+RF2.
7.13 Report Output Format Status output of hourly/daily/monthly report The status of the hourly/daily/monthly report is output in the following format with the command, TS4+device trigger(GET)+RF3.
8.1 GP-IB Sample Programs This section describes sample program for a system using PC 9801 series (NEC) with National Instruments GP-IB. Sample programs in this manual are writen in N88-BASIC(Standard language for PC9801 series). We hope that these samples will aid you in creating your own program. GP-IB Address ALL the sample programs given in this chapter use address 1 for DR130/DR230/DR240.
8.1 GP-IB Sample Programs Output the Unit and Decimal Point Data Read out the unit and decimal point data from DR130/DR230/DR240, display them on CRT of personal computer, and save them to floppy disk. 10 20 30 40 50 60 70 80 90 100 110 120 130 'TS2 LF OPEN "TS2.
8.1 GP-IB Sample Programs Output the measurement data (BINARY Code) Read out the measurement data by BINARY code from DR130/DR230/DR240, display on CRT of personal computer, and save to floppy disc. 10 20 30 40 50 60 70 80 90 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 260 'TS0 BO1 FM1 OPEN "TS0BIN.
8.2 RS-232-C Sample Programs This section describes sample program for a system using PC 9801 series (NEC) with the RS-232C interface. Sample programs in this manual are writen in N88-BASIC(Standard language for PC9801 series). We hope that these samples will aid you in creating your own program. Setting the RS-232-C Parameter In this sample program, the RS-232-C parameter settings are as shown below.
8.2 RS-232-C Sample Programs Output the Unit and Decimal Point Data Read out the unit and decimal point data from DR130/DR230/DR240, display them on CRT of personal computer, and save them to floppy disk. 10 20 30 40 50 60 70 80 90 100 110 120 'TS2 LF OPEN "COM1:E81N" AS #1 OPEN "TS2.
8.2 RS-232-C Sample Programs Output the measurement data (BINARY Code) Read out the measurement data by BINARY code from DR130/DR230/DR240, display on CRT of personal computer, and save to floppy disc. 10 20 30 40 50 60 70 80 90 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 260 270 'TS0 BO1 FM1 OPEN "COM1:E81N" AS #1 OPEN "TS0BIN.
8.3 RS-422-A/RS-485 Sample Programs This section describes sample program for a system using PC9801 series (NEC) with the RS-422-A/ RS-485 interface. We hope that these samples will aid you in creating your own program. Configuration Model Language Wiring system : NEC PC9801 series : N88-BASIC (Standard programming language on the PC9801 series) : four-wire system (both four-wire and two-wire systems are introduced in this manual for the ASCII output of the measured data).
8.3 RS-422-A/RS-485 Sample Programs Write the Setting Data to DR series Read out the setting data from floppy disk, display them on CRT of the personal computer, and write them to DR series. 10 20 30 40 50 60 70 80 90 100 110 120 130 140 150 160 170 180 ‘ OPEN “COM1:E81N” AS #1 OPEN “TS1.
8.3 RS-422-A/RS-485 Sample Programs Output the Measurement Data (ASCII Code, four-wire) Read out the measurement data by ASCII code from DR series, display on CRT of the personal computer, and save to floppy disk. 10 20 30 40 50 60 70 80 90 100 110 120 130 140 150 160 170 180 190 200 ‘ OPEN “COM1:E81N” AS #1 OPEN “TS0ASC.
8.3 RS-422-A/RS-485 Sample Programs Output the Measurement Data (ASCII Code, two-wire) Read out the measurement data by ASCII code from DR series, display on CRT of the personal computer, and save to floppy disk. 10 20 30 40 50 60 70 80 90 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 260 270 280 290 300 310 320 330 340 350 360 370 ‘ OPEN “COM1:E81N” AS #1 OPEN “TS0ASC.
8.3 RS-422-A/RS-485 Sample Programs Output the Measurement Data (Binary Code) Read out the measurement data by BINARY code from DR series, display on CRT of the personal computer, and save to floppy disk. IM DR231-11E ‘ OPEN “COM1:E81N” AS #1 OPEN “TS0BIN.
8.3 RS-422-A/RS-485 Sample Programs Output the System Configuration Data Read out the configuration data from DR series, display on CRT of the personal computer, and save to floppy disk. 10 20 30 40 50 60 70 80 90 100 110 120 130 140 150 160 170 180 190 200 8-12 ‘ OPEN “COM1:E81N” AS #1 OPEN “TS5.
8.4 Ethernet Program Configuration Model IBM PC/AT OS Windows95 Lnguage Visual-C Output the measurement data (ASCI) IM DR231-11E /* * DARWIN - PC Communication Program for Winsock */ #include #include #include #define IP_ADDR #define PORT_NUM #define BUF_MAX “133.140.104.
8.
App.1 Computing Equation DR130/DR230/DR240 can execute computations with the measured data of each input channel taken as a variable, and the results can be displayed/saved (functions available for use only when DR130/DR230/DR240 has the /M1 option) . The following operators can be used for computation. Basic operators Type Operator Example Description Addition + 001+002 Obtain the sum of the measured data of channel 001 and channel 002.
App.1 Computing Equation Statistical operators within the group Type Operator Example Description Maximum value CLOG.MAX() CLOG.MAX(G01) Obtain the maximum value of the measured data of group G01. Minimum value CLOG.MIN() CLOG.MIN(G02) Obtain the minimum value of the measured data of group G02. Max-min value CLOG.P-P() CLOG.P-P(G03) Total value CLOG.SUM() CLOG.SUM(G04) Obtain the total value of the measured data of group G04. Average value CLOG.AVE() CLOG.
App.1 Computing Equation Priority of operators The priority of operators in a computing equation is as follows. The operators are placed in order from the highest priority. Type Operators Function ABS(), SQR(), LOG(), LN(), EXP(), MAX(), MIN(), P-P(), SUM(), AVE(), PRE(), HOLD():, RESET(): Exponentiation ** Signs, logical negation +, -, NOT Multiplication, division *, / Addition, subtraction +, - Greater/less relation .GT., .LT., .GE., .LE. Equal/not equal relation .EQ., .NE.
App.1 Computing Equation - Control using the event/action function Can start/stop computations or clear/reset computed results by an event occurring. This function distinguishes clear and reset as shown below. - Clear Computed data When issued during the computation, the measured data is reset before doing the first computation.
Index A Page A/D calibration D Page daily report data output format ................................................................. 7-8 format ........................................................................ 7-18, 7-19 execution ............................................................................. 6-15 ON/OFF ............................................................................... 6-12 mode ...................................................................................
Index I Page output format A/D calibration ...................................................................... 7-9 initializing ................................................................................ 6-20 Channel ON/OFF ................................................................ 7-15 interpolation ............................................................................... 6-8 decimal point position ...........................................................
Index setting data output format(operation mode) ..................................... 7-4, 7-5 output format(setup mode) .................................................... 7-6 output request ...................................................................... 6-21 setting screen ........................................................................... 6-13 setup mode ................................................................................. 5-3 skip ............................................
Command Index A Page M Page AC ........................................................................................... 6-17 MC ........................................................................................... 6-17 AK ........................................................................................... 6-17 MD ............................................................................................. 6-5 AR ........................................................................
Command Index SR .............................................................................................. 6-1 SS ............................................................................................... 6-6 ST .............................................................................................. 6-7 SU ............................................................................................ 6-17 SV .......................................................................................