background image

Field 

Wiring 

 33

Chapter 2

Sense SCPs and

Output SCPs

Some SCPs provide input signal conditioning (sense SCPs such as filters and 
amplifiers) while others provide stimulus to your measurement circuit 
(output SCPs such as current sources and strain bridge completion). In 
general, channels at output SCP positions are not used for external signal 
sensing but are paired with channels of a sense SCP. Two points to remember 
about mixing output and sense SCPs:

1. Paired SCPs (an output and a sense SCP) may reside in separate 

HP E1415s. SCP outputs are adjusted by *CAL? to be within a 
specific limit. The Engineering Unit (EU) conversion used for a sense 
channel will assume the calibrated value for the output channel.

2. Output SCPs while providing stimulus to your measurement circuit 

reduce the number of external sense channels available to your 
HP E1415.

Figure 2-2 illustrates an example of "pairing" output SCP channels with sense 
SCP channels (in this example, four-wire resistance measurements). 

Figure 2-2. Pairing Output and Sense SCP Channels

Содержание VXI 75000 C Series

Страница 1: ...ogramming VXIplug play Online Help VXIplug play example programs VXIplug play Online Help VXIplug play function reference VXIplug play Online Help Soft Front Panel information VXIplug play Online Help VISA language information HP VISA User s Guide HP VEE programming information HP VEE User s Manual Supplied with HP Command Modules Embedded Controllers and VXLink HP E1415A Algorithmic Closed Loop C...

Страница 2: ......

Страница 3: ...optional 25 Instrument Drivers 27 About Example Programs 27 Verifying a Successful Configuration 27 Chapter 2 Field Wiring 31 About This Chapter 31 Planning Your Wiring Layout 31 SCP Positions and Channel Numbers 31 Sense SCPs and Output SCPs 33 Planning for Thermocouple Measurements 34 Terminal Modules 35 The SCPs and Terminal Module 35 Terminal Module Layout 35 Reference Temperature Sensing with...

Страница 4: ...utput Channels 71 Setting up Digital Inputs 71 Setting up Digital Outputs 73 Performing Channel Calibration Important 75 Defining Standard PID Algorithms 77 The Pre defined PIDA Algorithm 77 The Pre defined PIDB Algorithm 77 Defining a PID with ALG DEFINE 79 Pre setting PID Variables and Coefficients 80 Pre setting PID variables 80 Defining Data Storage 81 Specifying the Data Format 81 Selecting t...

Страница 5: ... Interrupts 101 Creating and Loading Custom EU Conversion Tables 103 Compensating for System Offsets 106 Special Considerations 107 Detecting Open Transducers 108 More On Auto Ranging 109 Settling Characteristics 110 Background 110 Checking for Problems 110 Fixing the Problem 111 Chapter 4 Creating and Running Custom Algorithms 113 About This Chapter 113 Describing the HP E1415 Closed Loop Control...

Страница 6: ...munication 130 Communication Using Channel Identifiers 130 Communication Using Global Variables 131 Non Control Algorithms 133 Data Acquisition Algorithm 133 Process Monitoring Algorithm 133 Implementing Setpoint Profiles 134 Chapter 5 Algorithm Language Reference 137 Language Reference 137 Standard Reserved Keywords 138 Special HP E1415 Reserved Keywords 138 Identifiers 138 Special Identifiers fo...

Страница 7: ...hm EXPLicit SCAN RATio 173 ALGorithm EXPLicit SIZE 173 ALGorithm EXPLicit STATe 174 ALGorithm EXPLicit STATe 175 ALGorithm EXPLicit TIME 175 ALGorithm FUNCtion DEFine 176 ALGorithm OUTPut DELay 177 ALGorithm OUTPut DELay 178 ALGorithm UPDate IMMediate 178 ALGorithm UPDate CHANnel 179 ALGorithm UPDate WINDow 180 ALGOrithm UPDate WINDow 181 ARM 182 ARM IMMediate 183 ARM SOURce 183 ARM SOURce 184 CAL...

Страница 8: ...Terrupt LINe 201 DIAGnostic INTerrupt LINe 201 DIAGnostic OTDetect STATe 202 DIAGnostic OTDetect STATe 202 DIAGnostic QUERy SCPREAD 203 DIAGnostic VERSion 203 FETCh 204 FORMat 206 FORMat DATA 206 FORMat DATA 207 INITiate 209 INITiate IMMediate 209 INPut 210 INPut FILTer LPASs FREQuency 210 INPut FILTer LPASs FREQuency 211 INPut FILTer LPASs STATe 211 INPut FILTer LPASs STATe 212 INPut GAIN 212 INP...

Страница 9: ...ENSe CHANnel SETTling 234 SENSe DATA CVTable 235 SENSe DATA CVTable RESet 236 SENSe DATA FIFO ALL 237 SENSe DATA FIFO COUNt 238 SENSe DATA FIFO COUNt HALF 238 SENSe DATA FIFO HALF 238 SENSe DATA FIFO MODE 239 SENSe DATA FIFO MODE 240 SENSe DATA FIFO PART 240 SENSe DATA FIFO RESet 241 SENSe FREQuency APERture 241 SENSe FREQuency APERture 242 SENSe FUNCtion CONDition 242 SENSe FUNCtion CUSTom 243 SE...

Страница 10: ... SOURce FUNCtion SHAPe PULSe 262 SOURce FUNCtion SHAPe SQUare 263 SOURce PULM STATe 263 SOURce PULM STATe 264 SOURce PULSe PERiod 264 SOURce PULSe PERiod 264 SOURce PULSe WIDTh 265 SOURce PULSe WIDTh 265 STATus 267 The Operation Status Group 269 STATus OPERation CONDition 269 STATus OPERation ENABle 270 STATus OPERation ENABle 271 STATus OPERation EVENt 271 STATus OPERation NTRansition 271 STATus ...

Страница 11: ...84 TRIGger SOURce 285 TRIGger TIMer PERiod 285 TRIGger TIMer PERiod 286 IEEE 488 2 Common Command Reference 287 CAL 287 CLS 288 DMC 288 EMC 288 EMC 288 ESE 288 ESE 289 ESR 289 GMC 289 IDN 289 LMC 290 OPC 290 OPC 290 PMC 290 RMC 291 RST 291 SRE 292 SRE 292 STB 292 TRG 292 TST 293 WAI 296 Command Quick Reference 297 Appendix A Specifications 305 Appendix B Error Messages 335 Appendix C Glossary 343 ...

Страница 12: ...e Limits 363 When to Make Shield Connections 363 Noise Due to Inadequate Card Grounding 363 HP E1415 Noise Rejection 364 Normal Mode Noise Enm 364 Common Mode Noise Ecm 364 Keeping Common Mode Noise out of the Amplifier 364 Reducing Common Mode Rejection Using Tri Filar Transformers 365 Appendix F Generating User Defined Functions 367 Introduction 367 Haversine Example 368 Limitations 370 Program ...

Страница 13: ...ND FITNESS FOR A PARTICULAR PURPOSE 8 HP will be liable for damage to tangible property per incident up to the greater of 300 000 or the actual amount paid for the product that is the subject of the claim and for damages for bodily injury or death to the extent that all such damages are determined by a court of competent jurisdiction to have been directly caused by a defective HP product 9 TO THE ...

Страница 14: ...ist even with the equipment switched off To avoid dangerous electrical shock DO NOT perform procedures involving cover or shield removal unless you are qualified to do so DO NOT operate damaged equipment Whenever it is possible that the safety protection features built into this product have been impaired either through physical damage excessive moisture or any other reason REMOVE POWER and do not...

Страница 15: ...4 EMC CISPR 11 1990 EN55011 1991 Group1 Class A IEC 801 2 1991 EN50082 1 1992 4kVCD 8kVAD IEC 801 3 1984 EN50082 1 1992 3 V m IEC 801 4 1988 EN50082 1 1992 1kV Power Line 5kV Signal Lines Supplementary Information The product herewith complies with the requirements of the Low Voltage Directive 73 23 EEC and the EMC Directive 89 336 EEC inclusive 93 68 EEC and carries the CE mark accordingly Tested...

Страница 16: ...16 ...

Страница 17: ...e Please list the system controller operating system programming language and plug in modules you are using BUSINESS REPLY MAIL FIRST CLASS PERMIT NO 37 LOVELAND CO POSTAGE WILL BE PAID BY ADDRESSEE HEWLETT PACKARD COMPANY Measurement Systems Division Learning Products Department P O Box 301 Loveland CO 80539 9984 fold here Please pencil in one circle for each statement below Disagree Agree The do...

Страница 18: ......

Страница 19: ...XIbus mainframe They are Setting the Logical Address Switch 20 Installing Signal Conditioning Plug ons 21 Disabling the Input Protect Feature optional 25 Disabling Flash Memory Access optional 25 For most applications you will only need to change the Logical Address switch prior to installation The other settings can be used as delivered Note Setting the VXIbus Interrupt Level The HP E1415 uses a ...

Страница 20: ...ss Switch Follow the next figure and ignore any switch numbering printed on the Logical Address switch When installing more than one HP E1415 in a single VXIbus Mainframe set each instrument to a different Logical Address Setting the Logical Address Switch ...

Страница 21: ...our SCPs you should read the Separating Digital and Analog SCP Signals in Appendix E page 361 Caution Use approved Static Discharge Safe handling procedures anytime you have the covers removed from the HP E1415 or are handling SCPs Remove 2 screws 10 Torx lift front and slide out tabs 1 2 Remove the SCP Retaining Screws E1520 REMVLEFT Installing SCPs Step 1 Removing the Cover E1415 ...

Страница 22: ...with the Module Connectors and then Push in 2 1 Tighten the SCP Retaining Screws SCP CAUTION Use approved Static Discharge handling procedures when handling the HP E1413 Scanning A D Module and the SCPs E1520 INSLSCP Installing SCPs Step 2 Mounting an SCP ...

Страница 23: ...Getting Started 23 Chapter 1 Tighten 2 Screws Line up the 3 Tabs with the 3 Slots then lower cover onto the Module 2 1 E1520 INSTLEFT Installing SCPs Step 3 Reinstalling the Cover E1415 ...

Страница 24: ...on the appropriate place on the Cover 1 2 Peel off Label from Card and Stick on the Terminal Module to be Connected to the A D Module Stick on Label furnished with the SCP HP part number E15xx 84304 Terminal Module Connect to A D Module Later Installing SCPs Step 4 Labeling ...

Страница 25: ...Memory Protect Jumper JM2201 is shipped in the PROG position We recommend that you leave the jumper in this position so that all of the calibration commands can function Changing the jumper to the protect position will mean you won t be able to execute The SCPI calibration command CAL STORE ADC TARE The register based calibration commands STORECAL and STORETAR Any application that installs firmwar...

Страница 26: ...pter 1 JM2201 1 Locate 2 Cut Input Protect Jumper Warning Cutting this Jumper Voids Your Warranty E1413 FIG1 3 Flash Memory Protect Jumper Default PROG recommended JM2202 3 Bend Accessing and Locating JM2201 and JM2202 E1415 ...

Страница 27: ...rol such as loop end loop and if end if See the code sequence on page 92 for an example Typical C SCPI Example program The Verify program file name verif cs is printed below to show a typical C SCPI program for the HP E1415 Verifying a Successful Configuration An example C SCPI compiled SCPI program source is shown on the following pages This program is included with your C SCPI driver tape and or...

Страница 28: ... the module INST_STARTUP Enable communications to the module check if successful INST_OPEN e1415 vxi LADD if e1415 printf INST_OPEN failed ladd s Failure code is d n LADD cscpi_open_error exit 1 Read and print the module s identification INST_QUERY e1415 idn read_id printf n nInstrument ID s n n read_id rst_clr Function resets the module id_scps Function checks for installed SCPs exit 0 voidrst_cl...

Страница 29: ...NST_QUERY e1415 SYST CTYP d s scp_addr scp_id printf ID for SCP d is s n scp_addr 100 8 scp_id int32check_error char message Check for module generated errors int16error charerr_out 256 Check for any errors INST_QUERY e1415 SYST ERR error err_out If error is found print out the error s if error while error printf Error d s in function s n error err_out message INST_QUERY e1415 SYST ERR error err_o...

Страница 30: ...30 Getting Started Chapter 1 Notes ...

Страница 31: ...the HP E1415 Terminal Module 45 Adding Components to the Terminal Module 47 Terminal Module Wiring Map 48 Terminal Module Options 49 Faceplate Connector Pin Signal Lists 53 Planning Your Wiring Layout The first point to understand is that the HP E1415 makes no assumptions about the relationship between Signal Conditioning Plug on SCP function and the position in the HP E1415 that it can occupy You...

Страница 32: ...32 Field Wiring Chapter 2 Figure 2 1 Channel Numbers at SCP Positions ...

Страница 33: ...ember about mixing output and sense SCPs 1 Paired SCPs an output and a sense SCP may reside in separate HP E1415s SCP outputs are adjusted by CAL to be within a specific limit The Engineering Unit EU conversion used for a sense channel will assume the calibrated value for the output channel 2 Output SCPs while providing stimulus to your measurement circuit reduce the number of external sense chann...

Страница 34: ...ent made by an HP E1415 applies only to thermocouple measurements made by that instrument In systems with multiple HP E1415s each instrument must make its own reference measurements The reference measurement made by one HP E1415 can not be used to compensate thermocouple measurements made by another HP E1415 Note To make good low noise measurements you must use shielded wiring from the device unde...

Страница 35: ... mount terminal panel Option A3F is available See Option A3F on page 51 The Terminal Module provides the following Terminal connections to field wiring Strain relief for the wiring bundle Reference junction temperature sensing for thermocouple measurements Ground to Guard connections for each channel The SCPs and Terminal Module The same Terminal is used for all field wiring regardless of which Si...

Страница 36: ...ature Sensing Trigger and other Connections On board Thermistor for Temperature Sensing Jumper to select for On board or Remote Temperature Sensing Terminal Block for Input Connections Sockets for Guard to Ground Connections Figure 2 3 HP E1415 Terminal Module ...

Страница 37: ...TD on a remote isothermal reference block Figure 2 4 and Figure 2 5 show connections for both local and remote sensing See Connecting the On board Thermistor on page 42 for location of J1 On Board Current Source E1415 Terminal Module Field Wiring REM ON BOARD J1 HTI LTI HTS LTS Hnn Lnn Any Sense Channel Figure 2 4 On Board Thermistor Connection On Board Current Source E1415 Terminal Module Field W...

Страница 38: ...module and the Terminal Module 4 The VXI mainframe cooling fan filters must be clean and there should be as much clear space in front of the fan intakes as possible 5 Recirculating warm air inside a closed rack cabinet can cause a problem if the Terminal Module is suspended into ambient air that is significantly warmer or cooler If the mainframe recess is mounted in a rack with both front and rear...

Страница 39: ...lled for each channel These may be left installed or removed see Figure 2 8 to remove the jumper dependent on the following conditions a Grounded Transducer with shield connected to ground at the transducer Low frequency ground loops DC and or 50 60Hz can result if the shield is also grounded at the Terminal Module end To prevent this remove the GND GRD jumper for that channel Figure 2 6 A C b Flo...

Страница 40: ...C D E Device Under Test Device Under Test Device Under Test Device Under Test Guard Remove Jumper to break Ground Loop shield connected to ground at transducer Leave Jumper in Place transducer floating Remove Jumper to break Ground Loop shield connected to ground at transducer Guard Leave Jumper in Place transducer floating Jumper may be left in place since Current Lo is at E1415 GND Potential P t...

Страница 41: ... on Terminal Module Figure 2 8 Grounding the Guard Terminals 1 µF GND to GRD Jumper removable 1 KΩ 1 µF GND to GRD Jumper removable G0 G7 For each SCP Position External Connections SCP 10 KΩ 10 KΩ 1 KΩ Terminal Module Removing Guard to Ground on Channel 00 ...

Страница 42: ...al Module See Reference Temperature Sensing with the HP E1415 on page 37 for a schematic diagram of the reference connections Under Cover ON BOARD Place both J1 jumpers here to connect current source to on board thermistor RT1 Sense RT1 by connecting any sense channels to terminals HTS and LTS REMote Place both J1 jumpers here to route current source to terminals HTI and LTI Connect these terminal...

Страница 43: ...g 43 Chapter 2 Wiring and Attaching the Terminal Module Figure 2 10 and Figure 2 12 show how to open wire and attach the terminal module to an HP E1415 Figure 2 10 Wiring and Connecting the E1415 s Terminal Module ...

Страница 44: ...44 Field Wiring Chapter 2 Figure 2 11 HP E1415 Terminal Module ...

Страница 45: ... Module 4 Push in the extraction levers to lock the Terminal Module onto the HP E1415 Module Extraction Levers 2 Align the Terminal Module connectors to the HP E1415 module connectors HP E1415 Use a small screwdriver to pry and release the two extraction levers Extraction Lever Extraction Lever Install Mylar Thermal Barrier on Terminal Module connectors 1 Extend the extraction levers on the Termin...

Страница 46: ...Terminal Module from the A D Module Extraction Lever HP E1415 1 Release the two extraction levers and push both levers out simultaneously Extraction Lever Use a small screwdriver to pry and release the two extraction levers Figure 2 13 Removing the HP E1415 Terminal ...

Страница 47: ...se to add serial and parallel components to any channel s signal path Figure 2 14 shows additional component locator information see the schematic and pad layout information on the back of the teminal module P C board Figure 2 15 shows some usage example schematics Figure 2 14 Additional Component Location Figure 2 15 Series Parallel Component Examples ...

Страница 48: ...G15 H00 L00 G00 H01 L01 G01 H02 L02 G02 H03 L03 G03 H04 L04 G04 H05 L05 G05 H06 L06 G06 H07 L07 G07 G32 L32 H32 G33 L33 H33 G34 L34 H34 G35 L35 H35 G36 L36 H36 G37 L37 H37 G38 L38 H38 G39 L39 H39 GND GND GND GND LTS HTS LTI HTI GND TRIG GND LCAL HCAL LOHM HOHM GND GND GND G40 L40 H40 G41 L41 H41 G42 L42 H42 G43 L43 H43 G44 L44 H44 G45 L45 H45 G46 L46 H46 G47 L47 H47 G48 L48 H48 G49 L49 H49 G50 L50...

Страница 49: ...3E Option A3E can be ordered if a crimp and insert terminal module is desired This allows you to crimp connectors onto wires which are then inserted directly into the E1415 s Faceplate connector Refer to the pin out diagram in Figure 2 19 on page 53 to make the connections The crimp and insert connector is shown in Figure 2 17 Note The pinout numbering on the crimp connector may not agree with the...

Страница 50: ...per is typically used to tie two pins together in a single crimp and insert connector Order HP 91512A Crimp and Insert Contacts These contacts may be crimped onto a conductor and then inserted into a crimp and insert connector The crimp tool kit is required to crimp the contacts onto a conductor and remove the contact from the connector Order HP 91515A L e n g th 2 m e te rs W ire G a u g e 2 4 A ...

Страница 51: ...tion accessories listed earlier Extra Crimp and Insert Connectors The crimp and insert connector is normally supplied with Option A3E Contact Hewlett Packard Company if additional connectors are needed Order HP 91484B Option A3F Option A3F allows an HP E1415 to be connected to an HP E1586 Rack Mount Terminal Panel The option provides 4 SCSI plugs on a Terminal Module to make connections to the Rac...

Страница 52: ...tively short cable runs Custom Length Cable This cable HP Z2220A Option 050 is available in custom lengths It is a 16 channel twisted pair cable with each twisted pair individually shielded to provide better quality shielding for longer cable runs HF Common Mode Filters Optional High Frequency Common Mode Filters are on the HP E1586 Rack Mount Terminal Panel s input channels HP E1586 Option 001 RF...

