it is not possible to open parallel devices.
You can open serial devices:
S DEV="/dev/ttyS0" O DEV U DEV
If you want to use parallel devices, you have to
send your data to a file, for example /tmp/print.dat
and after that you can say
ZSY "cp /tmp/print.dat /dev/lp0"
but you must have write access to /dev/lp0
(normally only root)
Perhaps it is better to use the printer daemon:
ZSY "lpr -l -Plp /tmp/print.dat"
(assuming that lp is the name of the printer)
Martin
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi all,
When i try to print, i get the error:
%GTM-E-UNIMPLOP, Unimplemented construct encountered
At M source location teste+2^teste
teste ; testes
s dev="/dev/lp0"
o dev u dev
w !,"teste....."
c dev
q
;
Why this ocurr?
Luciano.
Hi Luciano,
it is not possible to open parallel devices.
You can open serial devices:
S DEV="/dev/ttyS0" O DEV U DEV
If you want to use parallel devices, you have to
send your data to a file, for example /tmp/print.dat
and after that you can say
ZSY "cp /tmp/print.dat /dev/lp0"
but you must have write access to /dev/lp0
(normally only root)
Perhaps it is better to use the printer daemon:
ZSY "lpr -l -Plp /tmp/print.dat"
(assuming that lp is the name of the printer)
Martin
Martin,
thank you!!!, I go to use your last suggestion.
Regards,
Luciano.