DAINCUBE DTP10-L Api Manual

Embedded-based teach pendant optimized for industrial robots, arm cortex-a9 linux system
Hide thumbs Also See for DTP10-L:

Advertisement

Quick Links

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,
655 Pyeongcheon-ro, Wonmi-gu, Bucheon-Si,
Gyeonggi-Do, Republic of Korea
Copyright © 2005–2018 Daincube
All rights reserved.
Printed in the Republic of Korea

Advertisement

Table of Contents
loading

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,...
  • Page 2 Preface Copyright notice Copyright © 2005–2018 Daincube. All rights reserved. Copying of this document, and giving it to others and the use or communication of the Contents thereof, is forbidden without express authority. Offenders are liable to the payment of damages.
  • Page 3 Revision history Revision Data Comment Version 0.1 2018.01.11 Preliminary version (Preliminary)
  • Page 4: Table Of Contents

    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.
  • Page 5: Introduction

    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);...
  • Page 6: Write To Serial Port

    /* 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);...
  • Page 7: Read From Serial Port And Write Ring Buffer

    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.
  • Page 8: 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...
  • Page 9: Examples Using Buzzer

    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...
  • Page 10: Examples Using Keypad

    - 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...
  • Page 11 DATA1 : KEYPAD_UP = 0x30, KEYPAD_DOWN = 0x31 DATA2 : KEY_A = 30, KEY_B = 48, KEY_C = 46, KEY_D = 32, KEY_E = 18, KEY_F = 33, KEY_G = 34, KEY_H = 35, KEY_I = 23, KEY_J = 36, KEY_K = 37, KEY_L = 38, KEY_M = 50, KEY_N = 49, KEY_O = 24, KEY_P = 25, KEY_F1 = 59, KEY_F2 = 60, KEY_F10 = 68, KEY_F11 = 87 DATA3 : DATA_RESERVED = 0x20 * Function name : OperThread...
  • Page 12: Examples Using Event Filter

    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:...

Table of Contents