Validity: Rule, Task
This variable contains the mask of the axes that have already done the zero cycle.
Syntax |
I32 c0_done |
---|---|
Attributes |
Bit-accessible |
If the bit status of a given axis is set to 1, it indicates that that axis has already performed the zero cycle.
The status of the bit is imposed by RTE if the appropriate function mva_zc is used to perform zero cycles or RPE zero cycles are used, or it is reset by RTE when a transducer alarm(code 10) is encountered.
At switch on, the bits of this variable are set to zero by RTE unless retentive transducer management is enabled.
NOTE: In the case of zero cycle management by a user RULE the writing of this variable is the responsibility of the user.
NOTE: In case warm_rst.8 is enabled, C0_DONE reset handling caused by alarms is disabled.
Example
; I set bit 0 of the variable c0_done to 1 ; to indicate that axis 1 has completed the zero cycle c0_done.0 = 1 |
Example
; If bit 31 of the variable c0_done is equal to 1 ; it means that axis 32 has completed the cycle of zero ; then in the string register sr(1) is stored ; the string "axis 32 is already zeroed" if(c0_done.31) sr(1)="axis 32 is already zeroed" ; otherwise in the string sr(1) is stored ; the string "axis 32 is not zeroed" else sr(1)="axis 32 is not zeroed" endif |