Hello Guest it is April 25, 2024, 12:54:12 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 - KatzYaakov

71
Mach4 General Discussion / Re: Read Register from a text file
« on: August 16, 2022, 01:37:10 AM »
first you have Api very powerfull can read write registry
but you can also add m function that will read or right text file or registry or run external app that do....
so you can do every thing but only one point i cant find solution its about feedback
for example when you load gcode mach generate it and this very dangerous point ,because if you command run before mach finish generate ,you will gen unexcepted behavior
can start run not from start ,can stack ....and its real problem ,and after so many test(please not advice read the return value because this answer mach engineer tell me and its not help at all)only solution for me now its delay according file size....yes very very poor solution



72
from my experience  , we also think alot about that issue  ,then we make the movement in 3 steps
first go fast to the old value + 50mm as safety ,and now become the BUT
so many times customer forget to put value before run the first time ,or make other mistake ,and almost each time accident you need reaplace the tool sensor and the tool also break ,so we do high point level and customer need wait some few second



73
i use absolute encoder with mach 4,its wasnt so easy because you not have simple way to set the current value you read from the encoder
i do all this by external software that read the absolute value from the drivers by Rs485 then update mach registry,then mach take this values and change the homing to " home in position" but put the value as home offset
most work perfect some minor problem
1. for some reason when use home on position cant set motor on reverse
2. for some reason some axes ( the a or b or c ) have some movmevt without any command
    this movment are not noise and are not big problem because its not mater of loose position , this small movement are command from mach
    so system not loose any position but for example each line you  give G0 x y z ... and a not command but move 0.2mm
    and after 100 0r 1000 movement you get software limit for axiss that you not even move it
 

74
Mach4 General Discussion / Re: Sending External Commands to Mach4
« on: August 15, 2022, 11:35:48 PM »
I use c# ,I prefer c# so I never try Lua
But also with c# you need use extern method because c# it's unmanaged ,one point very important you must deployed the application x86 not 64 bit ,Mach can't run 64 and if you use onther language then English also not for API

75
Mach4 General Discussion / Re: Sending External Commands to Mach4
« on: August 15, 2022, 01:25:52 PM »
can send comand ,but feedback its not so easy ,forexample to get status you can read registry or even write from gcode  with m function to text file
but forexample generate file(each time mach load ) i didnt find any way to get from mach signal when its finish regenate it and i can give the comand run

76
sure why not but we have several types so im not sure which one i sent
because we have servo ,manual ,hood by cilynder hood by servo....
this one is typical

77
i add one registry  that  always reset it on start program(we have M function on head that start program ,open vacuum,blink light on remote...ets)
then i have event  for stop press this event change registry value, so before any force output i always check that registry status
---about tool in spindle i agree if yours worker is professional ,but many times the worker near the machine not very professional
---stop while change tool its something happend to us many many times ,because when machine change tools many times user understand he made some mistake ,and instead of wait until finish tool change they press stop
---in some cases we add sensor that cheack if there tool on fork before unload  ,to avoid accident
good luck



78
Chad Byrd
i didnt pass all yours code details but as i see i didn't see you check if user press stop  while M6 run
as you know mach only stop movement in stop not stop I/O and i had so big hade ace with that....
onther point we always write in external text file the curent tool after change
because many reason can happened and mach will not save current tool ,so we always check in 2 different place if the tool id its same
last thing in yours M6 you give the tool name acording its position on magazine ,this will limit you  in case you have more tools then
on yours magazine ,for us we have many times more so we have external text file with the tool name according tool fork id
same if you have linear or servo magazine you bater have external file that you can reach and update tool
thanks
yaakov


79
About second opinion ,I advice you try with yours laptop work on simolation mode and you can see that you can control the direction ,if you put minus or put instead of your targen you can put 360-target then you will get opposite ,but this pp more complex

80
,both options can do
First it's more easy because you can do more then one circle without stop,this only real hard with second option ,but to decide which way you go cw or ccw you can do for example work with G54 ,not machine coordinate ,then you can decide reset in any position you want ( reset I mean -360 not 0) so this way I think actually you can do almost all ,maybe need add some m function in gcode that will reset the he home