turck TBEN-L Series Instructions For Use Manual
turck TBEN-L Series Instructions For Use Manual

turck TBEN-L Series Instructions For Use Manual

Compact rfid interface
Hide thumbs Also See for TBEN-L Series:
Table of Contents

Advertisement

Quick Links

Your Global Automation Partner
TBEN-L...-4RFID...-LNX
Compact RFID Interface
Instructions for Use

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the TBEN-L Series and is the answer not in the manual?

Questions and answers

Summary of Contents for turck TBEN-L Series

  • Page 1 Your Global Automation Partner TBEN-L…-4RFID…-LNX Compact RFID Interface Instructions for Use...
  • Page 2 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 3: Table Of Contents

    Setting the IP address.................... 17 7.1.1 Setting the IP address via switches at the device............ 17 7.1.2 Setting the IP address via the Turck Service Tool............ 19 Programming RFID channels ................... 20 7.2.1 GPIOs of the RFID channels – Overview ................ 21 7.2.2...
  • Page 4 13 Disposal ............................ 57 14 Technical Data.......................... 58 15 Appendix: Declaration of Conformity .................. 60 16 Appendix: Example – “HelloGPIO” for Node.js ................ 61 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 5: About These Instructions

    This symbol denotes actions that the user must carry out. RESULTS OF ACTION This symbol denotes relevant results of actions. Other documents Besides this document the following material can be found on the Internet at www.turck.com: Data sheet EC Declaration of Conformity Feedback about these instructions We make every effort to ensure that these instructions are as informative and as clear as pos- sible.
  • Page 6: Notes On The Product

    For further inquiries in Germany contact the Sales and Service Team on: Sales: +49 208 4952-380 Technology: +49 208 4952-390 Outside Germany, please contact your local Turck representative. Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 7: For Your Safety

    The TBEN-L…-4RFID-8DXP-LNX... block module is a programmable RFID interface for use in the Turck RFID system. The Turck RFID system is used for the contactless exchange of data between a tag and a read/write head in object or product identification applications. Four RFID channels are provided for connecting BL ident®...
  • Page 8: Product Description

    10 Mbps/100 Mbps transfer rate Glass fiber reinforced housing Shock and vibration proof Fully encapsulated module electronics Degree of protection IP65/IP67/IP69K Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 9: Operating Principle

    Memory expansion via the USB Host port is not possible. Technical Accessories Accessories for mounting, connecting and parameterizing can be found in product database or the Accessories List for TBEN (D301367) under www.turck.com. The accessories are not part of the scope of delivery. V01.01 | 2019/05...
  • Page 10: Mounting

    „ To avoid material abrasion and color changes: Protect the device from direct sunlight, e.g. by using protective shields. Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 11: Grounding The Device

    Grounding the device 5.2.1 Grounding and shielding concept The grounding and shielding concept of the TBEN-L modules enables the separate grounding of the fieldbus and I/O section. 4 x 15 nF 1 nF 2,2 MΩ Fig. 3: Equivalent circuit, shielding concept Fig. 4: Grounding components The grounding strip (1) on the M12 plug connectors for the fieldbus connection (P1, P2) con- nects the shield of the fieldbus cables.
  • Page 12: Grounding The Device (Fg)

    The shield of the fieldbus cables is connected to the grounding clip. Fig. 6: Mounting the grounding clip Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 13: Connection

    Connection Connecting the modules to Ethernet The connection to Ethernet is realized via the integrated auto-crossing switch is done using two 4-pole, D-coded M12 x 1-Ethernet-connectors. The maximum tightening torque is 0.6 Nm. Fig. 7: M12 Ethernet connector for the connection to Ethernet „...
  • Page 14: Connecting The Power Supply

    V2, the LED PWR changes from green to red. In case of an undervoltage at V1, the LED PWR is turned off. Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 15: Connecting Rfid Read/Write Heads

    Connecting RFID read/write heads The device has four 5-pin M12 plug connectors for connecting RFID read/write heads. The max- imum tightening torque is 0.8 Nm. „ Connect the read/write heads to the device as per the pin layout shown below. 1 = V 2 = Data B 3 = GND V1 4 = Data A...
  • Page 16: Connecting Digital Sensors And Actuators

    The channels are assigned to the slots as follows: Channel Slot DXP8 Ch8 DXP9 Ch9 DXP10 Ch10 DXP11 Ch11 DXP12 Ch12 DXP13 Ch13 DXP14 Ch14 DXP15 Ch15 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 17: Commissioning

    Setting the IP address The IP address can be set via two decimal rotary coding switches and DIP switches on the device, via the web server or via the Turck Service Tool. 7.1.1 Setting the IP address via switches at the device The IP address can be set via two decimal rotary coding switches and the DIP switch "Mode"...
  • Page 18 The following values are re- set or deleted: IP address and subnet mask Parameters Restore IP address: 192.168.1.100 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 19: Setting The Ip Address Via The Turck Service Tool

    7.1.2 Setting the IP address via the Turck Service Tool „ Connect the device to a PC via the Ethernet interface. „ Launch the Turck Service Tool. „ Click Search or press F5. Fig. 20: Turck Service Tool – Start screen The Turck Service Tool displays the connected devices.
  • Page 20: Programming Rfid Channels

    The serial interfaces are as follows: COM interface Channel COM0 tty03 Ident 0 COM1 tty04 Ident 1 COM2 tty01 Ident 2 COM3 tty02 Ident 3 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 21: Gpios Of The Rfid Channels - Overview

    7.2.1 GPIOs of the RFID channels – Overview The RFID channels can be programmed via the GPIOs. The GPIOs are located under the follow- ing path: /sys/class/gpio/… NOTE When biasing is switched on, the polarity must also be set. For this use the GPIOs for the polarity change.
  • Page 22: Adapt Slave Controller Via Script

    Adapt slave controller to Linux settings sh serial.sh COMx seths [baudrate]k[databits] Adapt settings for slave controller and Linux [parity][stopbits] settings Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 23 Example: Adapt settings for slave controller and Linux system via script The settings for the slave controller and the Linux system can be adapted via the sets function of the script. The function can be used with the following syntax: sh serial.sh COMx sets (Baudrate)k(databits)(parity)(stopbits) Example: Set transfer rate of 115200 kbaud, 8 bit, without parity, 1 stop bit serial.sh COM1 115.200k8n1...
  • Page 24: Programming Rfid Channels With Python 3

    # Read up to 128 bytes with 500ms timeout buf = serial.read(128, 0.5) print(buf) print("read %d bytes: _%s_" % (len(buf), buf)) serial.close() Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 25: Programming Rfid Channels With Node.js

    = require('shelljs'); # initialize COM1 com1 = new SerialPort('/dev/COM1'); # adjust hardware to the System settings shell.exec('sh /TURCK/scripts/serial.sh COM0 sethw'); # read up to 6 bytes com1.on('readable', function () { console.log('\nincomming Data com1:', com1.read(6)); # write buffer to COM1 const buf1 = new Buffer([0x01, 0x02, 0x03, 0x04, 0x05, 0x11]);...
  • Page 26: Programming Rfid Channels With C Or C

                          // print:                        p_InBuff -= count;                       printf("\nData count: %i",count+1);                       printf("\nValues: \n");                        for(i = 0; i <= count ; i++)                       { Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 27                                              printf("%.02x ", *p_InBuff ); //"\nReceived value %i: %.02x " p_InBuff++;                       }                       // close the Interface                       if((close(fd)) == -1)                       {                                              printf("\n can not close interface");                       }            }            else                       printf("can not open interface\n");             return EXIT_SUCCESS; V01.01 | 2019/05...
  • Page 28: Programming Digital Channels (Dxp)

    Setting the switchable VAUX power supply Socket Type GPIO Possible values Output 0: VAUX off 1: VAUX on Output Output Output Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 29: Setting Dxp Functions Via Script

    Setting DXP functions via script A script is installed on the device for setting the DXP channels. The script is located under the following path: /TURCK/scripts/dxp.sh The script can be used with the following syntax: sh dxp.sh DXPx [value] The following example sets the value for the DXP8 channel to ON.
  • Page 30: Programming Dxp Channels With Python 3

              fal = open("/sys/class/gpio/gpio" + ports[1] +"/active_low", "w")           fal.write("1")           fal.close()           # read DXP: fr = open("/sys/class/gpio/gpio" + ports[1] +"/ value", "r")           val=fr.read()           fr.close() Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 31           print(val) except:           # export gpio if not done as yet           f1 = open("/sys/class/gpio/export", "w")           f1.write(ports[1])           f1.close()           # set direction to read DXP           fo = open("/sys/class/gpio/gpio" + ports[1] +"/direction", "w")           fo.write("in")           fo.close()           # set active low to get the right value...           fal = open("/sys/class/gpio/gpio"...
  • Page 32: Programming Dxp Channels With Node.js

                        console.log('set Gpio '+ res + ' to ' + val); function getGpio(IN) { // switch from DXP to GPIO... switch (IN) {            case "8":                     res = 110; Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 33                     break;           case "9":                     res = 111;                     break;           case "10":                     res = 112;                     break;           case "11":                     res = 113;                     break;           case "12":                     res = 114;                     break;           case "13":                     res = 116;                     break;           case "14":                     res = 117;                     break;           case "15":                     res = 7;           // initialize the GPIO just to read...
  • Page 34: Programming Dxp Channels With C Or C

                           printf("failed on setting direction to read...\n");                       return -1;            }            // set active low to read...            if((fh = fopen("/sys/class/gpio/gpio114/active_low", "w")) !=            { Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 35                       fputs("1",fh);                       fclose(fh);            }            else            {                       printf("failed on setting active low ...\n");                       return -1;            }            // read GPIO...            if((fh = fopen("/sys/class/gpio/gpio114/value", "r")) != 0)            {                       fgets(input,2,fh);                       fclose(fh);                       printf("Value: %c\n", input[0]);            }             else            {                       printf("failed on reading ...\n");                       return -1;            }            ...
  • Page 36            if((fh = fopen("/sys/class/gpio/gpio86/value", "w")) != 0)            {                       fputs((const char*)"1",fh);                       fclose(fh);            }             else            {                       printf("failed on writing ...\n");                       return -1;            }            return EXIT_SUCCESS; Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 37: Programming Led Functions

    Setting LED functions via a script A script is installed on the device for setting the LEDs. The script is located under the following path: /TURCK/scripts/led.sh The script can be used with the following syntax: sh led.h led color [value] The following example switches on the red APPL LED.
  • Page 38: Programming Led Functions With Python 3

    = open("/sys/class/leds/err_red/brightness", "w") fw.write("0") fw.close() # Wait for 5 seconds time.sleep(5) # clean green LEDs: fw = open("/sys/class/leds/appl_green/brightness", "w") Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 39: Programming Led Functions With Node.js

    fw.write("0") fw.close() fw = open("/sys/class/leds/err_green/brightness", "w") fw.write("0") fw.close() fw = open("/sys/class/leds/run_green/brightness", "w") fw.write("0") fw.close() 7.4.4 Programming LED functions with Node.js The following examples illustrate the programming of the LED functions with Node.js. Further information on Node.js and the Node.js packages is provided at: https://nodejs.org https://www.npmjs.com/ // initialize the onoff box...
  • Page 40: Programming Led Functions With C Or C

                     // write "1" to switch on and "0" to switch of LED                  fputs((const char*)"0",fh);                  fclose(fh);         }         else         {                  printf("failed on writing ...\n");                  return -1;         }         return EXIT_SUCCESS; Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 41: Creating A C Application

    Creating a C application Requirements The following components are required to create a C application: Toolchain for Cortex A8 C program Downloading a toolchain The following toolchain is required for the Cortex A8 processor in order to cross compile a C program: OSELAS.toolchain-2014.12.0-arm-cortexa8-linux-gnueabihf-gcc-4.9.2-glibc-2.20- binutils-2.24-kernel-3.16-sanitized...
  • Page 42: Starting The Application Automatically (Autostart)

    Further information on unit configuration files is available at: https://www.freedesktop.org/software/systemd/man/systemd.service.html Example: Autostart of an application with a parameter transfer ExecStart=/usr/bin/node /home/user/ hello_GPIO.js webactive Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 43: Example: Using The Unit File

    The device supports the standard Linux user management. The access rights can be managed with the following standard Linux tools: adduser addgroup passwd User Rights Password root System administrator (all ac- turck cess rights) user Restricted access rights and password console rights sftpuser Access rights, SFTP rights in password the directory /home...
  • Page 44: Installing Python Packages

    (Example: sh module): @for file in `find $(SH_PKGDIR)/usr/lib/python$(PYTHON3_MA- JORMINOR)/site-packages \     ! -type d ! -name "*.py" -printf "%P\n"`; do \ Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 45   $(call install_copy, sh, 0, 0, 0644, -, \     /usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages/$ $file); \ done Dependencies can be entered in the sh.in file. Python 3 must be available in the following ex- ample in order to install Python modules. The “setuptools” module must be available on the host system.
  • Page 46 Call up the ipkg manager to install the Python module: ipkg -force-depends install sh_1.12.14_armhf.ipk The module is available in the Python Interpreter. Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 47: Setting

    Setting The read/write heads must be assigned parameters via the read/write head protocol. For this the read/write head protocol must be implemented on the TBEN device. V01.01 | 2019/05...
  • Page 48: Operation

    The settings are retained if a restart was carried out or the device was reset with the Reset command. Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 49: Troubleshooting

    Troubleshooting If the device does not function as expected, first check whether ambient interference is present. If there is no ambient interference present, check the connections of the device for faults. If there are no faults, there is a device malfunction. In this case, decommission the device and replace it with a new device of the same type.
  • Page 50: Maintenance

    Carry out the update on the device with the following command: sudo update system /path/To/The/Updatefile/updatefile If no error messages appear, the firmware was successfully installed. Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 51: 11.2.1 Example: Carrying Out A Firmware Update With Winscp And Putty

    Log into the device in WinSCP with the following entries: Transmission protocol: FTP Computer name: IP address of the device (in this case: 192.168.1.100) Port: 21 User name: root Password: turck NOTE The login via SFTP and Port 22 is also possible. Fig. 24: WinSCP – Login V01.01 | 2019/05...
  • Page 52 Fig. 25: WinSCP – Memory location of the update file on the host PC „ Navigate to the Run directory on the device. Fig. 26: WinSCP – RUN directory on the device Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 53 „ Save the update file in the run directory of the device by drag and drop or by clicking Upload. „ Confirm the following prompts with OK. Fig. 27: WinSCP – Confirm the prompt for the transfer The transfer of the update file is displayed by WinSCP as follows: Fig. 28: WinSCP –...
  • Page 54 Load for later repetitions. „ With saved sessions: Select TBEN-Lx_LNX and confirm with Load. „ Click Open. Fig. 29: PuTTY configuration Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 55 „ Log in on the device with user name “root” (password: “turck”). The password entered is not displayed in PuTTY. „ Run the update with the command sudo update system /run/[File name].bin. Example: sudo update system /run/TBEN-Lx-4RFID-8DXP- LNX_01520038_V1.0.1.0.bin Fig. 30: PuTTY – Starting the firmware update „...
  • Page 56 Check the current firmware status, e.g. with the Turck Service Tool: The current firmware status is shown under Version. Fig. 33: Turck Service Tool – Checking the firmware version Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 57: Repair

    Observe our return acceptance conditions when returning the device to Turck. 12.1 Returning devices Returns to Turck can only be accepted if the device has been equipped with a Decontamination declaration enclosed. The decontamination declaration can be downloaded from http://www.turck.de/de/produkt-retoure-6079.php and must be completely filled in, and affixed securely and weather-proof to the outside of the packaging.
  • Page 58: Technical Data

    Digital outputs No. of channels Connection technology of outputs M12, 5-pin Output type Type of output diagnostics Channel diagnostics Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 59 Technical data Output voltage 24 VDC from potential group Output current per channel 2.0 A, short-circuit proof, max. 4.0 A per socket Utilization factor 0.56 Load type EN 60947-5-1: DC-13 Short-circuit protection Potential isolation Galvanic isolation at P1/P2 Dielectric strength Up to 500 VDC (V1 and V1 compared to Ether- net) Conformity with standard/directive...
  • Page 60: Appendix: Declaration Of Conformity

    Ort und Datum der Ausstellung / Name, Funktion und Unterschrift des Befugten / Place and date of issue Name, function and signature of authorized person Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 61: Appendix: Example - "Hellogpio" For Node.js

    Appendix: Example – “HelloGPIO” for Node.js // This script show how to use the DXP's of the TBEN-4RFID-8DXP-LNX // Start the script with "webactive" option will make the I/O useable via webbrowser // Strat the script without options will toggle the I/O's const = require('onoff').Gpio;...
  • Page 62 = 89; const DXP_Write Gpio(res, "out"); DXP_Write.writeSync(val); + val); console.log('set Gpio ' to ' function getGpio(r_Pin) { switch (r_Pin) { Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 63 case "8": = 110; break; case "9": = 111; break; case "10": = 112; break; case "11": = 113; break; case "12": = 114; break; case "13": = 116; break; case "14": = 117; break; case "15": = 7; const DXP_Read Gpio(res, "in");...
  • Page 64 Over 30 subsidiaries and over 60 representations worldwide! 100002513 | 2019/05 100002513 www.turck.com...

This manual is also suitable for:

Tben-l4-4rfid-8dxp-lnxTben-l5-4rfid-8dxp-lnx

Table of Contents