Monday, May 14, 2012

Electronic Measurements & Instrumentation

Electronic Measurements & Instrumentation Question & Answers
GRIET/ECE 1
UNIT-1
1. What are the basic performance characteristics of a system?
Ans:
STATIC CHARACTE RISTICS
The static characteristics of an instrument are, in general, considered for instruments which are used to
measure an unvarying process condition. All the static performance characteristics are obtained by one
form or another of a process called calibration. There are a number of related definitions (or
characteristics), which are described below, such as accuracy% precision, repeatability, resolution,
errors, sensitivity, etc.
l. Instrument: A device or mechanism used to determine the present value of the quantity under
measurement.
2. Measurement: The process of determining the amount, degree, or capacity by comparison (direct or
indirect) with the accepted standards of the system units being used.
3. Accuracy: The degree of exactness (closeness) of a measurement compared to the expected (desired)
value.
4. Resolution: The smallest change in a measured variable to which an instrument will respond.
5. Precision: A measure of the consistency or repeatability of measurements, i.e. successive readings
does not differ. (Precision is the consistency of the instrument output for a given value of input).
6. Expected value: The design value, i.e. the most probable value that calculations indicate one should
expect to measure.
7 Error: The deviation of the true value from the desired value.
8. Sensitivity: The ratio of the change in output (response) of the instrument to a change of input or
measured variable.
DYNAMIC CHARACTERISTICS
Instruments rarely respond instantaneously to changes in the measured variables. Instead, they exhibit
slowness or sluggishness due to such things as mass, thermal capacitance, fluid capacitance or electric
capacitance. In addition to this, pure delay in time is often encountered where the instrument waits for
www.jntuworld.com
www.jntuworld.com
Electronic Measurements & Instrumentation Question & Answers
GRIET/ECE 2
some reaction to take place. Such industrial instruments are nearly always used for measuring quantities
that fluctuate with time. Therefore, the dynamic and transient behavior of the instrument is as important
as the static behavior.
The dynamic behavior of an instrument is determined by subjecting its primary element (sensing
element) to some unknown and predetermined variations in the measured quantity. The three most
common variations in the measured quantity are as follows:
l. Step change in which the primary element is subjected to an instantaneous and finite change in
measured variable.
2. Linear change, in which the primary element is following a measured variable, changing linearly with
time.
3, Sinusoidal change, in which the primary element follows a measured variable, the magnitude of
which changes in accordance with a sinusoidal function of constant amplitude
.
The dynamic characteristics of an instrument are (i) speed of response,
(ii) Fidelity, (iii) lag, and (iv) dynamic error.
(i) Speed of Response: It is the rapidity with which an instrument responds to changes in the measured
quantity.
(ii) Fidelity: It is the degree to which an instrument indicates the changes in the measured variable
without dynamic error (faithful reproduction).
(iii) Lag: It is the retardation or delay in the response of an instrument to changes in the measured
variable.
(iv) Dynamic Error: It is the difference between the true values of a quantity changing with time and
the value indicated by the instrument, if no static error is assumed.
When measurement problems are concerned with rapidly varying quantities, the dynamic relations
between the instruments input and output are generally Defined by the use of differential equations
2. What are the different types of static errors in a system?
Ans:
The static error of a measuring instrument is the numerical difference between the true value of a
quantity and its value as obtained by measurement, i.e. repeated measurement of the same quantity give
different indications. Static errors are categorized as gross errors or human errors, systematic errors and
Random errors.
1. Gross Errors
www.jntuworld.com
www.jntuworld.com
Electronic Measurements & Instrumentation Question & Answers
GRIET/ECE 3
This error is mainly due to human mistakes in reading or in using instruments or errors in recording
observations. Errors may also occur due to incorrect adjustments of instruments and computational
mistakes. These errors cannot be treated mathematically. The complete elimination of gross errors is not
possible, but one can minimize them .Some errors are easily detected while others may be elusive. One
of the basic gross errors that occur frequently is the improper use of an Instrument the error can be
minimized by taking proper care in reading and recording the measurement parameter. In general,
indicating instruments change ambient conditions to some extent when connected into a complete
circuit.
2. Systematic Errors
These errors occur due to shortcomings of, the instrument, such as defective or worn parts, or ageing or
effects of the environment on the instrument.
These errors are sometimes referred to as bias, and they influence all
measurements of a quantity alike. A constant uniform deviation of the operation of an instrument is
known as a systematic error. There are basically three types of systematic errors
(i) Instrumental, (ii) Environmental, and (iii) Observational
(i) Instrumental Errors
Instrumental errors are inherent in measuring instruments, because of their mechanical structure. For
example, in the D'Arsonval movement friction in the bearings of various moving components, irregular
spring tensions, stretching of the spring or reduction in tension due to improper handling or over loading
of the instrument. Instrumental errors can be avoided by
(a) Selecting a suitable instrument for the particular measurement applications.
(b) Applying correction factors after determining the amount of instrumental error.
(c) Calibrating the instrument against a standard.
(ii) Environmental Errors
Environmental errors are due to conditions external to the measuring device, including conditions in the
area surrounding the instrument, such as the effects of change in temperature, humidity, barometric
pressure or of magnetic or electrostatic fields.
These errors can also be avoided by (i) air conditioning, (ii) hermetically sealing certain components in
the instruments, and (iii) using magnetic shields.
(iii) Observational Errors
Observational errors are errors introduced by the observer. The most common error is the parallax error
introduced in reading a meter scale, and the error of estimation when obtaining a reading from a meter
scale.
www.jntuworld.com
www.jntuworld.com
Electronic Measurements & Instrumentation Question & Answers
GRIET/ECE 4
These errors are caused by the habits of individual observers. For example, an observer
may always introduce an error by consistently holding his head too far to the left while reading a needle
and scale reading.
In general, systematic errors can also be subdivided into static and dynamic Errors. Static
errors are caused by limitations of the measuring device or the physical laws governing its behavior.
Dynamic errors are caused by the instrument not responding fast enough to follow the changes in a
measured variable.
3. What is the method used to calculate the errors in an instrument?
Ans:
ERROR IN MEASUREMENT
Measurement is the process of comparing an unknown quantity with an accepted
standard quantity. It involves connecting a measuring instrument into the system under consideration
and observing the resulting response on the instrument. The measurement thus obtained is a quantitative
measure of the so-called "true value" (since it is very difficult to define the true value, the term
"expected value" is used). Any measurement is affected by many variables; therefore the results rarely
reflect the expected value. For example, connecting a measuring instrument into the circuit under
consideration always disturbs (changes) the circuit, causing the measurement to differ from the expected
value. Some factors that affect the measurements are related to the measuring instruments themselves.
Other factors are related to the person using the instrument. The degree to which a measurement nears
the expected value is expressed in terms of the error of measurement. Error may be expressed either as
absolute or as percentage of error. Absolute error may be defined as the difference between the expected
value of the variable and the measured value of the variable, or
e = Y n - X n
Where e=absolute errors;
Yn=expected value;
Xn=measured value;
Therefore %error = (absolute value/expected value )*100=(e/Yn)*100
Therefore %error=
It is more frequently expressed as an accuracy rather than error.
Therefore A=1-
Where A is the relative accuracy
Accuracy is expressed as % accuracy
www.jntuworld.com
www.jntuworld.com
Electronic Measurements & Instrumentation Question & Answers
GRIET/ECE 5
a=100%-%error
a=A*100% (where a=%accuracy)
4. Describe the function of the DC-Voltmeter and multi range voltmeter and explain
their operation?
Ans: DC-Voltmeter
A basic D'Arsonval movement can be converted into a dc voltmeter by adding a series
resistor known as multiplier, as shown in the figure. The function of the multiplier is to limit the
current through the movement so that the current does not exceed the full scale deflection value.
A dc voltmeter measures the potential difference between two points in a dc circuit or a circuit
component. To measure the potential difference between two points in a dc circuit or a circuit
component, a dc voltmeter is always connected
across them with the proper polarity. The value of
the multiplier required is calculated as follows.
Im: full scale deflection current of the movement
Rm : internal resistance of movement
Rs : Multiplier resistance
V: full range voltage of the instrument
From the circuit of Fig. 4.1
V= Im *( Rm+ Rs)
Rs = = -
therefore Rs = -
The multiplier limits the current through the movement, so as to not exceed the value of the full scale
deflection Ifsd.
The above equation is also used to further extend the
range in DC voltmeter'.
Multi range Voltmeter:
As in the case of an ammeter, to obtain a
multi range ammeter, a number of shunts are connected
www.jntuworld.com
www.jntuworld.com
Electronic Measurements & Instrumentation Question & Answers
GRIET/ECE 6
across the movement with a multi-position switch.
Similarly, a dc voltmeter can be converted into a
multi range voltmeter by connecting a number of
resistors (multipliers) along with a range switch
to provide a greater number of workable
ranges. The below Figure shows a multi range
voltmeter using a three position switch and three
multipliers R1, R2, and R3, for voltage values
V1, V2, and V3. Fig 4.2 can be further modified to
multipliers connected in series string, which is a
more practical arrangement of the
multiplier resistors of a multi range voltmeter. In
this arrangement, the multipliers are connected in a series string, and the range selector selects the
appropriate amount of resistance required in series with the movement.
This arrangement is advantageous compared to the previous one, because all multi1llier resistances
except the first have the standard
resistance value and are also easily
available in precision tolerances. The
first resistor or low range multiplier,
R4, is the only special resistor which
has to be specially manufactured to
meet the circuit requirements.
5. Explain the working of solid
state voltmeter?
Ans:
The below figure shows the circuit of
an electronic voltmeter using an IC Op
Amp 741C.This is a directly coupled
very high gain amplifier. The gain of
www.jntuworld.com
www.jntuworld.com
Electronic Measurements & Instrumentation Question & Answers
GRIET/ECE 7
the Op Amp can be adjusted to any suitable lower value by providing appropriate resistance between its
output terminal, Pin No. 6, and inverting input, Pin No. 2, to provide a negative feedback. The ratio R2
/R1 determines the gain, i.e. 101 in this case, provided by the Op Amp. The 0.1 pF capacitor across the
100 k resistance R is for stability under stray pick-ups Terminals 1 and 5 are called offset null terminals.
A 10 kΩ potentiometer is connected between these two offset null terminals with its centre tap
connected to a - 5V supply. This potentiometer is called zero set and is used for adjusting zero output for
zero input conditions.
The two diodes used are for IC protection. Under normal conditions, they are non-conducting, as the
maximum voltage across them is l0 mV. If an excessive voltage, say more than 100 mV appears across
them, then depending upon the polarity of the voltage, one of the diodes conducts and protects the IC. A
μA scale of 50 - 1000 μA full scale deflection can be used as an indicator. Ro is adjusted to get
maximum full scale deflection.
6. Draw the block diagram of the measuring system and explain the
function of each stage of this system?
Ans:
The generalized measuring system consists of three main functional elements. They are,
1. Primary sensing element, which senses the quantity under measurement.
2. Variable conversion element, which modifies suitably the output of the primary sensing element
3. Data presentation element that renders the indication on a calibrated scale.
1. Primary Sensing Element
The measurement first comes into contact with primary sensing element where the conversion takes
place. This is done by a transducer which converts the measurement (or) measured quantity into a usable
electrical output. The transduction may be from mechanical, electrical (or) optical to any related form.
www.jntuworld.com
www.jntuworld.com
Electronic Measurements & Instrumentation Question & Answers
GRIET/ECE 8
2. Variable Conversion Element
The output of the primary sensing element is in the electrical form suitable for control, recording and
display. For, the instrument to perform the desired function, it may be necessary to convert this output to
some other suitable for preserving the original information. This function is performed by the variable
conversion element. A system may require one (or) more variable conversion suitable to it.
(a) Variable Manipulation Element
The signal gets manipulated here preserving the original nature of it. For example, an amplifier accepts a
small voltage signal as input and produces a voltage, of greater magnitude. The output is the same
voltage but of higher value, acting as a voltage amplifier. Here the voltage amplifier acts as a variable
manipulation element since it amplifies the voltage. The element that follows the primary sensing
element in a measurement system is called signal conditioning element. Here the variable conversion
element and variable manipulation element are collectively called as Data conditioning element (or)
signal conditioning element.
(b) Data Transmission Element
The transmission of data from one another is done by the data transmission element. In case of
spacecrafts, the control signals are sent from the control stations by using radio signals.
The stage that follows the signal conditioning element and data transmission element collectively is
called the intermediate stage.
(c).Data Presentation Element
The display (or) readout devices which display the required information about the measurement, forms
the data presentation element. Here the information of the measurand has to be conveyed for,
monitoring, Control (or) analysis purposes.
(a). 1t case of data to be monitored, visual display devices are needed like ammeters; voltmeters and so
on are used.
(b)In case of data to be recorded, recorders like magnetic tapes, T.V equipment, and storage type C.R T,
printers and so on are used.
7. Explain the types of test signals used in determining dynamic characteristics of
measurements applied to a system.
Ans:
www.jntuworld.com
www.jntuworld.com
Electronic Measurements & Instrumentation Question & Answers
GRIET/ECE 9
The a dynamic characteristic (or) analysis is classified with respect to time and frequency as time
domain analysis and frequency domain analysis
(a).In time domain analysis the i/p is applied to the system and the behavior of the system is studied as a
function of time.
(b) In frequency, domain analysis the i/p is a sinusoidal one and the behavior of the system is studied as
a function of frequency.
The standard test signals used for time domain analysis are as follows.
(i) Step input
(ii) Ramp input
(iii) Parabolic input
(iv) Impulse input.
(i) Step Input
The continuous time step input u (t) is defined as the discrete time step input a[n] is defined as,
U (t) = and discrete time step input u[n] is defined as, u (n) =
Therefore, a unit step input represents a signal which changes its level from 0 to I in zero time and. it
reveals a great deal about how quick, the system responds to an abrupt change in the input signal
(ii) Ramp Input
The ramp input is defined in continuous time as
www.jntuworld.com
www.jntuworld.com
Electronic Measurements & Instrumentation Question & Answers
GRIET/ECE 10
r (t) =
and r[n] =
(iii) Parabolic Input
The parabolic input is defined as,
r (t) =
and the discrete time is defined as,
r[n] =
The signal are given below,
www.jntuworld.com
www.jntuworld.com
Electronic Measurements & Instrumentation Question & Answers
GRIET/ECE 11
This signal is also called as acceleration input since the input signal is proportional to represents a
constant acceleration.
(iv) Impulse Input
It is also called as a δ (delta) function. The continuous time impulse input is given by, square of
time and
δ (t) =0 for t≠0
And discrete time impulse input is given by,
δ (n) =
The unit impulse is defined as the signal which has a zero value everywhere except at t=0.where the
magnitude is finite.
www.jntuworld.com
www.jntuworld.com
Electronic Measurements & Instrumentation Question & Answers
GRIET/ECE 12
In frequency domain analysis, the system behavior is studied through the sinusoidal signal because the
time varying signals such as step, ramp, and parabolic inputs can be expressed in terms of sinusoidal
signal of differential amplitudes and frequencies.
A continuous time sinusoidal signal is given as
X(t)=A sin(ωt + φ)
Where A= amplitude
ω = frequency in radians/sec.
φ = phase angle in radians.
A sinusoidal signal is an example of a periodic signal, the period of which is T=
The discrete time version of a sinusoidal signal is given by,
X[n] =A sin (ωn + φ)
Where, ω = angular frequency in radians/cycle.
www.jntuworld.com
www.jntuworld.com
Electronic Measurements & Instrumentation Question & Answers
GRIET/ECE 13
8. Explain the terms
(i). significant figures
(ii). Conformity
Ans:
(i) Significant Figures
The number of meaningful digits used to express a numerical value (measured value of a quantity) are
known as, significant figures. Significant figures indicate the precision of the measurement and the
magnitude of the measurements. The measured value should be expressed in more number of significant
figures because the more significant figures the higher will be the precision.
Consider an example in which the measured voltage across a resistor in a circuit is specified as
50 V. It indicates that the measured voltage may be close to 49 V or 51 V. This specification has two
significant figures. If the measured voltage is specified as 50.0 V then it indicates that the value may be
close to 49.9 V or 50. 1 V. This specification has three significant figures. From the above illustration, it
can be observed that the specification with three significant figures is more precise than the one with
two significant figures.
(ii) Conformity
Conformity is one of the characteristics which determine the precision. If a measuring instrument
consistently and repeatedly provides a value as close to the true value (of the measured quantity) as an
observer can estimate the true value from its scale reading then this characteristic refers to the
conformity of the measurement. Let us consider an example of measuring resistance of a resistor which
has a true resistance of 10,654,739 Ω). If the multi meter indicates the resistance value as 10.7 MO
consistently and repeatedly, then the condition of conformity is satisfied. But, due to the limitation of
www.jntuworld.com
www.jntuworld.com
Electronic Measurements & Instrumentation Question & Answers
GRIET/ECE 14
scale reading, there exists an error in the measured value as the scale provides the reading up to one
decimal place only.
Thus, conformity is a necessary condition, but not a sufficient condition for the
measurement to be precise.
9. What is ayrton shunt? Describe it with a neat sketch .specify its application?
Ans:
Aryton shunt: It is also known as universal shunt. Figure shows the basic circuit of an aryton
shunt.
It avoids the possibility of using the meter in the circuit without a shunt. This is the most
important merit of the aryton shunt.
From the above figure, it is noted that the series combination of resistors R2, R3 and the meter
movement is in parallel with R1 when the switch (SW) is connected to position "1". Therefore, the
current through the meter movement is less than the current through the shunt, thereby protecting the
meter movement. This reduces the sensitivity of meter movement. The series combination of resistor R6
and the meter movement is in parallel with resistor R1, R2, when the SW is connected to position "2".
Therefore, the current through the shunt resistance is less than the current through the meter movement.
The resistors R1, R2, and R3, are together in parallel with meter movement. When the switch is in
position "3".Now the current flowing through the shunt is very little whereas the current flowing through
the meter is very high. Hence the sensitivity of the meter movement is increases.
www.jntuworld.com
www.jntuworld.com
Electronic Measurements & Instrumentation Question & Answers
GRIET/ECE 15
10. Explain with a neat block diagram of a dual slope digital voltmeter?
Ans:
Basic Principle:
Initially, the dual slope integrating type DVM integrates the input voltage Vi. The slope of the integrated
signal is proportional to the input voltage under measurements .after certain period of time say t1 the
supply of input voltage Vi is stopped, and a negative voltage -Vr of the integrator. Then the output
signal of integrator will have negative slope, and is constant and also proportional to the magnitude of
the input voltage.
BLOCK DIAGRAM AND WORKING:
The major blocks of a dual slope integrating type
DVM (dual slope analog to digital converter) are,
1. An op-amp employed as an integrator
2. A level comparator
3. Oscillator for generating time pulses
4. Decimal counter
5. Block of logic circuitry.
www.jntuworld.com
www.jntuworld.com
Electronic Measurements & Instrumentation Question & Answers
GRIET/ECE 16
Initially a pulse is applied to reset the counter and the output of flip-flop will be at logic '0'. The switch
Sr is in open condition and the switch, Si is in closed condition. Now, the capacitor 'C' starts to charge.
Once the output of the integrator becomes greater than zero, the output state of the comparator changes
which in turn opens the AND gate .When the gate opens the output of the oscillator (clock pulses) are
allowed to pass through it and applied to the counter. Now the counter counts the number of pulses fed
to it. As soon as it reaches its maximum count that is the counter is preset to run for a time period r,, in
this condition the maximum count will be'9999', and for the next immediate clock pulse the count
changes or goes to '0000' and the flip-flop will be activated. Therefore, the output of flip flop becomes
logic 'I' which in turn activates the switch drive circuitry. This makes the switch Si, to open and Sr to
close (i.e., the supply of Vi will be stopped. and the supply of V is applied to the integrator) with this
applied signal the output of the integrator will be a constant negative slope i.e., its output signal linearly
decreases to zero. This again makes the output of the comparator to change its state which in turn closes
the gate. Here, the discharging time t2 of the capacitor is proportional to the input voltage signal Vi
.During this discharging period the counter indicates the count. As soon as, the negative slope reaches
zero volts the comparator changes its output state to 'zero' which in turn locks the gate. Once, the output
of integrator becomes zero (or the input of the comparator is zero) the counter will be stopped. And the
counted pulses are displayed (which directly gives the input voltage).
From the above equation, it is clear that the measured voltage signal's accuracy does not depend on the
time constant of the integrator.
Advantages
1. Depending on the requirement the accuracy and sped can be varied.
2. It can provide the output with an accuracy of +-0.005% in 100ms
3. This technique exhibits excel lent noise rejection since the integration process eliminates both noise
and super imposed A.C.
11. Explain the constructional details and differentiate between Ohmmeter series
type and shunt type. ?
Ans: ohmmeter (SERIES TYPE OHM METER)
A D'Arsonval movement is connected in series with a resistance R, and a battery which is connected to a
pair of terminals A and B, across which the unknown resistance is connected. This forms the basic type
of series ohm meter, as shown in the fig 11.
www.jntuworld.com
www.jntuworld.com
Electronic Measurements & Instrumentation Question & Answers
GRIET/ECE 17
The current flowing through the movement then depends on the magnitude of the unknown resistance.
Therefore, the meter deflection is directly proportional to the value of the unknown resistance
referring to the figure 11.
R1: current limiting resistance
R2: zero adjust resistance
V= battery
Rm =meter resistance
Rx=un know resistance
Calibration of the Series Type Ohmmeter:
To mark the "0" reading on the scale, the terminals A and B are Shorted, i.e. the
Unknown resistance Rx=0, maximum current flows in the circuit and the shunt Resistance R2 is adjusted
until the movement indicates full scale current (Ifsd ). The Position of the pointer on the scale is then
marked "0" ohms. Similarly, to mark the "∞" reading on the Scale, terminals A and B are open, i.e., the
unknown resistance Rx=∞, no current flow in the circuit and there is no deflection of the pointer. The
position of the pointer on the scale is then marked as “∞” 0hms.
By connecting different known values of the unknown resistance to terminals A
and B, intermediate markings can be done on the scale. The accuracy of the Instrument can be checked
by measuring different values of standard resistance, i.e., the tolerance of the calibrated resistance, and
noting the readings a major drawback in the series ohmmeter is the decrease in voltage of the internal
battery with time and age. Due to this, the full scale deflection current Drops and the meter does not read
"0" when A and B are shorted. The variable Shunt resistor R2 across the movement is adjusted to
counteract the drop in battery Voltage. There by bringing the pointer back to "0" ohms on the scale'
It is also possible to adjust the full scale deflection current without the shunt R2 in
the circuit, by varying the value of R1, to compensate for the voltage drop. Since this value affects the
calibration of the scale, varying by R2 is much better solution. The internal resistance of the coil Rm is
very low compared to R1 When R2 is varied, the current through the movement is increased and the
www.jntuworld.com
www.jntuworld.com
Electronic Measurements & Instrumentation Question & Answers
GRIET/ECE 18
current through R2 is reduced, thereby bringing the pointer to the full scale deflection position. The
series ohmmeter is a simple and popular design, and is used extensively For general services work,
Therefore ,in a series ohmmeter the scale marking on the dial has “0” on the right side ,corresponding to
full scale deflection current ,and "∞" on the left side corresponding to no current flow as given in the fig
11.1 Values of R1 and R2 can be determined from the value of Rx ,which gives half the full scale
deflection.
www.jntuworld.com
www.jntuworld.com

