for tag, port in pairs(manager.machine.ioport.ports) do for name, field in pairs(port.fields) do print(tag, name) end end manager.machine:exit()