Ladder Logic Clear Function

KronoTech

PLC

Ladder Logic

Basic

Counters

Timer

Arithmetic

Comparison

Functions

ABS

CLR

CPT

SCL

SCP

SQR

SWP

XPY

Trig Functions

RSLogix 5000

Structured Text

HMI

Instruments

CLR - Clear

When Clear instruction is executed it sets all bits of a word to zero. Upon execution of this instruction, all arithmetic status bits are reset.

Example

Equation: N7:80 = 0;

Ladder Logic Solution

Set all the bits for the integer word N7:80.

CLR - SLC 500 Beginners Guide

Example

Equation: F8:80 = 0;

Ladder Logic Solution

Set all the bits for the float word F8:80.

CLR - SLC 500 Beginners Guide

Example

Equation: C5:80.PRE = 0;

Ladder Logic Solution

Set all the bits for the counter preset value C5:80.PRE.

CLR - SLC 500 Beginners Guide

Example

Equation: T4:80.ACC = 0;

Ladder Logic Solution

Set all the bits for the Timer accumulation value T4:80.ACC.

CLR - SLC 500 Beginners Guide

Note

  • Clear will reset all the bits in a word to zero. The destination must be a word.
  • Upon execution of this instruction, all arithmetic status bits are reset.

Quick Links

PLC Languages

Ladder Logic
Function Block
Structure Text
SFC
Mnemonic

Ladder Logic

Basic
Counters
Timer
Arithmetic
Comparison
Functions
Trig Functions

Instruments

Switches

HMI

Advantages
Alarms
Trends

Other

Bottle Application