beautypg.com

System registers/coils (s, sw), Internal registers/coils (b, bw), Data registers (d) – Maple Systems MAPware-7000 User Manual

Page 302

background image

302

MAPware-7000 Programming Manual

1010-1040, Rev. 02

If slot#2 contains an analog 2 input/2 output module, the software assigns no coil addresses and
registers MW0200-MS0203 to read/write to the analog registers. When slot#4 contains a 12
point relay output module, MAPware-7000 assigns the MW0400 register for relay outputs.

The M and MW registers are mapped to the same memory area in the HMC with sixteen M coils
per MW register. For example, M161 corresponds to the second least significant bit (bit 1) of
MW0010.

System Registers/Coils (S, SW)

These registers and coils are reserved by the HMC for specific purposes. A total of 100 system
coils are reserved of which about 30 are currently defined. The system registers have a total of
256 registers of which about 30 are defined. Although undefined system registers and coils
could be used by the HMC programmer, this area of memory may be used in the future for
predefined uses. Therefore, use of this area of memory should be limited to the predefined
coils and registers. For a list of these memory areas, see Appendix B – Predefined System Tags.

Internal Registers/Coils (B, BW)

These are general purpose registers and coils which can be used at the discretion of the HMC
programmer. This area of memory is non-retentive so any data stored in these registers is lost
once power has been removed from the HMC.

The B coil memory and the BW register memory actually occupy the same area of memory in
the HMC7000. Therefore, the least significant bit in register BW0 corresponds to the B0 coil.
Likewise, the B18 coil shares the same memory area as bit 2 of BW1. To determine the register
and bit location of a B coil memory area use the following equation: Bnnnn = BW(nnnn/16
quotient), bit (nnnn/16 remainder).

Therefore B50 coil corresponds to BW3, bit 2 (50/16 = 3r2).

Data Registers (D)

These are general purpose registers which can be used at the discretion of the HMC
programmer. This area of memory is non-retentive so any data stored in these registers is lost
once power has been removed from the HMC.

Notice that these registers can be configured as bits as well.