Hello Guest it is March 01, 2021, 12:23:27 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.


Messages - CJEls

Pages: « 1 2 3 4 5 6 7 »
11
General Mach Discussion / Re: Modbus pcb from cnc4pc
« on: August 19, 2008, 03:13:51 AM »
All

I tried to use Mach 3 turn version 2.63 and 3.041 but no joy. the other thing that bothers me is that if I use the old stile modbus I can get the board working.Any Suggestions.

CJ

12
General Mach Discussion / Modbus pcb from cnc4pc
« on: August 19, 2008, 02:55:37 AM »
Hi All

I need some help on setting up this board.I have enabled the modbus and serial plugin in the pins and ports setup.I can see the inputs and output when testing the modbus .I can not get mach to see the inputs If I ase a brain to look for the inputs .I want to switch the coolant on and off. I wrote a brain using modbus input1 serai plug in,then use a no operation lobe doing a button press to switch the coolant on and off.What am I doing wrong.

CJ

13
General Mach Discussion / Re: Have you ever seen Mach doing this
« on: August 18, 2008, 02:58:52 AM »
Hallo Hood

The only probleme I have is that I can get the old style mod bus working with cnc4pc board.The new style where you enable the plugin does not work.But if you check  that the board is working In modbus test you can see all the inputs and outputs, when writing a brain to say cycle start with modbus the input wil be modbus input 0 on port1. It will not work.You can see that the modbus test bit is coming on when you press the button but thats it.Am I missing some thing in the setup of the modbus.

CJ

14
General Mach Discussion / Re: Have you ever seen Mach doing this
« on: August 13, 2008, 01:29:14 PM »
Hi hood

At Last all the problems solved.Now I can carry on and finish this toy lathe.Thank you for all the help it helps to talk to some one it gives you brain time to switch off and reset.

CJ

15
General Mach Discussion / Re: Have you ever seen Mach doing this
« on: August 13, 2008, 12:29:42 PM »
Hi Hood

got it sorted and it is working like a charm now it is the modbus that I must sort out.I can talk to the board if I run Xp cominications.I can set the port .baudrate but with mach it does not want to talk.

CJ

16
General Mach Discussion / Re: Have you ever seen Mach doing this
« on: August 13, 2008, 12:11:56 AM »
Hi Hood

The turret turnsd to the correct posistion when iI run the code in Vb.The output4 does work.

CJ

17
General Mach Discussion / Re: Have you ever seen Mach doing this
« on: August 12, 2008, 04:20:04 PM »
Hi

It seems that Mach is not seeing the m6 command.

Cj

18
General Mach Discussion / Re: Have you ever seen Mach doing this
« on: August 12, 2008, 04:17:01 PM »
Hood

This is the code I hope some body can help.
 
   Old_tool = GetCurrentTool()
   New_Tool = GetSelectedTool()
   
 
   

If GetSelectedTool <1 Then   'If tool called is less than 1
MsgBox("Tool Out Of Range")  'show message
End                          'End macro
End If

If GetSelectedTool >8 Then  'If selected tool is greater than 12
MsgBox("Tool Out Of Range")  'Show message
End                          'End macro
End If

If GetselectedTool = GetCurrentTool Then  'If selected tool is the same as current tool then end macro
End
End If

 
 If GetSelectedTool=1  Then               'If selected tool = 1
 Do                                       'Start loop
 Call ActivateSignal(output4)             'start turret indexing
 If IsActive(Input1) And Not IsActive(Input2) And Not IsActive(Input3) And Not IsActive(Input4)  Then Exit Do             'Correct tool in position signal from PLC and exit loop
 Loop                                     'Continue loop if above signal is not present
 End If
 Call DeActivateSignal(OutPut4)            'Stops turret Indexing
 
 
If GetSelectedTool=2  Then               
 Do                                       
 Call ActivateSignal(output4)             
 If IsActive(Input1) And  IsActive(Input2) And Not IsActive(Input3) And Not IsActive(Input4)  Then Exit Do             
 Loop                                     
 End If
 Call DeActivateSignal(OutPut4)
 
 
                         
If GetSelectedTool=3  Then               
 Do                                       
 Call ActivateSignal(output4)             
 If Not IsActive(Input1) And  IsActive(Input2) And Not IsActive(Input3) And Not IsActive(Input4)  Then Exit Do             
 Loop                                     
 End If
 Call DeActivateSignal(OutPut4)
 
 
 
 
If GetSelectedTool=4  Then               
 Do                                       
 Call ActivateSignal(output4)             
 If Not IsActive(Input1) And  IsActive(Input2) And  IsActive(Input3) And Not IsActive(Input4)  Then Exit Do             
 Loop                                     
 End If
 Call DeActivateSignal(OutPut4)
 
 
 
If GetSelectedTool=5  Then               
 Do                                       
 Call ActivateSignal(output4)             
 If Not IsActive(Input1) And Not IsActive(Input2) And  IsActive(Input3) And Not IsActive(Input4)  Then Exit Do             
 Loop                                     
 End If
 Call DeActivateSignal(OutPut4)
 
 
 
 
If GetSelectedTool=6  Then               
 Do                                       
 Call ActivateSignal(output4)             
 If Not IsActive(Input1) And Not IsActive(Input2) And  IsActive(Input3) And  IsActive(Input4)  Then Exit Do             
 Loop                                     
 End If
 Call DeActivateSignal(OutPut4)
 
 
 
If GetSelectedTool=7  Then               
 Do                                       
 Call ActivateSignal(output4)             
 If Not IsActive(Input1) And Not IsActive(Input2) And Not IsActive(Input3) And  IsActive(Input4)  Then Exit Do             
 Loop                                     
 End If
 Call DeActivateSignal(OutPut4)
 
 
 
If GetSelectedTool=8  Then               
 Do                                       
 Call ActivateSignal(output4)             
 If IsActive(Input1) And Not IsActive(Input2) And Not IsActive(Input3) And  IsActive(Input4)  Then Exit Do             
 Loop                                     
 End If
 Call DeActivateSignal(OutPut4)

CJ

19
General Mach Discussion / Re: Have you ever seen Mach doing this
« on: August 12, 2008, 03:53:08 PM »
Hi Hood

Yes it work with the hard drive that failed.

CJ

20
General Mach Discussion / Have you ever seen Mach doing this
« on: August 12, 2008, 03:30:46 PM »
Hi All
 
I have a weird problem with mach turn.When I call a tool the turret does not turn bur then I open vb editor and run the m6 script and then the turret will turn to the tool I called. I did en able tool Auto change in the general setup page .Any takers on this one.

Cj

Pages: « 1 2 3 4 5 6 7 »