Validity: R3 (rule, task), Ladder (task).
This predefined variable identifies the acceleration alarm enable mask (code 17) for each axes.
Syntax |
I32 acam |
---|---|
Attributes |
Bit-accessible |
If enabled, RTE performs the following operations:
•Imposing ia has limitation to the value of the predefined variable max_acc (limitation that is reported in acclm)
•Imposing ip or iv has alarm generation if the acceleration is greater than the parameter
•Limiting accelerations to the value of parameter max_acc in all movements where axis is declared (mva_xxx)
At switch on, no acceleration alarm is enabled (acam = 0).
To enable the acceleration alarm for the first axis, the first bit of the variable will have to be written (acam.0 = 1), and so on: the max_acc variables of the axes will also have to be set.
Examples
; the first axis acceleration alarm is enabled acam.0 = 1 ; axes 9 to 14 are added ; (in addition to the first one already enabled) acam = acam r_or 0x3F00 ; if axis 17 acceleration alarm is enabled ; (remember that indexes start at value 0) ; then in the string register sr(1) ; "axis 17 acceleration alarm enabled" will be stored _if(acam.16) sr(1) = "axis acceleration alarm 17 enabled" |