Skip to main content

HTTP Push / Motor Sense

These are two modes for receiving values from external IT systems / measurement solutions rather than from a PLC.

ModeWhen to use it
HTTP PushWhen an external system "sends" values to the gateway. Example: an in-house MES pushes a batch name, a barcode scanner pushes a value
Motor Sense (MOTOR_SENSE)When polling vibration/status data from the KOPENS Motor Sense solution

HTTP Push Mode

Instead of the gateway "going out to read" values from a PLC, an external system pushes the values in.

Registration form entries

FieldWhat to enter
IP address(not actually used, for identification only) — e.g. 127.0.0.1
Port(not actually used) — e.g. 0
Collection intervalThe interval at which the gateway reads and processes externally pushed values from its cache — normally 1000

PLC address notation for tags

A free-form key string. This is the identifier the external system uses when pushing values.

ExampleMeaning
temperatureFree-form name
line/A/rpmSlashes allowed
barcode.lastDots allowed

How to send values from outside

Send an HTTP request in the following format to the gateway.

POST http://<gateway-ip>/api/v1/tag/<tag-id>/value
Content-Type: application/json

{ "value": "25.7" }

Alternatively, see the "Writing values" section of the Advanced — REST API page.

Once a value arrives, it appears on screen at the next collection cycle and is transmitted via MQTT / Sparkplug and so on, just like any PLC value.

Common use cases

CaseHow
MES pushes a batch nameCreate a tag such as recipe.name with data type String
Collecting barcode scanner resultsbarcode.last, String
Relaying values from an external PLC (one that cannot be connected)Have that system send pre-converted values
Sending in external analysis resultsquality.score, Float

Motor Sense

A dedicated mode for retrieving data from the KOPENS Motor Sense solution.

Differences from a standard PLC

ItemStandard PLCMotor Sense
Screen displayTag tablePer-asset cards (HEALTH INDEX / SIGNAL)
Tag registrationEntered one by one by the userAuto-generated (signals + health_index)
Refresh intervalScreen 5 s1 s background refresh
Data formatFree-formJSON array (multiple assets grouped)

Registration form entries

FieldWhat to enter
API KEYAPI key issued by KOPENS
Customer IDCustomer identifier issued by KOPENS
Asset list URLURL for querying the asset list
Asset signal URLURL for asset signal data
Asset health index URLURL for asset status (health index)
Load waveform/spectrumWhether to also retrieve the heavy waveform data

The URLs must start with http:// or https://.

Auto-generated tags

The gateway automatically creates two tags.

Tag nameMeaning
signalsPer-asset bundle of signals such as vibration / temperature / voltage (JSON array)
health_indexPer-asset health indices (imbalance / alignment / bearing, etc., JSON array)

The data for each asset is expanded into card format.


Common problems and solutions

HTTP Push mode

SymptomCauseSolution
No values arrivingThe external system did not push, or the tag ID is misspelledCheck the external system log. Verify that POST /api/v1/tag/.../value returns 200 OK
Values update slowlyCollection interval is too longReduce [Collection interval] in the PLC registration (e.g. 500ms)

Motor Sense mode

SymptomCauseSolution
"drive not on classpath"Motor Sense jar not installedAsk your system administrator to install the Motor Sense jar
401 UnauthorizedAPI KEY / Customer ID errorVerify the KOPENS-issued key carefully
URL rejectedDoes not start with http:// or https://Check the URL format

More detailed examples / automated registration

See the HTTP / Motor Sense examples in Advanced — REST API.