en-us_products:mpino_studio2:ladder_editing

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en-us_products:mpino_studio2:ladder_editing [2026/11/10 16:30] – external edit 127.0.0.1en-us_products:mpino_studio2:ladder_editing [2026/11/17 17:59] (current) – external edit 127.0.0.1
Line 24: Line 24:
   - Select a cell and click the tool on the left toolbar.   - Select a cell and click the tool on the left toolbar.
   - Drag the toolbar button onto the target cell.   - Drag the toolbar button onto the target cell.
 +
 +==== View the Mnemonic (IL) ====
 +
 +When you build, the ladder logic is also generated as an IL (Instruction List) mnemonic. You can view it read-only on the **Mnemonic** tab of the bottom panel and use it to review the ladder structure as text or to compare it with the mnemonics of other PLCs.
 +
 +{{ :en-us_products:mpino_studio2:mnemonic-tab-marked.svg?1000 |IL shown on the Mnemonic tab of the bottom panel }}
 +
 +^ Marker ^ Screen item ^ Action ^
 +| **①** | Mnemonic | Opens the Mnemonic tab of the bottom panel. |
 +| **②** | IL display area | Shows the IL for each ladder tab in the project. You cannot edit it here. |
 +| **③** | Copy | Copies all of the displayed IL to the clipboard. |
 +
 +A ''ladderLoop'' ladder that contains only a ''P0'' NO contact and a ''P32'' output coil appears as shown below. NO contacts appear as ''LD'', ''AND'', or ''OR''; NC contacts as ''LDN'', ''ANDN'', or ''ORN''; and output coils as ''OUT''.
 +
 +<code>
 +; Ladder: ladderLoop
 +LD P0
 +OUT P32
 +</code>
 +
 +The mnemonic is generated from the ladder as it was when you last ran **Run → Build** (''Ctrl + R''). Changes to the ladder appear in the mnemonic only after you build again. After you run an upload, or if the build fails, a build prompt appears instead of the IL.
  
 ===== 2. Select and Move Between Ladder Cells ===== ===== 2. Select and Move Between Ladder Cells =====
Line 34: Line 55:
 | ''Shift + Arrow key'' | Select a rectangular range from the current cell | | ''Shift + Arrow key'' | Select a rectangular range from the current cell |
 | ''Enter'' or double-click | Open the editor for the selected contact, edge, or coil | | ''Enter'' or double-click | Open the editor for the selected contact, edge, or coil |
 +| ''Shift + Enter'' | Open the **Edit by Symbol** dialog to change the cell address by a registered symbol name |
 | ''Delete'' | Clear the selected element and its value, leaving an empty cell | | ''Delete'' | Clear the selected element and its value, leaving an empty cell |
  
Line 44: Line 66:
 ===== 3. Write a Value to Memory ===== ===== 3. Write a Value to Memory =====
  
-You can write a memory value from the selected ladder cell directly to the running board. **Right-click the ladder cell → Write Value to Memory**, or press ''Ctrl + Shift + W'' while the ladder grid has focus.+You can write a memory value from the selected ladder cell directly to the running board. The screen shows this feature as **Write Value to Arduino**. Open the **Write Value to Arduino** popup in one of the following ways.
  
-{{ :products:mpino_studio2:memory-force-popup-marked-en.svg?1000 |Write Value to Memory popup beside the selected cell }}+^ How to open ^ Address field ^ 
 +| Right-click a ladder cell → **Write Value to Arduino** | The address of the right-clicked cell is filled in. | 
 +| Press ''Ctrl + Shift + W'' or ''Alt + Enter'' while the ladder grid has focus | The address of the selected cell is filled in. | 
 +| **Run → Write Value to Arduino** | Empty. Enter the address to write. | 
 + 
 +{{ :products:mpino_studio2:memory-force-popup-marked-en.svg?1000 |Write Value to Arduino popup beside the selected cell }}
  
 ^ Marker ^ Screen item ^ How to use it ^ ^ Marker ^ Screen item ^ How to use it ^
