filmov
tv
How to... setup hardware interrupts in TIA Portal
Показать описание
This HowTo video shows how to setup hardware interrupts (OB40) in TIA Portal. The interrupts will be setup on a digital and analog input card. Not all input cards have the option to enable hardware interrups.
TIA Portal is a programming environment from Siemens and specially developed for programming the S7-1200/1500 PLC and the new HMI panels.
In TIA Portal it is possible to program in different languages, such as Ladder diagram (LAD), function block diagram (FBD), Statement List (STL), Graph and Structured Control Language (SCL).
In a series of short tutorials, MA-IT MyAutomation would like to help you get familiar with TIA Portal.
----- Transcription ---------------------------------------------------
This video will explain how to setup hardware interrupts.
A digital and analog input card are added to the PLC.
Not all input cards have a hardware interrupt option.
Make sure the card used has the hardware interrupt option.
Open the properties of the card.
Select the input channel that needs to cause the interrupt.
The interrupt settings can be found here.
An interrupt can be enabled on a rising or falling edge of the input.
This detection has a priority of 16.
OB1 has a priority of 1, so OB1 will be interrupted by this hardware interrupt.
Next, add a new interrupt OB.
The task that needs to happen when an interrupt occurs can be programmed here.
In this example a value will be incremented by 1 for each rising edge of channel 0.
This will be stored inside a datablock.
A different interrupt OB will be created for a falling edge of channel 1.
The two interrupt OBs (OB40 and OB41) can be found in the project tree.
This OB will also increment a value by 1.
This will be stored in the same datablock.
Next, the interrupt on an analog card is enabled.
Go to the properties of the card.
The measuring range for this card is set to +/- 10V.
An analog card has 4 edge detection options, instead of 2.
A limit value can be set when a limit is enabled.
This high limit detection is set to 8V.
The interrupt will happen when the card detects 8V or higher.
OB40 is also chosen for this hardware interrupt.
OB40 will be executed on a rising edge of channel 0 from the DI card or on a value higher then 8V from the AI card.
A low limit of 2V is set for the low limit interrupt.
The same OB as the falling edge detection is chosen for this interrupt.
OB41 can now also be executed by two different detections.
TIA Portal is a programming environment from Siemens and specially developed for programming the S7-1200/1500 PLC and the new HMI panels.
In TIA Portal it is possible to program in different languages, such as Ladder diagram (LAD), function block diagram (FBD), Statement List (STL), Graph and Structured Control Language (SCL).
In a series of short tutorials, MA-IT MyAutomation would like to help you get familiar with TIA Portal.
----- Transcription ---------------------------------------------------
This video will explain how to setup hardware interrupts.
A digital and analog input card are added to the PLC.
Not all input cards have a hardware interrupt option.
Make sure the card used has the hardware interrupt option.
Open the properties of the card.
Select the input channel that needs to cause the interrupt.
The interrupt settings can be found here.
An interrupt can be enabled on a rising or falling edge of the input.
This detection has a priority of 16.
OB1 has a priority of 1, so OB1 will be interrupted by this hardware interrupt.
Next, add a new interrupt OB.
The task that needs to happen when an interrupt occurs can be programmed here.
In this example a value will be incremented by 1 for each rising edge of channel 0.
This will be stored inside a datablock.
A different interrupt OB will be created for a falling edge of channel 1.
The two interrupt OBs (OB40 and OB41) can be found in the project tree.
This OB will also increment a value by 1.
This will be stored in the same datablock.
Next, the interrupt on an analog card is enabled.
Go to the properties of the card.
The measuring range for this card is set to +/- 10V.
An analog card has 4 edge detection options, instead of 2.
A limit value can be set when a limit is enabled.
This high limit detection is set to 8V.
The interrupt will happen when the card detects 8V or higher.
OB40 is also chosen for this hardware interrupt.
OB40 will be executed on a rising edge of channel 0 from the DI card or on a value higher then 8V from the AI card.
A low limit of 2V is set for the low limit interrupt.
The same OB as the falling edge detection is chosen for this interrupt.
OB41 can now also be executed by two different detections.