ArduinoPinMode block
Short summary
Name |
ArduinoPinMode |
→POU type |
|
Category |
|
Graphical interface |
|
Available since |
version 1.108.0 (for logi.CAD 3) This block is supported for →Arduino Nano and →Controllino of all sizes. |
Functionality
The block configures the pin as input, output or input with pullup resistence.
Inputs
|
Identifier |
Description |
|
Inputs: |
pin |
USINT |
Arduino pin number |
mode |
ArduinoPinDirection |
configuration of the pin by means of the data type ArduinoPinDirection |
Input EN and output ENO are available when →calling
the block. See "Execution control: EN, ENO" for information on input EN and output ENO.
Internal error diagnostic for block
The block checks whether the specified pin is existing. If not, the output ENO of the block is set to value FALSE (or an equivalent).
Example for usage within ST-editor
Best practice in order to get to know the usage of the Arduino functions: Create a new project based on the project template for Controllino (e.g. Moving light for Controllino MAXI Automation) or for Arduino Nano and study this sample project.