CAM: master axis initialization

Hi,

I am doing a rework of project made in V2.7. I am using V4.12 for the new one. In the old project it was used variable “ma_ax” (master axis initialization) like:

e.g.: Axis1.para.automat.coupling.ma_ax = ACP10PAR_MA1_CYCLIC_POS; I found variable ma_ax only as ARNC0 data type (CAM Profile)

I would like to convert this to a new variable from MC_AUT_DATA_typ. Does “ma_ax” have same meaning as variable “Master” of MC_AUT_DATA_typ?

e.g.: Axis1.para.automat.aut_data.Master = ACP10PAR_MA1_CYCLIC_POS; ?

Reason why I am converting this is because at that time MC_AUT_DATA_typ didn’t exist yet, old project did not use not a single BR function block. Everything was done using ncActions..

One more question? Can I use ACP10/ARNC0 version 5.12.2 with ACOPOS 8V10xx, 8AC114.60 and 8AC120.60?

regards, Matjaz

You must use MasterParID

See also:

MC_AUTDATA_TYP data type

Thank you,

I found later the lines in the old program where it is written:
ptr->par_id = ACP10PAR_AUT_MA_AXIS; /* Parameter ID 503 → Master - Axis */
ptr->data_adr = (UDINT)&para_ptr->para.automat.coupling.ma_ax;

I checked help for MC_AUTDATA_TYP before I sent question but stil I wasn’t sure. Because there is written ParID “AUT_MA_AXIS” for both parameters (“Master” and “MasterParID”), where one is master axis reference and the other ParameterID of the master axis..

In the structure MC_AUTDATA_TYP the Master is of type UDINT and the MasterParID is of type UINT. ParIDs are of the type UINT.