Jump to content
OMRON Forums

Clopedandle

Members
  • Posts

    56
  • Joined

  • Last visited

Everything posted by Clopedandle

  1. My mistake; I thought I remembered it working like that.
  2. How are you getting stuck, exactly? If you want to use usrcode.c, make sure you right-click it, select Properties, and set Build Action to Compile. Otherwise, the IDE will ignore that file.
  3. As bradp suggests, set those parameters properly (the defaults likely are not what you seek). You may consider setting both ta 0 ts 0 such that InvAMax and InvJMax dictate acceleration duration instead. I'm assuming you chose ta 1 pretty arbitrarily.
  4. You can compute (EncTable[n].PrevEnc * EncTable[n].ScaleFactor). That's fundamentally the same as Motor[x].ActPos if I recall correctly.
  5. There is actually an easy way to initialize all P-Variables to 0! Use vscale. For example to set P0 - P65535 to 0 at powerup: L0 = vscale(0,0.0,0,65536) Fundamentally, this just multiplies all P-Variables by 0.
×
×
  • Create New...