Blog · Application

Coolant flow on a machine tool

Stop the cycle before the tool runs dry, and read the coolant temperature from the same sensor.

3D station: coolant pump and pipe with the SA5000 at 82 percent ON, Beckhoff EP6224-2022 master with its cable, control cabinet
Coolant pump, pipe, SA5000 in the line, Beckhoff EP6224-2022 box. Press Run and watch the flow switch. Open it in the studio.

The problem

A clogged filter, a kinked hose or a worn pump cuts the coolant flow, and the pump itself raises no alarm. The machine keeps cutting, and the tool and the part pay for it within seconds.

The station

  • Sensor ifm SA5000, calorimetric flow and temperature, 45 mm probe, M18 x 1.5, port class A
  • Master Beckhoff EP6224-2022, 4 ports, EtherCAT. 1.4 A per port, 4 A total
  • Port X1, 6.4 m route, 10 m cable
Wiring: the master with the sensor on port X1 and the free ports
Wiring: SA5000 on X1 of the EP6224.
Port table with live value, process data layout, cycle time and settings
Ports: flow in bits 16 to 31 in %, temperature in bits 2 to 15 at 0.1 °C, OUT2 and OUT1 in bits 1 and 0.

The settings that matter

SettingValueWhyDatasheet / IODD
Operating moderelative (factory)Emulsion is not on the media list; teach the normal flow on the machine, then flow reads 0 to 100 %Media: water, glycol, air, oils. Relative mode is DeviceID 533
Switch point SP160 %“Flow OK” from 60 % of normal flowSP1 5 to 100 % (IODD)
Reset point rP150 %Drops at half the normal flowrP1 0 to 96 % (IODD)
In the PLC10 s, then 0.5 sIgnore the signal for 10 s after power-on. A flow loss arrives 0.5 s later (water)Power-on delay 10 s; response 0.5 s water, 0.8 s glycol, 1.8 s oil

The current report lists operating mode ModE at ISDU index 689 as read-only. Relative mode has raw value 0 and DeviceID 533; absolute liquid uses DeviceID 540 and absolute gaseous uses 547. This example expects a readback of 0 and does not export an ISDU write for ModE. The teach is done on the running machine.

Run it

Run mode: SA5000 at 74.8 percent, OUT1 switched, process data 00 4B 03 71
Flow at 74.8 % of the taught value, OUT1 on. Process data 00 4B 03 71: flow 0x004B is 75 %, temperature 0x0371 shifted right by two is 220, that is 22.0 °C (a fixed room value in the simulation), and bit 0 is OUT1.

What you get

The screenshots show the earlier example. The JSON, CSV and current HTML report below use the current Studio data. They are proposed settings, not a record of physical commissioning.

The commissioning file has every port: validation IDs, cycle time, data storage, and each parameter as ISDU index, subindex and raw value. This is port X1 from the real file, trimmed to the fields that matter:

{
  "port": 1,
  "mode": "iolink",
  "tag": "F1",
  "device": {
    "part": "SA5000",
    "vendor": "ifm electronic",
    "vendor_id": 310,
    "device_id": 533,
    "iodd_file": "ifm-000215-20161025-IODD1.1.xml",
    "bitrate": "COM2",
    "validation": {
      "recommended": "type_compatible",
      "vendor_id": 310,
      "device_id": 533,
      "alternatives": [
        "none",
        "type_compatible",
        "identical"
      ],
      "serial_number": null
    },
    "data_storage": {
      "recommended": "backup_restore",
      "note": "Parameters are kept in the master so a replacement device is loaded automatically. Needs a device that supports data storage; check the IODD."
    },
    "cycle_time_ms": {
      "device_min": 3,
      "recommended": 3
    },
    "process_data": {
      "in_bits": 32,
      "in_bytes": 4,
      "out_bits": 0,
      "out_bytes": 0,
      "in_layout": [
        {
          "name": "Flow",
          "bit_offset": 16,
          "bits": 16,
          "gradient": 1,
          "unit": "%"
        },
        {
          "name": "Temperature",
          "bit_offset": 2,
          "bits": 14,
          "gradient": 0.1,
          "unit": "°C"
        },
        {
          "name": "OUT2",
          "bit_offset": 1,
          "bits": 1,
          "gradient": null,
          "unit": null
        },
        {
          "name": "OUT1",
          "bit_offset": 0,
          "bits": 1,
          "gradient": null,
          "unit": null
        }
      ]
    },
    "parameters": [
      {
        "key": "flow_sp1",
        "name": "Flow switch point SP1",
        "kind": "setting",
        "unit": "%",
        "value": 60,
        "entered": 60,
        "note": null,
        "index": 583,
        "subindex": 0,
        "datatype": "IntegerT",
        "bit_length": 16,
        "raw": 60,
        "raw_hex": "00 3C",
        "clamped": false,
        "status": "ok"
      },
      {
        "key": "flow_rp1",
        "name": "Flow reset point rP1",
        "kind": "setting",
        "unit": "%",
        "value": 50,
        "entered": 50,
        "note": null,
        "index": 584,
        "subindex": 0,
        "datatype": "IntegerT",
        "bit_length": 16,
        "raw": 50,
        "raw_hex": "00 32",
        "clamped": false,
        "status": "ok"
      },
      {
        "key": "medium",
        "name": "Operating mode",
        "kind": "option",
        "unit": "",
        "value": "relative",
        "entered": null,
        "note": null,
        "index": 689,
        "subindex": 0,
        "datatype": "UIntegerT",
        "bit_length": 8,
        "raw": 0,
        "raw_hex": "00",
        "clamped": false,
        "status": "read_only"
      }
    ]
  }
}

Download: commissioning file (JSON) · CSV · current station report (HTML)

Three pages of the PDF station report: cover with the 3D layout, ports and process data, parameter writes
The station report, printed from the studio: cover with the 3D layout, ports and process data, and the parameter writes. Two more pages have the bill of materials and the installer checklist.

Buy and install. One button in the studio sends the station to us. We reply with a price and an install date, buy the parts, mount and wire them, and write the settings on site. No payment is taken in the studio.

Open this station in the studio

The same station comes out of ChatGPT with the iolinki connector (https://mcp.iolinki.com/mcp, setup on the MCP page): describe the job and it builds, checks and shows the station in the chat.

Sources

More applications