Ldurn parameter, Example – MagTek Excella STX99875340 User Manual

Page 60

Advertising
background image

Excella Windows API Specifications

50

Each LED state consists of 4 phases, and each phase can be 1 of 4 options: R=Red, G=Green, A=Amber,
N=None/Off. The LED state is then defined by a 4-character string with one character (R, G, A or N) for
each of the 4 phases.

Examples:

To define a solid green state for the left LED, the following string is used:

LED1=GGGG.

To define slow red/green blinking for the middle LED, the following string is used: LED2=RRGG.

To define fast red/green blinking for the right LED, the following string is used:

LED3=RGRG


When the device is idle, the state reported for each LED by the DeviceStatus will be:
LED1 = NNNN
LED2 = GGGG
LED3 = NNNN

LDURn Parameter

This parameter controls the time duration of the LED state. Each LED is assigned an individual parameter
as follows: LDUR1 (left LED), LDUR2 (middle LED), and LDUR3 (right LED).
For specific time duration, a number in ms must be specified (e.g., 5000 for 5 seconds). For a continuous
time duration, the value ON is used. To relinquish control and return to normal/default LED states, the
value DEFAULT is used.

Example

The SetLED command string can define the state of up to three LED’s. As an example, assume the
following requirements to define the state of the three LED’s:

LED1: steady green, stays on continuously

LED2: off, relinquishing control to device for normal/default states

LED3: slow red/off blinking, duration of 5 seconds.


The complete command string would be as follows:

DeviceCommand=SetLED&LED1=GGGG&LDUR1=ON&LED2=NNNN&LDUR2=DEFAULT&LED3
=RRNN&LDUR3=5000

Advertising