ArduinoPinMode block

Short summary

Name

ArduinoPinMode

→POU type

→function

Category

Arduino functions, block with internal error diagnostic

Graphical interface

images/download/thumbnails/414779837/ArduinoPinMode-version-1-modificationdate-1534487461181-api-v2.png

Available since

version 1.108.0 (for logi.CAD 3)

images/s/b2ic8e/9012/1ca6q62/_/images/icons/emoticons/warning.svg 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

→Data type

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.

See:

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.