en-us_products:mpino_studio2:box_functions
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| en-us_products:mpino_studio2:box_functions [2026/09/09 17:54] – 만듦 - 바깥 편집 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 '' |
| - | | + | {{ :en-us_products: |
| - | | + | |
| - | | + | |
| - | - 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. Contact Condition and Execution ===== | + | ===== 3. Box Function |
| - | 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, expression, or 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 |
| ^ Type ^ Example ^ When to use ^ | ^ Type ^ Example ^ When to use ^ | ||
| | Structured | '' | | Structured | '' | ||
| | Free-form | '' | | Free-form | '' | ||
| + | |||
| + | ===== 5. Call an Arduino Code Function ===== | ||
| + | |||
| + | The two screens below show the '' | ||
| + | |||
| + | ==== Write the Function in Arduino Code ==== | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | ==== Call the Function from Ladder Logic ==== | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | The function name, letter case, argument count, and argument types in the box function must match the definition in Arduino Code. Do not add a semicolon at the end. In this example, '' | ||
| + | |||
| + | [[en-us_products: | ||
| ===== 6. 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: | ||
| Line 104: | 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.1788944070.txt.gz · Last modified: by 127.0.0.1
