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.
| Name | Data Type | Description |
|---|---|---|
| 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 |