User Tools

Site Tools


en-us_products:mpino_studio2:ladder_editing

Differences

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

Link to this comparison view

Next revision
Previous revision
en-us_products:mpino_studio2:ladder_editing [2026/09/09 09:56] – 만듦 - 바깥 편집 127.0.0.1en-us_products:mpino_studio2:ladder_editing [2026/09/12 21:42] (current) – 바깥 편집 127.0.0.1
Line 1: Line 1:
 ====== MPINO STUDIO 2 Phase 3 · Ladder Editing Basics ====== ====== MPINO STUDIO 2 Phase 3 · Ladder Editing Basics ======
  
-This page explains ladder-cell editing, contacts and coils, series and parallel connections, edges, and a self-holding circuit.+This page explains ladder-cell editing, writing memory values, contacts and coils, box functions, series and parallel connections, edges, and a self-holding circuit.
  
 {{ :en-us_products:mpino_studio2:ladder-learning-path.svg?1000 |Ladder editing sequence }} {{ :en-us_products:mpino_studio2:ladder-learning-path.svg?1000 |Ladder editing sequence }}
Line 11: Line 11:
 Read ladder logic from left to right. A coil operates when the condition formed by the contacts reaches it through the connecting lines. A circuit arranged on one line is called a **rung**. Read ladder logic from left to right. A coil operates when the condition formed by the contacts reaches it through the connecting lines. A circuit arranged on one line is called a **rung**.
  
-{{ :products:mpino_studio2:ladder-editor-toolbar.png?1000 |Figure 1. Ladder toolbar and editing grid }}+{{ :products:mpino_studio2:ladder-editor-toolbar-marked.svg?1000 |Figure 1. Locations of ① the toolbar, ② the ladder grid, and ③ the grid status bar }}
  
-  * **Toolbar:** Select contacts, connecting lines, coils, and edges. +  * **① Toolbar:** Select contacts, connecting lines, coils, and edges. 
-  * **Ladder grid:** Place elements in cells and connect the circuit. +  * **② Ladder grid:** Place elements in cells and connect the circuit. 
-  * **Grid status bar:** Shows the selected cell's coordinates and type. ''R1 C0'' is the first cell on the first row.+  * **③ Grid status bar:** Shows the selected cell's coordinates and type. ''R1 C0'' is the first cell on the first row.
  
 {{ :en-us_products:mpino_studio2:ladder-tool-map.svg?1000 |Ten ladder tools and their default shortcuts }} {{ :en-us_products:mpino_studio2:ladder-tool-map.svg?1000 |Ten ladder tools and their default shortcuts }}
Line 38: Line 38:
 When editing a contact or coil, enter an address or registered symbol. Matching items appear in the autocomplete list as you type. When editing a contact or coil, enter an address or registered symbol. Matching items appear in the autocomplete list as you type.
  
-{{ :products:mpino_studio2:ladder-cell-edit-modal.png?650 |Figure 2. Ladder-cell editor for entering a contact or coil address }}+{{ :products:mpino_studio2:ladder-cell-edit-modal.png?1000 |Figure 2. Ladder-cell editor for entering a contact or coil address }}
  
 > **Shortcut focus:** Use arrow keys and ladder shortcuts such as ''F2'' through ''F12'' while the ladder grid has focus. When the code editor has focus, arrow and clipboard shortcuts edit the code. > **Shortcut focus:** Use arrow keys and ladder shortcuts such as ''F2'' through ''F12'' while the ladder grid has focus. When the code editor has focus, arrow and clipboard shortcuts edit the code.
  
-===== 3. Insert, Delete, and Copy Cells =====+===== 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. 
 + 
 +{{ :products:mpino_studio2:memory-force-popup-marked-en.svg?1000 |Write Value to Memory popup beside the selected cell }} 
 + 
 +^ 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. | 
 +| **②** | 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. | 
 +| **③** | 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 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 **✕**. 
 + 
 +===== 4. Insert, Delete, and Copy Cells =====
  
 ''Delete'', which clears a cell, behaves differently from ''Ctrl + Delete'', which pulls following cells to the left. ''Delete'', which clears a cell, behaves differently from ''Ctrl + Delete'', which pulls following cells to the left.
Line 86: Line 101:
 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.
  
-===== 4Enter Contacts =====+===== 5Connect Horizontal and Vertical Lines =====
  
-contact reads an ON/OFF memory state or the result of a comparison and determines whether power flows through the circuit.+horizontal line connects cells on the same row. A vertical line joins upper and lower branches.
  
-{{ :en-us_products:mpino_studio2:ladder-contact-logic.svg?1000 |Comparison of NO contact, NC contact, and signal inversion }}+^ Tool ^ Shortcut ^ Operation ^ 
 +| Horizontal line | ''F5'' | Change the selected empty cell into a left-to-right connection | 
 +| Vertical line | ''F6'' | Toggle a downward connection on the right side of the selected cell | 
 + 
 +A vertical line is not a separate cell. It adds a connection from the right edge of the selected cell to the row below. Press ''F6'' again at the same position to remove it. 
 + 
 +Use horizontal lines to form a series circuit on one row and vertical lines to join the branches of a parallel circuit. 
 + 
 +===== 6. Define and Create NO, NC, and NOT Contacts ===== 
 + 
 +NO and NC contacts read an ON/OFF memory state or the result of a comparison. A NOT contact reverses the condition calculated before it. 
 + 
 +{{ :en-us_products:mpino_studio2:ladder-contact-logic.svg?1000 |Comparison of NO, NC, and NOT contacts }}
  
 ^ Contact ^ Shortcut ^ When the condition is OFF ^ When the condition is ON ^ ^ Contact ^ Shortcut ^ When the condition is OFF ^ When the condition is ON ^
 | NO contact | ''F2'' | Does not conduct | Conducts | | NO contact | ''F2'' | Does not conduct | Conducts |
 | NC contact | ''F3'' | Conducts | Does not conduct | | NC contact | ''F3'' | Conducts | Does not conduct |
 +| NOT contact | ''F10'' | Following condition is ON when the preceding condition is OFF | Following condition is OFF when the preceding condition is ON |
  
 Select a cell, press ''F2'' or ''F3'', and then press ''Enter''. Enter a bit address such as ''P0'', ''M0'', or ''D0.1'', or enter a registered symbol. See [[en-us_products:mpino_studio2:memory|Phase 2 · Understand Memory]] for memory-address formats. Select a cell, press ''F2'' or ''F3'', and then press ''Enter''. Enter a bit address such as ''P0'', ''M0'', or ''D0.1'', or enter a registered symbol. See [[en-us_products:mpino_studio2:memory|Phase 2 · Understand Memory]] for memory-address formats.
Line 114: Line 142:
 {{ :products:mpino_studio2:ch4-cmp-monitor.png?420 |Figure 12. Comparison contact with the condition D0 greater than 10 }} {{ :products:mpino_studio2:ch4-cmp-monitor.png?420 |Figure 12. Comparison contact with the condition D0 greater than 10 }}
  
-==== Invert a signal ====+==== NOT contact ====
  
-Signal inversion reverses the condition calculated up to its position. It does not take an address and is placed with ''F10''. When the preceding condition is OFF, the condition after the inversion is ON; when the preceding condition is ON, the condition after it is OFF.+A NOT contact reverses the condition calculated up to its position. It does not take an address and is placed with ''F10''. When the preceding condition is OFF, the condition after the inversion is ON; when the preceding condition is ON, the condition after it is OFF.
  
-Use no more than one signal-inversion cell in a branch.+Use no more than one NOT contact in a branch.
  
-===== 5Enter an Output Coil =====+===== 7Use Positive and Negative Edges ===== 
 + 
 +A standard contact conducts while its condition remains true. An edge contact conducts for one scan only when the input changes state. 
 + 
 +{{ :en-us_products:mpino_studio2:ladder-edge-timing.svg?1000 |Ladder circuits and one-scan behavior of positive and negative edges }} 
 + 
 +^ Contact ^ Shortcut ^ Conducting point ^ 
 +| Positive Edge | ''F11'' | One scan when the input changes from OFF to ON | 
 +| Negative Edge | ''F12'' | One scan when the input changes from ON to OFF | 
 + 
 +After placing an edge cell, enter the bit address or symbol whose change will be detected. Each edge cell tracks its previous state automatically, so you do not need a separate memory address for that state. 
 + 
 +Use Positive Edge for an action that runs once when a button is pressed. Use Negative Edge for an action that runs once when a button is released. 
 + 
 +===== 8. Create an Output Coil =====
  
 A standard output coil writes the result calculated by its contacts to a bit address on every scan. The coil address is ON while the condition is ON and OFF while the condition is OFF. A standard output coil writes the result calculated by its contacts to a bit address on every scan. The coil address is ON while the condition is ON and OFF while the condition is OFF.
Line 135: Line 177:
 > **Check the output address:** Before using a P address in an output coil, confirm under **Settings → Ladder Pin Map Settings** that it is an output on the selected board. > **Check the output address:** Before using a P address in an output coil, confirm under **Settings → Ladder Pin Map Settings** that it is an output on the selected board.
  
-===== 6Connect Horizontal and Vertical Lines ===== +===== 9Create SET and RESET Coils =====
- +
-A horizontal line connects cells on the same row. A vertical line joins upper and lower branches. +
- +
-^ Tool ^ Shortcut ^ Operation ^ +
-| Horizontal line | ''F5'' | Change the selected empty cell into a left-to-right connection | +
-| Vertical line | ''F6'' | Toggle a downward connection on the right side of the selected cell | +
- +
-A vertical line is not a separate cell. It adds a connection from the right edge of the selected cell to the row below. Press ''F6'' again at the same position to remove it. +
- +
-Use horizontal lines to form a series circuit on one row and vertical lines to join the branches of a parallel circuit. +
- +
-===== 7. Series and Parallel Circuits ===== +
- +
-{{ :en-us_products:mpino_studio2:ladder-wiring-logic.svg?1000 |Comparison of a series AND circuit and a parallel OR circuit }} +
- +
-  * **Series connection:** Power reaches the next cell only when every contact conducts. In ''M0 NO → M1 NO → P32 coil'', P32 turns ON only when both M0 and M1 are ON. +
-  * **Parallel connection:** Power continues after the branches rejoin when any connected branch conducts. If M0 and M1 are connected in parallel, P32 turns ON when either one is ON. +
- +
-{{ :products:mpino_studio2:ch4-no-parallel-on.png?420 |Figure 15. OR circuit with M0 and M1 connected in parallel }} +
- +
-Combining series and parallel connections can express a condition such as “(M0 or M1) and M2.” Read from the left, and separate the conditions at the points where parallel branches split and rejoin. +
- +
-===== 8. Use SET and RESET Coils =====+
  
 A standard output coil follows its condition continuously. SET and RESET coils store a value when their conditions turn ON. A standard output coil follows its condition continuously. SET and RESET coils store a value when their conditions turn ON.
Line 170: Line 189:
 ''M0 NO → P32 SET'' stores ON in P32 when M0 turns ON. P32 stays ON after M0 returns to OFF. ''M0 NO → P32 SET'' stores ON in P32 when M0 turns ON. P32 stays ON after M0 returns to OFF.
  
-{{ :products:mpino_studio2:ch4-set-on.png?300 |Figure 16. SET condition stores ON in P32 }} {{ :products:mpino_studio2:ch4-set-hold.png?300 |Figure 17. P32 remains ON after the SET condition turns OFF }}+{{ :products:mpino_studio2:ch4-set-on.png?300 |Figure 15. SET condition stores ON in P32 }} {{ :products:mpino_studio2:ch4-set-hold.png?300 |Figure 16. P32 remains ON after the SET condition turns OFF }}
  
 To turn the stored value off, enter the same address in a RESET coil. In ''M1 NO → P32 RESET'', P32 is stored as OFF when M1 turns ON. To turn the stored value off, enter the same address in a RESET coil. In ''M1 NO → P32 RESET'', P32 is stored as OFF when M1 turns ON.
  
-{{ :products:mpino_studio2:ch4-reset-pair.png?360 |Figure 18. SET circuit that turns P32 on and RESET circuit that turns it off }}+{{ :products:mpino_studio2:ch4-reset-pair.png?360 |Figure 17. SET circuit that turns P32 on and RESET circuit that turns it off }}
  
 When using a SET coil, also provide a RESET condition that releases the stored value. When using a SET coil, also provide a RESET condition that releases the stored value.
  
-===== 9Use Positive and Negative Edges =====+===== 10Create a Box Function =====
  
-standard contact conducts while its condition remains true. An edge contact conducts for one scan only when the input changes state.+box function runs a timer, counter, calculation, transfer, or another command when the condition calculated on its left is ON.
  
-{{ :en-us_products:mpino_studio2:ladder-edge-timing.svg?1000 |One-scan operation of positive and negative edges }}+  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. 
 +  Select a category and command to place the command syntax in the input field. 
 +  Enter the addresses and values, then select **OK**.
  
-^ Contact ^ Shortcut ^ Conducting point ^ +{{ :products:mpino_studio2:ch5-palette.png?760 |Figure 18. Box Function editor for selecting a category and command }}
-| Positive Edge | ''F11'' | One scan when the input changes from OFF to ON | +
-| Negative Edge | ''F12'' | One scan when the input changes from ON to OFF |+
  
-After placing an edge cell, enter the bit address or symbol whose change will be detectedEach edge cell tracks its previous state automaticallyso you do not need a separate memory address for that state.+A box function is placed at the right end of its row like an output coilIt runs while the contacts on its left are ON. With no contact on the leftit runs on every scan.
  
