Linear Encoder Parameter setting

Similar documents
Absolute Encoder HE-65-M

HE-65 CAN-BUS. (DeviceNet-Slave) Technical Information TR - ECE - TI - GB /30/2016

Linear-Encoders CANopen Profile

Absolute linear encoder LP-38

Device Programming using TRWinProg

Linear-Encoder Multi-Sensor CANopen Profile

Laser Measuring Device LE-200

Absolute Encoder ZE Series

IV-30 Operating Manual for Pulse Distributor Cassette with potential separation

MINC-2 Technical Documentation ICI (Incremental Counter Interface) Submodule Please keep for further use!

Laser Measuring Device LE-200

VDSP12. Operating Manual. Edition date/rev. date: Document no./rev. no.: 00 Software version: - VDSP12-TRS-V-BA-GB

MDM-8. Technical Documentation Parallel Output Module. Please keep for further use!

KL-6011 Technical Documentation Serial Interface TTY 20mA Current Loop Please keep for further use!

Absolute linear encoder

Absolute Encoder ZE-115-M

Absolute linear encoder LA/LP/LMP and absolute encoder Cxx-65

Laser Measuring Device LE-200

Laser Measuring Device LE-200

KL Technical Documentation Incremental Encoder Interface. Please keep for further use!

Decentralized positioning drives

KL-4022 Technical Documentation 2-Channel Analog Output Terminal mA Please keep for further use!

KL-3012 Technical Documentation 2-Channel Analog Input Terminal mA Please keep for further use!

KL Technical Documentation Up / Down-Counter 24VDC, 100kHz. Please keep for further use!

Absolute rotary encoder CD _58 2+FS

KL Technical Documentation Incremental Encoder Interface. Please keep for further use!

User Manual. Laser Measuring Device LE-200 with PROFIBUS-DP and SSI - interface. Linear Encoders. Rotary Encoders. System. Motion

Manual. PLC Lib: Tc2_DMX. TwinCAT 3. Version: Date:

@C5xx. Operating manual

Absolute Encoder CD_-75 EtherCAT/FSoE

PC100. Operating Manual. Enclosed Disk Art.-No.: Programming-Software for Compact-Encoder

User Manual LE-200. Laser Measuring Device LE-200 with CANopen - interface. Software/Support DVD: Soft-No.:

Servo press kit YJKP - Host interface

AK-30 Profibus-DP Operating Manual for Axis Cassette with PNT Measuring Systems Please keep for further use!

RC232 Configuration and Communication Tool (CCT) User Manual

Reality V14.1. Basic Control Maintenance

@ctiveio Toolkit. Operating Manual

Use the Status Register when the firmware needs to query the state of internal digital signals.

This optional pin is present if the Mode parameter is set to SyncMode or PulseMode. Otherwise, the clock input does not show.

Manual. PLC Lib: Tc2_SMI. TwinCAT 3. Version: Date:

MBUS-CCT (Configuration and Communication Tool) User Manual

Use the Status Register when the firmware needs to query the state of internal digital signals.

Manual. PLC Lib: Tc2_Drive. TwinCAT 3. Version: Date:

Application Note. Modbus on CMMP-AS- -M3/M0. Connection and configuration of the motor controller CMMP-AS- -M3/M0 within a Modbus/TCP network.

CE-65-M INTERBUS-S. Operating Instructions. Retain for future use!

AN3281 Application note

Technical Note. J3F 32Mb, 64Mb, 256Mb Parallel NOR Flash Memory Software Device Drivers. Introduction. TN-12-50: J3F Software Device Drivers

efesotomasyon.com - Klockner Moeller - inverter User Manual CAN-Monitor

Application Note. a HART Tool-routing with Emerson AMS HART over TH LINK PROFIBUS for Asset Management 1.0.0

KL Technical Documentation BI SSI Sensor Interface. Please keep for further use!

Analog Multiplexer (AMux) Features. General Description. Input/Output Connections. When to Use an AMux Single or differential connections

SIGFOX-CCT (Configuration and Communication Tool) User Manual

Intel Platform Innovation Framework for EFI SMBus Host Controller Protocol Specification. Version 0.9 April 1, 2004

