Inst ToolsInst ToolsInst Tools
  • Ask
  • Courses
  • Videos
  • Q & A
    • Interview
      • Instrumentation
      • Electronics
      • Electrical
      • Practical Questions
    • MCQ
      • Instrumentation MCQ
      • Electrical MCQ
      • Electronics MCQ
      • Control Systems MCQ
      • Analog Electronics MCQ
      • Digital Electronics MCQ
      • Power Electronics MCQ
      • Microprocessor MCQ
      • Multiple Choice Questions
  • EE
    • Electronics
      • Electronics Q & A
      • Electronic Basics
      • Electronic Devices & Circuits
      • Electronics Animation
      • Digital Electronics
    • Electrical
      • Electrical Basics
      • Electrical Q & A
      • Power Electronics
      • Electrical Machines
      • Electrical Animation
      • Power Systems
      • Switchgear & Protection
      • Transmission & Distribution
  • Measure
    • Control Valves
    • Calibration
    • Temperature
    • Pressure
    • Flow
    • Level
    • Analyzers
    • Switches
    • Vibration
    • Solenoid Valve
  • Control
    • PLC Tutorials
    • Control Systems
    • Safety Instrumented System (SIS)
    • Communication
    • Fire & Gas System
  • More
    • Design
    • Tools
    • Animation
    • Basics
    • Formulas
    • Standards
    • TextBooks
    • Common
    • Software
    • Excel Tools
    • Erection & Commissioning
    • Process Fundamentals
    • Videos
    • Books
Search
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Reading: Attendance System PLC Program using CX-Programmer
Share
Notification Show More
Font ResizerAa
Inst ToolsInst Tools
Font ResizerAa
  • Courses
  • PLC Tutorials
  • Control Systems
Search
  • Ask
  • Courses
  • Videos
  • Q & A
    • Interview
    • MCQ
  • EE
    • Electronics
    • Electrical
  • Measure
    • Control Valves
    • Calibration
    • Temperature
    • Pressure
    • Flow
    • Level
    • Analyzers
    • Switches
    • Vibration
    • Solenoid Valve
  • Control
    • PLC Tutorials
    • Control Systems
    • Safety Instrumented System (SIS)
    • Communication
    • Fire & Gas System
  • More
    • Design
    • Tools
    • Animation
    • Basics
    • Formulas
    • Standards
    • TextBooks
    • Common
    • Software
    • Excel Tools
    • Erection & Commissioning
    • Process Fundamentals
    • Videos
    • Books
Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Inst Tools > Blog > PLC Tutorials > Attendance System PLC Program using CX-Programmer

Attendance System PLC Program using CX-Programmer

Design an attendance system with PLC program using CX-Programmer to monitor and count worker entries and exits at the gate.

Last updated: September 20, 2024 3:34 pm
Editorial Staff
PLC Tutorials
No Comments
Share
7 Min Read
SHARE

The Worker Attendance System generally uses an ID Card device to identify workers who will enter the office area. If the database from the ID Card device finds a match in the worker’s data, Face ID will send a signal to the Gate so that the Gate Opens to allow the worker to enter the office.

Contents
Attendance SystemInputs and OutputsPLC Program using CX-Programmer

When the worker has passed the gate, the system will record it and then the gate will Close again. When workers leave the office area, the same procedure will be carried out and data on workers who are still in the office area will be updated.

Attendance System

This PLC program has 3 buttons, the START_SYSTEM (0.00) button is used to Turn On the system, the STOP_SYSTEM (0.01) button is used to Turn Off the system, and the RESET_COUNTER (0.06) button is used to Reset the COUNTER (D0) data to zero value “0”.

Worker Login System

When the Input CARD_ID_IN_TRIGGER (0.02) is in a HIGH state, the GATE_IN_OPEN (100.00) Output will be ON and allow workers to enter the office area. When the SENS_WORKER_IN (0.03) sensor detects that the worker has passed the Gate, the GATE_IN_OPEN Output (100.00) will be OFF.

If within 10 seconds after the Input CARD_ID_IN_TRIGGER (0.02) in HIGH state and the SENS_WORKER_IN (0.03) sensor does not detect a worker passing through the Gate, then the GATE_IN_OPEN Output (100.00) will be OFF.

When the SENS_WORKER_IN (0.03) sensor is in a HIGH state, the data in memory word COUNTER (D0) will increase (+1).

Worker Exit System

When the Input CARD_ID_OUT_TRIGGER (0.04) is in a HIGH state, the GATE_OUT_OPEN (100.02) Output will be ON and allow workers to leave the office area. When the SENS_WORKER_OUT (0.05) sensor detects that the worker has passed the Gate, the GATE_OUT_OPEN (100.02) Output will be OFF.

If within 10 seconds after the Input CARD_ID_OUT_TRIGGER (0.04) in HIGH state and the SENS_WORKER_OUT (0.05) sensor does not detect a worker passing through the Gate, then the GATE_OUT_OPEN (100.02) Output will be OFF.

When the SENS_WORKER_OUT (0.05) sensor is in the HIGH state, the data in memory word COUNTER (D0) will decrease (-1).

Attendance System PLC Program using CX-Programmer

Inputs and Outputs

CommentInput (I)Output(Q)TIMERWord MemoryMemory Bits
START_SYSTEM0.00    
STOP_SYSTEM0.01    
CARD_ID_IN_TRIGGER0.02    
SENS_WORKER_IN0.03    
CARD_ID_OUT_TRIGGER0.04    
SENS_WORKER_OUT0.05    
RESET_COUNTER0.06    
GATE_IN_OPEN 100.00   
GATE_IN_CLOSE 100.01   
GATE_OUT_OPEN 100.02   
GATE_OUT_CLOSE 100.03   
TIMER_1  T0000  
TIMER_2  T0001  
SYSTEM_ON    W0.00
COUNTER   D0 

PLC Program using CX-Programmer

RUNG 0 (SYSTEM ON)

In this Rung, when the START_SYSTEM (0.00) button is pressed, the memory bit SYSTEM_ON (W0.00) changes to the HIGH state. Because it uses Latching, the memory bit  SYSTEM_ON (W0.00) remains in the HIGH state even though the START_SYSTEM (0.00) button has been Released.

The memory bit SYSTEM_ON (W0.00) will change to a LOW state if the STOP_SYSTEM (0.01) button is Pressed.

PLC attendance system design

RUNG 1 (GATE IN OPEN STATE)

When the memory bit SYSTEM_ON (W0.00) and Input from CARD_ID_IN_TRIGGER (0.02) are in the HIGH state, then the GATE_IN_OPEN (100.00) Output will be ON and Timer TIMER_1 (T0000) starts counting up to 10 seconds.

The GATE_IN_OPEN (100.00) Output will be OFF when the NC contact of sensor SENS_WORKER_IN (0.03) or timer TIMER_1 (T0000) is in the HIGH state.

RUNG 2 (GATE IN CLOSE STATE)

When the memory bit SYSTEM_ON (W0.00) is in the HIGH state, the Output GATE_IN_CLOSE (100.01) will be ON.

The GATE_IN_CLOSE (100.01) Output will be OFF when the NC contact of sensor SENS_WORKER_IN (0.03) or GATE_IN_OPEN (100.00) Output in the HIGH state.

RUNG 3 (GATE OUT OPEN STATE)

When the memory bit SYSTEM_ON (W0.00) and the CARD_ID_OUT_TRIGGER (0.04) Input are in a HIGH state, the GATE_OUT_OPEN (100.02) Output will be ON and Timer TIMER_2 (T0001) will start counting up to 10 seconds.

The GATE_OUT_OPEN (100.02) Output will be OFF when the NC contact of sensor SENS_WORKER_OUT (0.05) or timer TIMER_2 (T0001) is in the HIGH state.

Worker attendance tracking with PLC

RUNG 4 (GATE OUT CLOSE STATE)

When the memory bit SYSTEM_ON (W0.00) is in the HIGH state, the Output GATE_OUT_CLOSE (100.03) will be ON.

The GATE_OUT_CLOSE (100.03) Output will be OFF when the NC contact of Input of CARD_ID_OUT_TRIGGER (0.04) or the Output of GATE_OUT_OPEN (100.02) in the HIGH state.

RUNG 5 (COUNTER UP & DOWN)

In this Rung, when the memory bit SYSTEM_ON (W0.00) and the NO contact from SENS_WORKER_IN (0.03) sensor are in the HIGH state, the data in memory word COUNTER (D0) will increase (+1) because it uses the Increment instruction.

But when the memory bit SYSTEM_ON (W0.00) and the NO contact from SENS_WORKER_OUT (0.05) sensor are in the HIGH state, the data in memory word COUNTER (D0) will decrease (-1) because it uses the Decrement instruction.

PLC system for tracking worker attendance

RUNG 6 (RESET COUNTER)

When the NO contact of RESET_COUNTER (0.06) button is pressed, the data in memory word COUNTER (D0) will become zero “0” because the MOV instruction moves zero value “0” to memory word COUNTER (D0).

Read Next:

  • Sanitizer Complex Ladder Logic PLC Example
  • Door Locking System PLC Application Example
  • CX-Programmer Products Sorting & Counting
  • Real-Time Clock in Omron CX Programmer
  • PLC Program for Ceramic Burning Oven
Don't Miss Our Updates
Be the first to get exclusive content straight to your email.
We promise not to spam you. You can unsubscribe at any time.
Invalid email address
You've successfully subscribed !
All About Fieldbus Protocols
Label the Electrical Circuit Schematic
Getting to Know the LED Indications on GE Make PLC
Difference Between Microcontroller and PLC
Up Counter PLC Program
Share This Article
Facebook Whatsapp Whatsapp LinkedIn Copy Link
Share
Leave a Comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

128.3kFollowersLike
69.1kFollowersFollow
208kSubscribersSubscribe
38kFollowersFollow

Categories

Recent Comments

  • Guifty Shimica on Top Non-PLC Certification Courses for Automation Professionals
  • Guifty Shimica on Top Non-PLC Certification Courses for Automation Professionals
  • MIHARITSOA Aina Sitraka on Top Non-PLC Certification Courses for Automation Professionals
  • Vaishnavi on Free Instrumentation Course for Trainee Engineers

Related Articles

How-to do Security of SCADA Systems

How-to do Security of SCADA Systems?

Sorting and Counting Products on Conveyors by Color

PLC Programming for Multi-Color Sorting Conveyor System

Emergency Stop Push button

Emergency Stop Switch Spurious Trip

Address Overlapping in Tia Portal

How to Check Address Overlapping in Tia Portal?

Instrumentation Engineer in Process Plant Project

Instrumentation Engineer in Process Plant Project

Types of Failures in Industrial Automation Systems

Types of Failures in Industrial Automation Systems

Quiz Program Logic Using PLC Programming

Quiz Program Logic Using PLC Programming

SFC Language in PLC Programming

SFC Language in PLC Programming

More Articles

Silicon Carbide Lightning Arresters Working Principle

Profibus DP Master

DP Master System Configuration in PLC

PLC Program for Boolean Expression

PLC Program for Boolean Expression

Questions and Answers on Motors and Generators

HT Motor Problem appears after Disassembly and Reassembly

Thermocouple Law of Intermediate Metals

Thermocouples Law of Intermediate Metals

How is Electricity Generated From Solar Energy

How is Electricity Generated From Solar Energy?

Control 3 Motors with Toggle Switch

PLC Ladder Logic Design: Control 3 Motors with Toggle Switch

Omron PLC for Product Painting with Integrated Weighing System

Omron PLC for Product Painting with Integrated Weighing System

Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?