cmcdonald Posted August 9, 2012 Share Posted August 9, 2012 Is there a way to get a axis definition into a P or M variable? I want to a plc to calculate a scale factor based on the axis definition. I have several machines that i want to update and they have different axis definitions (gear ratios) for motor 1 and motor 2. Thanks Chris M Link to comment Share on other sites More sharing options...
Ron22 Posted August 10, 2012 Share Posted August 10, 2012 From manual sugested M vars Motor #1 Axis Definition Registers M191->L:$0000CF ; #1 X/U/A/B/C-Axis scale factor (cts/unit) M192->L:$0000D0 ; #1 Y/V-Axis scale factor (cts/unit) M193->L:$0000D1 ; #1 Z/W-Axis scale factor (cts/unit) M194->L:$0000D2 ; #1 Axis offset (cts) Motor #2 Axis Definition Registers M291->L:$00014F ; #2 X/U/A/B/C-Axis scale factor (cts/unit) M292->L:$000150 ; #2 Y/V-Axis scale factor (cts/unit) M293->L:$000151 ; #2 Z/W-Axis scale factor (cts/unit) M294->L:$000152 ; #2 Axis offset (cts) Link to comment Share on other sites More sharing options...
JeffLowe Posted August 10, 2012 Share Posted August 10, 2012 From manual sugested M vars Motor #1 Axis Definition Registers M191->L:$0000CF ; #1 X/U/A/B/C-Axis scale factor (cts/unit) M192->L:$0000D0 ; #1 Y/V-Axis scale factor (cts/unit) M193->L:$0000D1 ; #1 Z/W-Axis scale factor (cts/unit) M194->L:$0000D2 ; #1 Axis offset (cts) Motor #2 Axis Definition Registers M291->L:$00014F ; #2 X/U/A/B/C-Axis scale factor (cts/unit) M292->L:$000150 ; #2 Y/V-Axis scale factor (cts/unit) M293->L:$000151 ; #2 Z/W-Axis scale factor (cts/unit) M294->L:$000152 ; #2 Axis offset (cts) I have found it useful to add these as we for adding and removing axes under program control. M190->Y:$0000C0,16,4,U ; #1 CS Type Register None=0 A=1, B=2 C=3 UVW =4 XYZ = 7, I=5 (Kinematic) M290->Y:$000140,16,4,U ; #2 CS Type Register None=0 A=1, B=2 C=3 UVW =4 XYZ = 7, I=5 (Kinematic) M390->Y:$0001C0,16,4,U ; #3 CS Type Register None=0 A=1, B=2 C=3 UVW =4 XYZ = 7, I=5 (Kinematic) M490->Y:$000240,16,4,U ; #4 CS Type Register None=0 A=1, B=2 C=3 UVW =4 XYZ = 7, I=5 (Kinematic) Link to comment Share on other sites More sharing options...
Recommended Posts