Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Asynchronous following error
#4
(12-05-2018, 03:51 AM)Tony Wrote: What type of PMAC, amplifier and motor do you have? What type of encoder and resolution?

Can you post your PLC please. Don't forget that the normal uncompiled PLCs only start every millisecond so would not reliably re-arm the position capture for a 1KHz trigger.

I use a Power PMAC CPU in CPCI format with ACC24C2A 4 axis cards, it talks to an external driver in +-10V which drives a linear motor (brushless) from faulhaber
my encoder is a mercury II encoder, optical encoder with 5 nm resolution

my code is described in the plc0. because I thought that it was really running at rti frequency (as a compiled rticplc) is that wrong ?
in my setup I have set the phase clock at around 144 kHz, servoclock at about 9Khz (110us) and rti same as servo

here is the plc 0

open plc 0

p2017 = Gate1[14].Chan[3].PosCapt;

if ( Gate1[14].Chan[3].ABC <4 )
{
if (p2017 ==2 && p2019==1)
{
p2019 = 0;
p2010 = Gate1[14].Chan[3].HomeCapt;

difference_to_previous = p2010 - p2011
p2011 = p2010
}
} else
{
p2019 = 1;
}


close
Reply


Messages In This Thread
Asynchronous following error - jsinoir - 12-05-2018, 02:41 AM
RE: Asynchronous following error - Tony - 12-05-2018, 03:51 AM
RE: Asynchronous following error - jsinoir - 12-06-2018, 01:57 AM
RE: Asynchronous following error - jsinoir - 12-06-2018, 02:06 AM
RE: Asynchronous following error - jsinoir - 12-07-2018, 12:22 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)