Validity: Rule, Task
This keyword is used to define the maximum quota that can be reached by axes.
Syntax |
REAL max_str (I32 n) |
---|---|
n |
Axis index. Minimum representable number: 1 Maximum representable number: 32 |
Notes |
Its units are Units |
It is implicitly used only if CRASH alarm management(cam) is enabled. In that case you have:
•Imposing ip, restriction not to rise above the end of strokes value (or above the current position if already above the parameter)
•Imposing iv or ia, alarm generation(code 15) if the quota rises above this parameter
•Limiting targets to the maximum value of the end of strokes in all motion instructions in which the axis is declared
NOTE: From RTE 33.18, from configurator it is possible to disable the retentivity of this parameter(DIS_AXES_PAR_RE).
Example
; if the ideal quota of axis 3 is greater than or equal ; to the maximum end of strokes of axis 3 ; to the TARGET variable is assigned the value ; of the minimum end of strokes of axis 3 if (ip(3) >= max_str(3)) TARGET = min_str(3) endif |
Example
; if the boolean variable machineSh is true then ; the max and min end of strokes will be assigned the values +/-1000 if (machineSh) max_str(1) = 1000 min_str(1) = -1000 ; otherwise will be assigned the values +/-2000 else max_str(1) = 2000 min_str(1) = -2000 endif |