{
  "firmware": "training",
  "on_error": "skip",
  "loop": 1,
  "loop_infinite": false,
  "same_line": false,
  "channel_a": {
    "enabled": true,
    "transport": "tcp",
    "ip": "127.0.0.1",
    "port": 502,
    "role": "master",
    "slave_id": 1,
    "timeout_ms": 1000,
    "retry": 1
  },
  "channel_b": {
    "enabled": false
  },
  "cases": [
    {
      "test": "Status",
      "steps": [
        {
          "read": {
            "channel": "A",
            "function": 3,
            "address": "0x0000",
            "expected": 1
          }
        },
        {
          "read": {
            "channel": "A",
            "function": 3,
            "address": "0x0002",
            "format": "signed",
            "range": [
              -100,
              100
            ]
          }
        },
        {
          "read": {
            "channel": "A",
            "function": 4,
            "address": "0x0000",
            "expected": "0x0103"
          }
        }
      ]
    },
    {
      "test": "Setpoint",
      "steps": [
        {
          "write": {
            "channel": "A",
            "function": 6,
            "address": "0x0001",
            "value": 280
          }
        },
        {
          "wait": {
            "ms": 100
          }
        },
        {
          "read": {
            "channel": "A",
            "function": 3,
            "address": "0x0001",
            "expected": 280
          }
        },
        {
          "write": {
            "channel": "A",
            "function": 6,
            "address": "0x0001",
            "value": 250
          }
        },
        {
          "read": {
            "channel": "A",
            "function": 3,
            "address": "0x0001",
            "expected": 250
          }
        }
      ]
    }
  ]
}
