@@ -404,7 +404,11 @@ of a particular axis:
404
404
import linuxcnc
405
405
s = linuxcnc.stat()
406
406
s.poll()
407
- print "Joint 1 homed: ", s.joint[1]["homed"]
407
+ # for trivkins where the axis indices 0,1,2 correspond to x,y,z:
408
+ xidx=0;yidx=1;zidx=2
409
+ print("Axis x max_position_limit: ", s.axis[xidx]["max_position_limit"])
410
+ print("Axis y max_position_limit: ", s.axis[yidx]["max_position_limit"])
411
+ print("Axis z max_position_limit: ", s.axis[zidx]["max_position_limit"])
408
412
---------------------------------------------------------------------
409
413
410
414
Note that many properties that were formerly in the `axis` dictionary are
@@ -413,11 +417,11 @@ these items (such as backlash) are not the properties of an axis.
413
417
414
418
*max_position_limit*:: '(returns float)' -
415
419
maximum limit (soft limit) for axis motion, in machine units.configuration
416
- parameter, reflects [JOINT_n ]MAX_LIMIT.
420
+ parameter, reflects [AXIS_n ]MAX_LIMIT.
417
421
418
422
*min_position_limit*:: '(returns float)' -
419
423
minimum limit (soft limit) for axis motion, in machine units.configuration
420
- parameter, reflects [JOINT_n ]MIN_LIMIT.
424
+ parameter, reflects [AXIS_n ]MIN_LIMIT.
421
425
422
426
*velocity*:: '(returns float)' -
423
427
current velocity.
@@ -427,7 +431,7 @@ current velocity.
427
431
For each joint, the following dictionary keys are available:
428
432
429
433
*backlash*:: '(returns float)' -
430
- Backlash in machine units. configuration parameter, reflects [JOINT_n]BACKLASH.
434
+ Backlash configuration parameter, reflects [JOINT_n]BACKLASH (dimensionless)
431
435
432
436
*enabled*:: '(returns integer)' -
433
437
non-zero means enabled.
@@ -466,7 +470,7 @@ parameter, reflects [JOINT_n]FERROR.
466
470
non-zero means max hard limit exceeded.
467
471
468
472
*max_position_limit*:: '(returns float)' -
469
- maximum limit (soft limit) for joint motion, in machine units . configuration
473
+ maximum limit (soft limit) for joint motion (dimensionless) . configuration
470
474
parameter, reflects [JOINT_n]MAX_LIMIT.
471
475
472
476
*max_soft_limit*::
@@ -479,7 +483,7 @@ configuration parameter, reflects [JOINT_n]MIN_FERROR.
479
483
non-zero means min hard limit exceeded.
480
484
481
485
*min_position_limit*:: '(returns float)' -
482
- minimum limit (soft limit) for joint motion, in machine units. configuration
486
+ minimum limit (soft limit) for joint motion (dimensionless) configuration
483
487
parameter, reflects [JOINT_n]MIN_LIMIT.
484
488
485
489
*min_soft_limit*:: '(returns integer)' -
@@ -491,11 +495,6 @@ commanded output position.
491
495
*override_limits*:: '(returns integer)' -
492
496
non-zero means limits are overridden.
493
497
494
- *units*:: '(returns float)' -
495
- joint units per mm, or per degree for angular joints. +
496
- (joint units are the same as machine units, unless set otherwise
497
- by the configuration parameter [JOINT_n]UNITS)
498
-
499
498
*velocity*:: '(returns float)' -
500
499
current velocity.
501
500
0 commit comments