23 November, 2020

Up Counter Instruction In PLC

Up Counter Description :

  • Count Up Instruction Use to Increment the Value at Output CV.

  • Count Up Input Changes from 0 to 1 (Positive Signal Edge) Current Counter Value Increment at Output CV.
  • Counter Value Increment Each Time When Positive Signal Edge Is Detected.
  • When Counter High Limit Reached, the Signal State at the CU Input no longer effect on the Count up Instruction.
  • Current Counter Value is Greater than or Equal to the Value of the PV Parameter the Output Q is set to Signal State 1.
  • When the Signal State at Input R Changes from 0 to 1 the Value at CV Output is Reset to Zero. 

Up Counter Parameters :


Parameter

Declaration

Data type

Description

CU

Input

BOOL

Count input

R

Input

BOOL

Reset input

PV

Input

Integers

Value at which the output Q is set.

Q

Output

BOOL

Counter status

CV

Output

Integers, CHAR, WCHAR, DATE

Current counter value


Up Counter Example :


Up_Counter
Up Counter

  • When the Signal State of the TAG_1 Changes From 0 to 1, the Count Up Instruction is executed at and the Current Counter Value of the CV Value is Incremented by one.
  • Counter Value is Incremented until the High Limit of the Specified Data Type (INT= 32768) is Reached.
  • When Current Counter Value is Greater than or equal to Zero the value of the PV Value Output Tag_3 Signal State 1.
  • In all other cases, the Output TAG_3 has Signal State 0.
  • When the Signal State at Input TAG_2 Changes from 0 to 1 the Value at CV Output is Reset to Zero.

04 October, 2020

Timer Off Delay (TOF) Timer Description

TOF Timer Description :

  • TOF Timer instruction to set Time Delay resetting of the output by set PT Time of Timer. 
  •  Input Changes From 0 to 1 (positive signal edge) Timer PT time Start and Output change from 0 to 1 (ON).
  •  When PT Time Equal to Elapsed Time Output Change From 1 to 0 (Output OFF).
  • Output Remain On as long as PT Time Running.
  • When PT Time Expire Output change from 1 to 0 (Output OFF).

TOF Timer Parameters :


Parameters

Declaration

Description

IN

Input

Start input

PT

Input

Duration of the off delay

Q

Output

Output that is reset when the time PT expires

ET

Output

Current time value

TOF Timer Timing Diagram :

TOF-TIMER
TOF Timer

TOF Timer Example :

TOF-TIMER-EXAMPLE

  • Start PB change from 0 to 1,TOF Timer Preset Time Start.
  • When Start PB Changes from 0 to 1 Output Change from 0 to 1 (Motor ON).
  • When PT Time Completed Motor Changes From 1 to 0 (Motor OFF).
  • Motor set to on as long as PT Time Running.

03 October, 2020

Timer On Delay (TON) Timer Description

TON Timer Description :

  • TON Timer instruction to set Time Delay of the output by set PT Time of Timer. 
  • Input Changes From 0 to 1 (positive signal edge) Timer PT time Start.
  • When PT Time Equal to Elapsed Time Output Change From 0 to 1 (Output ON).
  • Output Remain On as long as Input is ON.
  • When Input Change from 1 to 0 Output change from 1 to 0 (Output OFF).
  • Timer Starts when new positive edge detect at input side.
  • Current Time Store at ET Output.
  • TON Timer Starts at Set PT Time and ends when PT Time Equal to ET Time.
  •  ET Output Reset when input changes from 1 to 0.

TON Timer Parameters :


Parameters

Declaration

Description

IN

Input

Start input

PT

Input

Duration of the on-delay

Q

Output

Output that is set when the time PT expires

ET

Output

Current time value

TON Timer Timing Diagram :

TON-TIMER
TON Timer

TON Timer Example :


  • Start PB change from 0 to 1 TON Timer Preset Time Start.
  • When PT Time Completed Motor Changes From 0 to 1 (Motor ON).
  • Motor set to on as long as Start PB ON.
  • When Start PB Change from 1 to 0 Motor change from 1 to 0 (Motor OFF).

02 October, 2020

Pulse Timer Description

Pulse Timer Description :

  • Pulse Timer instruction to set the output for a programmed duration.
  • Input Changes From 0 to 1 (positive signal edge) PT time start when timer start.
  • Output set for the duration of PT time start.
  • If new positive edge detects output is not affect when PT time running.
  • Current time value store at ET Output.
  • Timer Starts at set PT Time and ends when the value of the time reach at PT.
  • PT Time elapsed and Input Change From 0 to 1 and Output change from 1 to 0.

Pulse Timer Parameters :


Parameters

Declaration

Description

IN

Input

Start input

PT

Input

Set time value

Q

Output

Pulse output

ET

Output

Current time value

Pulse Timer Timing Diagram :


