• matthew@hierthinking.com

Forum

Please or Register to create posts and topics.

Write into PMC address

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.

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