46DC2M17 Driver/Controller Modulep (Polarity Inversion for Homing Switch and Limit Switches)Commandp(small “p”)Function Type SizePolarity Inversion of Home and Limit Switches Immediate, Program 2Example(Name) p ↵(Name) p s ↵Data 1nones switch/type (0-3)Data 2nonenoneResults valuesnoneThe “p” command is used to set the polarity of either the optional Home switch (used in the F (FindHome)), or the optional Limit switches (both set by the U (Set Port)).Polarity is adjusted so that the ACTIVE level of the HOME and LIMIT+/LIMIT– can be matched to the typeof switch used for these mechanical functions. Most Home and Limit switches are the simple normally-open variety, but some sensors or logic functions may close the circuit to ground (active) when themechanical actuation is not present, and ‘open’ the connection when it is present. A benefit of normally-closed switch use is increased protection – if a normally-open limit switch fails by electrical means(wiring, connections, etc.), the failure may be masked because the circuit is normally open, but anormally-closed switch circuit would fail early if a wiring or connector failure occurs; thus it wouldpresumably be ready when the Limit switch must actuate under some future ‘runaway’ condition.Home Switch Limit Switches Setting ‘s’Normally open Normally open 0Normally open Normally closed 1Normally closed Normally open 2Normally closed Normally closed 3If the ‘p’ command is issued without data in Immediate Mode, it will return the current settings of p(such as p0). This is especially useful in Multi-Axis mode where the X command is not available.Q (List Program)CommandQFunction Type SizeList Program Immediate N/AExample(Name) Q ↵(Name) Q a (m) ↵Data 1None implies address start is zeroa address (0-2560)Data 2nonem mode 0-1ResultListingListingThe “Q” Command is used to list programs stored in main memory, using the output format:Location Address : Command Char : Value 1 : : Value 2The values will be displayed only if applicable to the particular instruction type. In Single-Axis modetwenty instructions are displayed at a time. Use the Enter↵ key to list up to 20 more commands withoutpause. ESC ends the listing, and any other key causes the listing to ‘single-step’ display each line.This command is available in Immediate Single-Axis and Multi-Axis modes, but is not valid within aprogram. In Multi-Axis mode every line response is preceded by the axis name.If Data2 (m) is not provided or is“0”, the command will display code segments until a non-command isencountered. If m is “1” the command will list starting with the address specified by Data 1, andcontinue to list all programs found between the starting address and the end of memory (511).