en-us_products:mpino_studio2:activity_bar

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
en-us_products:mpino_studio2:activity_bar [2026/09/14 12:24] – external edit 127.0.0.1en-us_products:mpino_studio2:activity_bar [2026/11/13 00:27] (current) – external edit 127.0.0.1
Line 16: Line 16:
 | **③** | Ladder Pin Map Settings | Separate window | Changes the LD-address-to-Arduino-pin mapping. See [[en-us_products:mpino_studio2:menus_settings#ladder_pin_map_settings|Phase 7 · Ladder Pin Map Settings]]. | | **③** | Ladder Pin Map Settings | Separate window | Changes the LD-address-to-Arduino-pin mapping. See [[en-us_products:mpino_studio2:menus_settings#ladder_pin_map_settings|Phase 7 · Ladder Pin Map Settings]]. |
 | **④** | Library | Left side panel | Searches, installs, removes, and imports libraries. | | **④** | Library | Left side panel | Searches, installs, removes, and imports libraries. |
-| **⑤** | Symbols | Movable independent window | Assigns symbols and comments to PLC memory addresses. |+| **⑤** | Symbols | Movable independent window | Assigns symbols and comments to PLC memory addresses. Outside input fields and the code input area, ''Ctrl + Enter'' also opens and closes the window. |
 | **⑥** | Serial Monitor | Bottom panel | Opens or closes the Serial Monitor tab. See [[en-us_products:mpino_studio2:monitoring#connect_the_serial_monitor|Phase 6 · Connect the Serial Monitor]] for connection and transfer procedures. | | **⑥** | Serial Monitor | Bottom panel | Opens or closes the Serial Monitor tab. See [[en-us_products:mpino_studio2:monitoring#connect_the_serial_monitor|Phase 6 · Connect the Serial Monitor]] for connection and transfer procedures. |
 | **⑦** | Settings | Separate window | Opens Preferences. See [[en-us_products:mpino_studio2:menus_settings#preferences|Phase 7 · Preferences]]. | | **⑦** | Settings | Separate window | Opens Preferences. See [[en-us_products:mpino_studio2:menus_settings#preferences|Phase 7 · Preferences]]. |
Line 40: Line 40:
  
 The ''+'' at the right of **Code** or **Ladder** creates an item. See [[en-us_products:mpino_studio2:code_editor#create_and_manage_code_files|Phase 5 · Create and Manage Code Files]] for creating, renaming, deleting, and reordering files and ladders. The ''+'' at the right of **Code** or **Ladder** creates an item. See [[en-us_products:mpino_studio2:code_editor#create_and_manage_code_files|Phase 5 · Create and Manage Code Files]] for creating, renaming, deleting, and reordering files and ladders.
 +
 +==== Add Ladder Tabs and Call Them from loop() ====
 +
 +A project can have several ladder tabs. When you build, each ladder tab becomes a function with the same name as the tab; the ''ladderLoop'' tab in a new project becomes the ''ladderLoop()'' function. A ladder tab's function runs only when ''loop()'' in Arduino Code calls it.
 +
 +{{ :en-us_products:mpino_studio2:explorer-ladder-menu-marked.svg?1000 |Context menu of a ladder tab in Explorer }}
 +
 +^ Marker ^ Item ^ Action ^
 +| **①** | Rename | Renames the ladder tab. Calls to that ladder function in the primary code file are renamed as well. |
 +| **②** | Delete | Deletes the ladder tab after you confirm. The last ladder tab can also be deleted. |
 +| **③** | Add | Opens the **Add ladder** dialog, where you enter the name of a new ladder tab. |
 +| **④** | Add loop() | Adds a call to that ladder function (for example, ''ladderLoop();'') at the end of ''loop()'' in the primary code file. Nothing is added if the call already exists. |
 +| **⑤** | Remove loop() | Removes every line in ''loop()'' of the primary code file that calls that ladder function. |
 +
 +A ladder tab name becomes a function name, so it must begin with an ASCII letter or ''_'' and contain only ASCII letters, digits, and ''_''. You can also rename a ladder tab by double-clicking it in Explorer or pressing ''F2''.
 +
 +A call for a newly added ladder tab is not added automatically. Select **Add loop()** or write the call in Arduino Code yourself. Without a call, the build completes, but the **Problems** tab shows a warning. See [[en-us_products:mpino_studio2:troubleshooting#problems_tab_warnings_and_sram_overflow|Phase 9 · Problems Tab Warnings and SRAM Overflow]] for the warning.
 +
 +Multiple ladders run in the order in which ''loop()'' calls them. The order of ladder tabs in Explorer does not affect the execution order.
 +
 +> **Caution when deleting a ladder tab:** Deleting a ladder tab does not remove calls to its function from Arduino Code. Remove the calls with **Remove loop()** before you delete the tab.
  
 ===== 3. Ladder Settings ===== ===== 3. Ladder Settings =====
Line 149: Line 170:
 | Entire symbol | Cannot have address syntax or begin with ''@''. | ''StartBtn'', ''Temp_1'' | ''M10'', ''@ON'' | | Entire symbol | Cannot have address syntax or begin with ''@''. | ''StartBtn'', ''Temp_1'' | ''M10'', ''@ON'' |
 | Duplicates | Addresses and names must each be unique. ASCII letter case is ignored for duplicate names. | ''Motor'', ''Start'' | ''Motor'' and ''motor'' together | | Duplicates | Addresses and names must each be unique. ASCII letter case is ignored for duplicate names. | ''Motor'', ''Start'' | ''Motor'' and ''motor'' together |
 +| Arduino Code names | A name spelled exactly like a global variable or function in a ''.ino'' code file is an error, and the project cannot be built. A warning appears when a variable name differs only in letter case. | ''MotorOn'' | ''speed'' (when the code contains ''int speed;'') |
  
 {{ :en-us_products:mpino_studio2:symbol-validation-marked.svg?1000 |Duplicate Motor name rejected in the Symbols window }} {{ :en-us_products:mpino_studio2:symbol-validation-marked.svg?1000 |Duplicate Motor name rejected in the Symbols window }}
Line 194: Line 216:
  
 See [[en-us_products:mpino_studio2:memory#sharing_memory_between_arduino_code_and_ladder_logic|Phase 2 · Sharing Memory between Arduino Code and Ladder Logic]] for the shared-memory structure. See [[en-us_products:mpino_studio2:memory#sharing_memory_between_arduino_code_and_ladder_logic|Phase 2 · Sharing Memory between Arduino Code and Ladder Logic]] for the shared-memory structure.
 +
 +==== Change a Cell Address by Symbol ====
 +
 +Select a ladder cell and press ''Shift + Enter'' to open the **Edit by Symbol** dialog. The editor opened with ''Enter'' takes an address, whereas **Edit by Symbol** lets you choose a registered symbol name and changes the cell's address to that symbol's address.
 +
 +{{ :en-us_products:mpino_studio2:symbol-cell-edit-marked.svg?1000 |Edit by Symbol dialog opened from a ladder cell with Shift + Enter }}
 +
 +^ Marker ^ Item ^ Action ^
 +| **①** | Address and Description | Shows the address and comment registered for the entered symbol. |
 +| **②** | Symbol name | Contains the current symbol name when the cell address has one. Typing the beginning of a name narrows the candidates. |
 +| **③** | Candidate list | Lists registered symbol names and addresses. In a box-function argument field, only symbols in the areas that field accepts appear. Select one with ''↑'' or ''↓'' and apply it with ''Enter''. |
 +| **④** | OK and Cancel | **OK** applies the selected symbol's address to the cell. **Cancel** closes the dialog without changing the cell. |
 +
 +This dialog does not create symbols. If you enter a name that is not a candidate, “Not in the candidate list. No new symbol will be created.” appears, so register the symbol first in the [[#add_edit_and_delete|Symbols window]].
 +
 +You can use it for contact, coil, and edge cells, for empty cells, and in a structured box function when the cursor is in an argument field that takes an address. For cells that cannot be changed by symbol, such as comparison contacts, constants, special-bit memory, and free-form box functions, the same editor as ''Enter'' opens.
  
 ===== 6. Troubleshooting ===== ===== 6. Troubleshooting =====
en-us_products/mpino_studio2/activity_bar.1789356278.txt.gz · Last modified: by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki