beautypg.com

D. command examples, St420, External control system – DNF Controls ST420-CP User Manual

Page 9

background image

ST420 Control Panel

9

9

d.

COMMAND EXAMPLES

ST420

External Control System

1) Keyboard status request with the response that indicates that all keys are released.


ÍÍ 0x2 + 0x01 + ‘K’ + 0x4E

0x2 + 0x07 + ‘K’ + 0x00 + 0x00 + 0x00 + 0x00 + 0x00 + 0x00 + 0x54 ÎÎ

2) Instruction to turn on LEDs 1 and 9.


ÍÍ 0x2 + 0x03 + ‘L’ + 0x01 + 0x01 + 0x53


0x02 + 0x01 +0x04 +0x07 ÎÎ

3) Instruction to turn all LCD keys red.

ÍÍ 0x2 + 0x03 + ‘C’ + 0x00 + 0x03 + 0x4B


0x02 + 0x01 +0x04 +0x07 ÎÎ

4) Instruction to write a character “A” on LCD key 1.

ÍÍ 0x2 + 0x05 + ‘A’ + 0x01 + 0x01 + ‘A’ + 0x00 + 0x8B


0x02 + 0x01 +0x04 +0x07 ÎÎ

5) Instruction to clear all text from all LCD keys:


ÍÍ 0x2 + 0x04 + ‘A’ + 0x00 + 0x00 + 0x00 + 0x47


0x02 + 0x01 +0x04 +0x07 ÎÎ