Страница 53: ...Field Wiring 53 Chapter 2 Faceplate Connector Pin Signal Lists Figure 2 19 shows the Faceplate Connector Pin Signal List for the HP E1415 Figure 2 19 HP E1415A Faceplate Connector Pin Signals ...

Страница 54: ...54 Field Wiring Chapter 2 Notes ...

Страница 55: ... 71 Setting up Digital Input and Output Channels 71 Setting up Digital Inputs 71 Setting up Digital Outputs 73 Performing Channel Calibration Important 75 Defining Standard PID Algorithms 77 The Pre defined PIDA Algorithm 77 The Pre defined PIDB Algorithm 77 Pre setting PID variables 80 Defining Data Storage 81 Specifying the Data Format 81 Selecting the FIFO Mode 81 Setting up the Trigger System ...

Страница 56: ...e affects of programming commands you will see in later examples and detailed discussions Operational Overview This section describes how the HP E1415 gathers input data executes an algorithm and outputs control signals Figure 3 1 shows a simplified functional block diagram Algorithmic The HP E1415 is an algorithmic process loop controller It can provide as many as 32 single input single output co...

Страница 57: ...ntrol algorithms is executed Process Control Out Control output to the process is determined by the executing algorithms In general the algorithm assigns a value to one of 64 special output channel identifiers If the algorithm executes the statement O107 control_out_var the value of the variable control_out_var is placed in the Output Channel Buffer entry for channel 7 After all active algorithms ...

Страница 58: ...and is accepted before or after INIT The next section in this chapter Executing the Programming Model shows the programming sequence that should be followed when setting up the HP E1415 to run algorithms Executing the Programming Model This section shows the sequence of programming steps that should be used for the HP E1415 Within each step most of the available choices are shown using command seq...

Страница 59: ...s you require you do not need to execute a command to set them These are the default settings No algorithms defined No channels defined in channel lists Programmable SCPs configured to their Power on defaults see individual SCP User s Manuals All analog input channels linked to EU conversion for voltage All analog output channels ready to take values from an algorithm All digital I O channels set ...

Страница 60: ...thm s and Preset Algorithm Variables Initiate Trigger System Retrieve Data Modify Algorithm Variables ALG ARRay ALG SCALar ALG STAT ALG SCAN RATio ALG UPD SENS DATA FIFO SENS CVT ALG SCAL and ALG ARR commands INITiate command ALG DEF ALG ARRay ALG SCALar ALG SCAN RATio ALG UPDate ALG DEF GLOBALS command SENSe DATA FIFO MODE command FORMat command ARM SOUR TRIG SOUR TRIG COUN TRIG TIMer commands CA...

Страница 61: ...Programming the HP E1415 for PID Control 61 Chapter 3 Programming Overview Diagram ...

Страница 62: ...that reflects the signal level at the input terminal The only time this in not true is when the SCP gain chosen would cause the output of the SCP amplifier to be too great for the selected A D range As an example with SCP gain set to 64 an input signal greater than 0 25 volts would cause an over range reading even with the A D set to its 16 volt range The gain command for SCPs with programmable am...

Страница 63: ... INP FILT STAT OFF 100 123 146 163 only channels 0 23 46 and 63 OFF Setting the HP E1505 Current Source SCP The Current Source SCP supplies excitation current for resistance type measurements These include resistance and temperature measurements using resistance temperature sensors The commands to control Current Source SCPs are OUTPut CURRent AMPLitude amplitude ch_list and OUTPut CURRent STATe e...

Страница 64: ...put 2 volts OUTP VOLT AMPL 2 100 103 NOTE The OUTPut VOLTage AMPLitude command is only for programming excitation voltage used measurement configurations It is does not program output DAC SCPs like the HP E1531 Linking Input Channels to EU Conversion This step links each of the module s channels to a specific measurement type For analog input channels this tells the on board control processor whic...

Страница 65: ...4 SENS FUNC VOLT 625 132 147 must send a command per range or to send both commands in a single command message SENS FUNC VOLT 16 116 124 VOLT 0625 123 147 NOTE When using manual range in combination with amplifier SCPs the EU conversion will try to return readings which reflect the value of the input signal However it is up to you to choose range values that will provide good measurement performa...

Страница 66: ... sense the voltage across the unknown resistance Each can be a Current Source SCP channel a two wire resistance measurement or a sense channel separate from the Current Source SCP channel a four wire resistance measurement See Figure 3 4 for diagrams of these measurement connections To set channels 0 through 15 to measure resistances greater than 8 000 Ohms and set channels 16 20 and 24 through 31...

Страница 67: ...ts discussed in the previous section See the discussion of Figure 3 4 in Linking Resistance Measurements For resistance temperature measurements the sub_type parameter specifies For RTDs 85 or 92 for 100 Ohm RTDs with 0 00385 or 0 00392 Ohms Ohm Degree C temperature coefficients respectively For Thermistors 2250 5000 or 10000 the nominal value of these devices at 25 degrees C NOTES 1 Resistance te...

Страница 68: ...set excite current to 488µA on current SCP channels 32 through 47 SENS FUNC TEMP RTD 85 148 163 link channels 48 through 63 to temperature EU conversion for 100Ω RTDs with 00385 TC Thermocouple Measurements Thermocouple measurements are voltage measurements that the EU conversion changes into temperature values based on the sub_type parameter and latest reference temperature value For Thermocouple...

Страница 69: ...ee C temperature coefficients respectively For Thermistors only 5000 See previous note on page 67 For CUSTom only 1 The optional range parameter can be used to choose a fixed A D range When not specified defaulted or set to AUTO the module uses auto range Reference Measurement Before Thermocouple Measurements At this point we are going to introduce you to the concept of the HP E1415 s Scan List As...

Страница 70: ...ference Temperature Register The value is applied to all subsequent thermocouple channel measurements until another reference temperature value is specified or measured There is no need to use SENS REF CHANNELS To specify the temperature of a controlled temperature reference panel SENS REF TEMP 50 reference temp 50 C Now begin scan to measure thermocouples Linking Strain Measurements Strain measur...

Страница 71: ...nute See the Command Reference Chapter 6 and the HP E1506 E1507 and HP E1511 User s Manuals for more information on strain measurements Custom EU Conversions Creating and Loading Custom EU Conversion Tables on page 103 Linking Output Channels to Functions Analog outputs are implemented either by an HP E1531 Voltage Output SCP or an HP E1532 Current Output SCP Channels where these SCPs are installe...

Страница 72: ...V 132 135 SCP in SCP position 4 Setting Input Function The HP E1533 Digital I O SCP and the HP E1534 Frequency Totalizer SCP can both input static digital states The HP E1534 Frequency Totalizer SCP can also input Frequency measurements and Totalize the occurrence of positive or negative edges Static State CONDition Function To configure digital channels to input static states use the SENSe FUNCti...

Страница 73: ...nel set to logic 0 will output a TTL compatible high The ch_list parameter specifies the channels to configure The HP E1533 has 2 channels of 8 bits each All 8 bits in a channel take on the configuration specified for the channel The HP E1534 has 8 I O bits that are individually configured as channels To configure the higher 8 bit channel of an HP E1533 for inverted polarity OUTP POLARITY INV 109 ...

Страница 74: ...tates Variable Width Pulse Per Trigger This function sets up one or more HP E1534 channels to output a single pulse per trigger per algorithm execution The width of the pulse from these channels is controlled by Algorithm Language statements Use the command SOURce FUNCtion SHAPe PULSe ch_list Example command sequence To set HP E1534 channel 2 at SCP position 4 to output a pulse per trigger SOUR FU...

Страница 75: ...TION SQUare 134 Example Algorithm Language statement to set output to 20KHz O134 20e3 For complete HP E1534 capabilities see the SCP s User s Manual Performing Channel Calibration Important The CAL also performed using CAL SETup then CAL SETup is a very important step CAL generates calibration correction constants for all analog input and output channels CAL must be performed in order for the HP E...

Страница 76: ... is internally very sophisticated and results in an extremely well calibrated module When CAL finishes it returns a 0 value to indicate success The generated calibration constants are now in volatile memory as they always are when ready to use If the configuration just calibrated is to be fairly long term you should now execute the CAL STORE ADC command to store these constants in non volatile mem...

Страница 77: ...each time it is executed Error Setpoint inp_chan I_out I_out I_factor Error outp_chan P_factor Error I_out D_factor Error Error_old Error_old Error See the program listing for PIDA in Appendix D page 347 The Pre defined PIDB Algorithm Figure 3 6 shows the block diagram of a more advanced algorithm that is favored in process control because of the flexibility allowed by its two differential terms T...

Страница 78: ...g and alarms are set to 9 9E 37 and 9 9E 37 respectively when the algorithm is defined This effectively turns the limits off until you change these values with the ALG SCALAR and ALG UPDATE commands as described in Pre setting PID Variables and Coefficients later in this section Manual Control The PIDB algorithm provides for manual control with bumpless transfer between manual and automatic contro...

Страница 79: ...nt 10 n 2 Status word bits 0 through 6 Status to CVT element 10 n 3 Where n is the number of the algorithm from ALGn So ALG1 places values into CVT elements 10 through 13 ALG2 places values in CVT elements 20 through 23 ALG32 places values into CVT elements 320 through 323 When you set History_mode to 1 the operating values are sent to the CVT as above and they are sent to the FIFO buffer as well ...

Страница 80: ...irst letter in channel specifier is upper case and that bit identifiers start with the upper case B 2 The channels specified in the PID definition can be any GLOBAL variable identifier that you have defined prior to the algorithm definition Use ALG DEF GLOBALS var_declaration_source ALG DEF GLOBALS static float pid1_outp pid2_inp ALG DEF ALG1 PIDB I114 pid1_outp O124 Use global for PIDB output ALG...

Страница 81: ...d as a 15 character per value comma separated list FORMAT ASC 7 The RST TST and power on default format or FORM ASC same operation as above Selecting the FIFO Mode The HP E1415 s FIFO can operate in two modes One mode is for reading FIFO values while algorithms are executing the other mode is for reading FIFO values after algorithms have been halted ABORT sent BLOCking The BLOCking mode is the def...

Страница 82: ...SENSe DATA FIFO MODE BLOCK select blocking mode Setting up the Trigger System Arm and Trigger Sources Figure 3 7 shows the trigger and arm model for the HP E1415 Note that when the Trigger Source selected is TIMer the default the remaining sources become Arm Sources Using ARM SOUR allows you to specify an event that must occur in order to start the Trigger Timer The default Arm source is IMMediate...

Страница 83: ...igger source to the External Trigger input connection TRIG SOUR EXT an external trigger signal To set the trigger source to a VXIbus TTLTRG line TRIG SOUR TTLTRG1 the TTLTRG1 trigger line Selecting Trigger Timer Arm Source Figure 3 7 shows that when the TRIG SOUR is TIMer the other trigger sources become Arm sources that control when the timer will start The command to select the arm source is ARM...

Страница 84: ...le Trigger Timer interval With this information you now execute the command TRIGger TIMer interval and set interval to the desired time that is equal to or greater than the minimum See Starting the PID Algorithm in a later section in this Chapter for more on phases of the execcution cycle Setting the Trigger Counter The Trigger Counter controls how many trigger events will be allowed to start an i...

Страница 85: ...he algorithm with the ALG DEF command above The module also enters the Waiting For Trigger State In this state all that is required to run the algorithm is a trigger event for each pass through the input calculate output cycle To initiate the module send the command INIT module to Waiting for Trigger State When an INIT command is executed the driver checks several interrelated settings programmed ...

Страница 86: ...ram using ALG SCAL ALG ARR ALG DEF Data acquired by external specialized measurement instruments can be sent to your algorithms at this time 3 CALCULATE all INPUT and UPDATE values have been made available to the algorithm variables and each enabled algorithm is executed The results to be output from algorithms are stored in the Output Channel Buffer 4 OUTPUT each Output Channel Buffer value store...

Страница 87: ...e Table CVT contains the latest operating parameter values from executing PIDB algorithms The algorithms copy these values to specific elements of the CVT each time they execute The CVT is fast because it is a hardware state machine that does not require the DSP to get involved in the data transaction Further a single SCPI command can return some or all of the CVT s values thus reducing the I O lo...

Страница 88: ...t all values to NaN send the command SENSe DATA CVTable RESet Reading History Mode Values From the FIFO The algorithm history mode enables PIDB algorithms to send their operating values to the FIFO buffer To enable the PIDB algorithm to send its operating values to the FIFO set the History_mode variable to 1 If you need to retrieve the value of the working variables from every execution of your al...

Страница 89: ...ch FIFO Mode The way you will read the FIFO depends on how the FIFO mode was set in the programming step 7 of the Programming Sequence on page 60 Continuously Reading the FIFO FIFO mode BLOCK If you are going to read the FIFO while algorithms are running you must set the FIFO mode to SENS DATA FIFO MODE BLOCK In this mode if the FIFO fills up it stops accepting values from algorithms The algorithm...

Страница 90: ...this mode the FIFO always contains the latest values up to the FIFO s capacity of 65 024 values from running algorithms In order to read these values the algorithms must be stopped use ABORT This forms a record of the algorithm s latest performance In the OVERwrite mode the FIFO can not be read while it is accepting readings from algorithms Algorithm execution must be stopped before your applicati...

Страница 91: ...e Enabling and Disabling Algorithms An algorithm is enabled by default when it is defined However the ALG STATe alg_name ON OFF command is provided to allows you to enable or disable algorithms When an individual algorithm is enabled it will execute when the module is triggered When disabled the algorithm will not execute NOTE The command ALG STATE alg_name ON OFF does not take effect until an ALG...

Страница 92: ...S 108 109 123 configure digital output channel for alarm channel SOURCE FUNCTION CONDITION 132 execute channel calibration CAL can take several minutes Configure the Trigger System ARM SOURCE IMMEDIATE RST default TRIGGER COUNT INF RST default TRIGGER TIMER 010 RST default TRIGGER SOURCE TIMER RST default specify data format FORMAT ASC 7 RST default select FIFO mode SENSE DATA FIFO MODE BLOCK may ...

Страница 93: ...e math h Instrument control include files include cscpi h C SCPI include file Declare constants define E1415_ADDR vxi 208 The C SCPI address of your E1415 INST_DECL e1415 E1415A REGISTER E1415 Main program void main Main program local variable declarations char algorithm Algorithm string int alg_num Algorithm number being loaded char string 333 Holds error information int32 error Holds error numbe...

Страница 94: ...2 n Download algorithm with in line code INST_SEND e1415 alg def alg1 PIDB I116 O100 O141 B0 n Preset Algorithm variables INST_SEND e1415 alg scal alg1 Setpoint f n 3 0 INST_SEND e1415 alg scal alg1 P_factor f n 0 0001 INST_SEND e1415 alg scal alg1 I_factor f n 0 00025 INST_SEND e1415 alg upd n Initiate Trigger System start scanning and running algorithms INST_SEND e1415 init n Alter run time vari...

Страница 95: ...mode Direct manipulation of variable values in both PIDA and PIDB PIDB operating values available from CVT PIDB History Mode puts continuous sequence of operating values into FIFO Using the Status System The HP E1415 s Status System allows you to quickly poll a single register the Status Byte to see if any internal condition needs attention Figure 3 11 shows that the three Status Groups Operation ...

Страница 96: ...STATus OPERation ENABle sets mask Condition real time Filter Event latched Enable 1 enable Trigger Too Fast FIFO Overflowed Overvoltage VME Memory Overflow Setup Changed Calibrating Measuring Scan Complete SCP Trigger FIFO Half Full Algorithm Interrupt Output Queue Not Empty STATUS BYTE GROUP Summary real time Enable 1 enable Logical OR 0 1 2 QUE MAV ESB RQS OPR STB SPOLL SRE mask_value SRE STANDA...

Страница 97: ...cription 0 1 Calibrating Set by CAL TARE and CAL SETup Cleared by CAL TARE and CAL SETup Set while CAL executing then cleared 4 16 Measuring Set when instrument INITiated Cleared when instrument returns to Trigger Idle State 8 256 Scan Complete Set when each pass through a Scan List is completed 9 512 SCP Trigger Reserved for future HP SCPs 10 1024 FIFO Half Full FIFO contains at least 32 768 valu...

Страница 98: ...ed the module to report via the Status System when it had completed executing CAL The Calibrating bit bit 0 in the Operation Condition Register goes to 1 when CAL is executing and returns to 0 when CAL is complete In order to record only the negative transition of this bit in the STAT OPER EVEN register you would send STAT OPER PTR 32766 All ones in Pos Trans Filter register except bit 0 0 STAT OP...

Страница 99: ...ing the Status Byte To check if any enabled events have occurred in the status system you first read the Status Byte using the STB command If the Status Byte is all zeros there is no summary information being sent from any of the status groups If the Status Byte is other than zero one or more enabled events have occurred You interpret the Status Byte bit values and take further action as follows B...

Страница 100: ...he Status Byte The summary bit sets the RQS request service bit in the Status Byte Using this Summary bit and those from the other status groups you can poll the Status Byte and check the RQS bit to determine if there are any status conditions which need attention In this way the RQS bit is like the HP IB s SRQ Service Request line The difference is that while executing an HP IB serial poll SPOLL ...

Страница 101: ...or The driver returns to waiting for user commands No interrupts are required for the HP E1415 to complete its measurement While the module is running algorithms the driver can be queried for its status and data can be read from the FIFO and CVT The ABORT command may be given to force continuous execution to complete Any changes to the measurement setup will not be allowed until the TRIG COUNT is ...

Страница 102: ...d The way the user controls which interrupts will be enabled is via the OPC STATUS OPER QUES ENABLE and STAT PRESET commands Each of the interrupting conditions listed above has a corresponding bit in the QUES or OPER registers If that bit is enabled via the STATus OPER QUES ENABle command to be a part of the group summary bit it will also enable the HP E1415 interrupt for that condition If that b...

Страница 103: ... conversions the custom EU conversions are already linked to their channels tables loaded before you execute the SENSe FUNC CUST command but the command allows you to specify the A D range for these channels NOTE The RST command clears all channel Table RAM segments Custom EU conversion tables must be re loaded using the DIAG CUST commands Custom EU Tables The HP E1415 uses two types of EU convers...

Страница 104: ...ineer for more information on Custum Engineering Unit Conversion for your application Loading Custom EU Tables There is a specific location in the E1415 s memory for each channel s EU Conversion table When standard EU conversions are specified the E1415 loads these locations with EU conversion tables copied from its non volatile FLASH Memory For Custom EU conversions you must load these table valu...

Страница 105: ...ch_list specifies which channels will have this custom EU table loaded Usage Example Your program puts table constants into array table_block DIAG CUST PIEC table_block 1 124 131 send table for chs 24 31 to HP E1415 SENS FUNC CUST PIEC 1 1 124 131 link custom EU with chs 24 31 and set the 1V A D range INITiate then TRIGger module Summary The following points describe the capabilities of custom EU ...

Страница 106: ...ermocouple reference block Disconnect the thermocouples and introduce copper shorting wires between each channel s HI and LO then execute CAL TARE for these channels Residual Sensor Offsets To remove offsets like those in an unstrained strain gage bridge execute the CAL TARE command on those channels The module will then measure the offsets and as in the wiring case above remove these offsets from...

Страница 107: ...an application that stored constants many times each day would unnecessarily shorten the Flash Memory s lifetime Resetting CAL TARE If you wish to undo the CAL TARE operation you can execute CAL TARE RESet then CAL CAL SET If current Tare calibration constants have been stored in Flash Memory execute CAL TARE RESET then CAL STORE TARE Special Considerations Here are some things to keep in mind whe...

