Page 1 of 2

Open/Close CD Tray

Posted: Fri Nov 14, 2014 2:28 am
by JB_AU
**Note ; I only have a laptop to test this on :(

openclosetray.fsm
Fixed
(446 Bytes) Downloaded 1091 times

Re: Open/Close CD Tray

Posted: Fri Nov 14, 2014 3:07 am
by nix
Could we print mate?
&ty, I'll try it now

edit: it sort of works-
it does actually open my lappy's cd tray.
however this error is constant->

NameError: uninitialized constant CD Tray

It doesn't matter what state the bool is in, or whether it is triggered

Re: Open/Close CD Tray

Posted: Fri Nov 14, 2014 3:47 am
by JB_AU
Could we print mate?


???

Re: Open/Close CD Tray

Posted: Fri Nov 14, 2014 4:02 am
by nix
just wondering if somehow you could print a string from FS on a printer?
I thought I'd ask because you have implemented this

Re: Open/Close CD Tray

Posted: Fri Nov 14, 2014 4:48 am
by JB_AU
I used shellexecute which is very primitive & limited.
PRINT sometext.txt /D:com2

There is however
WORDPAD /PT sometxt.rtf ThisPrinter

Which completely does formatting but opens & closes wordpad :(

I am trying to pipe to winspool.drv so there is no limitation :roll: :shock:

Re: Open/Close CD Tray

Posted: Fri Nov 14, 2014 10:41 am
by nix
Interesting,
well done.
The potential market for business machines is huge

Re: Open/Close CD Tray

Posted: Fri Nov 14, 2014 10:56 am
by JB_AU
The potential market for machine automation is astronomical 8-)

Re: Open/Close CD Tray

Posted: Fri Nov 14, 2014 11:16 am
by nix
Yep,
it's fixed as far as I can tell,
my door is manually closed.

I have a little experience with machine control-
Baldor servo and SEW PLCs

What I was getting at was accounting software-
could be a real winner if print enabled

--I will test it on a door that closes too in a minute on my desktop

Re: Open/Close CD Tray

Posted: Fri Nov 14, 2014 12:14 pm
by Walter Sommerfeld
Hmm...

It doesn't matter what state the bool is in, or whether it is triggered

On my PC it always only opens the cd tray (if closed)

Re: Open/Close CD Tray

Posted: Fri Nov 14, 2014 1:08 pm
by JB_AU
It's supposed to eject the tray when clicked & close the tray when clicked.