PDMS Syntax



In principle, any attribute can be set by specifying the attribute name and value you want it to take. The following are examples:

XLEN  200
HEIGHT  300
NAME  /FRED
ORI  Y  IS  N
DESC  'PLATE  GIRDER'
TEMP  120
PURP  EQUI
ORI  Y  IS  N  AND  Z  IS  U

 
Navigation
Commands for moving around the PDMS database.
/NAME
Move to an element by name
=23/506
Move to an element by its reference number
END
Move up the database hierarchy by 1 level
6
Move to the sixth element in the list of the current element
NEXT
Move to the next element in the list at the same level
NEXT 2
Move to the second element after the current element
NEXT ELBO
Move to the next elbo in the current list by passing any other elements
PREV
Move to the previous element in the list
PREV 4
Move four elements back from ce
SAME
Go to the previous current element
 
NOTE: NEXT and PREV commands work on the list according to the modes Forwards or Backwards. In backwards mode, the list is considered to be reversed so these commands have the effect of working from the opposite end of the list.
 
Query Commands
Q ATT
Query all the attributes of the current element
Q POS
Query the position of the current element
Q POS IN SITE (or Q POS WRT SITE)
Query the position of the current element relative to the site position
NOTE: Normally, the Q POS command gives the position relative to the element's owner.
Q NAME
Query the name of the current element. This may either begin with '/' character '/PIPING' or may be by a list position name (full name) such as:
ELBO 2 OF /P1/B1
Q REF
Query the database unique reference number i.e. = 234/702. This is the best way of ensuring that you get to the element you want. Names can change but reference numbers are fixed so you always get the same element.


 Positioning Commands (General)