Страница 108: ... now reset the tare constants in Flash memory by executing CAL STORE TARE Detecting Open Transducers Most of the HP E1415 s analog input SCPs provide a method to detect open transducers When Open Transducer Detect OTD is enabled the SCP injects a small current into the HIGH and LOW input of each channel The polarity of the current pulls the HIGH inputs toward 17 volts and the LOW inputs towards 17...

Страница 109: ...on SCP3 To disable Open Transducer Detection on all channels on SCPs 1 and 3 DIAG OTD OFF 100 116 More On Auto Ranging There are rare circumstances where your input signal can be difficult for the HP E1415 to auto range correctly The module completes the range selection based on your input signal about 6 µsec before the actual measurement is made on that channel If during that period your signal b...

Страница 110: ...l channel has presented a low impedance path to discharge the A D s stray capacitances path was the thermocouple wire The combination of a resistance measurement through an HP E1501 Direct Input SCP presents a much higher impedance path A very common measurement like this would be the temperature of a thermistor If measured through a Direct Input SCP the source impedance of the measurement is esse...

Страница 111: ...olution Amplifier SCPs for the HP E1415 are available with gains of 5 8 16 64 and 512 Lets return to our earlier example of a difficult measurement where one channel is measuring 15 5 volts on the 16 volt range and the next a thermocouple on the 0625 range If our thermocouple channel is amplified through an SCP with a gain of 16 the Range Amplifier can be set to the 1 volt range On this range the ...

Страница 112: ...NS CHAN SETTLING does is instruct the HP E1415 to replace single instances of a channel in the Scan List with multiple repeat instances of that channel if it is specified in ch_list The number of repeats is set by num_samples Example Normal Scan List 100 101 102 103 104 Scan List after SENS CHAN SETT 3 100 103 100 100 100 101 102 103 103 103 104 When the algorithms are run channels 0 and 3 will be...

Страница 113: ...a description of the Algorithm Language The contents of this chapter are Describing the HP E1415 Closed Loop Controller 114 What is a Custom Algorithm 114 Overview of the Algorithm Language 114 The Algorithm Execution Environment 115 Accessing the E1415 s Resources 117 Accessing I O Channels 118 Defining and Accessing Global Variables 119 Determining First Execution First_loop 119 Initializing Var...

Страница 114: ...gorithms from custom algorithms is that the standard PIDs are built in That is they are in the HP E1415 s driver and the driver can automatically insert your channel references into the code as it s loading it Otherwise there is no difference in fact the standard PIDs are written in the same Algorithm Language you will use to create your custom algorithms The source code for PIDA PIDB as well a th...

Страница 115: ...culate desired output if output_val output_max check output greater than limit output_val output_max if so output max limit else if output_val output_min check output less than limit output_val output_min if so output min limit O116 output_val 2 split output_val between two SCP O117 output_val 2 channels to get up to 20mA max Example 2 same function as example 1 above but shows a different approac...

Страница 116: ...is fixed in the main function the header of your algorithm function is also pre defined This means that unlike standard C language programming your algorithm program a function need not must not include the function declaration header opening brace and closing brace You only supply the body of your function the HP E1415 s driver supplies the rest Think of the program space in the HP E1415 in the f...

Страница 117: ...te_1 Ratio_1 Count_1 created if alg1 defined static float State_2 Ratio_2 Count_2 created if alg2 defined this section created if ALG1 is defined Count_1 Count_1 1 Count_1 used for ALG SCAN RATIO if Count_1 0 test for ratio met 0 means execute Count_1 Ratio_1 Count_1 ALG SCAN RATIO setting if State_1 alg1 if ALG STATE ALG1 ON call alg1 this section created if ALG2 is defined Count_2 Count_2 1 Coun...

Страница 118: ...s Output channels can appear on either or both sides of an assignment operator They can appear anywhere other variables can appear Examples O100 12 5 send value to output channel buffer element 0 O108 B4 O108 B4 compliment value found in output channel buffer element 8 bit 4 each time algorithm is executed writecvt O116 350 send value of output channel 16 to CVT element 350 Input Channels Input ch...

Страница 119: ...ALG DEF GLOBALS static float glob_scal_var 22 53 declare one scalar variable and one array variable ALG DEF GLOBALS static float glob_scal_var glob_array_var 12 You access global variables within your algorithm like any other variable glob_scal_var P_factor I108 NOTES 1 All variables must be declared static float 2 Array variables cannot be assigned a value when declared 3 All variables declared w...

Страница 120: ...variable 22 95 reset variable only when INIT starts alg Sending Data to the CVT and FIFO The Current Value Table CVT and FIFO data buffer provide communication from your algorithm to your application program running in your VXIbus controller Writing a CVT element The CVT provides 502 addressable elements where algorithm values can be stored To send a value to a CVT element you will execute the int...

Страница 121: ... a cvt_element Reading these values is done the same way as mentioned for writefifo and writecvt Setting a VXIbus Interrupt The algorithm language provides the function interrupt to force a VXIbus interrupt When interrupt is executed in your algorithm a VXIbus interrupt line selected by the the SCPI command DIAG INTR LINe is asserted The following example algorithm code tests an input channel valu...

Страница 122: ... table values from your function equation see Generating User Defined Functions in Appendix F page 367 For details on the ALG FUNC DEF command see page 176 in the Command Reference User defined functions are global in scope A user function defined with ALG FUNC DEF is available to all defined algorithms Up to 32 functions can be defined in the HP E1415 You call your function with the syntax func_n...

Страница 123: ...igital output bit on HP E1533 in SCP position 3 O124 B0 0 Traditionally you expect the first of these two statements to set output channel 24 bit 0 to a digital 1 then after the time it takes to execute the second statement the bit would return to a digital 0 Because both of these statements are executed BEFORE any values are sent to the output hardware only the last statement has any effect Even ...

Страница 124: ...124 Creating and Running Custom Algorithms Chapter 4 Figure 4 2 Algorithm Operating Sequence Diagram ...

Страница 125: ... ALG1 if First_loop O108 0 O108 O108 01 1 SCPI Indefinite Length Block Program Data This form terminates the data transfer when it received an End Identifier with the last data byte Use this form only when you are sure your controller platform will include the End Identifier If it is not included the ALG DEF command will swallow whatever data follows the algorithm code The syntax for this paramete...

Страница 126: ...ARY byte_count read file_handle source_buffer sizeof source_buffer close file_handle source_buffer byte_count 0 null to terminate source buffer string sprintf header_string d byte_count 1 note byte_count 1for null byte sprintf header_string d d strlen header_string byte_count viPrintf e1415 ALG DEF ALG4 s s c n header_string source_buffer null See the section Running the Algorithm later in this ch...

Страница 127: ...y again executing ALG DEF ALG3 42435 2435char_alg_source Notice that swap_size is not must not be included this time This ALG DEF works like an Update Request The HP E1415 translates and downloads the new algorithm into ALG3 s space B while the old ALG3 is still running from space A When the new algorithm has been completely loaded into space B and an ALG UPDATE command has been sent the HP E1415 ...

Страница 128: ...uired channels will be included in the channel list define alg_name and re define all algorithms that will replace alg_name by swapping them before you send INIT This insures that all channels referenced in these algorithms will be available after INIT 2 The driver only calculates overall execution time for algorithms defined before INIT This calculation is used to set the default output delay sam...

Страница 129: ...f the HP E1415 s standard PID algorithms PIDA and PIDB are also available as source files supplied with your HP E1415 Also included is a source file for a PIDC algorithm PIDC has more features than PIDB but is not pre defined in the HP E1415 s driver like PIDA and PIDB It is only available as a source file PIDA with digital On Off Control The HP E1415 s PID algorithms are written to supply control...

Страница 130: ...put channel specifier of your choice e g I100 4 As in step 3 change all occurrences of outchan to the digital output channel bit identifier of your choice e g O108 B0 5 Now save this algorithm source file as ONOFFPID C Algorithm to Algorithm Communication The ability for one algorithm to have access to values from another can be very important particularly in more complex control situations One of...

Страница 131: ...2 O124 O124 Decouple_factor2 O125 O125 O125 Decouple_factor1 O124 Communication Using Global Variables A more traditional method of inter algorithm communication uses global variables Global variables are defined using the ALG DEF command in the form ALG DEF GLOBALS variable_declaration_statements Example of global declaration ALG DEF GLOBALS static float cold_setpoint Implementing Feed Forward Co...

Страница 132: ...int hot_flow cold_hot_ratio output flow setpoint for ALG2 3 Modify a PIDA algorithm so its setpoint variable is the global variable cold_setpoint its input channel is I109 and its output channel is O116 and Define as ALG2 the cold supply flow controller Modified PIDA Algorithm comments stripped out setpoint from global inchan I109 outchan O116 the setpoint is not declared so it will be global stat...

Страница 133: ... I104 334 channel 4 to FIFO and CVT element 334 writeboth I105 335 channel 5 to FIFO and CVT element 335 writeboth I106 336 channel 6 to FIFO and CVT element 336 writeboth I107 337 channel 7 to FIFO and CVT element 337 writeboth I116 338 channel 16 to FIFO and CVT element 338 Using SENS DATA FIFO and the SENS DATA CVT commands your application program can access the data Process Monitoring Algorit...

Страница 134: ...this technique as setpoint ramping Most setpoint profiles are usually pre calculated by the application program and downloaded into the instrument performing the sequencing In that case an array affords the best alternative for several reasons Arrays can hold up to 1024 points Arrays can be downloaded quickly while the algorithm is running Time intervals can be tied to trigger events and each N tr...

Страница 135: ... new value index index 1 increment index if index 1023 look for endpoint index 0 O140 B0 O140 B0 toggle update bit n num_events reset interval count ALG SCAL alg1 num_events 10 output change every 10msec ALG ARRAY alg1 setpoints block_data set first profile ALG UPD force change TRIG TIMER 001 trigger event at 1msec TRIG SOUR TIMER trigger source timer INIT start algorithm Download new setpoint pro...

Страница 136: ...136 Creating and Running Custom Algorithms Chapter 4 Notes ...

Страница 137: ...tion values from these tables in under 18µseconds regardless of the function s original complexity This method provides faster algorithm execution by moving the complex math operations off board Appendix F page 367 Generating User Defined Functions This section assumes that you already program in some language If you are already a C language programmer this reference section as well as Chapter 4 C...

Страница 138: ...itional reserved keywords You may not create variables using these names Identifiers Identifiers variable names are significant to 31 characters They can include alpha numeric and the underscore character _ Names must begin with an alpha character or the underscore character Alpha a b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z Numeric 0 1 2 ...

Страница 139: ... Operators The HP E1415 s Algorithm Language supports the following operators Assignment Operator assignment example c 1 2345 Arithmetic Operators addition examples c a b subtraction c a b multiplication c a b division c a b Unary Operators unary minus c a b unary plus c a b Comparison Operators is equal to examples a b is not equal to a b is less than a b is greater than a b is less than or equal...

Страница 140: ...on statement1 else statement2 If expression evaluates to non zero statement1 is executed If expression evaluates to zero statement2 is executed The else clause with its associated statement2 is optional Statement1 and or statement2 can be compound statement That is statement statement statement Exiting the Algorithm The return statement allows terminating algorithm execution before reaching the en...

Страница 141: ...romoted the other constant to a float value and performed a float divide operation resulting in the expected 0 75 12 or the value 8 0 So the statement a 3 4 12 will result in the value float 8 0 being assigned to the variable a The Static Modifier All HP E1415 variables local or global must be declared as static An example static float gain_var integer_var deriv_var three vars declared In C local ...

Страница 142: ...s bitfield syntax that allows you to manipulate individual bit values within a variable This syntax is similar to what would be done in C but doesn t require a structure declaration Bitfield syntax is supported only for the lower 16 bits bits 0 15 of simple scalar variables and channel identifiers Use if word_var B0 word_var B3 if either bit 0 or bit 3 true word_var B15 1 set bit 15 NOTES 1 You do...

Страница 143: ...le and array variable declaration initialization statements The string must not contain any executable source code Language Syntax Summary This section documents the HP E1415 s Algorithm Language elements Identifier first character is A Z a z or _ optionally followed by characters A Z a z 0 9 or _ Only the first 31 characters are significant For example a abc a1 a12 a_12 now_is_the_time gain1 Deci...

Страница 144: ... expression expression min expression expression Bit number Bn where n 0 9 Bnn where nn 10 15 Unary expression primary expression unary operator unary expression Unary operator Multiplicative expression unary expression multiplicative expression multiplicative operator unary expression Multiplicative operator Additive expression multiplicative expression additive expression additive operator multi...

Страница 145: ...ssion equality expression logical AND expression equality expression Expression logical AND expression expression logical AND expression Declarator identifier identifier integer constant expression NOTE integer constant expression in array identifier above must not exceed 1023 Init declarator declarator declarator constant expression NOTES 1 May not initialize array declarator 2 Arrays limited to ...

Страница 146: ...t scalar identifier expression scalar identifier bit number expression array identifier integer constant expression expression intrinsic statement Selection statement if expression statement if expression statement else statement Compound statement statement list NOTE Variable declaration not allowed in compound statement Statement expression statement compound statement selection statement Statem...

Страница 147: ...are of type float you must explicitly declare them as such All variables in your algorithm are static This means that each time your algorithm is executed the variables remember their values from the previous execution The static modifier must appear in the declaration Array variables must have a single dimension The array dimension specifies the number of elements The lower bound is always zero 0...

Страница 148: ...ror for BASIC programmers is to inadvertently use the assignment operator instead of the comparison operator in an if statement Fortunately the HP E1415 will flag this as a Syntax Error when the algorithm is loaded The Logical Operators There are three operators They are very different from those in BASIC BASIC Examples C Examples AND IF A B AND B C if a b b c OR IF A B OR A C if a b a c NOT IF NO...

Страница 149: ...th else used often Comments if boolean_expression statement if boolean_expression statement if boolean_expression statement statement statement if boolean_expression statement statement else statement C Syntax Figure 5 1 The if Statement C versus BASIC IF boolean_expression THEN statement IF boolean_expression THEN statement END IF IF boolean_expression THEN statement statement statement END IF IF...

Страница 150: ...nt within a code line This comment is composed of more than one line The comment can be any number of lines long and terminates when the following two characters appear About the only character combination that is not allowed within a comment is since this will terminate the comment Overall Program Structure The preceding discussion showed the differences between individual statements in BASIC and...

Страница 151: ...atement writecvt ends with else else immediately follows complete if statement construct open compound statement for else clause writecvt user_value 2 331 each simple statement ends in even within compound writefifo user_value these two statements could combine with writeboth close compound statement for else clause close compound statement for first if else writecvt 0 331 else clause goes with fi...

Страница 152: ...152 Algorithm Language Reference Chapter 5 Notes ...

Страница 153: ...size source_code 167 ALGorithm EXPLicit SCALar alg_name var_name value 171 ALGorithm EXPLicit SCALar alg_name var_name 172 ALGorithm EXPLicit SCAN RATio alg_name num_trigs 172 ALGorithm EXPLicit SCAN RATio alg_name 173 ALGorithm EXPLicit SIZE alg_name 173 ALGorithm EXPLicit STATe alg_name enable 174 ALGorithm EXPLicit STATe alg_name 175 ALGorithm EXPLicit TIME alg_name 175 ALGorithm FUNCtion DEFin...

Страница 154: ...AGnostic CUSTom REFerence TEMPerature 199 DIAGnostic FLOor CONFigure range ch_list 199 DIAGnostic FLOor DUMP 200 DIAGnostic IEEE mode 200 DIAGnostic IEEE 201 DIAGnostic INTerrupt LINe intr_line 201 DIAGnostic INTerrupt LINe 201 DIAGnostic OTDetect STATe enable ch_list 202 DIAGnostic OTDetect STATe channel 202 DIAGnostic QUERy SCPREAD reg_addr 203 DIAGnostic VERSion 203 FETCh 204 FORMat DATA format...

Страница 155: ...PLitude amplitude ch_list 227 OUTPut VOLTage AMPLitude channel 228 ROUTe SEQuence DEFine type 229 ROUTe SEQuence POINts type 230 SAMPle TIMer interval 231 SAMPle TIMer 232 SENSe CHANnel SETTling num_samples ch_list 234 SENSe CHANnel SETTling channel 234 SENSe DATA CVTable element_list 235 SENSe DATA CVTable RESet 236 SENSe DATA FIFO ALL 237 SENSe DATA FIFO COUNt 238 SENSe DATA FIFO COUNt HALF 238 ...

Страница 156: ...SENSe STRain POISson poisson_ratio ch_list 257 SENSe STRain POISson channel 257 SENSe STRain UNSTrained unstrained_v ch_list 258 SENSe STRain UNSTrained channel 258 SENSe TOTalize RESet MODE select ch_list 259 SENSe TOTalize RESet MODE channel 259 SOURce FM STATe enable ch_list 261 SOURce FM STATe channel 262 SOURce FUNCtion SHAPe CONDition ch_list 262 SOURce FUNCtion SHAPe PULSe ch_list 262 SOURc...

Страница 157: ...8 SYSTem CTYPe channel 279 SYSTem ERRor 279 SYSTem VERSion 280 TRIGger COUNt trig_count 283 TRIGger COUNt 283 TRIGger IMMediate 283 TRIGger SOURce trig_source 284 TRIGger SOURce 285 TRIGger TIMer PERiod trig_interval 285 TRIGger TIMer PERiod 286 Common Commands CAL 287 CLS 288 DMC name cmd_data 288 EMC enable 288 EMC 288 ESE mask 288 ESE 289 ESR 289 GMC name 289 IDN 289 LMC 290 OPC 290 OPC 290 PMC...

Страница 158: ... VME ADDRess A24_address ADDRess SIZE mem_size SIZE MEMory is the root command VME is the second level command and ADDRess and SIZE are third level commands Command Separator A colon always separates one command from the next lower level command as shown below ROUTE SEQUENCE DEFINE Colons separate the root command from the second level command ROUTE SEQUENCE and the second level from the third lev...

Страница 159: ...ween the command and the number because the number is not a parameter The number is part of the command syntax The purpose of this notation is to save a great deal of space in the Command Reference In the case of TTLTrg n n can be from 0 through 7 An example command statement OUTPUT TTLTRG2 STATE ON Parameters Parameter Types The following section contains explanations and examples of parameter ty...

Страница 160: ...r the second channel must be greater than the first Example channels 0 through 15 100 115 By using commas to separate them individual and range specifications can be combined into a single channel list 0 5 6 through 32 and 45 100 105 106 132 145 Note that a channel list is always contained within and The Command Reference always shows the and punctuation ch_list Arbitrary Block Program and Respons...

Страница 161: ...32 FORMAT DATA REAL 64 will set length to 64 Be sure to place a space between the command and the first parameter Linking Commands Linking commands is used when you want to send more than one complete command in a single command statement Linking IEEE 488 2 Common Commands with SCPI Commands Use a semicolon between the commands For example RST OUTP TTLT3 ON or TRIG SOUR IMM TRG Linking Multiple co...

Страница 162: ... same command branch and level as the complete command preceding the semicolon or a 113 Undefined header error will be generated C SCPI Data Types The following table shows the allowable type and sizes of the C SCPI parameter data senttothemoduleandquerydatareturnedbythemodule Theparameterandreturned value type is necessary for programming and is documented in each command in this chapter Data Typ...

Страница 163: ...nce The following section describes the SCPI commands for the HP E1415 Commands are listed alphabetically by subsystem and also within each subsystem A command guide is printed in the top margin of each page The guide indicates the current subsystem on that page ...

Страница 164: ...g on the process this uncontrolled situation could even be dangerous Make certain that you have put your process into a safe state before you halt execution of a controlling algorithm Comments ABORt does not affect any other settings of the trigger system When the INITiate command is sent the trigger system will respond just as it did before the ABORt command was sent Related Commands INITiate IMM...

