pyLSV2
pyLSV2 copied to clipboard
How to locate Q parameters values
Hello everyone:
I am trying to locate a certain memory adress in the PLC of a Heidenhain TNC 640 but I can't. My main problem is that I cannot make sense of the order in wich the read_plc_memory() method sorts the data. For example:
I know I can find the PLC memory that I store in the machine as Q1620 using this line of code:
PN = con.read_plc_memory(first_element=250,mem_type=pyLSV2.lc.MemoryType.INPUT_WORD, number_of_elements=1)
The data I am looking for is stored in the Q107 in the machine. Obviously there are not enough elements in the INPUT_WORD MemoryType to go from Q1620 back to Q107. I guess it is stored in another MemoryType but I have not found it.
Maybe I could list all of the PLC values so i can search for it but I do not know how. Can you please give me any tip?
Thanks in advance