Missing commands in Printer module

Discussion about the new DM41X calculator
HPMike
Posts: 209
Joined: Fri Jul 21, 2017 11:01 pm
Location: DFW, Texas

Missing commands in Printer module

Post by HPMike » Sat Oct 10, 2020 6:16 am

The printer module is missing some commands, notably PRTON, PRTOFF and RESETP are missing and when executed result in NONEXISTENT. Also missing are MAN, NORM, TRACE and DELAY. All these commands are present in a real IR module when installed in an HP41C. The PRTOFF command is particularly important to allow programs that normally direct their output to the printer to send it to the display instead when a printer is not present. The only way to run these programs is to unplug the printer module from the active modules list. There are probably other omissions, but it's way past my bedtime, so I'll leave it at this for now. Please fix this ASAP.
DM15L, S/N 00548. DM42, SN: 00159. DM41X, SN: 00973.

bernouilli
Posts: 22
Joined: Tue Jun 19, 2018 11:01 am

Re: Missing commands in Printer module

Post by bernouilli » Sat Oct 10, 2020 10:42 am

The printer module is in fact the module from the hp82143a printer. That’s why it doesn’t contain the commands you list. Those commands are in the IR printer module (hp82242a). However this module is not supported by the dm41x right now. You get a warning if you try and plug it. It may get supported in a future release.

Man, norm and trace are switches on the actual hp82143 printer, and the delay can be set the the dm41x setup menu.
Last edited by bernouilli on Sat Oct 10, 2020 2:53 pm, edited 3 times in total.

HPMike
Posts: 209
Joined: Fri Jul 21, 2017 11:01 pm
Location: DFW, Texas

Re: Missing commands in Printer module

Post by HPMike » Sat Oct 10, 2020 2:39 pm

bernouilli wrote:
Sat Oct 10, 2020 10:42 am
The printer module is in fact the module from the hp82143a printer. That’s why it doesn’t containt the commands you list. Thoses commands are in the IR printer module (hp82242a). However this module is tôt supported by the dm41x right now. You get a warning if you try and plug it. It may get supported in a future release.

Man, norm and trace are switches on the actual hp82143 printer, and the delay can be set the the dm41x setup menu.
This makes no sense at all. The module should emulate the IR Printer module, not the hp82143a printer. This is the way the DM42 works, because it is using the IR printer and not the plug in printer. Commands like PRTOFF are critical operations that need to be available on the calculator. Otherwise, there is no way to clear flag 55 so that programs that normally print to the IR printer, can print to the display instead using AVIEW and VIEW when the printer is not available. And, no, you cannot clear flag 55 manually with the CF 55 command. The only way to do this is to unplug the printer module in Settings every time you run a program with VIEW and AVIEW without the printer being present, which is very cumbersome.
Last edited by HPMike on Sat Oct 10, 2020 2:55 pm, edited 1 time in total.
DM15L, S/N 00548. DM42, SN: 00159. DM41X, SN: 00973.

bernouilli
Posts: 22
Joined: Tue Jun 19, 2018 11:01 am

Re: Missing commands in Printer module

Post by bernouilli » Sat Oct 10, 2020 2:50 pm

I agree with you, however, I just explained why the commands like PRTOFF aren’t available.
Right night, and until the module hp82242 is supported, the only way I see is to unplug the printer module when needed.

HPMike
Posts: 209
Joined: Fri Jul 21, 2017 11:01 pm
Location: DFW, Texas

Re: Missing commands in Printer module

Post by HPMike » Sat Oct 10, 2020 2:59 pm

bernouilli wrote:
Sat Oct 10, 2020 2:50 pm
I agree with you, however, I just explained why the commands like PRTOFF aren’t available.
Right night, and until the module hp82242 is supported, the only way I see is to unplug the printer module when needed.
Yes, I know that, but this is extremely cumbersome. Please expedite implementation of the IR module.
DM15L, S/N 00548. DM42, SN: 00159. DM41X, SN: 00973.

HPMike
Posts: 209
Joined: Fri Jul 21, 2017 11:01 pm
Location: DFW, Texas

Re: Missing commands in Printer module

Post by HPMike » Sat Oct 10, 2020 3:19 pm

Furthermore, the IR printer lacks a MAN, NORM, TRACE switch, so the only way to implement this is with those commands included in the module. Again, this calculator prints via IR, and it should work exactly the same way as the DM42.
DM15L, S/N 00548. DM42, SN: 00159. DM41X, SN: 00973.

bernouilli
Posts: 22
Joined: Tue Jun 19, 2018 11:01 am

Re: Missing commands in Printer module

Post by bernouilli » Sat Oct 10, 2020 5:03 pm

It seems that the printing modes TRACE, MAN, NORM and PRTOFF can be managed using flags 15, 16 and 21. As written on the dm41x manual :
https://technical.swissmicros.com/dm41x ... l/#si_view

Flag 21 is to enable/disable printing and flags 15/16 are used to set the printing mode.
Last edited by bernouilli on Sat Oct 10, 2020 6:12 pm, edited 1 time in total.

HPMike
Posts: 209
Joined: Fri Jul 21, 2017 11:01 pm
Location: DFW, Texas

Re: Missing commands in Printer module

Post by HPMike » Sat Oct 10, 2020 6:01 pm

bernouilli wrote:
Sat Oct 10, 2020 5:03 pm
It seems that the printing modes TRACE, MAN, NORM and PRTOFF can be managed using flags 15, 16 and 21. As written ont the dm41x manual :
https://technical.swissmicros.com/dm41x ... l/#si_view

Flag 21 is to enable/disable printing and flags 15/16 are used to set the printing mode.
Flag 55 must be cleared in order to disable printing, and it is not a user controlled flag, so CF 55 does not work. When the printer module is active, Flag 55 is set. The only way to disable printing is to execute PRTOFF, which clears Flag 55. Again, AVIEW and VIEW do not work when Flag 55 is set, so programs do not pause to display results on the calculator.

There are many programs that will not work properly when the printer module is active, but the printer is not present. For example, try running program POLY in the MATH PAC module, and see what happens.
DM15L, S/N 00548. DM42, SN: 00159. DM41X, SN: 00973.

HPMike
Posts: 209
Joined: Fri Jul 21, 2017 11:01 pm
Location: DFW, Texas

Re: Missing commands in Printer module

Post by HPMike » Sat Oct 10, 2020 6:53 pm

I looked at the DM41X User Manual, page 6, and there is no information on flag settings for the various printer modes. Instead, it directs you to the HP-82162A Printer manual, which has no information on this topic. I figured it out by trying different flag settings, and recommend that the DM41X User Manual be revised to include this information as follows:

MAN Manual Print Mode flag 15 clear and flag 16 clear

TRA Trace Print Mode flag 15 set and flag 16 clear (or set)

NRM Normal Print Mode flag 15 clear and flag 16 set

Having said this, it is a lot easier to do this with commands like MAN, NORM, TRACE which are part of the IR Printer module 82242A.
Last edited by HPMike on Sat Oct 10, 2020 7:16 pm, edited 1 time in total.
DM15L, S/N 00548. DM42, SN: 00159. DM41X, SN: 00973.

dlachieze
Posts: 246
Joined: Thu May 04, 2017 12:20 pm
Location: France

Re: Missing commands in Printer module

Post by dlachieze » Sat Oct 10, 2020 7:12 pm

My understanding is that the printer module included in the DM41X is based on the 82143A printer module code modified to drive the DM41X IR hardware and not on the 82182A 82242A IR module code because the source code of the 82143A was published as NOMAS by HP while the source code of the 82182A 82242A IR module is not available.

It may be possible to add new functions such as MAN, NORM, TRACE, PRTOFF to the current DM41X printer module to manage the printing flags but this needs to be confirmed by the m-code gurus who modified the original 82143A module code.

[edited to fix the correct IR module reference]
Last edited by dlachieze on Sat Oct 10, 2020 8:57 pm, edited 1 time in total.
DM42: 00425 - DM41X: β00066

Post Reply