Metadata are additional information you can download with the project into the PLC. Metadata are verified during the following actions:
Metadata especially consist of:
Project IDs and project version number which can be entered in the metadata compile options by the user
Control FPWIN Pro7 version number, project object CRCs and project object time and date information which are generated by Control FPWIN Pro7
Metadata can be activated in
Activating metadata provides the following features:
User-defined metadata can be entered in the compile options
System-defined metadata are generated
Special program code to set the metadata after switching the PLC to RUN mode is downloaded
When you go online, the following checks are performed:
The project IDs set in the Control FPWIN Pro7 metadata compile options are checked to ensure that the connection has been established to the expected PLC
The program code and configuration CRCs are checked for relevant differences to be downloaded
If the PLC is in RUN mode, project object CRCs are checked to determine whether it is possible to continue with monitoring and downloading changes
The user can get the following additional information:
The used Control FPWIN Pro7 versions
The last change dates
Assuming the most upper registers in the DT hold area which are used by the metadata are DDT10000:
Categories |
Types |
Description |
Size |
Range/value |
Offsets from above |
Address |
---|---|---|---|---|---|---|
Header |
Begin of metadata marker |
32 bits |
16#4D657441 |
0 |
DDT10000 |
|
Size of metadata content in bytes |
16 bits |
76 |
-1 |
DT9999 |
||
Version number |
Metadata version number |
32 bits |
1.0.0.0 |
-3 |
DDT9997 |
|
User data1) |
IDs |
Company/user ID |
32 bits |
0–4294967295 |
-5 |
DDT9995 |
Application ID |
-7 |
DDT9993 |
||||
PLC project ID |
-9 |
DDT9991 |
||||
Version number |
PLC project version number |
0.0.0.0–255.255.255.255 |
-11 |
DDT9989 |
||
System data2) |
Version number |
Control FPWIN Pro7 version number |
32 bits |
0.0.0.0–255.255.255.255 |
-13 |
DDT9987 |
Last change dates3) |
Last change date of configuration |
32 bits |
DT#2001-01-01- 00:00:00 |
-15 |
DDT9985 |
|
Last change date of POUs |
- |
-17 |
DDT9983 |
|||
Last change date of user libraries |
DT#2099-12-31- 23:59:59 |
-19 |
DDT9981 |
|||
Compile options7) |
Code generation |
16 bits |
16#0–16#FFFF |
-20 |
DT9980 |
|
CRC-16 of address ranges |
-21 |
DT9979 |
||||
CRC-324), 5 ) |
CRC of relevant program code |
32 bits |
16#0–16#FFFFFFFF |
-23 |
DDT9977 |
|
CRC of configuration |
-25 |
DDT9975 |
||||
CRC of positioning |
-27 |
DDT9973 |
||||
CRC of data recording |
-29 |
DDT9971 |
||||
CRC of POUs |
-31 |
DDT9969 |
||||
CRC of user libraries' POUs |
-33 |
DDT9967 |
||||
CRC of SFC structure |
-35 |
DDT9965 |
||||
CRC of user addresses, variable names, data types, i.e. only global variables with explicit user addresses |
-37 |
DDT9963 |
||||
CRC of system addresses, variable names, data types
|
-39 |
DDT9961 |
||||
Tail |
CRC-168 ) |
CRC-16 of metadata content |
16 bits |
16#0–16#FFFF |
-40 |
DT9960 |
1) |
User data can be entered by the user in . |
2) |
System data are generated by the compiler. |
3) |
Last change dates are expressed in seconds after 1.1.2001 |
4) |
CRC values are characteristic for certain data: If two CRC values are equal, then the data they represent are equal |
5) |
All CRC value calculations are based on the text information of the according objects. CRC values are affected by the following user actions:
|
6) |
Please consider that there can be different addresses from the same project depending on incremental compile or compile all. To be sure that all addresses are kept, always use or |
7) |
Compile options, code generation
|
8) |
Metadata tail CRC-16 is used to check whether the metadata are valid. The generator polynomial is CRC-16 Modbus RTU x16+x15+x2+1 |
Metadata require 42 registers in the uppermost DT hold area just below the cold-start-detection registers.
The number of cold-start-detection registers in the uppermost DT hold area depend on the PLC type:
Number of requested cold-start-detection registers |
PLC types |
2 |
FP0R, FP-X, FP-XH, FP0H, FPS |
4 |
FP2SH-120k (because of additional task Programs 2) |
FP7 (because of additional task Periodic interrupt) |