DAINCUBE DTP10-L Api Manual - Page 8

Browse online or download pdf Api Manual for Controller DAINCUBE DTP10-L. DAINCUBE DTP10-L 13 pages. Embedded-based teach pendant optimized for industrial robots, arm cortex-a9 linux system

3. Defines of ETC values

3.1. Description

4. How to control ETC driver

4.1. Example using LED

Control the LED of DTP10-L by using serial daemon program provided by Daincube.
- Serial COM port open
- Packet buffer create.
- CRC create and fill in the packet buffer
- Transmit serial packet
- Serial COM port close
You can control LED of DTP10-L by transmit serial packet as below.
STX
MOD
0x02
0x11
1BYTE
1BYTE
MOD : MOD_GET = 0x10, MOD_SET = 0x11
SEL : SEL_LED = 0x3A
DATA1 : RIGHT_LED1 = 0x63, RIGHT_LED2 = 0x62, RIGHT_LED3 = 0x61
DATA2 : LED_OFF = 0x30, LED_BLUE = 0x31, LED_RED = 0x32, LED_ALL_ON = 0x33
DATA3 : DATA_RESERVED = 0x20
/*
* Function name : LED_Set
* Descripition : This function is control of LED and each led has its own value.
*
*/
void Serial_Daemon::LED_Set(char sel, char data)
SEL
DATA1
0x3A
0x63
1BYTE
1BYTE
If you control LED, using this function.
DATA2
DATA3
0x33
0x20
1BYTE
1BYTE
CRC_H
CRC_L
0xXX
0xXX
1BYTE
1BYTE
ETX
0x03
1BYTE