I am working on a project using Sinumerik 840D and I need to add the ability to parse FS1 as an address. My plan was to modify the current files for the 840D, but I cannot find them. In the installed_machines folder I can only find files for Fanuc, Okuma, and TNC. Do the 840D files exist somewhere in the install or as a download?
Solved! Go to Solution.
I am not sure how to implement this. I need to parse the FS1 while also defining the value. So the G-code will have something like "FS1=600", which should set the milling spindle speed to 600 for the milling axis FS1.
I can call a subprogram with just "FS1" and put an unused M or G code in there like you said. But if I call the "FS1=600" I get the error "left side of an assignment is not defined".
If I then create the variable FS1 and run the same code, I can see that the variable gets set to 600, but my subprogram doesn't get called. Any thoughts here?
ok in this case i suggest to use the Sinumerik command DEFINE xx AS yy. This is a regular Sinumerik command to define alias names for any axis string.
In this case it could be:
DEFINE FS1 AS S
I recommend to add the DEFINE to the machine ini file. So that the alias for FS1 is available with the initialization of the simulation.