MTConnect.NET-JSON 6.4.7

There is a newer version of this package available.
See the version list below for details.
dotnet add package MTConnect.NET-JSON --version 6.4.7                
NuGet\Install-Package MTConnect.NET-JSON -Version 6.4.7                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MTConnect.NET-JSON" Version="6.4.7" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MTConnect.NET-JSON --version 6.4.7                
#r "nuget: MTConnect.NET-JSON, 6.4.7"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install MTConnect.NET-JSON as a Cake Addin
#addin nuget:?package=MTConnect.NET-JSON&version=6.4.7

// Install MTConnect.NET-JSON as a Cake Tool
#tool nuget:?package=MTConnect.NET-JSON&version=6.4.7                

MTConnect.NET Logo

MTConnect.NET-JSON

MTConnect.NET-JSON is an extension library to MTConnect.NET that provides reading and writing as JSON formatted Response Documents

Note: This Module is still under development and may be deprecated in the future. Please feel free to leave feedback or create Issues on GitHub.

Document Format ID

JSON

The above document format ID can be used to specify a ResponseDocumentFormatter or EntityFormatter to output using this library

Devices

MTConnectDevicesResponse documents are formatted as shown below.

Examples

Example

{
  "header": {
    "instanceId": 1675796631,
    "version": "5.0.0.0",
    "sender": "DESKTOP-HV74M4N",
    "bufferSize": 150000,
    "assetBufferSize": 1000,
    "assetCount": 2,
    "deviceModelChangeTime": "2023-02-07T19:03:51.4276271Z",
    "creationTime": "2023-02-07T20:59:56.063869Z"
  },
  "devices": [
    {
      "id": "OKUMA.Lathe",
      "type": "Device",
      "name": "OKUMA-Lathe",
      "uuid": "OKUMA.Lathe.123456",
      "description": {
        "manufacturer": "OKUMA",
        "model": "LB3000",
        "serialNumber": "3216549771",
        "value": "Okuma MT Connect Adapter - Lathe"
      },
      "dataItems": [
        {
          "category": "EVENT",
          "id": "L2avail",
          "type": "AVAILABILITY",
          "name": "avail"
        }
      ],
      "components": [
        {
          "id": "L2ct1",
          "type": "Controller",
          "name": "Controller",
          "dataItems": [
            {
              "category": "EVENT",
              "id": "L2estop",
              "type": "EMERGENCY_STOP",
              "name": "estop"
            }
          ],
          "components": [
            {
              "id": "L2p1",
              "type": "Path",
              "name": "path",
              "dataItems": [
                {
                  "category": "EVENT",
                  "id": "L2p1mode",
                  "type": "CONTROLLER_MODE",
                  "name": "p1mode"
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}

Observations

MTConnectStreamsResponse documents are formatted as shown below.

Examples

Example

{
  "header": {
    "InstanceId": 1675796631,
    "Version": "5.0.0.0",
    "Sender": "DESKTOP-HV74M4N",
    "BufferSize": 150000,
    "FirstSequence": 1,
    "LastSequence": 138,
    "NextSequence": 139,
    "DeviceModelChangeTime": "2023-02-07T19:03:51.4276271Z",
    "CreationTime": "2023-02-07T20:54:26.7903092Z"
  },
  "streams": [
    {
      "name": "OKUMA-Lathe",
      "uuid": "OKUMA.Lathe.123456",
      "componentStream": [
        {
          "component": "Path",
          "componentId": "L2p1",
          "name": "path",
          "samples": [
            {
              "dataItemId": "L2p1Fact",
              "name": "p1Fact",
              "type": "PATH_FEEDRATE",
              "subType": "ACTUAL",
              "timestamp": "2023-02-07T19:03:51.4064826Z",
              "sequence": 38,
              "result": "UNAVAILABLE"
            },
          ],
          "events": [
            {
              "dataItemId": "L2p1mode",
              "name": "p1mode",
              "type": "CONTROLLER_MODE",
              "timestamp": "2023-02-07T20:58:08.739602Z",
              "sequence": 139,
              "result": "AUTOMATIC"
            }
          ],
          "condition": [
            {
              "level": "WARNING",
              "dataItemId": "L2p1system",
              "name": "p1system",
              "type": "SYSTEM",
              "timestamp": "2023-02-07T20:30:16.8639659Z",
              "sequence": 137,
              "result": "Not Found",
              "nativeCode": "404"
            },
            {
              "level": "FAULT",
              "dataItemId": "L2p1system",
              "name": "p1system",
              "type": "SYSTEM",
              "timestamp": "2023-02-07T20:30:38.9662297Z",
              "sequence": 138,
              "result": "Interval Error",
              "nativeCode": "500"
            }
          ]
        }
      ]
    }
  ]
{

Assets

MTConnectAssetsResponse documents are formatted as shown below.

Examples

Example

{
  "header": {
    "InstanceId": 1675796631,
    "Version": "5.0.0.0",
    "Sender": "DESKTOP-HV74M4N",
    "AssetBufferSize": 1000,
    "AssetCount": 2,
    "DeviceModelChangeTime": "2023-02-07T19:03:51.4276271Z",
    "CreationTime": "2023-02-07T21:07:46.4658671Z"
  },
  "assets": [
    {
      "assetId": "tool.2",
      "type": "CuttingTool",
      "timestamp": "2023-02-07T19:04:19.8594137Z",
      "deviceUuid": "OKUMA.Lathe.123456",
      "serialNumber": "1",
      "toolId": "KSSP300R4SD43L240",
      "manufacturers": "KMT,Parlec",
      "cuttingToolLifeCycle": {
        "cutterStatus": [
          "NEW"
        ],
        "toolLife": {
          "type": "PART_COUNT",
          "countDirection": "UP",
          "limit": 10
        },
        "programToolNumber": "1",
        "connectionCodeMachineSide": "CV50",
        "measurements": [
          {
            "type": "BodyDiameterMax",
            "value": 73.25,
            "units": "MILLIMETER",
            "code": "BDX"
          },
          {
            "type": "OverallToolLength",
            "value": 323.86,
            "units": "MILLIMETER",
            "code": "OAL",
            "maximum": 324.104,
            "minimum": 323.596,
            "nominal": 323.85
          },
          {
            "type": "UsableLengthMax",
            "value": 82.55,
            "units": "MILLIMETER",
            "code": "LUX",
            "nominal": 82.55
          },
          {
            "type": "CuttingDiameterMax",
            "value": 76.262,
            "units": "MILLIMETER",
            "code": "DC",
            "maximum": 76.213,
            "minimum": 76.187,
            "nominal": 76.2
          },
          {
            "type": "BodyLengthMax",
            "value": 222.259,
            "units": "MILLIMETER",
            "code": "LBX",
            "maximum": 222.504,
            "minimum": 222.004,
            "nominal": 222.25
          },
          {
            "type": "DepthOfCutMax",
            "value": 62.383,
            "units": "MILLIMETER",
            "code": "APMX",
            "nominal": 60.96
          }
        ]
      }
    },
    {
      "assetId": "file.patrick2",
      "type": "File",
      "timestamp": "2023-02-07T21:11:21.3576018Z",
      "deviceUuid": "OKUMA.Lathe.123456",
      "name": "file-123.txt",
      "mediaType": "text/plain",
      "applicationCategory": "DEVICE",
      "applicationType": "DATA",
      "size": 123456,
      "versionId": "test-v1",
      "state": "PRODUCTION",
      "fileLocation": {
        "href": "C:\\temp\\file-123.txt"
      },
      "creationTime": "2022-06-16T14:23:46.4347597Z"
    }
  ]
}
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 is compatible.  net462 is compatible.  net463 was computed.  net47 is compatible.  net471 is compatible.  net472 is compatible.  net48 is compatible.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on MTConnect.NET-JSON:

Package Downloads
MTConnect.NET

MTConnect.NET is a fully featured .NET library for MTConnect Agents, Adapters, and Clients. Supports MTConnect Versions up to 2.3. Supports .NET Framework 4.6.1 up to .NET 8

MTConnect.NET-MQTT

MTConnect.NET-MQTT implements the MQTT Protocol for use with the MTConnect.NET library. Supports MTConnect Versions up to 2.3. Supports .NET Framework 4.6.1 up to .NET 8

MTConnect.NET-Applications-Agents

MTConnect.NET-Applications-Agents contains classes to fully implement an MTConnect Agent application. Supports MTConnect Versions up to 2.3. Supports .NET Framework 4.6.1 up to .NET 8

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
6.5.1 416 12/3/2024
6.5.0 773 10/21/2024
6.4.7 927 8/21/2024
6.4.6 602 8/7/2024
6.4.5 284 8/2/2024
6.4.4 528 7/16/2024
6.4.3 534 6/14/2024
6.4.2 398 6/12/2024
6.4.1 585 5/17/2024
6.4.0 331 5/14/2024
6.3.2-beta 279 5/2/2024
6.3.1-beta 490 4/24/2024
6.3.0-beta 295 4/17/2024
6.2.2-beta 292 4/5/2024
6.2.1-beta 304 4/3/2024
6.2.0-beta 303 3/27/2024
6.1.3-beta 321 3/15/2024
6.1.2-beta 308 3/15/2024
6.0.11-beta 567 2/2/2024
6.0.10-beta 471 1/26/2024
6.0.9-beta 554 12/28/2023
6.0.8-beta 571 12/27/2023
6.0.7-beta 568 12/19/2023
6.0.5-beta 650 12/14/2023
6.0.3-beta 689 12/12/2023
6.0.1-beta 731 12/7/2023
5.4.4 3,586 6/6/2023
5.4.3 2,520 5/20/2023
5.4.1 1,417 3/28/2023
5.4.0 1,508 3/20/2023
5.3.0 1,168 3/14/2023
5.2.0 1,290 3/5/2023
5.1.0 1,335 3/3/2023
5.0.0 3,930 2/3/2023
4.6.0 1,739 11/28/2022
4.5.0 1,845 10/18/2022