SlideShare ist ein Scribd-Unternehmen logo
1 von 9
Downloaden Sie, um offline zu lesen
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

Weitere ähnliche Inhalte

Was ist angesagt?

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 TricksDMC, Inc.
 
Troubleshooting in plc
Troubleshooting in plcTroubleshooting in plc
Troubleshooting in plcNisarg Naik
 
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
 
Introduction to plc (s7)­
Introduction to  plc (s7)­ Introduction to  plc (s7)­
Introduction to plc (s7)­ majitra
 
Programmable logic controller - Siemens S7-1200
Programmable logic controller - Siemens S7-1200Programmable logic controller - Siemens S7-1200
Programmable logic controller - Siemens S7-1200Ahmed Elsayed
 
TIA Portal STEP 7 Basic
TIA Portal STEP 7 BasicTIA Portal STEP 7 Basic
TIA Portal STEP 7 BasicBinh Vo
 
Modbus introduction
Modbus introductionModbus introduction
Modbus introductionPrem Sanil
 
PLC power point presentation
PLC power point presentationPLC power point presentation
PLC power point presentationNaga Teja
 
Basic PLC Symbols and Addresses in LogixPro
Basic PLC Symbols and Addresses in LogixProBasic PLC Symbols and Addresses in LogixPro
Basic PLC Symbols and Addresses in LogixProbkhairullah
 
PLC and SCADA training.
PLC and SCADA training.PLC and SCADA training.
PLC and SCADA training.Ishank Ranjan
 
08 basics control functions v1.00_en
08 basics control functions v1.00_en08 basics control functions v1.00_en
08 basics control functions v1.00_enconfidencial
 
programmable logic controller presentation
programmable logic controller presentationprogrammable logic controller presentation
programmable logic controller presentationAshutosh Verma
 
YOKOGAWA CENTUM CS 3000 R3
YOKOGAWA CENTUM CS 3000 R3YOKOGAWA CENTUM CS 3000 R3
YOKOGAWA CENTUM CS 3000 R3Rehan Fazal
 
Basic of MODBUS Communication/Protocol
Basic of MODBUS Communication/ProtocolBasic of MODBUS Communication/Protocol
Basic of MODBUS Communication/ProtocolShivam Singh
 
PLC and Industrial Automation - Technology Overview
PLC and Industrial Automation - Technology OverviewPLC and Industrial Automation - Technology Overview
PLC and Industrial Automation - Technology OverviewNereus Fernandes
 
SIMATIC S7-1200 Overview
SIMATIC S7-1200 OverviewSIMATIC S7-1200 Overview
SIMATIC S7-1200 OverviewLuis Narvaez
 

Was ist angesagt? (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
 
Troubleshooting in plc
Troubleshooting in plcTroubleshooting in plc
Troubleshooting in plc
 
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)
 
Introduction to plc (s7)­
Introduction to  plc (s7)­ Introduction to  plc (s7)­
Introduction to plc (s7)­
 
Programmable logic controller - Siemens S7-1200
Programmable logic controller - Siemens S7-1200Programmable logic controller - Siemens S7-1200
Programmable logic controller - Siemens S7-1200
 
TIA Portal STEP 7 Basic
TIA Portal STEP 7 BasicTIA Portal STEP 7 Basic
TIA Portal STEP 7 Basic
 
Modbus introduction
Modbus introductionModbus introduction
Modbus introduction
 
PLC power point presentation
PLC power point presentationPLC power point presentation
PLC power point presentation
 
Industrial Automation
Industrial AutomationIndustrial Automation
Industrial Automation
 
Basic PLC Symbols and Addresses in LogixPro
Basic PLC Symbols and Addresses in LogixProBasic PLC Symbols and Addresses in LogixPro
Basic PLC Symbols and Addresses in LogixPro
 
PLC Troubleshooting & Maintenance
PLC Troubleshooting & MaintenancePLC Troubleshooting & Maintenance
PLC Troubleshooting & Maintenance
 
Controllogix 5000 Training
Controllogix 5000 TrainingControllogix 5000 Training
Controllogix 5000 Training
 
Introduction to PROFIBUS and PROFINET - andy verwer
Introduction to PROFIBUS and PROFINET -  andy verwerIntroduction to PROFIBUS and PROFINET -  andy verwer
Introduction to PROFIBUS and PROFINET - andy verwer
 
PLC and SCADA training.
PLC and SCADA training.PLC and SCADA training.
PLC and SCADA training.
 
08 basics control functions v1.00_en
08 basics control functions v1.00_en08 basics control functions v1.00_en
08 basics control functions v1.00_en
 
programmable logic controller presentation
programmable logic controller presentationprogrammable logic controller presentation
programmable logic controller presentation
 
YOKOGAWA CENTUM CS 3000 R3
YOKOGAWA CENTUM CS 3000 R3YOKOGAWA CENTUM CS 3000 R3
YOKOGAWA CENTUM CS 3000 R3
 
Basic of MODBUS Communication/Protocol
Basic of MODBUS Communication/ProtocolBasic of MODBUS Communication/Protocol
Basic of MODBUS Communication/Protocol
 
PLC and Industrial Automation - Technology Overview
PLC and Industrial Automation - Technology OverviewPLC and Industrial Automation - Technology Overview
PLC and Industrial Automation - Technology Overview
 
SIMATIC S7-1200 Overview
SIMATIC S7-1200 OverviewSIMATIC S7-1200 Overview
SIMATIC S7-1200 Overview
 

Andere mochten auch

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 SiemensDMC, Inc.
 
Simatic step 7 v5 prog
Simatic step 7 v5 progSimatic step 7 v5 prog
Simatic step 7 v5 progMARIUS scutaru
 
Stepper motor
Stepper motor Stepper motor
Stepper motor Ameen San
 
PLC Counters
PLC CountersPLC Counters
PLC CountersAmeen San
 
PLC arithmatic functions
PLC arithmatic functionsPLC arithmatic functions
PLC arithmatic functionsAmeen San
 
PLC application
PLC applicationPLC application
PLC applicationAmeen San
 
ELECTRICAL DISTRIBUTION TECHNOLOGY
ELECTRICAL DISTRIBUTION TECHNOLOGYELECTRICAL DISTRIBUTION TECHNOLOGY
ELECTRICAL DISTRIBUTION TECHNOLOGYAmeen San
 
Load Characteristics
Load CharacteristicsLoad Characteristics
Load CharacteristicsAmeen 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 RegulationAmeen San
 
PLC Traffic Light Control
PLC Traffic Light ControlPLC Traffic Light Control
PLC Traffic Light ControlAmeen San
 
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 CalculationAmeen San
 
INDUSTRIAL AUTOMATION USING PLC
INDUSTRIAL AUTOMATION USING PLCINDUSTRIAL AUTOMATION USING PLC
INDUSTRIAL AUTOMATION USING PLCMehvish 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 troubleshootingJereme Simmons
 
Newsletter enregistreur video
Newsletter enregistreur videoNewsletter enregistreur video
Newsletter enregistreur videoPrismaInstruments
 
Getting Started With Arduino_Tutorial
Getting Started With Arduino_TutorialGetting Started With Arduino_Tutorial
Getting Started With Arduino_TutorialNYCCTfab
 
Accounting & financial decisions
Accounting & financial decisionsAccounting & financial decisions
Accounting & financial decisionsAmeen San
 
مهارات الحوار والاقناع
مهارات الحوار والاقناعمهارات الحوار والاقناع
مهارات الحوار والاقناعAmeen San
 

Andere mochten auch (20)

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
 
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
 
Accounting & financial decisions
Accounting & financial decisionsAccounting & financial decisions
Accounting & financial decisions
 
مهارات الحوار والاقناع
مهارات الحوار والاقناعمهارات الحوار والاقناع
مهارات الحوار والاقناع
 

Ähnlich wie DATA TYPES AND ADDRESSING SUMMARY

Ähnlich wie DATA TYPES AND ADDRESSING SUMMARY (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
 

Mehr von Ameen San

PLC Internal Relays
PLC Internal RelaysPLC Internal Relays
PLC Internal RelaysAmeen San
 
PLC Intro to programming
PLC Intro to programmingPLC Intro to programming
PLC Intro to programmingAmeen San
 
PLC Logic Circuits
PLC Logic CircuitsPLC Logic Circuits
PLC Logic CircuitsAmeen 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 ApplicationsAmeen San
 
Protection Devices and the Lightning
Protection Devices and the LightningProtection Devices and the Lightning
Protection Devices and the LightningAmeen San
 
Circuit Breakers
Circuit BreakersCircuit Breakers
Circuit BreakersAmeen San
 
Engineering Economy
Engineering EconomyEngineering Economy
Engineering EconomyAmeen San
 
Ratio analysis
Ratio  analysisRatio  analysis
Ratio analysisAmeen San
 
Depreciation methods
Depreciation methodsDepreciation methods
Depreciation methodsAmeen San
 
Income statement
Income statementIncome statement
Income statementAmeen San
 
Capital budgeting
Capital budgetingCapital budgeting
Capital budgetingAmeen San
 
Time value of money
Time value of moneyTime value of money
Time value of moneyAmeen San
 
Cash flow statement
Cash flow statementCash flow statement
Cash flow statementAmeen San
 
Forms of business organizations
Forms of business organizationsForms of business organizations
Forms of business organizationsAmeen San
 
Matlab solving rlc circuit
Matlab solving rlc circuitMatlab solving rlc circuit
Matlab solving rlc circuitAmeen San
 

Mehr von Ameen San (19)

PLC Timers
PLC TimersPLC Timers
PLC Timers
 
PLC Internal Relays
PLC Internal RelaysPLC Internal Relays
PLC Internal Relays
 
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
 
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
 

Kürzlich hochgeladen

Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfROCENODodongVILLACER
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxbritheesh05
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxKartikeyaDwivedi3
 
computer application and construction management
computer application and construction managementcomputer application and construction management
computer application and construction managementMariconPadriquez1
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncWhy does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncssuser2ae721
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxPoojaBan
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...asadnawaz62
 
Comparative Analysis of Text Summarization Techniques
Comparative Analysis of Text Summarization TechniquesComparative Analysis of Text Summarization Techniques
Comparative Analysis of Text Summarization Techniquesugginaramesh
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvLewisJB
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...Chandu841456
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 

Kürzlich hochgeladen (20)

Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdf
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptx
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptx
 
computer application and construction management
computer application and construction managementcomputer application and construction management
computer application and construction management
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
POWER SYSTEMS-1 Complete notes examples
POWER SYSTEMS-1 Complete notes  examplesPOWER SYSTEMS-1 Complete notes  examples
POWER SYSTEMS-1 Complete notes examples
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncWhy does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...
 
Comparative Analysis of Text Summarization Techniques
Comparative Analysis of Text Summarization TechniquesComparative Analysis of Text Summarization Techniques
Comparative Analysis of Text Summarization Techniques
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvv
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 

DATA TYPES AND ADDRESSING SUMMARY

  • 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