Read data from EL5101 encoders interfase in twincat

georve

Member
Join Date
Jul 2009
Location
Caracas
Posts
3
Hello everyone. I`m new learner in twincat, and i`m making an application to test some advice connected to a plc beckhoff. I`m trying to read data from encoder, i`m using EL5101 module and i have made the setting following the advise given by beckhoff web page, but i do`nt know how to answer the data from module in twincat on st or ladder language. Someone have a code example. or could someone give some advice in how to read data from device
 
Hi Georve,

Did you find out?

I have same type of application using EL5151, I have truble of finding how to read and calculate position and flow from encoder pulses.

If you did succeed, maybe I can have som code example?

Thanks

Best Regards
Hans Pettersson
 
how to set up the encoder EL5151 follow these steps:
1. In twincat System Manager, you must to find EL5151 device in set up device with two option. Add device or find device.. my option appear in spanish ->Dispositivos de E/S->Device.. Here you appear a menu to add device or find them.
2. To config the EL5151 you can follow this advice http://www.judiwa.com/2009/12/15/how-to-setup-beckhoff-el5151-encoder-module/
3. In your PLC proyect you must declare a global var for example
count AT %IW12:UDINT;(*Encoder counter*) DINT because the register is 32 bit long. in this case i wanted to read data from counter
4. You Must to link var with physical register. In system manager you must to add your plc coded to you system manager, that can be in PLC-Config appear an option to add plc project. after you have done it, you must add a link between your in/out var and your in/out physical. In my example i did it with "Counter value . ENC Inputs . Terminal 5 (EL5151) . Dispositivo 1 (EtherCAT (v2.10 only)) . Dispositivos de E/S"
5. When you run your proyect you can see how the counter value change if your encoder move forward or toward
 
Dear Georve.
I want to ask you do we need to configure the NC-configurations and Apend Axis in order to perform the whole configuration of EL5101. OR we just need to follow the steps that you defined above?
Please reply thanks
 

Similar Topics

Hi Iam using monitouch hmi(V9 soft) with omron plc cj2m (CX programmer). In this I want to read a data from hmi to plc. The data was like...
Replies
0
Views
94
Thank you for any and all responses/help. I have an RSLogix 5000 v20 and a Cognex In-Sight v5.9 spreadsheet (8502P). I can not figure out how to...
Replies
0
Views
123
Dear Experts, Please, kindly guide me through how to read data from ABB PLC to S7-1200 Siemens PLC. I want to use Siemens S7-1200 PLC to read data...
Replies
1
Views
443
Hello, I want to send the data from Rslogix500 to Excel. I created a connection between RSlinx and Excel. The values in Excel automatically...
Replies
5
Views
1,172
Dear colleagues, I am reaching out for assistance with an issue I am having. I have a code that can successfully insert data from FactoryTalk...
Replies
6
Views
1,045
Back
Top Bottom