Validity: Rule, Task
This keyword (read-only) provides access to the current value of the resulting threshold calculated by RTE.
Syntax |
REAL ser_cthr (I32 n) |
---|---|
n |
Axis index. Minimum representable number: 1 Maximum representable number: 32 |
Attributes |
Read only. It is calculated by RTE |
Notes |
Its units are Units |
If axis servo alarm is enabled (sam), the alarm threshold is calculated by RTE as:
ser_cthr(n) current = ser_thr(n) + p_iv(n, sa_iv_idx(n)) / ser_gai(n)
If SAM alarm disabled, the calculation can still be enabled via the keyword SYS_FLAG.
Example
; foo will contain the current value of the axis3 threshold foo = ser_cthr(3) |