Click Plc Software

  1. Click Plc Software Update
  2. Click Plc Software Manual
  3. Click Plc Hmi Software

The program control instructions will allow us to specify what parts of the logic get solved and when this happens. This will control how the PLC will scan and solve your logic in your program.

Previously in this series we have discussed:
System Hardware – Video
Installing the Software – Video
Establish Communication – Video
Numbering System and Addressing – Video
Timers and Counters
– Counter Video
– Timer Video
Compare and Math Instructions – Video
The programming software and manuals can be downloaded from the Automation Direct website free of charge.

Welcome to the CLICK PLC Programming Software. Version 2.50 Sept 18, 2019 - This document describes some of the changes in this release of the CLICK PLC Programming Software. It also includes known issues as well as updated information for the documentation provided with the software. Here is a sample CLICK PLC program, that might be used to control a stack light. Suppose we connected a switch to the first input on the CLICK CPU module, and a stack light to the first output. This simple PLC program could be used to associate the switch with the light, and to provide on/off control of the light via the switch.

Click PLC Program Control Instructions

Program control (flow) instructions in the Click PLC will utilize interrupts and subroutines. In the last post on Click PLC Compare and Math Instructions, we discussed interrupts. They can be timed or event (Built-in inputs on the CPU.) When the interrupt happens it will immediately go and solve the logic in the interrupt and then return to the instruction following the location that it was called. This can and will happen at any time throughout the scan of the PLC.

Software
Interrupt – Click Program Control

Let’s take a look at an example of an interrupt. We will flash an output on for 3 seconds and off for 3 seconds. A review of entering interrupts can be found in our last post. Click PLC Compare and Math Instructions

We will be using software interrupt 1. The interval time will be 3 seconds and it will call up our interrupt routine called ‘Flasher 3sec’.

Here is the interrupt program quick guide that will be displayed as a reminder of the way in which interrupts are used.

The code that we use for the flasher is just a normally closed contact going to the output of the same contact. Since this logic will only execute once every three seconds, it will alternate the output on and off.

Subroutines – Click Program Control

Subroutines are blocks of code that will get executed when they are called from the main program. This differs from the interrupt because with subroutines we have complete control of when it will be executed in relation to the main program. In the Click PLC, we can have 986 subroutines. This means that we will have 986 calls or more in the main program to execute the code in the subroutine. We cannot have nested subroutines. This means that each subroutine must return to the main program. It cannot call another subroutine.
When a Subroutine program is not called during a scan of the main program the memory bits and data registers within the subroutine will maintain their status unless some other part of the program changes their status or data.

The purpose of subroutines is to organize your code into manageable pieces. These pieces can also be re-usable. The readability of your PLC program improves when using subroutines because you are just looking at smaller pieces of code. The alternative would be all of the rungs in just the main program. This is hard to read and especially troubleshoot when things are not working.
Here is what happens when scanning the program:

  1. Main program logic is scanned/solved until it reaches a subroutine call
  2. Subroutines logic is scanned /solved until it reaches the return statement
  3. The main program logic continues to scan/solve with the rung that follows the subroutine call
  4. This will continue until the End statement is read which will then complete the rest of the PLC scan and start again

Note: Interrupt routines can happen at any time and the logic will continue to be solved after the logic of the interrupt is executed.

Subroutine Example – Click Program Control

Let’s look at an example. We will have two motors that need to be controlled. Each motor will have a start, stop and jog push buttons.
The first thing that we will do is make our subroutines. (Motor 1 and Motor 2)

To make a new subroutine, you can do one of the following.
Main Menu – Program | Add new subroutine program…
Keyboard Shortcut – Control ‘U’ – CTRL+ U
Navigation Window – Right Click on ‘Subroutine Program’ and select ‘Add New Subroutine Program CTRL+ U’

Enter the name of the subroutine. (Motor 1) Hit OK. The subroutine program quick guide will now appear. It will remind us of how to use the subroutine program. Hit OK.

Under the navigation window, we will now see our subroutine Motor 1. Double click on it and we will enter the following code for motor 1.

You will notice that the subroutine background defaults to green. The interrupt background is red. This can be changed by going to the following menu selection. Main Menu – Setup | Software Setup…
Now repeat the steps above for another subroutine for motor 2. It should look like the following:

Click Plc Software Update

Under the navigation window, double-click the main program. We can now call our subroutines that we have just made in the main program so that they will execute. We will use unconditional rungs and the ‘Call’ instruction. Enter the following on the main program.

Note: Since we created our subroutines before using the call instruction they are available in the pull down menu of the instruction. We could also have added a new subroutine by this same instruction.

Looking at the navigation window we can see our two subroutines and interrupt the program.

Download the Click PLC Program Control sample PLC program.

Controlling our program is easy with subroutines and interrupts. The advantage is that our program will also be easier to read, understand and troubleshoot.

Software

Next time we will look at shift register instruction.

Watch on YouTube: Click PLC Program Control Instructions
If you have any questions or need further information please contact me.
Thank you,
Garry
If you’re like most of my readers, you’re committed to learning about technology. Numbering systems used in PLCs are not difficult to learn and understand. We will walk through the numbering systems used in PLCs. This includes Bits, Decimal, Hexadecimal, ASCII, and Floating Point.

To get this free article, subscribe to my free email newsletter.
Use the information to inform other people how numbering systems work. Sign up now.

The ‘Robust Data Logging for Free’ eBook is also available as a free download. The link is included when you subscribe to ACC Automation.


Click

Firmware is usually PLC operating system code that is written into a read only memory. The BIOS (Basic Input Output System) of a PC (personal computer) is a good example of firmware. It provides the low level interface between the hardware and software. The Click PLC firmware comes with the programming software.
https://support.automationdirect.com/products/clickplcs.html
We will be updating our firmware of our Click PLC from 2.10 to 2.30. Let’s get started!

Previously in this series we have discussed:
System Hardware – Video
Installing the Software – Video
Establish Communication – Video
Numbering System and Addressing – Video
Timers and Counters
– Counter Video
– Timer Video
Compare and Math Instructions – Video
Program Control Instructions – Video
Shift Register – Video
Drum Instruction – Video
Send and Receive Instructions – Video
AdvancedHMI Communiation – Video
Create an Analog Voltage Input Tester for a PLC – Video
Wiring Testing Analog PLC Input Click – Video
Modbus RTU Click PLC Master to BRX PLC Slave Communication – Video
The programming software and manuals can be downloaded from the Automation Direct website free of charge.

Connect to the Click PLC


When we first start the click plc software we are given an option to connect to PLC. Select this option.
We are connecting through the Ethernet port of the Click PLC. Select connect.
A warning message is displayed if the program in the software and PLC do not match. We will read the project from the PLC. Select OK.

Click Plc Software Manual

Update Firmware


We are now online with the PLC. Call up the ‘Update Firmware’ by selecting from the main menu | PLC | Update Firmware… You can also get to this selection by using the PLC tab under the Navigation Menu. Select Update Firmware. See figure above.
Our update firmware window will now be displayed. You will see the current firmware available in the software and the current firmware version in the PLC. Hitting refresh will read the version in the PLC again. We will be updating from version 2.10 to 2.30.
Hitting the View Firmware History…
This will show you the new features of the firmware that we will be installing. Hit Close to close the firmware history window.
Hit Update on our Update Firmware window.
Updating the firmware must be done in stop mode of the PLC. Switch the mode switch and then press Yes.
Note: Our program that we have saved previously will have to be downloaded to the PLC after our firmware update has been completed. This will erase the program in the PLC.


Our update will now start.
A CLICK Programming Software window will indicate that the firmware update was successful. Hit OK.
Verify the Firmware Update
Call the Update Firmware window again.
Our PLC now has been updated to the newest version.
Download Program
Download the program back into the Click PLC.
We have now successfully updated our click PLC firmware.
Watch the video below to see the Click PLC firmware get updated.

Click PLC Support Links

The Click PLC can be programmed using free Click programming software from Automation Direct. Here is a link to the software.
https://support.automationdirect.com/products/clickplcs.html
The following links will help you to install the software and establish communication.
https://accautomation.ca/click-plc-installing-the-software/
https://accautomation.ca/click-plc-establish-communication/
The entire Click PLC series can be found at the following URL:
https://accautomation.ca/series/click-plc/

Watch on YouTube : Click PLC – Update Firmware
If you have any questions or need further information please contact me.
Thank you,
Garry
If you’re like most of my readers, you’re committed to learning about technology. Numbering systems used in PLC’s are not difficult to learn and understand. We will walk through the numbering systems used in PLCs. This includes Bits, Decimal, Hexadecimal, ASCII and Floating Point.

Click Plc Software

To get this free article, subscribe to my free email newsletter.
Use the information to inform other people how numbering systems work. Sign up now.

The ‘Robust Data Logging for Free’ eBook is also available as a free download. The link is included when you subscribe to ACC Automation.

Plc

Click Plc Hmi Software