SlideShare a Scribd company logo
7. Data Types and Addressing
7.1 Data Types
Data Types Summary
Each elementary data type has a defined length. The following table lists the elementary
data types.
Summary
Type and
Description
Size
in
Bits
Format
Options
Range and Number
Notation (lowest to
highest value)_
Example
BOOL(Bit) 1 Boolean text TRUE/FALSE TRUE
BYTE
(Byte)
8 Hexadecimal
Binary
B#16#0 to B#16#FF
2#0 to 2#1111_1111
L B#16#10
L byte#16#10
L2#1011_1010
WORD
(Word)
16 Binary
number
Hexadecimal
number
BCD
Decimal
number
unsigned
2#0 to
2#1111_1111_1111_1111
W#16#0 to W#16#FFFF
C#0 to C#999
B#(0.0) to B#(255.255)
L 2#0001_0000_0000_0000
L W#16#1000
L word#16#1000
L C#998
L B#(10,20)
L byte#(10,20)
DWORD
(Double
word)
32 Binary
number
Hexadecimal
2#0 to
2#1111_1111_1111_1111
2#1000_0001_0001_1000_
1011_1011_0111_1111
number
Decimal
number
unsigned
1111_1111_1111_1111
DW#16#0000_0000 to
DW#16#FFFF_FFFF
B#(0,0,0,0) to
B#(255,255,255,255)
L DW#16#00A2_1234
L dword#16#00A2_1234
L B#(1, 14, 100, 120)
L byte#(1,14,100,120)
INT
(Integer)
16 Decimal
number
signed
-32768 to 32767 L 1
DINT
(Integer, 32
bits)
32 Decimal
number
signed
L#-2147483648 to
L#2147483647
L L#1
REAL
(Floating-
point
number)
32 IEEE
Floating-
point
number
Upper limit:
3.402823e+38
Lower limit: 1.175 495e-
38
L 1.234567e+13
S5TIME
(SIMATIC
time)
16 S7 time in
steps of
10 ms
(default)
S5T#0H_0M_0S_10MS to
S5T#2H_46M_30S_0MS
and
S5T#0H_0M_0S_0MS
L S5T#0H_1M_0S_0MS
L
S5TIME#0H_1H_1M_0S_
0MS
TIME
(IEC time)
32 IEC time in
steps of 1
ms, integer
signed
-
T#24D_20H_31M_23S_6
48MS to
T#24D_20H_31M_23S_6
47MS
L T#0D_1H_1M_0S_0MS
L
TIME#0D_1H_1M_0S_0M
S
DATE
(IEC date)
16 IEC date in
steps of 1
day
D#1990-1-1 to
D#2168-12-31
L D#1996-3-15
L DATE#1996-3-15
TIME_OF_D
AY (Time)
32 Time in
steps of 1 ms
TOD#0:0:0.0 to
TOD#23:59:59.999
L TOD#1:10:3.3
L
TIME_OF_DAY#1:10:3.3
CHAR
(Character)
8 ASCII
characters
'A','B' etc. L 'E'
7.2 Addressing
Storage areas are Inputs, Outputs, Timers, Counters, Memory (Local Variables,
Global Variables) , Data Blocks Pointers.
- Inputs
I(x, y) ---------------------- x = Byte address, y = Bit address
Bytes 0, 1, 2, ..., 255 Bits 0, 1, 2, …, 7
IBx (Input Byte) ---------- Ex.: IB0 = I0.0, I0.1, …,I0.7
IWx (Input Word) -------- Ex.: IW0 = (IB0, IB1)
= (I0.0, I0.1, …,I0.7, I1.0, I1.1,…, I1.7)
IDx (Input DWord) ------ Ex.: ID0 = (IW0, IW2) = (IB0, IB1, IB2, IB3)
= (I0.0, I0.1,…,I0.7, I1.0, I1.1,…,I1.7, I2.0, I2.1, I2.7, I3.0, I3.1, I3.7)
___________________________________________
- Outputs
Q(x, y) ---------------------- x = Byte address, y = Bit address
Bytes 0, 1, 2, ..., 255 Bits 0, 1, 2, …, 7
QBx (Output Byte) ---------- Ex.: QB0 = Q0.0, Q0.1, …,Q0.7
QWx (Output Word) -------- Ex.: QW0 = (QB0, QB1)
= (Q0.0, Q0.1, …,Q0.7, Q1.0, Q1.1,…, Q1.7)
QDx (Output DWord) ------ Ex.: QD0 = (QW0, QW2) = (QB0, QB1, QB2, QB3)
=(Q0.0, Q0.1,…,Q0.7, Q1.0, Q1.1,…,Q1.7, Q2.0, Q2.1, Q2.7, Q3.0, Q3.1, Q3.7)
_____________________________________
- Memory (M = Markers or Global Memory, L = Local Memory)
M(x, y) ---------------------- x = Byte address, y = Bit address
Bytes 0, 1, 2, ..., 255 Bits 0, 1, 2, …, 7
MBx (Memory Byte) ---------- Ex.: MB0 = M0.0, M0.1, …,M0.7
MWx (Memory Word) -------- Ex.: MW0 = (MB0, MB1)
= (M0.0, M0.1, …,M0.7, M1.0, M1.1,…, M1.7)
MDx (Memory DWord) ----- Ex.: MD0 = (MW0, MW2)= (MB0, MB1, MB2, MB3)
=(M0.0, M0.1,…,M0.7, M1.0, M1.1,…,M1.7, M2.0, M2.1, M2.7, M3.0, M3.1, M3.7)
- Timers
T1, T2, T3, …, Tn (According to the available number of timers)
_____________________________________
- Counters
C1, C2, C3,…, Cn (According to the available number of counters)
_____________________________________
- Data Blocks

More Related Content

What's hot

Ladder logic on Soft-Master Honeywell PLC ML50
Ladder logic on Soft-Master Honeywell PLC ML50Ladder logic on Soft-Master Honeywell PLC ML50
Ladder logic on Soft-Master Honeywell PLC ML50
Shivam Singh
 
Plc example presentation
Plc example presentationPlc example presentation
Plc example presentationRoshit Kadiru
 
Programming with PIC microcontroller
Programming with PIC microcontroller Programming with PIC microcontroller
Programming with PIC microcontroller
Raghav Shetty
 
Brochure servo siemens v90
Brochure servo siemens v90Brochure servo siemens v90
Discrete Input module block diagram and wiring in PLC
Discrete Input module block diagram and wiring in PLCDiscrete Input module block diagram and wiring in PLC
Discrete Input module block diagram and wiring in PLC
parixitpatel6
 
Ladder Intro Tutorial
Ladder Intro TutorialLadder Intro Tutorial
Ladder Intro Tutorial
plc_course
 
Modbus Data Communication Systems
Modbus Data Communication SystemsModbus Data Communication Systems
Modbus Data Communication SystemsLiving Online
 
Network Protocol
Network ProtocolNetwork Protocol
PIC 16F877A by PARTHIBAN. S.
PIC 16F877A   by PARTHIBAN. S.PIC 16F877A   by PARTHIBAN. S.
PIC 16F877A by PARTHIBAN. S.
parthi_arjun
 
Programmable logic controllers
Programmable logic controllersProgrammable logic controllers
Programmable logic controllers
Naveen Chandrasekar
 
Key board interfacing with 8051
Key board interfacing with 8051Key board interfacing with 8051
Key board interfacing with 8051
DominicHendry
 
Allen Bradley- Micrologix PLC Instructions
Allen Bradley- Micrologix PLC InstructionsAllen Bradley- Micrologix PLC Instructions
Allen Bradley- Micrologix PLC Instructions
NFI - Industrial Automation Training Academy
 
Introduction to pic microcontroller
Introduction to pic microcontrollerIntroduction to pic microcontroller
Introduction to pic microcontroller
Siva Kumar
 
8051 programming in c
8051 programming in c8051 programming in c
8051 programming in c
Dr. Ritula Thakur
 
PLC Internal Relays
PLC Internal RelaysPLC Internal Relays
PLC Internal Relays
Ameen San
 
Introduction to ARM LPC2148
Introduction to ARM LPC2148Introduction to ARM LPC2148
Introduction to ARM LPC2148
Veera Kumar
 
PIC16F877A interfacing with LCD
PIC16F877A interfacing with LCDPIC16F877A interfacing with LCD
PIC16F877A interfacing with LCD
sunil polo
 
What Is a Programmable Logic Controller (PLC)
What Is a Programmable Logic Controller (PLC)What Is a Programmable Logic Controller (PLC)
What Is a Programmable Logic Controller (PLC)yogesh8418
 

