How to use a servo with in built 23bit Absolute encoder with kflop
Moderators: TomKerekes, dynomotion
- 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
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.
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.
Tom Kerekes
Dynomotion, Inc.
-
- 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
Hi tom,TomKerekes wrote: ↑Thu Feb 04, 2021 3:46 pmHi 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.
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
AMIT KUMAR
Re: How to use a servo with in built 23bit Absolute encoder with kflop
It is well writen in the commends of the c programm ModbusMasterv1.c.
-
- 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
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
AMIT KUMAR
Re: How to use a servo with in built 23bit Absolute encoder with kflop
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 ?
What is the console responding when you are running the ModubusMasterv1.c ?
-
- 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
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.
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
AMIT KUMAR
- 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
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?
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.
Tom Kerekes
Dynomotion, Inc.
Re: How to use a servo with in built 23bit Absolute encoder with kflop
From the output of the console i see you are sending the address 0x0460 and not the address 0x602c.
-
- 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
Hi tom,
thanks for your reply.
https://www.hexin-technology.com/shared ... Manual.pdf
https://www.hexin-technology.com/RS-232 ... t-257.html
Or any other method to verify the connection of kanalog RS232.
Waiting for your kind reply.
thanks for your reply.
I have below converter, and manual.What kind of converter do you have?
https://www.hexin-technology.com/shared ... Manual.pdf
https://www.hexin-technology.com/RS-232 ... t-257.html
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.How is it wired?
I used 57600 baud rate, and i have changed the same in Modbusmasterver1.c also.What baud rate did you use on the PC?
I am initialising 57600 baud rate with the modbus code, and same settings are in the modbus of leadshine drive.What baud rate are you initializing the ModBus Code with?
No.Do you have an oscilloscope to check activity on the Kanalog Tx and Rx lines?
Or any other method to verify the connection of kanalog RS232.
Waiting for your kind reply.
Thank You
AMIT KUMAR
AMIT KUMAR
-
- 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
Hi cnc_freak,
Please tell me how to send the 0x602c, this address.
Waiting for your kind reply.
Thank You
AMIT KUMAR
AMIT KUMAR