Print Server. Installation in Mac OS 9/8 Systems. Installation Manual

Mailbox Client Intel Stratix 10 FPGA IP Core User Guide

Optional Pause Pulse for constant frame length of 282 clock ticks

EZ-PD Analyzer Utility User Guide

Generic HART DTM for FDT 1.2 and FDT compliant frame applications Release 6.1

Absolute Encoder ZE / ZH Series

SMART Self-Test Reference for P400e SATA SSDs

Barcode positioning system BE-90 PB

Generally, typefaces with the Euro currency symbol are available in TrueType and PostScript formats for PC, as well as in PostScript format for MAC.

CoDeSys Library Extension for EASY242 Applications. FBE - Library. Reference Guide for use with EASY242

Barcode positioning system BE 901 SSI (D) (H)

Servo Press Kit YJKP - Description of host function blocks in Allen Bradley (Studio 5000 Logix Designer V26.01)

User Guide. Avigilon Control Center Gateway. Version 5.0. UG-ACCGateway5-A-Rev1

RM30xx Profibus Brief instructions efector400

Manual. TC3 Power Monitoring. TwinCAT 3. Version: Date: Order No.: TF3650

Advanced Data Formatting (ADF) Programmer Guide

460 Presentation Audio Mixer

NOVOtechnik. Content. TIM CANopen Gebrauchsanleitung TIM CANopen user manual SIEDLE GRUPPE

User Manual Gateway component for EtherNet/IP

AN-946 APPLICATION NOTE

Manual. PLC Lib: Tc2_Coupler. TwinCAT 3. Version: Date:

CE CY8CKIT-042-BLE F-RAM Data Logger

NOVOtechnik SIEDLE GRUPPE

Mailbox Client Intel Stratix 10 FPGA IP Core User Guide

DeviceNet SDNL-0404D-xxxx. IO Data Mapping DeviceNet Objects Indicators and Switches

Avigilon Control Center System Integration Guide

Date Revision Change(s) 10/10/ First version

CYMA IV. Accounting for Windows. Bank Reconciliation Training Guide. Training Guide Series

LIN Editor User s Guide

L-force Controls EDSPLCLIB Ä.GMQä. Software Manual. Function library"canopensdodrv" for Lenze software»drive PLC Developer Studio«

PCI Compliance Checklist

Supports a range of speeds of external memories (from 5 to 200 ns) Supports external memory power-down, sleep, and wakeup modes

Manual. PLC Lib: Tc2_DataExchange. TwinCAT 3. Version: Date:

Fieldbus Appendix Anybus-S Interbus 2Mbit/s Fibre Optic

EZ Protocol. Communication Protocol for EZPLC. For use of EZAutomation and AVG Customers with EZPLC Products. Copyright 2005 AVG

Application Note. E2 Interface for EE871, EE892 and EE893

Introduction. For more information. HART Protocol 7.0 Valid for software levels from 05.00

3000-SS38 Profibus-DP Driver

Positioning Controllers. Communication Guide. Document ID: rel4896

Documentation EtherCAT Library for LabVIEW 2.9

User Manual. Connection to Allen Bradley DF1. Part Number: Version: 2. Date: Valid for: TSwin.net 4.1x

User manual. KRP absolute multiturn rotary encoder with Ethernet/IP interface Relevant data sheet KRP 13386

AN F²MC-16FX Family, I2C. Contents. 1 Introduction. This application note describes how to communicate via I2C with a Serial EEPROM.

MultiView Matrix 8x8 CAT5 Switch

TPMC821-SW-42. VxWorks Device Driver. User Manual. The Embedded I/O Company. INTERBUS Master G4 PMC. Version 1.4. Issue 1.

WLAN Location Engine 2340 Using the Command Line Interface

DIGITAL HUMIDITY SENSOR HYT-131

Transcription:

TR - ELA - BA - GB - 0056-08 04/05/2016 Linear Encoder Parameter setting Technical Information

