Validity: Rule, Task
This predefined variable identifies the speed alarm enable mask (code 16) for single axes.
Syntax |
I32 spam |
---|---|
Attributes |
Bit-accessible |
If enabled, RTE performs the following operations:
•Imposing iv has limitation to the value of the max_spe parameter (limitation that is reported in splm)
•Imposing ip or ia has alarm generation if the speed is higher than the parameter
•Limiting velocities to the parameter value in all moves where axis is declared
spam.0 -> relative bit axis(1)
spam.1 -> relative bit axis(2)
..
spam.31 -> relative bit axis(32)
Example
; we enable the alarm on the first axis spam.0 = 1 ; we add axes 9 to 14 spam = spam r_or 0x3F00 ; if bit 16 of the variable spam is equal to 1 ; then in sr(1) will be stored the string ; "axis 17 speed alarm enabled" _if(spam.16) sr(1) = "axis 17 speed alarm enabled" |