ArduinoDigitalRead block
Short summary
Name |
|
→POU type |
|
Category |
|
Graphical interface |
|
Available since |
version 1.108.0 (for Neuron Power Engineer) This block is supported for →Arduino Nano and →Controllino of all sizes. |
Functionality
The block reads the value of the specified pin.
Inputs
|
Identifier |
Description |
|
---|---|---|---|
Inputs: |
|
|
Arduino pin number |
Return value: |
|
|
the value of the specified pin as defined in data type |
Input EN
and output ENO
are available when →calling the block. See "Execution control: EN, ENO" for information on input EN
and output ENO
.
See:
-
"Blocks for safe logic" whether this block is supported for developing safety-relevant applications.
-
"Highlighting safe logic in the FBD-editor" for the effects when using the block as a block for safe logic.
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.