Jump to content
OMRON Forums

JBauer

Members
  • Posts

    11
  • Joined

  • Last visited

Everything posted by JBauer

  1. It is not easy for me to tell how to do in C++, because I write my software for IPAD in objective C, but my experience is : Do not send the "CLOSE" command before PR is 0. Jorgen
  2. No, The program stops exactly after executing 600 lines. But the lines are sent to the rotary buffer which is 1200 provided by PR command once after the motion is stopped. Also the GUI get back to the update thread since the PR value is more than 750. The first rotary open is as follows PMACCom("A"); PMACCom("&1"); PMACCom("Q CLOSE I9=0"); PMACCom("&1 DEL ROT"); PMACCom("CLS"); PMACCom("CLR"); sprintf( strCom, "&1 DEFINE ROT %d",BufferSize); PMACCom(strCom); PMACCom("DELETE TRACE"); PMACCom("DELETE GATHER"); PMACCom("&1 DEFINE LOOKAHEAD 1000,500"); PMACCom("&1B0"); PMACCom("&1 OPEN ROT CLR"); And the subsequent open is as in the code snippet provided. The code execution is fine, if I don't close the buffer until all the NC codes are sent to the buffer. Hope you could provide a solution for this problem since we are struggling with it for long time now. In your code: LineIndex++; if(LineIndex>=(total_line_count)) { PMACCom("CLOSE"); tmrUpdateMachineState->Enabled = true; return; } } } else { PMACCom("CLOSE"); tmrUpdateMachineState->Enabled = true; } } else { PMACCom("CLOSE"); tmrUpdateMachineState->Enabled = true; return; } //****************************************************** I would comment out the PMACCom("CLOSE"); and see what happened. I´m almost sure it will make it. This code: if(LineIndex>=(total_line_count)) { PMACCom("CLOSE"); ->will stop execution before it is finish. Instead of sending "CLOSE" ,send a M30 and make a CMD"CLOSE" inside the M30, but first try the comment out of the PMACCom("CLOSE"); and test it. //********************************************** To find out pmac need more lines I use to read this address ry:$203f Read bit 17 : pmac need more lines if (readresult and 65536)=0 I only use the PR command for fun to display a progressbar. The CLOSE after if(LineIndex>=(total_line_count)) { PMACCom("CLOSE"); and the last close after the last else is to close the buffer once all the NC codes are sent to PMAC. So I had commented the 2nd "CLOSE" and just enabled the machine timer. I tried with commenting the "Close" command. But there is memory violation errors popping out. I hope since the buffer is open and i try to update the machine status, PMAC creates an error since the UI queries the M variables. //****************************************** Instead of comment out the PMACCom("CLOSE"); //PMACCom("CLOSE"); you can change it to PMACCom("M30"); But not the first Close command in the top of your program or you can make a BIIG delay (10 sek or more) before all the the PMACCom("CLOSE"); and if it makes a different
  3. No, The program stops exactly after executing 600 lines. But the lines are sent to the rotary buffer which is 1200 provided by PR command once after the motion is stopped. Also the GUI get back to the update thread since the PR value is more than 750. The first rotary open is as follows PMACCom("A"); PMACCom("&1"); PMACCom("Q CLOSE I9=0"); PMACCom("&1 DEL ROT"); PMACCom("CLS"); PMACCom("CLR"); sprintf( strCom, "&1 DEFINE ROT %d",BufferSize); PMACCom(strCom); PMACCom("DELETE TRACE"); PMACCom("DELETE GATHER"); PMACCom("&1 DEFINE LOOKAHEAD 1000,500"); PMACCom("&1B0"); PMACCom("&1 OPEN ROT CLR"); And the subsequent open is as in the code snippet provided. The code execution is fine, if I don't close the buffer until all the NC codes are sent to the buffer. Hope you could provide a solution for this problem since we are struggling with it for long time now. In your code: LineIndex++; if(LineIndex>=(total_line_count)) { PMACCom("CLOSE"); tmrUpdateMachineState->Enabled = true; return; } } } else { PMACCom("CLOSE"); tmrUpdateMachineState->Enabled = true; } } else { PMACCom("CLOSE"); tmrUpdateMachineState->Enabled = true; return; } //****************************************************** I would comment out the PMACCom("CLOSE"); and see what happend. I´m almost sure it will make it. This code: if(LineIndex>=(total_line_count)) { PMACCom("CLOSE"); ->will stop execution before it is finish. Instead of sending "CLOSE" ,send a M30 and make a CMD"CLOSE" inside the M30, but first try the comment out of the PMACCom("CLOSE"); and test it. //********************************************** To find out pmac need more lines I use to read this address ry:$203f Read bit 17 : pmac need more lines if (readresult and 65536)=0 I only use the PR command for fun to display a progressbar.
  4. Thank you, it took me about 2 minutes to fix it, it works now. Jorgen Bauer
  5. Hi I want to change the IP addrress in my Clipper board. I've read this thread: http://forums.deltatau.com/attachment.php?aid=471 I followed the steps in the link , the latest software is installed, connected to USB port, No other software is running, wrote the new IP address 192.168.0.103 select "PC104", Click "Store IP" I got the message "IP address succesfully stored in EEPROM" and "Done". Then I powered the Clipper off and on again. After that I hook the Clipper up with ethernet connection and the IP address is still the same old one: 192.6.94.5 What am I doing wrong ?
  6. This is very basic Clipper Quick Start Guide - Proposed.pdf
  7. This can be an electrical noise problem. Try running your program without the spindle running. If it works without this "random stopping" then replace your EMI filter, if you have one, if you dont have an EMI filter, insert an EMI filter before the spindle. Let us know the result.
  8. [quote='Unit101' pid='565' dateline='1280082090'] Is this JACK Bauer ? [/quote] Almost :-) Best regards Jorgen Bauer (Denmark)
  9. Hi I have a clipper board and I'm trying to get the inverse kinematic to work, but no motion happend, no error messages. The runtime error bit (22) for the C.S 1 is going to 1. I have done a very small test using the X and Y axis: settings: #1->I #2->I I5150=1 enable kinematic for C.S 1 uploaded kinematic program: &1 OPEN INVERSE ; Inverse kinematics for CS 1 CLEAR P1 = Q7 * 1000 ; X axis P2 = Q8 * 1000 ; Y axis CLOSE and the program to run: OPEN PROG 6 CLEAR RAPID X0 Y0 LINEAR X30 Y20 F200 CLOSE Can any one tell me what I am doing wrong ? best regards Jorgen
  10. Hi I have a Pmac Clipper board. I want to know how to set I variables to get my spindle running (milling spindle). The spindle motor is controlled by a frequency inverter. I'm using motor #6 DAC differential ended output connected to the inverter using +/-10V and GND. The spindle has no feedback, the spindle must run in open loop mode. I have set these I variables: I600=1 I602=$78102 I7126=1 Is this right and are there more I variables I need to set ? Thanks ! Jorgen
×
×
  • Create New...