Hello Guest it is April 20, 2024, 02:46:11 AM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - qwertysimo

Pages: 1
1
Mach4 General Discussion / Canned cycle peck drilling stopped working
« on: July 28, 2023, 01:16:05 AM »
Hi, I have upgraded from Mach4 4.2.0.4721 / ESS 278.1 to Mach4 4.2.0.5165 / ESS 298 (ESS - Ethernet SmoothStepper motion controller).

After few successfull jobs I found a problem - canned cycle peck drilling stopped working. The same gcode that runs successfully on 4721/278.1 does not work on 5165/298 (neither on 5036/298). I stripped the gcode to minimum for readability, down to a single hole drilling:

Code: [Select]
G21 G90 G91.1 G64 G40
G0 Z20.0
G17
(M3 S16680)
G0 X10.0 Y10.0
G98
G83 X10.0 Y10.0 Z5.0 Q1.0 R12.0 F300.0
G80
G0 Z20.0
M5
M30

When Mach4 comes to G83 line, it makes peck drill from Z12.0 to Z11.0, retracts to Z12.0 and stops, does nothing, justs sits at Z12.0 forever.

After downgrading to 4721/278.1 the same code above runs as expected.

Please, any clue on what´s going on here?

Thanks

2
Mach4 General Discussion / M code macros do not run
« on: September 20, 2017, 05:21:50 PM »
Hi,

this might be a trivial issue but I cannot figure it out. Mach4 ignores all mcs files in my C:\Mach4Hobby\Profiles\QR\Macros\ (profile name is QR). Bottom of wxMach screen shows active profile QR.

I created m111.mcs for testing with this content:
Code: [Select]
function m111()
wx.wxMessageBox( "here" )
end

if (mc.mcInEditor() == 1) then
m111()
end
After running m111 from MDI nothing happens.


I copied m111.mcs to \Profiles\Mach4Mill\Macros, loaded Mach4Mill profile and the macro works. Mach4 upon startup also compiled mcs files in folder and corresponding mcc files appeared in the same folder. This does not happen with my QR profile.

Please, can you advice how to fix this? It looks like it is related only to my custom profile.


Thanks.


Boris


Best regards
Boris

3
Modbus / Mach4 and modbus - help needed
« on: September 21, 2016, 05:15:51 AM »
Hi,

please, can you help me with actual problem? While I can read (0x03) and write (0x06) holding register and I can read (0x01) coil, I cannot write coil (0x05). This is the code, a snippet from signal library definition, with some debug output:

Code: [Select]
[mc.OSIG_RUNNING_GCODE] = function( state )

    local hregTestCoil, rc = mc.mcRegGetHandle( inst, "modbus0/testCoil" );   -- THIS COMMAND IS FAILING
    mc.mcCntlSetLastError( inst, "testCoil handle: " .. tostring( hregTestCoil ) .. ", rc: " .. tostring( rc ) );

    local hregTestRegister, rc = mc.mcRegGetHandle( inst, "modbus0/testRegister" );
    mc.mcCntlSetLastError( inst, "testRegister handle: " .. tostring( hregTestRegister ) .. ", rc: " .. tostring( rc ) );

    if( state == 1) then
        mc.mcCntlSetLastError( inst, "signal changed to 1" );
        mc.mcRegSetValue( hregTestCoil, 1 );
        mc.mcRegSetValue( hregTestRegister, 101 );
    else
        mc.mcCntlSetLastError( inst, "signal changed to 0" );
        mc.mcRegSetValue( hregTestCoil, 0 );
        mc.mcRegSetValue( hregTestRegister, 100 );
    end
end,

Attempt to get handle for testCoil fails with return code of -27 which should mean MERROR_REG_NOT_FOUND. What is wrong?

Thanks.

4
Mach4 General Discussion / Jog problem, stuck key symptom
« on: September 04, 2016, 05:11:52 PM »
Hi,

I noticed that my actual machine ignores Page Down key press for "Z Jog-" function...

To troubleshoot (late night here), I loaded default Mach4Router profile, with Simulator and Keyboard Inputs plugins enabled.
When I display Keyboard Diagnostics window, I see (to my surprise) that Page Down key is pernamently lit green. (Arrow Right Shift as well.)
Page Down key is definitely not stuck and it works as expected outside Mach4!
What is interesting, when I press Page Down Shift or Page Down Ctrl, it is indicated correctly in diagnostics.
Restarting Mach4 neither PC did not help.

Can you advice please how to fix? Screen attached.

Thanks.


Pages: 1