What's hot (20)

Ladder logic on Soft-Master Honeywell PLC ML50
Ladder logic on Soft-Master Honeywell PLC ML50Ladder logic on Soft-Master Honeywell PLC ML50
Ladder logic on Soft-Master Honeywell PLC ML50
 
Plc example presentation
Plc example presentationPlc example presentation
Plc example presentation
 
Programming with PIC microcontroller
Programming with PIC microcontroller Programming with PIC microcontroller
Programming with PIC microcontroller
 
Brochure servo siemens v90
Brochure servo siemens v90Brochure servo siemens v90
Brochure servo siemens v90
 
Discrete Input module block diagram and wiring in PLC
Discrete Input module block diagram and wiring in PLCDiscrete Input module block diagram and wiring in PLC
Discrete Input module block diagram and wiring in PLC
 
Industrial Automation
Industrial AutomationIndustrial Automation
Industrial Automation
 
Ladder Intro Tutorial
Ladder Intro TutorialLadder Intro Tutorial
Ladder Intro Tutorial
 
Modbus Data Communication Systems
Modbus Data Communication SystemsModbus Data Communication Systems
Modbus Data Communication Systems
 
Network Protocol
Network ProtocolNetwork Protocol
Network Protocol
 
PIC 16F877A by PARTHIBAN. S.
PIC 16F877A   by PARTHIBAN. S.PIC 16F877A   by PARTHIBAN. S.
PIC 16F877A by PARTHIBAN. S.
 
Programmable logic controllers
Programmable logic controllersProgrammable logic controllers
Programmable logic controllers
 
Key board interfacing with 8051
Key board interfacing with 8051Key board interfacing with 8051
Key board interfacing with 8051
 
Allen Bradley- Micrologix PLC Instructions
Allen Bradley- Micrologix PLC InstructionsAllen Bradley- Micrologix PLC Instructions
Allen Bradley- Micrologix PLC Instructions
 
Introduction to pic microcontroller
Introduction to pic microcontrollerIntroduction to pic microcontroller
Introduction to pic microcontroller
 
8051 programming in c
8051 programming in c8051 programming in c
8051 programming in c
 
PLC Internal Relays
PLC Internal RelaysPLC Internal Relays
PLC Internal Relays
 
Introduction to ARM LPC2148
Introduction to ARM LPC2148Introduction to ARM LPC2148
Introduction to ARM LPC2148
 
PIC16F877A interfacing with LCD
PIC16F877A interfacing with LCDPIC16F877A interfacing with LCD
PIC16F877A interfacing with LCD
 
What Is a Programmable Logic Controller (PLC)
What Is a Programmable Logic Controller (PLC)What Is a Programmable Logic Controller (PLC)
What Is a Programmable Logic Controller (PLC)
 
PLC Basic
PLC BasicPLC Basic
PLC Basic
 

Viewers also liked

Top Ten Siemens S7 Tips and Tricks
Top Ten Siemens S7 Tips and TricksTop Ten Siemens S7 Tips and Tricks
Top Ten Siemens S7 Tips and Tricks
DMC, Inc.
 
Siemens s7 300 programming
Siemens s7 300 programming Siemens s7 300 programming
Siemens s7 300 programming
satyajit patra
 
Top Ten Programming Mistakes by People New to Siemens
Top Ten Programming Mistakes by People New to SiemensTop Ten Programming Mistakes by People New to Siemens
Top Ten Programming Mistakes by People New to Siemens
DMC, Inc.
 
PLC - Programmable Logic Controller
PLC - Programmable Logic ControllerPLC - Programmable Logic Controller
PLC - Programmable Logic Controller
Mahesh Vadhavaniya profmjv
 
Simatic step 7 v5 prog
Simatic step 7 v5 progSimatic step 7 v5 prog
Simatic step 7 v5 prog
MARIUS scutaru
 
Stepper motor
Stepper motor Stepper motor
Stepper motor
Ameen San
 
PLC Counters
PLC CountersPLC Counters
PLC Counters
Ameen San
 
PLC arithmatic functions
PLC arithmatic functionsPLC arithmatic functions
PLC arithmatic functions
Ameen San
 
PLC application
PLC applicationPLC application
PLC application
Ameen San
 
