Call 112: user led control, Call 113: disable df1 driver communications – Rockwell Automation 1771-DB BASIC MODULE User Manual

Page 305

Advertising
background image

Chapter
Call Routines 69–127

13

13 -47

Use CALL 112 to activate or de-activate the user LEDs (LED1 and
LED2).

When you change to Command mode your user-defined LEDs remain in
their last state until you re-enter Run mode.

Input and Output Arguments

This routine has two input arguments and no output arguments.
The first input argument activates or de-activates LED1. The second input
argument activates or de-activates LED2:

1 = activate LED
0 = deactivate LED

Any other value has no effect on that particular LED.

Syntax

PUSH

LED1 state

PUSH

LED2 state

CALL 112

Example

>100 PUSH 1 : REM TURN ON LED1

>110 PUSH 0 : REM TURN OFF LED2

>120 CALL 112 : REM SET THE LEDS

Use CALL 113 to disable DF1 driver communications. This call
terminates DF1 communication immediately, even if the serial
transmission of a data packet is in progress. You should write your user
program so that it completes any transmission before performing CALL
113. This call clears the PRT2 transmit and receive buffers.

Input and Output Arguments

This routine has no input or output arguments.

Syntax

CALL 113

Example

>1 REM EXAMPLE PROGRAM

>10 CALL 113

>20 END

CALL 112: User LED
Control

CALL 113: Disable DF1
Driver Communications

Advertising