Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local reactor
- reactor = peripheral.wrap("back")
- Grundstellung = 100 -- Rod-Anfangseinstellung
- -- Grundeinstellung zum Programmstart
- reactor.setControlRodLevel(0, Grundstellung) -- 1
- Rod0 = reactor.getControlRodName(0)
- reactor.setControlRodLevel(1, Grundstellung) -- 2
- Rod1 = reactor.getControlRodName(1)
- reactor.setControlRodLevel(2, Grundstellung) -- 3
- Rod2 = reactor.getControlRodName(2)
- reactor.setControlRodLevel(3, Grundstellung) -- 4
- Rod3 = reactor.getControlRodName(3)
- reactor.setControlRodLevel(4, Grundstellung) -- 5
- Rod4 = reactor.getControlRodName(4)
- -- LaufzeitScheife
- while true do
- term.clear()
- term.setCursorPos(0, 0)
- print("")
- if Mitte ~= 0 then
- reactor.setControlRodLevel(0, Grundstellung) -- 1
- Rod0 = reactor.getControlRodName(0)
- -- print(Rod0,"0 in Grundstellung")
- end
- if Mitte ~= 1 then
- reactor.setControlRodLevel(1, Grundstellung) -- 2
- Rod1 = reactor.getControlRodName(1)
- -- print(Rod0, "1 in Grundstellung")
- end
- if Mitte ~= 2 then
- reactor.setControlRodLevel(2, Grundstellung) -- 3
- Rod2 = reactor.getControlRodName(2)
- -- print(Rod2, "2 in Grundstellung")
- end
- if Mitte ~= 3 then
- reactor.setControlRodLevel(3, Grundstellung) -- 4
- Rod3 = reactor.getControlRodName(3)
- -- print(Rod3, "3 in Grundstellung")
- end
- if Mitte ~= 4 then
- reactor.setControlRodLevel(4, Grundstellung) -- 5
- Rod4 = reactor.getControlRodName(4)
- -- print(Rod4, "4 in Grundstellung")
- end
- -- print("-----------------")
- -- print(reactor.getControlRodLevel(0))
- -- print(reactor.getControlRodLevel(1))
- -- print(reactor.getControlRodLevel(2))
- -- print(reactor.getControlRodLevel(3))
- -- print(reactor.getControlRodLevel(4))
- if Rod0 == "Pyra3Mitte" then print("Rod 0 ist Mitte", " Grundstellung = ", Grundstellung) Mitte = 0 sleep(1) end
- if Rod1 == "Pyra3Mitte" then print("Rod 1 ist Mitte", " Grundstellung = ", Grundstellung) Mitte = 1 sleep(1) end
- if Rod2 == "Pyra3Mitte" then print("Rod 2 ist Mitte", " Grundstellung = ", Grundstellung) Mitte = 2 sleep(1) end
- if Rod3 == "Pyra3Mitte" then print("Rod 3 ist Mitte", " Grundstellung = ", Grundstellung) Mitte = 3 sleep(1) end
- if Rod4 == "Pyra3Mitte" then print("Rod 4 ist Mitte", " Grundstellung = ", Grundstellung) Mitte = 4 sleep(1) end
- print("ExtremC.MAX= ", ExtremCounterMAX, " ExtremC.MIN= ", ExtremCounterMIN)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement