omron — M{constant}={expression}

PMAC Product Guide M{constant} Function : Report the current M-Variable values Scope : Global Syntax : M{constant}[..{constant}] where {constant} is an integer from 0 to 1023 representing the number of the M-Variable. The optional second {constant} must be at least as great as the first {constant} -- it represents the number of the end of the range. This command causes PMAC to report the current value of the specified M-variable or range of M- variables. It does not cause PMAC to report the definition (address) of the M-Variables; that is done with the M{constant}-> command. Note:

If a motion program buffer (including a rotary buffer) is open when this command is sent to PMAC it will be entered into the buffer for later execution, to be interpreted as an M-code subroutine call. Examples: M0 ; Host asks for value 3548976 ; PMAC's response M165 5.75 M1..3 1 0 1 M{constant}={expression} Function : Assign value to M-variable(s). Scope : Global Syntax : M{constant}[..{constant}]={expression} where {constant} is an integer from 0 to 1023 representing the number of the M-Variable.

The optional second {constant} must be at least as great as the first {constant} -- it represents the number of the end of the range; {expression} contains the value to be given to the specified M-Variables. This command assigns the value on the right side of the equals sign to the specified M- Variables. It does not assign a definition (address) to the M-Variables; that is done with the M{constant}- >{definition} command. If a motion or PLC program buffer is open when this command is sent to PMAC, it will be entered into the buffer for later execution. Examples: M1=1 M9=M9 & $20 M102=-16384 M1..8=0 Online Commands 177