Seven Segement Clock Display in Rockwell Software Studio 5000
Seven Segement Clock Display in Rockwell Software Studio 5000
This project aims to
build a ladder logic to create a digital clock using 6 seven segment LEDs. Here
the system time is acquired using DATE TIME function available in GSV block of
RS Logix 5000. It gives the time in an array format with 2 digits of hours,
minutes and seconds.
The integer values are
input to division block to get the first digit and it is again given to a
modulus block to get the second digit of the hours, minutes and seconds. Each
of these values obtained are passed on to a comparison block and check for the values
between 0 and 9. With respect to these values, the 7 LEDs must glow. So, the 7
LEDs are linked to an integer variable LED.
Each LED in the HMI is
linked like LED.0, LED.1, and LED.2 etc. There are predefined integer values
that must be passed on to this LED variable with respect to the integer values
obtained from the division and modulo block. The integer values are passed onto
the LEDs at the HMI as binary values either 1 or 0. That's what makes the LEDs
to on and off.
And here the best thing
about HMI is, we can create one single seven segment LED and that can be used
for all the digits of the click and the common one is called as global object.
The LEDs in the global objects are assigned in common to the LED variable and
they're differentiated using different global object parameters.
So, this is how the
seven-segment display is created using RS Logix and factory talk HMI software.
The diagram shown below
is an add-on instruction. Add-On
Instructions are user-defined instructions. When we define an Add-On
Instruction in a project it behaves similarly to a built-in instruction. An
Add-On Instruction enables you to encapsulate your most commonly used logic as
sets of instructions. These instructions let easily reuse sets of commonly used
instructions in your projects and share the instructions to promote consistency
in all projects.
HMI Global Definition
Display Data Type Definition
LocalDateTime Array definition
Logix
5000 routine
Comments
Post a Comment