PMAC Product Guide M{constant}->D:{address} Function : Long fixed-point M-Variable definition Scope : Global Syntax : M{constant}[..{constant}]->D[:]{address} 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. {address} is an integer constant from 0 to 65,535 ($0 to $FFFF if specified in hex). This command causes PMAC to define the specified M-variable or range of M-Variables to a 48-bit double word (both X and Y memory; X more significant) at the specified location in PMAC’s address space.
The data is interpreted as a fixed-point signed (two’s complement) integer. The definition consists of the letter D , an optional colon ( : ), and the word address. Memory locations for which this format is useful are labeled with D: in the memory map. Examples: M161->D:$0028 ; Motor 1 desired position register specified in hex M161->D40 ; Motor 1 desired position register specified in decimal M162->D$2C ; Motor 1 actual position register specified in hex M{constant}->L:{address} Function : Long word floating-point M-Variable definition Scope : Global Syntax : M{constant}[..{constant}]->L[:]{address} 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. {address} is an integer constant from 0 to 65,535 ($0 to $FFFF if specified in hex). This command causes PMAC to define the specified M-Variable or range of M-Variables to point to a long word (48 bits) of data -- both X and Y memory -- at the specified location in PMAC’s address space. The data is interpreted as a floating-point value with PMAC’s own 48-bit floating-point format. The definition consists of the letter L , an optional colon ( : ), and the word address. Memory locations for which this format is useful are labeled with L: in the memory map.
Examples: M165->L:$081F M265->L$0820 M265->L2080 M{constant}->X/Y:{address} Function : Short word M-Variable definition Scope : Global Syntax : M{constant}[..{constant}]-> X[:]{address},{offset}[,{width}[,{format}]] M{constant}[..{constant}]-> Y[:]{address},{offset}[,{width}[,{format}]] where {constant} is an integer from 0 to 1023 representing the number of the M-Variable. Online Commands 179