Forum
Write into PMC address
Quote from Paolo Tacchinardi on January 10, 2023, 6:55 amHi everybody,
I'm trying to write a value into a PMC address using pmc_wrpmcrng function. I'm following the example at this link https://www.inventcom.net/fanuc-focas-library/pmc/pmc_wrpmcrng.
The problem is that I am getting Focas1.EW_OK as result of the execution of the method, but i can't see the value on the machine. I'm trying, for now, to write the number one in the register 5108.
I'm going to attach a .txt file with the code (wrote in C#).
Thank's everyone for the help!
Paolo
Hi everybody,
I'm trying to write a value into a PMC address using pmc_wrpmcrng function. I'm following the example at this link https://www.inventcom.net/fanuc-focas-library/pmc/pmc_wrpmcrng.
The problem is that I am getting Focas1.EW_OK as result of the execution of the method, but i can't see the value on the machine. I'm trying, for now, to write the number one in the register 5108.
I'm going to attach a .txt file with the code (wrote in C#).
Thank's everyone for the help!
Paolo
Uploaded files:- You need to login to have access to uploads.
Quote from Versex on May 5, 2023, 8:33 pmHi Paolo,
Sorry I didn't reply. For some reason I haven't been getting emails notifying me that people have posted on the Forum. However, it looks like you are trying to write to a parameter, not a PMC address. A PMC address is a signal that is to/from the CNC and PMC, or a physical input/output and it is designated with a letter such as G, F, X, Y, R, E, etc...
I believe what you are looking for is the function cnc_wrparam. You can find that here... https://www.inventcom.net/fanuc-focas-library/ncdata/cnc_wrparam
Hi Paolo,
Sorry I didn't reply. For some reason I haven't been getting emails notifying me that people have posted on the Forum. However, it looks like you are trying to write to a parameter, not a PMC address. A PMC address is a signal that is to/from the CNC and PMC, or a physical input/output and it is designated with a letter such as G, F, X, Y, R, E, etc...
I believe what you are looking for is the function cnc_wrparam. You can find that here... https://www.inventcom.net/fanuc-focas-library/ncdata/cnc_wrparam