TR-Electronic GmbH D-78647 Trossingen Eglishalde 6 Tel.: (0049) 07425/228-0 Fax: (0049) 07425/228-33 email: info@tr-electronic.de www.tr-electronic.com Copyright protection This Manual, including the illustrations contained therein, is subject to copyright protection. Use of this Manual by third parties in contravention of copyright regulations is not permitted. Reproduction, translation as well as electronic and photographic archiving and modification require the written content of the manufacturer. Violations shall be subject to claims for damages. Subject to modifications The right to make any changes in the interest of technical progress is reserved. Document information Release date / Rev. date: 04/05/2016 Document / Rev. no.: TR - ELA - BA - GB - 0056-08 File name: TR-ELA-TI-GB-0056-08.docx Author: MÜJ Font styles Italic or bold font styles are used for the title of a document or are used for highlighting. Courier font displays text, which is visible on the display or screen and software menu selections. < > indicates keys on your computer keyboard (such as <RETURN>). Brand names Specified products, names and logos serve exclusively for information purposes and may be trademarks of their respective owners, without any special marking to indicate this. Page 2 of 13 TR - ELA - BA - GB - 0056-08 04/05/2016

Contents Contents... 3 Revision index... 4 1 Powerlink interface for Linear-Encoder... 5 1.1 Normal operation... 5 1.1.1 96-bit input register... 5 1.2 Parameter setting operation... 5 1.2.1 32-bit output register... 5 1.2.2 Read parameter... 6 1.2.3 Write parameter... 7 1.2.4 Procedure... 8 1.3 Operating method of the Offset and Preset function... 9 2 Bus connection to the automation studio (B&R)... 10 3 Adjustments... 12 3.1 Control software "Automation Studio"... 12 3.2 Measuring system... 13 04/05/2016 TR - ELA - BA - GB - 0056-08 Page 3 of 13

Revision index Revision index Revision Date Index First release 08/03/06 05 Expansion Function Article-No., read parameter Adjustments Control software "Automation Studio" Measuring system 09/26/06 06 10/19/06 07 General modifications 06.04.16 08 Page 4 of 13 TR - ELA - BA - GB - 0056-08 04/05/2016

1 Powerlink interface for Linear-Encoder The Powerlink measuring system has a 32-bit input register for parameter setting and a 96-bit output register for two magnet positions and the speed output. Additionally, the according status is assigned to the positions. 1.1 Normal operation Measuring system input register = 0 : Transmission of the position with status. 1.1.1 96-bit input register IN-data relating to the master (control): Magnet 1 Magnet 2 Meaning Bit 0-27 Bit 48-75 Position Bit 28 29 Bit 76-77 Reserve Bit 30 Bit 78 Set, if no magnet available, value is not plausible Bit 31 Bit 79 Speed > 2m/s Bit 32-47 Bit 80-95 Speed 1.2 Parameter setting operation Measuring system input register 0 : - writing/reading bit is set --> write parameter - writing/reading bit is not set --> read parameter 1.2.1 32-bit output register Out-data relating to the master (control): Bit-No. Bit 31 Bit 30 Meaning Error bit The measuring system responses to each parameter setting. If the command can not be executed, the data word will be sent back and additionally the error bit is set. Writing-/ Reading bit 0 = read parameter, 1 = write parameter Bit 26-29 Selection of the function Bit 0-25 Data bits Bit 30 = 1 : Entry of the parameter data for the selected writing function, Bit 30 = 0 : Entry of the parameter data for the selected reading function. 04/05/2016 TR - ELA - BA - GB - 0056-08 Page 5 of 13

Powerlink interface for Linear-Encoder 1.2.2 Read parameter Function Bit 31 Bit 30 Bit 29 Bit 28 Bit 27 Bit 26 hex Device type / Serial number 0 0 0 0 0 1 0400 0000 Counting direction / Number of magnets 0 0 0 0 1 0 0800 0000 Resolution 0 0 0 0 1 1 0C00 0000 Preset value 1 0 0 0 1 0 0 1000 0000 Preset Release 1 0 0 0 1 0 1 1400 0000 Preset value 2 0 0 0 1 1 0 1800 0000 Preset Release 2 0 0 0 1 1 1 1C00 0000 Offset 1 0 0 1 0 0 0 2000 0000 Preset 1 in reference to zero point 0 0 1 0 0 1 2400 0000 Offset 2 0 0 1 0 1 0 2800 0000 Preset 2 in reference to zero point 0 0 1 0 1 1 2C00 0000 Firmware version / Article-No. 0 0 1 1 0 0 3000 0000 Filter depth 0 0 1 1 0 1 3400 0000 Cycle time 0 0 1 1 1 0 3800 0000 Averaging of speed 0 0 1 1 1 1 3C00 0000 The measuring system acknowledges the output data of the master to the input data with the same content: - Bit 26 31: requested reading function - Bit 0 25: Parameter value of the requested reading function - Bit 31: only set, if an error is present - Bit 32 95: without meaning Content of the data bits 0 25 Function Bit 0 15 = Serial number Bit 16 25 = Device type Firmware version / Article-No. Bit 0 = Counting direction Bit 1 = Number of magnets Preset value 1 and 2, in reference to magnet 1 Preset Release 1 and 2, in reference to magnet 2 Filter depth Resolution Parameter values LMP-30: Bit 16 25 = 30 LP-38: Bit 16 25 = 38 LP-46: Bit 16 25 = 46 Bit 0 15 = Article-No., Bit 16 25 = Firmware version Bit 0 = 0 : increasing, Bit 0 = 1 : decreasing Bit 1 = 0 : 1 magnet, Bit 1 = 1 : 2 magnets 0 = not set 1 = will be set 0 = not enabled 1 = enabled 1 = no averaging, 2 = averaging of 2 values 4 = averaging of 4 values, 8 = averaging of 8 values 5 = 5 µm 10 = 10 µm 100 = 100 µm Cycle time Value in µs Averaging of speed 1 = no averaging, 2 = averaging of 2 values 4 = averaging of 4 values, 8 = averaging of 8 values Page 6 of 13 TR - ELA - BA - GB - 0056-08 04/05/2016

1.2.3 Write parameter Function Bit 31 Bit 30 Bit 29 Bit 28 Bit 27 Bit 26 hex Counting direction / Number of magnets 0 1 0 0 1 0 48 Resolution 0 1 0 0 1 1 4C Preset value 1 0 1 0 1 0 0 50 Preset Release 1 0 1 0 1 0 1 54 Preset value 2 0 1 0 1 1 0 58 Preset Release 2 0 1 0 1 1 1 5C Offset 1 0 1 1 0 0 0 60 Offset 2 0 1 1 0 1 0 68 Filter depth 0 1 1 1 0 1 74 Cycle time 0 1 1 1 1 0 78 Averaging of speed 0 1 1 1 1 1 7C The measuring system acknowledges the output data of the master to the input data with the same content: - Bit 26 31: requested writing function - Bit 0 25: Parameter value of the requested writing function - Bit 31: only set, if an error is present - Bit 32 95: without meaning Content of the data bits 0 25 Function Bit 0 = Counting direction Bit 1 = Number of magnets Preset value 1 and 2 Preset Release 1 and 2 Filter depth Resolution Parameter values Bit 0 = 0 : increasing Bit 0 = 1 : decreasing Bit 1 = 0 : 1 magnet Bit 1 = 1 : 2 magnets 0 = not set 1 = will be set 0 = not enabled 1 = enabled 1 = no averaging 2 = averaging of 2 values 4 = averaging of 4 values 8 = averaging of 8 values 5 = 5 µm 10 = 10 µm 100 = 100 µm Cycle time Value in µs: 400, 800, 1200, 1600 and 1600 Averaging of speed 1 = no averaging 2 = averaging of 2 values 4 = averaging of 4 values 8 = averaging of 8 values 04/05/2016 TR - ELA - BA - GB - 0056-08 Page 7 of 13

Powerlink interface for Linear-Encoder 1.2.4 Procedure - Send data word with selected function - Only clear data word, when measuring system has returned OUT-data of the master to the IN-data of the 96-bit input register. - Set data word to 0. After that, the measuring system will output its position. - Each single parameter setting procedure must be finished with a 0 in the data word! Page 8 of 13 TR - ELA - BA - GB - 0056-08 04/05/2016

1.3 Operating method of the Offset and Preset function 04/05/2016 TR - ELA - BA - GB - 0056-08 Page 9 of 13

