Skip to main content

Memory bits used to control inputs and output signals in PLC /Addressing in PLC/PLC Automation by Bestway


Memory bits used to control inputs and output signals in PLC

In Micro controller based device memory is divided into three category i.e. Program, Discrete or Digital Registers and word. Data is held in these Registers. These  Registers come in different sizes, and hold different kinds of data.
Bits or Boolean: Can have values 1 or 0 Condition.  1 is represents On while 0 represents Off.  Bits are the building block for all other types of data. These Boolean values are used for all the input and output devices like sensor and switch inputs, as well as motor or other outputs.

Integers(Multiple Bits):  Multiple-bit integers are usually  8, 16, or 32 consecutive bits and can hold only whole number values. Whole numbers  also Called as Characters (char), Integers (int), long Integers (long int) or Words. Depends on  bit size and whether they are signed or unsigned.   Unsigned  Integers are positive numbers, while signed are positive or negative.
Floating point (Decimal) numbers: Numbers with decimal points, and can be positive or negative integers. They are called floating point numbers (Float), with their larger variety called double floats.

I.              BOOL: Digital Data (True / False)

II.            BYTE: Numerical Data / Bitwise Data (0 - 255)

III.           INT: Numerical Data (-32768 - 32767)

IV.          UINT: Numerical Data (0 - 65535)

V.           SINT: Numerical Data (-128 - 127)

VI.          USINT: Numerical Data (0 - 255)

VII.         DINT: Numerical Data (-2147483648 - 2147483647)

VIII.       WORD: Numerical Data / Bitwise Data (0 - 65535)

IX.          DWORD: Numerical Data / Bitwise Data (0 - 4294967295)

X.           REAL: Numerical Data (-3.402823e+38 - 3.402823e+38)

XI.          ARRAY: Array of Any Data type (Declared as "ARRAY [0..10]      OF DataType)


Understanding the PLC input output Data Types.
Instruction: ADD: Adds the input operands and places the sum in the output register
Inputs
Signal
Data type
Description
EN
BOOL
Enables block operation
IN1 & IN2
SINT,INT,DINT,USINT,UINT,UDINT,REAL,LREAL,TIME,TOD
Input values to be added
Outputs
Signal
Data type
Description
ENO
BOOL
Indicates completion of operation
O
BOOL
Overflow signal, HIGH when the result exceeds the defined variable range
OUT
SINT,INT,DINT,USINT,UINT,UDINT,REAL,LREAL,TIME,TOD
Output value after addition of 2 input values
Representation in Ladder Logic:


Variable View:

When you are activating the load using PLC, must check the data type for particular devices or blocks used in the programming, most of the plc coming with inbuilt address only you need to give inputs address according to the types of plc.
Example.
To describe input and output address. I taken On delay Timer which from the Siemens PLC ladder logic.
On delay Timer
In on delay timer, when input is on output is on after some time delay.



Where,
            In denotes Input,
            Q denotes output,
            PT denotes Preset Time,
            ET denotes Enable Time.






Comments

Popular posts from this blog

What Is SCADA System

SCADA                 Supervisory Control and Data Acquisition or SCADA is an automation control system used in industries such as energy, oil and gas, water power and many more.         The system has a centralized system that monitors and controls the entire country from industrial plants to plant premises.             The SCADA system works by working with signals that communicate through channels to provide the user with remote control of any device in a system.        There are some essential parts composed of highly controllers and monitoring Systems. 1. SCADA system human machine interface or HMI supervisory system remote terminal units 2. RTu  use programmable logic controllers or PLC and communication infrastructure. HMI processes the data and sends it to the human operator. Where they can monitor or control the system.          The supervi...

Introduction to CSS,Typography

  Introduction to CSS What is CSS? CSS (Cascading Style Sheets) is used to control the style and layout of web pages. It allows you to separate content (HTML) from presentation, enabling better design consistency and easier maintenance. Why Use CSS? Enhances the visual appearance of websites. Makes websites responsive for different devices. Reduces duplication by centralizing styles. Enables consistent design across multiple pages. Types of CSS 1.      Inline CSS o     Applied directly to an HTML element using the style attribute. o     Use When: You want to apply a unique style to a single element. Example: html Code start here <p style="color: red; font-size: 16px;">This is an inline-styled paragraph.</p> 2.      Internal CSS o     Defined within a <style> tag in the <head> section of the HTML document. o  ...

Plc (Programmable Logic Controller) Communication/PLC communication protocols/Ethernet/IP

Plc (Programmable Logic Controller) Communication/PLC communication protocols. A program consists of 1 or more instructions that accomplish a task. Before writing the program in plc you'd wish to attach the module with PLC software by using communication port like RS232,Serial Communication,Modbus or Ethernet supported your application. you'd wish to offer the connection to all or any or any your input and out devices, Then you've to write down down the program in plc.. Ladder Logic is that the normal programming language . There are four basic steps within the operation of all PLCs; Input Scan, Program Scan, Output Scan, and Housekeeping. These steps continually happen during a repeating loop.        The communication protocol acts as an agreement between two or more communicating Devices. Extension modules PLC I/O number are often increased through certain additional modules by system extension through a extension lines. In PLC Each module can con...