位址對照表製作工具

目前顯示的是範例。可以直接修改試試看,或從「檔案」→「新增」開始。免註冊,做好的圖也不會傳送到伺服器。

變數
預留的範圍(拖曳可移動,拖曳邊緣可伸縮)有變數的位置未預留(只有變數)空位(拖曳可預留) 顯示範圍
還沒有任何變數。
可用表格上方的「新增」一個一個登錄,或用上方的「匯入…」從 Excel 表格一次登錄多個。PLC 的軟元件註解(GX Works/KV STUDIO/Sysmac Studio)也可以直接貼上。
若要依設備、區塊分類,請按上方的「樹狀」,再用樹狀結構的「+ 新增」。
文字
匯入變數
除了 Excel 表格,也可以直接貼上 PLC 的軟元件註解(GX Works2/3、KV STUDIO、Sysmac Studio/CX-Programmer 的匯出檔)。 有標題列時會自動辨識各欄;沒有標題列時,會依「軟元件、註解」讀取。
PLC 設定(廠牌、機種、軟元件範圍)
軟元件(可用範圍 — 請依實際機種調整)
方式:位元 = 每個位元 1 點(M0 …)/字組 = 每點 16 位元(D0 …)/ch.bit = KEYENCE 寫法(R100 = 第 1 通道的位元 0)/位元組 = 微控制器

範圍預留

為每個區塊決定使用的軟元件與點數。起始位址會依序從空位取得(可修改)。

變數已有位址的區塊,會以該範圍作為建議。

轉換位址

預留範圍並建立列
對於您決定預留的範圍,會一次建立所有列。名稱與註解可以之後再從 Excel 或規格書貼上。
建立於
列的命名方式(之後可以覆寫)
批次預留
在連續位址上建立相同大小的區塊(例:從 M1000 起每組 100 點共 10 組)。列可之後用「預留範圍…」(Ctrl+B)或在變數表中填入。
{n} 會變成 1, 2, …
位址配置
方式
對象
選項
新增設備
依軟元件複製(可貼到 PLC 軟體)
依位址排序
快速參考

Structure (device / block)

The tree on the leftTwo levels: device / node and block / module. It hides itself automatically while there is only one of each (“Structure tree” toggles it by hand). Click an entry to show only the variables in that scope
Add device / Add blockCreate a container (F2 renames it, right-click duplicates or deletes it)
Drag onto the treeMove a block to another device. Select variable rows, then drag them by the row number onto a block to move just those variables
Drag from the tree to the diagramDrop a block on a column of the ① diagram to reserve its range from the address where you drop it (16 points, or 10 words on word devices; if the block already has a range in that column, only its position changes). Spots that overlap other blocks turn red and cannot be used
Move panelsDrag a panel by its header (⠿) to the top or bottom of the left or right column, into tabs with another panel, or into a new column beside it (up to two columns on each side). ⋯ offers the same choices, and “Reset to default layout” puts everything back

Editing variables (like a spreadsheet)

Click / arrow keysSelect a cell (Shift+click or Shift+arrow for a range, Ctrl+click to add to the selection)
Type / EnterTyping in a selected cell starts input, and Enter confirms and moves down (as in Excel). Typing in a “(free)” row or the “+ New variable” row at the bottom creates a variable
Alt+↑↓ / click a headerMove rows / sort by that column
Detail columnsShow the bit, range, initial value and owner columns (five columns by default)

Addresses and capacity

PLC setupChoosing a vendor and a model fixes the device ranges (D0–D12287 and so on) and the radix (decimal / hexadecimal)
Usage tabA gauge per device. Drag a block chip onto another area to move the whole block
ChecksLists everything over the limit, overlapping, or with a duplicate name (click to jump to the row)

Import and output

Import…Paste an Excel table, or device comments from GX Works / KV STUDIO / Sysmac Studio
Copy to PLC…Copy by device (TSV that pastes straight into your PLC software)
使用手冊 — Memory Map Editor

Memory Map Editor — User Guide

Design the memory map of a PLC or a microcontroller device by device and block by block, keep an eye on the capacity as you go, and produce the specification, the paste-ready lists for your PLC software and the source code from that one set of data.

1. Overview

Control design starts by deciding which signal is assigned to which device (address). The Memory Map Editor keeps that assignment table in two levels — a “device / node” and the “blocks (modules)” inside it — and continuously checks that you stay inside the device limits of the PLC model you selected.

It runs entirely in the browser, with no external libraries and no server. What you type is saved automatically inside the browser on this machine only, and is never sent anywhere.

2. Tutorial (building your first map)

  1. Pick a vendor and a model in “PLC setup…”. The device ranges (for example D0–D12287 on a Mitsubishi Q series) and the way the numbers advance (decimal or hexadecimal) are filled in for you.
  2. You can start typing straight into the table — the default container is “Unclassified”. To split the map by machine or by unit, add devices and blocks with “+ Add” at the top of the tree on the left (or by right-clicking), or receive the structure from the System Diagram Editor. You can also tidy up later with “Group the selected rows into a new block”.
  3. Type the names directly into the table. As in Excel, Enter confirms and moves down and Tab moves right; typing in the “+ New variable” row at the bottom adds a row (the type and the direction are carried over from the row above). Lists from Excel and device comments from a PLC go into “Import…”.
  4. “Assign addresses…” (Ctrl+R) fills everything in at once: BOOLs into M devices, numeric types into D devices, and so on.
  5. Check the usage of each device on the “Usage” tab at the right. Anything over the limit turns red and is listed in the checks.
  6. “Copy by device…” builds a list per device and pastes straight into GX Works and the like.

3. Devices and blocks

The tree on the left has three levels: project → device → block. A device is a coarse unit such as a panel, a robot or a conveyor; a block is a functional unit inside it — command, status, parameters and so on. Clicking an entry shows only the variables in that scope, and selecting a device or the whole project inserts a heading row for each block.

Blocks can be dragged onto another device in the tree. Drag a block onto a column of the ① diagram (M, D and so on) to reserve its range from the address where you drop it. The size is 16 points (10 words on word devices); if the block already has a range in that column, it keeps its size and only moves. While you drag, the planned range is shown faintly on the column, and spots that overlap other blocks turn red and cannot be used. Select variable rows, then drag them by the row number onto a block in the tree to move just those variables. Each row of the tree shows the device range it occupies (for example D100–D131 / M0–M15), in red when it exceeds the limit.

① Reserve ranges and ② Assign addresses: a memory map is built in two steps. With the project or a device selected in the tree (① Reserve ranges), decide the device range each block uses (e.g. M0–M15, D100–D109). With a block selected (② Assign addresses), decide each variable’s address inside the reserved ranges. Blocks whose ranges are not decided yet are shown as “Not reserved”.

4. PLC model and device ranges

“PLC setup…” offers Mitsubishi Electric (MELSEC-Q / iQ-R / iQ-F), OMRON (NJ / NX), KEYENCE (KV-8000), Siemens (S7-1500 / S7-1200), a microcontroller (byte addressing) and IEC 61131-3 (%M). Choosing one fills the table with the devices available on that model — code, name, style, radix and range.

When a machine has several PLCs, there is one memory map per PLC. Press “To Memory Map” in the system diagram and choose a PLC to get that PLC’s map; switch between them with the PLC name button at the top. For signals exchanged between PLCs, right-click the other PLC’s device and use “Check against the memory map of …” to find differences, and “Copy missing variables” to copy them with inputs and outputs swapped (addresses are not copied).

Every value in that table can be edited. If you changed the number of device points in the CPU parameters, or your design rules limit the usable range, simply rewrite the range; the change is saved with the project JSON. The style of a device is bit (one point per bit, such as M0), word (16 bits per point, such as D0), ch.bit (the KEYENCE convention, where R100 is bit 0 of channel 1) or byte (microcontroller).

5. Reserving an area and building the rows (Ctrl+B)

When you already know the range you want to hold, reserving an area is the quick route. Give it a device, a type, a start address and a number of points (or an end address), and all of those rows are created at once, as a table with the addresses already filled in. There is no need to press “Add” one row at a time.

  • Each type gets its own area. Reserving “BOOL in M0–M255” and “WORD in D100–D163” separately keeps the two in separate blocks, so BOOLs and WORDs never end up mixed in one column.
  • When reserving BOOLs inside a word device, tick “Split each word into 16 bits” and you get the 16 rows D200.0–D200.F.
  • The names can be the address itself, a prefix plus a sequence number, or left empty.
  • Adding a row at the end of an area continues the addresses automatically — the same happens when a paste adds rows.
A reserved area appears in the tree as, for example, M area (BOOL) M0–M255 (BOOL), and the heading row of the table shows “Reserved: …”. Asking for more than the limit is reported as an error.

6. Pouring in data from Excel or a specification

To fill a reserved area, paste the table from Excel or from your specification as it is.

  • Pasting a single column: select the first name cell and press Ctrl+V. The cells are filled from the top down (addresses are left alone). If there are not enough rows they are added, and inside an area the following addresses are filled in too.
  • Pasting devices with comments: paste a table that contains devices, such as M0 Start request, and the rows with the matching addresses are overwritten. Only genuinely new addresses are added as new rows.
  • Pasting a table with a header: with a header row such as name, type, direction, address, initial value and comment, the columns are recognised whatever their order. The “Import…” dialog works the same way and also offers “Overwrite rows that already use the same address”.