Bus connection to the automation studio (B&R) 2 Bus connection to the automation studio (B&R) _LOCAL UDINT position1; _LOCAL UINT v1; _LOCAL UDINT identposition1; _LOCAL UDINT identv1; _LOCAL UINT statusposition1; _LOCAL UINT statusv1; _LOCAL UDINT position2; _LOCAL UINT v2; _LOCAL UDINT identposition2; _LOCAL UDINT identv2; _LOCAL UINT statusposition2; _LOCAL UINT statusv2; _LOCAL UDINT output1; _LOCAL UDINT IdentOut1 _LOCAL UINT statusout1 _LOCAL UDINT parametrieren; _INIT void init(void) /*Initialization of the Powerlink encoder with address 2*/ /*Position Magnet 1 + Status*/ statusposition1 = plcecreate("sl1.ss0.if2.%id2.0.0",&position1,plce_cyclic_1,&identposition1); /*Speed Magnet 1*/ statusv1 = plcecreate("sl1.ss0.if2.%id2.0.4",&v1,plce_cyclic_1,&identv1); /*Position Magnet 2 + Status*/ statusposition2 = plcecreate("sl1.ss0.if2.%id2.0.6",& position2,plce_cyclic_1,& identposition2); /*Speed Magnet 2*/ statusv2 = plcecreate("sl1.ss0.if2.%id2.0.10",&v2,plce_cyclic_1,&identv2); /*32 bit output buffer -> parametrization word*/ statusout1 = plcecreate("sl1.ss0.if2.%qd2.0.0",&output1,plce_cyclic_1,&identout1); _CYCLIC void cyclic(void) unsigned long ulmagnet1; unsigned long ulmagnet2; unsigned long ulcounter=0; /* Now, at every cycle the new data are saved in ulmagnet1 and ulmagnet2 */ ulmagnet1 = position1; if(ulmagnet1&0xc0000000) if(ulmagnet1&0x40000000) /*Value for Magnet1 not plausible, no magnet available*/ if(ulmagnet1&0x80000000) /*Speed Magnet1 > 2m/s*/ else /*Value and speed of Magnet1 is plausible*/ ulmagnet2 = position2; if(ulmagnet2&0xc0000000) if(ulmagnet2&0x40000000) /* Value for Magnet2 not plausible, no magnet available */ if(ulmagnet2&0x80000000) /*Speed Magnet2 > 2m/s*/ else /* Value and speed of Magnet2 is plausible */ Page 10 of 13 TR - ELA - BA - GB - 0056-08 04/05/2016

/*Simple example if the count direction should be changed*/ if(parametrieren==1)/ /*0x48000001 -> Count direction = decreasing*/ output1 = 0x48000001; ulcounter++; if((ulmagnet1==0x48000001) /*Parameter setting was executed correct*/ output1 = 0; /*Normal read in mode*/ parametrieren = 0; ulcounter = 0; if(ulmagnet1==0xc8000001) /*Parameter setting incorrect, bit 31 is set*/ output1 = 0; parametrieren = 0; ulcounter = 0; /*Error procedure because parameter setting failed*/ if(ulcounter==?????) /*Criterion time abort*/ _EXIT void exitup(void) statusposition1 = plcedelete(identposition1); statusv1 = plcedelete(identv1); statusposition2 = plcedelete(identposition2); statusv2 = plcedelete(identv2); statusout1 = plcedelete(identout1); 04/05/2016 TR - ELA - BA - GB - 0056-08 Page 11 of 13

Adjustments 3 Adjustments 3.1 Control software "Automation Studio" That the control unit can communicate with the measuring system, the following value assignments must be carried out: ➊: Response timeout = 50 µs ➋: Size of input data = 12 byte, output for position and speed ➌: Size of output data = 4 byte, for parameter setting These parameters are also contained in the configuration file (HWC-file) for the LMP-30 and are predefined with corresponding default values. Page 12 of 13 TR - ELA - BA - GB - 0056-08 04/05/2016

3.2 Measuring system The adjusted cycle time of the measuring system under the function 0x78, Write parameter must agree with the adjusted bus cycle time in the control software. Possible cycle times: 400 µs 800 µs 1200 µs 1600 µs 2000 µs 04/05/2016 TR - ELA - BA - GB - 0056-08 Page 13 of 13