GPIOReadPin block
Short summary
Name |
|
→POU type |
|
Category |
more system blocks, Blocks for GPIOs, block with internal error diagnostic |
Graphical interface |
|
Available since |
version 1.85.0 (for Neuron Power Engineer) and version 3.5.2 of Neuron RTS max |
Functionality
The block reads the value of a GPIO pin.
Inputs, outputs
|
Identifier |
Description |
|
---|---|---|---|
Inputs: |
|
|
0-based port index of the addressed GPIO |
|
|
0-based pin index of the addressed GPIO |
|
Output: |
|
|
the actual value of the input pin
|
Return value: |
– |
|
the return code of the operation
|
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 the following error cases and – if they occur – the block sets the output ENO
of the block to the value FALSE
(or an equivalent): The return code of the block is not 0 (see above).
Example for usage within ST-editor
At present, there is no example.