The following warnings occurred:
Warning [2] Undefined array key 32303 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 32316 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 32356 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 32394 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 32397 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 32398 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 32513 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 32517 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined variable $thread - Line: 295 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 295 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Trying to access array offset on value of type null - Line: 295 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 295 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined variable $fid - Line: 295 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 295 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 32316 - Line: 331 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 331 errorHandler->error_callback
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 304 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 32398 - Line: 331 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 331 errorHandler->error_callback
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 304 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 32517 - Line: 331 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 331 errorHandler->error_callback
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 304 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined variable $theme - Line: 3 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 3 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Trying to access array offset on value of type null - Line: 3 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 3 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined variable $theme - Line: 3 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 3 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Trying to access array offset on value of type null - Line: 3 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 3 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined variable $lang - Line: 5 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 5 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Attempt to read property "messages_in_thread" on null - Line: 5 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 5 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks





HP-41 Plotter Module "PLOTBC" prgm. error



#2

Decades ago, while a member of the SoCal PPC club, I purchased a Plotter Module and 7470 Plotter to make bar codes. After being stolen, I managed to replace the Plotter module. I recall that a PPC member provided club members with a patch for the user entered program "PLOTBC". The manual supplied barcodes have a text line right under the program name/title which states "PROGRAM REGISTERS NEEDED: nn". However, neither the bar code nor the listing provides this line. Close examination of the program shows that label 12 which prints the program title contains two label print commands, yet only one prints the title - the other does nothing. The pen moves to the area, but nothing happens. It then moves to the bar code area and starts to print the bar code. My recollection is that the patch provided by the member corrected this error. Is there anyone out there that has this patch? Don


#3

Dear Donald,

creating nice and fast HP41Barcode prints also would be possible with EMU41 plus virtual SKWIDINK Rom both running on a PC.

For more details refer to the HP museum article forum item 311....

Best wishes from Germany - Christoph Klug

#4

I have no experience with the Plotter ROM or the PLOTBC program, but I have been studying the manual on the Museum CD-ROM. On page 117 there is a series of example bar code plots which result when PLOTBC is given the keystrokes on the preceding pages. The example of a program bar code plot includes the program title but not the number of registers. The utility program bar codes starting on page 195 have both titles and number of registers that look like they were typeset and not plotted along with the barcode. Please excuse me if this was obvious to you, and the patch you remember was an enhancement to PLOTBC and not just a fix.

I also studied the program listing starting on page 169 to see the two LABEL instructions you noted after LBL 12. Below, I have added comments to a few lines with my underestanding of the operation:

121 LBL 12

122 FS? 09 "If flag 09 set, does not print title. Otherwise, prints title and moves to next row."

123 RTN

124 CLA empty alpha for first LABEL function

125 2

126 PEN

127 CLX x=0

128 LORG 0 same as 1 for label origin, lower left of text

129 ACOS puts 90 in x (degree mode set for sure?)

130 LDIR label direction 90 degrees plots text perpendicular to bottom edge - like portrait mode on landscape mode plotter

131 LABEL alpha is empty for this one

132 ARCL Z program name was on stack in z? put in alpha

133 LABEL this one plots the program name

134 RDN

135 GTO c


How could the program determine the number of registers needed? As I understand it, the actual program bar code is plotted by a ROM function which is passed the program name, the row of bar code to plot, and the number of bytes to plot on the row. I guess the ROM routine calculates the starting byte for the row assuming all rows before this row had the same number of bytes. After plotting a row which is not the last row, the ROM routine increments the row number by 1. After the ROM routine has plotted the last row of the program, it returns the row number zero. So the PLOTBC program isn't dealing with the program bytes at all, it is just asking the ROM to plot bytes until they run out. The program could multiply the number of bytes per row by the number of rows that were plotted (until the ROM returned 0) but that wouldn't be exact because of the uncertainty of the number of bytes in the last row, and the total wouldn't be available until after all the plotting was finished.

I'm still learning the 41 - I see the 41CX has a function RCLPTA that returns the number of bytes in the program whose name is in alpha. That number divided by 7 and rounded up would be the number of registers. The text "PROGRAM REGISTERS NEEDED" is 24 characters alone, which is the size of the alpha register, so you would have to use LABEL twice, once for the words and then again for the number. And getting the number from X into the alpha register would be a pain. You would have to use CLA to clear alpha, then extract the digits one at a time, add 48 to convert each digit from 0-9 to ASCII, then use XTOA to append the ASCII character to alpha, then use LABEL to plot the characters of the number. To be exactly like the book, you would need to put ASCII ":" and a space in alpha before the digits.

Well, that shows how much I know - ARCL X can be used to put a text version of the number in X into alpha. The first time I read that page, I understood it to mean that only ASCII data stored in a register could be ARCLed. There is a routine (LBL 00) in the XBC program, which supports PLOTBC, that appends the number in X to alpha after using a loop with the FIX function to suppress trailing (insignificant)zeros but I don't think you can call that label in XBC from PLOTBC. However, since the number of registers is a whole number, you could just FIX 0 and then ARCL X.

