Hi!
I'm working with a microcontroller PICAXE 20M2 for controlling a lathe tool turret and now I would need some advice on what would be a simple way of programming "comparation" of signal values between toolnumber reguest from a CNC controller and feedback values from the lathe tool turret.
The sequence is like this.
1. Microcontroller recieves toolchange request from CNC
2. Microcontroller recieves toolnumber from PLC (three outputs from the CNC I/O board to three inputs on microcontroller board)
3. Microcontroller should compare PLC output values with current position of tool turret and if different then start rotating toolturret until tool turret position value is equal with PLC output.
4. Microcontroller outputs signal "toolchange done" and CNC-controller continues with next program line.
The toolturret has a Gray type 4-bit encoder giving four inputs to the microcontroller.
enclosed table with the signall information.
Im new at programmning microcontrollers so have some patience with these questions
I'm working with a microcontroller PICAXE 20M2 for controlling a lathe tool turret and now I would need some advice on what would be a simple way of programming "comparation" of signal values between toolnumber reguest from a CNC controller and feedback values from the lathe tool turret.
The sequence is like this.
1. Microcontroller recieves toolchange request from CNC
2. Microcontroller recieves toolnumber from PLC (three outputs from the CNC I/O board to three inputs on microcontroller board)
3. Microcontroller should compare PLC output values with current position of tool turret and if different then start rotating toolturret until tool turret position value is equal with PLC output.
4. Microcontroller outputs signal "toolchange done" and CNC-controller continues with next program line.
The toolturret has a Gray type 4-bit encoder giving four inputs to the microcontroller.
enclosed table with the signall information.
Im new at programmning microcontrollers so have some patience with these questions
Attachments
-
81.2 KB Views: 37