How to use UART or I2C on MK2

How to use UART or I2C on MK2

Postby manipul » 19 Mar 2016, 09:45

I have a MK2 BOB to upgrade my Japanese 3 Axis CNC machine. There is a rotating mechanical system for ATC on it, I'm using PLC to control this system for changing tool, to chose a tool, i have to enter number manual. I know USB CNC has ATC setting, but it choses tool based on tool's position. Is there any way to make the communication betwen PLC and MK2 for ATC ?. There are I2C and UART protocol on MK2, but has no any document how to use it, please help me.
manipul
 
Posts: 2
Joined: 19 Mar 2016, 09:39
Controller: Mk2

Re: How to use UART or I2C on MK2

Postby Support » 23 Mar 2016, 10:12

Unfortunately I2C and UART are currently only for testing purposes.

You could set tool change position in XY coordinates and before the tool change you set the rotational axis coordinate bound to the specific tool on the pallet.
Support
 
Posts: 2631
Joined: 07 Apr 2014, 17:39
Controller: Many controllers

Re: How to use UART or I2C on MK2

Postby rew10 » 16 May 2016, 16:15

Unfortunately I2C and UART are currently only for testing purposes.


You have completed the test?
I need to connect the device to control I2c M65 command.
I can become a tester.
rew10
 
Posts: 1
Joined: 16 May 2016, 16:10
Controller: Mk2

Re: How to use UART or I2C on MK2

Postby Support » 18 May 2016, 10:15

Sorry not yet. Thank you for understanding.
Support
 
Posts: 2631
Joined: 07 Apr 2014, 17:39
Controller: Many controllers

Re: How to use UART or I2C on MK2

Postby manipul » 25 Jul 2016, 14:12

Support wrote:Unfortunately I2C and UART are currently only for testing purposes.

You could set tool change position in XY coordinates and before the tool change you set the rotational axis coordinate bound to the specific tool on the pallet.


I understand you ideal, it's great, thank you very much, so I will read Y coordinate to identify the tool number. I tried to read Y coordinate through UART and received 12 bytes, only 3 near last bytes are changed when Y coordinate changes.
Could you please explain the function of each byte and do I need to invert the received byte?. 12 bytes which I received:
Coordinate 1: 0x70 0x7F 0x01 0xB7 0xBE 0x00 0x70 0xBF 0xB1 0x29 0x40 0x00
Coordinate 2: 0x70 0x7F 0x01 0xB7 0xBE 0x00 0x70 0xBF 0xD6 0x58 0x40 0x00
Coordinate 3: 0x70 0x7F 0x01 0xB7 0xBE 0x00 0x70 0xBF 0x32 0x37 0x20 0x00

Please show me how to convert 3 changed bytes to coordinate. Thank you.
manipul
 
Posts: 2
Joined: 19 Mar 2016, 09:39
Controller: Mk2

Re: How to use UART or I2C on MK2

Postby Solonora » 21 Oct 2016, 03:46

I have the same problem as me.
Solonora
 
Posts: 1
Joined: 21 Oct 2016, 03:20
Controller: Other


Return to Mk2 controller



Who is online

Users browsing this forum: No registered users and 1 guest