SlideShare une entreprise Scribd logo
1  sur  27
Design and
Programming Advanced
PLC
By
Dr. Palitha Dassanayake
Content
 Designing Advanced PLC
 Programming Advanced PLC
Industrial Applications on Automation
When a plant is to be replaced by Automation
we have to consider
Why?
Accuracy
Productivity
Cost
Other
How?
User requirements
System requirements
What to use?
Select Sensors, actuators and
control methods
Many automation plant uses PLC
Planning your
automation
Approach
Model Driven Approach
Component Based Approach
Model Driven Approach
Coupled with IT approach and UML
Component Based
automation
Component based automation (CBA), the decentralized
approach to automation with distributed intelligence in
technological modules, is picking up speed. Component
based automation clearly simplifies planning, engineering
and commissioning of complex plans and reduces the time
needed for the start of production by between 10% and 15%.
Planning your
automation
Main system requirements
Under this, the main requirement and functions
expected from the system has to be identified.
Outputs: Reports, UML based diagrams etc.
Component Selection
Design the system to match the main requirement
and fail safe design in terms of programming testing
as well as maintenance.
Industrial Survey could be very helpful
Outputs: Layout diagrams, component diagrams
Planning your
automation
Inclusion of monitoring and Control from higher levels
It should be identified the requirements of
monitoring and controlling from higher levels to
decide whether SCADA systems to be included or
not
Outputs: Report or UML format
Maintenance and Scheduling support
Preventive maintenance reminders, auto scheduling
requirements, historical records etc.
Outputs: Reports
PLC programming
Micro level Macro level
Macro-level Programming
Organizational Blocks
Programmable Blocks
Data blocks and Data words
Basics of designing a
program structure
The CPU run two programs
1. The operating system
2. User program
Operating Systems
 Handling start
 Update the process images
 Calling user programs
 Acquisition interrupt programs and calling
relevant OBs
 Error handling
 Memory Management
 Communicating with other devices
User program
 Specifying conditions to restart
 Processing process data
 Reactions to interrupt
 Handling disturbances in the normal
program cycle
Block Types S7-300
 Organization blocks
 Functions (FC)
 Function blocks (FB)
 Data Blocks
 System Function Blocks (SFB and
SFC)
Organization Blocks
 Main organization Block (OB1)
 Time of Day interrupts (OB10 to OB 17)
 Time Delay interrupts (OB 20 to OB 23)
 Cycle interrupts (OB 30 to OB 38)
 Hardware interrupts (OB 40 to OB 47)
 Start up (OB 100, OB 101 and OB 102)
Functions
 A logic block without memory. Temp.
variables are stacked on a local area
and lost after leaving the block.
 You can use data blocks to write
permanently.
Function Blocks
 Program with memory. An instance
data block is created with the function
block.
 By calling more than one IDB with one
FB you can get similar functions
working simultaneously.
Ex. Function Block (FB)
Formal parameter
Start INT IN
Speed INT IN
History DT IN_OUT
Run_time TIME IN_OUT
FB 20:Motor
Integer 16 Bits: Start
Integer 16 Bits: Speed
Data and Time : 48 bits
Time 32 bits: run time
Actual parameter
DB 202:Motor_2
FB Ex. Contd.
FB 21: Motor Processing
Variable declaration
Start Motor_1, FB 22
Start Motor_2, FB 22
Start Motor_3, FB 22
DB 100
Data for Motor_1
Data for Motor_2
Data for Motor_3
FB 22: Motors Call FB 21 from logic block
CALL FB 21,DB 100
Transfer data
CALL Motor_1
CALL Motor_2
CALL Motor_3
Data Blocks
FC 10
FC 11
FB 12
Shared DB
DB 20
(Access by all blocks
or any block)
Instance DB
DB 112
(access only by
FB 12)
SFC and SFB
They are in built functions and functions
Blocks that can be used.
Use of Word logic
L MW 30
L MW 28
OW
T MW 32
L MW 60
L MW 64
AW
T MW 10
L MW 16
L MW 12
XORW
T MW 40
Load
When an input, output or memory of a
byte, word or double word is loaded it
is stored in the accumulator
L MB 10
ACC2
ACC1 MB10
L MB 20
ACC1
ACC2 MB10
MB20
Load
L MW 20
ACC1
ACC2
MB21
MB11MB10
MB20
MB11MB10
When an input, output or memory of a
byte, word or double word is loaded it
is stored in the accumulator
L MW 10
ACC2
ACC1
Load
L MD 20
ACC1
ACC2
MB23MB22MB21MB20
MB13MB12MB11MB10
MB13MB12MB11MB10
When an input, output or memory of a
byte, word or double word is loaded it
is stored in the accumulator
L MD 10
ACC2
ACC1
Transfer
LLLHHLHHAcc1
T MB 10 // MB10=LL
T MW 10// MB10=LH, M11=LL
T MD 10
// MB10=HH,MB11=HL, MB12=LH,MB13=LL
L Iw 12
L w#16#18FF
AW
T Qw 12
L Iw 18
L w#16#F4FF
AW
T Qw 18
L Qw 18
L w#16#0020
Ow
T Qw 18
L QW 18
L QW 12
XORW
T MW 20
END

Contenu connexe

Tendances

PLC BASED AUTOMATED SYSTEM IN PROCESS INDUSTRY (Final Presentation)
PLC BASED AUTOMATED SYSTEM IN PROCESS INDUSTRY (Final Presentation)PLC BASED AUTOMATED SYSTEM IN PROCESS INDUSTRY (Final Presentation)
PLC BASED AUTOMATED SYSTEM IN PROCESS INDUSTRY (Final Presentation)
Shahid Faizee
 

Tendances (20)

PLC
PLCPLC
PLC
 
Presentation for EEE Engineer on PLC By Dilip Kumar
Presentation for EEE Engineer on PLC By Dilip KumarPresentation for EEE Engineer on PLC By Dilip Kumar
Presentation for EEE Engineer on PLC By Dilip Kumar
 
PLC(Programmable Logic Controller)-Control system Engineering.
PLC(Programmable Logic Controller)-Control system Engineering.PLC(Programmable Logic Controller)-Control system Engineering.
PLC(Programmable Logic Controller)-Control system Engineering.
 
Plc report
Plc report Plc report
Plc report
 
PLC General
PLC   GeneralPLC   General
PLC General
 
Plc seminar abu
Plc seminar    abuPlc seminar    abu
Plc seminar abu
 
Plc presentation.
Plc presentation.Plc presentation.
Plc presentation.
 
plc training report
plc training reportplc training report
plc training report
 
Introduction to PLC
Introduction to PLCIntroduction to PLC
Introduction to PLC
 
6. basic of plc
6. basic of plc6. basic of plc
6. basic of plc
 
ppt on PLC
ppt on PLCppt on PLC
ppt on PLC
 
Plc presentation
Plc presentationPlc presentation
Plc presentation
 
PLC (PROGRAMMABLE LOGIC CONTROLLER)
PLC (PROGRAMMABLE LOGIC CONTROLLER)PLC (PROGRAMMABLE LOGIC CONTROLLER)
PLC (PROGRAMMABLE LOGIC CONTROLLER)
 
Plc Basics
Plc BasicsPlc Basics
Plc Basics
 
PLC BASED AUTOMATED SYSTEM IN PROCESS INDUSTRY (Final Presentation)
PLC BASED AUTOMATED SYSTEM IN PROCESS INDUSTRY (Final Presentation)PLC BASED AUTOMATED SYSTEM IN PROCESS INDUSTRY (Final Presentation)
PLC BASED AUTOMATED SYSTEM IN PROCESS INDUSTRY (Final Presentation)
 
Programmable Logic Controllers
Programmable Logic ControllersProgrammable Logic Controllers
Programmable Logic Controllers
 
PLC presentation
PLC presentationPLC presentation
PLC presentation
 
Automation(plc&scada)
Automation(plc&scada)Automation(plc&scada)
Automation(plc&scada)
 
Programmable logic controllers
Programmable logic controllersProgrammable logic controllers
Programmable logic controllers
 
Nfi intro +courses
Nfi intro +coursesNfi intro +courses
Nfi intro +courses
 

En vedette

The basics of plc technology
The basics of plc technologyThe basics of plc technology
The basics of plc technology
sakshij91
 
Relationship between pneumatic & PLC
Relationship between pneumatic & PLCRelationship between pneumatic & PLC
Relationship between pneumatic & PLC
majitra
 
Automationcontrol4
Automationcontrol4Automationcontrol4
Automationcontrol4
liyanagek
 
PROGRAMMABLE LOGIC CONTROLLERS
PROGRAMMABLE LOGIC CONTROLLERSPROGRAMMABLE LOGIC CONTROLLERS
PROGRAMMABLE LOGIC CONTROLLERS
RAHUL DESHMUKH
 

En vedette (20)

The basics of plc technology
The basics of plc technologyThe basics of plc technology
The basics of plc technology
 
Plc
PlcPlc
Plc
 
Relationship between pneumatic & PLC
Relationship between pneumatic & PLCRelationship between pneumatic & PLC
Relationship between pneumatic & PLC
 
Automationcontrol4
Automationcontrol4Automationcontrol4
Automationcontrol4
 
Hierarchical control and industrial automation
Hierarchical control and industrial automationHierarchical control and industrial automation
Hierarchical control and industrial automation
 
Industrial Automation in India
Industrial Automation in IndiaIndustrial Automation in India
Industrial Automation in India
 
Use of plc in industrial automation
Use of plc in industrial automationUse of plc in industrial automation
Use of plc in industrial automation
 
PROGRAMMABLE LOGIC CONTROLLERS
PROGRAMMABLE LOGIC CONTROLLERSPROGRAMMABLE LOGIC CONTROLLERS
PROGRAMMABLE LOGIC CONTROLLERS
 
speed control of induction motor using plc and vfd
speed control of induction motor using plc and vfdspeed control of induction motor using plc and vfd
speed control of induction motor using plc and vfd
 
An industrial automation satyaaaa
An industrial automation  satyaaaaAn industrial automation  satyaaaa
An industrial automation satyaaaa
 
Introduction to plc (s7)­
Introduction to  plc (s7)­ Introduction to  plc (s7)­
Introduction to plc (s7)­
 
INDUSTRIAL AUTOMATION ( SHUBHAM KURDIYA)
INDUSTRIAL AUTOMATION ( SHUBHAM KURDIYA)INDUSTRIAL AUTOMATION ( SHUBHAM KURDIYA)
INDUSTRIAL AUTOMATION ( SHUBHAM KURDIYA)
 
Industrial Automation using PLC- Day 1
Industrial Automation using PLC- Day 1 Industrial Automation using PLC- Day 1
Industrial Automation using PLC- Day 1
 
PLC and SCADA in Industrial Automation
PLC and SCADA in Industrial AutomationPLC and SCADA in Industrial Automation
PLC and SCADA in Industrial Automation
 
stepper motor
stepper motorstepper motor
stepper motor
 
Industrial Automation
Industrial AutomationIndustrial Automation
Industrial Automation
 
Omron plc training
Omron plc trainingOmron plc training
Omron plc training
 
PLC, DCS and PLC vs DCS Presentation by Jitender Singh Shekhawat
PLC, DCS and PLC vs DCS Presentation by Jitender Singh ShekhawatPLC, DCS and PLC vs DCS Presentation by Jitender Singh Shekhawat
PLC, DCS and PLC vs DCS Presentation by Jitender Singh Shekhawat
 
DCS Or PLC
DCS Or PLCDCS Or PLC
DCS Or PLC
 
Stepper motor
Stepper motorStepper motor
Stepper motor
 

Similaire à Automationcontrol7

Builconn20071131 Presentation Jcd
Builconn20071131 Presentation JcdBuilconn20071131 Presentation Jcd
Builconn20071131 Presentation Jcd
CABA
 
Foundation fieldbus technology
Foundation fieldbus technologyFoundation fieldbus technology
Foundation fieldbus technology
Mohamed A Hakim
 

Similaire à Automationcontrol7 (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
 
Computer Architecture – An Introduction
Computer Architecture – An IntroductionComputer Architecture – An Introduction
Computer Architecture – An Introduction
 
Ch7 v70 scl_en
Ch7 v70 scl_enCh7 v70 scl_en
Ch7 v70 scl_en
 
Matter new
Matter newMatter new
Matter new
 
Chapter7_InputOutputStorageSystems.pptx
Chapter7_InputOutputStorageSystems.pptxChapter7_InputOutputStorageSystems.pptx
Chapter7_InputOutputStorageSystems.pptx
 
PLC-converted.pdf
PLC-converted.pdfPLC-converted.pdf
PLC-converted.pdf
 
Function Block.ppt
Function Block.pptFunction Block.ppt
Function Block.ppt
 
Introduction to iec 61131 3
Introduction to iec 61131 3Introduction to iec 61131 3
Introduction to iec 61131 3
 
Input-Output Modules
Input-Output ModulesInput-Output Modules
Input-Output Modules
 
Introduction to Blackfin BF532 DSP
Introduction to Blackfin BF532 DSPIntroduction to Blackfin BF532 DSP
Introduction to Blackfin BF532 DSP
 
07 chapter03 05_siemens_tags_memory_structure_fa14
07 chapter03 05_siemens_tags_memory_structure_fa1407 chapter03 05_siemens_tags_memory_structure_fa14
07 chapter03 05_siemens_tags_memory_structure_fa14
 
Plc tg fi
Plc tg fiPlc tg fi
Plc tg fi
 
Builconn20071131 Presentation Jcd
Builconn20071131 Presentation JcdBuilconn20071131 Presentation Jcd
Builconn20071131 Presentation Jcd
 
Foundation fieldbus technology
Foundation fieldbus technologyFoundation fieldbus technology
Foundation fieldbus technology
 
10731617.ppt
10731617.ppt10731617.ppt
10731617.ppt
 
vdocuments.net_modbus-slave-modbus-master-in-s7.ppt
vdocuments.net_modbus-slave-modbus-master-in-s7.pptvdocuments.net_modbus-slave-modbus-master-in-s7.ppt
vdocuments.net_modbus-slave-modbus-master-in-s7.ppt
 
Operation_and_Maintenance_Guide_of_the_BSC6900_GSM_Based_on_the_Web_LMT.ppt
Operation_and_Maintenance_Guide_of_the_BSC6900_GSM_Based_on_the_Web_LMT.pptOperation_and_Maintenance_Guide_of_the_BSC6900_GSM_Based_on_the_Web_LMT.ppt
Operation_and_Maintenance_Guide_of_the_BSC6900_GSM_Based_on_the_Web_LMT.ppt
 
COA.pptx
COA.pptxCOA.pptx
COA.pptx
 
Micro PLC_Manal for new comer plc learner
Micro PLC_Manal for new comer plc learnerMicro PLC_Manal for new comer plc learner
Micro PLC_Manal for new comer plc learner
 
Plc on cnc
Plc on cncPlc on cnc
Plc on cnc
 

Dernier

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 

Dernier (20)

2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 

Automationcontrol7

  • 2. Content  Designing Advanced PLC  Programming Advanced PLC
  • 3. Industrial Applications on Automation When a plant is to be replaced by Automation we have to consider Why? Accuracy Productivity Cost Other How? User requirements System requirements What to use? Select Sensors, actuators and control methods Many automation plant uses PLC
  • 4. Planning your automation Approach Model Driven Approach Component Based Approach
  • 5. Model Driven Approach Coupled with IT approach and UML
  • 6. Component Based automation Component based automation (CBA), the decentralized approach to automation with distributed intelligence in technological modules, is picking up speed. Component based automation clearly simplifies planning, engineering and commissioning of complex plans and reduces the time needed for the start of production by between 10% and 15%.
  • 7. Planning your automation Main system requirements Under this, the main requirement and functions expected from the system has to be identified. Outputs: Reports, UML based diagrams etc. Component Selection Design the system to match the main requirement and fail safe design in terms of programming testing as well as maintenance. Industrial Survey could be very helpful Outputs: Layout diagrams, component diagrams
  • 8. Planning your automation Inclusion of monitoring and Control from higher levels It should be identified the requirements of monitoring and controlling from higher levels to decide whether SCADA systems to be included or not Outputs: Report or UML format Maintenance and Scheduling support Preventive maintenance reminders, auto scheduling requirements, historical records etc. Outputs: Reports
  • 9. PLC programming Micro level Macro level Macro-level Programming Organizational Blocks Programmable Blocks Data blocks and Data words
  • 10. Basics of designing a program structure The CPU run two programs 1. The operating system 2. User program
  • 11. Operating Systems  Handling start  Update the process images  Calling user programs  Acquisition interrupt programs and calling relevant OBs  Error handling  Memory Management  Communicating with other devices
  • 12. User program  Specifying conditions to restart  Processing process data  Reactions to interrupt  Handling disturbances in the normal program cycle
  • 13. Block Types S7-300  Organization blocks  Functions (FC)  Function blocks (FB)  Data Blocks  System Function Blocks (SFB and SFC)
  • 14. Organization Blocks  Main organization Block (OB1)  Time of Day interrupts (OB10 to OB 17)  Time Delay interrupts (OB 20 to OB 23)  Cycle interrupts (OB 30 to OB 38)  Hardware interrupts (OB 40 to OB 47)  Start up (OB 100, OB 101 and OB 102)
  • 15. Functions  A logic block without memory. Temp. variables are stacked on a local area and lost after leaving the block.  You can use data blocks to write permanently.
  • 16. Function Blocks  Program with memory. An instance data block is created with the function block.  By calling more than one IDB with one FB you can get similar functions working simultaneously.
  • 17. Ex. Function Block (FB) Formal parameter Start INT IN Speed INT IN History DT IN_OUT Run_time TIME IN_OUT FB 20:Motor Integer 16 Bits: Start Integer 16 Bits: Speed Data and Time : 48 bits Time 32 bits: run time Actual parameter DB 202:Motor_2
  • 18. FB Ex. Contd. FB 21: Motor Processing Variable declaration Start Motor_1, FB 22 Start Motor_2, FB 22 Start Motor_3, FB 22 DB 100 Data for Motor_1 Data for Motor_2 Data for Motor_3 FB 22: Motors Call FB 21 from logic block CALL FB 21,DB 100 Transfer data CALL Motor_1 CALL Motor_2 CALL Motor_3
  • 19. Data Blocks FC 10 FC 11 FB 12 Shared DB DB 20 (Access by all blocks or any block) Instance DB DB 112 (access only by FB 12)
  • 20. SFC and SFB They are in built functions and functions Blocks that can be used.
  • 21. Use of Word logic L MW 30 L MW 28 OW T MW 32 L MW 60 L MW 64 AW T MW 10 L MW 16 L MW 12 XORW T MW 40
  • 22. Load When an input, output or memory of a byte, word or double word is loaded it is stored in the accumulator L MB 10 ACC2 ACC1 MB10 L MB 20 ACC1 ACC2 MB10 MB20
  • 23. Load L MW 20 ACC1 ACC2 MB21 MB11MB10 MB20 MB11MB10 When an input, output or memory of a byte, word or double word is loaded it is stored in the accumulator L MW 10 ACC2 ACC1
  • 24. Load L MD 20 ACC1 ACC2 MB23MB22MB21MB20 MB13MB12MB11MB10 MB13MB12MB11MB10 When an input, output or memory of a byte, word or double word is loaded it is stored in the accumulator L MD 10 ACC2 ACC1
  • 25. Transfer LLLHHLHHAcc1 T MB 10 // MB10=LL T MW 10// MB10=LH, M11=LL T MD 10 // MB10=HH,MB11=HL, MB12=LH,MB13=LL
  • 26. L Iw 12 L w#16#18FF AW T Qw 12 L Iw 18 L w#16#F4FF AW T Qw 18 L Qw 18 L w#16#0020 Ow T Qw 18 L QW 18 L QW 12 XORW T MW 20
  • 27. END