Thursday, 9 December 2021

Mistakes Php Developers Must Avoid While Programming

 


PHP is the most preferred server-side scripting language now.. The open-source programming language is the most favoured choice when it comes to web development due to its ease of use, support for a wide range of frameworks, PHP development tools, in-built classes and functions, platform-independent nature, high security, scalability, and robustness. Because of these features of PHP, most business owners also choose to hire PHP programmers when it comes to web development.
 
However, even with features like the ease of using PHP and documentation, sometimes PHP developers tend to make some mistakes while programming. These mistakes sometimes adversely affect the website performance and functioning. Also, these mistakes can result in security loopholes in the websites. Hence, it is necessary for the developers to identify these mistakes at the right time and avoid or address them same.
 
Here are some of the most common mistakes that every PHP programmer needs to avoid.
 
Not using Database caching:

It is always recommended to use Database Caching in PHP web development. Caching helps to enhance the database performance. For database caching, you can use Varnish, Memcached, Query cache, and Redis. These are some of the best caching systems when you are using PHP for web development.
 
Not optimising the queries:

Not optimising the queries is a bad practice. Find the right SELECT and then use the MySQL EXPLAIN, Query profiler, or any other suitable tool to optimise the query before running and executing it.
 
Not using the error-reporting:

Most of the time, developers forget to turn on the error reporting or E_ALL() but turning it on is necessary as it displays the errors then and there and helps developers to identify the errors and fix the same instantly.
 
Forgetting to re-writing the URLs:

While coding with PHP, it is necessary to re-write the URLs as the security requirements. Also, while creating the URLs, it is essential to use modern practices. You should not write URLs with multiple variables as well.
 
Making use of the wrong comparison operators:

Comparison operators are vital parts of PHP programming. However, using the wrong operators like using ‘=’ in place of ‘==’ can simply change the entire logic behind implementing a function and can ultimately hamper the functioning of the website.
 
Not validating the cookie data:

If you don’t validate the cookie data prior to storing the data in the database then you are exposing your codes to potentially harmful data. For validating the data, make sure to use htmlspecialchars() or mysql_real_escape_string().
 
Misplaced semicolons:

You should not misplace the semicolon or use the semicolon in the wrong place. Be careful when you are using the semicolon always.
 
Developers need to identify and remember these points shared above and avoid these mistakes while programming to end up with flawless and high-performing PHP websites or web applications.

12 Biggest Mistakes To Avoid When Building A Smart Home Or A Home Cinema




Today, the home is more than just a place where you can comfortably live. With the advancement of technology, many homeowners now transform their house into a smart home London for a more convenient everyday life. Some also invest in amenities like home cinema so they can experience things that you would normally enjoy outside the comforts of one’s own space.

If you’re planning to build a smart home or a home cinema London, these are the top 12 mistakes you have to avoid.

Not having a definite budget. Apart from your preference and purpose, your budget largely dictates what type of smart home or home cinema technology you can afford.

Opting for cheap products. While budget is a huge factor, it doesn’t mean that you have to resort to cheap products. The key is making the most of your budget and researching the most reliable technology that fits ithin your budget.

Not taking into account devices’ longevity. In the years to come, more homeowners are expected to own a smart home London. It’s not just a fad that will fade away into the background after some time. This is why you have to be meticulous about the durability of the devices that you’re investing.

Buying too much equipment or devices. A smart home or a home cinema’s quality is not dependent on how many devices it covers. As a budget tip, it’s important to buy only what you need — things that will contribute tomeeting your purpose for this project.

Not double-checking compatibility. Tech incompatibility is costly and not to mention, headache-inducing. Your devices won’t work properly and you’d need to replace them with something that’s compatible with the equipment that you already have at home.

Having overlaps in automation. Don’t get too excited when turning your house into a smart home. Duplicate or multiple automation in one single device can cause it to exhibit unexpected behaviours.

Forgetting about security. Incorporating smart technology into your home doesn’t only mean convenience. Without proper security measures (e.g. Two-factor authentication), your personal data can be compromised.

Not measuring available space. Equipping your house with a home cinema London? One of the first things you need to consider is identifying where it will be located. From there, obtain proper dimensions so you can make sure that the room can accommodate the gadgets and fixtures that you’ll install.

Poor layout. To have a truly cinematic experience, you have to be strategic in the placement of your screen, speakers, and chairs.

Failing discuss with your family members before installing new tech. Keep in mind that not all people are tech-savvy. Before automating devices at home, make sure you inform your family members about the changes that will unfold.

Not examining what others are saying. When choosing a smart home tech or home cinema equipment, you have to look for what others are saying. Apart from online reviews, ask people within your circle about their recommendations and personal experience.

Not researching about your supplier. To maximise your investment, choose a supplier with a proven track record and prompt customer service.

Equip Your Home with the Best Smart Home Technology

Looking for reliable smart home technology to equip your home with? Equippd can make your home multifunctional while keeping it beautifully designed. They offer technology that is tailored to your lifestyle. If you’re a cinephile, they can also create a bespoke home cinema that can give you a truly immersive experience.

Use Of Differential Pressure Transmitter And Common Troubleshooting

 



Differential pressure transmitter is a kind of pressure measuring instrument widely used in all kinds of chemical industry.

Working principle of differential pressure transmitter is as follows.

The differential pressure from the two-sided pressure pipes acts directly on the two-sided isolation diaphragm of the differential pressure transmitter sensor, and is transmitted to the measuring element through the sealing fluid in the diaphragm.
The measuring element converts the measured differential pressure signal into the corresponding electrical signal and transmits it to the converter. After amplification and other processing, it becomes the standard electrical signal and then is output.

1. Measurement Objectives of Differential Pressure Transmitter

Differential pressure transmitter can not only measure the differential pressure value, but also measure the following three physical quantities through the analysis and calculation of the differential pressure value.

1.1 Pressure

You can just choose a section of pipe on the whole pipe to test its pressure, i.e. to detect the pressure of the pipe through differential pressure transmitter and secondary meter.

1.2 Flow

The differential pressure transmitter is installed through the pressure difference between the front and back of the flow orifice plate, which is matched with the square root secondary meter to measure the flow in the pipeline.

1.3 Resistance

If you want to measure the pressure difference between the inlet and outlet of the tower, you can install a pressure pipe at the inlet and outlet respectively, then connect the differential pressure transmitter, and finally match with the secondary meter to measure the tower resistance.

In general, with the development of social industrialization and the continuous improvement of petrochemical and steel automation level, the application scope of differential pressure transmitter is more and more extensive.

However, there is also increasing number of problems in production.

For example, different installation, use and maintenance personnel make it more difficult to solve problems quickly, which affects the normal production to a certain extent, sometimes even endangers the production safety.

Therefore, the field instrument maintenance personnel must have advanced techniques and skills for the instruments.

2. Scenes Suitable for Differential Pressure Transmitter

In order to prevent the medium in the pipeline from entering the transmitter directly, the pressure sensing diaphragm is connected with the transmitter by a capillary pipe filled with fluid.

The differential pressure transmitter is used to measure the liquid level, flow and pressure of liquid, gas or steam, and then convert the detected information into 4 ~ 20mA DC signal for output.

Differential pressure transmitter is suitable for the following measurement and control situations.

Viscous medium at high temperature.

Medium easy to crystallize.

Precipitation medium with solid particles or suspended substances.

When your medium is strong corrosive or highly toxic, using a differential transmitter can avoid pressure pipe leakage from polluting the surrounding environment. And it also helps to avoid the cumbersome work of often replenishing the isolation fluid due to the unstable measurement signal when using the isolation fluid.

When you continuously and accurately measure the interface and the density remote transmission device, you can avoid the mixing of different instantaneous media, so that the measurement results can truly reflect the actual situation of the process change.

In occasions that require high hygiene and cleanliness, such as food, beverage and pharmaceutical industry production, not only is it required that the part of the transmitter contacting the medium meets the hygienic standard, but also it is easy to wash to prevent cross contamination of different batches of medium.

3. Troubleshooting Methods of Differential Pressure Transmitter

In the process of measurement, the differential pressure transmitter often has some problems or failures. For such occasions, the timely judgment, analysis and treatment of the breakdown is very important for the ongoing production.

According to the experience of daily maintenance, we summarized some problem analysis methods and solutions.

3.1 Investigation Method

Recall the abnormal phenomena before the failure. For example, lighting, smoking, peculiar smell, power supply change, lightning, humidity, misoperation and maintenance, etc.

3.2 Visual Method

You need to observe the external damage of the circuit, the leakage of the impulse pipe, the overheating of the circuit and the state of the power supply switch, etc.

3.3 Detection Method

* Open Circuit Detection
First of all, you need to separate the suspected part from other parts to see if the problem disappears. If it disappears, you can find the fault. If it doesn't disappear, go to the next step.

For example, when a smart differential pressure transmitter can't carry out normal Hart remote communication, you can disconnect the power supply and use the method of additional power supply on site to power on the transmitter for communication, so that to check whether the cable interferes with the communication due to the superposition of electromagnetic signal of about 2KHz.

* Short Circuit Detection
In the case of ensuring safety, you need to directly short the relevant part of the circuit.

For example, if the output value of differential pressure transmitter is too small, you need to disconnect the pressure pipe, direct the differential pressure signal from the primary pressure valve to both sides of the differential pressure transmitter, and then observe the output of the transmitter to judge the connectivity of the blockage and leakage of the pressure pipe.

* Replacement Detection

Replace the suspected part to determine the fault location.

For example, when you suspect that the transmitter circuit board is faulty, you can temporarily replace it to find the cause.

* Partial Detection

The measurement circuit is divided into several parts, such as: power supply, signal output, signal transmission, signal detection.

You can check in parts, narrow the scope of the check to find out the fault location.

4. Typical Problems of Differential Pressure Transmitter

4.1 Pressure Pipe Blockage

We will take the blockage of positive impulse pipe as an example to analyze the fault phenomenon of impulse pipe blockage.

In instrument maintenance, due to untimely discharge of differential pressure transmitter's pressure pipe, or dirty and sticky medium, it is easy to cause blockage of positive and negative pressure pipes.

The performances of blockage are: transmitter output decreases, rises or remains unchanged.

* Pressure Pipe Blockage Analysis

When the flow rate increases, the influence on the output of the transmitter (square root of the output signal of the transmitter itself):

Assume that the original flow rate is F1, P1 = P1 + - P1 -, f'1 = K,
F'1 is the transmitter output value before the change.

Suppose that the increased flow rate is F2 (that is: F2 > F1), P2 = P2 + - P2 -, f'2 = K

F'2 is the output value of the transmitter after the flow is increased.

Because the positive pressure pipe is blocked, when the actual flow is F1 and F2 respectively, that is P1 + = P2 +;

When the flow rate increases, P2 - has the following changes: because the actual flow rate increases to F2.

Compared with the original flow rate of F1, the static pressure in the pipeline increases correspondingly.

Assume that the increase value is P0, and P2 - the static pressure caused by the increase of fluid velocity in the pipe decreases, and the decrease value is P0 '.

The relationship between P2 - and P1 - is: P2 - = P1 - + p0-p0 '.

Then: P2 = P2 + - P2 - = P1 + - (P1 - + p0-p0 ') = P1 + (P0' - P0)

Then: F '= k.

So: when p 0 = P 0 ',

Then: F'2 = k = k, f'2 = f'1 transmitter output remains unchanged.

When p 0 > P 0 ', f'2 = k = k, f'2 = K.

When p0f'1, the transmitter output becomes smaller.

When the flow rate decreases, the influence on the output of the transmitter (the transmitter itself conducts the square root of the output signal) is analyzed.
Assume that the original flow is F1, P1 = P1 + - P1 -, f'1 = k, and f'1 is the transmitter output value before the change.

Set the reduced flow rate as F2 (that is: F2 > F1), P2 = P2 + - P2 -, f'2 = k, and f'2 is the output value of the transmitter after the flow rate is reduced.

Because the positive pressure pipe is blocked, when the actual flow is F1 and F1 respectively, P1 + = P2 +;

When the actual flow rate is reduced from F1 to F2, the static pressure in the pipeline will also decrease correspondingly, and the decrease value is P0;
At the same time, when the actual flow rate drops to F2, the P2 value also increases because of the decrease of the flow velocity in the pipe. The value of rise is set to P0 '.

