Embedded based teaching pendant optimized for industrial robots, arm cortex-a9 linux system (28 pages)
Summary of Contents for DAINCUBE DTP10-L
Page 1
The Embedded-based Teach Pendant optimized for industrial robots. DTP10-L API Manual DAINCUBE Corp. ARM Cortex-A9 Linux system FORM 140108F – 2018.01.11 DTP10-L API manual Form 140108F-171206— January, 2018 DAINCUBE Corp. Web: www.daincube.com E-mail: sales@daincube.com Tel: 82-32-329-9783~4 Fax: 82-32-329-9785 #401-701, Bucheon TechnoPark 4-Danji,...
Contents Introduction ......................... 5 How to use Serial Daemon ..................5 2.1. COM port open ........................5 2.2. Write to serial port ........................6 2.3. Read from serial port and write ring buffer ................7 Defines of ETC values ....................8 3.1.
2. How to use Serial Daemon 2.1. COM port open Key, LED and Buzzer use ttyACM0 COM port on DTP10-L. Therefore ttyACM0 port must be opened and function used are as follows. fd= open ( SERPORT, 0_RDWR | O_NOCTTY);...
/* Flush the input and output */ tcflush ( fd, TCIOFLUSH ); /* Set the new options for the port */ tcsetattr( fd, TCSANOW, &newtio ); notRsRead = new QSocketNotifier(fd, QSocketNotifier::Read, this); connect(notRsRead, SIGNAL(activated(int)), this, SLOT(Receive_Event())); ui->Btn_Open->setEnabled(1); /* Ring buffer create */ m_abyBuffer.Create(BUFF_MAX);...
break; case 2 : ui->Btn_LED1->setText("ALL"); i++; break; case 3 : ui->Btn_LED1->setText("OFF"); i = 0; break; 2.3. Read from serial port and write ring buffer Read to serial packet and fill in the ring buffer. * Function name : Receive_Event * Description : This function takes packet and stacks it in the ring buffer.
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...
LED_Packet, dwBytes ); usleep(1000); 4.2. Examples using Buzzer Control the Buzzer 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...
- CRC create and fill in the packet buffer - Receive serial packet - Receive packet check and parsing - Serial COM port close You can check the keypad status of DTP10-L by transmit/receive serial packet as below. DATA1 DATA2 DATA3...
4.4. Examples using event filter Control LED and Buzzer of DTP10-L by using event filter of serial daemon program provided by Daincube. If you makes keyboard event of predefined key code, you can control LED and buzzer. However, it will work only active mode. Do not work inactive mode (hide mode, hidden mode, etc.)
Page 13
data = 0x2; //red else if((Keyevent->key() == Qt::Key_G) || (Keyevent->key() == Qt::Key_H) || (Keyevent->key() == Qt::Key_I) ){ data = 0x4; //all else if((Keyevent->key() == Qt::Key_J)){ BUZ_Set(BUZZ_ON); usleep(1000); else if (event->type() == QEvent::KeyRelease){ data = 0x0; LED_Set(sel,data); usleep(1000); BUZ_Set(BUZZ_OFF); usleep(1000); switch(Keyevent->key()){ case Qt::Key_A: case Qt::Key_D: case Qt::Key_G:...