Jump to content
OMRON Forums

PGoms

Members
  • Posts

    8
  • Joined

  • Last visited

PGoms's Achievements

Newbie

Newbie (1/14)

  • Conversation Starter
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. Hi, It looks like you can. The 'Turbo PMAC User Manual' explains it a little. [quote]Both TCP/IP and UDP/IP protocols are supported. The simpler UDP/IP protocol is strongly recommended, as it is more efficient, and the additional packet information and handshaking acknowledgments of TCP/IP are not required for the point-to-point communications used here. Use of the TCP/IP protocol with a computer running a Microsoft Windows operating system is particularly inefficient, due to an operating system time-out on every command/response event. [/quote] There's some more info on the setup from page 428 and on. Here's a direct link to it http://www.deltatau.com/manuals/pdfs/TURBO%20PMAC%20USER%20MANUAL.pdf?
  2. PGoms

    HOMEZ command

    Sina, Big thanks for taking time to reply on this. I've kind of been thrown right into this so I'm trying to learn it all by fixing occuring problems and adding small functions. I will play around a little with this on one of the machines on Friday, production is running too busy atm. Regards Per
  3. PGoms

    HOMEZ command

    Hi guys, Thanks for quick reply. I was able to do the HOMEZ in a different program but not in the same program right after the jog move. So yeah I understand what you're saying about the xx26 Offset, but I tried that first and it didn't work like wanted. It is most certain a problem withthe homing program itself. But I tried setting the xx26 to -21000(I guess it should be 16*-21000 to get me to -21000) , well, to basicly anything else than the set 0 but with no luck. If I set it greater than -200 it would just jog away right into my end limit switch(emergency one not home position). If I kept it smaller it would move down to a position far greater than set value *1/16 counts, but still move back to the 0 pos after.. But I guess this program jumps a bit back and forth when the status changes, but even when I changed the last x26 in each of the IFs it would still not give me the wanted pos. Here's the program itself: ;MOTION PROGRAM 41 ;REF.KJØRING AKSE BX ;---------------------------------- CLOSE DELETE GATHER DELETE TRACE OPEN PROG 41 CLEAR #include "macro_def.PMC" DummyProg40=0 I121=500 I221=500 IF(M120=1 AND M220 =1 AND DummyProg40=0) ;HMFL av B og av X? I123=-25 ;HOME-hastighetB I126=0 ;HOME offsetB I7212=11 ;Trigger på HMFL på B I7213=0 ;Velg triggesignal (HMFL) B I223=-20 ;HOME-hastighetX I226=0 ;HOME offsetX I7222=11 ;Trigger på HMFL på X I7223=0 ;Velg triggesignal (HMFL) X HOME 1,2 ;HOME-kjøring DummyProg40=1 ENDIF IF(M120=0 AND M220=0 AND DummyProg40=0) ;HMFL på B og på X? I123=5 ;HOME-hastighetB I126=1000 ;HOME offsetB I7212=3 ;Trigger på HMFL av B I7213=0 ;Velger triggesignal (HMFL) B I223=5 ;HOME-hastighetX I226=1000 ;HOME offsetX I7222=3 ;Trigger på HMFL av X I7223=0 ;Velger triggesignal (HMFL) X HOME 1,2 ;HOME-kjøring DWELL 5 I123=-5 ;HOME-hastighetB I126=0 ;HOME offsetB I7212=11 ;Trigger på HMFL på B I7213=0 ;Velg triggesignal (HMFL1) B I223=-5 ;HOME-hastighetX I226=0 ;HOME offsetX I7222=11 ;Trigger på HMFL på X I7223=0 ;Velg triggesignal (HMFL) X HOME 1,2 ;HOME-kjøring DummyProg40=1 ENDIF IF(M120=1 AND M220=0 AND DummyProg40=0) ;HMFL av B og på X? I123=-5 ;HOME-hastighetB I126=0 ;HOME offsetB I7212=11 ;Trigger på HMFL av B I7213=0 ;Velger triggesignal (HMFL) B I223=5 ;HOME-hastighetX I226=1000 ;HOME offsetX I7222=3 ;Trigger på HMFL av X I7223=0 ;Velger triggesignal (HMFL) X HOME 1,2 ;HOME-kjøring DWELL 5 I223=-5 ;HOME-hastighetX I226=0 ;HOME offsetX I7222=11 ;Trigger på HMFL på X I7223=0 ;Velg triggesignal (HMFL) X HOME 2 ;HOME-kjøring DummyProg40=1 ENDIF IF(M120=0 AND M220=1 AND DummyProg40=0) ;HMFL på B og av X? I123=5 ;HOME-hastighetB I126=1000 ;HOME offsetB I7212=3 ;Trigger på HMFL av B I7213=0 ;Velger triggesignal (HMFL) B I223=-20 ;HOME-hastighetX I226=0 ;HOME offsetX I7222=11 ;Trigger på HMFL av X I7223=0 ;Velger triggesignal (HMFL) X HOME 1,2 ;HOME-kjøring DWELL 5 I123=-5 ;HOME-hastighetB I126=0 ;HOME offsetB I7212=11 ;Trigger på HMFL på B I7213=0 ;Velg triggesignal (HMFL1) B HOME 1 ;HOME-kjøring DummyProg40=1 ENDIF DWELL100 RefFerdigX=1 ReferanseBX=0 DummyRefX=0 DWELL100 RefFerdigB=1 ReferanseBX=0 DummyRefB=0 CLOSE I guess some of the variable names here are Norwegian but you should be able to understand the program. What I have here is a homing program for two axes,B(rotation) and X(length movement) (still trying to figure it completly, I didn't write the code). It has 4 IF loops for the different homing states(B and X not done, X done not B, B done not X, both done. This whole setting is a bit confusing, the machines homes back and forth 3-4 times(well because the status of B and X changes) before it finally rests at the final home pos. Does this look like a good way of doing it? I got my position now with the HOMEZ command but I would want a better way of doing it in the future :)
  4. PGoms

    HOMEZ command

    I'm having some trouble with the HOMEZ command. I'm trying to do a quickfix in the end of a homing program. ( I just need it to move about 20000 counts past a reference trigger istead of stopping just at it) #2J=-20000 After this I'm trying to set this position to zero by doing a HOMEZ2 command but once I add the 'HOMEZ2' command it wont even run the Jog movement. With only the jog movement it works and I can type the HOMEZ2 command online to zero it. I guess there is probably some obvious mistake I did but I cant figure it out. Any ideas is appreciated :)
  5. Thank you both :) Guess I could've searched a bit harder on the forum!
  6. Ah, cheers! I see now that the manual states that clearly, my bad. Though it seems to have been the main memory used because I only enabled bit 0 which was the wrap around, while bit 1 controls the location. Another quick Q: Does the motion cmd DWELL(msec) take float or just integers? Some code on the gather would be great,ty! [quote='steve.milici' pid='528' dateline='1279227803'] The “LIST GATHER” command is not valid for DPRAM gathering. The host computer must use the method outlined in the Turbo PMAC User Manual. I will search our appnotes for any relevant code on this topic. [/quote]
  7. Thanks for quick response! I've read through the data gathering part but can't really get it all right. First I define : M56->X:$000006,19 // direct gather/endgather control I5000=3 // DPRAM storage RT I5049 = 8388608/I10 // gather rate of 1ms I5050=3 // gather I5001 and I5002 only define gather 1024 // 1024 word buffer From here I start and stop the gather with M56=1 and 0 in my PLC I guess the buffer will be rolled over when it hits it limit, but I'm going to collect the data before that anyway. How would I go about getting my data from M7100 ( M7100->Y:$078D00,8,16,U) to the I5001 source address. The other data in I5002 would just be the time in ms to use with the I5001 value. Seems I managed to store something in the buffer when I played around, but I couldn't read it from PEWIN with the LIST GATHER command. It just gave an error. Is there any way in PEWIN to print out the gathered data? Do anyone have any examples for writing and reading the gathers? Thanks in advance Per
  8. Hi I’m setting up a program on a system running on Turbo PMAC 2 (UMAC-rack). The purpose of the program is to measure a voltage (a welding pulse) with high resolution, at least every msec. The welding pulse is 28msec wide and there’s a 13 msec pause between two pulses. The signal is inputted on a ACC-28E In addition I first wanted to output this to an E-series Mitsubishi E-910 touch screen, but from what I can understand it can not handle these update rates without storing the values on the UMAC and then feeding them afterwards to the touch screen. I also want to keep the values to check the correlation between bad welds and pulse- strength and alignment. With this said I am new to the Delta Tau system. I’ve looked through some of the manuals and found the ‘Precise Timing’ chapter in the Turbo PMAC user manual, and I’m wondering just how precise these timers are. Would I be able to do the 1 ms sampling with less than 50us deviation on these? I5312=8388608/I10 // 1ms interval , timer CS#3 While (5312>0) Endwhile P2000=20*M7100/65535 //scaling // input these samples into an array for later use. P2001=P2001+1 // test function Per
×
×
  • Create New...