logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

message - Display a message

Author

       Les Newell

Description

       Allows HAL pins to trigger a message. Example hal commands:
        loadrt  message names=oillow,oilpressure,inverterfail messages="Slideway oil low,No oil pressure,Spindle
       inverter fault"
        addf oillow servo-thread
        addf oilpressure servo-thread
        addf inverterfail servo-thread

        setp oillow.edge 0 #this pin should be active low
        net no-oil classicladder.0.out-21 oillow.trigger
        net no-pressure classicladder.0.out-22 oilpressure.trigger
        net no-inverter classicladder.0.out-23 inverterfail.trigger

       When any pin goes active, the corresponding message will be displayed.

Functions

message.N
              Display a message

License

       GPL v2

LinuxCNC Documentation                             2025-06-19                                         MESSAGE(9)

Name

       message - Display a message

Parameters

message.N.edge bit rw (default: TRUE)
              Selects the desired edge: FALSE means falling, TRUE means rising

Pins

message.N.trigger bit in (default: FALSE)
              signal that triggers the message

       message.N.force bit in (default: FALSE)
              A FALSE->TRUE transition forces the message to be displayed again if the trigger is active

Synopsis

loadrtmessage[count=N|names=name1[,name2...]][messages=N]messages
                  The  messages  to  display.  These  should  be listed, comma-delimited, inside a single set of
                  quotes. See the "Description" section for an example.  If there are more messages than "count"
                  or "names" then the excess will be ignored. If  there  are  fewer  messages  than  "count"  or
                  "names" then an error will be raised and the component will not load.

See Also