Here, the relationship between P2 and P1 is: P2 - = p1--p0 'P2 = P2 + - P2 - = P1 + - (p1--p0 + P0') =p1+ (p0-p0 ')) f'2 = k = k

This way: when P0 = p0', the output of f'2 = k = k f'2 = f'2 transmitter is unchanged.
When P0 > P0 ', f'2 = k = k, f'2 > f'1, transmitter output becomes larger.

When P0 is generally the main reason for the plugging of the pressure pipe is caused by the irregular discharge of the pressure pipe or the measurement medium viscosity and particles.

4.2 Pressure Pipe Leakage

We can take the leakage of positive pressure pipe as an example to analyze the problem of pressure pipe leakage.

The method of measuring the flow of the purified air main pipeline used for instrument control valve of a heating furnace is as follows:

throttle plate + differential pressure transmitter.

The air flow rate of the unit is basically stable in normal production, but in the later production process, it is found that the air flow rate is much lower than the normal value.

After inspection, the configuration of the secondary instrument (DCS) and the electrical signal circuit work normally, and the transmitter is sent to the calibration room for calibration.

Therefore, it is suspected that the problem occurs on the pressure pipe. With further inspection, staff stopped the leakage caused by poor welding of the positive pressure pipe, and the flow measurement returns to normal after repair welding and plugging.
Next, we will analyze the problem performance reflected by the leakage of positive impulse pipe.

The performance of positive pressure pipe leakage is that the transmitter output drops, rises and remains unchanged.

* Pressure Pipe Leakage Analysis

When the flow rate rises, here’s the influence for the output of the transmitter (square root of the output signal of the transmitter itself).

Assume that the original flow is F1, P1 = P1 + - P1 -, f'1 = k.

F'1 is the output value of the transmitter before the change, set the actual flow after the increase as F2, (that is: F2 > F1), f'2 = k, f'2 is the output value of the transmitter after the flow increase.

With the increase of the flow rate, the static pressure of the pipe increases to P0, and with the increase of the flow rate, the actual static pressure of the pipe decreases to P0 ', and the leakage pressure of the positive pressure pipe decreases to PS, then: P2 + = P1 + + P0 PS, P2 - = P1 - + p0-p0', P2 = P2 + - P2 - = P1 + (P0 '- PS).

Then, when: P0 '= PS positive pressure pipe leaks and the flow rate rises, the output of the transmitter will not change.

The output of the transmitter increases when the positive pressure pipe leaks and the flow rate increases.

When the flow rate of P 0 'decreases, the influence on the output of the transmitter (square root of the output signal of the transmitter itself) is analyzed.

Set the actual flow after descending as F2, that is, F2

Then: P2 + = P1 + - P0 PS, P2 - = P1 -- P0 + P0 '
P2=P2+-P2-=P1-(Ps+P0’)
F'2=K=K

When the flow rate drops, the transmitter output is always less than the actual flow rate.

5. Summary

In fact, when the leakage of the pressure pipe is very small, it is difficult for the process operation or instrument maintenance personnel to find out for various reasons.
Only when the leakage is large and the measured flow has a large error compared with the actual flow, it will be found that even if the actual flow increases.

So up till now, we have discussed how to shoot the installation method, precautions and diagnosis of differential pressure transmitter measuring circuit troubles. In fact, due to the general use of pressure transmitter and differential pressure transmitter, some methods in this Post also work for the installation and problem diagnosis of pressure transmitter.

Which Monitor Features Actually Matter For Gaming?

 


 

Regardless of whether you are fresh out of the box new to the universe of gaming or you're playing at a specialist level, you'll be confronted with exploring the many choices accessible. Be that as it may, what elements are generally significant?

Sorting this out prior to fishing through the various brands as a whole and models will assist with setting aside your time and cash.

Here are the main interesting points when looking out a gaming screen that addresses your issues:

• Screen Size and Resolution
• Refresh Rates
• Response Time
• panel type
• Color

Screen Size and Resolution

Many individuals tragically think the bigger screen size is in every case better.
While this is principally obvious in TVs a great many people observe that sizes going from 24" to 27" are best for gaming. You'll, for the most part, be sitting around 3-4 ft away from the screen, and screens in this size reach will in any case permit you to see everything simultaneously – something essential for cutthroat gaming. Having said that, bigger screens are currently turning out to be progressively well known among the present gaming local area – giving more prominent degrees of submersion and amusement. Recall, however, climbing the hypothetical screen size stepping stool can add a premium to the last sticker price.

Additionally, recollect – you must have the option to fit it around your work area!
The goal you want for gaming will eventually be dictated by your PC's GPU, and the amount of a financial plan you're working with. Hope to pay more when you are needing to appreciate high-goal gaming.

1080p is the most well-known goal among gamers yet, as new games and PC innovation are delivered, expect 1440p and 4k to be the accepted norm for the ordinary gamer.

One thing to remember, notwithstanding, is that going from 1080p to 1440p (or 4k) will altogether affect the exhibition of the PC. This will generally affect gaming execution, lessening the number of edges your PC can drive in any one game.

What Does Refresh Rates Mean for Gaming?

At the point when you're taking a gander at invigorating rates and what they mean for gaming, there are three primary contrasts to zero in on between the 60Hz-240Hz territory. These are further developed movement goals, decreased ghosting and tearing, and better responsiveness.

While 144Hz was once viewed as top of the line, that is not true anymore as we enter another decade. The most recent gaming screens quite often accompany a 144hz invigorate rate – except if it uses a 4K screen goal.

How does response time influence gaming?

At the point when you're playing any game, each millisecond counts so you really want to ensure your screen can show everything rapidly and unmistakably. Assuming that a screen's reaction time is too sluggish, the visuals will be postponed and this could prompt irritating visual antiques –, for example, ghosting.

Reaction time estimations can be somewhat precarious to comprehend as, in contrast to most gaming details, you need to search for a low number with regard to reaction time. The higher the number, the slower the reaction time will be.

From a gaming point of view, we generally say to search for the least reaction time conceivable. In any case, it's worth focusing on that producer-appraised reaction times ought to be taken with a touch of salt. Since a screen says it has a 1ms reaction time, that doesn't mean it'll be as old as a screen with a 1ms reaction time. 

Befuddling, correct?

Makers will take the most ideal situation when promoting a screen – marking it as 1ms when, as a general rule, it is just equipped for 1ms under custom situations – one specific dark to dim progress, for instance.

Panel Type

Frankly, certain individuals will put incredible accentuation on the board type, yet as long as you hit different specs you need/need, you don't have to mind excessively. Here is the synopsis.

IPS (In-Plane Switching) boards commonly offer great shading generation with a strong difference and quick reaction times however can get expensive for cutting edge highlights.

TN (Twisted Nematic) boards have better estimating for quicker reaction times and revive rates yet are not as great with regards to shading delivering and seeing points.

VA (Vertical Alignment) boards offer extraordinary differentiation, yet frequently miss out on gaming-basic execution contrasted with TN and IPS and aren't strongly suggested.

You will probably be driven into either, in view of your own prerequisites and spending plan. There's no issue with possibly one, however assuming you are settling on two distinctive board types, then, at that point, you'll need to know which you by and by like—and that is the point at which you should know the abovementioned.

Color

To keep things basic, a shading range characterizes a particular scope of tones that are recognizable by the natural eye. As the scope of tones, a gaming screen can deliver changes between brands, shading ranges assist with making their apparent contrasts clearer.

Gaming screens are appraised by the level of shadings conceivable from a shading range. This naturally sounds befuddling; however, it fundamentally implies that a gaming screen appraised at 100% NTSC (the scope of shadings that can be addressed to the natural eye) can show each of the tones inside that specific shading range. Similarly, a gaming screen appraised at half NTSC can just address a large portion of the shadings.

The Final Word

Also, the writing is on the wall, every one of the significant variables to remember while picking a gaming screen! Remember all of the above-mentioned and you can have confidence that you will make a savvy buy.

What Is Gpu (graphics Card)? Do You Really Need A High-end Gpu For Your Computer?

 


You might have heard of the NVIDIA graphics cards of 3000-series and their AMD 6000-series competitors as well. Then you definitely know the cost of these products. The question is do you really need this type of GPU that costs you a lot? I have sorted out some considerations that you should keep in mind before purchasing a costly GPU.

1. Think about Budget

Typically budget is a major deciding factor. Not everyone has unlimited budget for a computer setup. So you need to harmonize your need with the budget.

If you think that the more expensive a graphics card is the more you can get better experience, then it is wrong. You have to make sure that your desired GPU will be suitable with all other components. Otherwise, your money will go in vain.

Therefore you have to find out the best GPU according to your budget that suits perfectly with your other components of computer.

2. Your Purpose of Use

Most of you might have the perception that graphics cards are only for gaming. That is not true at all. The graphics card is used for gaming, videography, animation, architecture, interior design and so on. Therefore you to determine that why are you intending to buy a graphics card.

High-end GPUs not only do enable high-quality gaming, they can do much more than that. Professional users used to need graphics card for their heavy work. GPU is needed for After Effects, Photoshop, Premiere Pro, AutoCAD, and many more like these software.

Nowadays architects, animators, videographers, interior designers and even scientists need to use graphics card in their day-to-day works. GPU is the must for simulations, particle physics, image processing, and more especially for rendering 3D scenes and lighting.

3. The Apps & Games You Run


You must keep in mind what sort of App you will use or game you will play while buying a GPU. As told before, graphics card does have applications in both professional and gaming fields. Whatever, how powerful GPU you should buy that depends on what app or game you will run on your PC.  Even if you are using a 9-year-old graphics card, it can still run some of the most popular games.

Therefore, if you're not a video editor or a data scientist then don’t buy a powerful card. You can also take a look at what games you used to play. So, you can choose the best video card for you by checking the hardware requirements of the titles you like. You can also check the game developers of the titles you want. If they make any hardware announcements, you can know it instantly. In this way, you can make a plan for your next upgrade.

4. Balancing Price and Performance

Who doesn’t want to have the latest and greatest GPU as you can have an immersive experience while playing games with it? But, everyone cannot afford them.

As a computer works as a system, you cannot have the ultimate experience with a powerful graphics card, if your processor, RAM, and SSD cannot keep up with your video card.

That’s why you should purchase a well-balanced system that fits perfectly with your budget & gives you the best performance and experience of gaming or any other usage.

So if you want to buy a perfect graphics card for your computer then you should get some research done to buy best GPU at a low price from your favorite brand. Or you can simply get around in the website or physical store to find out the best brand graphics card at an affordable price.

Discover The Many Benefits Of Mtf Testing

 


 

You intend to succeed in the optical industry. To do so, you must employ methods of precision and exactness. Optical companies will only be interested in your services if you can make them a guarantee of quality. MTF Testing companies and MTF Measurement companies provide businesses involved in the manufacturing of optical products invaluable services and solutions. If you are in the latter type of business, you must ensure that you choose a testing company that is in the first rank of industries.

As a manufacturer, you must ensure that everything you send to market is perfect. The value of your brand depends on what your customer base thinks of you. You cannot afford to ship out a single batch of poorly designed and made optical products. Doing so can put your reputation and your brand at risk.

The only way to ensure that each product is fit for purpose, you must constantly measure and assess. This sort of thing should be left to companies that specialize in it. Working with the right MTF company will ensure you get the results you want. It is essential that you hire a MTF measurement company that can assess optical products according to the specifications you lay out. Without this kind of test, you leave your company vulnerable to failed products and dissatisfied customers.

The company you hire should be a proven leader in the field. They should have a track record of delivering complete satisfaction to their customers. You want to work with a company that uses the latest technology and methods in its measurement and evaluation. The people you hire must know what they are doing. You should be able to trust the results they obtain. And you must ensure that the MTF testing equipment they use is in accordance with industry standards. MTF testing is a highly technical field with professionals who must be certified to practice in it. Everyone involved in the testing of your equipment should have such credentials. The company you hire should be prepared to prove that this is so when called upon.

You should work with a company that can deliver what it promises. They should be open and transparent with how they work. You should be given certain guarantees about delivery timelines and performance criteria. You should also be shown proof that all their equipment meets industry standards and has been certified for operation.

You should also be charged a reasonable rate for the service. There is no reason for any optical company to pay above market rates for MTF testing and measurement. In fact, it is better to enter a long-term partnership with such vendor. It will allow them to anticipate your needs and deliver in a timely way. And it will ensure that you get results that you can count on. There is no substitute for trust and confidence in such a relationship. It is right for you to expect the vendor you work with to live up to the highest standards in the industry.

How To Install Encoders - Best Practices

The wiring and installation of rotary encoders should be conducted in strict accordance with the instructions of each product. While for general encoder installation guidelines, you should pay attention to the following aspects during your encoder mounting work.

1. Installation of Different Types of Encoders

1.1 Solid Shaft Encoder

For solid shaft encoders, you need to pay attention to synchronous flange and clamping flange, which are different on the mounting bracket.

Here are 3 methods of fastening solid shaft encoders.
 

  • Use the mounting hole on the end face of encoder flange directly to fasten the encoder and mounting brackets.
  • Use the mounting boss of clamping flange to fasten encoder and mounting brackets by clamp.
  • Use the clamping groove of synchronous flange to fasten encoder and mounting bracket by eccentric clamp.


1.2 Incremental Encoder

For incremental encoders, setting zero position through shaft or shaft sleeve and mark on flange will benefit the location assembly and use of the encoder. The fixed hole of the shaft sleeve on the through hole / blind hole hollow shaft encoder corresponds to the zero mark position, which is the mechanical zero position, on the flange surface.

The plat of the solid axis encoder shaft, in which the center line is aligned with the zero mark position on the flange, which is the mechanical zero position.
 

  • About Couplings
  1. Keep the original state without any distortion when installing the coupling;
  2. The torque of the top screw on the coupling is generally 0.6Nm. Excessive torque will cause screw damage;
  3. The encoder and coupling shall be installed in concentric position. Any deviation may cause the mechanical load on the encoder shaft to exceed the rated range.


1.3 Hollow Shaft Encoder with Blind Hole

For hollow shaft encoder with blind hole, whether it is incremental or absolute encoder, note whether the length of shaft matches the depth of shaft sleeve. For example, dbs60, generally, the length of shaft shall not be less than 15mm and not more than 40mm. And atm60_ SSI, generally, requires that the length of the shaft is not less than 15mm and not more than 30mm.

1.4 Hollow Shaft Encoder with Through Hole

For hollow shaft encoder with through hole, if it’s incremental encoder, you can choose clamping ring and installation reed on the same side or different side. That is determined by the installation environment on site. Note whether it is more convenient to fix the clamping ring after the reed is fixed.

1.5 Installation of Absolute Encoders

The forms of mechanical installation of absolute rotary encoder includes high-speed end installation, low-speed end installation, and auxiliary mechanical device installation.
 

  • Installation in the Low Speed End


Encoders are installed behind the reduction gear, such as the shaft end of the winch steel wire rope drum or the end of the last reducer gear. With this method, there is no gear to return clearance, and the measurement is more direct and the accuracy is higher.

You can use this method to measure long distance positioning, such as various lifting equipment and feeding trolley positioning.
 

  • Installation in the High Speed End


Rotary encoders are installed at the rotating shaft end of power motor (or gear connection). The advantage of this method is that it’s of high resolution. Because there are 4096 cycles of multi-turn encoder, the number of rotation rings of motor can be fully used to improve the resolution with sufficient range within the range.
The disadvantage is that the moving object with gear clearance error after reducing gear is generally used for one-way high-precision control and positioning, such as roll gap control of steel rolling.

In addition, if the encoder is directly installed at the high-speed end, the motor must vibrate slightly, otherwise it is easy to damage the encoder.
 

  • Auxiliary Machinery Installation


This method is commonly used in gear rack, chain belt, friction runner, and rope receiving machinery.

2. Possible Problems When Installing Incremental Encoders

2.1 Ignoring the Installation of Cabinet

As is known to all technicians, it is very easy to ignore the installation of the cabinet in the process of the installation of precision instruments. Choosing authoritative dealers who will pay attention to the overall details and wiring. The cabinet’s stable state must be ensured during the installation process.

2.2 Ignoring the Whole

People usually pays attention to the subsystem carefully during the installation process, which may result in the neglect of the overall sensory acceptance. So it may lead that some wiring is not beautiful, information panel is irregular. Therefore, we should grasp the whole during the installation.

2.3 Wire Laying

It is necessary to lay wires correctly in installation and connection. The space between wires should be set to be less than the specified standard. If cross laying occurs, it is better to make the space between two wires keep within the specified standards.

During the laying of wires, there is preferably a certain distance from the wall. This distance is called safe distance by technicians, and PVC protection can be taken for the line when necessary. Besides, selecting qualified technicians is very important.

3. Matters Needing Attention When Installing Single-Turn Absolute Encoders

Single-turn absolute encoders measure each channel of the photoelectric code disk in rotation to obtain the unique code. When the rotation exceeds 360 degrees, the coding returns to the original point, which does not conform to the principle of absolute coding uniqueness. Such coding can only be used for measurement within 360 degrees of rotation, which is called single-turn absolute encoder.

The following points should be paid attention to during the installation of single circle absolute encoder:
 

The encoder shaft and motor shaft shall be as concentric as possible.

  • The connection between encoder cable and extension cable should be welded as far as possible, in order to prevent poor contact caused by long-time oxidation, which will affect the signal acquisition.
  • The encoder cable is separated from connecting cables of high-power equipment, frequency converter and other equipment to prevent interference. After the collected gray code is converted into ordinary binary code, it can be corresponding to the actual position / angle value according to the conventional method.
  • It is better to select elastic coupling which can significantly improve the eccentric problem caused by poor installation accuracy or abrasion.
  • The encoder cable shall be of high-quality shielded twisted copper cable, which can reduce external interference and reduce signal attenuation.


The rule of converting binary gray code into natural binary code is to keep the highest bit of gray code as the highest bit of natural binary code. The second highest bit natural binary code is the high bit natural binary code, which is different from the second high bit gray code. The other bits of natural binary code are similar to the second high bit natural binary code.

4. Procedures for Installing Rotary Encoders
 

  • Avoid loosening due to vibration during use.
  • When connecting encoder, please confirm that the load cannot exceed its maximum allowable value and deviation.
  • Lock the screw around the encoder coupling shaft to avoid loosening during use.


4.1 Environment

Pay attention to whether there are interference sources around. Encoder is a type of precise instrument which is easy to be disturbed. If it is affected, it will also cause adverse effects on the normal use. Temperature and humidity also need to be concerned, and understand the scope of equipment requirements.

4.2 Axle Load

When installing the rotary encoder, you also need to pay attention to its shaft load and know its allowable range clearly. When connecting the signal line, it must not be connected to DC power or AC power, which will damage the output circuit.

4.3 Connection

In connection, the operator should avoid rigid connection with the encoder but take the plate spring. At the same time, during the installation work, the encoder should be pushed into the quilted shaft gently. The encoder must not be knocked, which will damage the encoder and affect the shafting.

5. Installation of Servo Motor Encoders

In the installation of servo motor encoders, we may encounter various problems, including mechanical and electrical aspects. If the problems are not properly avoided or solved, they will affect the normal use and life of encoders.

5.1 Electrical Interface

The baud rate and transmission distance of electrical interface can be selected according to the specific application environment on site. The actual transmission distance and transmission rate, installation of the encoder and communication cable are affected by environment, grounding and cable material.

5.2 Component Layout

When the encoder is installed on site, it cannot be installed with high-speed interference source equipment such as frequency converter, transformer and solenoid valve. Besides, keep a distance of 10cm, or install metal partition. When installing the module communicating with the encoder, it is not allowed to install with high interference source elements such as frequency converter and contactor or frequently disconnected switch element. In addition, keep a distance of 3cm, or install metal partition.

5.3 Grounding Protection

The shielding layer of the cable shall be grounded at the signal receiving end in order to prevent the leakage current between the two grounding points from damaging the cable. If the shielding wire of the cable can not achieve good grounding protection, a separate grounding wire should be connected for shielding.

For long-distance grounding connection, yellow and green wires need to be added between the product shell and the grounding point as the equipotential compensation line. The shielded cable must be connected to the metal shell (encoder or electric cabinet) of the electrical components at both ends, and you should also ensure the correct connection.