7. Assigning addresses (new, shift, relocate)

Everything to do with addresses lives in one dialog: “Assign addresses…” (Ctrl+R). Pick the method at the top.

  • Assign from scratch: choose the target (the selected block, the selected rows, only variables without an address, or all of them) and a destination device for BOOLs and for numeric types, and they are numbered in order. The default start is “after what is already used on that device”; tick the option to fill earlier gaps instead.
  • Change only the start address (bulk shift): the order inside the block is kept and only the first address moves.
  • Relocate a whole block to another device: the variables of a block are packed again into free space on another device. “Find free space” fills in the first free address.

Pressing Ctrl+D in the table copies the cell above; in the address column it continues the addresses instead, which is handy for filling a few rows quickly. Keeping 32-bit and wider types on their natural boundary means no padding is inserted when the map is turned into a C struct, so it matches the real memory.

8. Watching the usage, and not running out

The “Usage” tab on the right shows a gauge per device area. Above 70% it turns yellow, over the limit it turns red, and underneath it lists the blocks that use that device. Drag a block chip onto the gauge of another device and all of that block's variables move into free space there. An address typed by hand beyond the limit, or an automatic assignment that does not fit, is reported as an error and the assignment is not carried out.

9. Importing from a PLC

“Import…” accepts an Excel table with a header row, and also the device comments exported by PLC programming tools as they are: GX Works2 / GX Works3 (the "D100","Start request" form), KV STUDIO, and the variable tables of Sysmac Studio / CX-Programmer (Name, Data Type, AT, Comment). If the first column looks like a device the format is detected automatically, and the type is filled in from the device style (bit device = BOOL, word device = WORD). The block to import into is chosen at the top of the dialog.

10. Copy by device, and exports

“Copy by device…” builds a list per device area, sorted by address — D devices, M devices and so on. The format can be device comments, global labels or a detailed list, and one click copies it as TSV, ready to paste into the device comment editor or the label editor of GX Works. Everything else you can export lives in one place: “Output → Export…” (Ctrl+E). Pick Markdown (with a chapter per device and block and a usage summary), CSV, TSV or JSON — each says where it is meant to be pasted — and press “Copy to clipboard” or “Save to a file”. Importing is gathered the same way under “File → Import…”.

11. Code generation

“Generate code…” (Ctrl+G) produces three formats. The C / C++ struct header builds one struct per device and block, turns gaps into reserved members and packs BOOLs into bit-fields (with #pragma pack(push,1) and a size assertion). The C address definitions are a light #define list of addresses and bits. The IEC 61131-3 global variables come out as VAR_GLOBAL … END_VAR, with a comment separating each device and block.

12. Keyboard shortcuts

This is the second of the four design tools. The buttons at the right of the toolbar carry your data backwards and forwards.

  1. System Diagram Editor: decide the devices, blocks and networks (“← System Diagram” opens it and hands over the devices and blocks of this list)
  2. Memory Map Editor (this tool): assign the variables and addresses
  3. Timing Chart Editor: decide how the variables move in time and what causes what (“To Timing Chart →”; with rows selected, only those variables are handed over)
  4. Flowchart Editor: turn the cause-and-effect relations into program flow

The JSON you save uses the schema shared by all four tools (devices / variables / triggers). Devices and blocks received from the system diagram are ready to be used as containers for variables, and the variables you already have are not touched. Working flat, without any hierarchy, is perfectly fine — the default container is “Unclassified”.

For the thinking behind this kind of drawing — what belongs on one sheet and the pitfalls seen on site — see the guide How to build a PLC memory map (in Japanese). All four editors are listed on the FA Spec Tools home page.

14. Contact

Please send bug reports and feature requests to yk.builds.space@gmail.com. Steps to reproduce the problem — and, if you can, the saved JSON file — make it much quicker to look into.

支持開發者

系統架構圖、位址對照表、時序圖與流程圖這四個編輯器,是由一個人開發並免費公開的,希望讓控制規格書寫起來輕鬆一些。
每一份支持都會直接變成投入下一項功能的時間。

沒有任何功能藏在付費之後,也不會反覆向您催促。
不花錢的支持同樣有幫助 — 回報問題或提出功能建議/把這些工具介紹給同事。

付款完全透過 Stripe 處理。卡片資料不會進入這個工具。
貼上 JSON

把 AI 給您的 JSON 直接貼上。只要符合資料結構的規格,就會直接變成圖。

匯出

選好格式後,會依照貼上的目的地輸出。

匯入

選擇要從哪裡匯入。