Skip to content

Instantly share code, notes, and snippets.

@hj91
Created September 15, 2023 12:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hj91/30427268690011f5cabc5a2b0f073014 to your computer and use it in GitHub Desktop.
Save hj91/30427268690011f5cabc5a2b0f073014 to your computer and use it in GitHub Desktop.
Parser for data obtained from http://mtconnect.mazakcorp.com:5609/current
harshad@harshad-HP-Laptop-15q-ds0xxx:~$ node mt-parser-current.js
ComponentStream: base, Component: Axes
Condition:
Unavailable: N/A (timestamp: 2023-08-06T20:17:07.303223Z)
Unavailable: N/A (timestamp: 2023-08-06T20:17:07.303223Z)
ComponentStream: A, Component: Rotary
Samples:
AngularVelocity: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
Load: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
Angle: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
Angle: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
Events:
AxisState: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
RotaryMode: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
Condition:
Unavailable: N/A (timestamp: 2023-08-06T20:17:07.303223Z)
ComponentStream: C, Component: Rotary
Samples:
AngularVelocity: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
Load: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
Load: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
Angle: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
Angle: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
RotaryVelocity: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
Temperature: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
Events:
AxisState: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
RotaryMode: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
Condition:
Unavailable: N/A (timestamp: 2023-08-06T20:17:07.303223Z)
Unavailable: N/A (timestamp: 2023-08-06T20:17:07.303223Z)
Unavailable: N/A (timestamp: 2023-08-06T20:17:07.303223Z)
ComponentStream: C2, Component: Rotary
Samples:
AngularVelocity: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
Load: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
Load: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
Angle: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
Angle: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
RotaryVelocity: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
Temperature: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
Events:
AxisState: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
RotaryMode: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
Condition:
Unavailable: N/A (timestamp: 2023-08-06T20:17:07.303223Z)
Unavailable: N/A (timestamp: 2023-08-06T20:17:07.303223Z)
Unavailable: N/A (timestamp: 2023-08-06T20:17:07.303223Z)
ComponentStream: controller, Component: Controller
Samples:
AccumulatedTime: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
AccumulatedTime: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
AccumulatedTime: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
AccumulatedTime: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
Events:
EmergencyStop: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
PalletId: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
Condition:
Unavailable: N/A (timestamp: 2023-08-06T20:17:07.303223Z)
Unavailable: N/A (timestamp: 2023-08-06T20:17:07.303223Z)
Unavailable: N/A (timestamp: 2023-08-06T20:17:07.303223Z)
ComponentStream: coolant, Component: Coolant
Samples:
Concentration: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
Temperature: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
Condition:
Unavailable: N/A (timestamp: 2023-08-06T20:17:07.303223Z)
ComponentStream: MFMS10-MC1, Component: Device
Events:
Availability: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
AssetChanged: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
AssetRemoved: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
FunctionalMode: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
ComponentStream: door, Component: Door
Events:
DoorState: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
ComponentStream: electric, Component: Electric
Condition:
Unavailable: N/A (timestamp: 2023-08-06T20:17:07.303223Z)
ComponentStream: hydraulic, Component: Hydraulic
Condition:
Unavailable: N/A (timestamp: 2023-08-06T20:17:07.303223Z)
ComponentStream: lubrication, Component: Lubrication
Condition:
Unavailable: N/A (timestamp: 2023-08-06T20:17:07.303223Z)
ComponentStream: path, Component: Path
Samples:
PathFeedrate: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
Events:
RotaryVelocityOverride: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
Execution: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
ChuckState: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
Line: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
ControllerMode: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
PartCount: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
ProgramComment: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
ProgramComment: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
ProgramEdit: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
ProgramEditName: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
PathFeedrateOverride: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
PathFeedrateOverride: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
Program: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
Program: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
x:SequenceNumber: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
ToolNumber: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
x:ToolGroup: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
x:ToolSuffix: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
x:Unit: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
Condition:
Unavailable: N/A (timestamp: 2023-08-06T20:17:07.303223Z)
Unavailable: N/A (timestamp: 2023-08-06T20:17:07.303223Z)
ComponentStream: pneumatic, Component: Pneumatic
Condition:
Unavailable: N/A (timestamp: 2023-08-06T20:17:07.303223Z)
ComponentStream: X, Component: Linear
Samples:
AxisFeedrate: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
Load: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
Position: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
Position: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
Events:
AxisState: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
Condition:
Unavailable: N/A (timestamp: 2023-08-06T20:17:07.303223Z)
ComponentStream: Y, Component: Linear
Samples:
AxisFeedrate: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
Load: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
Position: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
Position: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
Events:
AxisState: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
Condition:
Unavailable: N/A (timestamp: 2023-08-06T20:17:07.303223Z)
ComponentStream: Z, Component: Linear
Samples:
AxisFeedrate: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
Load: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
Position: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
Position: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
Events:
AxisState: UNAVAILABLE (timestamp: 2023-08-06T20:17:07.303223Z)
Condition:
Unavailable: N/A (timestamp: 2023-08-06T20:17:07.303223Z)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment