Validity: Rule, Task
By this keyword, you can access to a circular buffer of 32 filtered ideal quotas (ip_f) calculated in the previous samplings.
Syntax |
REAL p_ip_f (I32 n, I32 num) |
---|---|
n |
Axis index (1-32) |
num |
Number of previous samplings (0-31). If number is 0 = current sampling, if 1 = previous sampling. |
Result |
Returns the desired ip_f |
Notes |
It is used by RTE to calculate the position error(epos) in case filters are used in the position loop closure |
NOTE: By this keyword, it will then be possible to know the IPs set previously.
Example
; I read the ip_f of axis 1 of the current sampling returned = p_ip_f (1,0) ; I read the ip_f of axis 20 of the previous sampling returned = p_ip_f (20,1) ; I read the ip_f of axis 5 of previous 31 samplings returned = p_ip_f (5,31) |
NOTE: See position loop filters for a detailed description of the use of the p_ip_f variable.