Hello Guest it is April 18, 2024, 12:35:13 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.


Messages - maziar

Pages: 1
1
Mach4 General Discussion / Re: Mach4 support problem
« on: June 27, 2017, 12:29:10 PM »
Perhaps post the script and see if anyone else has a problem with it, and if so then there is normally an easy fix.

DazTheGas

http://www.machsupport.com/forum/index.php/topic,34132.msg236433.html#msg236433


But my problem is global about support of mach4

2
Mach4 General Discussion / Mach4 support problem
« on: June 27, 2017, 11:33:06 AM »
Hi
i have 2 license for Mach4 (Hobby and Industrial)
I had one problem in script. i want to know cause of my problem is ESS or plugin, Mach4 software or my script.
then i send my problem in three forum : 1. Mach forum 2. Warp9TD forum 3. Mach support
but in
1. Mach support after answer one mail after long time tell Mach software not have any problem and stop my ticket before solve my problem
2. Warp9TD after some answers tell ESS and plugin not have any problem and you can help Mach support

i want to know do you have same problem for give support ?

Best Regard

3
Mach4 General Discussion / Re: Mach4 Mcode script problem
« on: February 02, 2017, 09:43:38 AM »
Hi
log of Mach4 when i call my macro and change state of input port.


2017-02-02 19:05:46.846 - API: mcCntlMdiExecute() called. (m105)
2017-02-02 19:05:46.948 - Attempt transition from "Idle" on event "MDI Start" Controller.cpp:1811
2017-02-02 19:05:46.948 - Signal id 1127, (Jog Enabled), changed from HIGH to LOW.
2017-02-02 19:05:46.948 - S_IDLE_on_exit
2017-02-02 19:05:46.948 - ACTION_start_mdi
2017-02-02 19:05:46.948 - S_MDI_RUNNING_on_entry
2017-02-02 19:05:46.948 - S_MDI_RUNNING2_on_entry
2017-02-02 19:05:46.948 - Signal id 1114, (Gcode Running), changed from LOW to HIGH.
2017-02-02 19:05:46.958 - Signal id 1052, (Output #2), changed from LOW to HIGH.
2017-02-02 19:05:47.061 - Attempt transition from "MDI Running" on event "Stop" GcodeExec.cpp:1099
2017-02-02 19:05:47.061 - S_MDI_RUNNING2_on_exit
2017-02-02 19:05:47.061 - Signal id 1114, (Gcode Running), changed from HIGH to LOW.
2017-02-02 19:05:47.061 - S_MDI_RUNNING_on_exit
2017-02-02 19:05:47.061 - ACTION_stop
2017-02-02 19:05:47.081 - S_IDLE_on_entry
2017-02-02 19:05:56.739 - Signal id 1, (Input #0), changed from LOW to HIGH.
2017-02-02 19:06:00.398 - API: mcCntlMdiExecute() called. (m105)
2017-02-02 19:06:00.501 - Attempt transition from "Idle" on event "MDI Start" Controller.cpp:1811
2017-02-02 19:06:00.501 - S_IDLE_on_exit
2017-02-02 19:06:00.501 - ACTION_start_mdi
2017-02-02 19:06:00.501 - S_MDI_RUNNING_on_entry
2017-02-02 19:06:00.501 - S_MDI_RUNNING2_on_entry
2017-02-02 19:06:00.501 - Signal id 1114, (Gcode Running), changed from LOW to HIGH.
2017-02-02 19:06:00.520 - Signal id 1053, (Output #3), changed from LOW to HIGH.
2017-02-02 19:06:00.520 - Signal id 1052, (Output #2), changed from HIGH to LOW.

4
Mach4 General Discussion / Re: Mach4 Mcode script problem
« on: February 02, 2017, 07:19:30 AM »
Hi DazTheGas
i send my problem for you about running Macro. my problem fix with your help.
but now when i run this code in some state Mach4 hang and not work. detail of my work is :

i have 2 state :
1. input0's state is 1
 in this state when i cake Macro in MDI:
   1.1 output3 and output2 set
   1.2 start cycle hang and i can not run any command
   1.3 i stop run Macro but after that Mach4 not run any another Macro and i force to restart software

2. input0's state is 0
 in this state when i cake Macro in MDI:
   1.1 output3 and output2 set
   1.2 start cycle free and i can run any command
   1.3 i change state of input0 to 1 and run Macro m101, again
   1.4 output3 and output2 set
   1.5 start cycle hang and i can not run any command
   1.6 i stop run Macro but after that Mach4 not run any another Macro and i force to restart software

Please help me for fix this problem.

RGDS

5
Mach4 General Discussion / Mach4 Mcode script problem
« on: January 31, 2017, 02:06:42 AM »
Hi

I use Mach4 and ESS SmoothStepper .

I want read state of input port and according of state, output port state set.

I define Macro in Mach4 for this job. (m101)
 
BUT when i call my Macro in MDI and use start cycle button, my software hang in 2 state and i force restart it :

State 1 : input port state is 1 (occur hang)

State 2 : input port state is 0 (not hang) and after that i change state of it to 1 (occur hang)

My code :
Code: [Select]
function m101()
local inst = mc.mcGetInstance();
local inputi1 = mc.mcSignalGetHandle(inst,mc.ISIG_INPUT0);
local statei1 = mc.mcSignalGetState(inputi1);
local outputi3 = mc.mcSignalGetHandle(inst,mc.OSIG_OUTPUT3);
local outputi2 = mc.mcSignalGetHandle(inst,mc.OSIG_OUTPUT2);

 if (statei1 == 1) then
mc.mcSignalSetState(outputi3,true);
mc.mcSignalSetState(outputi2,false);
 else
mc.mcSignalSetState(outputi2,true);
mc.mcSignalSetState(outputi3,false);
 end
 
end
if (mc.mcInEditor() == 1) then
 m101()
end

Please help me for fix this problem.

6
Mach4 General Discussion / Screen Set update
« on: January 25, 2017, 08:25:10 AM »
Hi
i select default screen for my profile after that i update profile and save as it by new name.
when Mach4 upgrade, update default screens but how can i update my profile with new changes in default screen.

RGDS
Maziar

Pages: 1