Category: Iacdrive_blog

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.

Single Phase Input DC Drive

Armature voltage-controlled DC drives are constant torque drives, capable of rated motor torque at any speed up to rated motor base speed. Fully controlled rectifier circuits are built with SCRs. The SCRs rectify the supply voltage (changing the voltage from AC to DC) as well as controlling the output DC voltage level. In this circuit, silicon controlled rectifiers S1 & S3 are triggered into conduction on the positive half of the input waveform & S2 & S4 on the negative half. Freewheeling diode D (also called a suppressor diode) is connected across the armature to provide a path for release of energy stored in the armature when the applied voltage drops to zero. A separate diode bridge rectifier is used to convert the alternating current to a constant direct current required for the field circuit.

Single-phase controlled bridge rectifiers are commonly used in the smaller-horsepower DC drives. The terminal diagram shows the input & output power & control terminations available for use with the drive. Features include:

  • Speed or torque control
  • Tachometer input
  • Fused input
  • Speed or current monitoring (0-10 V DC or 4-20 mA)

“critical” operation with a double-action cylinder, hydraulic or pneumatic

If I had a “critical” operation with a double-action cylinder, hydraulic or pneumatic, I’d put proximity sensors on both ends of travel, typically with small metal “marker” on the shaft. Each input “in series” with the “output” to each coil, time delayed to give the cylinder a chance to reach its destination. The “timer” feeds the “alarm.” If you want to spend the money for a pressure switch (or transducer) on each solenoid output, that’s a plus.

Now you can tell if there was an output to the solenoid from internal programming, if not another interlock prevented it from actuating. If there is an output to the solenoid and no pressure, then the signal did not reach the coil (loose wire somewhere), if it did the coil may be bad, if the coil is good and no pressure, the solenoid may be stuck or no pressure to it from another supervised failure or interlock. If there was sufficient pressure and the cylinder travel not reached, then the cylinder is stuck.

As a technician crawling over all kinds of other people’s equipment since 1975, I could figure out a lot of this from an old relay logic or TTL control system. A VOM confirms whether there is an output to the correct solenoid at the control panel terminals. This lets you now which direction to head next. If there is no power, it’s “upstream” of there, another interlock input that needs to be confirmed, time to dig into the “program.”

If there is power and the cylinder does not move it’s a problem outside of those terminals and the control system. I’d remove the wiring and check for coil resistance, confirming the coil and field wiring integrity while still at the panel. If everything checks out then go to the cylinder and see if a pressure gauge shows pressure on the line with the coil energized – presuming there is pressure to the valve. No pressure would be another “input alarm” from another pressure switch. If there is pressure and power to the valve and no pressure, the valve is bad. If there is pressure on the output side and the cylinder does not move – the cylinder is stuck or mechanically overloaded.

I&E “technicians” may know a lot about programming and code, but if they don’t know how a piece of equipment operates I/O wise then they don’t have a clue where to start looking. Then I guess you need all the sensors and step by step programmed sequences to “spell it out” for them on a screen. A device sequence “flow chart” may help run I/Os out for something like above. I/O status lights on the terminals like PLCs can easily confirm at a glance if you have the proper inputs for a sequence to complete, then you should have the proper outputs. Most output failures are a result of correct missing inputs. The more sensors you’re willing to install, the more the sequence can be monitored and spelled out on an HMI.

From a factory tech support in another location, being able to access the equipment remotely is a huge plus, whether directly through modem, or similar, or indirectly through the local technician’s computer to yours i.e. REMOTE ASSISTANCE. A tablet PC is a huge plus with IOMs, schematics and all kinds of info you can hold in one hand while trouble-shooting.

DC Drives Basic Operation Principles

DC drives vary the speed of DC motors with greater efficiency & speed regulation than resistor control circuits. Since the speed of a DC motor is directly proportional to armature voltage & inversely proportional to field current, either armature voltage or field current can be used to control speed. To change the direction of rotation of a DC motor, either the armature polarity can be reversed, or the field polarity can be reversed.

DC drive diagram

The block diagram of a DC drive system made up of a DC motor & an electronic drive controller. The shunt motor is constructed with armature & field windings. A common classification of DC motors is by the type of field excitation winding. Shunt wound DC motors are the most commonly used type for adjustable-speed control. In most instances the shunt field winding is excited, as shown, with a constant-level voltage from the controller. The SCR (silicon controller rectifier), also known as thyristor, of the power conversion section converts the fixed-voltage alternating current (AC) of the power source to an adjustable-voltage, controlled direct current (DC) output which is applied to the armature of a DC motor. Speed control is achieved by regulating the armature voltage to the motor. Motor speed is directly proportional to the voltage applied to the armature.

The main function of a DC drive is to convert the fixed applied AC voltage into a variable rectified DC voltage.

SCR switching semiconductors provide a convenient method of accomplishing this. They provide a controllable power output by phase angle control. The firing angle, or point in time where the SCR is triggered into conduction, is synchronized with the phase rotation of the AC power source. The amount of rectified DC voltage is controlled by timing the input pulse current to the gate. Applying gate current near the beginning of the sine-wave cycle results in a higher aver age voltage applied to the motor armature. Gate current applied later in the cycle results in a lower average DC output voltage. The effect is similar to a very high speed switch, capable of being turned on & off at an infinite number of points within each half-cycle. This occurs at a rate of 60 times a second on a 60-Hz line, to deliver a precise amount of power to the motor.

Design and Implementation

The owner of the system should provide clear requirements of what the system should do and should define what constitutes “maintainability” of the system. This places a burden on the owner of the system to consider the full life-cycle of the system.

1. You need good design documentation.

2. All source code should be well-documented.

3. Coders should be trained on the techniques used and mentored,

4. The use of “templates” helps ensure that coders and maintenance alike are familiar with routine functions.

5. The HMI should provide clear indication of faults and interlocks.

6. The HMI should provide clear indication of equipment statuses.

7. Any code that is hidden must “work as advertised”. This means that it must be completely and unambiguously documented for all inputs, outputs, statuses, and configurations. It must be thoroughly tested and warranted by the vendor,

8. All code should be well-tested. (I have found that the first line of defense is to simply read the code!)

Post-Startup
1. The owner should have a change-control procedure to manage modifications.

2. All users and maintenance support personnel should have adequate training. Training needs to be periodically refreshed as it can become stale through lack of use.

How is frequency inverter saving energy?

This studies show that up to 80 percent of the energy from the power source to the industrial consumer can be lost. Energy conversion—converting energy into useful work via motors, heat exchangers, process heaters, pumps, motors, fans, compressors, and so forth—represents a large opportunity for energy savings in manufacturing. Industrial electric motor-driven systems represent the largest single category of electricity use in China.

The industrial sector consumes approximately one-third of the energy used in China (see Fig. 1).

Studies show that up to 80 percent of the energy from the power source to the industrial consumer is lost through the transition of raw material to the point of useful output—much of that at the point of conversion from electrical to mechanical output (see Fig. 2).

Rising energy costs, a sense of environmental responsibility, government regulation, and a need for energy reliability are driving efforts for energy efficiency in manufacturing.

Energy is lost primarily in three areas:

  • Generation
  • Distribution
  • Conversion

The third area, energy conversion—converting energy into useful work via motors, heat exchangers, process heaters, pumps, motors, fans, compressors, and so forth—represents a large opportunity for energy savings in manufacturing.

Industrial electric motor-driven systems represent the largest single category of electricity use in the China—more than 65 percent of power demand in industry. Consequently, motor-driven systems offer the highest energy savings potential in the industrial segment.

Supporting this statistic, studies show that 97 to 99 percent of motor life cycle costs are expended on the energy that the motor uses. This fact alone should be a driving motivation for companies to perform a periodic energy consumption analysis on the motor systems they use in their facilities.

Inefficient and ineffective control methods in two areas waste motor systems’ energy:

  • Mechanical flow control (pumps, fans, compressors)
  • Energy recovery (regeneration of braking energy or inertial energy)

An inverter is an effective tool in conserving and recovering energy in motor systems.

What Is a frequency inverter? Why Use It?

