beautypg.com

ProSoft Technology MVI56-BAS User Manual

Page 177

background image

MVI56-BAS ♦ ControlLogix Platform

BASIC CALLs Syntax

BASIC Module (DB/BAS Compatible)

User Manual

ProSoft Technology, Inc.

Page 177 of 234

December 13, 2011

CALL 16: Enable DF1 Packet Interrupt

Use CALL 16 to enable DF1 packet interrupt capability. This means that if a DF1

packet arrives at PRT2 due to CALL 122 or CALL 123, the BASIC control will

jump to another BASIC program line. Use RETI command to exit the interrupt.

Syntax:

PUSH [A]
CALL 16

Where:
A = BASIC line number

Example:

10 REM Enable DF1 Packet Interrupt
20 PUSH 800: CALL 16
.
.
.
800 REM DF1 Packet Interrupt Routine
.
.
.
850 RETI
.
.
.