projector commands

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
neurofun
Posts: 13
Joined: Tue Oct 07, 2014 9:01 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

projector commands

Postby neurofun » Tue Oct 07, 2014 9:39 am

Hi to all,

First a big thank you to PacManFan for writing this nice piece of software an making it open source!

I have created two projector commands to switch the projectors on and off in a dual projector configuration.
projector_on
projector_off
Those are working fine from the control pane.

Now, what would the syntax be to insert them in the gcode header and footer?

Thanks in advance!

User avatar
PacManFan
Site Admin
Posts: 633
Joined: Sun Dec 01, 2013 11:44 am
Location: Ahead of the curve
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: projector commands

Postby PacManFan » Tue Oct 07, 2014 3:06 pm

The following will send the projector command to all attached projectors. You can use it anywhere gcode appears.

;<DispCmd> ALL,projector_on

neurofun
Posts: 13
Joined: Tue Oct 07, 2014 9:01 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: projector commands

Postby neurofun » Thu Oct 09, 2014 4:53 am

That works like a charm.
Thanks.


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable