Category: Iacdrive_blog

System operation

Our PSA unit (meaning Pressure Swing Adsorption) uses 5 adsorption vessels. The process itself is a batch process, but in order to run in a continuous process plant, each of the 5 vessels can complete all the adsorption process but at the same time, each of them is in a different status of the sequence (i.e. gas in, gas out, adsorption, pressurizing, depressurizing, cleaning, etc). The sequence is mainly controlled by time and pressure condition in each step of the sequence, by managing several valves (I think 5 by vessel, but I’m not sure right now).

Panel operator experienced some problems with valve 1 (gas entry) in vessel 2 because it should open but immediately it received the close command. Instruments technician check that orders coming from the DCS were OK, and also check the valves by injecting the open order, so, they and operation staff concluded that “the program has some kind of problem”.

Some time ago, I spent a lot of time studying the operation manual of this unit and the code written to control it and I wrote a document merging both knowledge. In page 9, I described a condition (an exclusive pressure difference between vessel and gas coming in the vessel) avoiding valve 1 opening during adsorption stage. I explained this condition to operation staff and they confirm that the values were right and that the excessive delta P really exist so, the decided to check back the valve 1 (already checked), discovering a problem (the stem moved, but the disk not).

Conclusion:
– If operation staff know properly the process, they know about this condition, but this could be solved with a properly designed HMI (i.e. including and alarm indicating “valve 1 closed by excessive deltaP”).
– The initial inspection of the valve didn’t show anything wrong, but stem and disk were disconnected.
– If we didn’t dig into the code, this problem, solved in less of an hour could take several hours.

DC Drives Parameter Setting / Programming

Programming parameters associated with DC drives are extensive & similar to those used in conjunction with AC drives. An operator’s panel is used for programming of control setup & operating parameters for a DC drive.

SPEED SETPOINT
This signal is derived from a closely regulated fixed voltage source applied to a potentiometer. The potentiometer has the capability of accepting the fixed voltage & dividing it down to any value, For example, 10 to 0 V, depending on where it’s set. A 10-V input to the drive from the speed potentiometer corresponds to maximum motor speed & 0 V corresponds to zero speed. Similarly any speed between zero & maximum can be obtained by adjusting the speed control to the appropriate setting.

SPEED FEEDBACK INFORMATION
In order to “close the loop” & control motor speed accurately, it’s necessary to provide the control with a feed back signal related to motor speed. The standard method of doing this in a simple control is by monitoring the armature voltage & feeding it back into the drive for comparison with the input setpoint signal. The armature voltage feedback system is generally known as a voltage regulated drive.

A second & more accurate method of obtaining the motor speed feedback information is from a motor mounted tachometer. The output of this tachometer is directly related to the speed of the motor. When tachometer feedback is used, the drive is referred to as a speed regulated drive.

In some newer high-performance digital drives, the feedback can come from a motor-mounted encoder that feeds back voltage pulses at a rate related to motor speed.

These pulses are counted & processed digitally & compared to the setpoint, an error signal is produced to regulate the armature voltage & speed.

CURRENT FEEDBACK INFORMATION
The second source of feedback information is obtained by monitoring the motor armature current. This is an accurate indication of the torque required by the load.

The current feedback signal is used to eliminate the speed droop that normally would occur with increased torque load on the motor & to limit the current to a value that will protect the power semiconductors from damage. The current-limiting action of most controls is adjustable & is usually called current limit or torque limit.

MINIMUM SPEED
In most cases, when the controller is initially installed the speed potentiometer can be turned down to its lowest point & the output voltage from the controller will go to zero, causing the motor to stop. There are, how ever, situations where this is not desirable. E.g.,, there are some applications that may need to be kept running at a minimum speed & accelerated up to operating speed as necessary. The typical minimum speed adjustment is from 0 to 30 percent of motor base speed.

MAXIMUM SPEED
The maximum speed adjustment sets the maximum speed attainable. In some cases it’s desirable to limit the motor speed (and machine speed) to something less than would be available at this maximum setting. The maximum adjustment allows this to be done.

IR COMPENSATION
Although a typical DC motor presents a mostly inductive load, there is always a small amount of fixed resistance in the armature circuit. IR compensation is a method used to adjust for the drop in a motor’s speed due to armature resistance. This helps stabilize the motor’s speed from a no-load to full-load condition. IR compensation should be applied only to voltage-regulated drives.

ACCELERATION TIME
As its name implies, the acceleration time adjustment will extend o

How to improve troubleshooting techniques?

The guy asked for suggestions on how to improve troubleshooting techniques. I mentioned this earlier as a “suggestion” for starters but the idea got lost in all the complaining and totally irrelevant responses like the one above.

Proper lay out of inputs and outputs and a “Troubleshooting guide” or flow chart. I have an Aris cablem modem and Netgear wireless router for internet If loose Internet service I can do three things.

A. Pick up the phone, call tech support and wait two days for someone to show up

B. Take them apart and ‘DIG INTO THE PROGRAMMING”

C. Read the instructions someone took the time to write. Before I can get an output identified by the LEDs, I have to have the correct inputs identified by the LEDs. It’s a waste of time tearing in the “programming” over a loose cable connection somewhere. Same for the wireless router and a bad LAN cable connection or network service issue on the computer. I’m already familiar with the proper LEDs for normal operation. When one goes out it gives me an idea where to start looking before even opening up the instructions which I’ve downloaded in PDFs for quick access to their “troubleshooting” guides. Maybe the service is off line – there is an LED for that. No TVs either, no service or common upstream cable connection problem, no-brainier. The first thing a Xfinity service tech does is go outside and look for a signal at the house customer jack. It’s either in his cable or my house. Once their cable had to be replaced. It mysteriously got damaged right after AT&T dug a big hole in my backyard to upgrade their Uverse service – go figure.

In order to get something to operate output wise, you need a certain amount of inputs to get it. If you don’t have a particular output, then look at the trouble shooing guide and see what inputs are required for it. If there are four direct sensor inputs required for a particular output, group them together.

Grouping internal interlocks together helps also when digging into a program like ladder logic instead of hopping through pages of diagrams or text to find everything it takes to get one output. It’s a common program development issues to throw in ideas as you program depending on where you are sequentially.

DC Drives Field Voltage Control

To control the speed of a DC motor below its base speed, the voltage applied to the armature of the motor is varied while the field voltage is held at its nominal value. To control the speed above its base speed, the armature is supplied with its rated voltage & the field is weakened. For this reason, an additional variable-voltage field regulator is needed for DC drives with field voltage control. Field weakening is the act of reducing the current applied to a DC motor shunt field. This action weakens the strength of the magnetic field & thereby increases the motor speed. The weakened field reduces the counter emf generated in the armature; therefore the armature current & the speed increase. Field loss detection must be pro vided for all DC drives to protect against excessive motor speed due to loss of motor field current.

DC drives with motor field control provide coordinated automatic armature & field voltage control for extended speed range & constant-horsepower applications. The motor is armature-voltage-controlled for constant-torque, variable-horsepower operation to base speed, where it s transferred to field control for constant-horsepower, variable-torque operation to motor maximum speed.

Machine tool

Ahh I see the words machine tool and shop floor; now I can see where you guys are coming from. The type of machines that you talk about were controlled by relay logic and then when technology arrived the electrical drawings were probably “converted” into ladder logic. The techs had lots to do because you cannot translate relay based systems into ladder logic 100% successfully as they behave differently.

The guys doing this work are just that programmers. They are probably NOT software engineers and are closer to the shop floor techs who are fiddling about with your machines.

I can and have designed many control systems for automotive type machines such as hobbing machines, milling and borers. Very easy code to write if you do not translate the relay logic directly but use the existing documentation as a reference. All of the systems that I did work really well. I did some similar type of machines in a pharmaceutical plant but that was after another company was kicked out after failing to make the machines work. I had to redesign the whole control philosophy as the machine tool world methods used were really a bad fit for the intended application.

But that is only one facet of the work that we Industrial Automation Engineers do. I work in many different industries where the demands for quality deigned, controlled and maintained systems is paramount. We go through proper project life cycles and we deal with the project from inception through design, build, test and commissioning. We even do the maintenance of the systems. We do not sit in Ivory Towers but do the work at the customer site no matter where that is on the planet.

Electrical engineers are tasked with doing all things electrical and we are tasked with all things control. Programming, that is writing the actual code is only one part of what we do and not necessarily the most time consuming part.

I am here in Kazakhstan at the sharp end of a multi-billion dollar project a long way from any ivory tower. I fix other engineers software too, why? Because the vendor may use offshore resources to code much of the systems that are installed at site. Kazakhstan has extreme Summers (up to 60degC) and Winters (down to -50degC), most of the people are friendly but English is not so prevalent. A long way from your shop floor environment. Far more dangerous too as the plant processes H2S or will when first Oil & Gas comes onshore.

Here I have supported technicians performing loop checks and other engineers doing logic tests. I can diagnose many loop problems without even looking in the code but just by looking at what is happening. I have found that if a loop doesn’t work then the techs approach us first as a one stop shop to give them an answer rather than actually trouble shooting the loop themselves.

I said to you guys before you need to get out and look at other industries and see what is going on in the rest of the world. Much of what I have seen would go a long way to improving your world too! Engineers like myself are far away from the “programmers” you have.

Three Phase Input DC Drive

Controlled bridge rectifiers are not limited to single-phase designs. In most commercial & industrial control systems, AC power is available in three-phase form for maxi mum horsepower & efficiency. Typically six SCRs are connected together, to make a three-phase fully controlled rectifier. This three-phase bridge rectifier circuit has three legs, each phase connected to one of the three phase voltages. It can be seen that the bridge circuit has two halves, the positive half consisting of the SCRs S1, S3, & S5 & the negative half consisting of the SCRs S2, S4, & S6. At any time when there is current flow, one SCR from each half conducts.

The variable DC output voltage from the rectifier sup plies voltage to the motor armature in order to run it at the desired speed. The gate firing angle of the SCRs in the bridge rectifier, along with the maximum positive & negative values of the AC sine wave, determine the value of the motor armature voltage. The motor draws current from the three-phase AC power source in proportion to the amount of mechanical load applied to the motor shaft. Unlike AC drives, bypassing the drive to run the motor is not possible.

Larger-horsepower three-phase drive panels often consist of a power module mounted on a chassis with line fuses & disconnect. This design simplifies mounting & makes connecting power cables easier as well. A three phase input DC drive with the following drive power specifications:

  • Nominal line voltage for three-phase-230/460 V AC
  • Voltage variation-+15%, -10% of nominal
  • Nominal line frequency-50 or 60 cycles per second
  • DC voltage rating 230 V AC line: Armature voltage 240 V DC; field voltage 150 V DC
  • DC voltage rating 460 V AC line: Armature voltage 500 V DC; field voltage 300 V DC

Floor programmer and office programmer

The biggest differences between the floor programmer and the office programmer is often a piece of paper (knowledge and experience do not replace a piece of paper in the mind of HR person that has no understanding of the position they are seeking to fill) and that the floor programmer must produce a working machine. Also many an excellent programmer will never put up with the office politics seen in many companies. To appear right for me is worthless when being right is the goal. In a physical world it can be shown that a program is right or wrong because the machine works or does not. In the theory driven world of the office that can not happen, so appearing correct as well as being correct is necessary.

If you are the best programmer in your company or the worse. If you are the worse one then maybe you are correct. But if you are the best then please take a close look at the worse programmer’s work and tell us if there is not a need for some improvement.

I have cursed out more than one officer programmer for missing logic which on the floor is easy to see is necessary. The office programmer was more than once, myself. Making logic to control machine in theory is far more difficult a task than modifying that logic on a real running machine. Maybe your imagination and intelligence can create a theoretical image that matches the physical one.

Many office programmers are not up to that level. They lack the intelligence, imagination, experience or time to take an offline program that can be loaded and run a machine without help. But no fear, most start-up techs cannot debug a machine after the build is complete and remove all issues that will surface when the machine enters a customer’s plant and full production.

A good program will grow as time passes. To fill in the gaps in the software, to change the design from what design intended to what production requires and to cover the design changes as product models evolve. Static is not the floor condition of a good company, products and machines evolve and grow. More reliable, durable, quicker tool changes or device swaps, lower cycle times or more part types. There are examples of logic once written it never changes but that is not the whole of the world just one part of it.

Synchronous generator operating frequency

When synchronous generators (alternators) are connected in parallel with each other on an AC grid, they are all operating at a speed that is directly proportional to the frequency of the AC grid. No generator can go faster or slower than the speed which is proportional to the frequency.

That is, when a synchronous generator and its prime mover is operated in parallel with other synchronous generators and their prime movers, the speed of all of the generator rotors (and hence their prime movers if directly coupled to the generator rotors) is fixed by the frequency of the grid. If the grid frequency goes up, the speed of all the generator rotors goes up at the same time. Conversely, if the grid frequency goes down, the speed of all the generator rotors goes down at the same time. It is the job of the grid/system operators to control the amount of generation so that it exactly matches the load on the system so that the frequency remains relatively constant.

Isolated or is landed generators that are not in parallel with other generators have an added limitation in that keeping exactly 50Hz is somewhat difficult, or puts too much demand on controlling/governing systems. In such environments it is normal to accept some small deviation from the nominal frequency.

The vast majority of power for industry is supplied by large rotating AC generators turning in synch with the frequency of the grid. The frequency of all these generators will be identical and is tied directly to the RPM of the generators themselves. If there is sufficient power in the generators then the frequency can be maintained at the desired rate (i.e. 50Hz or 60Hz depending on the locale).

An increase in the power load is accompanied by a concurrent increase in the power supplied to the generators, generally by the governors automatically opening a steam or gas inlet valve to supply more power to the turbine. However, if there is not sufficient power, even for a brief period of time, then generator RPM and the frequency drops.

By operating transformers at higher frequencies, they can be physically more compact because a given core is able to transfer more power without reaching saturation and fewer turns are needed to achieve the same impedance. However, properties such as core loss and conductor skin effect also increase with frequency. Aircraft and military equipment employ 400 Hz power supplies which reduce core and winding weight. Operation of a transformer at its designed voltage but at a higher frequency than intended will lead to reduced magnetizing current. At a lower frequency, the magnetizing current will increase. Operation of a transformer at other than its design frequency may require assessment of voltages, losses, and cooling to establish if safe operation is practical. For example, transformers may need to be equipped with ‘volts per hertz’ over-excitation relays to protect the transformer from overvoltage at higher than rated frequency.

Stiff voltage sources

Stiff voltage sources are not problematic as long as they don’t get in the way of the solver’s attempts to linearize the behavior of the circuit matrix via step size reduction. It is the highly nonlinear stiff sources that are heavily fed back into the rest of the circuitry that can cause the solver to hang. Linear sources that are ground referenced or nonlinear ones that don’t feed back anywhere are not likely to cause problems.

In the initial versions of SPICE there were a few elements that could not be simulated directly with nodal analysis in the circuit’s admittance matrix, ideal inductors and voltage sources being the most common among them. However, starting with some version of SPICE 2 this deficiency was removed when modified nodal analysis (MNA) was added to the simulation engine (requiring an additional computational enhancement sometimes called the auxiliary matrix, I believe).

Modified nodal analysis is an extension of nodal analysis which not only determines the circuit’s node voltages (as in classical nodal analysis), but also some branch currents. This permits the simulation engine to crunch ideal inductors and voltages sources (true Thevenin circuit elements) but at a cost of incrementally increasing the matrix size and difficultly about twice as much as for when “easy” Norton type elements (e.g., resistors, capacitors and current sources) are added.

