This example show a BAZ setup split in three files. One file will express the resources needed for modbus machine simulation. Another one expresses the connectivity layer. The third file expresses the resources needed for visualizing machining data on a dashboard.
The example below uses an additional Docker image provided by Cybus that requires a suitable license. You can check the current capabilities and permissions of your Connectware license in the Cybus Portal (https://portal.cybus.io). If your license is not eligible to use the example Docker image, please contact Cybus Sales (sales@cybus.io).
simulated-shop-floor.yml
description: >
This Service simulates a shop floor equipped with a single machine talking
the modbus protocol
metadata:
name: Simulated Shop Floor
icon: https://www.cybus.io/wp-content/uploads/2017/10/for-whom1.svg
provider: cybus
homepage: https://www.cybus.io
parameters:
modbusPort:
type: integer
default: 10502
resources:
modbusMachine:
type: Cybus::Container
properties:
image: registry.cybus.io/cybus-services/baz-machine-simulator:0.0.1
ports:
- !sub '${modbusPort}:10502/tcp'