-| **①** | Monitoring | Turn it on here if it is off. The **Write** button becomes available when monitoring communication is connected to the board. | +| **①** | Monitoring | Turns ladder monitoring communication on or off. You can write values even while monitoring is off; in that case, the app briefly connects to the board through the port selected in the status bar. | 
-| **②** | Address and current value | The selected cell's address is filled in automatically. If a function box contains several addresses, choose one from the list. For an empty cell, enter an address yourself. The current value comes from the board during monitoring. |+| **②** | Address and current value | The selected cell's address is filled in automatically. If a function box contains several addresses, choose one from the list. For an empty cell, enter an address yourself. The current value comes from the board during monitoring, and the monitoring port appears in parentheses. |
 | **③** | Value and Write | Enter a value and select **Write** or press ''Enter''. After a successful write, only the value field is cleared so you can write another value. | | **③** | Value and Write | Enter a value and select **Write** or press ''Enter''. After a successful write, only the value field is cleared so you can write another value. |
  
-This popup accepts **M, D, C, T, and R** addresses. **P addresses cannot be written here.** The value changes on the running board and may affect an output or control condition. Check the address and value before writing.+This popup accepts **P, M, D, C, T, and R** addresses. However, P addresses mapped to input pins cannot be written. Arduino Code variables cannot be written in this popup either. The value changes on the running board and may affect an output or control condition. Check the address and value before writing. 
 + 
 +In the following cases, no value is written and a message appears. 
 + 
 +^ Situation ^ Solution ^ 
 +| No monitoring port is set, or the port that is set does not exist on the current board. | The **Monitoring Port Required** message appears instead of the popup. Set a port under **File → Preferences → Ladder Settings → Monitoring port**. | 
 +| An upload, program reset, or EEPROM reset is in progress. | Write the value again after the operation finishes. | 
 +| The Serial Monitor is connected at a speed other than 115200 bps. | Disconnect the Serial Monitor or turn on monitoring, then write the value again. | 
 +| Monitoring is off and no port is selected in the status bar. | Use **Select port** in the status bar to select the port that the board is connected to. | 
 + 
 +If the board's current value differs from the written value after the write is sent, or if the write cannot be confirmed from the board's response, a warning appears in the popup. A different current value may mean that the ladder is overwriting the same address. 
 + 
 +While monitoring is on, you can write 1 or 0 directly to the bit address of the selected cell without opening the popup. Select a contact, coil, or edge cell that contains a single P or M bit address, such as ''P0'' or ''M0'', and then press one of the following shortcuts. 
 + 
 +^ Shortcut ^ Action ^ 
 +| ''Ctrl + 1'' | Writes 1 to the bit address of the selected cell. | 
 +| ''Ctrl + 0'' | Writes 0 to the bit address of the selected cell. | 
 + 
 +If monitoring is off or the selected cell has no P or M bit address, no value is written and a message appears.
  
 This one-address popup differs from [[en-us_products:mpino_studio2:menus_settings#run_menu|Run → Memory Write List]], where you register multiple addresses. Close the popup with ''Esc'', a click outside it, or **✕**. This one-address popup differs from [[en-us_products:mpino_studio2:menus_settings#run_menu|Run → Memory Write List]], where you register multiple addresses. Close the popup with ''Esc'', a click outside it, or **✕**.
Line 68: Line 113:
 | Delete row | ''Alt + Delete'' | Delete the selected row and pull lower rows up | | Delete row | ''Alt + Delete'' | Delete the selected row and pull lower rows up |
  
-Right-click a ladder cell to select **Insert Cell, Delete Cell, Add Row,** or **Delete Row**. The shortcuts in the table run the same commands.+Right-click a ladder cell to select that cell and open the following menu. The shortcut for each command appears on the right side of the menu.
  
 {{ :en-us_products:mpino_studio2:chgrid-context-menu.png?240 |Figure 3. Ladder-cell context menu }} {{ :en-us_products:mpino_studio2:chgrid-context-menu.png?240 |Figure 3. Ladder-cell context menu }}
 +
 +^ Menu ^ Shortcut ^ Action ^
 +| Open this screen in CLCD Screen Editor | None | Appears at the top only when you right-click a [[en-us_products:mpino_studio2:box_functions#box_function_list|CSCR box function]] cell. Opens the **CLCD Screen Editor** window and selects the screen that the cell displays. If that LCD is not in the CLCD Screen Editor, only the window opens. |
 +| Monitoring ON, Monitoring OFF | ''Ctrl + M'' | Turns ladder monitoring on or off. See [[en-us_products:mpino_studio2:monitoring#start_and_stop_ladder_monitoring|Phase 6 · Start and Stop Ladder Monitoring]]. |
 +| Upload | ''Ctrl + U'' | Same as **Run → Upload**. |
 +| Signed Decimal, Unsigned Decimal, Hexdecimal, Binary, Floating Point | None | Selects the display format for monitored values. A ✓ appears before the selected format. See [[en-us_products:mpino_studio2:monitoring#display_formats|Phase 6 · Display Formats]]. |
 +| Write Value to Arduino | ''Alt + Enter'' | Opens the [[#write_a_value_to_memory|Write Value to Arduino]] popup with the address of the right-clicked cell. |
 +| Insert Cell, Delete Cell, Insert Row, Delete Row | See the table above | Same as the commands in the table above. |
  
 ==== Insert and delete cells ==== ==== Insert and delete cells ====
Line 98: Line 151:
   * ''Ctrl + V'': Paste at the selected position   * ''Ctrl + V'': Paste at the selected position
   * ''Ctrl + Z'': Undo the last ladder edit   * ''Ctrl + Z'': Undo the last ladder edit
 +  * ''Ctrl + Y'': Redo the undone ladder edit
  
 Copied cells can be pasted into another ladder tab or into a separately running MPINO Studio 2 window. Copied cells can be pasted into another ladder tab or into a separately running MPINO Studio 2 window.
Line 202: Line 256:
  
   - Select an empty cell on the row where the box function will be placed.   - Select an empty cell on the row where the box function will be placed.
-  - Press ''Ctrl + Enter'' or select **Box Function** from the left toolbar to open the editor.+  - Press ''\'' or select **Box Function** from the left toolbar to place a box function cell. 
 +  - Press ''Enter'' or double-click the cell to open the editor.
   - Select a category and command to place the command syntax in the input field.   - Select a category and command to place the command syntax in the input field.
   - Enter the addresses and values, then select **OK**.   - Enter the addresses and values, then select **OK**.
Line 250: Line 305:
 | Range selection | ''Shift + Arrow key'' | Extend the rectangular selection | | Range selection | ''Shift + Arrow key'' | Extend the rectangular selection |
 | Edit cell | ''Enter'' or double-click | Open the address and symbol editor | | Edit cell | ''Enter'' or double-click | Open the address and symbol editor |
 +| Edit by symbol | ''Shift + Enter'' | Open the dialog for changing the cell address by a registered symbol name |
 | Clear cell | ''Delete'' | Delete the selected element and its value | | Clear cell | ''Delete'' | Delete the selected element and its value |
 | Insert/delete cell | ''Insert'' / ''Ctrl + Delete'' | Insert an empty cell / delete and pull cells left | | Insert/delete cell | ''Insert'' / ''Ctrl + Delete'' | Insert an empty cell / delete and pull cells left |
Line 255: Line 311:
 | Copy/cut/paste | ''Ctrl + C'' / ''Ctrl + X'' / ''Ctrl + V'' | Edit the selected cells | | Copy/cut/paste | ''Ctrl + C'' / ''Ctrl + X'' / ''Ctrl + V'' | Edit the selected cells |
 | Undo | ''Ctrl + Z'' | Undo the last ladder edit | | Undo | ''Ctrl + Z'' | Undo the last ladder edit |
-| Write Value to Memory | ''Ctrl + Shift + W'' | Open the popup for writing the selected cell's memory value to the board |+| Redo | ''Ctrl + Y'' | Redo the undone ladder edit | 
 +| Write Value to Memory | ''Ctrl + Shift + W'' / ''Alt + Enter'' | Open the **Write Value to Arduino** popup with the selected cell's address | 
 +| Write bit | ''Ctrl + 1'' / ''Ctrl + 0'' | Write 1 / 0 to the selected cell's P or M bit address during monitoring |
 | Contacts | ''F2'' / ''F3'' | NO contact / NC contact | | Contacts | ''F2'' / ''F3'' | NO contact / NC contact |
 | Lines | ''F5'' / ''F6'' | Horizontal line / vertical line | | Lines | ''F5'' / ''F6'' | Horizontal line / vertical line |
Line 261: Line 319:
 | NOT contact | ''F10'' | Invert the condition calculated before it | | NOT contact | ''F10'' | Invert the condition calculated before it |
 | Edges | ''F11'' / ''F12'' | Positive Edge / Negative Edge | | Edges | ''F11'' / ''F12'' | Positive Edge / Negative Edge |
 +| Box function | ''\'' | Place a box function cell (open the editor with ''Enter'') |
 +| Symbols window | ''Ctrl + Enter'' | Open or close the Symbols window |
  
 ===== 14. Troubleshooting ===== ===== 14. Troubleshooting =====
en-us_products/mpino_studio2/ladder_editing.1794295849.txt.gz · Last modified: by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki