Siemens PLC how to make DB as a source file - Database & Sql Blog Articles

Brand AVX TPSE226M035R0125 Low impedance tantalum capacitor AVX 22
Electronic scale crystal oscillator 3.2*2.5mm 3225 16M (16.000MHZ) 12PF 10PPM 20PPM 30PPM
0805RGB flashing

After opening the db block, there is a customize under the menu option. The pop-up point option sources can find the button to generate the source file.
Restore --- source files are saved under sources, you can open your source files and compile to generate

Source files can be exported to awl files, which can be rewritten in other environments (such as Notepad, excel, etc.), can be copied, of course, can also be re-imported below the sources.
Or directly use SCLsource or STLsource to create a DB, the existing DB can also form a source file by "File" -> "GenerateSource".
The advantage of this, the variables in the DB can be copied to Txt or Word to modify, more convenient to use!

For example, the code for a DB1 SCL source:
DATA_BLOCKDB1
//
//BlockComment...
//
STRUCT
Tag01:REAL;//Pressure
Tag02:INT;//Tempreture
Tag03:BOOL;//Highlimitalarm
Tag04:WORD;//IW
END_STRUCT
BEGIN
Tag01:=0.0;
Tag02:=2;
Tag03:=false;
Tag04:=W#16#0;
END_DATA_BLOCK

Solar Home Lighting System Kit

SHENZHEN CHONDEKUAI TECHNOLOGY CO.LTD , https://www.szfourinone.com