<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Segoe UI Emoji";
        panose-1:2 11 5 2 4 2 4 2 2 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="NL" link="blue" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Johnny wrote:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">>> My current implementation turns on the FAULT lamp for several reasons.<o:p></o:p></p>
<p class="MsoNormal">>> <o:p></o:p></p>
<p class="MsoNormal">>> - for the RK11 errors (so I need to check and somewhat improve that),<o:p></o:p></p>
<p class="MsoNormal">>>    although the errors are not likely to occur in SIMH, unless you are<o:p></o:p></p>
<p class="MsoNormal">>>    programming access to the registers directly and make a mistake ...<o:p></o:p></p>
<p class="MsoNormal">><o:p> </o:p></p>
<p class="MsoNormal">>But I think it be a mistake to source the error lamp from that.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">That is true, but with the "blinkenlight fun" in mind, I guess it is nice<o:p></o:p></p>
<p class="MsoNormal">to *see* that you made a mistake in the code <span style="font-family:"Segoe UI Emoji",sans-serif">
😊</span>  Anyway, you only have to<o:p></o:p></p>
<p class="MsoNormal">modify pdp11_rk.c to get what you want.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">>> - if the drive (or software!) sets the drive to "read-only" (thus the<o:p></o:p></p>
<p class="MsoNormal">>>   WT-PROT lamp goes on), and you do some write action, for example, try<o:p></o:p></p>
<p class="MsoNormal">>>   to delete a file, the FAULT lamp goes on.<o:p></o:p></p>
<p class="MsoNormal">><o:p> </o:p></p>
<p class="MsoNormal">>That sounds just plain wrong. That is not a fault at all. That just fails.<o:p></o:p></p>
<p class="MsoNormal">>You get an error in the software, but the drive does not indicate anything.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Again, you are correct. The software reports the error.<o:p></o:p></p>
<p class="MsoNormal">I will remove the FAULT lamp turning on for this case.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">>>   Toggling the WT-PROT switch or (RT11 command) .SET RK0 LOCKED will<o:p></o:p></p>
<p class="MsoNormal">>>   turn on the WT-PROT lamp. Toggling again or .SET RK0 WRITEENABLE will<o:p></o:p></p>
<p class="MsoNormal">>>   turn off the WT-PROT lamp.<o:p></o:p></p>
<p class="MsoNormal">><o:p> </o:p></p>
<p class="MsoNormal">> From software you cannot remove the write protect. That can only be
<o:p></o:p></p>
<p class="MsoNormal">>done through the physical switch.<o:p></o:p></p>
<p class="MsoNormal">>The software can only turn on write protect. It's not a toggle.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Yeah, I can understand that way of working. I guess, I am mixing up<o:p></o:p></p>
<p class="MsoNormal">SIMH behavior and OS (say, RT11) behavior. In SIMH you *can* turn off<o:p></o:p></p>
<p class="MsoNormal">WT-PROT with .SET RK0 WRITEENABLE.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">>> - according to RK11/RK05 documentation, toggling the WT-PROT or the<o:p></o:p></p>
<p class="MsoNormal">>>   LOAD/RUN switch (to RUN) will turn off the FAULT lamp.<o:p></o:p></p>
<p class="MsoNormal">><o:p> </o:p></p>
<p class="MsoNormal">>I can't believe that playing with the write protect switch would have
<o:p></o:p></p>
<p class="MsoNormal">>any affect on the fault lamp. I think only the load/run switch would do
<o:p></o:p></p>
<p class="MsoNormal">>that.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">It says so. See RK05 disk drive user's manual, EK-RK05-OP-001, page 1-6:<o:p></o:p></p>
<p class="MsoNormal">"(FAULT) Goes off when the WT PROT switch is pressed, or when the drive<o:p></o:p></p>
<p class="MsoNormal">is recycled through a RUN/LOAD sequence.<o:p></o:p></p>
<p class="MsoNormal">But maybe that is a copy/paste error on behalf of the writer
<span style="font-family:"Segoe UI Emoji",sans-serif">😊</span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Greetz,<o:p></o:p></p>
<p class="MsoNormal">Henk<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>