Table of Contents

MP STUDIO 2 Phase 5 · Memory and Symbols

한국어 | English

An address used in the ladder consists of a memory area name and a number. This page describes the memory areas and their notation, data memory sizes and retentive settings, the symbol table, and how to check which data is used.

Memory Areas

Figure 1. MP STUDIO 2 memory areas

Area Name Use Basic unit
P I/O Digital input and output points of the device Bit
M Internal relay Bits used inside the program Bit
D Data Numeric values Word
T Timer Timer current values Word
C Counter Counter current values Word
R Real Decimal values (1 = 2 words) Real

The range of I/O addresses differs from model to model. If you use an I/O address that the model does not have, the cell turns red.

Bit, Byte, Word and Double Word Notation

The same memory can be read and written in units of bits, bytes (B), words (W) or double words (D). Put the unit letter in front of the area name.

Area Bit Byte Word Double word
P P0 BP0 WP0 DP0
M M0 BM0 WM0 DM0
D — BD0 D0 DD0
T — BT0 T0 DT0
C — BC0 C0 DC0
R — — — R0 (real)

Figure 2. What bit, byte and word notation refer to in the P area

Eight bit addresses make one byte. For example, P0 to P7 are BP0, and P32 to P39 are BP4. Double word numbers overlap in word steps: DD0 occupies D0 and D1, and DD1 occupies D1 and D2. Be careful not to use overlapping double words together.

System Bits and User Variables

Notation Meaning
@n A pulse that is ON for one scan every n×10 ms. Example: @100 is ON for one scan every second.
@Fn A blink that toggles ON/OFF every n×10 ms. Example: @F100 has a 2-second period.
#name · ##name · ###name User bit, word and double word variables used by name

Data Memory

Select Setting → Data Memory to open the Data Memory window, where you set the size of each area and the retentive ranges.

Figure 3. The Data Memory window

The data memory settings are saved with the project. If you use an address outside the area size (for example a D number beyond the D area size), the cell turns red and you cannot download or monitor.

When You Change the Model

When you change the model in the Device Select window, check Reset the data memory sizes to this model's defaults. to change the memory sizes to the defaults of the new model as well. If you leave it unchecked, the current settings are kept.

Figure 4. Selecting the model and expansion modules of an MPA model

For MPA models, select ① MPA, then choose ② Model and ③ the expansion modules (Analog Input X to X5, Analog Output Y to Y4, PT100Ω Input F to F5, Pulse Output K to K4). ④ Device Name shows the name including the module configuration (for example MPA-16A16R(T)-X), along with the CPU and the P area size. If you choose a combination that cannot be fitted, the reason is shown at the bottom of the window.

Symbol Table

Symbols are names and descriptions attached to addresses. Select Setting → Symbol or click the Symbol button in the top band to open the SYMBOL TABLE window.

Figure 5. The SYMBOL TABLE window

  1. Choose an area in ① the memory area tabs (P Memory, M Memory, D Memory and so on) to show only the symbols of that area. The number next to a tab is the number of registered symbols.
  2. In ② the add row, enter the address, symbol name and comment, and click Add (Enter).
  3. Type in ③ Text Search to show only the matching symbols.
  4. Click a cell in the table to edit a registered symbol. Select a row and press Delete to delete it.
  5. Use ④ Import and Export at the top to read or save a CSV file. When importing, choose whether to Merge with the current table or Replace it.
  6. Changes are applied to the project only when you click OK. The number of symbols to be saved is shown at the bottom of the window.

Symbols of addresses that are not used in the ladder are marked Not used in ladder. If the same symbol name is used for several addresses, or a name cannot be used, the number of entries to review and the reason are shown.

Showing Symbols on the Ladder

Turn on View → Show Symbols and View → Show Comments to show symbol names and comments above and below the cells.

Figure 6. The ladder with symbol names and comments shown

Used Data

Select Run → Used Data or click the Used button in the top band to open the Used Memory window. In the memory grid of each area you can see which locations the program uses.

Figure 7. The memory grid of the Used Memory window (D Memory)

Hover over a grid cell to see its address. Use Rows shown at the top right to change how many rows are visible at once. Use this window to check that a new address does not overlap with locations already in use.

← Back to the MP STUDIO 2 User Manual