User Tools

Site Tools


cdc:nos2.source:nam5871:csescm

CSESCM

Table Of Contents

  • [00005] PROC CSESCM
  • [00006] SEND CONTROL MESSAGE.
  • [00009] SEND CONTROL MESSAGE
  • [00030] PROC CSESLE
  • [00031] PROC SSBSBF
  • [00032] PROC SSTAQE

Source Code

CSESCM.txt
  1. *DECK CSESCM
  2. USETEXT TEXTSS
  3. USETEXT TEXTCS
  4. USETEXT TXTAPSS
  5. PROC CSESCM;
  6. # TITLE - SEND CONTROL MESSAGE. #
  7. BEGIN
  8. #
  9. ** CSESCM - SEND CONTROL MESSAGE
  10. *
  11. * D.K. ENDO 82/03/19
  12. *
  13. * THIS PROCEDURE INFORMS ALL THE OPERATORS WHEN CONTROL HAS BEEN
  14. * ASSIGNED OR RELEASE TO A NOP.
  15. *
  16. * PROC CSESCM
  17. *
  18. * ENTRY 1. ENTRY FROM THE EVENT QUEUE INDICATING CONTROL ON
  19. * OR OFF.
  20. *
  21. * EXIT 2. ENTRY IN THE OPERATOR RESPONSE QUEUE WITH MESSAGE
  22. * OF CONTROL STATUS.
  23. *
  24. #
  25. #
  26. **** PROC CSESCM - XREF LIST BEGINS.
  27. #
  28. XREF
  29. BEGIN
  30. PROC CSESLE; # SEND LOG (FILE) ENTRY #
  31. PROC SSBSBF; # STORE BIT FIELD #
  32. PROC SSTAQE; # ADD QUEUE ENTRY #
  33. END
  34. #
  35. ****
  36. #
  37. DEF ACT$TXTL # 70 #; # CHAR COUNT OF -ASSIGNED CONTROL- TEXT #
  38. DEF CTR$TXTL # 60 #; # CHAR COUNT OF -CONTROL RELEASED- TEXT #
  39.  
  40.  
  41. ITEM CNST1; # CONSTANT ---> 1 #
  42. ITEM CNST2; # CONSTANT ---> 2 #
  43. ITEM CNST3; # CONSTANT ---> 3 #
  44.  
  45.  
  46.  
  47. #
  48.   THIS ARRAY IS USED AS A TEMPLATE TO POINT TO THE MESSAGE TO BE
  49.   SENT.
  50. #
  51. BASED ARRAY CNT$TXT [00:00] S(5);
  52. BEGIN
  53. ITEM CNT$TIM C(00,00,10);
  54. ITEM CNT$TNM C(01,30,07);
  55. ITEM CNT$UNM C(02,18,07);
  56. END
  57.  
  58.  
  59. #
  60.   THIS ARRAY DEFINES THE -ASSIGN CONTROL- MESSAGE TEXT SENT WHEN A
  61.   CONTROL ON IS RECEIVED.
  62. #
  63. ARRAY ACT$TXT [00:00] S(7);
  64. BEGIN
  65. ITEM ACT$TIM C(00,00,10);
  66. ITEM ACT$NOP C(01,00,05) = ["NOP: "];
  67. ITEM ACT$TNM C(01,30,07);
  68. ITEM ACT$MS1 C(02,12,01) = [","];
  69. ITEM ACT$UNM C(02,18,07);
  70. ITEM ACT$MSG C(03,00,22) = [", ASSIGNED CONTROL OF "];
  71. ITEM ACT$NNAM C(05,12,07);
  72. ITEM ACT$ZBYT U(05,54,06) = [0];
  73. ITEM ACT$ZBYT2 I(06,00,60) = [0];
  74. END
  75.  
  76.  
  77. #
  78.   THIS ARRAY DEFINES THE -CONTROL RELEASED- MESSAGE TEXT SENT WHEN A
  79.   CONTROL OFF IS RECEIVED.
  80. #
  81. ARRAY CTR$TXT [00:00] S(6);
  82. BEGIN
  83. ITEM CTR$TIM C(00,00,10);
  84. ITEM CTR$NOP C(01,00,05) = ["NOP: "];
  85. ITEM CTR$TNM C(01,30,07);
  86. ITEM CTR$MSG C(02,12,22) = [", RELEASED CONTROL OF "];
  87. ITEM CTR$NNAM C(04,24,07);
  88. ITEM CTR$ZBYT U(05,06,54) = [ 0 ];
  89. END
  90. CONTROL EJECT;
  91. # #
  92. # CSESCM CODE BEGINS HERE #
  93. # #
  94. #
  95. * IF CONTROL ON IS INDICATED THEN APPEND -ASSIGNED CONTROL- MESSAGE
  96. * TO TEXT, ELSE APPEND -CONTROL RELEASED-. APPEND THE TIME AND THE
  97. * TERMINAL NAME TO THE TEXT. SEND THE OFF TO THE OPERATOR RESPONSE
  98. * QUEUE WITH A AUDIENCE GROUP OF ONE (HOP AND ALL NOP-S).
  99. #
  100. WCB$WORD[1] = 0;
  101. ABHWORD[1] = 0;
  102. ABHADR[1] = AUDGR1$;
  103. ABHABN[1] = ABHSN[0];
  104.  
  105.  
  106. IF WCB$SMID[0] EQ SMID"CTRLON"
  107. THEN
  108. BEGIN
  109. ACT$NNAM[0] = NPU$NAME[ABHSN[0]];
  110. P<CNT$TXT> = LOC(ACT$TXT);
  111. ABHTLC[1] = ACT$TXTL;
  112. CNT$UNM[0] = OC$UNAM[NPU$CNOP[ABHSN[0]]];
  113. END
  114. ELSE
  115. BEGIN
  116. CNST1 = 4;
  117. CNST2 = 24;
  118. CNST3 = 42;
  119. SSBSBF(CTR$TXT,CNST1,CNST2,CNST3,B<0,42>NPU$NAME[ABHSN[0]]);
  120. P<CNT$TXT> = LOC(CTR$TXT);
  121. ABHTLC[1] = CTR$TXTL;
  122. END
  123.  
  124.  
  125. CNT$TIM[0] = CTM$CLOCK[0];
  126.  
  127.  
  128. CNST1 = 1;
  129. CNST2 = 30;
  130. CNST3 = 42;
  131. SSBSBF(CNT$TXT,CNST1,CNST2,CNST3,B<0,42>MSG$WORD[0]);
  132.  
  133.  
  134. WCB$WC[1] = 2 + (ABHTLC[1] / 10);
  135.  
  136.  
  137. SSTAQE(P<ORQ>,WCBUF[1],ABH[1],CNT$TXT[0]);
  138. CSESLE(0,WCBUF[1],CNT$TXT);
  139.  
  140.  
  141. RETURN; # **** RETURN **** #
  142. END # CSESCM #
  143. TERM
cdc/nos2.source/nam5871/csescm.txt ยท Last modified: 2023/08/05 17:21 by Site Administrator