It will be necessary to take steps to position the pen to plot the "Registers" line and then to plot the first line of program bar code.

If I had all the hardware I'd try this to see if it really works!

So the answer to your question is, no, I don't have the patch, but maybe my ramblings will help you to modify the program.

I meant to look in the PPC Journal CD-ROMs to see if the patch is there, it might well be.

Today's program was brought to you by the functions RCLPTA and ARCL.


#5

Thank you for your reply, and nicely done. Yes, I recall that the patch was published in the PPC newsletter.

I did miss the page 117 example of program plot. But, I knew that all Plotter Modules printed the 'header' this way. As I recall the 20+ year article, the patch not only added the 'needed register' line, it also altered the height of the bar code using something like .200 in the X reg. before Xeq BCSIZE, and reduced the height of all text after the title to around 1.5 in the X reg. before Xeq CSIZE. This new format for bar codes was used by the PPC newsletter crew (Richard Nelson) for all published bar codes as it was very efficient of page space. Since I do not have access to the PPC CD set, your best place to look is the earliest issue with the shorter bar codes.

Your analysis of the program section (LABEL 12) is the same as mine as I understand it.

I don't remember the specifics of the patch. I think the program stores the register length somewhere within the program - perhaps within the program label or the end. All that the patch may require is a synthetic line or two to locate and extract the program reg. size, load the text and extracted reg. size in alpha and Xeq LABEL. I see no reason to Xeq LABEL with a cleared alpha reg.

I am about 15 years out of practice programming the 41 as my system was stolen and I have just replaced most of it. It won't take me too long to catch up as it is a lot like riding a bike or sex. You really never forget how to do it after a little practice.


#6

I'll use that clue to try to find the patch on the CD-ROM.

The only sense I can make of printing a blank label is to position the pen, but I think that must be done already elsewhere in the program.

BTW, I'm happy to look for the patch but you might like to know that the CD-ROMs are easy to get and not very expensive. You can read about it here:

http://www.waterw.com/~jakes/ppccdrom.htm


#7

I think the info file for the PPC CD-ROMs says the scanning resolution that they had to use to fit in all the issues means that you can't read the bar codes after printing the pages. That might influence your interest in the CD-ROMs.

#8

I want to thank Ellis Easley for providing me the PPC newsletter article and BC* program I was looking for. I am not sure if I had used this program or just implemented the features of this program into PLOTBC (I think that is what I did). For the record and for anyone who is or will be interested in this program, it is in V13N7P22 (Vol. 13 Num. 7 Page(s) 22-24). Thanx again, Ellis. Your time and effort is greatly appreciated as I don't have the hardware to do it myself.


#9

You're welcome, Don, and I'm glad you were able to replace your 41. You can see by the polls that have been taken here in the last couple of days that it is still the most popular HP calculator.

To anyone who wants to take extracts from large .pdf files like the ones on the MoHPC and PPC CD-ROMs but doesn't have the retail Adobe Acrobat, I discovered an easy way to do it without creating giant files. I used the graphics selection tool in the free Acrobat reader to copy the material I wanted to extract, then I pasted it into Windows Paint and saved it as a .GIF file. My first attempt was to paste the graphics into a Word document in WordPad which resulted in a 1.5MB file containing less than 1/2 page from a PPC Journal. The .GIF file via Paint was only about 32kB!


Possibly Related Threads…
Thread Author Replies Views Last Post
  [HP Prime] "Error while checking exact value with approximate value, returning both!" Chris Pem10 13 4,946 12-06-2013, 05:12 AM
Last Post: parisse
  HP-41(CL): The easiest way to transfer FOCAL programs from a Linux PC to the HP-41 Geir Isene 13 5,560 12-05-2013, 02:40 AM
Last Post: Hans Brueggemann
  HP-41 module covers and side port cover Nate Martin 1 1,489 12-02-2013, 01:51 AM
Last Post: Giancarlo
  MS advert shows spreadsheet with obvious error BruceH 3 2,147 11-14-2013, 09:50 AM
Last Post: Bill (Smithville, NJ)
  HP Prime: Rounding error in determinant Stephan Matthys 3 1,607 10-25-2013, 09:29 PM
Last Post: Walter B
  HP Prime Error: Summation Upper Bound > 1000 HP Pioneer 2 1,351 10-25-2013, 11:32 AM
Last Post: steindid
  Loading .prgm files to the Prime Thomas Chrapkiewicz 8 2,929 10-25-2013, 09:34 AM
Last Post: Eddie W. Shore
  Prime Error or Mine? toml_12953 12 3,532 10-22-2013, 10:35 AM
Last Post: toml_12953
  Explaination on How to Reset Caculator in Users guie: error Harold A Climer 5 2,515 10-15-2013, 02:11 AM
Last Post: cyrille de Brébisson
  Repair of HP-34C - Error 0 and Error 9 Jeff Kearns 3 1,646 10-11-2013, 12:29 PM
Last Post: Randy

Forum Jump: