en-us_products:mpino_studio2:box_functions
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en-us_products:mpino_studio2:box_functions [2026/09/09 23:20] – 바깥 편집 127.0.0.1 | en-us_products:mpino_studio2:box_functions [2026/09/12 18:08] (current) – 바깥 편집 127.0.0.1 | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| This page explains how to enter and edit box functions, when they run, and which box functions MPINO Studio 2 provides. | This page explains how to enter and edit box functions, when they run, and which box functions MPINO Studio 2 provides. | ||
| - | {{ : | + | {{ : |
| - | ===== 1. Box Function | + | ===== 1. Create a Box Function ===== |
| + | |||
| + | ==== How to Create a Command ==== | ||
| + | |||
| + | - Select a ladder cell and press '' | ||
| + | - Choose a category and command in the editor. | ||
| + | - Enter the selected argument, then press '' | ||
| + | - Press '' | ||
| The box function editor is where you find a command and complete its arguments. Each marker points to the item described below. | The box function editor is where you find a command and complete its arguments. Each marker points to the item described below. | ||
| - | {{ : | + | {{ : |
| * **①** Category: Choose a command group such as Timer, Counter, or Arithmetic. | * **①** Category: Choose a command group such as Timer, Counter, or Arithmetic. | ||
| Line 17: | Line 24: | ||
| * **⑤** OK and Cancel: Save the input to the cell or discard the change. | * **⑤** OK and Cancel: Save the input to the cell or discard the change. | ||
| - | ===== 2. Choose and Enter a Command | + | ==== How to Read a Command ==== |
| Choose a category and a command. The editor fills in the command template and selects its first argument. Enter a value and press '' | Choose a category and a command. The editor fills in the command template and selects its first argument. Enter a value and press '' | ||
| - | - Select a ladder cell and press '' | + | {{ : |
| - | - Choose a category and command in the editor. | + | |
| - | - Enter the selected argument, then press '' | + | |
| - | - Press '' | + | |
| - | + | ||
| - | {{ : | + | |
| - | ===== 3. Edit an Existing Command ===== | + | ===== 2. Edit an Existing Command ===== |
| To edit an existing box function, select its cell and press '' | To edit an existing box function, select its cell and press '' | ||
| - | ===== 4. Box Function Execution Condition ===== | + | ===== 3. Box Function Execution Condition ===== |
| The ON or OFF state from the contacts on the left is the box function' | The ON or OFF state from the contacts on the left is the box function' | ||
| - | {{ : | + | {{ : |
| - | ===== 5. Structured and Free-form Input ===== | + | ===== 4. Structured and Free-form Input ===== |
| Structured commands are the 44 commands registered in the palette; each has a fixed syntax and argument count. Free-form input accepts an assignment containing an expression or an Arduino function call that you enter directly. | Structured commands are the 44 commands registered in the palette; each has a fixed syntax and argument count. Free-form input accepts an assignment containing an expression or an Arduino function call that you enter directly. | ||
| Line 46: | Line 48: | ||
| | Free-form | '' | | Free-form | '' | ||
| - | ===== 6. Calling | + | ===== 5. Call an Arduino Code Function ===== |
| - | A function written in Arduino Code can be called from a free-form | + | The two screens below show the '' |
| - | ^ Method ^ Box function input ^ Behavior ^ | + | ==== Write the Function |
| - | | Function call | '' | + | |
| - | | Store return value | '' | + | |
| - | The function name, letter case, argument count, and argument types must match its definition in Arduino Code. Separate multiple arguments with commas inside the parentheses, | + | {{ : |
| + | |||
| + | ==== Call the Function from Ladder Logic ==== | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | The function name, letter case, argument count, and argument types in the box function | ||
| [[en-us_products: | [[en-us_products: | ||
| - | ===== 7. Box Function List ===== | + | ===== 6. Box Function List ===== |
| ^ Category ^ Command ^ Function ^ | ^ Category ^ Command ^ Function ^ | ||
| - | | Timer Box Functions | [[en-us_products: | + | | Timer Box Functions | [[en-us_products: |
| - | | | [[en-us_products: | + | | | [[en-us_products: |
| - | | | [[en-us_products: | + | | | [[en-us_products: |
| - | | | [[en-us_products: | + | | | [[en-us_products: |
| - | | | [[en-us_products: | + | | | [[en-us_products: |
| - | | | [[en-us_products: | + | | | [[en-us_products: |
| - | | | [[en-us_products: | + | | | [[en-us_products: |
| - | | | [[en-us_products: | + | | | [[en-us_products: |
| - | | | [[en-us_products: | + | | | [[en-us_products: |
| - | | | [[en-us_products: | + | | | [[en-us_products: |
| - | | Counter Box Functions | [[en-us_products: | + | | Counter Box Functions | [[en-us_products: |
| - | | | [[en-us_products: | + | | | [[en-us_products: |
| - | | | [[en-us_products: | + | | | [[en-us_products: |
| - | | Bit and Latch Box Functions | [[en-us_products: | + | | Bit and Latch Box Functions | [[en-us_products: |
| - | | | [[en-us_products: | + | | | [[en-us_products: |
| - | | Arithmetic Box Functions | [[en-us_products: | + | | Arithmetic Box Functions | [[en-us_products: |
| - | | | [[en-us_products: | + | | | [[en-us_products: |
| - | | | [[en-us_products: | + | | | [[en-us_products: |
| - | | | [[en-us_products: | + | | | [[en-us_products: |
| - | | | [[en-us_products: | + | | | [[en-us_products: |
| - | | | [[en-us_products: | + | | | [[en-us_products: |
| - | | | [[en-us_products: | + | | | [[en-us_products: |
| - | | | [[en-us_products: | + | | | [[en-us_products: |
| - | | | [[en-us_products: | + | | | [[en-us_products: |
| - | | | [[en-us_products: | + | | | [[en-us_products: |
| - | | Transfer Box Functions | [[en-us_products: | + | | Transfer Box Functions | [[en-us_products: |
| - | | | [[en-us_products: | + | | | [[en-us_products: |
| - | | | [[en-us_products: | + | | | [[en-us_products: |
| - | | Bitwise Operation Box Functions | [[en-us_products: | + | | Bitwise Operation Box Functions | [[en-us_products: |
| - | | | [[en-us_products: | + | | | [[en-us_products: |
| - | | | [[en-us_products: | + | | | [[en-us_products: |
| - | | | [[en-us_products: | + | | | [[en-us_products: |
| - | | | [[en-us_products: | + | | | [[en-us_products: |
| - | | | [[en-us_products: | + | | | [[en-us_products: |
| - | | | [[en-us_products: | + | | | [[en-us_products: |
| - | | | [[en-us_products: | + | | | [[en-us_products: |
| - | | Conversion Box Functions | [[en-us_products: | + | | Conversion Box Functions | [[en-us_products: |
| - | | | [[en-us_products: | + | | | [[en-us_products: |
| - | | | [[en-us_products: | + | | | [[en-us_products: |
| - | | | [[en-us_products: | + | | | [[en-us_products: |
| - | | Logic Control Box Functions | [[en-us_products: | + | | Logic Control Box Functions | [[en-us_products: |
| - | | | [[en-us_products: | + | | | [[en-us_products: |
| - | | | [[en-us_products: | + | | | [[en-us_products: |
| - | | | [[en-us_products: | + | | | [[en-us_products: |
| | Free-form Box Functions | [[en-us_products: | | Free-form Box Functions | [[en-us_products: | ||
| - | ===== 8. Check Build Errors ===== | + | ===== 7. Check Build Errors ===== |
| An invalid command or argument appears as a build error. Check the ladder name and row in the message, then reopen that box function. | An invalid command or argument appears as a build error. Check the ladder name and row in the message, then reopen that box function. | ||
| Line 118: | Line 124: | ||
| ===== Related Documentation ===== | ===== Related Documentation ===== | ||
| + | |||
| + | * [[en-us_products: | ||
| + | |||
| + | * [[en-us_products: | ||
| * [[en-us_products: | * [[en-us_products: | ||
en-us_products/mpino_studio2/box_functions.1788963606.txt.gz · Last modified: by 127.0.0.1
