Hostinger Tutorials

What Is Hostinger

Hostinger is an employee-owned web hosting company and domain registrar. It was started in 2004, and now has over 29 million users, in 178 countries. They use cloud-based web hosting technology and provide hosting with MySQL, FTP and PHP.

Hostinger Tutorials

Hostinger Free Hosting

They don't have a free trial, but their sister site is 000Webhost, the most popular free hosting service, where you can test out their features for free.
Is is great for practice, but it doesn't have customer service, it has storage limits and you cannot add an SSL certificate.
They also have a 30-day money back guarantee.

Hostinger Free Domain

Hostinger cPanel1
If you are serious about your business, you should go for a premium plan - they give you a 1-year free domain with a paid plan. However you need to pay for domain privacy, it costs around $4.

The Hostinger Control Panel

They actually don't use cPanel, but they have a very similar control panel.
Hostinger cPanel1
Under Account>Details we have Name server Details:
Website Details - URL, Website IP Address, Server Name
E-mail Details, File Upload (FTP) Details
You can upgrade to Business Hosting or VPS.
Business Hosting:
  • Easy-to-use: Manage your server like a real pro with a simple control panel that holds all the essential features to create a strong online presence.
  • Dedicated Resources: Get a dedicated IP address with a slice of RAM, CPU, and SSD Disk Space. The provided resources are fully dedicated to you and no one else!
  • Fully Managed: Sit back and relax while we take care of server uptime, maintenance, and monitoring. Focus on your project and leave the rest to us!
  • Business Hosting does not have any limit on the amount of websites you can host. You can add as many as you need as long as you have the resources. And if you ever need more, we got your back!
Account>Change Password
You can change the password for that specific domain
You can renew your account, the longer time you choose, the better price you get.
Account>Usage Statistics
This section is about account resource usage like CPU, memory, processes, requests.
Email>Email Accounts
This is where you can create, access your domain-based email accounts.
Email>Email Forwarders
You can forward your email to your regular email address.
Email>Catch-all Emails
A catch-all email feature allows you to catch any emails sent to the misspelled email address.
Email>Auto Responders
You can send an automatic reply to emails that come in to this email address.
Email>Edit MX Record
An MX (mail exchanger) entry tells a client which server receives mail sent to a domain name. To get your email delivered to another server edit the current MX record by using this form.
To use Gmail with Google Apps, you must set up your domain's MX records to direct mailflow to Google mail servers. This will delete your current MX records
Email>Mail Service Control
SMPT: Enable or disable SMTP service for your account. If SMTP will be disabled, Webmail and POP3/IMAP services will also stop working.
Sendmail: Your PHP scripts are using Sendmail service to send email messages. This service can be disabled automatically if mass mail sending will be detected from your account.
Email>G Suite 
G Suite is a popular alternative to our email service. It allows you to have all Gmail features with your domain name. Create professional emails, join them into mail-groups. Easily access your emails from any device or email client any time. 30GB of inbox storage available for your communication.
Additionally, G Suite includes Calendar, Drive, Docs, Sheets, Slides, Forms, Sites and Hangouts, everything you might need for fast and efficient collaboration.
hostinger cPanel2
You can set up subdomains like
Domains>Parked Domains
A parked domain shows the same content as the primary domain. The parked domain must be already registered and pointed to Hostinger nameservers.
Domains>Add Websites
An addon website is a fully functional website which has its own control panel and works the same way as your primary account. Think of them as additional hosting accounts you get while ordering main account. You have the choice of
  • Your own domain (you must have domain already registered)
  • Free subdomain
