 |
plc.myforum.ro PLCs users www.plc.myforum.ro!
|
| View previous topic :: View next topic |
| Author |
Message |
valz Member 3


Joined: 26 Jul 2015 Posts: 771
|
Posted: 11/08/2023 20:49 Post subject: Insert block protection in the S7-GRAPH FB |
|
|
Insert block protection in the S7-GRAPH FB
https://support.industry.siemens.com/cs/document/10024793/
How do you install block protection for the S7-GRAPH blocks?
Description
STEP 7 provides the KNOW_HOW_PROTECT function for protecting the program code. If you open a block with the KNOW_HOW_PROTECT property, then you can only view the block interface (IN, OUT and IN/OUT parameters) and the block comment. The program code, the temporary and static tags and the network comments are not displayed.
Note
Unlike the STEP 7 blocks (creation language: STL, LAD and FBD) two sources must be generated for installing the KNOW_HOW_PROTECT for each S7-GRAPH block:
one source (type: GRAPH source) that is generated from the S7-GRAPH editor and
one source (type: STL source) that is generated from the LAD/STL/FBD editor.
You can only install the block protection in an STL source. After saving the S7-GRAPH FB in the LAD/STL/FBD editor, the block created in S7-GRAPH receives a new language code and can then no longer be edited in the original S7-GRAPH language (not even after removing the block protection). However, if the block created in S7-GRAPH is to be edited again in the original S7-GRAPH language, you must recompile the GRAPH source. This GRAPH source then serves to save the S7-GRAPH FB.
In this video we show you how to activate and deactivate the block protection for your S7-GRAPH function block.
https://ulozto.net/file/txleI4cf0wN5/10024793-how-do-you-install-block-protection-for-the-s7-graph-blocks-en-mp4
[URL=https://www.file-upload.net/download-15176836/10024793_How_do_you_install_block_protection_for_the_S7-GRAPH_blocks_en.mp4.html]10024793_How_do_you_install_block_protection_for_the_S7-GRAPH_blocks_en.mp4[/URL]
Instructions
Open the S7-GRAPH FB.
Create a GRAPH source via "File > Generate Source File...".
Enter an object name, "SourceGraph", for example.
Save with OK and the GRAPH source is generated. Then close the S7-GRAPH FB again.
In Microsoft Windows open the LAD/STL/FBD editor.
In the LAD/STL/FBD editor you select your STEP 7 project via "File > Open..." and open the S7-GRAPH block. The function block created in S7-GRAPH is opened in the STL language.
Save the block.
After saving, further processing in the creation language (GRAPH) is no longer possible. Confirm the message with Yes.
The function block created in S7-GRAPH now receives the STL language code.
Generate a STL source via "File > Generate source...".
Enter an object name,"ProtectGraph", for example.
Here in the left window you mark the block for which the source is to be generated and use the arrow key to move this block into the "Blocks Selected" window on the right.
Confirm with OK and the STL source is generated. Close the LAD/STL/FBD editor again.
Now you have two sources in your "Sources" folder:
The STL source (ProtectGraph) for the KOW_HOW_PROTECT of the block with the STL language code.
The GRAPH source (SourceGraph) for deactivating the KNOW_HOW_PROTECT and returning to the original S7-GRAPH language.
Open the STL source "ProtectGraph" and insert a line with the command "KNOW_HOW_PROTECT" in the declaration section of the block under "TITLE".
Save and compile the STL source. The S7-GRAPH FB is now block protected. The S7 Graph program is not visible.
To remove block protection again, delete the protected function block in the block folder of your STEP 7 project.
In the Sources folder you open the GRAPH source "Source-FB". The source is opened in the GRAPH language in which it was created.
Compile your S7-GRAPH Source.
Confirm the following message with OK and close the source.
After compilation of the source, the function block is once again available in the GRAPH language and you can edit it again with S7-GRAPH. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group Fa-ti si tu propriul forum GRATUIT, pe www.myforum.ro
|