*-----------------------------------------------------------------------------
*  PL Inputs read / PL Outputs write
*-----------------------------------------------------------------------------
*  Module Description
*    In MP4031 (monitoring of the PLs actually connected) the number of
*    PLs in the machine must be entered. The configuration parameter in
*    oem.cfg previously used no longer exists. The relation of a physical
*    cabling and the logic addresses of a PL can be modified with
*    MP4030.
*
*-----------------------------------------------------------------------------

#include Mac_Lib.inc

GLOBAL Input_read
GLOBAL Output_write

;----------------------------
LBL Input_read
;----------------------------

  L      K+0
  =X

  LX
  <      BG_MP4031_number_connected_PL
  WHILET
    PS     BG_MP4030_0_assignment_logical_PL_1[X]
    CM     9002
    M_display_module_error

    INCX

    LX
    <      BG_MP4031_number_connected_PL
  ENDW

EM

;----------------------------
LBL Output_write
;----------------------------

  L      K+0
  =X

  LX
  <      BG_MP4031_number_connected_PL
  WHILET
    PS     BG_MP4030_0_assignment_logical_PL_1[X]
    CM     9005

    M_display_module_error


    INCX

    LX
    <      BG_MP4031_number_connected_PL
  ENDW

EM