PULSE-TIMER
Pulse Timer

Pulse Timer Example :


PULSE-TIMER-EXAMPLE

  • Start PB change from 0 to 1 Pulse Timer Preset Time Start and Motor Changes From 0 to 1 (Motor ON).
  • Timer Current Running Time Store at the Elapse Time.
  • When PT Time Completed and Motor Change From 1 to 0 (Motor OFF).

01 October, 2020

Motor Start & Stop Logic with Pushbutton

Logic Description :

  • Two Pushbutton Provide Start and Stop.
  • Start Pushbutton Press Motor Start.
  • Start Pushbutton release motor start continuous.
  • Stop Pushbutton Press motor stop.

✔ First We Make Input and Output List As Per Below.

 

Input List

 

Output List

X0

Start Push Button 

Y0

Motor

X1

Stop Push Button

 

 


Logic Sequence:


  1. Motor Start/Stop Logic
    Motor-Start-Stop

  2. Start Pushbutton Press Motor Start & Start Pushbutton Release Logic
    Motor-Start

  3. Stop Pushbutton Press Motor Stop Logic
    Motor Stop

Download Logic PDF :

Tutorial-1 : Motor Start & Stop Logic with Pushbutton :- Download

26 September, 2020

Basic Ladder Logic Instruction of a PLC

1. Bit Logic Instruction

  • Normally Open (XIC)
  • Normally Close (XIO)
  • Positive Edge
  • Negative Edge
  • Output Energize (OTE)
  • Output Latch (OTL)
  • Output Unlatch (OTU)

2. Timer Logic Instruction

  • Timer On Delay (TON)
  • Timer Off Delay (TOF)
  • Retentive Timer (RTO)

3. Counter Logic Instruction

  • Count Up (CTU)
  • Count Down (CTD)
  • Count UP/Down (CTUD)

4. Comparison Logic Instruction

  • Equal (EQU)
  • Not Equal (NEQ)
  • Greater Than (GRT)
  • Greater Than or Equal (GEQ)
  • Less Than (LES)
  • Less Than or Equal (LEQ)
  • Limit (LIM)

5. Arithmatic Logic Instruction

  • Addition (ADD)
  • Subtraction (SUB)
  • Multiplication (MUL)
  • Division (DIV)

6. Move Logic Instruction

  • Move (MOV)
  • Block Move (BKMV)
  • Copy (COP)
Note :

✅ Various Types of Instruction Available In PLC.

✅ Other Instruction Use By Programmer as per Requirement.

20 September, 2020

Exclusive-NOR Gate Logic in PLC

PLC EXCLUSIVE-NOR Gate 

  • We representing a Exclusive-NOR Logic Gate with two Inputs A and B.
    XNOR-GATE
    Exclusive-NOR Gate

Exclusive-NOR Gate Truth Table :

Inputs

Output

A

B

0

0

1

0

1

0

1

0

0

1

1

1


PLC Exclusive-NOR Logic :

  • When Input A and Input B both are on then upper branch provide result output 1.
  • When input A and Input B both are not activated then lower branch provide output 1.
  • When Input A activated then output 0.
  • When Input B activated then output 0.
PLC-XNORGATE
PLC Exclusive-NOR Gate Logic


18 September, 2020

Exclusive-OR Gate Logic in PLC

PLC EXCLUSIVE-OR Gate 

  • We representing a Exclusive-OR Logic Gate with two Inputs A and B.
    XOR-GATE
    Exclusive-OR Gate
  • Exclusive-OR Gate that gives output when either of the input is 1 but when both are 1.
Exclusive-OR Gate Truth Table :

Inputs

Output

A

B

0

0

0

0

1

1

1

0

1

1

1

0


PLC Exclusive-OR Logic :

  • When Input A and Input B are not on then output 0.
  • When input A is activated then upper branch provide result output 1.
  • When input B is activated then lower branch provide result output 1.
  • When both input A and Input B are activated there is no output.
    PLC-XORGATE
    PLC Exclusive-OR Gate Logic

15 September, 2020

NOR Gate Logic in PLC

PLC NOR Gate

  • We representing a NOR Logic Gate with two Inputs A and B.

NOR-GATE
NOR Gate
  • NOR Gate provide same result is to put NOT gate on each Input and Follow with AND Gate for resulting inverted inputs.

NOR Gate Truth Table :


Inputs

Output

A

B

0

0

1

0

1

0

1

0

0

1

1

0


PLC NOR Logic :

  • Ladder diagram starts with a normally close set of contact Input A and Input B with series with output.
  • There is no input provide to Input A and Input B so contacts are closed an output on.
  • There is Input provide to Input A and Input B so contacts open an output off.
    PLC-NORGATE
    PLC NOR Gate Logic

Featured post

Up Counter Instruction In PLC