A very nicely created signal tower script is available from CsLab on their support forum. You can get it from https://en.cs-lab.eu/forum/topic/stack-light-simcnc/
The sccript supports 3 lights (green, yellow, red) and a horn. Exactly fitting our setup with a used Siemens signal tower, we had bought years back when we started building our CNC machine.