hsioEncoderDisable (Function)

Top  Previous  Next

Architecture:

NX32L

Device support:

All

Firmware version:

1.52.00


hsioEncoderDisable disables monitoring of an encoder.

 

 

 

Input:

id : INT (1..2) default 1

Identifier of the encoder to disable.

 

Returns: INT

1

- Success

0

- Function is not supported.

-1

- Unspecified error.

-5

- Invalid ID.

 

 

Declaration:

FUNCTION hsioEncoderDisable : INT;
VAR_INPUT
  id    : INT := 1;
END_VAR;

 

 

Example:

INCLUDE rtcu.inc
 
PROGRAM test;
BEGIN
  ...
  // Disable encoder
  hsioEncoderDisable(id := 1);
  ...
END;
 
END_PROGRAM;