Страница 165: ...oop algorithm execution speed Easy definition of algorithm data conversion functions Subsystem Syntax ALGorithm EXPLicit ARRay alg_name array_name array_block ARRay alg_name array_name DEFine alg_name swap_size program_block SCALar alg_name var_name value SCALar alg_name var_name SCAN RATio alg_name value SCAN RATio alg_name SIZe alg_name STATe alg_name ON OFF STATe alg_name TIME alg_name FUNCtion...

Страница 166: ...memory required to store the array When you send the ALG ARRAY command the new values for the array are loaded into the second space for this array When you send the ALG UPDATE or ALG UPDATE CHANNEL commands the HP E1415 switches a pointer to the space containing the new array values This is how even large arrays can be updated as if they were a single update request If the array is again updated ...

Страница 167: ...me later while it is running The value can range up to about 23Kwords ALG DEF will then allocate 46K words as it creates two spaces for this algorithm If included swap_size specifies the number of words of memory to allocate for the algorithm specified by alg_name The HP E1415 will then allocate this much memory again as an update buffer for this algorithm Note that this doubles the amount of memo...

Страница 168: ...his algorithm ALG DEF ALG3 PIDB I100 O124 O132 B2 b Algorithm Language source code representing a custom algorithm ALG DEF ALG5 if First_loop O116 0 O116 O116 0 01 When alg_name is GLOBALS Algorithm Language variable declarations A variable name must not be the same as an already define user function ALG DEF GLOBALS static float my_glob_scalar my_glob_array 24 The Algorithm Language source code is...

Страница 169: ...include the End Identifier If it is not included the ALG DEF command will swallow whatever data follows the algorithm code The syntax for this parameter type is 0 data byte s null byte with End Identifier Example from Quoted String above ALG DEF ALG1 0O108 I100 where is a null byte Note For Block Program Data the Algorithm Parser requires that the source_code data end with a null 0 byte You must a...

Страница 170: ...se O108 15 0 INIT starts algorithm ALG DEF ALG3 if O108 12 0 O108 O108 0 2 else O108 12 0 ALG UPDATE Required to cause new code to run No error Error RST ALG DEF ALG3 200 if O108 15 0 O108 O108 0 1 else O108 15 0 INIT starts algorithm ALG DEF ALG3 200 if O108 12 0 O108 O108 0 2 else O108 12 0 Algorithm swapping already enabled Can t change size Because swap_size included at re definition Notes 1 C...

Страница 171: ...te is then pending until ALG UPD is sent or an update event as set by ALG UPD CHANNEL occurs Note ALG SCALAR places a variable update request in the Update Queue You can not place more update requests in the Update Queue than are allowed by the current setting of ALG UPD WINDOW or a Too many updates send ALG UPDATE command error message will be generated Parameters Comments To send values to a glo...

Страница 172: ...ands and then synchronize their effect with ALG UPDATE 2 ALG SCAN RATio places a variable update request in the Update Queue You can not place more update requests in the Update Queue than are allowed by the current setting of ALG UPD WINDOW or a Too many updates send ALG UPDATE command error message will be generated Parameters Comments Specifying a value of 1 the default causes the named algorit...

Страница 173: ...1 to 32 768 The type is int16 ALGorithm EXPLicit SIZE ALGorithm EXPLicit SIZE alg_name returns the number of words of memory allocated for algorithm alg_name Parameters Comments Since the returned value is the memory allocated to the algorithm it will only equal the actual size of the algorithm if it was defined by ALG DEF without its swap_size parameter If enabled for swapping if swap_size includ...

Страница 174: ...output is left at the last value set by the algorithm Depending on the process this uncontrolled situation could even be dangerous Make certain that you have put your process into a safe state before you halt execution of a controlling algorithm The HP E1535 Watchdog Timer SCP was specifically developed to automatically signal that an algorithm has stopped controlling a process Use of the Watchdog...

Страница 175: ...G TIME returns only the time required to execute the algorithm s code When alg_name is MAIN ALG TIME returns the worst case execution time for an entire measurement control cycle sum of MAIN all enabled algorithms analog and digital inputs and control outputs If triggered more rapidly than the value returned by ALG TIME MAIN the HP E1415 will generate a Trigger too fast error Note If alg_name spec...

Страница 176: ... user function is globally available to all defined algorithms You generate values for range offset and func_data with a program supplied with your HP E1415 It is provided in C SCPI and HP Basic forms See Appendix F page 367 Generating User Defined Functions for full information range and offset define the allowable input values to the function domain If values input to the function are equal to o...

Страница 177: ...ution constructs in algorithms or other execution time variations If you set delay to less time than is required for the Input Update Calculate ALG OUTP DELAY will report the time you set but the effect will revert to the same that is set by ALG OUTP DELAY 0 Output begins immediately after Calculate When delay is AUTO the delay is set to the worst case time required to execute phases 1 through 3 T...

Страница 178: ...owever these changes do not take effect until the ALG UPD IMM command is processed at the beginning of the UPDATE phase The update command can be received at any time prior to the UPDATE phase and will be the last command accepted Note that the ALG UPD WINDow command specifies the maximum number of updates to do If no update command is pending when entering the UPDATE phase then this time is dedic...

Страница 179: ... E1415s when you want all variable updates to be processed at the same time Parameters Comments The duration of the level change to the designated bit or channel MUST be at least the length of time between scan triggers Variable and algorithm changes can be accepted during the INPUT or UPDATE phases Figure 6 1 when INIT is active All writes to variables and algorithms occur to their buffered eleme...

Страница 180: ...the update of all three scalars take effect next Phase 2 INIT ALG SCAL ALG1 Setpoint 25 ALG SCAL ALG1 P_factor 1 3 ALG SCAL ALG2 P_factor 1 7 ALG UPD CHAN I108 B0 update on state change at bit zero of 8 bit channel 8 ALGorithm UPDate WINDow ALGorithm UPDate WINDow num_updates specifies how many updates you may need to perform during phase 2 UPDATE The DSP will process this command and assign a con...

Страница 181: ...tes in queue error can occur before the module is INITialized It s not uncommon with several algorithms defined to have more variables that need to be pre set before INIT than you will change in one update after the algorithms are running You may send INIT with updates pending The INIT command automatically performs the updates before starting the algorithms ALGOrithm UPDate WINDow ALGOrithm UPDat...

Страница 182: ...ote The ARM subsystem may only be used then the TRIGger SOURce is TIMer If the TRIGger SOURce is not TIMer and ARM SOURce is set to anything other than IMMediate an Error 221 Settings conflict will be generated The ARM command subsystem provides An immediate software ARM ARM IMM Selection of the ARM source ARM SOUR BUS EXT HOLD IMM SCP TTLTRG n when TRIG SOUR is TIMer Figure 6 2 shows the overall ...

Страница 183: ... the possible choices See note about ARM subsystem on page 182 When TRIG SOURCE is TIMER an ARM event is required only to trigger the first scan After that the timer continues to run and the module goes to the Waiting For Trigger State ready for the next Timer trigger An ABORT command will return the module to the Trigger Idle State after the current scan is completed See TRIG SOURce for more deta...

Страница 184: ... TRIG SOUR RST Condition ARM SOUR IMM Usage ARM SOUR BUS Arm with ARM command ARM SOUR TTLTRG3 Arm with VXIbus TTLTRG3 line ARM SOURce ARM SOURce returns the current arm source configuration See the ARM SOUR command for more response data information Returned Value Discrete one of BUS HOLD IMM SCP or TTLT0 through TTLT7 The C SCPI type is string Usage ARM SOUR An enter statement return arm source ...

Страница 185: ...speed is of primary importance this function is performed only when the CAL ZERO command is executed Execute CAL ZERO as often as your control setup will allow Channel Calibration This function corrects for offset and gain errors for each module channel The internal current sources are also calibrated This calibration function corrects for thermal offsets and component drift for each channel out t...

Страница 186: ...e ref_volts ZERO CALibration CONFigure RESistance CALibration CONFigure RESistance connects the on board reference resistor to the Calibration Bus A four wire measurement of the resistor can be made with an external multimeter connected to the H Cal L Cal H ohm and L ohm terminals on the Terminal Module or the V H V L Ω H and Ω L terminals on the Cal Bus connector Comments Related Commands CAL VAL...

Страница 187: ...ter is set to FSCale full scale Parameters Comments The range parameter must be within 5 of one of the 5 following values 0625VDC 25VDC 1VDC 4VDC 16VDC range may be specified in millivolts mv The FSCALE output voltage of the calibration source will be greater than 90 of the nominal value for each range except the 16V range where the output is 10V When Accepted Not while INITiated Related Commands ...

Страница 188: ...nd then execute a CAL SET command to complete the operation on each instrument Related Commands CAL SETup CAL When Accepted Not while INITiated Usage CAL SET start SCP Calibration on 1st HP E1415 start SCP Calibration on more HP E1415s CAL SET start SCP Calibration on last HP E1415 CAL SET query for results from 1st HP E1415 query for results from more HP E1415s CAL SET query for results from last...

Страница 189: ...s below Parameters Comments The Flash Memory Protect jumper JM2201 must be set to the enable position before executing this command See Disabling Flash Memory Access optional on page 25 Channel offsets are compensated by the CAL TARE command even when not stored in the Flash Memory There is no need to use the CAL STORE TARE command for channels which are re calibrated frequently When Accepted Not ...

Страница 190: ... way would introduce an unwanted offset in the voltage temperature relationship for that channel If you inadvertently CAL TARE a thermocouple wire pair use CAL TARE RESET to reset all tare constants to zero 2 You should use CAL TARE to compensate wiring offsets copper wire not thermocouple wire between the HP E1415 and a remote thermocouple reference block Disconnect the thermocouples and introduc...

Страница 191: ... 27 years an application that stored constants many times each day would unnecessarily shorten the Flash Memory s lifetime See Comments below Executing CAL TARE sets the Calibrating bit bit 0 in Operation Status Group Executing CAL TARE resets the bit When Accepted Not while INITiated Related Commands CAL TARE CAL STOR TARE RST Condition Channel offsets are not affected by RST Command Sequence CAL...

Страница 192: ...orrect channel offsets CAL TARE to return the success flag from the CAL TARE operation CAL STORE TARE Optional depending on necessity of long term storage CALibration VALue RESistance CALibration VALue RESistance ref_ohms sends the just measured value of the on board reference resistor to the module for A D calibration Parameters Comments ref_ohms must be within 5 of the nominal reference resistor...

Страница 193: ...e currently configured range and output zero or full scale as set by the previous CAL CONF VOLT range ZERO FSCale command Full scale values must be within 10 of 0625 25 1 4 or 10 the voltage reference provides 10VDC on the 16V range ref_volts may be specified in millivolts mv A measurement of the source voltage can be made with an external multimeter connected to the H Cal and L Cal terminals on t...

Страница 194: ...fset drift zero Use the CAL common command to perform on line calibration of channels as well as A D offset CAL performs gain and offset correction of the A D and each channel with an analog SCP installed both input and output Returned Value The C SCPI type for this returned value is int16 Executing this command does not alter the module s programmed state function range etc Related Commands CAL R...

Страница 195: ...HECksum CUSTom LINear table_range table_block ch_list PIECewise table_range table_block ch_list REFerence TEMPerature FLOor CONFigure range ch_list DUMP IEEE 1 0 IEEE INTerrupt LINe intr_line LINe OTDetect STATe 1 0 ON OFF ch_list STATe channel QUERy SCPREAD reg_addr VERSion DIAGnostic CALibration SETup MODE DIAGnostic CALibration SETup MODE mode sets the type of calibration to use for analog outp...

Страница 196: ...eturns a 0 when channels are calibrated to provide the minimum error at their zero point See your SCPs User s Manual for its accuracy specifications using each mode The C SCPI type is int16 Related Commands DIAG CAL SET MOD CAL CAL SET RST Condition DIAG CAL SET MODE 1 DIAGnostic CALibration TARE OTDetect MODE DIAGnostic CALibration TARE OTDetect MODE mode sets whether Open Transducer Detect curre...

Страница 197: ...en OTD current will be turned off during CAL TARE Returns 1 when OTD current will be left on during CAL TARE operation The C SCPI type is int16 Related Commands DIAG CAL TARE MOD DIAG OTD CAL TARE RST Condition DIAG CAL TARE MODE 0 DIAGnostic CHECksum DIAGnostic CHECksum performs a checksum operation on Flash Memory A returned value of 1 indicates that Flash memory contents are correct A returned ...

Страница 198: ...er module DIAGnostic CUSTom PIECewise DIAGnostic CUSTom PIECewise table_range table_block ch_list downloads a custom piece wise Engineering Unit Conversion table in table_block to the HP E1415 Contact your Hewlett Packard System Engineer for more information on Custom Engineering Unit Conversion for your application Parameters Comments table_block is a block of 1 024 bytes that define 512 16 bit v...

Страница 199: ...ble Usage your program must have EU table values stored in table_block download the new reference EU table DIAG CUST PIECEWISE table_range table_block ch_list designate channel as reference SENS FUNC CUST REF range ch_list set up scan list sequence ch 0 in this case Now run the algorithm that uses the custom reference conversion table dump reference temp register to FIFO DIAG CUST REF TEMP read th...

Страница 200: ...the RST command A channel with an auto range floor can be manually ranged below the floor SENS FUNC commands When the channel is returned to auto range the auto range floor setting is still in effect Related Commands DIAG FLOOR DUMP SENS FUNC Power on and RST Condition DIAG FLOOR 0625 100 163 Usage DIAG FLOOR 25 100 104 channels 0 4 can range no lower than 25 DIAGnostic FLOor DUMP DIAGnostic FLOor...

Страница 201: ...EE 1 DIAGnostic INTerrupt LINe DIAGnostic INTerrupt LINe intr_line sets the VXIbus interrupt line the module will use Parameters Comments Related Commands DIAG INT LINE Power on and RST Condition DIAG INT LINE 1 Usage DIAG INT LINE 5 Module will interrupt on interrupt line 5 DIAGnostic INTerrupt LINe DIAGnostic INTerrupt LINe returns the VXIbus interrupt line that the module is set to use Comments...

Страница 202: ...librated with their OTD current off When mode is 1 channels that have their OTD current on DIAGnostic OTDetect ON ch_list are tare calibrated with their OTD current left on Related Commands DIAG OTDETECT STATE DIAG CAL TARE MODE Note RST Condition DIAG OTDETECT OFF If OTD is enabled when CAL or CAL TARE is executed the module will disable OTD wait 1 minute to allow channels to settle perform the c...

Страница 203: ...ype is int32 Usage DIAG QUERY SCPREAD 258 read Watchdog SCP s config status register enter statement here return SCP ID value DIAGnostic VERSion DIAGnostic VERSion returns the version of the firmware currently loaded into Flash Memory The version information includes manufacturer model serial number firmware version and date Comments Returned Value Examples of the response string format HEWLETT PA...

Страница 204: ...ck Program and Response Data on page 160 For REAL 32 readings are 4 bytes in length For REAL 64 and PACK 64 readings are 8 bytes in length PACKed 64 returns the same values as REAL 64 except for Not a Number NaN IEEE INF and IEEE INF The NaN IEEE INF and IEEE INF values returned by PACKed 64 are in a form compatible with HP Workstation BASIC and HP BASIC UX Refer to the FORMat command for the actu...

Страница 205: ... trigger on INIT INIT program execution remains here until VME memory is full or the HP E1415 has stopped taking readings FORM REAL 64 affects only the return of data FETCH Note When using the MEM subsystem the module must be triggered before executing the INIT command as shown above unless you are using an external trigger EXT trigger When using EXT trigger the trigger can occur at any time ...

Страница 206: ... by PACKed 64 are in a form compatible with HP Workstation BASIC and HP BASIC UX see table on following page REAL 32 REAL 64 and PACK 64 readings are returned in the IEEE 488 2 1987 Arbitrary Block Data format The Block Data may be either Definite Length or Indefinite Length depending on the data query command executed These data return formats are explained in Arbitrary Block Program and Response...

Страница 207: ... The NaN INF and INF values for each format are shown in the following table Table 6 1 Data Formats Usage FORMAT REAL Set format to IEEE 32 bit Floating Point FORM REAL 64 Set format to IEEE 64 bit Floating Point FORMAT ASCII 7 Set format to 7 bit ASCII FORMat DATA FORMat DATA returns the currently set response data format for readings Comments Returned Value Returns REAL 32 REAL 64 PACK 64 ASC 7 ...

Страница 208: ...208 HP E1415 Command Reference Chapter 6 FORMat The C SCPI type is string int16 Related Commands FORMAT RST Condition ASCII 7 Usage FORMAT Returns REAL 32 REAL 64 PACK 64 ASC 7 ...

Страница 209: ...Nt trigger cycles occur and the instrument returns to the Trigger Idle state Comments INIT IMM clears the FIFO and Current Value Table If a trigger event is received before the instrument is Initiated a 211 Trigger ignored error is generated If another trigger event is received before the instrument has completed the current trigger cycle measurement scan the Questionable Data Status bit 9 is set ...

Страница 210: ...choice of several discrete cutoff frequencies The cutoff frequency set will be the one closest to the value specified by cutoff_freq Refer to Chapter 6 for specific information on the SCP you are programming Sending MAX for the cutoff_freq selects the SCP s highest cutoff frequency Sending MIN for the cutoff_freq selects the SCP s lowest cutoff frequency To disable filtering the pass through mode ...

Страница 211: ... of Hz as set by the INP FILT FREQ command The C SCPI type is float32 When Accepted Not while INITiated Related Commands INP FILT LPAS FREQ INP FILT STATE RST Condition MIN Usage INPUT FILTER LPASS FREQUENCY 155 Check cutoff freq on channel 55 INP FILT FREQ 100 Check cutoff freq on channel 0 INPut FILTer LPASs STATe INPut FILTer LPASs STATe enable ch_list enables or disables a programmable filter ...

Страница 212: ...CPI type is int16 channel must specify a single channel only Usage INPUT FILTER LPASS STATE 115 Enter statement returns either 0 or 1 INP FILT 115 Same as above INPut GAIN INPut GAIN gain ch_list setsthe channel gainonprogrammableamplifier Signal Conditioning Plug Ons Parameters Comments A programmable amplifier SCP has a choice of several discrete gain settings The gain set will be the one closes...

Страница 213: ...y will return zero Parameters Comments channel must specify a single channel only If the channel specified does not have a programmable amplifier INP GAIN will return the nominal as designed gain for that channel Returned Value Numeric value as set by the INP GAIN command The C SCPI type is float32 When Accepted Not while INITiated Related Commands INP GAIN RST Condition gain set to 1 Usage INPUT ...

Страница 214: ...OW 103 enter statement will return either FLO or WV for channel 3 INPut POLarity INPut POLarity mode ch_list sets logical input polarity on a digital SCP channel Parameters Comments If the channels specified are on an SCP that doesn t support this function an error will be generated See your SCP s User s Manual to determine its Parameter Name Parameter Type Range of Values Default Units wvolt_type...

Страница 215: ...ough 43 INPut POLarity INPut POLarity channel returns the logical input polarity on a digital SCP channel Parameters Comments channel must specify a single channel If the channel specified is on an SCP that doesn t support this function an error will be generated See your SCP s User s Manual to determine its capabilities Returned Value returns NORM or INV The type is string Parameter Name Paramete...

Страница 216: ...ME STAT ON set up E1415 for scanning TRIG SOUR IMM let unit trigger on INIT INIT OPC program execution remains here until VME memory is full or the HP E1415 has stopped taking readings FORM REAL 64 affects only the return of data FETCH return data from VME memory Note When using the MEM subsystem the module must be triggered before executing the INIT command as shown above unless you are using an ...

Страница 217: ... be used as reading storage MEMory VME ADDRess MEMory VME ADDRess returns the address specified for the VME memory card used for reading storage Comments Returned Value numeric This command is only available in systems using an HP E1405B or HP E1406A command module Related Commands MEMory subsystem FORMat and FETCH Usage MEM VME ADDR Returns the address of the VME memory card MEMory VME SIZE MEMor...

Страница 218: ...ents This command is only available in systems using an HP E1405B or HP E1406A command module Returned Value Numeric Related Commands MEMory subsystem and FETCH Usage MEM VME SIZE Returns the number of bytes allocated to reading storage MEMory VME STATe MEMory VME STATe enable enables or disables use of the VME memory card as additional reading storage Parameters Comments This command is only avai...

Страница 219: ...Mory VME STATe returned value of 0 indicates that VME reading storage is disabled Returned value of 1 indicates VME memory is enabled Comments This command is only available in systems using an HP E1405B or HP E1406A command module Returned Value Numeric 1 or 0 C SCPI type uint16 Related Commands MEMory subsystem and FETCH Usage MEM VME STAT Returns 1 for enabled 0 for disabled ...

Страница 220: ...LTrg n STATe 1 0 ON OFF STATe TYPE PASSive ACTive ch_list TYPE channel VOLTage AMPLitude amplitude ch_list AMPLitude channel OUTPut CURRent AMPLitude OUTPut CURRent AMPLitude amplitude ch_list sets the HP E1505 Current Source SCP channels specified by ch_list to either 488 µA or 30 µA This current is typically used for four wire resistance and resistance temperature measurements Note This command ...

Страница 221: ...s 16 through 23 to 488 µA OUTP CURR AMPL 30E 6 105 Set Current Source SCP at channel 5 to 30 µA OUTPut CURRent AMPLitude OUTPut CURRent AMPLitude channel returns the range setting of the Current Source SCP channel specified by channel Parameters Comments channel must specify a single channel only If channel specifies an SCP which is not a Current Source a 3007 Invalid signal conditioning plug on e...

Страница 222: ... OUTP CURR OFF all channels Usage OUTP CURR OFF 100 108 turn off current source channels 0 and 8 OUTPut CURRent STATe OUTPut CURRent STATe channel returnsthestateoftheCurrentSource SCP channel specified by channel If the channel is not on an HP E1505 Current Source SCP the query will return zero Parameters Comments channel must specify a single channel only Returned Value returns 1 for enabled 0 f...

Страница 223: ...arity OUTPut POLarity channel returns the polarity on the digital output channel in channel Parameters Comments Channel must specify a single channel Returned Value returns one of NORM or INV The type is string OUTPut SHUNt OUTPut SHUNt enable ch_list adds shunt resistance to one leg of bridge on Strain Bridge Completion SCPs This can be used for diagnostic purposes and characterization of bridge ...

Страница 224: ...rameters Comments channel must specify a single channel only If channel specifies a non strain SCP a 3007 Invalid signal conditioning plug on error is generated Returned Value Returns 1 or 0 The C SCPI type is uint16 Related Commands OUTP SHUNT Usage OUTPUT SHUNt 116 Check status of shunt resistance on channel 16 OUTPut TTLTrg SOURce OUTPut TTLTrg SOURce trig_source selects the internal source of ...

Страница 225: ...ition OUTP TTLT SOUR TRIG Usage OUTP TTLT SOUR TRIG toggle TTLTRG line every time module is triggered use to trigger other HP E1415s OUTPut TTLTrg SOURce OUTPut TTLTrg SOURce returns the current setting for the TTLTRG line source Comments Returned Value Discrete one of TRIG FTR or SCP C SCPI type is string Related Commands OUTP TTLT SOUR Usage OUTP TTLT SOUR enter statement will return on of FTR S...

Страница 226: ...to source a trigger OUTPUT TTLTRG7 STATE ON Enable TTLTRG7 line to source a trigger OUTPut TTLTrg n STATe OUTPut TTLTrg n STATe returns the current state for TTLTRG line n Comments Returned Value Returns 1 or 0 The C SCPI type is int16 Related Commands OUTP TTLT n Usage OUTP TTLT2 See if TTLTRG2 line is enabled returns 1 or 0 OUTPUT TTLTRG7 STATE See if TTLTRG7 line is enabled OUTPut TYPE OUTPut T...

Страница 227: ...E channel returns the output drive characteristic for a digital channel Parameters Comments Channel must specify a single channel If the channel specified is not on a digital SCP an error will be generated Returned Value returns PASS or ACT The type is string RST Condition returns ACT OUTPut VOLTage AMPLitude OUTPut VOLTage AMPLitude amplitude ch_list sets the excitation voltage on programmable St...

Страница 228: ...s 16 through 19 OUTPut VOLTage AMPLitude OUTPut VOLTage AMPLitude channel returns the current setting of excitation voltage for the channel specified by channel If the channel is not on an HP E1511 SCP the query will return zero Comments channel must specify a single channel only Returned Value Numeric one of 0 1 2 5 or 10 C SCPI type is float32 Related Commands OUTP VOLT AMPL Usage OUTP VOLT AMPL...

Страница 229: ...list DIN selects the Digital Input channel list DOUT selects the Digital Output channel list Returned Value Definite Length Arbitrary Block Data format This data return format is explained in Arbitrary Block Program and Response Data on page 160 Each value is 2 bytes in length the C SCPI data type is an int16 array RST Condition To supply the necessary time delay before Digital inputs are read the...

Страница 230: ...rrently defined The type parameter selects which channel list will be queried AIN selects the Analog Input list AOUT selects the Analog Output list DIN selects the Digital Input list DOUT selects the Digital Output list Returned Value Numeric The C_SCPI type is int16 RST Condition The Analog Input list returns 8 the others return 0 Usage ROUT SEQ POINTS AIN query for analog input channel count Par...

Страница 231: ...annels in the specified Scan List is longer than the Trigger Timer interval at run time a Trigger too fast error will be generated the SAMP TIMER interval can change the effect of the SENS CHAN SETTLING command ALG CHAN SETT specifies the number of times a channel measurement should be repeated The total settling time per channel then is SAMP TIMER interval X chan_repeats from SENS CHAN SETT When ...

Страница 232: ... TIMer SAMPle TIMer returns the sample timer interval Comments Returned Value Numeric The C SCPI type is float32 Related Commands SAMP TIMER RST Condition Sample Timer set to 1 0E 5 seconds Usage SAMPLE TIMER Check the interval between channel measurements ...

Страница 233: ...nge ch_list FREQuency ch_list RESistance excite_current range ch_list STRain FBENding range ch_list FBPoisson range ch_list FPOisson range ch_list HBENding range ch_list HPOisson range ch_list QUARter range ch_list TEMPerature sensor_type sub_type range ch_list TOTalize ch_list VOLTage DC range ch_list REFerence sensor_type sub_type ch_list CHANnels ref_channel ch_list TEMPerature degrees_celsius ...

Страница 234: ... only once when referenced in an algorithm Since the scan list is limited to 64 entries an error will be generated if the number of channels referenced in algorithms plus the additional entries from any SENS CHAN SETTLING commands that coincide with algorithm referenced channels exceeds 64 The SAMPLE TIMER command can change the effect of the SENS CHAN SETTLING command since SAMPLE TIMER changes t...

Страница 235: ...This allows up to 32 PID algorithms to place up to 10 variable values each into the CVT The pre defined PIDB algorithm can return 4 variable values The PIDC algorithm defined as a custom algorithm can return up to 9 With up to 32 PIDs possible 320 elements are allocated for standard PIDs ALG1 can use elements 10 19 ALG2 can use elements 20 29 ALG3 can use elements 30 39 etc through ALG32 which can...

Страница 236: ...h the C SCPI data type is a float32 array For REAL 64 and PACK 64 each value is 8 bytes in length the C SCPI data type is a float64 array Note After RST Power on each element in the CVT contains the IEEE 754 value Not a number NaN Elements specified in the DATA CVT command that have not been written to be an algorithm will return the value 9 91E37 RST Condition All elements of CVT contains IEEE 75...

Страница 237: ...End Or Identify EOI follow the last value The C SCPI data type is a string array REAL 32 REAL 64 and PACK 64 values are returned in the IEEE 488 2 1987 Indefinite Length Arbitrary Block Data format This data return format is explained in Arbitrary Block Program and Response Data on page 160 For REAL 32 each value is 4 bytes in length the C SCPI data type is a float32 array For REAL 64 and PACK 64 ...

Страница 238: ...thod to poll the FIFO for the half full condition Returned Value Numeric 1 or 0 The C SCPI type is int16 Related Commands DATA FIFO HALF RST Condition FIFO empty Command Sequence DATA FIFO COUNT HALF poll FIFO for half full status DATA FIFO HALF returns 32768 values SENSe DATA FIFO HALF SENSe DATA FIFO HALF returns 32 768 values if the FIFO buffer is at least half full This command provides a fast...

Страница 239: ...ervoltage return IEEE INF see Table 6 1 on page 207 for actual values for each data format Related Commands DATA FIFO COUNT HALF RST Condition FIFO buffer is empty Command Sequence DATA FIFO COUNT HALF poll FIFO for half full status DATA FIFO HALF returns 32768 values SENSe DATA FIFO MODE SENSe DATA FIFO MODE mode sets the mode of operation for the FIFO buffer Parameters Comments In BLOCk ing mode...

Страница 240: ...ents Use the DATA FIFO COUNT command to determine the number of values in the FIFO buffer The format of values returned is set using the FORMat DATA command Returned Value ASCII values are returned in the form 1 234567E 123 For example 13 325 volts would be 1 3325000E 001 Each value is followed by a comma A line feed LF and End Or Identify EOI follow the last value The C SCPI data type is a string...

Страница 241: ...SE DATA FIFO RESET Usage SENSE DATA FIFO RESET Clear the FIFO SENSe FREQuency APERture SENSe FREQuency APERture gate_time ch_list sets the gate time for frequency measurement The gate time is the time period that the SCP will allow for counting signal transitions in order to calculate frequency Parameters Comments If the channels specified are on an SCP that doesn t support this function an error ...

Страница 242: ...s this is the RST condition for all digital I O channels Parameters Comments The HP E1533 SCP senses 8 digital bits on each channel specified by this command The HP E1534 SCP senses 1 digital bit on each channel specified by this command If the channels specified are not on a digital SCP an error will be generated Use the INPut POLarity command to set input logical sense Related Commands INPut POL...

Страница 243: ...specified is auto range If you are using amplifier SCPs you should set them first and keep their settings in mind when specifying a range setting For instance if your expected signal voltage is to be approximately 1VDC and the amplifier SCP for that channel has a gain of 8 you must set range no lower than 1VDC or an input out of range condition will exist If an A D reading is greater than the tabl...

Страница 244: ...ecifying 0 selects the lowest range 0625VDC Specifying AUTO selects auto range The default range no range parameter specified is auto range If you are using amplifier SCPs you should set them first and keep their settings in mind when specifying a range setting For instance if your expected signal voltage is to be approximately 1VDC and the amplifier SCP for that channel has a gain of 8 you must s...

Страница 245: ...range Specifying a value larger than 16 generates an error Specifying 0 selects the lowest range 0625VDC Specifying AUTO selects auto range The default range no range parameter specified is auto range If you are using amplifier SCPs you should set them first and keep their settings in mind when specifying a range setting For instance if your expected signal voltage is to be approximately 1VDC and ...

Страница 246: ...d See your SCP s User s Manual for its capabilities Use the SENSe FREQuency APERture command to set the gate time for the frequency measurement Related commands SENS FREQ APER RST Condition SENS FUNC COND and INP POL NORM for all digital SCP channels Usage SENS FUNC FREQ 144 set channel 44 s sense function to frequency SENSe FUNCtion RESistance SENSe FUNCtion RESistance excite_current range ch_lis...

Страница 247: ... measurements require the use of Current Source Signal Conditioning Plug Ons The excite_current parameter excitation current does not control the current applied to the channel to be measured The excite_current parameter only passes the setting of the SCP supplying current to channel to be measured The current must have already been set using the OUTPUT CURRENT AMPL command The choices for excite_...

Страница 248: ...ify to the strain EU conversion algorithm SENSe FUNCtion STRain bridge_type range ch_list links the strain EU conversion with the channels specified by ch_list to measure the bridge voltage See Linking Input Channels to EU Conversion on page 64 The following table relates the command syntax to bridge type See your Strain SCP user s manual for bridge schematics and field wiring information Note Bec...

Страница 249: ...nge no range parameter specified is auto range If you are using amplifier SCPs you should set them first and keep their settings in mind when specifying a range setting For instance if your expected signal voltage is to be approximately 1VDC and the amplifier SCP for that channel has a gain of 8 you must set range no lower than 1VDC or an input out of range condition will exist The channel calibra...

Страница 250: ...fier SCP for that channel has a gain of 8 you must set range no lower than 1VDC or an input out of range condition will exist The sub_type parameter values of 85 and 92 differentiate between 100 Ohm 0 C RTDs with temperature coefficients of 0 00385 and and 0 00392 Ohm Ohm C respectively The sub_type values of 2250 5000 and 10000 refer to thermistors that match the Omega 44000 series temperature re...

Страница 251: ... THER 5000 100 SENSe FUNCtion TOTalize SENSe FUNCtion TOTalize ch_list sets the SENSe function to TOTalize for channels in ch_list Parameters Comments The totalize function counts rising edges of digital transitions at Frequency Totalize SCP channels The counter is 24 bits wide and can count up to 16 777 215 The SENS TOT RESET MODE command controls which events will reset the counter If the channe...

Страница 252: ...dition will exist The CAL command calibrates channels based on Sense Amplifier SCP setup at the time of execution If SCP settings are changed those channels are no longer calibrated CAL must be executed again See Linking Input Channels to EU Conversion on page 64 When Accepted Not while INITiated Related Commands CAL INPUT GAIN RST Condition SENSE FUNC VOLT AUTO 100 163 Usage FUNC VOLT 140 163 Cha...

Страница 253: ...e The default range no range parameter specified is auto range If you are using amplifier SCPs you should set them first and keep their settings in mind when specifying a range setting For instance if your expected signal voltage is to be approximately 1VDC and the amplifier SCP for that channel has a gain of 8 you must set range no lower than 1VDC or an input out of range condition will exist The...

Страница 254: ...annels in the scan list If thermocouple measurements are made through more than one isothermal reference panel you will set up a reference channel for each Execute the SENS REF CHAN command for each reference measurement channel group Related commands SENS FUNC TEMP SENS REF RST Condition Scan List contains no channel references Usage SENS FUNC TEMP TC E 0625 108 115 E type TCs on channels 8 throu...

Страница 255: ...thermocouple conversion will assume compensation junction at 40 degrees C SENSe STRain EXCitation SENSe STRain EXCitation excite_v ch_list specifies the excitation voltage value to be used to convert strain bridge readings for the channels specified by ch_list This command does not control the output voltage of any source Parameters Comments ch_list must specify the channel used to sense the bridg...

Страница 256: ...cifies the gage factor to be used to convert strain bridge readings for the channels specified by ch_list Parameters Comments ch_list must specify the channel used to sense the bridge voltage not the channel position on a Bridge Completion SCP Related Commands SENSE STRAIN GFAC SENSE FUNC STRAIN RST Condition Gage factor is 2 Usage STRAIN GFAC 3 100 107 set gage factor for channels 0 through 7 SEN...

Страница 257: ...y channels used to sense strain bridge output not channel positions on a Bridge Completion SCP Related Commands FUNC STRAIN STRAIN POISson RST Condition Poisson ratio is 3 Usage STRAIN POISSON 5 124 131 set Poisson ratio for sense channels 24 through 31 SENSe STRain POISson SENSe STRain POISson channel returns the Poisson ratio currently set for the sense channel specified by channel Parameters Pa...

Страница 258: ...idge sense channel to determine the correct value for unstrained_v ch_list must specify the channel used to sense the bridge voltage not the channel position on a Bridge Completion SCP Related Commands SENSE STRAIN UNST SENSE FUNC STRAIN RST Condition Unstrained voltage is zero Usage STRAIN UNST 024 100 set unstrained voltage for channel 0 SENSe STRain UNSTrained SENSe STRain UNSTrained channel re...

Страница 259: ...al is reset every time a new scan is triggered If the channels specified are not on a Frequency Totalize SCP an error will be generated Related Commands SENS FUNC TOT INPUT POLARITY RST Condition SENS TOT RESET MODE INIT Usage SENS TOT RESET MODE TRIG 134 totalizer at channel 34 resets at each trigger event SENSe TOTalize RESet MODE SENSe TOTalize RESet MODE channel returns the reset mode for the ...

Страница 260: ...260 HP E1415 Command Reference Chapter 6 SENSe If the channel specified is not on a frequency totalize SCP an error will be generated Returned Value returns INIT or TRIG The type is string ...

Страница 261: ...dulated mode for a PULSe channel Parameters Comments This command is coupled with the SOURce PULM STATE command If the FM state is ON then the PULM state is OFF If the PULM state is ON then the FM state is OFF If both the FM and the PULM states are OFF then the PULSe channel is in the single pulse mode If the channels specified are not on a Frequency Totalize SCP an error will be generated Use SOU...

Страница 262: ...le channel If the channel specified is not on a Frequency Totalize SCP an error will be generated Returned Value returns 1 ON or 0 OFF The type is uint16 SOURce FUNCtion SHAPe CONDition SOURce FUNCtion SHAPe CONDition ch_list sets the SOURce function to output digital patterns to bits in ch_list Parameters Comments The HP E1533 SCP sources 8 digital bits on the channel specified by this command Th...

Страница 263: ...ithm language function O143 2000 set channel 43 to 2KHz SOURce PULM STATe SOURce PULM STATe enable ch_list enable the pulse width modulated mode for the PULSe channels in ch_list Parameters Comments This command is coupled with the SOURce FM command If the FM state is enabled then the PULM state is disabled If the PULM state is enabled then the FM state is disabled If both the FM and the PULM stat...

Страница 264: ...t on a Frequency Totalize SCP an error will be generated RST Condition SOUR FM STATE OFF and SOUR PULM STATE OFF Related Commands SOUR PULM STATE SOUR PULS POLarity The variable pulse width control for this channel is provided by the algorithm language When the algorithm executes an assignment statement to this channel the value assigned will be the pulse width setting For example O140 0025 set ch...

Страница 265: ...OUR FM STATE OFF and SOUR PULM STATE OFF Related Commands SOUR PULM STATE SOUR PULS POLarity The variable frequency control for this channel is provided by the algorithm language When the algorithm executes an assignment statement to this channel the value assigned will be the frequency setting For example O143 2000 set channel 43 to 2KHz Usage SOUR PULS WIDTH 2 50E 3 143 set fixed pulse width of ...

Страница 266: ...l must specify a single channel If the channels specified are not on a Frequency Totalize SCP an error will be generated Returned Value returns the numeric pulse width The type is float32 Parameter Name Parameter Type Range of Values Default Units channel string 100 163 none ...

Страница 267: ...rs contain latched representations of signal transition events from their Condition register Querying an Event register reads and then clears its contents making it ready to record further event transitions from its Condition register Enable registers are used to select which signals from an Event register will be logically ORed together to form a summary bit in the Status Byte Summary register Se...

Страница 268: ...ansition PTRansition transition_mask PTRansition The Status system contains four status groups Operation Status Group Questionable Data Group Standard Event Group Status Byte Group This SCPI STATus subsystem communicates with the first two groups while IEEE 488 2 Common Commands documented later in this chapter communicate with Standard Event and Status Byte Groups SCPI Transition Filters SCPI Ena...

Страница 269: ...d in this register see STAT OPER EVENT bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 value always 0 16 384 8 192 4 096 2 048 1 024 512 256 128 64 32 16 8 4 2 1 Bit dec value hex value Bit Name Description 0 1 000116 Calibrating Set by CAL TARE and CAL SETup Cleared by CAL TARE and CAL SETup Set while CAL executes and reset when CAL completes Set by CAL CONFIG VOLT or CAL CONFIG RES cleared by CAL VAL ...

Страница 270: ..._mask may be sent as decimal hex H octal Q or binary B VXI Interrupts When Operation Status Group bits 4 8 9 10 or 11 are enabled VXI card interrupts will occur as follows When the event corresponding to bit 4 occurs and then is cleared the card will generate a VXI interrupt When the event corresponding to bit 8 9 10 or 11 occurs the card will generate a VXI interrupt NOTE In C SCPI the C SCPI ove...

Страница 271: ...st be executed after an SRQ to re enable future interrupts Returned Value Decimal weighted sum of all set bits The C SCPI type is uint16 Related Commands STB SPOLL STAT OPER COND STAT OPER ENABLE STAT OPER ENABLE Cleared By CLS power on and by reading the register RST Condition No change Usage STAT OPER EVENT Enter statement will return the value of bits set in the Operation Event register STAT OP...

Страница 272: ...ion NTRansition STATus OPERation NTRansition returns the value of bits set in the Negative Transition Filter NTF register Comments Returned Value Decimal weighted sum of all set bits The C SCPI type is uint16 Related Commands STAT OPER NTR RST Condition No change Usage STAT OPER NTR Enter statement returns current value of bits set in the NTF register STATus OPERation PTRansition STATus OPERation ...

Страница 273: ...ster STATus OPERation PTRansition STATus OPERation PTRansition returns the value of bits set in the Positive Transition Filter PTF register Comments Returned Value Decimal weighted sum of all set bits The C SCPI type is uint16 Related Commands STAT OPER PTR RST Condition No change Usage STAT OPER PTR Enter statement returns current value of bits set in the PTF register STATus PRESet STATus PRESet ...

Страница 274: ...RESISTANCE CAL VALUE VOLTAGE STAT QUES EVENT STAT QUES ENABLE Bit dec value hex value Bit Name Description 0 7 Not used 8 256 010016 Calibration Lost At RST or Power on Control Processor has found a checksum error in the Calibration Constants Read error s with SYST ERR and re calibrate area s that lost constants 9 512 020016 Trigger Too Fast Scan not complete when another trigger event received 10...

Страница 275: ... are using non compiled SCPI VXI card interrupts will be enabled When the event corresponding to bit 9 10 or 11 occurs the card will generate a VXI interrupt Related Commands STB SPOLL STAT QUES COND STAT QUES EVENT STAT QUES ENABLE Cleared By STAT PRESet and power on RST Condition No change Usage STAT QUES ENABLE 128 Set bit 7 in the Questionable Enable register STATus QUEStionable ENABle STATus ...

Страница 276: ...UEStionable NTRansition STATus QUEStionable NTRansition transition_mask setsbitsintheNegative Transition Filter NTF register When a bit in the NTF register is set to one the corresponding bit in the Condition register must change from a one to a zero in order to set the corresponding bit in the Event register When a bit in the NTF register is zero a negative transition of the Condition register bi...

Страница 277: ...k sets bits in the Positive Transition Filter PTF register When a bit in the PTF register is set to one the corresponding bit in the Condition register must change from a zero to a one in order to set the corresponding bit in the Event register When a bit in the PTF register is zero a positive transition of the Condition register bit will not change the Event register bit Parameters Comments trans...

Страница 278: ...e set bit 10 in Status Operation Event register STATus QUEStionable PTRansition STATus QUEStionable PTRansition returns the value of bits set in the Positive Transition Filter PTF register Comments Returned Value Decimal weighted sum of all set bits The C SCPI type is uint16 Related Commands STAT QUES PTR RST Condition No change Usage STAT OPER PTR Enter statement returns current value of bits set...

Страница 279: ...SCPI type is string For specific response string refer to the appropriate SCP manual If channel specifies a position where no SCP is installed the module returns the response string 0 No SCP at this Address 0 0 Usage SYST CTYPE 100 return SCP type install at channel 0 SYSTem ERRor SYSTem ERRor returns the latest error entered into the Error Queue Comments SYST ERR returns one error message from th...

Страница 280: ...em Usage SYST ERR returns the next error message from the Error Queue SYSTem VERSion SYSTem VERSion returns the version of SCPI this instrument complies with Comments Returned Value String 1990 The C SCPI type is string Usage SYST VER Returns 1990 ...

Страница 281: ...cease external trigger source stops or are ignored TRIGger COUNt reached algorithms execution will stop In this case control outputs are left at the last value set by the algorithms Depending on the process this uncontrolled situation could even be dangerous Make certain that you have put your process into a safe state before you halt stop triggering execution of a controlling algorithm The HP E15...

Страница 282: ... EXTernal HOLD SCP IMMediate TIMer TTLTrg n SOURce TIMer PERiod trig_interval PERiod Trigger Idle State Initiated State TRIG SOUR TIMer ABORT Trig Counter TRIG COUNT NOTE For continuous algorithm execution use TRIG COUNT 0 or INF This is the default setting Waiting for Arm Reset and Start Timer Waiting for Trigger Execute Control Loop Algorithm Update Control Outputs Scan Inputs and Increment Trig...

Страница 283: ...default count is 0 Related Commands TRIG COUNT RST Condition TRIG COUNT 0 Usage TRIG COUNT 10 Set the module to make 10 passes all enabled algorithms TRIG COUNT 0 Set the module to accept unlimited triggers the default TRIGger COUNt TRIGger COUNt returns the currently set trigger count Comments If TRIG COUNT returns 0 the trigger counter is disabled and the module will accept an unlimited number o...

Страница 284: ...G SOUR is TIMer When TRIG SOUR is not TIMer SCPI compatibility requires that ARM SOUR be IMM or an Error 221 Settings conflict will be generated While TRIG SOUR is IMM you need only INITiate the trigger system to start a measurement scan When Accepted Before INIT only Parameter Name Parameter Type Range of Values Default Units trig_source discrete string BUS EXT HOLD IMM SCP TIM TTLTrg n none BUS ...

Страница 285: ...UR TIMER trigger mode Parameters Comments In order for the TRIG TIMER to start it must be Armed For information on timer arming see the ARM subsystem in this command reference The default interval is 10E 3 seconds interval may be specified in seconds milliseconds ms or microseconds us For example 0016 1 6ms or 1600us The resolution for interval is 100 µ second When Accepted Before INIT only Relate...

Страница 286: ... TRIGger TIMer PERiod returns the currently set Trigger Timer interval Comments Returned Value Numeric 1 through 6 5536 The C SCPI type is float32 Related Commands TRIG TIMER RST Condition 1 0E 4 Usage TRIG TIMER Query trig timer enter statement Returns the timer setting ...

Страница 287: ...ons source value is changed The CAL procedure is internally very sophisticated and results in an extremely well calibrated module To perform Channel Calibration on multiple HP E1415s use CAL SETup Returned Value The C SCPI type for this returned value is int16 When Accepted Not while INITiated Related Commands CALibration SETup CALibration SETup CALibration STORe ADC CAL STOR ADC stores the calibr...

Страница 288: ...ands to a named macro The command sequence may be composed of SCPI and or Common commands name may be the same as a SCPI command but may not be the same as a Common command When a SCPI named macro is executed the macro rather than the SCPI command is executed To regain the function of the SCPI command execute EMC 0 command cmd_data is sent as arbitrary block program data see Arbitrary Block Progra...

Страница 289: ... The Standard Event bits are described in the ESE command The C SCPI type for this returned value is int16 GMC GMC name Get Macro query Returns arbitrary block response data which contains the command or command sequence defined for name For more information see Arbitrary Block Program and Response Data on page 160 IDN IDN Identity Returns the device identity The response consists of the following...

Страница 290: ... Status Byte Register ESE 1 command you can ensure synchronization between the instrument and an external computer or between multiple instruments Note Do not use OPC to determine when the CAL SETUP or CAL TARE commands have completed Instead use their query forms CAL SETUP or CAL TARE OPC OPC Operation Complete Query Causes an instrument to place a 1 into the instrument s output queue when all pe...

Страница 291: ...urrent or voltage Keep these changes in mind when applying the HP E1415 to your system or engineering a system for operation with the HP E1415 Also note that each analog output channels disconnects for 5 6 milliseconds to discharge to zero at each RST It isn t difficult to have the HP E1415 signal your system when RST is executed A solution that can provide signals for several types of failures as...

Страница 292: ...r for a table showing the contents of the Status Byte Register The C SCPI type for mask is int16 SRE SRE Status Register Enable Query Returns the weighted sum of all enabled unmasked events those enabled to assert SRQ in the Status Byte Register The C SCPI type for this returned value is int16 STB STB Status Byte Register Query Returns the weighted sum of all set bits in the Status Byte Register R...

Страница 293: ...d test where 200 0625 201 25V 202 1V 203 4V and 204 16V ranges For example DATA FIFO returns the values 72 and 108 This indicates that test number 72 failed on channel 8 Test numbers 20 30 37 72 74 76 and 80 93 may indicate a problem with a Signal Conditioning Plug on For tests 20 and 30 37 remove all SCPs and see if TST passes If so replace SCPs one at a time until you find the one causing the pr...

Страница 294: ... Checks operation of FIFO half and FIFO full IRQ generation 8 9 Checks trigger operation ANALOG FRONT END DIGITAL TESTS Test Description 20 Checks that SCP ID makes sense 30 32 Checks relay driver and fet mux interface with EU CPU 33 71 Checks opening of all relays on power down or input overvoltage 34 37 Check fet mux interface with A D digital ANALOG TESTS Test Description 40 42 Checks internal ...

Страница 295: ... source SCP s current dac range on HI and LO ranges 89 Checks current source compliance 90 Checks strain SCP s Wagner Voltage control 91 Checks autobalance dac range with input shorted 92 Sample and Hold channel holds value even when input value changed 93 Sample and Hold channel held value test for droop rate ANALOG OUTPUT AND DIGITAL I O TESTS 301 Current and Voltage Output SCPsdigital DAC contr...

Страница 296: ...M FM SCPoutput interrupts 350 Watchdog SCPenable disable timer 351 Watchdog SCPrelay drive and coil closed 352 Watchdog SCPrelay drive and coil open 353 Watchdog SCPI O Disconnect line 354 Watchdog SCPI O Disconnect supply WAI WAI Wait to continue Prevents an instrument from executing another command until the operation begun by the previous command is finished sequential operation Note Do not use...

Страница 297: ...an triggers per execution of alg_name SIZe alg_name Returns size in words of named algorithm STATe alg_name ON OFF Enables disables named algorithm after ALG UPDATE sent STATe alg_name Returns state of named algorithm TIME alg_name MAIN Returns worst case alg execution time Use MAIN for overall time FUNCtion DEFine function_name range offset func_data Defines a custom conversion function OUTPut DE...

Страница 298: ...s the contents of the Reference Temperature Register into the FIFO FLOor range ch_list Sets the lowest range that autorange can select for the specified channels DUMP Places the autorange floor value for all 64 channels into the FIFO INTerrupt LINe intr_line Sets the VXIbus interrupt line the module will use INTerrupt LINe Returns the VXIbus interrupt line the module is using OTDetect STATe ON OFF...

Страница 299: ...annel Returns the setting of the Current Source SCP channel STATe ON OFF ch_list Enable or disable the Current Source SCP channels STATe channel Returns the state of the Current Source SCP channel POLarity NORmal INVerted ch_list Sets output polarity on a digital SCP channel POLarity channel Returns digital polarity currently set for channel SHUNt ON OFF ch_list Adds shunt resistance to leg of Bri...

Страница 300: ...l state CUSTom range ch_list Links channels to custom EU conversion table loaded by DIAG CUST LIN or DIAG CUST PIEC commands REFerence range ch_list Links channels to custom reference temperature EU conversion table loaded by DIAG CUST PIEC commands TC type range ch_list Links channels to custom temperature EU conversion table loaded by DIAG CUST PIEC and performs ref temp compensation for type FR...

Страница 301: ...e ch_list Configures channels to output digital pulse s SQUare ch_list Configures channels to output 50 50 duty cycle digital pulse train PULM STATe 1 0 ON OFF ch_list Configure digital channels to output pulse width modulated signal STATe channel Returns state of channels for PW modulated output PERiod period ch_list Sets pulse period for PW modulated signals PERiod channel Returns pulse period f...

Страница 302: ...SYSTem CTYPe channel Returns the identification of the SCP at channel ERRor Returns one element of the error queue 0 if no errors VERSion Returns the version of SCPI this instrument complies with TRIGger COUNt trig_count Specify the number of trigger events that will be accepted COUNt Returns the current trigger count setting IMMediate Triggers instrument when TRIG SOUR is TIMer or HOLD same as TR...

Страница 303: ...r query Return Standard Event Status Register contents SRE mask Service Request Enable Set Service Request Enable register bit mask SRE Service Request Enable query Return current setting of the Service Request Enable register STB Read Status Byte query Return current Status Byte value Macros DMC name cmd_data Define Macro Command Assigns one or a sequence of commands to a macro EMC 1 0 Enable Mac...

Страница 304: ...304 HP E1415 Command Reference Chapter 6 Command Quick Reference Notes ...

Страница 305: ...ouples 200 to 1700 C Thermistors Opt 15 required 80 to 160 C RTD s Opt 15 required 200 to 850 C Resistance HP E1505 with HP E1501 512 ohms to 131 Kohms FS Strain 25 000 µe or limit of linear range of strain gage Measurement Resolution 16 bits including sign Maximum Update Rate running PIDA algorithms 1 Algorithm 8 Algorithms 32 Algorithms 2 5 KHz 1 KHz 250 Hz Trigger Timer and Sample Timer Accurac...

Страница 306: ...Common mode rejection 0 to 60Hz 105dB Input impedance greater than 90 MOhm differential 1 M Ohm with HP E1513 Attenuator On board Current Source 122 µA 0 02 with 17 Volts Compliance Maximum tare cal offset SCP Gain 1 Maximum tare offset depends on A D range and SCP gain A D range V F Scale 16 4 1 0 25 0 0625 Max Offset 3 2213 82101 23061 07581 03792 Measurement accuracy DC Volts 90 days 23 C 1 C w...

Страница 307: ...d is based on the ITS 90 standard transducer curves Add your transducer accuracy to determine total measurement error The thermocouple graphs on the following pages include only the errors due to measuring the voltage output of the thermocouple as well as the algorithm errors due to converting the thermocouple voltage to temperature To this error must be added the error due to measuring the refere...

Страница 308: ...308 Specifications Appendix A Thermocouple Type E 200 800C SCPs HP E1501 02 03 ...

Страница 309: ...Specifications 309 Appendix A Thermocouple Type E 200 800C SCPs HP E1508 09 ...

Страница 310: ...310 Specifications Appendix A Thermocouple Type E 0 800C SCPs HP E1501 02 03 ...

Страница 311: ...Specifications 311 Appendix A Thermocouple Type E 0 800C SCPs HP E1509 09 ...

Страница 312: ...312 Specifications Appendix A Thermocouple Type E Extended SCPs HP E1501 02 03 ...

Страница 313: ...Specifications 313 Appendix A Thermocouple Type E Extended SCPs HP E1508 09 ...

Страница 314: ...314 Specifications Appendix A Thermocouple Type J SCPs HP E1501 02 03 ...

Страница 315: ...Specifications 315 Appendix A Thermocouple Type J SCPs HP E1508 09 ...

Страница 316: ...316 Specifications Appendix A Thermocouple Type K SCPs HP E1501 02 03 ...

Страница 317: ...Specifications 317 Appendix A Thermocouple Type R SCPs HP E1501 02 03 ...

Страница 318: ...318 Specifications Appendix A Thermocouple Type R SCPs HP E1508 09 ...

Страница 319: ...Specifications 319 Appendix A Thermocouple Type S SCPs HP E1501 02 03 ...

Страница 320: ...320 Specifications Appendix A Thermocouple Type S SCPs HP E1508 09 ...

Страница 321: ...Specifications 321 Appendix A Thermocouple Type T SCPs HP E1501 02 03 ...

Страница 322: ...322 Specifications Appendix A Thermocouple Type T SCPs HP E1508 09 ...

Страница 323: ...Specifications 323 Appendix A 5K Thermistor Reference SCPs HP E1501 02 03 ...

Страница 324: ...324 Specifications Appendix A 5K Thermistor Reference SCPs HP E1508 09 ...

Страница 325: ...Specifications 325 Appendix A RTD Reference SCPs HP E1501 02 03 ...

Страница 326: ...326 Specifications Appendix A RTD SCPs HP E1501 02 03 ...

Страница 327: ...Specifications 327 Appendix A RTD SCPs HP E1508 09 ...

Страница 328: ...328 Specifications Appendix A 2250 Thermistor SCPs HP E1501 02 03 ...

Страница 329: ...Specifications 329 Appendix A 2250 Thermistor SCPs HP E1508 09 ...

Страница 330: ...330 Specifications Appendix A 5K Thermistor SCPs HP E1501 02 03 ...

Страница 331: ...Specifications 331 Appendix A 5K Thermistor SCPs HP E1508 09 ...

Страница 332: ...332 Specifications Appendix A 10K Thermistor SCPs HP E1501 02 03 ...

Страница 333: ...Specifications 333 Appendix A 10K Thermistor SCPs HP E1508 09 ...

Страница 334: ...334 Specifications Appendix A Notes ...

Страница 335: ...out of range 224 Illegal parameter value 240 Hardware error Execute TST 253 Corrupt media 281 Cannot create program 282 Illegal program name 310 System error 410 Query INTERRUPTED 1000 Out of memory 2001 Invalid channel number 2003 Invalid word address 2007 Bus error 2008 Scan list not initialized 2009 Too many channels in channel list 2016 Byte count is not a multiple of two 3000 Illegal while in...

Страница 336: ...Scan list not completed before another trigger event occurs 3015 Channel modifier not permitted here 3019 TRIG TIM interval too small for SAMP TIM interval and scan list size TRIG TIM interval must allow for completion of entire scan list at currently set SAMP TIM interval See TRIG TIM in Chapter 5 the Command Reference 3020 Input overvoltage Calibration relays opened if JM2202 not cut to protect ...

Страница 337: ...040 0x100 DSP Invalid Tare CAL constant or checksum Perform CAL TARE CAL TARE procedure 3041 0x200 DSP Invalid Factory CAL constant or checksum Perform A D Cal procedure 3042 0x400 DSP DAC adjustment went to limit Execute TST 3043 0x800 DSP Status Do CAL 3044 0x1000 DSP Overvoltage on input 3045 0x2000 DSP cal constant out of range Execute CAL 3046 0x4000 DSP ADC hardware failure 3047 0x8000 DSP r...

Страница 338: ...failed test see following table for possible corrective actions 100 163 channel number s associated with test ch 0 63 164 special channel used for A D tests only 200 A D range 0 0625V associated with failed test 201 A D range 0 25V associated with failed test 202 A D range 1V associated with failed test 203 A D range 4V associated with failed test 204 A D range 16V associated with failed test Test...

Страница 339: ...iled 3069 Programming voltage jumper not set properly See Disabling Flash Memory Access in Chapter 1 JM2201 3070 Identification of Flash ROM incorrect 3071 Checksum error on Flash Memory 3074 WARNING Old Opt 16 or Opt 17 card can damage SCP modules must use HP E1506 or HP E1507 3075 Too many entries in CVT list 3076 Invalid entry in CVT list Can only be 10 to 511 3077 Too many updates in queue Mus...

