omron — M{constant}^={expression}

PMAC Product Guide M{constant}&={expression} Function : M-Variable and-equals assignment Type : Motion program (PROG and ROT) Syntax : M{constant}&={expression} where {constant} is an integer constant from 0 to 1023 representing the number of the M-Variable. {expression} is a mathematical expression representing the value to be and with this M-Variable. This command is equivalent to M{constant}=M{constant}&{expression} , except that the bit- by-bit AND and the assignment of the resulting value to the M-Variable do not happen until the start of the actual execution of the following motion command.

The expression itself is evaluated when the program line is encountered, as in a non-synchronous statement. Note: Remember that if using this M-Variable in further expressions before the next move in the program is started, the value assigned in this statement will not be received. Examples: M20&=$FE ; Mask out LSB of byte M20 M346&=2 ; Clear all bits except bit 1 M{constant}|={expression} Function : M Variable or-equals assignment Type : Motion program (PROG and ROT) Syntax :

M{constant}|={expression} where {constant} is an integer constant from 0 to 1023 representing the number of the M-Variable; {expression} is a mathematical expression representing the value to be OR with this M-Variable. This form is equivalent to M{constant}=M{constant}|{expression} , except that the bit-by-bit OR and the assignment of the resulting value to the M-Variable do not happen until the start of the following servo command. The expression itself is evaluated when the program line is encountered, as in a non-synchronous statement. Note:

Remember that if using this M-Variable in further expressions before the next move in the program is started, the value assigned in this statement will not be received. Examples: M20|=$01 ; Set low bit of byte M20, leave other bits M875|=$FF00 ; Set high byte, leaving low byte as is M{constant}^={expression} Function : M-Variable XOR equals assignment Type : Motion program (PROG and ROT) Syntax : M{data}^={expression} where {constant} is an integer constant from 0 to 1023 representing the number of the M-Variable. Buffer Commands 225