## 2 Architecture
### M2M Gateway Resource Control and Management
#### 2.2.2 Resource Mapping Mechanism
Using the Delta PLC as an example, the structure of the mapping rule table is shown in Table 11.  
\begin{table}
\begin{tabular}{c c c c c c c c} \hline \hline
**Device** & **Range** & **Type** & **DVP (Hex)** & \multicolumn{2}{c}{**Modbus**} & \multicolumn{2}{c}{**Effective**} \\ \cline{4-9}  & & & & **(Decimal)** & **ES/EX/SS** & **SA/SX/SC** & **EH** \\ \hline S & 000\(\sim\)255 & bit & 0000–00 FF & 000001–000256 & & & \\ S & 256–511 & bit & 0100–01 FF & 000257–000512 & & & \\ S & 512–767 & bit & 0200–02 FF & 000513–000768 & 0-127 & 0-1024 & 0-1024 \\ S & 768–1023 & bit & 0300–03 FF & 000769–001024 & & & \\ \hline X & 000–377(Octal) & bit & 0400–04 FF & 101025–101280 & 0-177 & 0-177 & 000–377 \\ Y & 000–377(Octal) & bit & 0500–05 FF & 001281–001536 & & & \\ \hline T & 000–255 & bit & 0600–06 FF & 001537–001792 & 0-127 & 000–255 & 000–255 \\  & & word & 0600–06 FF & 401537–401792 & & & \\ \hline M & 000–255 & bit & 0800–08 FF & 002049–002304 & & & \\ M & 256–511 & bit & 0900–09 FF & 002305–002560 & & & \\ M & 512–767 & bit & 0A00–0 AFF & 002561–002816 & & & \\ M & 768–1023 & bit & 0B00–0 BFF & 002817–003072 & & & \\ M & 1024–1279 & bit & 0C00–0 CCFF & 003073–003328 & & & \\ M & 1280–1535 & bit & 0D00–0 DFF & 003329–003584 & & & \\ M & 1536–1791 & bit & B000–B0 FF & 045057–045312 & & & \\ M & 1792–2047 & bit & B100–B1 FF & 045313–045568 & 0-1279 & 0-4095 & 0000–4095 \\ M & 2048–2303 & bit & B200–B2 FF & 045569–045824 & & & \\ M & 2304–2559 & bit & B300–B3 FF & 045825–046080 & & & \\ M & 2560–2815 & bit & B400–B4 FF & 046081–046336 & & & \\ M & 2816–3071 & bit & B500–B5 FF & 046337–046592 & & & \\ M & 3072–3327 & bit & B600–B6 FF & 046593–046848 & & & \\ M & 3328–3583 & bit & B700–B7 FF & 046849–047104 & & & \\ M & 3584–3839 & bit & B800–B8 FF & 047105–047360 & & & \\ M & 3840–4095 & bit & B900–B9 FF & 047361–047616 & & & \\ \hline \multirow{4}{*}{C} & \multirow{2}{*}{0–199} & \multirow{2}{*}{16-bit} & bit & 0E00–0 EC7 & 003585–003784 & 0–127 & 0–199 & 0–199 \\  & & word & 0E00–0 EC7 & 403585–403784 & 0–127 & 0–199 & 0–199 \\ \cline{1-1} \cline{2-6}  & \multirow{2}{*}{200–255} & \multirow{2}{*}{32-bit} & bit & 0E08-0 EFF & 003785–003840 & 232–255 & 200–255 & 200–255 \\ \cline{1-1} \cline{2-6}  & & & & & & & \\ \cline{1-1} \cline{2-6}  & \multirow{2}{*}{255} & \multirow{2}{*}{32-bit} & bit & 0E08-0 EFF & 003785–003840 & 232–255 & 200–255 & 200–255 \\ \cline{1-1} \cline{2-6}  & & & & & & & \\ \cline{1-1} \cline{2-6}  & \multirow{2}{*}{255} & \multirow{2}{*}{32-bit} & bit & 0E08-0 EFF & 003785–003840 & 232–255 & 200–255 & 200–255 \\ \cline{1-1} \cline{2-6}  & & & & & & & \\ \cline{1-1} \cline{2-6}  & \multirow{2}{*}{255} & \multirow{2}{*}{32-bit} & bit & 0E08-0 EFF & 003785–003840 & 232–255 & 200–255 & 200–255 \\ \cline{1-1} \cline{2-6}  & & & & & & & \\ \cline{1-1} \cline{2-6}  & \multirow{2}{*}{255} & \multirow{2}{*}{32-bit} & bit & 0E08-0 EFF & 0058-0 EFF & 003785–003840 & 232–255 & 200–255 & 200–255 \\ \cline{1-1} \cline{2-6}  & & & & & & & \\ \cline{1-1} \cline{2-6}  & \multirow{2}{*}{255} & \multirow{2}{*}{32-bit} & bit & 0E08-0 EFF & 003785–003840 & 232–255 & 200–255 & 200–255 \\ \cline{1-1} \cline{2-6}  & & & & & & & \\ \cline{1-1} \cline{2-6}  & \multirow{2}{*}{255} & \multirow{2}{*}{32-bit} & bit & 0E08-0 EFF & 003785–003840 & 232–255 & 200–255 & 200–255 \\ \cline{1-1} \cline{2-6}  & & & & & & & \\ \cline{1-1} \cline{2-6}  & \multirow{2}{*}{255} & \multirow{2}{*}{32-bit} & & 0E08-0 EFF & 003785–003840 & 232–255 & 200–255 & 200–255 \\ \cline{1-1} \cline{2-6}  & & & & & & & \\ \cline{1-1} \cline{2-6}  & \multirow{2}{*}{255} & \multirow{2}{*}{32-bit} & & 0E08-0 EFF & 0058-0 EFF & 003785–003840 & 232–255 & 200–255 & 200–255 \\ \cline{1-1} \cline{2-6}  & & & & & & & \\ \cline{1-1} \cline{2-6}  & \multirow{2}{*}{255} & \multirow{2}{*}{32-bit} & & 0E08-0 EFF & 0058-0 EFF & 003785–003840 & 232–255 & 200–255 & 200–255 \\ \cline{1-1} \cline{2-6}  & & & & & & & \\ \cline{1-1} \cline{2-6}  & \multirow{2}{*}{255} & \multirow{2}{*}{32-bit} & & 0E08-0 EFF & 0058-0 EFF & 0058-0 EFF & 232–255 & 200–255 & 200–255 \\ \cline{1-1} \cline{2-6}  & & & & & & & & \\ \cline{1-1} \cline{2-6}  & \multirow{2}{*}{255} & \multirow{2}{*}{32-bit} & bit & 0E08-0 EFF & 0058-0 EFF & 0058-0 EFF & 232–255 & 200–255 &For any abstract address (storage area and number), the aforementioned table can be used to find the region in the PLC corresponding to the location of the resource.