Страница 340: ...ecting an identifier Error 12 Arrays can t be initialized Error 13 Expecting static Error 14 Expecting float Error 15 Expecting Error 16 Expecting Error 17 Expecting Error 18 Expecting Error 19 Expecting Error 20 Expecting a statement Error 21 Expecting if Error 22 Can t write to input channels Error 23 Expecting a constant expression Error 24 Expecting an integer constant expression Error 25 Refe...

Страница 341: ...Algorithm Compiler Internal Error Call HP with details of operation 3091 Illegal while not initiated Send INIT before this command 3092 No updates in queue 3093 Illegal Variable Type Sent ALG SCAL with identifier of array ALG ARR with scalar identifier ALG UPD CHAN with identifier that is not a channel etc 3094 Invalid Array Size Must be 1 to 1024 3095 Invalid Algorithm Number Must be ALG1 to ALG3...

Страница 342: ...02 Need ALG UPD before redefining this algorithm again Already have an algorithm swap pending for this algorithm 3103 Algorithm swapping already enabled Can t change size Only send swap_size parameter on initial definition 3104 GLOBALS can t be enabled for swapping Don t send swap_size parameter for ALG DEF GLOBALS ...

Страница 343: ...thms then start the algorithms running Typically once the HP E1415 is running algorithms the application need only oversee the control application by monitoring the algorithms status During algorithm writing debugging and tuning the application program can retrieve comprehensive data from running algorithms Buffer In this manual a buffer is an area in RAM memory that is allocated to temporarily ho...

Страница 344: ...data sent from an algorithm to an application program Flash or Flash Memory Non volatile semiconductor memory used by the HP E1415 to store its control firmware and calibration constants Scan List A list of up to 64 channels that is built by the HP E1415 Channels referenced in algorithms are placed in the Scan List as the algorithm is defined This list will be scanned each time the module is trigg...

Страница 345: ...nge to an algorithm algorithm variable or global variable that is initiated by one of the commands ALG SCALAR ALG ARRAY ALG DEFINE ALG SCAN RATIO or ALG STATE This change or update is considered to be pending until an update command is received Several updates can be sent to the Update Queue waiting for an update command to cause them to take effect synchronously The update commands are ALG UPDATE...

Страница 346: ...346 Glossary Appendix C Notes ...

Страница 347: ...utput channel name PID algorithm for E1415A controller module This algorithm is called once per scan trigger by main It performs Proportional Integral and Derivative control The output is derived from the following equations PID_out P_out I_out D_out P_out Error P_factor I_out I_out Error I_factor D_out Error Error_old D_factor Error Setpoint PV where Setpoint is the desired value of the process v...

Страница 348: ...rror for derivative PID algorithm code Begin PID calculations First find the Process Variable error This calculation has gain of minus one 1 Error Setpoint inchan On the first trigger after INIT initialize the I and D terms if First_loop Zero the I term and start integrating I_out Error I_factor Zero the derivative term Error_old Error On subsequent triggers continue integrating else not First tri...

Страница 349: ...e an interrupt to the host computer set the user specified alarm channel output to one 1 and set a bit in the Status variable to one 1 The interrupt is edge sensitive It will be asserted only on the transition into the alarm state The alarm channel digital output will persist for the duration of all alarm conditions The Status word bits will also persist for the alarm duration No user intervention...

Страница 350: ...itten to both the CVT and FIFO A header tag 256 n 4 is sent to the FIFO first where n is the Algorithm number 1 32 User determined control parameters static float Setpoint 0 The setpoint static float P_factor 1 Proportional control constant static float I_factor 0 Integral control constant static float D_factor 0 Derivative control constant static float Error_max 9 9e 37 Error alarm limits static ...

Страница 351: ...est for Process Variable out of limits if inchan PV_max PV_min inchan PV alarm test if Status B6 Status B6 1 alarmchan 1 interrupt else Status B6 0 Do this when in the Manual control mode if Man_state Slew output towards Man_out if Man_out outchan abs Man_inc outchan outchan abs Man_inc else if outchan Man_out abs Man_inc outchan outchan abs Man_inc else outchan Man_out Set manual mode bit in stat...

Страница 352: ... First_loop Zero the I term and start integrating I_out Error I_factor Zero the derivative terms PV_old inchan Setpoint_old Setpoint On subsequent triggers continue integrating else not First trigger I_out Error I_factor I_out Clip the Integral term to specified limits if I_out I_max I_out I_max Status B1 1 else if I_min I_out I_out I_min Status B1 1 else Status B1 0 Calculate the Setpoint Derivat...

Страница 353: ... PV_old inchan Setpoint_old Setpoint In case we switch to manual on the next pass prepare to hold output at latest value Man_out outchan if Man_state Clip output to specified limits if outchan Out_max outchan Out_max Status B0 1 else if Out_min outchan outchan Out_min Status B0 1 else Status B0 0 Clear alarm output if no alarms if Status B6 Status B5 alarmchan 0 Log appropriate data if History_mod...

Страница 354: ...354 PID Algorithm Listings Appendix D else Output summary to CVT only writecvt inchan ALG_NUM 10 0 writecvt Error ALG_NUM 10 1 writecvt outchan ALG_NUM 10 2 writecvt Status ALG_NUM 10 3 ...

Страница 355: ...e an interrupt to the host computer set the user specified alarm channel output to one 1 and set a bit in the Status variable to one 1 The interrupt is edge sensitive It will be asserted only on the transition into the alarm state The alarm channel digital output will persist for the duration of all alarm conditions The Status word bits will also persist for the alarm duration No user intervention...

Страница 356: ...ns History_mode 0 Summary to CVT only In this mode four values are output to the CVT Location Value 0 Input 1 Error 2 Output 3 Status History_mode 1 Summary to CVT and FIFO In this mode the four summary values are written to both the CVT and FIFO A header tag 256 n 4 is sent to the FIFO first History_mode 2 All to FIFO and CVT In this mode nine values are output to both the CVT and FIFO A header t...

Страница 357: ...erivative term static float Error Error term static float PV_old Last process variable static float Setpoint_old Last setpoint for derivative static float SD_out Setpoint derivative term static float Status 0 Algorithm status word B0 PID_out at clip limit B1 I_out at clip limit B2 D_out at clip limit B3 SD_out at clip limit B4 in Manual control mode B5 Error out of limits B6 PV out of limits other...

Страница 358: ...rst find the Process Variable error This calculation has gain of minus one 1 Error Setpoint inchan Test for error out of limits if Error Error_max Error_min Error if Status B5 Status B5 1 alarmchan 1 interrupt else Status B5 0 On the first trigger after INIT initialize the I and D terms if First_loop For no abrupt output change at startup make the I term cancel the P term I_out outchan Error I_fac...

Страница 359: ...tus B3 0 Calculate the Error Derivative term D_out D_factor PV_old inchan Clip to specified limits if D_out D_max Clip derivative D_out D_max Status B2 1 else if D_min D_out D_out D_min Status B2 1 else Status B2 0 Calculate Proportional term P_out Error P_factor Sum PID SD terms outchan P_out I_out D_out SD_out Save values for next pass PV_old inchan Setpoint_old Setpoint In case we switch to man...

Страница 360: ... 1 writeboth outchan ALG_NUM 10 2 writeboth Status ALG_NUM 10 3 writeboth Setpoint ALG_NUM 10 4 writeboth P_out ALG_NUM 10 5 writeboth I_out ALG_NUM 10 6 writeboth D_out ALG_NUM 10 7 writeboth SD_out ALG_NUM 10 8 else if History_mode Output summary to FIFO CVT writefifo ALG_NUM 256 4 writeboth inchan ALG_NUM 10 0 writeboth Error ALG_NUM 10 1 writeboth outchan ALG_NUM 10 2 writeboth Status ALG_NUM ...

Страница 361: ...ed by the width of the HP E1415 module The signals are further isolated because they remain separated on the connector module as well Note that in Figure 6 7 even though only 7 of the eight SCP positions are filled the SCPs present are not installed contiguously but are arranged to provide as much digital analog separation as possible If you have to mix analog input and digital I O SCPs on the sam...

Страница 362: ... the GND terminal A single point shield to ground connection is required to prevent ground loops This point should be as near to the noise source as possible and this is usually at the DUT Wiring Checklist The following lists some recommended wiring techniques 1 Use individually shielded twisted pair wiring for each channel 2 Connect the shield of each wiring pair to the corresponding Guard G term...

Страница 363: ...e DUT is not grounded then the shield should be connected to the E1415 chassis ground When to Make Shield Connections It is not always possible to state positively the best shield connection for all cases Shield performance depends on the noise coupling mechanism which is very difficult to determine The above recommendations are usually the best wiring method but if feasible experiment with shield...

Страница 364: ...ese characteristics are generally incompatible with good high frequency CMR performance More expensive high performance amplifiers can solve this problem but since they aren t required for many systems HP elected to handle this with the High Frequency Common Mode Filter option to the HP E1586A Remote Rack Panel HP E1586 Option 001 RF Filter discussed below Shielded twisted pair lead wire generally...

Страница 365: ...ing through the transformer windings into the signal Hi and Low leads forces the common mode noise at the input amplifier side of those windings to 0 volts This achieves the 110 dB to 10 MHz desired keeping the high frequency common mode noise out of the amplifier thus preventing the amplifier from rectifying this into an offset error This effectively does the same thing that shielded twisted pair...

Страница 366: ...signals and a quite low impedance to differential mode signals The ratio of common mode impedance to differential mode impedance for the transformer we use is 3500 1 Thus there is NO differential mode bandwidth penalty incurred by using the tri filar transformers ...

Страница 367: ... s RAM with the ALG FUNC DEF command where you can select any desired name of the function i e sin x tan x etc Up to 32 functions can be created for use in algorithms At runtime where the function is passed an x value the time to calculate the Mx B segmented linear approximation is approximately 17µsec The HP E1415 actually uses this technique to convert volts to temperature strain etc The accurac...

Страница 368: ... to include this range will be 2 Another requirement for building the table is that the waveform range MUST be centered around 0 i e symmetrical about the X axis If the desired function is not defined on one side or the other of the Y axis then the table is right or left shifted by the offset from X 0 and the table values are calculated correctly but the table is built as though it were centered a...

Страница 369: ...on You need only supply the algebraic expression in my_function the desired range over which to evaluate the function which determines the table range and the name of the function The Build_table routine see example file sine_fn cs creates the table for the function and the ALG FUNC DEF writes that table into HP E1415 memory The table MUST be built and downloaded BEFORE trying to use the function ...

Страница 370: ...nearity of your waveform Suffice it to say that you will get your best results and it will be easiest for you to grasp what your doing if you stay near the X 0 point since most of the results of your measurements will have 1e 6 16 values for volts One final note You may see truncation errors in the fourth digit of your results This is because only 15 bits of your input value is sent to the functio...

Страница 371: ...clude math h Needed for any floating point fn s Other system include files Whenever using system or library calls check the call description to see which include files should be included Instrument control include files include cscpi h C SCPI include file Declare any constants that will be useful to the program In particular it is usually best to put instrument addresses in this area to make the c...

Страница 372: ... get your program running if 1 Set to 0 to skip trapping errors ARGSUSED Keeps lint happy void cscpi_error INST id int err char errorbuf 255 Holds instrument error message char idbuf 255 Holds instrument response to IDN cscpi_exe id IDN n 6 idbuf 255 cscpi_exe id SYST ERR n 10 errorbuf 255 void fprintf stderr Instrument error s from s n errorbuf idbuf endif The following routine allows you to type...

Страница 373: ...lgorithm string f fopen file_name r if f void fprintf stderr Error can t open algorithm file s n file_name exit 1 a_size 0 Count length of algorithm while getc f EOF a_size rewind f algorithm malloc a_size 1 Storage for algorithm a_size 0 Use as array index while c getc f EOF Read the algorithm algorithm a_size c a_size algorithm a_size 0 Null terminate void fclose f return algorithm Return algori...

Страница 374: ...e F NAME void Build_table TASK Generates tables of mx b values used for Custom Functions in the E1415A Generate the three coefficients for the CUSTOM FUNCTION algorithm a The exponent value b The slope or M value c The intercept or B value INPUT PARAMETERS float64 max_input maximum input expected float64 min_input minimum input expected float64 custom_function float64 input pointer to user functio...

Страница 375: ...he offset simply permits the run time code to send the corrected X values assuming the tables were built symetrically around X 0 center min_input max_input min_input 2 0F offset center temp_range max_input center test_range temp_range 0 0 temp_range temp_range Now calculate the closest binary representation of the test_range such that the new binary value is equal to or greater than the calculated...

Страница 376: ...ult ii 1 using prev seg base if t 0 0 t 1 0 use abs value magnitude of t compute the exponent of the offset B is 31 bits if t 0 0 don t take log of zero exponent 31 0 log10 t log10 2 0 take log base 2 else exponent 100 0 compute slope in bits each table entry represents 512 bits slope result ii result ii 1 512 0 don t take the log of a negative slope absslope slope 0 slope slope compute the expone...

Страница 377: ...to FS input ii center tbl_range 64 0 float64 ii result ii custom_function input ii if ii 0 continue This is the first point skip slope jj ii 1 generate numbers for prev segment for second and subsequent points t result ii 1 using prev seg base if t 0 0 t 1 0 use abs value magnitude of t compute the exponent of the offset B is 31 bits if t 0 0 don t take log of zero exponent 31 0 log10 t log10 2 0 ...

Страница 378: ...e asm EX jj uint16 Xofst Xfactor M jj uint16 Mfactor 0xFFFF remove leading 1 s B round32f two_to_the_N Xfactor result ii 1 Bhigh jj uint16 B 16 0x0000FFFF Blow jj uint16 B 0x0000FFFF end for Build actual tables for downloading into the E1415 memory for ii 0 ii 128 ii copy 64 sets of coefficents conv_array ii 4 M ii conv_array ii 4 1 EX ii conv_array ii 4 2 Bhigh ii conv_array ii 4 3 Blow ii printf...

Страница 379: ...Open the E1415 device session with error checking Copy and modify these lines if you need to open other instruments INST_OPEN e1415 E1415_ADDR Open the E1415 if e1415 Did it open void fprintf stderr Failed to open the E1415 at address s n E1415_ADDR void fprintf stderr C SCPI open error was d n cscpi_open_error void fprintf stderr SICL error was d s n igeterrno igeterrstr igeterrno exit 1 Check fo...

Страница 380: ... 1 endif Configure Trigger Subsystem and Data Format INST_SEND e1415 trig sour timer trig timer 001 n INST_SEND e1415 samp timer 10e 6 n default INST_SEND e1415 form real 32 n Download Globals INST_SEND e1415 alg def globals static float x n Download Custom Function float64 maxInput set to maximum expected input float64 minInput set to minimum expected input float64 tableOffset offset used in buil...

Страница 381: ...en algorithm 1 algorithm Check for algorithm errors INST_QUERY e1415 syst err n d S error string if error void printf While loading file s syst err d s n argv alg_num error string exit 1 Free the malloc ed memory free algorithm alg_num Next algorithm void printf All d algorithm s loaded without errors n n alg_num 1 else Download algorithm with in line code algorithm n Example algorithm uses Custom...

Страница 382: ...pi_exe in a loop endif if 0 C CSPI way to check for errors INST_QUERY e1415 syst err n d S error string if error void printf syst err d s n error string exit 1 endif return 0 Normal end of program if 0 Example of results from program C sin 1 570798 1 000000 E1415A sin 1 570798 0 999905 C sin 1 256639 0 951057 E1415A sin 1 256639 0 950965 C sin 0 942479 0 809018 E1415A sin 0 942479 0 808944 C sin 0...

Страница 383: ...b address for command module for E1415 230 E1415_ladd 208 Logical address for E1415 card 240 250 ON TIMEOUT Hpibintfc 12 GOTO End_ 260 E1415addr Hpibintfc 10000 Cmdmodule 100 E1415_ladd 8 270 ASSIGN E1415 TO E1415addr 280 ASSIGN Bus TO Hpibintfc FORMAT OFF 290 300 OUTPUT E1415 RST CLS 310 OUTPUT E1415 IDN 320 ENTER E1415 String 330 PRINT String 340 350 Select the Domain values for the function 360...

Страница 384: ... 870 Generate the three coefficients for the EU algorithm 880 a The exponent value 890 b The slope or M value 900 c The intercept or B value 910 920 INPUT PARAMETERS 930 REAL Min_input lowest expected value 940 REAL Max_input largest expected value 950 zero generates piecewise table 960 OUTPUT PARAMETERS 970 REAL Table_range returned table range 980 REAL Table_offset how much to adjust X for shift...

Страница 385: ...compute the exponent of the offset B is 31 bits 1420 IF T 0 THEN don t take log of zero 1430 Exponent 31 0 LGT T LGT 2 0 take log base 2 1440 ELSE 1450 Exponent 100 0 1460 END IF 1470 1480 compute slope in bits each table entry represents 512 bits 1490 Slope Result Ii Result Ii 1 512 0 1500 1510 don t take the log of a negative slope 1520 Absslope ABS Slope 1530 1540 compute the exponent of the sl...

Страница 386: ...ry represents 512 bits 2010 Slope Result Ii Result Ii 1 512 0 2020 2030 don t take the log of a negative slope 2040 Absslope ABS Slope 2050 2060 compute the exponent of the slope M is 16 bits 2070 IF Absslope 0 THEN 2080 Exponent2 15 0 LGT Absslope LGT 2 0 2090 ELSE 2100 Exponent2 100 0 2110 END IF 2120 Choose the smallest exponent maximize resolution 2130 IF Exponent2 Exponent THEN Exponent Expon...

Страница 387: ...and B terms in array 2410 2420 FOR Ii 0 TO 127 2430 copy 128 sets of coefficents 2440 Coef_array Ii 4 M Ii 2450 Coef_array Ii 4 1 Ex Ii 2460 Coef_array Ii 4 2 Bhigh Ii 2470 Coef_array Ii 4 3 Blow Ii 2480 PRINT Ii M Ii Ex Ii Bhigh Ii Blow Ii 2490 NEXT Ii 2500 SUBEND 2510 2520 2530 Insert your desired function here 2540 2550 DEF FNMy_function REAL In_val 2560 RETURN SIN In_val 2570 FNEND ...

Страница 388: ...388 Generating User Defined Functions Appendix F Notes ...

Страница 389: ...that may use C SCPI or SICL to control instruments Standard include files include stdlib h Most programs use one or more functions from the C standard library include stdio h Most programs will also use standard I O functions include stddef h This file is also often useful include math h Needed for any floating point fn s Other system include files Whenever using system or library calls check the ...

Страница 390: ...sed feature not a general programming improvement If you re using MESSAGE instruments you ll still have to do SYST ERR If your test program generates errors on purpose you probably don t want this error function If so set the following if 1 to if 0 This function is most useful when you re trying to get your program running if 1 Set to 0 to skip trapping errors ARGSUSED Keeps lint happy void cscpi_...

Страница 391: ...prog_name Get an algorithm from a filename static char get_algorithm char file_name FILE f Algorithm file pointer int32 a_size Algorithm size int c Character read from input char algorithm Points to algorithm string f fopen file_name r if f void fprintf stderr Error can t open algorithm file s n file_name exit 1 a_size 0 Count length of algorithm while getc f EOF a_size rewind f algorithm malloc a...

Страница 392: ...ackplane triggers SICL ixtrig or ionintr calls if vxi iopen vxi void fprintf stderr SICL error failed to open vxi interface n void fprintf stderr SICL error d s n igeterrno igeterrstr igeterrno exit 1 endif Open the E1415 device session with error checking Copy and modify these lines if you need to open other instruments INST_OPEN e1415 E1415_ADDR Open the E1415 if e1415 Did it open void fprintf s...

