FC-12D
Test - lowercase jpg

How to create a library in STEP7 and write your own FC block and FB block into the library you created. In addition, how to write FC fast, FB block encryption?
Answer: (1) How to create a library in STEP7 and write your own FC block and FB block into the library you created. -----
Siemens STEP7 library production:
When doing a project, such as some frequently used functions, such as the cumulative use time of the equipment, use SFC17 and SFC19 to do alarms in step7 and so on. You can do some libraries in the daily time in C:\ProgramFiles\Siemens\Step7\S7LIBS in STEP7. You can see the contents of the library you made in the edited block when you are doing the project later, which is convenient to call, which can significantly reduce the programming time. specific methods:
Open the SIMATICManager programming software.
2 Click on the new project in the file.
3 Name the new project and select the project type as the library. The storage location can be used without the default. After confirming the settings, enter the project.
4In the project, insert FB, FC block, edit FB, FC block internal variables all use local variables, do not use such as M, I, Q, shared data block or other global data. If using global data may cause problems such as coil output, note that OB cannot be used as a library.
5 After saving the block, it can be used in future projects, which is very convenient.

(2) How to write FC fast and FB block encryption for yourself? ---
How to implement block protection:
1. Open the program editing window LAD/FBD/STL;
2. Convert the block generation to be cryptographically protected to a source code file (generated by selecting menu File->Generatesource);
3. Close your program block in the LAD/FBD/STL window and open the source file generated in the previous step in the source folder of the SIMATICManager project management window;
4. In the declaration section of the block, enter "KNOW_HOW_PROTECT" in the line below the TITLE line;
5. Save and compile the source file (select menu File?Save, File?Compile);
6. The encryption protection of the block is now completed;

Laptop Holder Mount

Shenzhen ChengRong Technology Co.,Ltd. , https://www.laptopstandsuppliers.com