local component = require("component")
local excavator = component.ie_excavator
local onoff = component.ie_excavator.isActive()
local on = component.ie_excavator.setEnabled(true)
local excavators = {}
local stateIndex = 1
for address in component.list("ie_ex") do
excavators[stateIndex]=address
print (excavators[stateIndex])
print (onoff)
stateIndex = stateIndex+1
excavators.on()
end
here u go