FB_NoSQLObjectId_MongoDB

FB_NoSQLObjectId_MongoDB 1:

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

FB_NoSQLObjectId_MongoDB 2: Inputs

Name

Type

Description

ObjectId 

T_ObjectId_MongoDB

12-byte data type for describing the ObjectId.

FB_NoSQLObjectId_MongoDB 3: 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

FB_NoSQLObjectId_MongoDB 4: Methods

Name

Definition location

Return value

Description

ToString

Local

STRING(36)

Returns the ID as a string with type designation.
Example: ‚ObjectId(„5be15c11afa6ec72b107dafaf“)‘

ValueOf

Local

STRING(24)

Returns only the ID as a string.
Example: ‚5be15c11afa6ec72b107dafaf‘

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT v3.1 Build 4022.20

PC or CX (x86)

Tc3_Database