https://docs.duet3d.com/
Help

Revision to M957

David Crocker

***Parameters***
-* ***S"type"*** Event type name
-* ***Pnn*** or ***Pbb.nn*** Device number to which the event relates, optionally including the CAN address of the board concerned
-* ***Rnn*** Optional additional data about the event (unsigned integer)
+* ***E"type"*** Event type name
+* ***Dnn*** Device number to which the event relates
+* ***Bnn*** (optional) CAN address of the board that the event should appear to originate from
+* ***Pnn*** (optional) Additional data about the event (unsigned integer)
+* ***S"text"*** (optional) Short test string to be appended to the event message
This command is used to raise an event internally as if the event had actually occurred, and execute any related handler macro for that event. Its main use is to test event handler macros.
***Example***
-* M957 S"heaterFault" P1.1
+* M957 E"heaterFault" D1 B2
-Raise a heater fault on expansion board at CAN address 1, on heater 1
+Raise a heater fault from expansion board at CAN address 2 on heater 1
***Notes***

To undo the changes made by this version, click 'Revert Changes.' This will automatically restore the previous version of this guide.

Revert Changes