In other words, adding one ideal inductor slows down the simulation about as much as adding two ideal capacitors. However, there is a small additional silver lining to this, as it also comes with the possible advantage of “free” (whether you use it or not) automatic sensing of instantaneous inductor current.

LTspice (my simulator of choice) treats inductors in a special way in that they are normally given a default series resistance of 1 m-ohm unless a value of zero is explicitly entered for that parameter. Having a non-zero series resistance allows LTspice to “Nortonize” the inductor such that it can be processed as a normal branch within the circuit matrix, thereby allowing the simulation to run marginally faster. This also makes the inductor “look” like any other of the “easy” elements so that it is not a numerical problem to parallel it with a stiff voltage source. If a series resistance parameter is entered for a voltage source, it also becomes Nortonized by LTspice.

Nortonizing an inductor or voltage source comes at the cost of giving up free sensing of the instantaneous branch current, which is not a cost at all if this current is not being used elsewhere. However, as soon as you call out the inductor current in *any way* in any b-source behavioral expression, LTspice changes the default series resistance for that inductor back to zero ohms and reverts back to the standard MNA way of processing it within the circuit matrix so that it can get access to the inductor’s instantaneous current.

Only true Thevenin type elements have the possibility of being used as the instantaneous current sense for a current controlled switch (or other similar current controlled devices). The SPICE standard is to only allow voltage sources for this purpose, but apparently LTspice accepts zero ohm inductors as well.

One last note, LTspice is indeed able to measure the current in any element, including Norton type devices, but for these devices the current measured will necessarily be a time delayed version that may not be suitable for tight feedback loops (there is a warning about this in the LTspice Help file section on b-sources).

Variable Frequency Drive Basics (Working Principle)

Variable Frequency Drive (VFD) Basic Configuration
The basic configuration of a variable frequency drive is as follows.
VFD Basic Configuration
Fig. 1 Basic configuration of variable frequency drive

Each part of a variable frequency drive has the following function.

Converter: Circuit to change the commercial AC power supply to the DC
Smoothing circuit: Circuit to smooth the pulsation included in the DC
Inverter: Circuit to change the DC to the AC with variable frequency
Control circuit: Circuit to mainly control the inverter part

Principle of Converter Operation
The converter part consists of the following parts as following figure shows:

  • Converter
  • Inrush current control circuit
  • Smoothing circuit

Converter part
Fig. 2 Converter part

Method to create DC from AC (commercial) power supply
A converter is a device to create the DC from the AC power supply. See the basic principle with the single-phase AC as the simplest example. Fig. 3 shows the example of the method to convert the AC to the DC by utilizing a resistor for the load in place of a smoothing capacitor.
Rectifying circuit
Fig. 3 Rectifying circuit

Diodes are used for the elements. These diodes let the current flow or not flow depending on the direction to which the voltage is applied as Fig. 4 shows.
Diode
Fig. 4 Diode

This diode nature allows the following: When the AC voltage is applied between A and B of the circuit shown in Fig. 3, the voltage is always applied to the load in the same direction shown in Table 1.

Table 1 Voltage applied to the load
Voltage applied to the load

That is to say, the AC is converted to the DC. (To convert the AC to the DC is generally called rectification.)
Continuous waveforms
Fig. 5 (Continuous waveforms of the ones in Table 1)

For the three-phase AC input, combining six diodes to rectify all the waves of the AC power supply allows the output voltage as shown in Fig. 6.
Converter part waveform
Fig. 6 Converter part waveform

Input current waveform when capacitor is used as load
The principle of rectification is explained with a resistor. However, a smoothing capacity or is actually used for the load. If a smoothing capacitor is used, the input current waveforms become not sine waveforms but distorted waveforms shown in Fig. 7 since the AC voltage flows only when it surpasses the DC voltage.
Principle of converter
Fig. 7 Principle of converter

Inrush current control circuit
The basic principle of rectification is explained with a resistor. However, a smoothing capacitor is actually used for the load. A capacitor has a nature to store electricity. At the moment when the voltage is applie