User Tools

Site Tools


en-us_commands:builtin

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_commands:builtin [2026/09/12 23:27] – 바깥 편집 127.0.0.1en-us_commands:builtin [2026/09/15 11:47] (current) – external edit 127.0.0.1
Line 11: Line 11:
 ===== Built-in Command List ===== ===== Built-in Command List =====
  
-Check the digital pin numbers and directions for your product before using an exampleSelecting an ILOGICS board definition configures digital ''pinMode()'' internally. If you choose an Arduino Mega/Mega 2560 board definition, check the product's Arduino pin numbers again and call ''pinMode()'' in ''setup()''. Do not reuse ILOGICS logical channel numbers unchanged.+I/O addresses in the examples depend on the product. Select the ILOGICS board definition for your product and check its pin map before using an address.
  
 **Browse by category** **Browse by category**
Line 172: Line 172:
 ^ Command Syntax ^ Return Value ^ Description ^ ^ Command Syntax ^ Return Value ^ Description ^
 | [[:en-us_commands:reference:ialt|Ialt(input, state)]] | None | Toggle ''state'' ON/OFF at each input rising edge | | [[:en-us_commands:reference:ialt|Ialt(input, state)]] | None | Toggle ''state'' ON/OFF at each input rising edge |
 +
 +This example uses the first MPAINO-8A8R(T) input ''0'' and first output ''64''.
  
 <code cpp> <code cpp>
 bool lampState = false; bool lampState = false;
 +
 +void setup() {}
  
 void loop() { void loop() {
Line 199: Line 203:
  
 PLC-style timers do not pause the program like ''delay()''. Instead, call them on every iteration of ''loop()''. Do not reuse the same ''id'' for different timers. PLC-style timers do not pause the program like ''delay()''. Instead, call them on every iteration of ''loop()''. Do not reuse the same ''id'' for different timers.
 +
 +This example uses the first MPAINO-8A8R(T) input ''0'' and first output ''64''.
  
 <code cpp> <code cpp>
 +void setup() {}
 +
 void loop() { void loop() {
   bool run = Ibounce(0, 30);   bool run = Ibounce(0, 30);
Line 449: Line 457:
 const uint8_t outputChannel = 64; const uint8_t outputChannel = 64;
  
-void setup() { +void setup() {}
-  pinMode(inputChannel, INPUT); +
-  pinMode(outputChannel, OUTPUT); +
-}+
  
 void loop() { void loop() {
Line 485: Line 490:
   * [[:en-us_products:mpaino|MPAINO Module Configuration and Logical Channels]]   * [[:en-us_products:mpaino|MPAINO Module Configuration and Logical Channels]]
   * [[:en-us_guide:getting_started|Getting Started with Arduino IDE]]   * [[:en-us_guide:getting_started|Getting Started with Arduino IDE]]
-  * [[:en-us_guide:wiring|I/Wiring Principles]]+  * [[:en-us_guide:wiring|First wiring and I/O check]]
   * [[:en-us_safety|Safety and Installation Precautions]]   * [[:en-us_safety|Safety and Installation Precautions]]
  
en-us_commands/builtin.1789223260.txt.gz · Last modified: by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki