I got this working on MachPro with the available code. I have pasted the towerscript.PLC script into the PLC Script file, under the Operator > Screen Editor, [Screen Name] PLC Script, as follows:
if m.CommonPLCScript ~= nil then
m.CommonPLCScript()
end
if towerscript == nil then
towerscript = require "towerscript" -- Load's towerscript.lua from a path. probably C:\Mach4\Modules
end
towerscript.PLCScript()