-Use Positive Edge for an action that runs once when a button is pressed. Use Negative Edge for an action that runs once when a button is released.+**[[:en-us_products:mpino_studio2:box_functions#box_function_list|View the box function list →]]**
  
-===== 10. Create a Self-Holding Circuit =====+===== 11. Series and Parallel Circuits ===== 
 + 
 +{{ :en-us_products:mpino_studio2:ladder-wiring-logic.svg?1000 |Comparison of a series AND circuit and a parallel OR circuit }} 
 + 
 +  * **Series connection:** Power reaches the next cell only when every contact conducts. In ''M0 NO → M1 NO → P32 coil'', P32 turns ON only when both M0 and M1 are ON. 
 +  * **Parallel connection:** Power continues after the branches rejoin when any connected branch conducts. If M0 and M1 are connected in parallel, P32 turns ON when either one is ON. 
 + 
 +{{ :products:mpino_studio2:ch4-no-parallel-on.png?420 |Figure 19. OR circuit with M0 and M1 connected in parallel }} 
 + 
 +Combining series and parallel connections can express a condition such as “(M0 or M1) and M2.” Read from the left, and separate the conditions at the points where parallel branches split and rejoin. 
 + 
 +===== 12. Create a Self-Holding Circuit =====
  
 A self-holding circuit connects an output coil's auxiliary contact in parallel with the start contact so that the output remains ON after the start signal disappears. A self-holding circuit connects an output coil's auxiliary contact in parallel with the start contact so that the output remains ON after the start signal disappears.
Line 207: Line 238:
   - When M1 turns ON, the NC contact opens and P32 turns OFF.   - When M1 turns ON, the NC contact opens and P32 turns OFF.
  
-{{ :products:mpino_studio2:ch4-selfhold-on.png?420 |Figure 19. P32 turns ON through the M0 start contact }} {{ :products:mpino_studio2:ch4-selfhold-hold.png?420 |Figure 20. P32 auxiliary contact maintains the circuit after M0 turns OFF }}+{{ :products:mpino_studio2:ch4-selfhold-on.png?420 |Figure 20. P32 turns ON through the M0 start contact }} {{ :products:mpino_studio2:ch4-selfhold-hold.png?420 |Figure 21. P32 auxiliary contact maintains the circuit after M0 turns OFF }}
  
 M0 and M1 are internal-memory addresses used to explain the sequence. Replace them with P input addresses for the selected board when using physical input terminals. M0 and M1 are internal-memory addresses used to explain the sequence. Replace them with P input addresses for the selected board when using physical input terminals.
  
-===== 11. Ladder Editing Shortcuts =====+===== 13. Ladder Editing Shortcuts ===== 
 + 
 +You can change shortcuts under **File → Preferences → Shortcuts**.
  
 ^ Category ^ Shortcut ^ Action ^ ^ Category ^ Shortcut ^ Action ^
Line 222: Line 255:
 | 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 |
 | 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 |
 | Coils | ''F7'' / ''F8'' / ''F9'' | SET / RESET / standard output coil | | Coils | ''F7'' / ''F8'' / ''F9'' | SET / RESET / standard output coil |
-Inversion | ''F10''Signal inversion |+NOT contact | ''F10''Invert the condition calculated before it |
 | Edges | ''F11'' / ''F12'' | Positive Edge / Negative Edge | | Edges | ''F11'' / ''F12'' | Positive Edge / Negative Edge |
  
-===== 12. Troubleshooting =====+===== 14. Troubleshooting =====
  
 ^ Symptom ^ What to check ^ ^ Symptom ^ What to check ^
Line 237: Line 271:
 | A value set by a SET coil remains ON. | Check for a RESET coil and RESET condition that use the same address. | | A value set by a SET coil remains ON. | Check for a RESET coil and RESET condition that use the same address. |
 | The self-holding circuit stops as soon as the start signal turns OFF. | Check that the output's NO auxiliary contact is connected in parallel with the start contact. | | The self-holding circuit stops as soon as the start signal turns OFF. | Check that the output's NO auxiliary contact is connected in parallel with the start contact. |
-| The build reports a signal-inversion error. | Check whether the same branch contains more than one signal-inversion cell. |+| The build reports a NOT-contact error. | Check whether the same branch contains more than one NOT contact. |
  
 ===== Related Documentation ===== ===== Related Documentation =====
 +
 +  * [[en-us_products:mpino_studio2:menus_settings|Phase 7 · Menus and Preferences]]
 +
 +  * [[en-us_products:mpino_studio2:monitoring|Phase 6 · Serial and Ladder Monitoring]]
 +
 +  * [[en-us_products:mpino_studio2:code_editor|Phase 5 · Editing Arduino Code]]
  
   * [[:en-us_products:mpino_studio2:first_project|Phase 1 · Create Your First Project]]   * [[:en-us_products:mpino_studio2:first_project|Phase 1 · Create Your First Project]]
en-us_products/mpino_studio2/ladder_editing.1788915369.txt.gz · Last modified: by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki