Data Types Represent Values Such As numbers, real numbers, strings, and Boolean values, Each data type has a specific range of values and operations that can be performed on it. All Data Type Have Some Reserved Memory For Storing Value In That Memory. for example a real data type store only real number like 1.2345,, 3.145 etc. Data Type Store Value In a Memory Space, Each Data Type Have Reserved Space Of Memory. When You Define Data Types To A Identifier, tag or variable, Data Type Reserved Space For Your Identifier tag or variable And Show How Values Are Interpreted To Identifier. Each Data Types Have Lower Limit And Upper Limit. If Value Above Or Below The Data Type Limit Than Value Not Stored In The Memory Space So Carefully Assign Data Type When You Make A Program. In this article we discuss Plc Standard Data Types.
boolean data type store either 0 or 1. where 0 Represent False and 1 Represent True. memory space for a bool data type is 1 Bit Of Memory Area And Have 0 Or 1 Value. bool data type or Boolean data type is very important for all digital input and output. bool data type used switches, pressure switches, limit switches, push button. Below is the example of bool data type in a codesys plc. a simple momentary pushbutton start and stop when push button pressed than motor start if motor start and stop push button pressed than motor stop. in this program example all input and output represent bool value. Status Of PLC FLAGS Like Overflow, Under Flow, Error, Plc Status also used bool data type.
integer data type represent number without decimal place. integer not store any value after decimal so make sure your requirement. range for a integer data type is depend on plc but in standard format rang of an integer data type is -32768 To 32767 .Size Of integer Data Type Is 16 bit. in a plc program keyword for an integer data type isINT.
Unsigned INTEGER or UINT is data type that represent or hold only numerical value. unsigned integer data type not store floating point, real number, number after decimal and negative value. like an integer data type UINT not store negative value only store all positive value. The Range Of Value Is From 0 To 65535. memory is 16 bit. keyword for a Unsigned INTEGER is UINT.
double integer or DINT is 32 Bit integer data type, And the range double integer Values From -2147483648 To 2147483647. double integer data type store all numerical value without decimal. double integer data type not store any real or floating value range of double integer is double to integer data type. double integer store more value than integer. Keyword for double integer is DINT.
Unsigned double integer or UDINT is 32 Bit integer data type, And the range Unsigned double integer From 0 To 4294967295. Unsigned double integer only represent positive values. real values and negative value not store in Unsigned double integer. keyword for Unsigned Double integer is UDINT.
REAL Data Type is a very important in industrial automation because all type of analog reading like temperature, distance, position, level etc are real data type. real data type store any numerical value with decimal place. like 1.23, 4.0, 5.690,473.12, -123.24567 etc. Real Data Type Is 32 Bit Memory Size, Numbers Based On IEEE754. The Mantissa Is 23 Bits And The Exponent Is 8 Bits. The Values Range For REAL Values Is Between -3.402823466*E38 To -1.175494351*E-38, 0.0, +1.175494351*E-38 To +3.402823466*E38. Real Values Mostly Used In PLC Programming For Scaling A Transmitter, Addition, Multiplication Etc. all integer data type like DINT, INT, UINT etc. store numerical value without decimal but real data type store any numerical value. keyword for real data type is REAL
some plc also support LREAL Data Type. LREAL 64 Bits And Range From 2.2250738585072014e-308 To 1.7976931348623158e+308. LREAL same as real data type but range of storing value is double.
string data type represent sequence of characters it store onle sequence of characters. in a plc string data type is simple text processing data type. String data type store only 1 To 255 Characters. string data type represent only ASCII Characters. The String Must Be Enclosed In Single Quotes. The Syntax Of String Data Type IsString[N] =''; Where N Is A Number Of Characters, The Default Number Of Characters For STRING Is depend on plc. in a string data type Space Is Counted As 1 and it is a case sensitive data type.
Word Data Is Fixed-Size Group of Bits or Bytes That Can Represent a Binary Value within a Specified Range. A Variable Of The Data Type WORD Consists Of 16 Binary States. The Switching States Of 16 In/Outputs Can Be Combined As A Unity In One Word (WORD). It Provides A Basic Unit Of Memory Allocation And Manipulation. Keyword for a word data type is WORD.
DWord Is Double Word Data Type It's A 32bit Data Type, And Range Of This Data Type Is 0–4294967295. Other Is Same As Word Data Type. keyword for a Dword data type is DWORD.
a time data type used to represent a timer preset value, elapsed time etc. it represent only timer value. Duration Data Must Be Delimited On The Left By The Prefix T# Or TIME#. Time Units Seconds, Milliseconds, Second Etc. Size Of Time Data Type Is Depend On PLC Type. typically for a time data type is 16 Bit and range for a time is 0.01 To 327.67 Seconds And for a 32 Bit TIME Data Type Range From 0.01 To 21,474,836.47 Seconds. if Both Time Data Type Resolution Is 10 Ms. Example Of TIME Data Type.Please Note That The Time Entries Must Be Order Of D:H:M:Ms According To Length, But You Are Not Required To Include All Time Increments. Maximum Value: 49d17h2m47s295ms (4194967295 Ms).
a date type store date in Any Date With Format of Year-Month-Day. Possible Values: 1970-00-00 To 2106-02-06.Beginning With A "D#", "D#", "DATE#" Or "Date#".The Format Of D#YYYY-MM-DD Or DATE#YYYY-MM-DD.
TIME_OF_DAY Store Time Of Day In The Format Of TOD#HH:MM:SS Or TIME_OF_DAY#HH:MM:SS.The Range Of Values For TIME_OF_DAY Values Is From TOD#00:00:00–TOD#23:59:59.
Data Type DATE_AND_TIME Store Combination Of Date And The Time Of Day, Data Type Date_and_time Begin With "Dt#", "DT#", "DATE_AND_TIME#" Or "Date_and_time#". Place A Hyphen After The Date Followed By The Time. Possible Values Declaration: 1970-00-00-00:00:00 To 2106-02-06-06:28:15.DATE_AND_TIME Store Date As Well As Time In The Format Of DT#YYYY-MM-DD-HH:MM:SS Or DATE_AND_TIME#YYYY-MM-DD-HH:MM:SS.The Range Of Values For DATE_AND_TIME Values Is From DT#2001-01-01-00:00:00– DT#2099-12-31-23:59:59. You Can Use This Data Type For Date And Time Application.
Leonardgrova
September 29, 2025, 2:42 pmLaunch into the breathtaking universe of EVE Online. Become a legend today. Create alongside millions of players worldwide. <a href=https://www.eveonline.com/signup?invc=46758c20-63e3-4816-aa0e-f91cff26ade4>Start playing for free</a>