ELECTRICAL DISTRIBUTION TECHNOLOGY
ELECTRICAL DISTRIBUTION TECHNOLOGYELECTRICAL DISTRIBUTION TECHNOLOGY
ELECTRICAL DISTRIBUTION TECHNOLOGY
Ameen San
 
Load Characteristics
Load CharacteristicsLoad Characteristics
Load Characteristics
Ameen San
 
Application of Capacitors to Distribution System and Voltage Regulation
Application of Capacitors to Distribution System and Voltage RegulationApplication of Capacitors to Distribution System and Voltage Regulation
Application of Capacitors to Distribution System and Voltage Regulation
Ameen San
 
PLC Traffic Light Control
PLC Traffic Light ControlPLC Traffic Light Control
PLC Traffic Light Control
Ameen San
 
Omron plc training
Omron plc trainingOmron plc training
Omron plc training
Hesham Abdelhady
 
Distribution System Voltage Drop and Power Loss Calculation
Distribution System Voltage Drop and Power Loss CalculationDistribution System Voltage Drop and Power Loss Calculation
Distribution System Voltage Drop and Power Loss Calculation
Ameen San
 
INDUSTRIAL AUTOMATION USING PLC
INDUSTRIAL AUTOMATION USING PLCINDUSTRIAL AUTOMATION USING PLC
INDUSTRIAL AUTOMATION USING PLC
Mehvish Mushtaq
 
T308 system 800xA with AC800M hardware maintenance and troubleshooting
T308 system 800xA with AC800M hardware maintenance and troubleshootingT308 system 800xA with AC800M hardware maintenance and troubleshooting
T308 system 800xA with AC800M hardware maintenance and troubleshooting
Jereme Simmons
 
Newsletter enregistreur video
Newsletter enregistreur videoNewsletter enregistreur video
Newsletter enregistreur video
PrismaInstruments
 
Getting Started With Arduino_Tutorial
Getting Started With Arduino_TutorialGetting Started With Arduino_Tutorial
Getting Started With Arduino_Tutorial
NYCCTfab
 

Viewers also liked (20)

Top Ten Siemens S7 Tips and Tricks
Top Ten Siemens S7 Tips and TricksTop Ten Siemens S7 Tips and Tricks
Top Ten Siemens S7 Tips and Tricks
 
Siemens s7 300 programming
Siemens s7 300 programming Siemens s7 300 programming
Siemens s7 300 programming
 
Top Ten Programming Mistakes by People New to Siemens
Top Ten Programming Mistakes by People New to SiemensTop Ten Programming Mistakes by People New to Siemens
Top Ten Programming Mistakes by People New to Siemens
 
PLC - Programmable Logic Controller
PLC - Programmable Logic ControllerPLC - Programmable Logic Controller
PLC - Programmable Logic Controller
 
Simatic step 7 v5 prog
Simatic step 7 v5 progSimatic step 7 v5 prog
Simatic step 7 v5 prog
 
Stepper motor
Stepper motor Stepper motor
Stepper motor
 
PLC Counters
PLC CountersPLC Counters
PLC Counters
 
PLC arithmatic functions
PLC arithmatic functionsPLC arithmatic functions
PLC arithmatic functions
 
PLC application
PLC applicationPLC application
PLC application
 
ELECTRICAL DISTRIBUTION TECHNOLOGY
ELECTRICAL DISTRIBUTION TECHNOLOGYELECTRICAL DISTRIBUTION TECHNOLOGY
ELECTRICAL DISTRIBUTION TECHNOLOGY
 
Load Characteristics
Load CharacteristicsLoad Characteristics
Load Characteristics
 
Application of Capacitors to Distribution System and Voltage Regulation
Application of Capacitors to Distribution System and Voltage RegulationApplication of Capacitors to Distribution System and Voltage Regulation
Application of Capacitors to Distribution System and Voltage Regulation
 
PLC Traffic Light Control
PLC Traffic Light ControlPLC Traffic Light Control
PLC Traffic Light Control
 
Omron plc training
Omron plc trainingOmron plc training
Omron plc training
 
Distribution System Voltage Drop and Power Loss Calculation
Distribution System Voltage Drop and Power Loss CalculationDistribution System Voltage Drop and Power Loss Calculation
Distribution System Voltage Drop and Power Loss Calculation
 
INDUSTRIAL AUTOMATION USING PLC
INDUSTRIAL AUTOMATION USING PLCINDUSTRIAL AUTOMATION USING PLC
INDUSTRIAL AUTOMATION USING PLC
 
ppt on PLC
ppt on PLCppt on PLC
ppt on PLC
 
T308 system 800xA with AC800M hardware maintenance and troubleshooting
T308 system 800xA with AC800M hardware maintenance and troubleshootingT308 system 800xA with AC800M hardware maintenance and troubleshooting
T308 system 800xA with AC800M hardware maintenance and troubleshooting
 
Newsletter enregistreur video
Newsletter enregistreur videoNewsletter enregistreur video
Newsletter enregistreur video
 
Getting Started With Arduino_Tutorial
Getting Started With Arduino_TutorialGetting Started With Arduino_Tutorial
Getting Started With Arduino_Tutorial
 

Similar to PLC data types and addressing

. computer codes
. computer codes. computer codes
. computer codes
asadsiddique12
 
Data representation
Data representationData representation
Data representationrozanadiana
 
08. Numeral Systems
08. Numeral Systems08. Numeral Systems
08. Numeral Systems
Intro C# Book
 
Bits, bytes and characters
Bits, bytes and charactersBits, bytes and characters
Bits, bytes and characters
Shaikhul Islam Chowdhury
 
1 number systems-binary
1 number systems-binary1 number systems-binary
1 number systems-binaryirdginfo
 
Connect() Mini 2016
Connect() Mini 2016Connect() Mini 2016
Connect() Mini 2016
Jeff Chu
 
Logic Design 2009
Logic Design 2009Logic Design 2009
Logic Design 2009
lionking
 
Unit 4 combinational circuit
Unit 4 combinational circuitUnit 4 combinational circuit
Unit 4 combinational circuit
Kalai Selvi
 
Unsigned and Signed fixed point Addition and subtraction
Unsigned and Signed  fixed point Addition and subtractionUnsigned and Signed  fixed point Addition and subtraction
Unsigned and Signed fixed point Addition and subtraction
ciyamala kushbu
 
Digital VLSI - Unit 2.pptx
Digital VLSI - Unit 2.pptxDigital VLSI - Unit 2.pptx
Digital VLSI - Unit 2.pptx
SanjaiPrasad
 
Number System.pdf
Number System.pdfNumber System.pdf
Number System.pdf
Sweta Kumari Barnwal
 
Number system
Number systemNumber system
Number system
Ashish Kumar Thakur
 
Octal to binary and octal to hexa decimal conversions
Octal to binary and octal to hexa decimal conversionsOctal to binary and octal to hexa decimal conversions
Octal to binary and octal to hexa decimal conversions
Afrasiyab Haider
 
DESIGN OF COMBINATIONAL LOGIC
DESIGN OF COMBINATIONAL LOGICDESIGN OF COMBINATIONAL LOGIC
Combinational Logic Circuits
Combinational Logic CircuitsCombinational Logic Circuits
Combinational Logic Circuits
Prof. Swapnil V. Kaware
 
Digital electronics
Digital electronicsDigital electronics
Digital electronics
Sukriti Dhang
 
Number system and codes
Number system and codesNumber system and codes
Number system and codes
Abhiraj Bohra
 
Binary codes
Binary codesBinary codes
Binary codes
GargiKhanna1
 
Digital Electronics Basics by Er. Swapnil Kaware
Digital Electronics Basics by Er. Swapnil KawareDigital Electronics Basics by Er. Swapnil Kaware
Digital Electronics Basics by Er. Swapnil Kaware
Prof. Swapnil V. Kaware
 

Similar to PLC data types and addressing (20)

. computer codes
. computer codes. computer codes
. computer codes
 
Data representation
Data representationData representation
Data representation
 
08. Numeral Systems
08. Numeral Systems08. Numeral Systems
08. Numeral Systems
 
Bits, bytes and characters
Bits, bytes and charactersBits, bytes and characters
Bits, bytes and characters
 
UNIT-1_CSA.pdf
UNIT-1_CSA.pdfUNIT-1_CSA.pdf
UNIT-1_CSA.pdf
 
1 number systems-binary
1 number systems-binary1 number systems-binary
1 number systems-binary
 
Connect() Mini 2016
Connect() Mini 2016Connect() Mini 2016
Connect() Mini 2016
 
