On Wednesday 06 October 2021 03:29:11 andy pugh wrote: > On Wed, 6 Oct 2021 at 05:28, Gene Heskett <ghesk...@shentel.net> wrote: > > I also put a print statement in .axisrc in an attempt to discover > > what vars looks like > > print( dir( vars )) ? very noisy. Every 20 ms. And I'll put a linefeed after every comma. ['__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', 'active_codes', 'block_delete', 'brake', 'coord_type', 'display_type', 'dro_large_font', 'emcini', 'exec_state', 'feedrate', 'flood', 'grid_size', 'has_editor', 'has_ladder', 'highlight_line', 'interp_pause', 'interp_state', 'ja_rbutton', 'jog_aspeed', 'jog_speed', 'kinematics_type', 'linuxcnctop_command', 'machine', 'max_aspeed', 'max_maxvel', 'max_queued_mdi_commands', 'max_speed', 'maxvel_speed', 'mdi_command', 'metric', 'mist', 'motion_mode', 'on_any_limit', 'optional_stop', 'override_limits', 'program_alpha', 'queued_mdi_commands', 'rapidrate', 'rotate_mode', 'running_line', 'show_distance_to_go', 'show_extents', 'show_live_plot', 'show_machine_limits', 'show_machine_speed', 'show_offsets', 'show_program', 'show_pyvcppanel', 'show_rapids', 'show_tool', 'spindledir', 'spindlerate', 'task_mode', 'task_paused', 'task_state', 'taskfile', 'teleop_mode', 'tool', 'touch_off_system', 'trajcoordinates', 'tto_g11', 'view_type']
Which indeed shows that "axis_letter" does not exist in vars, as the error msg says. What other listing might it located in? "index" as suggested by nearby code, is not defined. ".index" is a syntax error at the dot. Can this statement be made to work?: if "XYZABCUVW".index(axis_letter)!=0: Thanks. Cheers, Gene Heskett. -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author, 1940) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis Genes Web page <http://geneslinuxbox.net:6309/gene> _______________________________________________ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers