Stonemont QC Interface: Difference between revisions

From KeystoneIntranet
Jump to navigation Jump to search
Intra>Chanson
 
m (1 revision imported)
 
(No difference)

Latest revision as of 13:00, 14 July 2023


About the Interface

The Stonemont interface is a JSON REST server. This sounds complicated but it's really just a web server that takes in requests like a web browser and serves back data in the JSON format.

The specification Keystone Batch Control Quality Control Interface REST API gives you all the details you want (and more).

Preparing Keystone Data

Keystone Setup doesn't require anything out of the ordinary but it does require an accurate, consistent and thoughtful setup. The guidelines for a customer can be found on the Keytone Help site: http://keystonehelp.compucrete.com/Creating_Mix_Designs

The principles are:

  • Separate product codes by plant
  • Clean Mix Product IDs and Ingredient Product IDs
  • Good choice of delimiter
  • Accurately configure Product Base and Plant ID to match the product code
  • Get the details correct (product class, product type etc.)

You Do need to setup all mix product codes and all ingredient codes. You Do Not need to setup the mix design. The Stonemont system can handle this.

Install Rest Server

New system interfaces installed in 2019 and beyond should be configured using KServer.

Sample Kserver.INI

[config]

ports=8211,8212
[config_8212]
logevents=SERVER,ERROR,REQUEST,RESPONSE,QUERY
CoId=001


You can test the interface from a web browser (IE on a server is tough to use - try to use chrome if possible). Try something like the following command:

http://127.0.0.1:8212/rest/kbcqciapi1/001/connection

Obviously change the ip address and 001 to refer to a different computer and company ID>

You can then test the data setup using more advanced items.

Examples: For a list of materials in company 002, plant 04:

http://127.0.0.1:8212/rest/kbcqciapi1/002/materials/04

For a list of mix designs in company 003, plant 10:

http://127.0.0.1:8212/rest/kbcqciapi1/003/mixdesigns/10