The document provides instructions for using NCVar software to generate a source file for numeric control variables that can then be inserted and compiled as an external source file in STEP7 software to read the NC variables using function block FB2. The key steps are to open NCVar, create a new project, select a variable from the database to generate code for, save and compile the generated source file, then insert and compile it in STEP7 to read the NC variables.
The document provides instructions for using NCVar software to generate a source file for numeric control variables that can then be inserted and compiled as an external source file in STEP7 software to read the NC variables using function block FB2. The key steps are to open NCVar, create a new project, select a variable from the database to generate code for, save and compile the generated source file, then insert and compile it in STEP7 to read the NC variables.
The document provides instructions for using NCVar software to generate a source file for numeric control variables that can then be inserted and compiled as an external source file in STEP7 software to read the NC variables using function block FB2. The key steps are to open NCVar, create a new project, select a variable from the database to generate code for, save and compile the generated source file, then insert and compile it in STEP7 to read the NC variables.
2. ProjectÆnew 3. Open ncv_NcData.mdbÆopen 4. Find your variable, double click
Unit-No. Is channel no.
Line is axis no.
Click OK 5. click codeÆselections
Input the DB number what your want to generate, click OK
6. click fileÆsave as, save the var 7. click codeÆgenerate, generate the source file of data block 8. close NCVar software 9. open stpe7 software, open your project 10. clickÆsourceÆright clickÆinsert new objectÆexternal source fileÆfind your generate source fileÆopen 11. right click your insert source fileÆcompile, and than the DB block will generate in your project block 12. call fb2 to read the nc variable