GPIOSetPinConfig block
Short summary
Name |
GPIOSetPinConfig |
→POU type |
|
Category |
more system blocks, Blocks for GPIOs, block with internal error diagnostic |
Graphical interface |
|
Available since |
version 1.85.0 (for logi.CAD 3) and version 3.5.2 of logi.RTS |
Functionality
The block configures a GPIO pin.
Inputs, outputs
|
Identifier |
Description |
|
Inputs: |
port |
USINT |
0-based port index of the addressed GPIO |
pin |
USINT |
0-based pin index of the addressed GPIO |
|
flags |
GPIOPinFlags |
configuration values for the addressed GPIO |
|
Return value: |
-
|
UDINT |
the return code of the operation
|
The inputs port and pin are hardware-specific. Consult the documentation of the corresponding manufacturer on how to connect the inputs.
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 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.
When creating your application within the ST-editor, enter a call of a block by typing the text as requested by the syntax or use Content Assist.