Introduction
In this example, objects for visualization and monitoring of program code are connected to the control program. You have previously created a program in STEP 7 for transporting production units on a conveyor. You also created a ProDiag function block in which you set up the monitoring of the operands.
Require
The "Overview" screen has been created.
A GRAPH overview and a ProDiag overview have been created in the screen.
A ProDiag function block has been created in the control program.
A GRAPH instance data block "Conv_Seq_DB" has been created in the control program.
The GRAPH instance data block "Conv_Seq_DB" contains the "OFF_SQ" tag which can be displayed in and accessed from the HMI.
step
Select the GRAPH overview.
In the Inspector window, click the selection button under "Properties> General> Process > Tag". A dialog box opens. Click the GRAPH instance DB "Conv_Seq_DB" in the "Program blocks" folder. Select the PLC tag "OFF_SQ" of the GRAPH instance DB and confirm your selection. Note The process tags for the GRAPH overview must be visible in the HMI and accessible via the HMI. To mark the tags of the GRAPH data block as visible in the HMI and accessible via the HMI, open the GRAPH function block, select the block in the work area and select "Edit > Internal parameters visible/accessible from HMI" in the menu bar. Then compile the program block. The GRAPH instance DB and the "GRAPH overview" object are connected. Select the ProDiag overview "Overview_Conveyor". In the Inspector window, click the selection button under "Properties> General> Process > Tag". A dialog box opens. Click the data block "Coveyor_DB" in the "Program blocks" folder. Select the state tag "State" of the "Conveyor_DB" data block. The ProDiag data block and the "ProDiag Overview" object are connected. |
result
GRAPH Overview and ProDiag Overview are connected to the data blocks of the control program. In runtime, this object displays incoming monitoring errors and the current status of the GRAPH sequencer.
Configuring the alarm view of ProDiag
Introduction
In this example, an alarm view is configured for displaying monitoring alarms and jumping to the PLC code view with the program code.
Require
The "Alarm" screen has been created.
The alarm view "ProDiag_Alarm" has been created.
The "PLC code view" is created in the "Program code" screen.
step
Open the "Alarm" screen and select the alarm view.
In the Inspector window, select "Properties > General". Select the alarm classes to be displayed in the alarm view, for example, the system-internal alarm classes "Acknowledgement" and "No Acknowledgement". You can choose to also display alarms of alarm classes previously defined in STEP 7. Under "Properties > Display > Control tag for PLC code view" specify the Boolean tag that will control the jump from the last active ProDiag alarm to the PLC code view. This tag is used to evaluate whether a jump from the selected alarm to the PLC code view is possible. Drag-and-drop the button from the "Tools" task card to the "Alarm" screen. In the Inspector window, under "Properties > Properties > Miscellaneous > Name", enter the name "Program code". In the Inspector window, select "Events > Click". Select the "ActivatePLCCodeView" system function under "Add function". Enter the screen name "Program code" and the object name "PLC code view" as parameters. Under "Properties > Animation > Visibility > Under "Properties > Animations > Visibility > Tag", select the Boolean control tag of the previously specified PLC code view. If it is possible to jump to the PLC code view from entering the ProDiag alarm, the "Program code" button is visible. |
result
You activated the alarm display of the defined alarm classes in the alarm view. In Runtime, the alarms of the corresponding alarm class are displayed in the alarm view.
Using the configured button, you jump to Runtime in the PLC code view with the program instance that triggered the ProDiag alarm.
Configuring a jump from the GRAPH overview
Introduction
In this step, you configure the basic navigation between the GRAPH overview, alarm view and PLC code view.
Configuring a jump from the GRAPH overview
Select the GRAPH overview "GRAPH_Sequence".
In the Inspector window, select "Events > Alarm view button click". Select the "ActivateScreen" system function under "Add function". Specify the name of the "Alarm" screen that contains the alarm view. In the Inspector window, select "Events > PLC code view button click". Select the "ActivatePLCCodeView" system function under "Add function". Enter the name of the "Program code" screen and the "PLC code view". |
You have connected the GRAPH overview to the PLC code view. By clicking the "PLC code view" button, a screen is displayed in Runtime that contains a display of the GRAPH sequencer.
result
Use the GRAPH overview in runtime to monitor the current status of the sequencer. You have the option of viewing the GRAPH sequencer in the PLC code view at any time.
In the event of a fault, you can use configured buttons to jump to the corresponding alarm in the alarm view or directly to the PLC code view with step sequencer display.
Configuring jumps in the ProDiag overview |
Introduction
Here, configure the basic navigation between the ProDiag overview, alarm view and PLC code view.
Configuring jumps in the ProDiag overview
Select the ProDiag overview "Overview_Conveyor".
In the Inspector window, select "Events > Alarm view button click". Select the "Activate screen" system function under "Add function". Specify the name of the "Alarm" screen that contains the alarm view. |
result
Diagnostic objects are already related to each other.
In Runtime, use the "ProDiag Overview" to monitor the status of ProDiag. If an error occurs, the corresponding monitoring button will be highlighted.
By clicking the "Alarm view" button, the screen with the alarm view and currently pending alarms is displayed. Via a configured button, you can jump from the ProDiag alarm to the display of the program network in the PLC code view.
Previous article:Why does bldc use square wave control? Can bldc be controlled by sine wave?
Next article:Siemens TIA Portal S7-1200: How to add modules to the rack
- Popular Resources
- Popular amplifiers
- Huawei's Strategic Department Director Gai Gang: The cumulative installed base of open source Euler operating system exceeds 10 million sets
- Analysis of the application of several common contact parts in high-voltage connectors of new energy vehicles
- Wiring harness durability test and contact voltage drop test method
- Sn-doped CuO nanostructure-based ethanol gas sensor for real-time drunk driving detection in vehicles
- Design considerations for automotive battery wiring harness
- Do you know all the various motors commonly used in automotive electronics?
- What are the functions of the Internet of Vehicles? What are the uses and benefits of the Internet of Vehicles?
- Power Inverter - A critical safety system for electric vehicles
- Analysis of the information security mechanism of AUTOSAR, the automotive embedded software framework
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- [CC1352P Review] A brief analysis of the operation process of rfEasyLinkTx
- DIY IP5306 power bank, the discharge current is too small (only 300ma) (with schematic diagram)
- What type of chip does SH366002 replace?
- [RVB2601 Creative Application Development] Build CDK Development Environment
- This strange cut made the PCB hang inexplicably
- It seems that I have a good relationship with Shide——Part 2
- 【Silicon Labs BG22-EK4108A Bluetooth Development Review】I. Hardware Appreciation and Development Environment Introduction
- [ESP32-S2-Kaluga-1 Review] 4. LCD example compilation pitfalls
- HuaDa MCU FLASH operation instructions and precautions
- I am working on a product for traffic security equipment recently. The project has high safety requirements and heavy tasks. I am having a headache recently...