Engee documentation

Arduino-servoRead

Obtaining the position of the servo shaft.

blockType: CFunction

Path in the library:

/Interfaces/Targets/Arduino/Arduino-servoRead

Description

To work with the block, install/update the support package. equipment.

Block Arduino-servoRead It is used to get the position of the servo shaft, which was set last time by the unit. Arduino-servoWrite.

Ports

Output

# value — position of the servo shaft
scalar

Details

The value of the shaft position from 0 before 180.

Data types

UInt8

Complex numbers support

No

Parameters

Main group

# Номер канала — analog pin

Details

An analog pin connected to the servo signal.

Default value

:A0

Program usage name

m_pin

Tunable

No

Evaluatable

Yes

# Шаг расчёта: — the period from which the block will be called

Details

Specify the interval between the calculation steps as a non-negative number. To inherit the calculation step, set this parameter to −1.

Default value

-1

Program usage name

sample_time

Tunable

No

Evaluatable

Yes