A frequency inverter controls AC motor speed (see Fig. 3). The frequency inverter converts the fixed supply frequency (60 Hz) to a variable-frequency, variable-voltage output to enable precise motor speed control. Many frequency inverters even have the potential to return energy to the power grid through their regenerative capability.

A frequency inverter’s precise process and power factor control and energy optimization result in several advantages:

  • Lower energy consumption saves money
  • Decreased mechanical stress reduces maintenance costs and downtime
  • Reduced mechanical wear and precise control produces more accurate products.
  • Lower consumption lowers carbon emissions and helps reduce negative impact on the environment.
  • Lower consumption qualifies for tax incentives, utility rebates, and, with some companies, energy savings finance programs, which short

Why we need Engineers?

Even the humble motor car runs diagnostics that the garage read to see the problems with your car. This doesn’t involve technicians looking at the code that controls the car but is 100% driven by the faults flagged by the car’s management system programs. These could even be displayed to the users, the drivers like me and you but the manufacturers don’t want amateurs hacking around their management systems and you know that is exactly what we would do.

Do we ask for this functionality from our car manufacturer? Do we complain about it and ask for them not to fit it? Would we like to go back to the “golden age” of motoring where we spent as much time under the hood as we did on the road?

You do?…. Yeah right and neither do I nor do I want a plant where I need a guy with a laptop to diagnose a blown fuse, sticking valve, overload trip, etc .

We need to change as Engineers by selling systems to customers that fulfill their needs, that are safe and reliable, that follow industry and international best practices and are user friendly. The notion of having to wait for a blank cheque from the customer to fulfill these goals is really a cop out, you either do what is right or just walk away because at the end of all this it is you who are under scrutiny when things go wrong not the customer who will plead ignorance.

Variable Frequency Drive Load Types

The potential for variable frequency drive (VFD) energy saving from slowing down the load depend on the characteristics of the load being driven. There are three main types of load: variable torque, constant torque and constant power.

Variable torque load
Variable torque loads are typical of centrifugal fans and pumps and have the largest energy saving potential controlled by variable frequency drives. They are governed by the Affinity Laws which describe the relationship between the speed and other variables.
Variable torque load

The change in flow varies in proportion to the change in speed:

Q1/Q2 = (N1/N2)

The change in head (pressure) varies in proportion to the change in speed squared:

H1/H2 = (N1/N2)2

The change in power varies in proportion to the change in speed cubed:

P1/P2 = (N1/N2)3

Where Q = volumetric flow, H = head (pressure), P = power, N = speed (rpm)

The power – speed relationship is also referred to as the ‘Cube Law’. When controlling the flow by reducing the speed of the fan or pump a relatively small speed change will result in a large reduction in power absorbed.

Constant torque load
Typical constant torque applications controlled by variable frequency drives include conveyors, agitators, crushers, surface winders and positive displacement pumps and air compressors.
Constant torque load

On constant torque loads the torque does not vary with speed and the power absorbed is directly proportional to the speed, this means that the power consumed will be in direct proportion to the useful work done, for example, a 50% speed reduction will result in 50% less power being consumed.

Although the variable frequency drive energy savings from speed reduction are not as large as that with variable torque loads, they are still worth investigating as halving the speed can halve the energy consumed.

Constant power load
On constant power loads the power absorbed is constant whilst the torque is inversely proportional to the speed. There are rarely any energy savings opportunities from a reduction in speed. Examples of constant power applications include center winders and machine tools.
Constant power load

Why designing an ethernet network IP scheme?

Depends on the size of the network (# of devices planned on connecting), for medium to large corporate networks go 10.x, for home and small business 192.168.x, or to 172.16.x. I would think the IP plan would be looking at least 10 – 20 years out. Changing IP schemes is hard, especially on a controls LAN, you wouldn’t want to undertake this task to frequently. Also consider any routing / firewalling / DMZing that you may want to do between the controls LAN and the business network (ideally these are separated networks).

Here’s some things to consider:

Number of devices or potential devices on the network
You may want to use a Class A subnet when you have or will have a large number of devices or a Class C when you have or will have a small number of devices.

Amount of traffic
A large subnet will more likely expose devices to more traffic. A smaller network may be employed to segment and/or control the amount of data that must be handled by a device.

Security
A large network (e.g., Class A) network may be more difficult to restrict access to or exposure of devices.

Simplicity
A Class A network is a flatter architecture and may be simpler to manage because you don’t have to worry about routing, gateways, and/or firewalls as much. This has to be balanced with security and traffic issues though.

Others
There are other considerations too…

In my experience, connecting with the “business” side of things is not technically difficult with an appropriate firewall/router. However, I have often found that the political challenges are more difficult. I have often butted heads with IT folks who have a fortress mentality and don’t understand the constraints, limitations, restrictions, and special considerations needed for industrial control systems. Many times, the best solution is to have a well defined line of demarcation where the IT folks take care of their side and the control guys take care of the control side. Most IT folks are OK with that as long as they can quarantine the control side to their satisfaction.

When it comes to selecting the firewall/router, you will need to take into consideration the protocols passing through it. If it’s the nominal business protocols like http, ftp, rdp, ssh, etc., then any business class device will typically work. However, if industrial protocols like CIP, Ethernet/IP, or OPC will be passing through, you will need to confirm that the firewall/router supports them specifically. When making the link, the important thing is the type of packet filtering and address translation rules that are configured in the firewall router. The IT folks might be more happy if they can setup a VLAN just for the controls.

The noise of variable frequency drive fed motors

The rotating electrical machines have basically three noise sources:

  • The ventilation system
  • The rolling bearings
  • Electromagnetic excitation

Bearings in perfect conditions produce practically despicable noise, in comparison with other sources of the noise emitted by the motor.

In motors fed by sinusoidal supply, especially those with reduced pole numbers (higher speeds), the main source of noise is the ventilation system. On the other hand, in motors of higher polarities and lower operation speeds often stands out the electromagnetic noise.

However, in variable frequency drive (VFD) systems, especially at low operating speeds when ventilation is reduced, the electromagnetically excited noise can be the main source of noise whatever the motor polarity, owing to the harmonic content of the voltage.
Higher switching frequencies tend to reduce the magnetically excited noise of the motor.

Criteria regarding the noise emitted by motors on variable frequency drive applications
Results of laboratory tests (4 point measurements accomplished in semi-anechoic acoustic chamber with the variable frequency drive out of the room) realized with several motors and variable frequency drives using different switching frequencies have shown that the three phase induction motors, when fed by VFDs and operating at base speed (typically 50 or 60 Hz), present and increment on the sound pressure level of 11 dB(A) at most.

Considerations about the noise of variable frequency drive fed motors

  • NEMA MG1 Part 30 – the sound level is dependent upon the construction of the motor, the number of poles, the pulse pattern and pulse frequency, and the fundamental frequency and resulting speed of the motor. The response frequencies of the driven equipment should also be considered. Sound levels produced thus will be higher than published values when operated above rated speed. At certain frequencies mechanical resonance or magnetic noise may cause a significant increase in sound levels, while a change in frequency and/or voltage may reduce the sound level. Experience has shown that (…) an increase of up to 5 to 15 dB(A) can occur at rated frequency in the case when motors are used with PWM controls. For other frequencies the noise levels may be higher.
  • IEC 60034-17 – due to harmonics the excitation mechanism for magnetic noise becomes more complex than for operation on a sinusoidal supply. (…) In particular, resonance may occur at some points in the speed range. (…) According to experience the increase at constant flux is likely to be in the range 1 to 15 dB(A).
  • IEC 60034-25 – the variable frequency drive and its function creates three variables which directly affect emitted noise: changes in rotational speed, which influence bearings and lubrication, ventilation and any other features that are affected by temperature changes; motor power supply frequency and harmonic content which have a large effect on the magnetic noise excited in the stator core and, to a lesser extent, on the bearing noise; and torsional oscillations due to the interaction of waves of different frequencies of the magnetic field in the motor air gap. (…) The increment of noise of motors supplied from PWM controlled variable frequency drives compared with the same motor supplied from a sinusoidal supply is relatively small (a few dB(A) only) when the switching frequency is above about 3 kHz. For lower switching frequencies, the noise increase may be tremendous (up to 15 dB(A) by experience). In some circumstances, it may be necessary to create “skip bands” in the operating speed range in order