-

M_Code Struct

Compass Processor activates the corresponding M_Code array index's Active bit (M_Code[0].Active) after processing an M-command. To properly handle a M Code in the PLC, the corresponding Active bit must be reset.

NameData TypeDescription
Active BOOL NC sets to 1 when active. PLC resets to 0 when acknowledged
M_Value LREAL Active M-code number
S_Value LREAL S argument value from the M-code line
T_Value LREAL T argument value from the M-code line
H_Value LREAL H argument value from the M-code line
P_Value LREAL P argument value from the M-code line

 


This is the latest version of Compass Online help and the content may refer to features not available in previously released versions of Compass.

Copyright © 2026 YASKAWA America, Inc.