Logic Design 2009
Logic Design 2009Logic Design 2009
Logic Design 2009
 
Unit 4 combinational circuit
Unit 4 combinational circuitUnit 4 combinational circuit
Unit 4 combinational circuit
 
Unsigned and Signed fixed point Addition and subtraction
Unsigned and Signed  fixed point Addition and subtractionUnsigned and Signed  fixed point Addition and subtraction
Unsigned and Signed fixed point Addition and subtraction
 
Digital VLSI - Unit 2.pptx
Digital VLSI - Unit 2.pptxDigital VLSI - Unit 2.pptx
Digital VLSI - Unit 2.pptx
 
Number System.pdf
Number System.pdfNumber System.pdf
Number System.pdf
 
Number system
Number systemNumber system
Number system
 
Octal to binary and octal to hexa decimal conversions
Octal to binary and octal to hexa decimal conversionsOctal to binary and octal to hexa decimal conversions
Octal to binary and octal to hexa decimal conversions
 
DESIGN OF COMBINATIONAL LOGIC
DESIGN OF COMBINATIONAL LOGICDESIGN OF COMBINATIONAL LOGIC
DESIGN OF COMBINATIONAL LOGIC
 
Combinational Logic Circuits
Combinational Logic CircuitsCombinational Logic Circuits
Combinational Logic Circuits
 
Digital electronics
Digital electronicsDigital electronics
Digital electronics
 
Number system and codes
Number system and codesNumber system and codes
Number system and codes
 
Binary codes
Binary codesBinary codes
Binary codes
 
Digital Electronics Basics by Er. Swapnil Kaware
Digital Electronics Basics by Er. Swapnil KawareDigital Electronics Basics by Er. Swapnil Kaware
Digital Electronics Basics by Er. Swapnil Kaware
 

More from Ameen San

PLC Timers
PLC TimersPLC Timers
PLC Timers
Ameen San
 
PLC Intro to programming
PLC Intro to programmingPLC Intro to programming
PLC Intro to programming
Ameen San
 
PLC Logic Circuits
PLC Logic CircuitsPLC Logic Circuits
PLC Logic Circuits
Ameen San
 
PLC input and output devices
PLC input and output devices PLC input and output devices
PLC input and output devices
Ameen San
 
PLC Applications
PLC ApplicationsPLC Applications
PLC Applications
Ameen San
 
Protection Devices and the Lightning
Protection Devices and the LightningProtection Devices and the Lightning
Protection Devices and the Lightning
Ameen San
 
Protection
ProtectionProtection
Protection
Ameen San
 
Relays
RelaysRelays
Relays
Ameen San
 
Circuit Breakers
Circuit BreakersCircuit Breakers
Circuit Breakers
Ameen San
 
Engineering Economy
Engineering EconomyEngineering Economy
Engineering Economy
Ameen San
 
Accounting & financial decisions
Accounting & financial decisionsAccounting & financial decisions
Accounting & financial decisions
Ameen San
 
Ratio analysis
Ratio  analysisRatio  analysis
Ratio analysis
Ameen San
 
Depreciation methods
Depreciation methodsDepreciation methods
Depreciation methods
Ameen San
 
Income statement
Income statementIncome statement
Income statement
Ameen San
 
Capital budgeting
Capital budgetingCapital budgeting
Capital budgeting
Ameen San
 
Time value of money
Time value of moneyTime value of money
Time value of money
Ameen San
 
Cash flow statement
Cash flow statementCash flow statement
Cash flow statement
Ameen San
 
Forms of business organizations
Forms of business organizationsForms of business organizations
Forms of business organizations
Ameen San
 
مهارات الحوار والاقناع
مهارات الحوار والاقناعمهارات الحوار والاقناع
مهارات الحوار والاقناع
Ameen San
 
Matlab solving rlc circuit
Matlab solving rlc circuitMatlab solving rlc circuit
Matlab solving rlc circuit
Ameen San
 

More from Ameen San (20)

PLC Timers
PLC TimersPLC Timers
PLC Timers
 
PLC Intro to programming
PLC Intro to programmingPLC Intro to programming
PLC Intro to programming
 
PLC Logic Circuits
PLC Logic CircuitsPLC Logic Circuits
PLC Logic Circuits
 
PLC input and output devices
PLC input and output devices PLC input and output devices
PLC input and output devices
 
