Add fire service control for digilines I/O modules
Not in the manual yet, but set the command field to "fs1off" to turn it off, "fs1on" to turn it on, "fs1alt" to turn it on with alternate floor recall, or "mrsmoke" for machine room/hoistway heat/smoke detector.
This commit is contained in:
parent
e5edbece2b
commit
74302e3db8
@ -138,6 +138,26 @@ local function handledigilines(pos,node,channel,msg)
|
||||
},
|
||||
})
|
||||
end
|
||||
elseif msg.command == "fs1off" then
|
||||
celevator.controller.run(carinfo.controllerpos,{
|
||||
type = "fs1switch",
|
||||
state = false,
|
||||
})
|
||||
elseif msg.command == "fs1on" then
|
||||
celevator.controller.run(carinfo.controllerpos,{
|
||||
type = "fs1switch",
|
||||
state = true,
|
||||
})
|
||||
elseif msg.command == "fs1alt" then
|
||||
celevator.controller.run(carinfo.controllerpos,{
|
||||
type = "fs1switch",
|
||||
state = true,
|
||||
mode = "alternate",
|
||||
})
|
||||
elseif msg.command == "mrsmoke" then
|
||||
celevator.controller.run(carinfo.controllerpos,{
|
||||
type = "mrsmoke",
|
||||
})
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user