Professional Documents
Culture Documents
Citire Variabile NC NCVAR
Citire Variabile NC NCVAR
Open an NC Variable; Go to project and select new; You will find a dialog box as shown below; Select ncv_NcData.mdb
Goto HELP--INFO ABOUT VARIABLES (to find the variable which is to be read)
Ex-To read R parameters/Axis position in MCS, select the following option.
Double click on “rpa(.)” .You will find one more window . Double click on selected parameter. You will find one more window .
Unit No: 1 (Channel Number)
Line: 201 (To read R200)
Save this file in some location with *.var extension. Then go to code and select
option “Selections” to create a DB; Create a DBxx and mention the DB name
e.g. R_Values. Then click on code select option generate to create a source file.
Save *.awl file in some location.
Once again click on code select option “to STEP7 project”.
Step7 project window will get open; Select the concerned project.
Click on “S7 Program” And also select the option “transfer db and symbol”. Press OK
After executing that event a source file will get transferred to PLC project.
This file will get complied; the values of this source file will get transferred to DBxx
NOTE: There should not be any errors or warning message,
now open the step 7 project in which the DB is transferred and Open tht DBxx and observe:
now your DB is created in PLC.. That is NC VAR's job is over.. Now you have to program it in Step7--
if we open those DBs in step7, we can see the offset address and name of that DB. After Execution of FB2, values will be transferred to this location.
>>> as per syntax, write name given to this DB then "." and then offset address
ex."r para".C1_SPARP_actLineNumber1
Example