PLC Applications
PLC ApplicationsPLC Applications
PLC Applications
 
Protection Devices and the Lightning
Protection Devices and the LightningProtection Devices and the Lightning
Protection Devices and the Lightning
 
Protection
ProtectionProtection
Protection
 
Relays
RelaysRelays
Relays
 
Circuit Breakers
Circuit BreakersCircuit Breakers
Circuit Breakers
 
Engineering Economy
Engineering EconomyEngineering Economy
Engineering Economy
 
Accounting & financial decisions
Accounting & financial decisionsAccounting & financial decisions
Accounting & financial decisions
 
Ratio analysis
Ratio  analysisRatio  analysis
Ratio analysis
 
Depreciation methods
Depreciation methodsDepreciation methods
Depreciation methods
 
Income statement
Income statementIncome statement
Income statement
 
Capital budgeting
Capital budgetingCapital budgeting
Capital budgeting
 
Time value of money
Time value of moneyTime value of money
Time value of money
 
Cash flow statement
Cash flow statementCash flow statement
Cash flow statement
 
Forms of business organizations
Forms of business organizationsForms of business organizations
Forms of business organizations
 
مهارات الحوار والاقناع
مهارات الحوار والاقناعمهارات الحوار والاقناع
مهارات الحوار والاقناع
 
Matlab solving rlc circuit
Matlab solving rlc circuitMatlab solving rlc circuit
Matlab solving rlc circuit
 

Recently uploaded

Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
WENKENLI1
 
basic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdfbasic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdf
NidhalKahouli2
 
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
obonagu
 
PPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testingPPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testing
anoopmanoharan2
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
Kerry Sado
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
zwunae
 
Online aptitude test management system project report.pdf
Online aptitude test management system project report.pdfOnline aptitude test management system project report.pdf
Online aptitude test management system project report.pdf
Kamal Acharya
 
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
awadeshbabu
 
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
ssuser7dcef0
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
Aditya Rajan Patra
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
obonagu
 
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
insn4465
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
Massimo Talia
 
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
zwunae
 
DfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributionsDfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributions
gestioneergodomus
 
Swimming pool mechanical components design.pptx
Swimming pool  mechanical components design.pptxSwimming pool  mechanical components design.pptx
Swimming pool mechanical components design.pptx
yokeleetan1
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Sreedhar Chowdam
 
14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application
SyedAbiiAzazi1
 
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdfBPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
MIGUELANGEL966976
 
6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)
ClaraZara1
 

Recently uploaded (20)

Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
 
basic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdfbasic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdf
 
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
 
PPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testingPPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testing
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
 
Online aptitude test management system project report.pdf
Online aptitude test management system project report.pdfOnline aptitude test management system project report.pdf
Online aptitude test management system project report.pdf
 
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
 
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
 
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
 
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
 
DfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributionsDfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributions
 
Swimming pool mechanical components design.pptx
Swimming pool  mechanical components design.pptxSwimming pool  mechanical components design.pptx
Swimming pool mechanical components design.pptx
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
 
14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application
 
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdfBPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
 
6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)
 

PLC data types and addressing

  • 1. 7. Data Types and Addressing 7.1 Data Types
  • 2.
  • 3.
  • 4.
  • 5.
  • 6. Data Types Summary Each elementary data type has a defined length. The following table lists the elementary data types. Summary Type and Description Size in Bits Format Options Range and Number Notation (lowest to highest value)_ Example BOOL(Bit) 1 Boolean text TRUE/FALSE TRUE BYTE (Byte) 8 Hexadecimal Binary B#16#0 to B#16#FF 2#0 to 2#1111_1111 L B#16#10 L byte#16#10 L2#1011_1010 WORD (Word) 16 Binary number Hexadecimal number BCD Decimal number unsigned 2#0 to 2#1111_1111_1111_1111 W#16#0 to W#16#FFFF C#0 to C#999 B#(0.0) to B#(255.255) L 2#0001_0000_0000_0000 L W#16#1000 L word#16#1000 L C#998 L B#(10,20) L byte#(10,20) DWORD (Double word) 32 Binary number Hexadecimal 2#0 to 2#1111_1111_1111_1111 2#1000_0001_0001_1000_ 1011_1011_0111_1111
  • 7. number Decimal number unsigned 1111_1111_1111_1111 DW#16#0000_0000 to DW#16#FFFF_FFFF B#(0,0,0,0) to B#(255,255,255,255) L DW#16#00A2_1234 L dword#16#00A2_1234 L B#(1, 14, 100, 120) L byte#(1,14,100,120) INT (Integer) 16 Decimal number signed -32768 to 32767 L 1 DINT (Integer, 32 bits) 32 Decimal number signed L#-2147483648 to L#2147483647 L L#1 REAL (Floating- point number) 32 IEEE Floating- point number Upper limit: 3.402823e+38 Lower limit: 1.175 495e- 38 L 1.234567e+13 S5TIME (SIMATIC time) 16 S7 time in steps of 10 ms (default) S5T#0H_0M_0S_10MS to S5T#2H_46M_30S_0MS and S5T#0H_0M_0S_0MS L S5T#0H_1M_0S_0MS L S5TIME#0H_1H_1M_0S_ 0MS TIME (IEC time) 32 IEC time in steps of 1 ms, integer signed - T#24D_20H_31M_23S_6 48MS to T#24D_20H_31M_23S_6 47MS L T#0D_1H_1M_0S_0MS L TIME#0D_1H_1M_0S_0M S DATE (IEC date) 16 IEC date in steps of 1 day D#1990-1-1 to D#2168-12-31 L D#1996-3-15 L DATE#1996-3-15 TIME_OF_D AY (Time) 32 Time in steps of 1 ms TOD#0:0:0.0 to TOD#23:59:59.999 L TOD#1:10:3.3 L TIME_OF_DAY#1:10:3.3 CHAR (Character) 8 ASCII characters 'A','B' etc. L 'E'
  • 8. 7.2 Addressing Storage areas are Inputs, Outputs, Timers, Counters, Memory (Local Variables, Global Variables) , Data Blocks Pointers. - Inputs I(x, y) ---------------------- x = Byte address, y = Bit address Bytes 0, 1, 2, ..., 255 Bits 0, 1, 2, …, 7 IBx (Input Byte) ---------- Ex.: IB0 = I0.0, I0.1, …,I0.7 IWx (Input Word) -------- Ex.: IW0 = (IB0, IB1) = (I0.0, I0.1, …,I0.7, I1.0, I1.1,…, I1.7) IDx (Input DWord) ------ Ex.: ID0 = (IW0, IW2) = (IB0, IB1, IB2, IB3) = (I0.0, I0.1,…,I0.7, I1.0, I1.1,…,I1.7, I2.0, I2.1, I2.7, I3.0, I3.1, I3.7) ___________________________________________ - Outputs Q(x, y) ---------------------- x = Byte address, y = Bit address Bytes 0, 1, 2, ..., 255 Bits 0, 1, 2, …, 7 QBx (Output Byte) ---------- Ex.: QB0 = Q0.0, Q0.1, …,Q0.7 QWx (Output Word) -------- Ex.: QW0 = (QB0, QB1) = (Q0.0, Q0.1, …,Q0.7, Q1.0, Q1.1,…, Q1.7) QDx (Output DWord) ------ Ex.: QD0 = (QW0, QW2) = (QB0, QB1, QB2, QB3) =(Q0.0, Q0.1,…,Q0.7, Q1.0, Q1.1,…,Q1.7, Q2.0, Q2.1, Q2.7, Q3.0, Q3.1, Q3.7) _____________________________________ - Memory (M = Markers or Global Memory, L = Local Memory) M(x, y) ---------------------- x = Byte address, y = Bit address Bytes 0, 1, 2, ..., 255 Bits 0, 1, 2, …, 7 MBx (Memory Byte) ---------- Ex.: MB0 = M0.0, M0.1, …,M0.7 MWx (Memory Word) -------- Ex.: MW0 = (MB0, MB1) = (M0.0, M0.1, …,M0.7, M1.0, M1.1,…, M1.7) MDx (Memory DWord) ----- Ex.: MD0 = (MW0, MW2)= (MB0, MB1, MB2, MB3) =(M0.0, M0.1,…,M0.7, M1.0, M1.1,…,M1.7, M2.0, M2.1, M2.7, M3.0, M3.1, M3.7)
  • 9. - Timers T1, T2, T3, …, Tn (According to the available number of timers) _____________________________________ - Counters C1, C2, C3,…, Cn (According to the available number of counters) _____________________________________ - Data Blocks