You can do a redirect of one domain to another.
Cloudflare Protection Lifetime costs $7.50
Domains>Domain Management
Renew, update name servers, order privacy protection. update your contact details.
You can also edit your DNS zone, order additional domains.
Website>Website Builder
Access to Zyro Builder
Website>Auto Installer
You can autoinstall WordPress, Joomla, Prestashop, Opencart, etc.
Website>Import Website
Provide a .zip, .tar or .tar.gz archive of all your website files and it will be extracted directly to the public_html folder in 1 click! Please note that depending of the archive size, it can take a very long time to upload. Maximum allowed size: 256MB
Website>Error Pages
You can edit error pages of your website
400 Bad request Edit Restore
401 Authorization required Edit Restore
403 Forbidden Edit Restore
404 Not found Edit Restore
500 Internal server error
Hostinger cPanel4
Files>File Manager
You can access your website's files without using an FTP client. Upload, rename, download, delete files.
You get automatic weekly backups, or you can upgrade for daily backups for around $2 per month.
Change your FTP details here.
FTP Access
FTP host
FTP Port 21
FTP username u441900259
FTP password
Folder to upload files to public_html
Forgot your FTP password? Change account password
Databases>MySQL Databases
Create, delete, change password
Access your database and edit, export it, etc.
Databases>Remote MySQL
If you wish to connect to the MySQL server from your computer or from some other server use this section to add remote IP addresses that will connect to Hostinger MySQL server.
Hostinger cPanel4
Advanced>DNS Zone Editor
Edit your DNS zone, add and remove various DNS record types
Advanced>PHP Configuration
Set PHP version (up to 7.2), extensions, etc.
Advanced>Cron Jobs
A cron job is a scheduled task which takes place at predefined times on the server
Advanced>SSH Access
Enable or disable SSH access on your hosting account. SSH allows secure file transfer and remote logins over the internet. Your connection via SSH is encrypted allowing the secure connection.
Advanced>PHP Info
See all information about currently installed PHP Version
Advanced>Cache Manager
Get superior performance and improve SEO for your website by using the cache.
Cache works by storing static content of websites on extremely high-speed cache servers. This allows to bypass PHP requests and render every page as fast as possible.
You can delete the cache or purge a sepcific URL.
Deploy application directly from public Git repository. Enter your public repository http URL, branch name and install path. Install path can be left empty, application will be deployed directly to public_html directory.
Install SSL, enable, disable, force https.
Hostinger cPanel5
Other>Password Protect Directories
Set a password to limit access to your website (or parts of it)
Other>IP Manager
Manage specific IP addresses to access your website.
Block an IP Address: This feature will allow you to block a range of IP addresses to prevent them from accessing your site.
Other>Hotlink Protection
Block other websites from directly linking to files and pictures on your website
Other>Folder Index Manager
Allows you to customize the way a directory will be viewed
Other>Fix File Ownership
If you have any problems with editing, deleting files or you have accidentally deleted the public_html folder, run this tool.
Other>Activity Log
This is a complete history of your hosting account, like adding domains.
Other>Reload Account
A fresh account with default settings will be re-created. This can help you remove all default files created by Website Builder or Autoinstaller, so you will be able to install new scripts without any errors afterward.
Please note, that this function will erase all your files and drop all MySQL databases. It will also delete all email accounts, parked domains and subdomains.
This action cannot be undone, so be please careful, all files will be permanently deleted.
Other>Deactivate Account
Permanently delete your hosting account. You have two options:
  • Deactivate this account only
  • Deactivate all related accounts
This is how the sidebar is:
  • Domain
  • SSL
  • IP Address
  • Username
  • Activated
  • Email Accounts 
  • Subdomains
  • Parked Domains
  • FTP Accounts
  • MySQL Databases
  •  Server
  • Server IP
  • Inodes
  • Disk Usage
    317.58 / ∞ MB
  • Home Root
  • PHP Version
  • Apache Version
  • MariaDB Version
  • Billing
  • Due Date
  • Hosting Plan

How To Build A Website on Hostinger

Connecting Your Domain And Your Host

First you need a domain. You can get a free domain with any premium Hostinger plan. You should also get WhoIs protection, otherwise your email and phone number will get spammed.
If you buy your domain from Hostinger, it will already be connected, you won't need to do anything else.
If you already have a domain somewhere else, like NameSilo, which is the cheapest host there is (check out their price list), you need to point your domain to your host.
This is really simple, log in to your domain registrar account, click on your domains. Now click on the Name Servers Icon and change them to the ones given by Hostinger. It will take about 24-48 hours for the change to take place.

Setting Up Your SSL Certificate

Before you do anything, set up your SSL certificate. It is a lot easier to do it now than having to switch over later on.
SSL stands for Secure Sockets Layer. Essentially, SSL establishes an encrypted link between your web server and your visitor’s web browser. This ensures that all data passed between the two remains private and secure.
With an unsecured HTTP connection, third-parties can snoop on any traffic passing between your reader’s browser and your web server. Obviously, this is a huge issue if you’re passing sensitive information like credit card numbers, but even if you need to log into your own site, your user name and password can be stolen.
Starting in January 2017, Google marked “HTTP pages that collect passwords or credit cards as non-secure.” That means your WordPress login page is marked as non-secure if you’re not using HTTPS.
You have two options.
  • Use “SSL For Free” to get a Let’s Encrypt SSL certificate
  1. Go to, you will see the following:
