Support Portal

Integration of PS30 - Part 2: JSON REST calls

Integration of PS30 - Part 2: JSON REST calls.
Related Products
PS30

Table of Contents

*Attention: PS30 is discontinued and not available anymore. There is no direct replacement product. Please contact us if you need further support*

It's not common to use the SICK web server (SOPASair) directly in machine HMIs.
Rather it is prefered to integrate it into the design of the machine HMI.

The most suitable way to do this is to use the tools which are provided by the PS30:

  • Modular web server (see separate / linked article below)
  • JSON REST calls
  • Function block for PLC (see separate / linked article below)

2.) JSON REST calls

JSON REST may sounds complicated to you.
But it provides a very easy access to each parameters of the PS30.

To use JSON REST you don't need to use any external libraries or even code your own to support the used COLA-B  SICK protocol.
You can just use standard HTTP requests of your programming environment.

It is even easy to test it yourself with your browser.

Example:
Reading device name and version is just done by calling the following URL in your browser:

http://<HostName>/api/DeviceIdent

If you like to test writing you can use a browser add-on like "RESTClient" in Firefox:

As you see JSON REST calls are easy to test, easy to read for a human and also easy to interpret for a machine.
We recommend this way for future implementations.

 

A detailed description with examples for each available variable is found in the PS30_InterfaceDocumentation in chapter 2.1.
https://www.sick.com/media/dox/8/58/158/Technical_information_PS30_SOPAS_Communication_Interface_Description_en_IM0070158.PDF

Keywords:
integration of ps30, JSON REST calls, function block