Hello Guest it is April 26, 2024, 05:38:50 PM

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 - cnc-kursk

Pages: 1
1
Mach4 General Discussion / No way to switch soft limits from lua script?
« on: February 08, 2018, 07:01:00 AM »
Hi.

I use this script:
Code: [Select]
mc.mcSoftLimitSetState(inst, mc.Z_AXIS, MC_ON);
mc.mcSoftLimitSetState(inst, mc.Y_AXIS, MC_ON);
mc.mcSoftLimitSetState(inst, mc.X_AXIS, MC_ON);

1. SoftLimit not worked.
2. No Output signal:
Code: [Select]
[mc.OSIG_SOFTLIMITS_ON] = function (state)
    mc.mcCntlSetLastError(inst,"OSIG_SOFTLIMITS_ON " .. tostring(state));
    if( state == 1) then
       scr.SetProperty('tbtnSoftLimits', 'Button state', '0');
    else
       scr.SetProperty('tbtnSoftLimits', 'Button state', '1');
    end
end,

If I switch by button action, softlimits are worked and OSIG_SOFTLIMITS_ON triggered.

Possible need switch softlimits globally?
Can I switch softlimits by code?

M4 ver.4.2.0.3658


2
Mach4 General Discussion / jog path. exact stop. sim. wtf?!
« on: February 06, 2018, 05:01:00 AM »
Why path is crap?!
Only diagonal lines in program.
Any suggestions?





Pages: 1