2. Enter your website both without www and with www, like this, then press the green button:
3. On the next screen, click on "Manual Verification", then on "Manually Verify Domain".
4. Download File #1 and File#2.
5. Go to your Hostinger File Manager, you should be in the folder public_html.
6. Create the new folder .well-known (make sure it starts with a dot), then inside that create another folder acme-challenge.
7. Upload the two files there.
8. Click on the "Download SSL Certificate" button. Download the file onto your computer.
9. The certificate is valid for 90 days. Create an SSL for Free account, so that you get a notification a week before expiry.
10. You will get 3 files.
  • The certificate
  • The Private key
  • The Certificate Authority bundle.
11. Open Advenced>SSL and paste them into the appropriate slots.
12. Press Install.
13. At the top of the same screen press "Force https".
If you run into any trouble, use the chat icon to contact support. They answer in a minute or two.
The above is a long procedure and you need to renew your SSL certificate every 3 months.
A better option is to buy one from Hostinger, you can get a lifetime SSL for about $15. It will renew automatically.

How To Use WordPress With Hostinger

Now it is time to set up WordPress as an https domain.
Click on Website>Autoinstaller
Click on the WordPress icon.
Click Next.
Provide the following data:
Don't use "Admin" as your user name, because bots are trained to hack websites by using that user name.
Press Install.
They also have a detailed knowledge base, like this post that explains how to use the REST API.

Setting Up Email on Hostinger

If you want a professional business, you will need to set up an e-mail address that matches your domain, such as, or It would be cheesy to use a Gmail or other free account, and also most email providers like Google would send your emails straight into the spam folder of the recipients.
What you need to do is go to Email in your cPanel. You have two options. You can click on “Forwarders” and forward to your Gmail address or you can click on Email Accounts and set up an email address that you can answer right there in its Webmail or any similar program.
Hostinger also has business email for a monthly fee, but probably you won't need it.

Setting A Static Home Page

After this, you can go over to and log into your blog admin panel.
First go to Settings>General and make sure your WordPress Address (URL) and Site Address (URL) are both set to the https version of your site.
Per the default setting, on the home page you see your recent blog posts. This is however not the best for conversion. Therefore it is recommended that you change your home page settings to “Static home page”.
To understand this better, click on this link to go to the home page of this site (it will open in a new tab). See how the home page is its own static entity. Then click on "Blog" and see how the Blog page contains the latest posts. Without changing this setting, your Blog page would be your home page.
First go to “Pages” in your WP admin panel, click “New” and create a blank page. On the right side under “Page Attributes” you will see a “Template” pull down box. Change “Default Setting” to “Home Page”. Then click on “Publish”. Then click on “New” again, and create another page called “Blog” or something similar. This is where your blog posts will live.
Now go back to Appearance>Customize, find “Static Front Page”. Find “Front page displays” and pick “A static page” instead of “Your latest posts”. From the “Front page” roll down box click the name of the home page you just created. Then for the “Posts page” roll down box select the name of the blog page you just made, press “Publish” and you are all set.

Picking Your Theme

There a multitude of themes, which will make this subject confusing. Here are a few basic facts.
Make sure you pick a mobile-friendly theme. Unfortunately not all themes are built that way. It should say “mobile-friendly” or “responsive” in the description. Always check on mobile for yourself.
Best to have a theme where you can instantly convert your visitors into subscribers. If they don't instantly subscribe, they can still continue reading your site. For this you need a front page where you have an opt-in box (unfortunately I haven't found any free themes that would do this).
I am using Thrive Themes for my blogs, because they are built with the help of experienced bloggers and internet marketers and are set up for conversion. You can read my full review on it or check out the different themes demos.

Recommended Plugins

I recommend that you add the following plugins. You shouldn't add too many plugins as that will slow your website down.

All In One SEO Pack

Use All in One SEO Pack to optimize your WordPress site for SEO. It’s easy and works out of the box for beginners. It has useful features:
  • XML Sitemap support – submit your sitemap to Google and Bing and improve your SEO
  • Google Analytics support
  • Automatically optimizes your titles for Google and other search engines
  • For beginners, you don’t even have to look at the options, it works out-of-the-box. Just install.

Jetpack by

Most of Jetpack’s features and services are free. Jetpack also provides advanced security and backup services, video hosting, site monetization, priority support, and more SEO tools in three simple and affordable plans. Jetpack includes:
[free] Site stats and analytics
[free] Automatic sharing on Facebook, Twitter, LinkedIn, Tumblr, Reddit, and WhatsApp
[free] Related posts
[paid] Search engine optimization tools for Google, Bing, Twitter, Facebook, and
[paid] Advertising program that includes the best of AdSense, Facebook Ads, AOL, Amazon, Google AdX, and Yahoo
[free] Brute force attack protection
[free] Downtime and uptime monitoring
[free] Secured logins and two-factor authentication
[free] Comment login with Facebook, Twitter, and Google
[free] Fully-customizable contact forms
[free] Infinite scroll for your posts

Akismet Anti-Spam

Akismet is a WordPress plugin which comes with the automatic installation of WordPress. In order to activate it and start using it, you need to add an API key. When you click on “Get your key”, you will be directed to Akismet’s website where you will get lost looking for the non-existent “free” option. Here is the way out:
  • Click on “Get your key.” (You will need to log into your account or set one up if you don't have one.)
  • Under the “Personal Contribution” plan, select ” Basic : Use Akismet for Free on a personal site”.
  • On the next page, move the slider all the way to thoue left under the column which says “What is Akismet worth to you?”
  • Get your API key, and add it onto your Akismet configuration page. Once you have added the API key, Akismet will start protecting your blog from spam comments.

Really Simple CAPTCHA

Protects your blog from bot spam.


Hostinger has a built-in cache, therefore you won't need a cache plugin.

Pretty Links

An easy-to-use plugin for managing your affiliate links. You will definitely need it if you want to make money with your blog.

WP Optimize

Your WordPress site gets pretty cluttered up with old copies of your posts, etc. and this will slow down your site. You will need to run this plugin now and then to clean it up.
That's it. You may need other plugins for other functionality, but the above is enough to set up your blog.

Thrive Leads & Thrive Architect

With Thrive Leads you can easily place opt-in forms onto your website, with Thrive Architect you can build landing pages and modify your home page.

Hostinger Uptime and DDos Protection

No matter where you go, all hosting providers have downtime. Hostinger is not an exception.
This may shock you, but the worst downtime I had with FunnelXpert was several hours.
This is extremely rare, but some evil hackers picked the IP address that hosted my website and carried out a full-blown DDos attack. What Hostinger does in this case is null route your IP until the attack is over so that no loss of data occurs.
You will always get downtime when you update your site, but that isn't the error of the hosting service.

Hostinger E-commerce

If you want to host an e-commerce store, you can either use the WooCommerce plugin, or install Prestashop instead of WordPress.


Hostinger is a stable platform, a good deal for your money.

It's not perfect, however no shared hosting is. Their customer service is awesome and will help you with any issues that arise.

Good book about President Trump * Donald Trump Books *

Donald Trump Books

 With extraordinary access to the Trump White House, Michael Wolff tells the inside story of the most controversial presidency of our time.

The first nine months of Donald Trump's term were stormy, outrageous - and absolutely mesmerising. Now, thanks to his deep access to the West Wing, bestselling author Michael Wolff tells the riveting story of how Trump launched a tenure as volatile and fiery as the man himself.

In this explosive book, Wolff provides a wealth of new details about the chaos in the Oval Office. Among the revelations:

- Why FBI director James Comey was really fired

- Who is really directing the Trump administration's strategy in the wake of Bannon's firing

- What President Trump's staff really thinks of him

- What inspired Trump to claim he was wire-tapped by President Obama

- Why chief strategist Steve Bannon and Trump's son-in-law Jared Kushner couldn't be in the same room

- What the secret to communicating with Trump is

- What the Trump administration has in common with the movie The Producers


*** The most prominent books ***

Erlang Programming ebook

Erlang Programming

Erlang is a general purpose or you might say a functional programming language and runtime environment. It was built in such a way that it had inherent support for concurrency, distribution and fault tolerance. Erlang was originally developed to be used in several large telecommunication systems. But it has now slowly made its foray into diverse sectors like ecommerce, computer telephony and banking sectors as well.

Click here to order ebook NOW!

Crystal Reports ebook

Crystal Reports

SAP Crystal Reports is a business intelligence tool helps in generating reports from SAP as well as non-SAP data sources. Knowledge of this tool is a plus for managers and business leaders who can generate quality advanced level reports which will help them in making better strategic decisions. This tutorial covers the key concepts of SAP Crystal Reports and how you can use it to generate professional reports.

Click here to order ebook NOW!

Embedded Systems Tutorial

Embedded Systems

We can broadly define an embedded system as a microcontroller-based, software-driven, reliable, real-time control system, designed to perform a specific task. It can be thought of as a computer hardware system having software embedded in it. An embedded system can be either an independent system or a part of a large system. In this tutorial, we will explain all the steps necessary to design an embedded system and use it.

This tutorial has been designed to help the students of electronics learn the basic-to-advanced concepts of Embedded System and 8051 Microcontroller.

Before proceeding with this tutorial, you should have a good understanding of the concepts of basic electronics such as circuits, logic gates, etc.

Table of contents:
1. Overview
 2. Processors
 3. Architectures
 4. Tools and Peripherals
 5. 8051 Microcontroller
 6. I/O Programming
 7. Terms
 8. Assembly Language
 9. Registers
 10. Registers Bank/Stack
 11. Instructions
 12. Addressing Modes
 13. Special Function Registers
 14. Timer/Counter
 15. Interrupts


CNC Programming Examples - Slot Milling

Fanuc G71 Turning Cycle

G71 turning cycle is used for rough-material removal from a cnc lathe component. G71 turning cycle makes large diameter cutting easy. Cutting can be done in simple straight line or a complex contour can also be machined very easily.

* Best ebooks for CNC programming: 
CNC Programming Basics 
G-Code and M-Code 
CNC programming 
G-Code Reference 
CNC Machine Tutorial 

Through G71 turning cycle parameters cnc machinists can control
  • Depth of cut.
  • Retract height.
  • Finishing allowance in x-axis and z-axis.
  • Cycle cutting-feed, spindle speed.


G71 U... R...
        G71 P... Q... U... W... F... S...


First block
Parameter Description
U Depth of cut.
R Retract height.
Second block
Parameter Description
P Contour start block number.
Q Contour end block number.
U Finishing allowance in x-axis.
W Finishing allowance in z-axis.
F Feedrate during G71 cycle.
S Spindle speed during G71 cycle.

G71 Turning Cycle Overview

  • G71 turning cycle cuts the whole contour repeatedly which is given in P Q blocks.
  • Depth of every cut can be controlled by first-block U value.
  • Second-block U W are the finishing allowances which can be given if you want to make a finish cut with G70 finishing cycle.
  • F is cutting feed and S is spindle speed (given in second-block) which are used during G71 turning cycle.
Note – The F and S given inside P Q block will not be used during G71 turning cycle, they are used with G70 finishing cycle if later called.

G71 Turning Cycle Working

N60 G71 U10 R10
        N70 G71 P80 Q90 U3 W0 F0.25
        N80 G00 X60
        N90 G01 Z-75
When G71 turning cycle is run the whole operation will be done in following sequence,
1 – Tool will move in x-axis U (depth of cut) deep with programmed feed from starting-point.
2 – Tool will travel with feed in z-axis (destination point in z-axis is given in P Q blocks )
3 – Tool rapidly retracts R amount in both x-axis and z-axis (at 45 degrees).
4 – Tool rapidly travel in z-axis to start-point
5 – Tool rapidly moves to last cut depth.
6 – Tool moves with feed in x-axis U deep (first-block U depth of cut).
7 – Tool with feed moves in z-axis (destination point given in P Q blocks).
8 – Tool rapidly retracts in x-axis and z-axis R amount (45 degrees).
9 – Tool rapidly moves to start-point only in z-axis.
This whole sequence of operation keep on going, until the destination point in x-axis is met.
If finishing allowance is given tool will not make the exact diameter and length given in P Q blocks but will leave that much allowance, This finishing allowance can be later machined by calling G70 finishing cycle.

Fanuc G71 Turning Cycle

Fanuc G71 Example

Here is a cnc part-program which shows how G71 turning cycle can be used, this is the program for the drawing given above
N50 G00 X106 Z5 M3 S800
        N60 G71 U10 R10
        N70 G71 P80 Q90 U3 W0 F0.25
        N80 G00 X60
        N90 G01 Z-75
In this program G71 turning cycle will keep repeating the contour given inside P Q blocks shown below
N80 G00 X60
        N90 G01 Z-75
These two cnc program blocks tell us that we want to remove material till X60 deep and in Z-75 in length.
The depth of cut is given in first-block U10 retract amount is also given R10.
Finishing allowance in x-axis is U3 but there is no finishing allowance given in z-axis W0.

G70 Finishing Cycle

If you programmed G71 turning cycle with finishing allowances then that finish allowances can be removed with G70 finishing cycle.
G70 finishing cycle repeats the whole contour the G71 way, but in just one-cut removing the finishing allowances.

Why Use G70 Finishing Cycle

As material can be removed with G71 turning cycle, but if you want a different cutting-feed and spindle speed for the last cut, then it is recommended that you use G70 finishing cycle.
G70 finishing cycle use F and S values which are given inside P Q programmed blocks. (G71 use F S values which are given inside G71 second block.)

Fanuc G70 Example

N50 G00 X106 Z5 M3 S800
        N60 G71 U10 R10
        N70 G71 P80 Q90 U3 W0 F0.25
        N80 G00 X60
        N90 G01 Z-75 F0.15
        N100 G00 X200 Z100
        N110 G92 S1200
        N120 T3 G96 S150 M03
        N130 G00 X106 Z5
        N140 G70 P80 Q90
        N150 G00 X200 Z100
        N160 M30

G70 G71 Example

G71 Rough Turning Cycle Example
        G00 X200 Z10 M3 S800
        G71 U2 R1 F200
        G71 P80 Q120 U0.5 W0.2
        N80 G00 X40 S1200
        G01 Z-30 F100
        X60 W-30
        N120 X100 W-10
        G70 P80 Q120


Fanuc G71 G72 G70 Canned Cycle CNC Lathe Internal Machining Example (Boring & Facing )

Fanuc programming example which shows the use of multiple fanuc canned cycle in cnc programming, Following canned cycle are used in this cnc lathe programming example
  • G71 Rough Turning Cycle
  • G72 Facing Cycle
  • G70 Finish Cycle
  • Fanuc G71 for Boring Opertaion
  • Fanuc Programming Example

Fanuc G71 for Boring Opertaion

This programming example also illustrate how G71 turning cycle can be used for internal machining (boring operation). So if you want to remove extra stock from inside of a component, you can use Fanuc G71 turning cycle for internal stock removal as well.

Fanuc Programming Example

Fanuc Canned Cycle Example
G28 U0 W0
            G50 S1500
            N1 T0101 M8 (OD FACING)
            G96 S180 M3
            G0 X255.0 Z5.0
            G72 W2.0 R0.5
            G72 P100 Q200 F0.25
            N100 G0 Z0 G41
            G1 X-2.0 F0.18
            N200 G0 Z5.0
            G28 U0 W0
            N2 T0404 M8 (ID ROUGH)
            G96 S180 M3
            G0 X50.0 Z5.0
            G71 U2.0 R0.5
            G71 P500 Q600 U-0.5 W0.1 F0.25
            N500 G0 X202.0 G41
            G1 Z0 F0.12
            N600 X50.0
            G0 Z5.0
            G28 U0 W0
            N3 T0505 M8 (ID FINISH)
            G96 S220 M3
            G0 X50.0 Z5.0
            G70 P500 Q600
            G0 X50.0 Z5.0
            G28 U0 W0
            M5 M9

Fanuc G73 Pattern Repeating Cycle CNC Program Example Code

CNC programming example for Fanuc G73 pattern repeating cycle.
Fanuc G73 Pattern Repeating Cycle has already been described here
CNC Fanuc G73 Pattern Repeating Cycle
You might like other Fanuc G73 pattern repeating cycle examples
CNC Fanuc G73 Pattern Repeating Cycle CNC Program Example
Fanuc G73 Pattern Repeating Canned Cycle Basic CNC Sample Program

Fanuc G73 Pattern Repeating Cycle Programming Example

This cnc program example also shows how cnc machinists can use ‘W’ instead of ‘Z’ for z-axis movements.

Fanuc G73 Pattern Repeating Cycle Program Example
N010 G00 X260.0 Z80.0
                N011 G00 X220.0 Z40.0
                N012 G73 U14.0 W14.0 R3
                N013 G73 P014 Q020 U4.0 W2.0 F0.3 S0180
                N014 G00 G42 X80.0 Z2.0
                N015 G01 W-20.0 F0.15 S0600
                N016 X120.0 W-10.0
                N017 W-20.0 S0400
                N018 G02 X160.0 W-20.0 R20.0
                N019 G01 X180.0 W-10.0 S0280
                N020 G40
                N021 G70 P014 Q020
                N022 G00 X260.0 Z80.0
                N023 M30


CNC Programming Example with Fanuc G71 Rough Turning Cycle and G70

Here is another cnc programming example, this cnc programming example shows the use of G71 Canned Cycle and G70 for Fanuc CNC Control.
  • G71 Turning Cycle
  • Program Example

G71 Turning Cycle

Although I already have posted about the G71 Turning Canned Cycle(Rough Turning Cycle), but that blog post just illustrates the use of G71 and G71 parameters.
This cnc programming example shows a complete contour cutting with G71 and finish cut on contour with G70.
G70 finishing cycle for fanuc cnc control can also be used with G72 Facing cycle for fanuc control. Usage of G70 Finishing cycle with G72 Facing cycle is same as shows here in the following example.

Program Example

CNC Programming Example with Fanuc G71 Rough Turning Cycle and G70
N10 G00 G90 X142 Z171
                    N20 G71 U4 R1
                    N30 G71 P40 Q110 U4 W2 F0.3
                    N40 G00 X40
                    N50 G01 Z140 F0.2
                    N60 G01 X60 Z110
                    N70 G01 Z90
                    N80 G01 X100 Z80
                    N90 G01 Z60
                    N110 G01 X140 Z40
                    N120 G70 P40 Q110
                    N130 G00 X200 Z220
                    N140 M30

CNC Programming Examples - Pattern Drilling

Fanuc Lathe Programming Example Using G70, G71, G74 for ID Machining

Fanuc lathe programming example which uses Fanuc canned cycle
  • G71 Turning Cycle
  • G70 Finish Cycle
  • G74 Peck Drilling Cycle
This Fanuc lathe programming example illustrates who to use G71 Turning cycle, G70 Finish cycle, G74 Peck drilling cycle for ID machining (Inside machining, boring operations)

Fanuc Lathe Programming Example

Fanuc Lathe Programming Example Using G71, G70 for ID Machining
N10 G40 G00
        N20 G99
        N30 M5
        N40 M9
        N60 T0101
        N70 G50 S3500
        N80 G96 S0240 M4
        N90 G00 X102. Z0.
        N100 G01 X-2. F0.15 M7
        N110 G00 X150. Z150.
        N120 M9
        N130 T0707
        N140 G97 S0950 M3
        N150 G00 Z3.
        N160 G00 X0.
        N170 G74 R1.0
        N171 G74 X0.0 Z-59.0 Q12000 R0.0 F0.2
        N350 G00 X150. Z150.
        N360 T0505
        N370 G50 S3500
        N380 G96 S0200 M4
        N390 G00 X23. Z2.
        N400 G71 U3. R1
        N410 G71 P420 Q530 U-0.5 W0.2 F0.3
        N420 G41 G00 X72.
        N440 G01 Z-21.
        N450 G03 X66. Z-24. I-3. K0.
        N460 G01 X54.
        N470 G02 X48. Z-27. I0. K-3.
        N480 G01 Z-41.
        N490 G03 X42. Z-44. I-3. K0.
        N500 G01 X30.
        N510 G02 X24. Z-47. I0. K-3.
        N520 G01 Z-59.
        N530 G01 X23.
        N540 G40
        N550 G00 X150. Z150. F0.3
        N560 T1111
        N570 G50 S4500
        N580 G96 S0380 M4
        N590 G41 G00 X72. Z2.
        N600 G70 P420 Q530
        N610 G40
        N620 G00 X23. Z2.
        N630 G00 X200. Z150.
        N640 M5
        N650 M30

Tools & Oprations

T0101 Turning Tool – Facing Operation
T0707 Tip Drill Tool – Drilling
T0505 Boring Bar – Internal machining (ID machining)
T1111 Boring Bar – Internal finish machining


CNC Lathe Programming Exercise Fanuc G71 Turning Cycle, G74 Peck Drilling Cycle

CNC programming exercise for cnc lathe machinists who work on Fanuc cnc control (or similar cnc control).
This cnc programming exercise use
Fanuc G71 Turning Cycle
Fanuc G74 Peck Drilling Cycle
  • CNC Lathe Programming Exercise
    • Used Tools & Operations

CNC Lathe Programming Exercise

CNC Lathe Programming Exercise Fanuc G71, G74 Cycles
N10 G40 G00
            N20 G99
            N60 T0101
            N70 G50 S3500
            N80 G96 S0240 M4
            N90 G00 X72. Z0.1
            N100 G01 X-1.6 F0.12 M7
            N110 G00 X150. Z150.
            N120 M5
            N130 M9
            N140 T0303
            N150 G97 S2500 M3
            N160 G00 X0. Z3.
            N170 G01 Z-6. F0.1 M7
            N180 G00 Z2.
            N190 G00 X150. Z150.
            N210 T0707 M7
            N220 G97 S0884 M3
            N230 G00 Z3.
            N240 G00 X0.
            N250 G74 R1.0
            N260 G74 X0.0 Z-68.326 Q18000 F0.22
            N380 G00 X200.
            N400 G00 Z100.
            N500 T0404 M7
            N510 G50 S3500
            N520 G96 S0240 M4
            N530 G00 Z1.
            N540 G00 X70.
            N550 G71 U4. R1
            N560 G71 P570 Q650 U0.6 W0.2 F0.35
            N570 G42 G00 X24.
            N580 G01 Z0.
            N590 G01 X28. Z-2.
            N600 G01 Z-72.
            N610 G02 X32. Z-74. I2. K0.
            N620 G01 X62.
            N630 G01 X68. Z-77.
            N640 G01 Z-90.
            N650 G40
            N660 G00 X150.
            N680 G00 Z70.
            N690 T0202 M7
            N700 G50 S4500
            N710 G96 S0380 M4
            N720 G00 X16. Z3.
            N730 G42 G01 Z0. F0.1
            N740 G01 X24.
            N750 G01 X28. Z-2.
            N760 G01 Z-72.
            N770 G02 X32. Z-74. I2. K0.
            N780 G01 X62.
            N790 G01 X68. Z-77.
            N800 G01 Z-90.
            N810 G40
            N820 G00 X150. Z150.
            N830 M5
            N840 M9
            N850 M30

Used Tools & Operations

  • T0101 Turning Tool – Rough Facing
  • T0303 Center Drill – Center Drilling
  • T0707 Twist Drill – Drilling
  • T0404 Turning Tool – Rough Turning
  • T0202 Turning Tool – Finish Contour Cutting


Face Grooving with G74 Peck Drilling Cycle CNC Programming Tutorial

  • G74 Peck Drilling Cycle
  • Face Grooving with G74 Peck Drilling Cycle

G74 Peck Drilling Cycle

G74 peck drilling cycle be used in variety of ways, from peck drilling to face grooving.
The G74 Peck drilling in already discussed here Simple CNC Lathe Drilling with Fanuc G74 Peck Drilling Cycle.
The cnc programming example below shows how face grooving can be machined with the help of G74 peck drilling canned cycle.
With face grooving operations the tool is fed axially rather than radially toward the end surface of the workpiece.

Face Grooving with G74 Peck Drilling Cycle

Face Grooving with G74 G Code a CNC Programming Tutorial
N10 G50 S2000 T0100
                N20 G96 S80 M03
                N30 G00 X50.0 Z1.0 T0101
                N40 G74 R1.0
                N50 G74 X10.0 Z-10.0 P10000 Q3000 F0.1
                N60 G00 X200.0 Z200.0 T0100
                N70 M30

Simple CNC Lathe Drilling with Fanuc G74 Peck Drilling Cycle

Here is a cnc programming example for simple drilling on a cnc lathe machine. CNC Fanuc control has a very powerful and versatile peck drilling cycle (Fanuc G74) which relieves us from many unwanted chores. Although Fanuc G74 peck drilling cycle for fanuc cnc control can be used in variety of ways but this cnc programming example is just doing a simple peck drilling. One thing for newbies in cnc field is that we can simply drill a component by just giving a feed with G01.
N10 G00 X0 Z10
                    N20 G01 Z-30 F0.2
                    N30 G01 Z10 F1
If we can drill with the above method them why use a peck drilling cycle. Actually peck drilling (Fanuc G74) gives us some hidden benefits like
  • Longer drill life
  • Proper chip breaking
  • Proper chip removal
  • Prevents component from heating
  • Smooth drilling
  • Easy to program
So here is the simple cnc program example which shows simple cnc peck drilling (Fanuc G74) on a cnc lathe machine

Simple CNC Lathe Drilling with Fanuc G74 Peck Drilling Cycle
N10 T5
                    N20 G97 S500 M03
                    N30 G00 X0 Z2
                    N40 G74 R1
                    N50 G74 Z-60 Q30000 F0.1
                    N60 G00 X100 Z100
                    N70 M30
The above cnc program code shows that the tool no.5 which is a drill, will drill the component with the peck drilling cycle G74.
The R in first block shows the amount ( 1mm) the drill will get back after it drills 30 mm every time.