FBPL Command Reference

Table Of Contents
196
11.7 SET LEDn
Description
Control LED on/off function.
Syntax
SET LED1 ON/OFF
SET LED2 ON/OFF
SET LED3 ON/OFF
LED no.
Default Function
LDE1
Power on/off
LED2
Printer on-line/off-line
LED3
Error/normal
Parameter
Description
ON
Enable LEDn function
OFF
Disable LEDn function
The default function of LED1, LED2 and LED3 id as listed below:
Model
LED1
LED2
LED3
LED4
LED5
LED6
LED7
LED2 & LED3
TD-4T series
Note: For this series, the LED1=LED2
GREEN
GREEN
RED
ORANGE
RJ series
GREEN
GREEN
RED
BAT1
BAT2
BAT3
WIFI/BT
ORANGE
TJ series
GREEN
GREEN
RED
ORANGE
Example
Sample code
DOWNLOAD "DEMO4.BAS "
SET LED1 OFF
SET LED2 OFF
SET LED3 OFF
FOR I=1 TO 100
LED1=0
LED2=0
LED3=0
IF I-INT(I/2)*2=0 THEN
LED1=1
ELSEIF I-INT(I/3)*3=0 THEN
LED2=1
ELSE
LED3=1
ENDIF
NEXT
LED1=1
LED2=1
LED3=0
SET LED1 ON
SET LED2 ON
SET LED3 ON
EOP
DEMO4