MDRO(1) | HAL User's Manual | MDRO(1) |
mdro - manual only Digital Read Out (DRO)
mdro [-v] [-p point_size] [-m] [-l file.var] [axes]
mdro is a manual only DRO providing functionality similar to a traditional manual DRO. It is most useful for manual machines converted to CNC. It allows the user to manually control the machine while continuing to use the DRO scales on the axes. The GUI can be sized to match the user's screen. It is mouse-only and touchscreen friendly.
These command line options are normally used when mdro is started in a HAL file. See below for the corresponding .ini file options.
The top of the screen includes a row for each axis specified in axes. Data in these rows are derived from signals on the mdro.axis.n pins that are instantiated when mdro is started. Each row includes buttons that allow the value to be be zeroed, to be halved or a new value to be entered. There is also a button that enables the index zero process for that axis.
The screen includes buttons that allow the selection of one of four different coordinate systems. The machine coordinate system can also be selected though it cannot be changed.
The screen includes a keypad that can be used with a mouse or a touch screen to enter coordinate data.
Finally, buttons on the screen allow the selection of inch or mm data display.
mdro is normally started from the [DISPLAY] entry in a dedicated mdro.ini file. The INI file and the associated HAL files should include the pins and signals that support the DRO scales. The HAL connections to mdro must be done in the POSTGUI_HALFILE referenced in the INI file.
Using an example of "XYZA" for an axes argument, these pins will be created when mdro starts:
mdro.axis.0
mdro.axis.1
mdro.axis.2
mdro.axis.3
mdro.index-enable.0
mdro.index-enable.1
mdro.index-enable.2
mdro.index-enable.3
In this example, the first row will be labeled "X" and will show the data associated with pin mdro.axis.0. In many configurations, mdro.axis.0 can be connected directly to x-pos-fb in the POSTGUI-HAL file. The index pins should be connected to the corresponding index-enable pins from the DRO.
mdro can also be started via a "loadusr" command in a HAL file for a trial. Here's an example of a sim setup:
loadusr -W mdro -l sim.var XYZ
net x-pos-fb => mdro.axis.0
net y-pos-fb => mdro.axis.1
net z-pos-fb => mdro.axis.2
Robert Bond
Copyright © 2022 Robert Bond
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
2022-04-01 | LinuxCNC Documentation |