Страница 393: ...ned INST_QUERY e1415 CAL n d cal_result if cal_result void fprintf stderr E1415A failed calibration n void fprintf stderr Check FIFO for channel errors n exit 1 endif Configure Trigger Subsystem and Data Format INST_SEND e1415 trig sour timer trig timer 001 n INST_SEND e1415 samp timer 10e 6 n default INST_SEND e1415 form real 32 n Download Globals INST_SEND e1415 alg def globals static float x n ...

Страница 394: ...1 P_factor f n 0 0001 INST_SEND e1415 alg scal alg1 I_factor f n 0 00025 INST_SEND e1415 alg upd n Initiate Trigger System start scanning and running algorithms INST_SEND e1415 init n Alter run time variables and Retrieve Data while 1 float32 setpoint 0 process_info 4 int i type in 100 to exit printf Enter desired setpoint scanf f setpoint if setpoint 100 00 break INST_SEND e1415 alg scal alg1 Set...

Страница 395: ...ror output and status are shown Enter desired setpoint 9 Process variable 3 000122 0 000122 0 001538 0 000000 Process variable 2 998657 6 001343 0 003638 0 000000 Process variable 5 744141 3 255859 0 004178 0 000000 Process variable 7 165039 1 834961 0 004494 0 000000 Process variable 8 086914 0 383301 0 004673 0 000000 Process variable 9 018555 0 018555 0 004655 0 000000 Process variable 9 056152...

Страница 396: ...ystem or library calls check the call description to see which include files should be included Instrument control include files include cscpi h C SCPI include file Declare any constants that will be useful to the program In particular it is usually best to put instrument addresses in this area to make the code more maintainable define E1415_ADDR vxi 208 The SICL address of your E1415 INST_DECL e1...

Страница 397: ... err char errorbuf 255 Holds instrument error message char idbuf 255 Holds instrument response to IDN cscpi_exe id IDN n 6 idbuf 255 cscpi_exe id SYST ERR n 10 errorbuf 255 void fprintf stderr Instrument error s from s n errorbuf idbuf endif The following routine allows you to type SCPI commands and see the results If you don t call this from your program set the following if 1 to if 0 if 1 Set to...

Страница 398: ... length of algorithm while getc f EOF a_size rewind f algorithm malloc a_size 1 Storage for algorithm a_size 0 Use as array index while c getc f EOF Read the algorithm algorithm a_size c a_size algorithm a_size 0 Null terminate void fclose f return algorithm Return algorithm string Main program ARGSUSED Keeps lint happy int main int argc char argv Main program local variable declarations char algo...

Страница 399: ... e1415 E1415_ADDR Open the E1415 if e1415 Did it open void fprintf stderr Failed to open the E1415 at address s n E1415_ADDR void fprintf stderr C SCPI open error was d n cscpi_open_error void fprintf stderr SICL error was d s n igeterrno igeterrstr igeterrno exit 1 Check for startup errors INST_QUERY e1415 syst err n d S error string if error void printf syst err d s n error string exit 1 Usually...

Страница 400: ...ult INST_SEND e1415 form real 32 n Download Globals INST_SEND e1415 alg def globals static float x n Download algorithms if 1 Set to 1 if algorithms passed in as files Get an algorithm s from the passed filename s We assign sequential algorithm numbers to each successive file name ALG1 ALG2 etc when you execute this program as progname lang1 lang2 lang3 alg_num 1 Starting algorithm number while ar...

Страница 401: ...owing alg scal command will not complete if the update has not occured Then it s a matter of waiting for the algorithm to complete and set sync 2 This should happen almost instantly since the algorithm is executing every 1msec based upon trig timer 001 above sync 0 while sync 2 0 wait until algorithm sets sync to 2 INST_QUERY e1415 alg scal alg1 sync f sync read results of Mx B calculations INST_Q...

Страница 402: ...with the following syntax progname mxplusb Array contents 5 678000 5 678000 2 839000 11 356000 Array contents 6 912000 6 912000 3 456000 13 823999 Array contents 8 146000 8 146000 4 073000 16 292000 Array contents 9 379999 9 379999 4 690000 18 759998 Array contents 10 613999 10 613999 5 307000 21 227999 Array contents 11 848000 11 848000 5 924000 23 695999 Array contents 13 082000 13 082000 6 5410...

Страница 403: ...ould be included Instrument control include files include cscpi h C SCPI include file Declare any constants that will be useful to the program In particular it is usually best to put instrument addresses in this area to make the code more maintainable define E1415_ADDR vxi 208 The SICL address of your E1415 INST_DECL e1415 E1415A REGISTER E1415 Use something like this for HP IB and HP E1405 6 Comm...

Страница 404: ...ent error message char idbuf 255 Holds instrument response to IDN cscpi_exe id IDN n 6 idbuf 255 cscpi_exe id SYST ERR n 10 errorbuf 255 void fprintf stderr Instrument error s from s n errorbuf idbuf endif The following routine allows you to type SCPI commands and see the results If you don t call this from your program set the following if 1 to if 0 if 1 Set to 0 to skip this routine void do_inte...

Страница 405: ...ngth of algorithm while getc f EOF a_size rewind f algorithm malloc a_size 1 Storage for algorithm a_size 0 Use as array index while c getc f EOF Read the algorithm algorithm a_size c a_size algorithm a_size 0 Null terminate void fclose f return algorithm Return algorithm string Main program ARGSUSED Keeps lint happy int main int argc char argv Main program local variable declarations char algorit...

Страница 406: ...415 E1415_ADDR Open the E1415 if e1415 Did it open void fprintf stderr Failed to open the E1415 at address s n E1415_ADDR void fprintf stderr C SCPI open error was d n cscpi_open_error void fprintf stderr SICL error was d s n igeterrno igeterrstr igeterrno exit 1 Check for startup errors INST_QUERY e1415 syst err n d S error string if error void printf syst err d s n error string exit 1 Usually yo...

Страница 407: ...T_SEND e1415 form real 32 n Download Globals INST_SEND e1415 alg def globals static float x n Download algorithms if 0 Set to 1 if algorithms passed in as files Get an algorithm s from the passed filename s We assign sequential algorithm numbers to each successive file name ALG1 ALG2 etc when you execute this program as progname lang1 lang2 lang3 alg_num 1 Starting algorithm number while argc alg_...

Страница 408: ...t sync 1 M and B terms set by application n program Calculations are different than above n n static float M B x sync n if First_loop sync 0 n if sync 1 n writecvt M x B 10 n writecvt M x B 11 n writecvt 2 M x B 12 n writecvt M x B 2 13 n sync 2 n n Preset Algorithm variables INST_SEND e1415 alg scal alg1 M f n 1 234 INST_SEND e1415 alg scal alg1 B f n 5 678 INST_SEND e1415 alg upd n Initiate Trig...

Страница 409: ...alg upd n The following alg scal command will not complete if the update has not occured Then it s a matter of waiting for the algorithm to complete and set sync 2 This should happen almost instantly since the algorithm is executing every 1msec based upon trig timer 001 above sync 0 while sync 2 0 wait until algorithm sets sync to 2 INST_QUERY e1415 alg scal alg1 sync f sync read results of Mx B c...

Страница 410: ... syntax progname mxplusb Array contents 5 678000 5 678000 2 839000 11 356000 Array contents 6 912000 6 912000 3 456000 13 823999 Array contents 8 146000 8 146000 4 073000 16 292000 Array contents 9 379999 9 379999 4 690000 18 759998 Array contents 10 613999 10 613999 5 307000 21 227999 Array contents 11 848000 11 848000 5 924000 23 695999 Array contents 13 082000 13 082000 6 541000 26 164000 Array...

Страница 411: ...include files should be included Instrument control include files include cscpi h C SCPI include file Declare any constants that will be useful to the program In particular it is usually best to put instrument addresses in this area to make the code more maintainable define E1415_ADDR vxi 208 The SICL address of your E1415 INST_DECL e1415 E1415A REGISTER E1415 Use something like this for HP IB and...

Страница 412: ...ent error message char idbuf 255 Holds instrument response to IDN cscpi_exe id IDN n 6 idbuf 255 cscpi_exe id SYST ERR n 10 errorbuf 255 void fprintf stderr Instrument error s from s n errorbuf idbuf endif The following routine allows you to type SCPI commands and see the results If you don t call this from your program set the following if 1 to if 0 if 1 Set to 0 to skip this routine void do_inte...

Страница 413: ...le_name r if f void fprintf stderr Error can t open algorithm file s n file_name exit 1 a_size 0 Count length of algorithm while getc f EOF a_size rewind f algorithm malloc a_size 1 Storage for algorithm a_size 0 Use as array index while c getc f EOF Read the algorithm algorithm a_size c a_size algorithm a_size 0 Null terminate void fclose f return algorithm Return algorithm string F NAME static f...

Страница 414: ... b values used for Custom Functions in the E1415A Generate the three coefficients for the CUSTOM FUNCTION algorithm a The exponent value b The slope or M value c The intercept or B value INPUT PARAMETERS float64 max_input maximum input expected float64 min_input minimum input expected float64 custom_function float64 input pointer to user function OUTPUT PARAMETERS float64 range returned table rang...

Страница 415: ...y around X 0 center min_input max_input min_input 2 0F offset center temp_range max_input center test_range temp_range 0 0 temp_range temp_range Now calculate the closest binary representation of the test_range such that the new binary value is equal to or greater than the calculated test_range Start with the lowest range 1 2 128 and step up until the new binary range is equal or greater than the ...

Страница 416: ... bits if t 0 0 don t take log of zero exponent 31 0 log10 t log10 2 0 take log base 2 else exponent 100 0 compute slope in bits each table entry represents 512 bits slope result ii result ii 1 512 0 don t take the log of a negative slope absslope slope 0 slope slope compute the exponent of the slope M is 16 bits if absslope 0 exponent2 15 0 log10 absslope log10 2 0 else exponent2 100 0 Choose the ...

Страница 417: ...ontinue This is the first point skip slope jj ii 1 generate numbers for prev segment for second and subsequent points t result ii 1 using prev seg base if t 0 0 t 1 0 use abs value magnitude of t compute the exponent of the offset B is 31 bits if t 0 0 don t take log of zero exponent 31 0 log10 t log10 2 0 take log base 2 else exponent 100 0 compute slope in bits each table entry represents 512 bi...

Страница 418: ...Bhigh jj uint16 B 16 0x0000FFFF Blow jj uint16 B 0x0000FFFF end for Build actual tables for downloading into the E1415 memory for ii 0 ii 128 ii copy 64 sets of coefficents conv_array ii 4 M ii conv_array ii 4 1 EX ii conv_array ii 4 2 Bhigh ii conv_array ii 4 3 Blow ii printf d d d d d n ii M ii EX ii Bhigh ii Blow ii return Main program ARGSUSED Keeps lint happy int main int argc char argv Main ...

Страница 419: ...ST_OPEN e1415 E1415_ADDR Open the E1415 if e1415 Did it open void fprintf stderr Failed to open the E1415 at address s n E1415_ADDR void fprintf stderr C SCPI open error was d n cscpi_open_error void fprintf stderr SICL error was d s n igeterrno igeterrstr igeterrno exit 1 Check for startup errors INST_QUERY e1415 syst err n d S error string if error void printf syst err d s n error string exit 1 ...

Страница 420: ...415 form real 32 n Download Globals INST_SEND e1415 alg def globals static float x n Download Custom Function float64 maxInput set to maximum expected input float64 minInput set to minimum expected input float64 tableOffset offset used in building table uint16 coef_array 512 512 elements float64 tableRange Range on which table was built maxInput 2 minInput 2 Build_table maxInput minInput my_functi...

Страница 421: ... void printf All d algorithm s loaded without errors n n alg_num 1 else Download algorithm with in line code algorithm n Example algorithm uses Custom Functions n This algorithms generates a triangle and n sine wave signal to separate current outputs n n n static float inc 1 x 0 gain 2 1 57 n if x 1 57 inc inc n if x 1 57 inc abs inc n x x inc n O100 x 001 n O101 gain sin x 001 n n INST_SEND e1415...

Страница 422: ...nteractive mode INST_SEND e1415 form asc n do_interactive Calls cscpi_exe in a loop endif if 0 C CSPI way to check for errors INST_QUERY e1415 syst err n d S error string if error void printf syst err d s n error string exit 1 endif return 0 Normal end of program ...

Страница 423: ...uple Type E 0 800C 310 311 Thermocouple Type E 200 800C 308 309 Thermocouple Type EExtended 312 313 Thermocouple Type J 314 315 Thermocouple Type K 316 Thermocouple Type R 317 318 Thermocouple Type S 319 320 Thermocouple Type T 321 322 Adding settling delay for specific channels 112 Adding terminal module components 47 Additive expression 144 Additive operator 144 ADDRess MEMory VME ADDRess 216 AD...

Страница 424: ...ts to be reported in the status 98 Byte reading the status 99 C CAL TARE and thermocouples 106 TARE resetting 107 CALibration subsystem 185 Calibration channel CAL 287 Calibration control of 25 CALibration CONFigure RESistance 186 CALibration CONFigure Voltage 187 CALibration SETup 188 CALibration SETup 188 CALibration STORe 189 CALibration TARE 190 CALibration TARE RESet 191 CALibration TARE 192 ...

Страница 425: ...Ration CONDition 269 STATus QUEStionable CONDition 274 Conditional constructs 140 Conditional execution 148 Configuring programmable analog SCP parameters 62 the enable registers 98 the HP E1415 19 the transition filters 98 Connecting the on board thermistor 42 Connection Guard 363 recommended 39 signals to channels 39 Connectors pin signal lists 53 Considerations special 107 Constant decimal 143 ...

Страница 426: ...fining a PID with ALG DEFINE 79 an algorithm for swapping 126 and accessing global variables 119 custom algorithms 125 data storage 81 standard PID algorithms 77 Definite length block data example 126 DELay ALGorithm OUTPu DELay 178 ALGorithm OUTPut DELay 177 Describing the HP E1415 closed loop controller 114 Detecting open transducers 108 Determining an algorithm s size 127 first execution First_...

Страница 427: ...rom the 88 121 sending data to 120 status commands 89 time relationship of readings in the FIFO 121 transfer commands 88 writing values to 121 Filters adding circuits to terminal module 47 configuring the status transition filters 98 Fixed width pulses at variable frequency FM 75 Fixing the problem 111 Flash Memory 344 Flash memory access disabling 25 Flash memory limited lifetime 189 FLOor DIAGno...

Страница 428: ... HALF 238 Hexadecimal constant 143 HINTS for quiet measurements 39 Read chapter 3 before chapter 4 113 History mode 79 How to use CAL 76 HP E1415 background operation 101 HP E1415 configuring the 19 I Identifier 143 Identifiers 138 IEEE INF 207 IMMediate ALGorithm UPDate IMMediate 178 ARM IMMediate 183 INITiate IMMediate 209 TRIGger IMMediate 283 Implementing feed forward control 131 multivariable...

Страница 429: ... 65 strain measurements 70 temperature measurements 67 voltage measurements 65 Lists Faceplate connector pin signal 53 Loading custom EU tables 104 tables for linear conversions 104 tables for non linear conversions 105 Logical operators 139 Logical AND expression 145 LOW INPut LOW 213 INPut LOW 214 Low noise measurements HINTS 39 IMPORTANT 34 M Manual control 78 max expression1 expression2 140 Ma...

Страница 430: ...72 ALG SIZE return for undefined algorithm 173 ALG STATE effective after ALG UPDATE 91 ALG STATE effective only after ALG UPD 174 ALG TIME return for undefined algorithm 175 Algorithm Language case sensitivity 139 Algorithm Language reserved keywords 138 Algorithm source string terminated with null 125 Algorithm source string terminates with null 169 Algorithm Swapping restrictions 128 Algorithm v...

Страница 431: ...peration HP E1415 background 101 Operation standard EU 103 Operational overview 56 Operators arithmetic 139 assignment 139 comparison 139 logical 139 the arithmetic 148 the comparison 148 the logical 148 unary 139 unary arithmetic 148 unary logical 139 Option A3F 51 Options Terminal module 49 Order algorithm execution 123 Organization of the CVT 87 OTD restrictions NOTE 109 OTDetect DIAGnostic OTD...

Страница 432: ... STATus OPERation PTRansition 272 STATus OPERation PTRansition 273 STATus QUEStionable PTRansition 277 STATus QUEStionable PTRansition 278 PULSe SOURce FUNC SHAPe PULSe 262 Q Questionable data group examples 98 Quick Reference Command 297 Quiet measurements HINTS 39 Quieter readings with amplifier SCPs NOTE 111 R Rack Mount Terminal Panel Accessories 52 RATio ALGorithm EXPLicit SCAN RATio 172 ALGo...

Страница 433: ... 146 Self test and C SCPI for MS DOS R 293 error messages 338 how to read results 293 Sending Data to the CVT and FIFO 120 SENSe subsystem 233 SENSe CHANnel SETTling 234 SENSe CHANnel SETTling 234 SENSe DATA CVTable RESet 236 SENSe DATA CVTable 235 SENSe DATA FIFO COUNt HALF 238 SENSe DATA FIFO COUNt 238 SENSe DATA FIFO HALF 238 SENSe DATA FIFO MODE 239 SENSe DATA FIFO MODE 240 SENSe DATA FIFO PAR...

Страница 434: ...ing trigger 85 SIZE ALGorithm EXPLicit SIZE 173 MEMory VME SIZE 217 MEMory VME SIZE 218 Size determining an algorithms 127 Soft front panel VXIplug play See online help SOURce ARM SOURce 183 ARM SOURce 184 OUTPut TTLTrg SOURce 224 TRIGger SOURce 284 TRIGger SOURce 285 SOURce subsystem 261 Source selecting the trigger 82 Source selecting trigger timer arm 83 SOURce FM STATe 261 SOURce FM STATe 262 ...

Страница 435: ...ion 269 STATus OPERation ENABle 270 STATus OPERation ENABle 271 STATus OPERation EVENt 271 STATus OPERation NTRansition 271 STATus OPERation NTRansition 272 STATus OPERation PTRansition 272 STATus OPERation PTRansition 273 STATus PRESet 273 STATus QUEStionable CONDition 274 STATus QUEStionable ENABle 275 STATus QUEStionable ENABle 275 STATus QUEStionable EVENt 276 STATus QUEStionable NTRansition 2...

Страница 436: ...e pre defined PIDA algorithm 77 The pre defined PIDB algorithm 77 The static modifier 141 The status byte group s enable register 100 Thermistor and RTD measurements 67 Connecting the on board 42 Thermistor Accuracy Graph 10K Ohm Type 332 333 2250 Ohm Type 328 329 5K Ohm Type 330 331 Thermocouple Accuracy Graph Type E 0 800C 310 311 Type E 200 800C 308 309 Type EExtended 312 313 Type J 314 315 Typ...

Страница 437: ...global 143 initializing 120 modifying running algorithm 90 reading algorithm 87 Verifying a successful configuration 27 VERSion DIAGnostic VERSion 203 SYSTem VERSion 280 Voids Warranty Cutting Input Protect Jumper 25 VOLTage AMPLitude OUTPut VOLTage AMPLitude 227 OUTPut VOLTage AMPLitude 228 CALibration CONFigure VOLTage 187 SENSe FUNCtion VOLTage 251 Voltage CALibration VALue VOLTage 193 Voltage ...

Страница 438: ...438 Index Writing the algorithm 129 values to CVT elements 120 values to the FIFO 121 Z ZERO CALibration ZERO 194 ...

Отзывы: