Call 112 – user led control, Call 112 – user led control -25, Syntax – Rockwell Automation 1746-BAS BASIC LANGUAGE User Manual

Page 175: Example, Purpose

Advertising
background image

Publication 1746-RM001A-US-P

Output Functions 12-25

Syntax

PUSH [buffer selection]
CALL 96

Example

>1

REM EXAMPLE PROGRAM

>10 PUSH 0 : CALL 96 : REM CLEAR PRT1 OUTPUT BUFFER

READY

>

CALL 112 – User LED
Control

Purpose

Use CALL 112 to activate or de-activate the user LEDs (LED1 and LED2). Two
inputs arguments are required and no output arguments. The first input argument
activates or de-activates LED1. The second input argument activates or de-activates
LED2. An input argument of one activates the LED. An input argument of zero
deactivates the LED. Any other value has no effect on that particular LED.

Syntax

PUSH [LED1 state]
PUSH [LED2 state]
CALL 112

IMPORTANT

If port PRT1 is configured for DH485 protocol, this CALL has
no effect.

NOTE

When you change to Command mode, the user-defined LEDs
remain in their last state until you execute another CALL112.

Advertising