Showing posts with label why. Show all posts
Showing posts with label why. Show all posts
Tuesday, 21 February 2017
Gibson Deluxe Tuners and why they suck

Please note that this post is part one of four posts. I highly recommend reading all four posts in order before acting on any of the information.
The other parts are located here:
Part 2: http://diystrat.blogspot.com/2009/01/gibson-deluxe-tuners-part-two.html
Part 3: http://diystrat.blogspot.com/2009/02/gibson-deluxe-tuners-fix.html
Part 4: http://diystrat.blogspot.com/2010/01/gibson-deluxe-tuners-revisit.html
I have a problem with one of the tuners on my Les Paul. It had the problem already when I bought the guitar a few years ago and I managed to do a temporary fix, but the problem has resurfaced.
Before I go on about it, let’s have a look at a typical stamped (open-backed) guitar tuner.

There are several components and many names for those components, so my apologies if I use ones that you are not accustomed to. Firstly, the tuner can also be called the tuning head, tuning peg, or the machine head (and possibly other names). It has a main plate, through which the main cylinder (or capstan), passes. The capstan is the shaft that the string itself passes through. On the end of the capstan is a gear, sometimes called the pinion gear, and a screw/bolt holds that on to the end of the capstan. Then we have another shaft or pin with the tuner knob (or button) on the end of it. This pin has a gear on it too (in fact they are one part in most cases), and this particular gear is known as a worm gear. From now on I will just refer to this shaft as the worm gear.
As an aside, and for any non-engineer-minded people out there, the reason a worm gear is used is because turning the button/knob will rotate the worm gear, which will in turn rotate the pinion gear and the capstan, thus tightening or loosening the string, whereas no matter how much you tighten the string, the pinion gear cannot force the worm gear to turn. This is a really good way to keep strings in tune without making it really hard to turn the knob.
OK, back to the description of the tuner. There is one further feature that I have not yet mentioned and that is the retaining “claws” which are part of the main plate and hold the worm gear in place. The claws stop the worm gear from moving away from the pinion gear or falling away from the main plate. The plate stops the worm gear from falling against the guitar and the pinion gear stops it from falling out in the direction of the capstan. So hopefully you can see that the worm gear cannot possibly fall out unless the pinion gear is removed.
Now to the Gibson Deluxe Tuners (and why they suck).

As you can see, the tuner has the same components as any standard open-backed tuner, but please note one subtle difference – the claws stop the worm gear from moving away from, or towards the pinion gear (i.e. from side to side), but not from falling away from the main plate! Seriously, it can just fall right off.
“But wait!”, I hear you Gibson Deluxe Tuner fans shouting, “The Gibson Deluxe Tuners have a back cover which stops the worm gear from falling away from the main plate!”
Well, you are correct, but this leads me to the problem with my tuner... the back cover has fallen off. And this brings me to my second criticism of Gibson Deluxe Tuner design. You would think that, if the back cover was the only thing holding the worm gear in place, it would be held on in a way that would be very hard to move.
Let’s have a look at their design.

