Hello, my friends!
Now I can show my last project, CSE-simulation for 3 channels mill-turn EMCO, see a video.
All cnc-programms - from real CNC.
But I have few questions:
1. On real CNC I must upload all 3 independent files for each channel, all tougether. But for start I must select ONLY ONE file, for 1st channel, for example. And for 2nd and 3rd channels from channel 1 will be call like this:
Question is - how I can simulate a same call ? Can I start from channel #1 nc-programm "TEST1_ch2" for channel #2?
2. How I can organize "cycle" after M30? I want to rewind my programms for all channels and start all from first lines?
Solved! Go to Solution.
One mistic problem for this project:
Working ch1 and ch2, both - turning.
main spindle for ch1 - C1
main spindle for ch2 - C2
M05 in ch2! ( if getChannelName()=="2" GMe_SetSpindleMode for C2 5)
I see on axes table C2 - stopped. C1 - rotating, cw, 2000 speed
But next motion in ch1 with error message " Error in IPW module, see syslog" This message will be if you turning and spindle unettempted STOP.
I dont understand....
1. Thanks for sharing your project. Really nice work and good presentation! *thumbsup* *like* ;-) Good to so such impressive work and the capabilities with CSE in NX CAM.
2.1. CallRemoteSubProg is the key. I have not tested it but it should work. With that command you can call a subrprog in the given remote channel. NOTE: The given channel must be inactive. This means either the channel has stopped on M30
or the channel has no program assigned.
2.2. Instead of calling SetEndSubprog with M30 you can fire a Label call and jump back to the end of the program. So to say you´re in a permanent loop until you press Reset. The Label call itself must be implemented with the Parser (Python). In XML it´s not possible to do the implementation.
2.3. please send me the syslog
@thomasfeind - Thanks for your assistance, I try to use CallRemoteSubProg - I use List parameter, and for channel name and for sub name I use STRING(List) and List - no results, I have a unusual message -
Did you look in the syslog to see if there is info about where it is looking for 2nd channel program?
Production: NX10.0.3.5 MP16/TC11.2
I'd rather be e-steamed than e-diseaseled
sorry for my late response. I didn´t found time to reproduce this issue on my computer.
Please chekc the following:
1.) Assign emtpy programs to channel 2 and 3 and execute then your INIT lines
2.) Assign programs with one comment line per channel to channel 2 and 3 execute then your INIT lines
3.) Assign programs with M30 inside to channel 2 and 3 execute then your INIT lines
Unfortunately I´m not very familar with the command callRemoteSubProg. ISV/CSE needs a call stack for each channel to handle them. So maybe I have to revise my first suggestion that the channels must be empty when executing the callRemoteSubprog.
Hope that helps and looking forward to your feedback