Cancel
Showing results for 
Search instead for 
Did you mean: 

CSE - TNC Probing

Valued Contributor
Valued Contributor

Getting the following error from the OOTB TNC CSE Driver:

 

Command Error! An assign command for the variable 'GV_strMeasuring Variable' couldn't be executed.

 

when executing the following:

 

25 TCH PROBE 0.0 REF. PLANE Q5 Z-

26 TCH PROBE 0.1 X1.1250 Y-1.5000 Z12.0000

 

Using Machine Configurator I find the following Metacode in TCH_PROBE_0 command:

 

TCH_PROBE_0.PNG

 

I have tried using SetVariable command without success Smiley Sad

 

SetVariable.PNG

 

Any help would be appreciated.

 

Also:

 

1) is TCH PROBE 1.X command supported by the HeidenhainTNC.CCF file?

2) any details about TCH_PROBE_{INT}?  Is this a specific command or can I use this to create my own TCH PROBE 1.X command?

3) has anyone already developed a TCH PROBE 1.X command that they can share?

7 REPLIES

Re: CSE - TNC Probing

Valued Contributor
Valued Contributor

I also modified CseTNC_Lex.py file to allow REF. PLANE instead of BEZUGSEBENE.

 

before:

 

def t_CYCLE_KEYWORD_119(t):

r'(BEZUGSEBENE)|(BEZUGSPUNKT[]POLAR)'

t.type = "CYCLE_KEYWORD"

return t)

 

after:

 

def t_CYCLE_KEYWORD_119(t):

r'(BEZUGSEBENE)|(BEZUGSPUNKT[]POLAR)|(REF.[]PLANE)'

t.type = "CYCLE_KEYWORD"

return t)

 

 

Re: CSE - TNC Probing

Siemens Phenom Siemens Phenom
Siemens Phenom
Hi Quaffe,

which line throws the assign command error? Both or the 25 or 26?
In general, a GV_xxx variable can only be assigned with an value with an AssignCommand. SetVariable can only be used for NC Variables.

Both GV_xxx varaibles are defined in MCF/CCF file?

I´m not really familar with TNC probing. In a first step I would check the used GV variables and then the given cycle parameters with an Assert.

Thomas

Re: CSE - TNC Probing

Valued Contributor
Valued Contributor

Hi Thomas,

Thank you for your reply.

Please note the CSE files are from the OOTB SIM08 CSE directory, no changes have been made.

 

(see attached zip file)

Line 25 throws the error, specifically the Q5 variable.

If I remove the AssignCommand section for the 'GV_strMeasuring Variable' then the AssignCommand section for the 'GV_strMeasuring Direction' throws the error.

Machine Configurator shows 'GV_strMeasuring Variable' source file is HeidenhainTNC.CCF.

Dissapointed the OOTB CSE files have errors Smiley Sad

Also:

1) is TCH PROBE 1.X command supported by the HeidenhainTNC.CCF file?
2) any details about TCH_PROBE_{INT}? Is this a specific command or can I use this to create my own TCH PROBE 1.X command?
3) has anyone already developed a TCH PROBE 1.X command that they can share?

Re: CSE - TNC Probing

Siemens Phenom Siemens Phenom
Siemens Phenom

Hi,

 

now I had more time for investigation.

 

Short answer/workaround is, to set the value for the GV_ variables with SetStateAttribute.

 

2018-02-09 13_44_08-XML Notepad - C__Users_feind_AppData_Local_Temp_re_mc_tp_1518178539181.xml_.png

I will not go into more details here, because this code is very old and not suggested as best practise.

 

Please call GTAC for PR. We have to fix that.

 

Sorry but I can´t say much about the TCH PROBE support in CSE. When I look into the code it seems that it is supported. In which extent and detail, unfortunatley I don´t know :-(

 

Hope you can live at first with the workaround to finish your project.

 

Thomas

 

 

 

 

Re: CSE - TNC Probing

Valued Contributor
Valued Contributor
Hi Thomas,

Thank you very much!

Have a good weekend!

Re: CSE - TNC Probing

Valued Contributor
Valued Contributor

Hi Thomas,

 

Sorry to report after modifying TCH_PROBE_0 as you suggested:

 

SetStateAttribute.PNG

 

I am now getting the following error:

 

"Command error! An if command couldn't be executed."

Re: CSE - TNC Probing

Valued Contributor
Valued Contributor

Hi Thomas,

 

Any updates?

Learn online





Solution Information