Output An accessory address
An accessory address on your command station: a light, a bell, an uncoupler, a signal not in the diagram. You make it with output(number); green is on, red is off.
K čemu: For anything you switch on and off that is not a turnout or signal in the diagram: street lights, a level crossing, a turning billboard.
def lamp = output(40)
lamp.green() // on
lamp.red() // offMetody
green
Switches it green (on).
Drives the address's green output (for a turnout: straight). Goes through the scripts' rights.
output(40).green()red
Switches it red (off).
Drives the address's red output (for a turnout: diverging).
output(40).red()