- DATRON Live Machine Apps
- DATRON next REST API - Programming and Data Interface
DATRON Live Machine Apps
DATRON Live machine apps give you immediate access to the most important data of your machine – especially if you are not standing in front of it. This saves you valuable time for checking on the machine, helps to detect errors earlier and reduces downtimes.
The DATRON Live Cockpit App and the DATRON Live Camera App are suitable if you:
- Regularly leave the machine running while you have other duties to take care of but want to know exactly when the current job is finished – e.g. once you need to prepare it for the next job.
- As a machine operator, you want to check if there is a specific malfunction or one coming up.
- As a CAM programmer you need to know which tools are available in the machine’s magazine and what their current wear status is
- As a production manager, you want to know at any time whether the machine is in operation and in what condition it is
The DATRON Live machine apps are provided in the DATRON next control and can be easily accessed via a web browser on your smartphone or PC. A prerequisite is that you are in the same network as your machine.
The DATRON Live Apps are available as options and can be activated at any time by means of a license key.
You can find more information at: www.datron-live.de
DATRON next REST API - Programming and Data Interface
From now on, the DATRON next control provides a programming and data interfac: The DATRON next REST API.
REST is a worldwide and easy to learn standard and stands for Representational State Transfer. API stands for Application Programming Interface.
This new interface enables access to data and functions of the DATRON next control by third party software applications and can be used to develop individual solutions in the interaction between third party software and a DATRON milling machine. For example, it is ideal to connect an MES or ERP system, an automation or an IoT application.
DATRON offers the DATRON next REST API in two license versions.
DATRON next REST API – Basic:
Enables read access to the operating data of the DATRON machine.
DATRON next REST API – Automation:
Contains the Basic version and enables you to start additional functions, for example to execute, stop or cancel milling programs.
Parameter: DATRON next REST API – Basic
Image
GET/api/v{version}/Image/Machine
[Public] Returns the machine image
GET/api/v{version}/Image/Camera
[Public] Returns the Image of the Camera. The stream id is encoded in the given token.
GET/api/v{version}/Image/Tool
[Public] Queries the image of a tool
GET/api/v{version}/Image/ProgramPreviewImage
[Public] Queries the simulated preview image of the currently loaded program
Machine
GET/api/Machine/MachineType
[Public] Returns the machine type.
GET/api/Machine/MachineNumber
[Public] Returns the unique machine number.
GET/api/Machine/Ping
[Public] Especially useful for testing the connection to the machine.
GET/api/Machine/Licenses
[Public] Returns a descirption regarding activated license options.
GET/api/Machine/MachineStatus
[API Basic] [API Automation] Gets the status of program execution
MachineComponents
GET/api/MachineComponents/Vacuum
[API Basic] [API Automation] Queries sensors regarding vacuum
GET/api/MachineComponents/CompressedAir
[API Basic] [API Automation] Queries sensors regarding compressed air
GET/api/MachineComponents/SpraySystem
[API Basic] [API Automation] Queries sensors regarding spray system
GET/api/MachineComponents/StatusLight
[API Basic] [API Automation] Gets the RGB status light
Runtime
GET/api/Runtime/ExecutionDurations
[API Basic] [API Automation] Queries timings for the current execution
GET/api/Runtime/CurrentlyLoadedProgram
[API Basic] [API Automation] Queries the currently loaded program
GET/api/Runtime/PreviewImage
[API Basic] [API Automation] Returns a URL to the preview image to the currently loaded program
GET/api/Runtime/Notifications
[API Basic] [API Automation] Returns the last 100 Notifications
Tool
GET/api/Tool/ToolInSpindle
[API Basic] [API Automation] Queries the tool in Spindle
GET/api/Tool/ToolsInChanger
[API Basic] [API Automation] Queries tools in portalchanger or in embedded toolchanger
GET/api/Tool/ToolsInEmbeddedToolChanger
[API Basic] [API Automation] Queries the tools in embedded tool changer
GET/api/Tool/ToolsInPortalChanger
[API Basic] [API Automation] Queries the tools in portal changer
GET/api/Tool/ToolsInWarehouse
[API Basic] [API Automation] Queries the tools in warehouse
GET/api/Tool/ToolsInProgram
[API Basic] [API Automation] Queries the tools that could be used at some point in the currently loaded program
GET/api/Tool/Tool
[API Basic] [API Automation] Queries the tool by id
User
POST/api/User/CreateToken
[Public] Create an accesstoken (bearer authentication)
GET/api/User/Info
[Public] Returns permissions granted by given claim
Workpiece
GET/api/Workpiece/GetWorkpieces
[API Basic] [API Automation] Returns all saved workpieces
GET/api/Workpiece/WorkpieceImage
[API Basic] [API Automation] Returns the picture of the workpiece
Camera
GET/api/Camera/CreateCameraImageUrl
[API Basic] [API Automation] Creates a url where to get the current camera image from the stream with the given id.
Parameter: DATRON next REST API – Automation:
Machine
POST/api/Machine/Reference
[API Automation] Starts homing if not already referenced.
Workpiece
POST/api/Workpiece/Workpiece
[API Automation] Updates the workpiece
POST/api/Workpiece/UpdateWorkpieceImage
[API Automation] Updates the image of the workpiece
POST/api/Workpiece/Activate
[API Automation] Activates the workpiece
Execution
POST/api/Execution/MoveToParkPosition
[API Automation] Moves the spindle into the parking position
POST/api/Execution/Abort
[API Automation] Aborts the current execution
POST/api/Execution/Pause
[API Automation] Pauses the current execution
POST/api/Execution/Resume
[API Automation] Resumes the current execution
POST/api/Execution/ExecuteProgram
[API Automation] Executes a program. Compare the path format in the SimPL-Reference for loading modules.
POST/api/Execution/ExecuteLines
[API Automation] Executes Lines containing Program calls, programs must be available in Module Base