The back cover is held on with two little tabs (one of mine is slightly damaged, but this happened while I was trying to find a solution to keeping it in place. It originally fell off with the tabs intact). Now as an engineer, I would think that a tab should at least fold over to keep something in place, but these ones just go into slots and do not appear to be twisted, folded, or in any other way modified once they go through the slots. In other words they are held in by “interference fit” only, so that they can come out just as easily as they went in [edit: actually, this isn't 100% correct - please see the comments at the end of this post]. Now let’s think about what’s on the end of the worm gear. That’s right, a big knob/button that sticks out and is basically on the end of a lever. What do we often use levers for? Well, for prising things out of place for one. The longer the lever, the easier it is. So one accidental knock on the tuning knob and you can dislodge the back cover, letting the worm gear fall out of place.
In the course of trying to find a single replacement Gibson Deluxe Tuner (which, not surprisingly, cannot be bought separately), I have noticed many other people scrambling to buy single replacements off ebay or asking if anyone has a spare one on musicians’ forums. A full set is not cheap either; around £60 would not be unusual. I wouldn’t even mind paying that if I though it was a good strong design, but I think you can guess by my rantings how much I think of these things. Unfortunately replacing them with anything other than originals devalues the guitar, so there isn’t much choice.
Additionally, on the front face of the guitar head you need to use a bushing (also called a ferrule) which stops the capstan from rubbing on the wood of the guitar when it is being rotated, and whereas these are normally press-in bushings on tuners of similar design to Gibson Deluxe Tuners, on the actual Gibson ones, they are screw-in bushings. Now I have no complaints about this, design-wise, I’m just saying that there are very few replacements available other than the Gibson Deluxe Tuners.
Gibson Deluxe Tuner bushing (and washer)

Standard bushing

So stay tuned (no pun intended) for the next blog post, where I will try to fix mine.
Thursday, 9 February 2017
Why You Should Use Normally Closed For Stop Buttons
You may know the difference between normally open and normally closed contacts, but do you know where to use them? This article will teach you where to use normally open and where to use normally closed for inputs and in your PLC program. You will learn how to connect your PLC program with the physical PLC inputs.
I have been asked by many of you to explain the use of normally open and normally closed logic when working with PLC programming.
Recently, I wrote an article containing a collection of ladder logic examples, but one of the examples made some confusion. In the start/stop circuit made with ladder logic I used a normally closed contact in the ladder logic.
But, I realized that I’ve made a mistake.
Some of you noticed that in order to make this example follow good practice, I should use a normally open contact in the ladder logic, and a normally closed contact as input actuator. By doing so, the input will be not produce dangerous situations under failure.
To explain this further I will divide the PLC logic into two parts. At last I will show how you should merge the two:
All digital inputs, and therefore all the digital input actuators have two states:
But the digital actuators can not only have two states. They can also have one of two functions:
The difference between connecting normally open actuators and normally closed actuators to a digital input is when you activate the actuators.
Take these two rules and remember them. This is the difference between normally open and normally closed:
When you activate a normally open actuator the input bit will switch to 1.
When you activate a normally closed actuator, the input bit is 0.
This can also be illustrated in a table:
Normally closed actuators has the opposite effect on the state of the inputs they’re connected to compared to normally open actuators.
Keep in mind that the state of the actuator affects the state of the input and thereby the input bit. Each time the PLC scan cycle reaches the step where it updates the input bit, these are the values that the input bits will be updated to.
This is often where some confusion occurs. Because this other type of logic looks very similar to the hardware logic. In fact, the PLC programming language ladder logic is made to look like electrical circuits.
Just like the input actuators you have both normally open and normally closed contacts available in PLC programming. Often they are referred to as examine if closed (XIC) and examine if open (XIO).
The ladder logic symbols look almost like the electrical symbols for normally open and normally closed contacts, and the function of these are the same. I can even plot the same table, but this time for the PLC logic:
As you might notice, the columns have moved and changed. The result of the boolean instructions (XIC and XIO) is now dependent on the values of the input bits. Just like the state of the input bit is dependent on the state of the actuators.
At last a column containing all the results of the boolean instructions. The result is what comes after the instruction in your ladder diagram. If you have a coil connected after the bit logic instruction, the result column will be equal to the state of that coil.
For example you can give an instruction the address of one of the PLC inputs. When doing so, the state of the instruction will now represent the state of the input. Because each PLC input has its own bit in the PLC memory. The state of each of these bits represents the state of the corresponding input.

Let’s move back to the start/stop example, which is really just a latch of a coil with an instruction to break the latching.
Here’s an illustration of how the whole system would look like, including both hardware and software:

Notice that I use a normally open contact as input actuator, even for the stop button. This is because I’ve already used normally closed logic in the software.
When the input actuator is activated, the input bit will turn ON or 1. But in my ladder logic I’ve used an examine if open instruction and given it the address of that input.
As you can see in the table above, the result of an examine if open instruction will be 0 if the input is 1.
This is good because in the ladder logic, the instruction has to break the connection and thereby the latching of the output.
But, since the state of the input has to be 1 to break the connection (result 0), the input actuator has to turn the input ON or 1 when activated.
In the table with input actuators above, you can see that a normally open contact will change the state of the input to 1 when activated. In that way, you can use the two tables to choose between normally open and normally closed logic.
But this is not good practice.
Let me explain that a little further.
How could a circuit like the one in the example with just 2 inputs fail?
What if one of the wires broke:

Now, the stop button (the normally open contact) will have no function when the system is failing (wire-break). The wire break is one fail, but that produces another fail: The stop button isn’t working. And since the stop button is a critical function, this is why this solution is not good practice.
How could this solution be good practice?
By using a normally closed contact as stop actuator. This is because the normally closed contact as an input actuator won’t create dangerous situations under failure. Meaning that when a fail occurs (the wire-break), the input will act as the normally closed contact has been activated. So, if the wire to the stop button breaks, the same will happen as if someone activated the stop button. The latch will break.

When the input actuator is changed from normally open to normally closed, the state of the input is also changed. Before the input was always 1 or ON, when the actuator wasn’t activated. But now, the input is 0 or OFF when the actuator isn’t activated.
This means, that for the stop button to work as in the previous example, the boolean instruction should now be examine if closed instead of examine if open. If you, once again, look at the table you will see that.
Since, the input is always 1, an instruction with the result of 1 (when the input is 1) will do the job. The result of the examine if closed instruction is 1.

Now, the stop button works together – hardware and software. You can see below, what happens when the stop button is activated:

At last you might wonder why I didn’t do the same thing with the start button. That input is also a normally open contact, but with examine if closed (normally open logic) in the software.
Just like that stop button, the start button will not work if the wire breaks.
Remember that wire-breaks and other failures shouldn’t produce dangerous situations. Well, even though the start button will not work under a wire-break, the start button is not a critical function.
Why is the start function not a critical function?
Because it is not dangerous if the machine, motor or another movable part cannot start.
Wire-break often occurs because wires are the weakest point in a typical PLC system. Wires often go along movable parts, and are therefore exposed to a risk of being cut or ripped apart.
Another very common fail, that behaves in almost the same way as a wire-break, is loose connections. All your inputs are connected with wires. The weak points here are the connections. From the input screw-terminal on the PLC to the terminals on the input actuators are all in risk of being loose and creating a bad connection. Sometimes even no connection, which is just like a wire-break.
Do you know about other common fails, that can cause risk in a PLC program?
I have been asked by many of you to explain the use of normally open and normally closed logic when working with PLC programming.
Recently, I wrote an article containing a collection of ladder logic examples, but one of the examples made some confusion. In the start/stop circuit made with ladder logic I used a normally closed contact in the ladder logic.
But, I realized that I’ve made a mistake.
Some of you noticed that in order to make this example follow good practice, I should use a normally open contact in the ladder logic, and a normally closed contact as input actuator. By doing so, the input will be not produce dangerous situations under failure.
To explain this further I will divide the PLC logic into two parts. At last I will show how you should merge the two:
- Hardware Logic
Input actuators and wiring (what is actually connected to the input). - Software Logic
The logic of your PLC program (the logic you program into the PLC).
Hardware Logic
Let’s begin with some digital inputs and some actuators to connect to these.All digital inputs, and therefore all the digital input actuators have two states:
- OFF (0)
- ON (1)
But the digital actuators can not only have two states. They can also have one of two functions:
- Normally open
- Normally closed
The difference between connecting normally open actuators and normally closed actuators to a digital input is when you activate the actuators.
Take these two rules and remember them. This is the difference between normally open and normally closed:
1. Normally Open Input Actuators
In the default state (inactivated) of a normally open actuator the input bit is 0.When you activate a normally open actuator the input bit will switch to 1.
2. Normally Closed Input Actuators
In the default state (inactivated) of a normally closed actuator the input bit is 1.When you activate a normally closed actuator, the input bit is 0.
This can also be illustrated in a table:
| State of the actuator | Input bit | |
| Normally Open | Inactivated (0) | 0 |
| Activated (1) | 1 | |
| Normally Closed | Inactivated (0) | 1 |
| Activated (1) | 0 |
Normally closed actuators has the opposite effect on the state of the inputs they’re connected to compared to normally open actuators.
Keep in mind that the state of the actuator affects the state of the input and thereby the input bit. Each time the PLC scan cycle reaches the step where it updates the input bit, these are the values that the input bits will be updated to.
Software Logic
When you are developing a PLC program you will also be using logic. But instead of hardware logic with actuators you will now have ladder logic contacts or boolean instructions.This is often where some confusion occurs. Because this other type of logic looks very similar to the hardware logic. In fact, the PLC programming language ladder logic is made to look like electrical circuits.
Just like the input actuators you have both normally open and normally closed contacts available in PLC programming. Often they are referred to as examine if closed (XIC) and examine if open (XIO).
The ladder logic symbols look almost like the electrical symbols for normally open and normally closed contacts, and the function of these are the same. I can even plot the same table, but this time for the PLC logic:
| Input bit | Result | |
| Examine If Closed | 0 | OFF (0) |
| 1 | ON (1) | |
| Examine If Open | 0 | OFF (1) |
| 1 | ON (0) |
As you might notice, the columns have moved and changed. The result of the boolean instructions (XIC and XIO) is now dependent on the values of the input bits. Just like the state of the input bit is dependent on the state of the actuators.
State of actuator –> Input bit –> Result of boolean instruction
At last a column containing all the results of the boolean instructions. The result is what comes after the instruction in your ladder diagram. If you have a coil connected after the bit logic instruction, the result column will be equal to the state of that coil.
Merging Software Logic and Hardware
When you create a new boolean instruction in your PLC program you will give it a certain address. This is the address of a single bit (boolean is 0 or 1 and so is a single bit). Once you’ve given the instruction an address, the state of that particular bit will now be represented as the state of that instruction.For example you can give an instruction the address of one of the PLC inputs. When doing so, the state of the instruction will now represent the state of the input. Because each PLC input has its own bit in the PLC memory. The state of each of these bits represents the state of the corresponding input.
The state of each PLC input is represented by the value of a bit in PLC memory.
Let’s move back to the start/stop example, which is really just a latch of a coil with an instruction to break the latching.
Here’s an illustration of how the whole system would look like, including both hardware and software:
Normally open as input actuator for stop signal.
Notice that I use a normally open contact as input actuator, even for the stop button. This is because I’ve already used normally closed logic in the software.
When the input actuator is activated, the input bit will turn ON or 1. But in my ladder logic I’ve used an examine if open instruction and given it the address of that input.
As you can see in the table above, the result of an examine if open instruction will be 0 if the input is 1.
This is good because in the ladder logic, the instruction has to break the connection and thereby the latching of the output.
But, since the state of the input has to be 1 to break the connection (result 0), the input actuator has to turn the input ON or 1 when activated.
In the table with input actuators above, you can see that a normally open contact will change the state of the input to 1 when activated. In that way, you can use the two tables to choose between normally open and normally closed logic.
But this is not good practice.
What Is The Difference Between Normally Closed And Normally Open Inputs?
Using normally open contacts as PLC inputs is good. But for stop functions it can be bad. This is because normally open contacts can create dangerous situations when they fail…Let me explain that a little further.
How could a circuit like the one in the example with just 2 inputs fail?
What if one of the wires broke:
Wire-break after normally open input actuator.
Now, the stop button (the normally open contact) will have no function when the system is failing (wire-break). The wire break is one fail, but that produces another fail: The stop button isn’t working. And since the stop button is a critical function, this is why this solution is not good practice.
How could this solution be good practice?
By using a normally closed contact as stop actuator. This is because the normally closed contact as an input actuator won’t create dangerous situations under failure. Meaning that when a fail occurs (the wire-break), the input will act as the normally closed contact has been activated. So, if the wire to the stop button breaks, the same will happen as if someone activated the stop button. The latch will break.
Normally closed input actuator as stop button.
When the input actuator is changed from normally open to normally closed, the state of the input is also changed. Before the input was always 1 or ON, when the actuator wasn’t activated. But now, the input is 0 or OFF when the actuator isn’t activated.
This means, that for the stop button to work as in the previous example, the boolean instruction should now be examine if closed instead of examine if open. If you, once again, look at the table you will see that.
Since, the input is always 1, an instruction with the result of 1 (when the input is 1) will do the job. The result of the examine if closed instruction is 1.
Normally closed for PLC stop function is good practice.
Now, the stop button works together – hardware and software. You can see below, what happens when the stop button is activated:
Stop actuator activated. Input is 0 and so is the examine if closed.
At last you might wonder why I didn’t do the same thing with the start button. That input is also a normally open contact, but with examine if closed (normally open logic) in the software.
Just like that stop button, the start button will not work if the wire breaks.
Remember that wire-breaks and other failures shouldn’t produce dangerous situations. Well, even though the start button will not work under a wire-break, the start button is not a critical function.
Why is the start function not a critical function?
Because it is not dangerous if the machine, motor or another movable part cannot start.
Conclusion
To develop you PLC program with what’s known as good practice, you should always keep in mind what will happen when the system is failing. Your system can fail in many different ways, but often the critical one is wire-break.Wire-break often occurs because wires are the weakest point in a typical PLC system. Wires often go along movable parts, and are therefore exposed to a risk of being cut or ripped apart.
Another very common fail, that behaves in almost the same way as a wire-break, is loose connections. All your inputs are connected with wires. The weak points here are the connections. From the input screw-terminal on the PLC to the terminals on the input actuators are all in risk of being loose and creating a bad connection. Sometimes even no connection, which is just like a wire-break.
Do you know about other common fails, that can cause risk in a PLC program?
Subscribe to:
Posts (Atom)