At E300 N400 U500
Position an element explicitly at the coordinates given relative to the element's owner. To position relative to some other element, wrt can be added, as shown
At E3333 N6000 U50 WRT SITE
At N500W30U600 WRT WORLD
AT N400 U500 E300 IN ZONE                                                           
At N40 WRT /FRED
BY N500
Move the element north from it's current position by 500mm (This is relative movement.)
CONN P1 TO P2 OF PREV
Positions P1 at the specified point and orientates the element such that P1 is pointing in the opposite direction to the specified ppoint.
CONN IDP@ TO IDP@
Connect a picked Ppoint on the current primitive to a picked Ppoint of another
CONN P1 TO IDP@
Connect P1 of the current primitive to a picked Point of another primitive
 Move syntax
Position>Move>Distance
Moves the element’s origin by a given distance in a given direction.

Ex.       MOVE N DIST 10’                  MOVE S WRT /* DIST 5'                   MOVE E IN SITE DIST 5'

Position>Move>Through
Moves the origin of the element in a given direction through a Reference Plane perpendicular to the line of travel that is passing through a picked element, p-point, or coordinate.

Ex.       MOVE N THRO ID@ MOVE N THRO IDP@          MOVE N THRO N46’

Position>Move>Clearance
Moves the element’s origin, p-point, or obstruction in a given direction with a clearance from another item’s origin, p-point, or obstruction
.
Ex.  MOVE E DIST 10’ FROM /P-101                    MOVE E CLEARANCE 10’ FROM /P-101

The options INFRONT, BEHIND, ONTO, and UNDER refer to a picked or named item’s physical obstruction, while the TO and FROM options refer to the item’s origin.  INFRONT and TO refer to the near side while BEHIND and FROM refer to the far side of an item.

Position>Plane Move>Through
Moves the origin of the element in a given direction through a Reference Plane specified by the user that is passing through a picked element, p-point, or coordinate.

Ex.       MOVE ALONG E PLANE N45W THRO ID@

Positioning Commands (Piping)
NOTE: All the above commands can be used with piping components for exact positioning. The following commands are specific to piping because they use the implied direction of the previous component to determine the position. This implied direction is some times referred to as the constrained centreline and is simply a line drawn in the direction of the previous component. All of the following commands will move components along this line.
DIST 300
Position the current element 300mm away from the previous component. The direction is taken as the leave direction of the previous component.
CLEAR 400
Position the current element with a clearance of 400m between it and the previous element. For most types of component, this command gives a tube spool length equal to the clearance value. For some components such as level operated valves the clearance is likely to take the lever length as the obstruction length of the valve, so in this case the clearance might be more unpredictable.
THRO N500
TO N500
Position the origin of the CE along constrained centerline through N500 in ZONE coordinates.
THRO PT
Position the origin of the CE along constrained centerline at the point where it intersects a perpendicular plane positioned at  the branch tail.
CONNect
Position the arrive point at the leave point of the previous component and orientate the component to suit.

 
Orientation Commands (General)
ORI Y IS N AND Z IS U
This is the default orientation (wrt owner) for all elements that have an orientation attribute.
ORI Y IS E45N
Specify that the Y axis is pointing E45N. When only one axis is specified, the other tries to get to it's default, so in this case, Z will default to UP.
ORI P1 IS N
Rather than specifying an axis, this command specifies that a particular ppoint is to be orientated in the direction specified.

 
Orientation Commands (Piping)
ORI
This command orientates the arrive of the element in the opposite direction to the leave of the previous element. It does not change the position.
CONNECT
Perform an ORI, then position the arrive at the leave of previous.
DIR S
This is a special command which is allowed to change the angle of a component. It first performs an ori, then adjusts the angle to ensure that the leave direction is in the direction specified.
ORI AND P3 IS U
Used for valves, tees, etc., this command performs an ori and then points the ppoint in the required direction. It does not change the angle.
DIR AND P3 IS U
This is another special command which is only used on tees with variable angles. (Usually for sloping lines.) In this case, the tee is orientated and the angle adjusted to allow p3 to point in the direction specified.

 
Creating Elements
NEW  BOX
To create anything in PDMS, you need to be at the right level in the hierarchy and use the command NEW followed by the TYPE of element you want to create.
NEW  EQUI  /T-1101
Create EQUI element and set the name attribute
NEW ELBO CHOOSE
For piping components, you need to create the element and then link it to the catalogue via the spref attribute. The CHOOSE command allows you to select components from the specification by picking them from a displayed menu.
CHOOSE ALL
Allows you to see more detail about the component than CHOOSE on it's own.
 
Deleting Elements
DELETE ELBO
To delete an element, the syntax is DELETE followed by the TYPE of element you are deleting.
DELETE BRAN MEM
This deletes the members of an element (i.e. BRAN in this example) without deleting the element itself.
 
PSEUDO ATTRIBUTES
  In order to get specific information directly from the database, a number of keyword or pseudo attributes have been introduced. Pseudo attributes are not attributes as such, but they have the ability to extract data when queried. For Example
ELBO 1
Go to elbo 1 of the branch
Q PARAM
Query the parameters of the catref of the spref
Q DTXR
Query the rtext of the detref of the spref_ can also use dtxs or dtxt
Q MTXX
Query the xtext of the matref of the spref _ can also use mtxy or mtxz
Q PSATTS
Query the list of pseudo attributes available for the CE.
 
A few useful pseudo attributes appear below:
  General Queries
Q LIST
Query what you can create below the current element
Q OLIST
Query the type of elements which can own CE
Q ORDER
Query the list position
Q PROP DESC
Query the data element with the dkey equal to DESC in the component's dataset (Steelwork and Piping elements)
Q PRLS
Query the list of properties in the component's dataset
Q PURP XXX
Query the purpose attribute of the property XXX
  Piping Attributes
Q CHOICE
Query the answers of the selectors of the spref
Q CHOICE STYP
Query the styp used to select the component
Q PL BOP
Query the bottom of pipe elevation of the leave point
Q PA INSU
Query the insulation thickness at the arrive point
Q PGRAD 1
Query the slope at ppoint 1
Q ITLE
Query the length of implied tube (must navigate first by using 'IL TUBE' at a component)
Q LBOR
Query the leave bore
Q ABOR
Query the arrive bore
Q APOS
Query the arrive position
Q LPOS
Query the leave position
At Branch Level
Q TULEN
Query the length of tube in a branch
Q CLLEN
Query the centerline length through all components
  Steelwork 
Q ODESP
Query the design params of the joint owner
Q ADESP
Query the design params of the joint attached beam
Q DRPS
Query the derived position of the beam start
Q NWEI
Query the net weight (considering joint cut outs)
Q GWEI
Query the gross weight (beam before cutting)
Q NCOF
Query the net centre of gravity for the beam
Q NSRF
Query the net surface area
Q MIDP
Query the mid point
Q POS PPLINE TOS START WRT /*
Query TOS of current element (SCTN)
Q PPLINE TOS DIR
Query the direction of the TOS pline on a SCTN
 
The Construct Syntax
The construct syntax is described more fully in the Design reference manual and it is worth looking at it in more detail. CONST allows distances and angles to be calculated from the design data and is invaluable when you are writing applications. For example
Q CONST ANGLE N AND W
gives 90°
CONST A PIN1 TO PIN2 TO PIN3

Q CONST DIST FROM P1 to P2 TO P2 OF/BOX1
gives a distance
CONST DIST FROM PA TO PL OF PREV

  $S  QA=Q  ATT                   Create a synonym to query attributes
Q  EVAR  PDMSUSER        Query the operating system location of user file directory PDMSUSER
Reporting Syntax
You can create an array which includes a number of elements which all satisfy specific selection criteria, as defined by yourself. The syntax is:
VAR !Array COLLECT selection criteria
!Array is the name of the array that will be created to contain the elements selected.
The following general criteria can be used to define the selection:
  • A class of elements or element types
  • A logical expression to be satisfied at all selected elements
  • A physical volume in whichall selected elements must lie
  • A point in the hierarchy below which all selected elements must lie
Eg VAR !PIPECOMPS COLLECT ALL BRANCH MEMBERS
This would create the array !PIPECOMPS and set it to contain the reference numbers of every piping component in the MDB. Logical expressions use the WITH and WHERE option; a volume is defined by the WITHIN keyword; and the hierarchy criteria is defined by the FOR keyword.
Eg VAR !ELBO COLL ALL ELBO WITH SPREF EQ /A300B/100
Evaluating Selected DB Elements
Using the facilities described here you can create an expression and have it evaluated for all elements which satisfy particular selection criteria. The results of the expression are then placed in a named array.
The command syntax is:
VAR !Array EVALUATE (Expression) FOR Select
!Array is the name of the array that will be created
(expression) is the expression that will be carried out for all elements that match the select criteria
Select is the selection criteria
Eg VAR !BOXES EVALUATE ( XLEN * YLEN ) FOR ALL BOXES
 
IF ALL ELSE FAILS!
 
As you can see, there are a lot of commands available to the PDMS user and the list above is only scratching the surface. Almost all of the command syntax is described in the reference manuals but in some cases you might find it difficult to compose the required command from these alone. In these cases, it might be necessary to build a command by using the query syntax itself, using $Q and $H syntax.
The command: $Q gives a list of all possible commands at any one time. On it's own, $Q gives a complete list of top level commands in any PDMS module. When applied in the middle of a command line, it lists the options available at that point.
E.G. the command:
SETUP FORM
Yields an error incomplete command line
SETUP FORM $Q
list_name as required
SETUP FORM _FRED $Q
lists a number of options including:
'BLOCK/ING' 'RESI/ZABLE' 'AT' 'SIZE' 'COPY' and Newline
 
Each of the words in quotes can be used at this point. There may be further options after these words and the same technique can be used to find the way through. The characters before the '/' indicate the minimum abbreviation which may be used for each part of the command. The presence of the Newline keyword without the quotes indicates that the return key may be pressed at this point and the command is executed.
Another form of syntax querying is the $H command. $H is a slightly more sophisticated form of $Q, which lists the available options numerically as the following example shows:
SETUP $H
1 <create a new form>
SETUP $H1
'FORM'
SETUP FORM $H
UNAME
And so on.