Skip to content

python interface #180

Closed
Closed

Description

@MZot
  1. When in MDI mode, linuxcnc.stat.settings[1] (Feed value) returns wrong value if in G95 mode after spindle is started:

-Issue G95 in MDI
-set feed with F word
-go to jog mode and back to MDI
-turn on spindle with M3 S

This is what I expected to happen:

  1. linuxcnc.stat.settings[1] should return the value that was set with F word

This is what happened instead:

  1. linuxcnc.stat.settings[1] returns value, that is 60 times greater than value that was set with F.

It worked properly before this:

Information about my hardware and software:

LinuxCNC 2.7.4
Gmoccapy GUI
metric mode

EDIT: typo

Activity

  1. self-assigned this
    on Oct 20, 2016
  2. SebKuzminsky commented on Oct 20, 2016

    @SebKuzminsky
    Collaborator

    I can replicate this problem with LinuxCNC 2.7.7.

    I started sim/axis/axis, F1 F2 Ctrl-Home, switch to the MDI tab, G21, G95,
    F10 (10 mm/rev).

    Then in another window I ran python, imported the linuxcnc module, instantiated linuxcnc.stat, polled, and got settings = (0.0, 10.0, 0.0). Back in Axis I switched to the Manual tab, jogged around a little, switched back to MDI and ran 'S1000 M3'. Back in python i polled linuxcnc.stat again and got settings = (0.0, 600.0, 1000.0). In Axis MDI tab, the 'Active G-Codes' also shows F600.

  3. SebKuzminsky commented on Oct 20, 2016

    @SebKuzminsky
    Collaborator

    Another data point: same version of linuxcnc, same (imperial) config, F1 F2 Ctrl-Home, no G21, G95, F10, jog around, then S100 makes the Active G-Codes F-word and linuxcnc.stat.settings[1] jump to an unexpected value.

  4. SebKuzminsky commented on Oct 20, 2016

    @SebKuzminsky
    Collaborator

    There are two bugs here. One is that the F-word changes surprisingly, and the other is that you have to issue an MDI command (after Aborting, or switching into and back out of Manual) before the wonky F-word is revealed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions