FB_NoSQLObjectId_MongoDB
![FB_NoSQLObjectId_MongoDB 1:](Images/png/6274273419__Web.png)
The function block for parsing the ObjectId from the MongoDB. In the PLC it is described by the data type T_ObjectId_MongoDB.
Syntax
FUNCTION_BLOCK FB_NoSQLObjectId_MongoDB
VAR_INPUT
ObjectId : T_ObjectId_MongoDB;
END_VAR
Inputs
Name | Type | Description |
---|---|---|
ObjectId | T_ObjectId_MongoDB | 12-byte data type for describing the ObjectId. |
Properties
Name | Type | Description |
---|---|---|
eTraceLevel | TcEventSeverity | Specifies the weighting of the events. Only events with a weighting higher than this value are sent to the TwinCAT system. |
nId | UDINT | Non-unique, sequential number |
nMachineId | UDINT | Identification of the machine |
nProcessId | UINT | Identification of the writing process |
tTimestamp | DATE_AND_TIME | Time stamp of the record |
Methods
Name | Definition location | Return value | Description |
---|---|---|---|
ToString | Local | STRING(36) | Returns the ID as a string with type designation. |
ValueOf | Local | STRING(24) | Returns only the ID as a string. |
Requirements
Development environment | Target platform | PLC libraries to include |
---|---|---|
TwinCAT v3.1 Build 4022.20 | PC or CX (x86) | Tc3_Database |