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?

Was ist angesagt? (20)

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
 
Dcs functional block diagrams
Dcs functional block diagramsDcs functional block diagrams
Dcs functional block diagrams
 
PLC Counters
PLC CountersPLC Counters
PLC Counters
 
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
 
Encoders
EncodersEncoders
Encoders
 
Use of plc in industrial automation
Use of plc in industrial automationUse of plc in industrial automation
Use of plc in industrial automation
 
Vt training plc_1
Vt training plc_1Vt training plc_1
Vt training plc_1
 
Honeywell PLC TRAINING GUIDE created by deepak gorai
Honeywell PLC TRAINING GUIDE created by deepak goraiHoneywell PLC TRAINING GUIDE created by deepak gorai
Honeywell PLC TRAINING GUIDE created by deepak gorai
 
MULTIPLEXER
MULTIPLEXERMULTIPLEXER
MULTIPLEXER
 
Omron plc training
Omron plc trainingOmron plc training
Omron plc training
 
8086 architecture
8086 architecture8086 architecture
8086 architecture
 
Introduction to SCADA
Introduction to SCADAIntroduction to SCADA
Introduction to SCADA
 
ppt on PLC automation
ppt on PLC automationppt on PLC automation
ppt on PLC automation
 
Programmable logic controller(plc)
Programmable logic controller(plc)Programmable logic controller(plc)
Programmable logic controller(plc)
 
Switch level modeling
Switch level modelingSwitch level modeling
Switch level modeling
 
PLC - Programmable Logic Controller
PLC - Programmable Logic ControllerPLC - Programmable Logic Controller
PLC - Programmable Logic Controller
 
S7 1200 basic
S7 1200 basicS7 1200 basic
S7 1200 basic
 
programmable logic controller presentation
programmable logic controller presentationprogrammable logic controller presentation
programmable logic controller presentation
 
Plc Siemens Training Notes
Plc Siemens Training NotesPlc Siemens Training Notes
Plc Siemens Training Notes
 
PPT of PLC and SCADA
PPT of PLC and SCADAPPT of PLC and SCADA
PPT of PLC and SCADA
 

Andere mochten auch

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
 

Andere mochten auch (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
 
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
 
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 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
 
مهارات الحوار والاقناع
مهارات الحوار والاقناعمهارات الحوار والاقناع
مهارات الحوار والاقناع
 
Time value of money
Time value of moneyTime value of money
Time value of money
 
Depreciation methods
Depreciation methodsDepreciation methods
Depreciation methods
 
Mike Bolger - Predict Webinar 2 - Contaminants in Food – Hazards and Risks
Mike Bolger - Predict Webinar 2 - Contaminants in Food – Hazards and RisksMike Bolger - Predict Webinar 2 - Contaminants in Food – Hazards and Risks
Mike Bolger - Predict Webinar 2 - Contaminants in Food – Hazards and Risks
 

Ähnlich wie PLC data types and addressing

Data representation
Data representationData representation
Data representation
rozanadiana
 
1 number systems-binary
1 number systems-binary1 number systems-binary
1 number systems-binary
irdginfo
 

Ähnlich wie 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
 

Mehr von Ameen San

Mehr von Ameen San (17)

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
 
Income statement
Income statementIncome statement
Income statement
 
Capital budgeting
Capital budgetingCapital budgeting
Capital budgeting
 
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

UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
rknatarajan
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Christo Ananth
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
ankushspencer015
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
Tonystark477637
 

Kürzlich hochgeladen (20)

(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and Properties
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 

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