An example showing analog comparitors

Original Query

Show me the ladder logic for a system that has two anlogue inputs for temperature and turns on a coil when either temperature is greater than 120 degrees.

Resulting JSON

  {
  "rung": [
    {
      "input": [
        {
          "name": "Temperature 1",
          "type": "analog",
          "comparison": "greater_than",
          "value": 120
        }
      ],
      "output": {"name": "Output Coil", "type": "coil", "state": "on"}
    },
    {
      "input": [
        {
          "name": "Temperature 2",
          "type": "analog",
          "comparison": "greater_than",
          "value": 120
        }
      ],
      "output": {"name": "Output Coil", "type": "coil", "state": "on"}
    }
  ]
};