Is it possible to read the current PCS (Product Coordinate Frame)

Hello,

is there any way to get the currently set PCS (product Coordinate System) of a running cnc-Program ?
Of course it is possible to save it from the CNC-Program to the PLC, but this is not a very nice implementation.

Thank you.
Best Regards,
Alexander Apostolidis

Hello,

I understood that you are looking for the Name of the Frame which has currently the Property “PCS” and is used for the current Path-Geometry.

Modified Value after usage of SET_PCS

I am currently not aware of a functionality which provides you this access, to real time Data.
To use a PathSynchronous PLC Variable in the CNC Program is the best Alternative-Solution i know to this.

Some hints to the use of AIL: The given Parameter to SET_PCS is a Frame-Constant not a String, so you do not have access there to a name, but only to a Number-Referencing the Frame.

Lets Wait for the ideas of other Members.

More Details: What i have Checked

The first way is to look if a ProcessParam would be available… but in this case we only have a ProcessConfig. → No Access to real time data.

Next Section to look at are the Monitoring Elements → No Access to this data.

Next Section to look at are the PLCopen Functionblocks for the AxisGroup → No Access to this data.

Greetings
Michael

You could give MC_BR_TransformPosition a try:

Try to use the Parameter.Component input to set the axesgroup and transform a zero position from MCS to PCS (or vice versa) to compute the distance between the two frames.

Let us know if it works pls.

4 Likes

Hello Roland,

Thanks for the Input, i only thought about the name, but yes you are right, the Offset Values can be aquired.

Results of a Test to show the Behaviour

Default Hierachy was used.

%001 (CncProgram)

G04 10   (offset = 0) 
G92 X=100
G04 10   (offset = -100)
SET_PCS[SystemFrame1]
G04 10   (offset = 0) 

N999 M30

1. Start, no offesets in Hierachy

image
image

2. Offset in G92 (ProductFrame)

image

3. Move Property PCS to SCS1 (SystemFrame1) , Value in G92 is still active in (Product Frame)

image
image

Greetings
Michael

Hello Roland,

thanks a lot for your idea. That is solving the problem.
As we know all offsets for all possible Coordinate systems (stored in a structure), we can search the correct Coordinatesystem by comparing the output of the FB and the Offsets in the Coordinatesystem-Array.

Thanks again,
Best Regards,
Alexander

Hello Michaels,

thanks for your ideas :).

Have a nice day,
Alexander

Hello again,

sadly this Function Block is only available from mappMotion 5.25.
We are currently locked with 5.21, so I can not use this Function Block.

any other ideas ?

Regards,
Alexander

It is also possible to get the offset by reading the current position (readcyclicposition-FB) in MCS and PCS and then calculate the offset on your own.

A little bit more effort needed here.

Regards,
Alexander

Some more information, as I had troubles implementing this (without MC_BR_TransformPosition FB):

  • In my case it was not possible to compare the Output of ReadCyclicPosition-FB, with different Input for CoordinateSystem, to get the currently set PCS.
  • It worked in most cases, but in some cases I had trouble and was not able to identify the PCS correctly. I dont know the reason.
  • As a result I switched from evaluating the current PCS to track the current PCS via pathsync-Var in out *.cnc-File. This variable is alwys refreshed when the command SET_PCS is executed. Initially I wanted to avoid this solution, but in the end this is the most robust solution.

Regards,
Alex

1 Like