SCHEDRMT(1)

๐ŸŒธ SCHEDRMT(1) ๐ŸŒธ

okay bestie, gather round, because this one is the telnet-based scheduler for LinuxCNC and it's lowkey iconic ๐Ÿ’–


โœจ NAME โœจ

schedrmt โ€” telnet based scheduler for LinuxCNC ๐ŸŽ€


โœจ SYNOPSIS โœจ

schedrmt

โœจ DESCRIPTION โœจ

So here's the vibe ๐Ÿ’… โ€” you run it like this:

schedrmt {-- --port <port number> --name <server name> --connectpw <password>
          --enablepw <password> --sessions <max sessions> --path <path>
          -ini <INI file>}

And now let's break down every single one of those flags, because we do NOT skip details in this house ๐Ÿซถ:

  • -- --port โ€” waits for socket connections (Telnet) on the specified socket. If you don't give a port, it just uses the default port 5007 ๐Ÿ’ซ
  • -- --name <server name> โ€” sets the server name to the specified name, for the Hello. ๐Ÿท๏ธ
  • -- --connectpw <password> โ€” sets the connection password to password. Default is EMC. ๐Ÿ”
  • -- --enablepw <password> โ€” sets the enable password to password. Default is EMCTOO. ๐Ÿ”“
  • -- --sessions <max sessions> โ€” sets the maximum number of simultaneous connections to max sessions. Default is no limit, which is -1. ๐Ÿ‘ฏ
  • -- --path โ€” sets the base path to program (G-Code) files. Default is "../../nc_files/". Make sure to include that final slash (/), bestie, it's not optional and she WILL notice. ๐Ÿšจ
  • -- -ini <INI file> โ€” uses the specified INI file instead of the default emc.ini. ๐Ÿ“„

There are six commands supported, and the set and get commands contain LinuxCNC-specific sub-commands based on the commands supported by emcsh โ€” except the "emc_" prefix is omitted. Commands and most parameters are not case-sensitive.

The exceptions (the things that ARE case-sensitive) are: passwords, file paths and text strings. Don't get cute with those. ๐Ÿ˜ญ

The supported commands are as follows, and yes we're doing all of them, no skips:

==> HELLO <==

Hello <password> <client> <version>

If a valid password was entered, the server will respond with

HELLO ACK <Server Name> <Server Version>

where server name and server version are looked up from the implementation. If an invalid password or any other syntax error occurs, then the server responds with:

HELLO NAK

==> Get <==

The get command includes one of the emc sub-commands, described below, and zero or more additional parameters. โœจ

==> Set <==

The set command includes one of the emc sub-commands, described below, and one or more additional parameters. โœจ

==> Quit <==

The quit command disconnects the associated socket connection. Bye bestie ๐Ÿ‘‹

==> Shutdown <==

The shutdown command tells EMC to shutdown before quitting the connection. This command may only be issued if the Hello has been successfully negotiated and the connection has control of the CNC (see the enable sub-command below). This command has no parameters. โš ๏ธ

==> Help <==

The help command will return help information in text format over the telnet connection. If no parameters are specified, it will itemize the available commands. If a command is specified, it will provide usage information for the specified command. Help will respond regardless of whether a "Hello" has been successfully negotiated. ๐Ÿ†˜


๐Ÿงš EMC sub-commands ๐Ÿงš

echo on | off

With get will return the current echo state; with set, sets the echo state. When echo is on, all commands will be echoed upon receipt. This state is local to each connection. ๐Ÿ“ฃ

verbose on | off

With get will return the current verbose state; with set, sets the verbose state. When verbose mode is on, all set commands return positive acknowledgement in the form SET <COMMAND> ACK. In addition, text error messages will be issued when in verbose mode. This state is local to each connection. ๐Ÿ—ฃ๏ธ

enable <pwd> | off

With get will return On or Off to indicate whether the current connection is enabled to perform control functions. With set and a valid password, the current connection is enabled for control functions. "OFF" may not be used as a password and disables control functions for this connection. ๐Ÿ”‘

config [TBD]

(yeah, TBD. she's still cooking.)

comm_mode ascii | binary

With get, will return the current communications mode. With set, will set the communications mode to the specified mode. The binary protocol is TBD. ๐Ÿ“ก

comm_prot <version no>

With get, returns the current protocol version used by the server; with set, sets the server to use the specified protocol version, provided it is lower than or equal to the highest version number supported by the server implementation. ๐Ÿ”ข

INIFILE

Returns the path and file name of the current configuration INI file. ๐Ÿ“

plat

Returns the platform for which this was compiled, e.g., linux_2_0_36. ๐Ÿ’ป

ini <var> <section>

Returns the string value of <var> in section <section>, in EMC_INIFILE. ๐Ÿ”Ž

debug {<new value>}

With get, returns the integer value of EMC_DEBUG, in the EMC. Note that it may not be true that the local EMC_DEBUG variable here (in emcsh and the GUIs that use it) is the same as the EMC_DEBUG value in the EMC. This can happen if the EMC is started from one INI file, and the GUI is started with another that has a different value for DEBUG.

With set, sends a command to the EMC to set the new debug level, and sets the EMC_DEBUG global here to the same value. This will make the two values the same, since they really ought to be the same. ๐Ÿ›

QMode <mode>

stop | run | pause | resume (Set only) | error (Get only)

With no arg, returns the program queue status as "stop", "run", "pause" or "error". Otherwise, sends a command to set the current mode to "stop", "run" or "pause". ๐ŸŽ›๏ธ

QStatus <Queue Size> <First Tag Id> <Last Tag Id> <Queue CRC>

Get only. Returns the number of programs in queue (Queue Size), the Tag id of the first program in the queue, the Tag id of the last program in the queue, and the CRC of all of the Tag Ids in the queue. The actual calculation of the CRC is not important โ€” the purpose is to be able to compare the current CRC with the previous CRC. If they differ, then there has been a change to the size or order of the programs in queue. ๐Ÿงฎ

AutoTagId <Start Id>

With get, returns the next autoincremented unique tag id to associate with a queue record. With set, resets auto tag generation to begin at the specified value. ๐Ÿท๏ธ

PgmAdd <priority> <tag id> <x> <y> <z> <zone> <file name> <feed override> <spindle override> <tool>

With set, adds a program to the queue with priority of the program, a unique tag identifying the program, the x, y and z offsets or zone for the origin of the program, the path + file name, the feed and spindle overrides to apply, and the default tool to use. If tag id is zero, the tag id will be generated automatically. If zone is zero, then the x, y, and z offsets will be used, otherwise zones 1 to 9 correspond to G54 to G59.3 respectively. โž•

PgmById <tag id>

[priority] [tag id] [x] [y] [z] [zone] [file name] [feed override] [spindle override] [tool]

With get, returns the queue entry matching the specified tag id, including the priority, tag id, x, y, and z coordinates, the zone, file name, feed and spindle overrides and the default tool. ๐Ÿ”

PgmByIndex <index>

[priority] [tag id] [x] [y] [z] [zone] [file name] [feed override] [spindle override] [tool]

With get, returns the queue entry matching the specified index into the queue, including the priority, tag id, x, y, and z coordinates, the zone, file name, feed and spindle overrides and the default tool. ๐Ÿ”

PgmAll

With get, performs effectively a PgmByIndex for every entry in the queue. Each result will be returned in the form: "PGMBYINDEX ..." with cr lf at the end of each record. ๐Ÿ“œ

PriorityById <tag id> <priority>

With get, returns the priority of the queue entry matching the specified tag. With set, changes the priority of the queue entry to the specified priority. โฌ†๏ธ

PriorityByIndex <tag id> <priority>

With get, returns the priority of the queue entry matching the specified index into the queue. With set, changes the priority of the queue entry to the specified priority. โฌ†๏ธ

DeleteById <tag id>

With set, deletes the queue entry matching the specified tag id. ๐Ÿ—‘๏ธ

DeleteByIndex <index>

With set, deletes the queue entry matching the specified index into the queue. ๐Ÿ—‘๏ธ

PollRate <rate>

With set, sets the rate at which the scheduler polls for information. The default is 1.0 or one second. With get, returns the current poll rate. โฑ๏ธ


๐ŸŒˆ SEE ALSO ๐ŸŒˆ

Much more information about LinuxCNC and HAL is available in the LinuxCNC and HAL User Manuals, found at /usr/share/doc/LinuxCNC/. ๐Ÿ“š


๐Ÿ’€ BUGS ๐Ÿ’€

None known at this time. (iconic behaviour, honestly โœจ)


๐Ÿ‘‘ AUTHOR ๐Ÿ‘‘

This man page written by andypugh, as part of the LinuxCNC project. ๐Ÿซถ


๐Ÿ™ˆ REPORTING BUGS ๐Ÿ™ˆ

Report bugs at https://github.com/LinuxCNC/linuxcnc/issues ๐Ÿž


Copyright ยฉ 2020 andypugh.

This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

fr fr, NO warranty. read that again. ๐Ÿ’…

and that's the whole page, bestie โ€” LinuxCNC Documentation, dated 2020-08-26, SCHEDRMT(1), slayed. now go schedule something ๐ŸŽ€โœจ