ArduinoDigitalWrite block

Short summary

Name

ArduinoDigitalWrite

→POU type

→function

Category

Arduino functions, block with internal error diagnostic

Graphical interface

images/download/thumbnails/414779832/ArduinoDigitalWrite-version-1-modificationdate-1534487441602-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 writes a value to a specified pin.

Inputs


Identifier

→Data type

Description

Inputs:

pin

USINT

Arduino pin number

value

ArduinoDigitalPinValue

value to write to the pin as defined in data type ArduinoDigitalPinValue

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.