How to use a servo with in built 23bit Absolute encoder with kflop

Moderators: TomKerekes, dynomotion

User avatar
TomKerekes
Posts: 2679
Joined: Mon Dec 04, 2017 1:49 am

Re: How to use a servo with in built 23bit Absolute encoder with kflop

Post by TomKerekes » Thu Feb 04, 2021 3:46 pm

Hi Amit,

See the \C Programs\RS232\ModBusModbusMasterVer1.c example. Modify the ModbusMaster_MonitorList table to continuously read those registers into MBRegisters.

Then modify ModbusMaster_RegUnload() to convert the MBRegisters into the KFLOP Axis Positions when appropriate.
Regards,

Tom Kerekes
Dynomotion, Inc.

AmitKumar171
Posts: 134
Joined: Tue Feb 20, 2018 7:35 am
Location: India

Re: How to use a servo with in built 23bit Absolute encoder with kflop

Post by AmitKumar171 » Fri Feb 05, 2021 8:43 am

TomKerekes wrote:
Thu Feb 04, 2021 3:46 pm
Hi Amit,

See the \C Programs\RS232\ModBusModbusMasterVer1.c example. Modify the ModbusMaster_MonitorList table to continuously read those registers into MBRegisters.

Then modify ModbusMaster_RegUnload() to convert the MBRegisters into the KFLOP Axis Positions when appropriate.
Hi tom,

Thanks for your reply.

I will try that and update, i have one doubt here, i want to read only absolute postion that is 0x602C , this is a rs485 address on modbus register, how do i access this using ModBusModbusMasterVer1.c.

Where you put 0x602C this rs485 address in ModBusModbusMasterVer1.c..??

Waiting for your kind reply.
Thank You

AMIT KUMAR

User avatar
cnc_freak
Posts: 58
Joined: Fri Apr 20, 2018 5:36 am
Location: Greece
Contact:

Re: How to use a servo with in built 23bit Absolute encoder with kflop

Post by cnc_freak » Fri Feb 05, 2021 9:38 am

It is well writen in the commends of the c programm ModbusMasterv1.c.
Attachments
Modbus1.JPG

AmitKumar171
Posts: 134
Joined: Tue Feb 20, 2018 7:35 am
Location: India

Re: How to use a servo with in built 23bit Absolute encoder with kflop

Post by AmitKumar171 » Sat Feb 06, 2021 8:14 am

cnc_freak wrote:
Fri Feb 05, 2021 9:38 am
It is well writen in the commends of the c programm ModbusMasterv1.c.
Hi there,

thanks for your reply.

I have tried it and its not working, any suggestions???

Waiting for your kind reply.
Thank You

AMIT KUMAR

User avatar
cnc_freak
Posts: 58
Joined: Fri Apr 20, 2018 5:36 am
Location: Greece
Contact:

Re: How to use a servo with in built 23bit Absolute encoder with kflop

Post by cnc_freak » Sat Feb 06, 2021 9:25 am

You have to be more specific. What have you tried exacly? Do you managed to establish serial communication with the drive via kanalog?
What is the console responding when you are running the ModubusMasterv1.c ?

AmitKumar171
Posts: 134
Joined: Tue Feb 20, 2018 7:35 am
Location: India

Re: How to use a servo with in built 23bit Absolute encoder with kflop

Post by AmitKumar171 » Mon Feb 08, 2021 1:30 pm

cnc_freak wrote:
Sat Feb 06, 2021 9:25 am
You have to be more specific. What have you tried exacly? Do you managed to establish serial communication with the drive via kanalog?
What is the console responding when you are running the ModubusMasterv1.c ?
Hi there,

thanks for your reply.

it looks like i was not able to establish serial communication with drive via kanalog, can you share the wiring diagrams for rs 232 of kanalog and rs485 of modbus, as i am using a serial rs232 to rs485 converter.

currently i have wired, as per the manual of kanalog.
Screenshot (117).png
i have attached the console response which corresponds to my address 602c, i have tried as you said .

Waiting for your kind reply.
Thank You

AMIT KUMAR

User avatar
TomKerekes
Posts: 2679
Joined: Mon Dec 04, 2017 1:49 am

Re: How to use a servo with in built 23bit Absolute encoder with kflop

Post by TomKerekes » Mon Feb 08, 2021 4:06 pm

Hi Amit,

What kind of converter do you have? How is it wired? What baud rate did you use on the PC? What baud rate are you initializing the ModBus Code with? Do you have an oscilloscope to check activity on the Kanalog Tx and Rx lines?
Regards,

Tom Kerekes
Dynomotion, Inc.

User avatar
cnc_freak
Posts: 58
Joined: Fri Apr 20, 2018 5:36 am
Location: Greece
Contact:

Re: How to use a servo with in built 23bit Absolute encoder with kflop

Post by cnc_freak » Tue Feb 09, 2021 5:46 am

From the output of the console i see you are sending the address 0x0460 and not the address 0x602c.

AmitKumar171
Posts: 134
Joined: Tue Feb 20, 2018 7:35 am
Location: India

Re: How to use a servo with in built 23bit Absolute encoder with kflop

Post by AmitKumar171 » Tue Feb 09, 2021 6:02 am

Hi tom,

thanks for your reply.
What kind of converter do you have?
I have below converter, and manual.

https://www.hexin-technology.com/shared ... Manual.pdf
https://www.hexin-technology.com/RS-232 ... t-257.html
How is it wired?
This connector has rs232 at one end and RS485 to the other end. Rs232 is wired with KANALOG JP10 with RJ12 connector, and RS485 is connected to LEADSHINE servo drive CN4 connector.
What baud rate did you use on the PC?
I used 57600 baud rate, and i have changed the same in Modbusmasterver1.c also.
What baud rate are you initializing the ModBus Code with?
I am initialising 57600 baud rate with the modbus code, and same settings are in the modbus of leadshine drive.
Do you have an oscilloscope to check activity on the Kanalog Tx and Rx lines?
No.

Or any other method to verify the connection of kanalog RS232.

Waiting for your kind reply.
Thank You

AMIT KUMAR

AmitKumar171
Posts: 134
Joined: Tue Feb 20, 2018 7:35 am
Location: India

Re: How to use a servo with in built 23bit Absolute encoder with kflop

Post by AmitKumar171 » Tue Feb 09, 2021 6:03 am

cnc_freak wrote:
Tue Feb 09, 2021 5:46 am
From the output of the console i see you are sending the address 0x0460 and not the address 0x602c.
Hi cnc_freak,

Please tell me how to send the 0x602c, this address.

Waiting for your kind reply.
Thank You

AMIT KUMAR

Post Reply