User Tools

Site Tools


en-us_products:mpino_studio2:box_functions

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:box_functions [2026/09/10 18:27] – 바깥 편집 127.0.0.1en-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.
  
-{{ :en-us_products:mpino_studio2:box-function-learning-path.svg?1000 |This page explains how to enter and edit box functions, when they run, and which box functions MPINO Studio 2 provides. }}+{{ :en-us_products:mpino_studio2:box-function-learning-path.svg?1000 |Steps from creating a box function to checking its behavior }}
  
 ===== 1. Create a Box Function ===== ===== 1. Create a Box Function =====
Line 16: Line 16:
 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.
  
-{{ :en-us_products:mpino_studio2:box-function-editor-marked.svg?1000 |The box function editor is where you find a command and complete its arguments. Each marker points to the item described below. }}+{{ :en-us_products:mpino_studio2:box-function-editor-marked.svg?1000 |Category, command list, input field, help, and confirmation in the box function editor }}
  
   * **①** Category: Choose a command group such as Timer, Counter, or Arithmetic.   * **①** Category: Choose a command group such as Timer, Counter, or Arithmetic.
Line 28: Line 28:
 Choose a category and a command. The editor fills in the command template and selects its first argument. Enter a value and press ''Tab'' to move to the next argument. In structured commands, separate the command name and arguments with spaces. Choose a category and a command. The editor fills in the command template and selects its first argument. Enter a value and press ''Tab'' to move to the next argument. In structured commands, separate the command name and arguments with spaces.
  
-{{ :en-us_products:mpino_studio2:box-function-entry-anatomy.svg?1000 |Choose a category and a command. The editor fills in the command template and selects its first argument. Enter a value and press ''Tab'' to move to the next argument. In structured commands, separate the command name and arguments with spaces. }}+{{ :en-us_products:mpino_studio2:box-function-entry-anatomy.svg?1000 |How a command name and its arguments are entered }}
  
 ===== 2. Edit an Existing Command ===== ===== 2. Edit an Existing Command =====
Line 38: Line 38:
 The ON or OFF state from the contacts on the left is the box function's input. Timers and counters process their current and done states by command even while the input is OFF. With no contact, the input is always ON. Use a positive-edge contact when a cumulative command such as ''INC D0'' should run once. The ON or OFF state from the contacts on the left is the box function's input. Timers and counters process their current and done states by command even while the input is OFF. With no contact, the input is always ON. Use a positive-edge contact when a cumulative command such as ''INC D0'' should run once.
  
-{{ :en-us_products:mpino_studio2:box-function-execution.svg?1000 |The ON or OFF state from the contacts on the left is the box function's input. Timers and counters process their current and done states by command even while the input is OFF. With no contact, the input is always ON. Use a positive-edge contact when a cumulative command such as ''INC D0'' should run once. }}+{{ :en-us_products:mpino_studio2:box-function-execution.svg?1000 |How the left contact controls box function execution }}
  
 ===== 4. Structured and Free-form Input ===== ===== 4. Structured and Free-form Input =====
Line 48: Line 48:
 | Free-form | ''D0 = readSensor()'' | Enter a supported expression or call a function written in Arduino code | | Free-form | ''D0 = readSensor()'' | Enter a supported expression or call a function written in Arduino code |
  
-===== Calling an Arduino Code Function =====+===== 5. Call an Arduino Code Function =====
  
 The two screens below show the ''setMotor()'' function written in Arduino Code and a box function that calls the same function from ladder logic. The two screens below show the ''setMotor()'' function written in Arduino Code and a box function that calls the same function from ladder logic.
Line 64: Line 64:
 [[en-us_products:mpino_studio2:box_functions:free_input|View Arduino Code function-call details]] [[en-us_products:mpino_studio2:box_functions:free_input|View Arduino Code function-call details]]
  
-===== 5. Box Function List =====+===== 6. Box Function List =====
  
 ^ Category ^ Command ^ Function ^ ^ Category ^ Command ^ Function ^
Line 113: Line 113:
 | Free-form Box Functions | [[en-us_products:mpino_studio2:box_functions:free_input|Free-form Box Functions]] | ''D0 = D0 + 1'' · ''R0 += 1.5'' · ''D0 = readSensor()'' | | Free-form Box Functions | [[en-us_products:mpino_studio2:box_functions:free_input|Free-form Box Functions]] | ''D0 = D0 + 1'' · ''R0 += 1.5'' · ''D0 = readSensor()'' |
  
-===== 6. 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.
en-us_products/mpino_studio2/box_functions.txt · Last modified: by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki