Data exchange between PLC and REST interface
Systems with REST interface allow you to modify your objects externally by calling REST functions. The objects can represent any entities, depending on which application the system implements. In addition to changes to objects, objects can also be created, queried, or deleted.
To create or modify objects using data from a PLC, the PLC can be connected via OPC UA and the OPC Client Plug-in. Which objects can be addressed in the target system can be queried and browsed via the OpenAPI / Swagger function by the OPC router. If, for example, a batch can be created via REST, the PLC must provide all data in OPC data points when the batch is created and trigger the REST call. The data points are then transferred as a JSON packet by REST call and the batch is created as an object.