Basic programming guide – Remote Processing BASIC for the CX-10 Modbus User Manual

Page 61

Advertising
background image

BASIC PROGRAMMING GUIDE

2-52

RETI

Syntax:

RETI

Function:

Return from ONITR or ONTICK interrupt. RETI must be the last instruction of the interrupt
subroutine.

Mode:

Run

Use:

RETI

DESCRIPTION

The RETI instruction causes you to exit from ONTICK and ONITR (if available) interrupts. RETI functions
like RETURN, but it clears software interrupt flags so that BASIC-52 can acknowledge subsequent
interrupts. If you don't execute the RETI instruction in the interrupt procedure, all future interrupts, hardware
and software, are ignored.

RELATED

ONITR, ONTICK

EXAMPLE

Refer to ONTICK and ONITR examples.

Advertising