Skip to content

How to add to recipe

1. First create xvars

  • create attribute

  • write to RegisterX new attribute

  • you be must write to regixterx "guiw_ownw_iniNN"

RegisterX example

m_xnInputMaterial .Register( *m_poXAggregation, "PP_ReadInputMaterial", CrXVar::GUIW_OWNW_ININN, 0, 1, 1, 3 );

RegisterX example

if you already have created xvar, make sure to modify its property in RegisterX to CrXVar::GUIW_OWNW_ININN

m_xnInputMaterial .Register( *m_poXAggregation, "PP_ReadInputMaterial", CrXVar::GUIW_OWNW_ININN, 0, 1, 1, 3 );

  • after open self transition "SetPointerToProcessParams" in "Top State" and add new line

SetPointerToProcessParams example

m_oProcessParams = *rtdata;

m_oProcessParams.Register("Unwinder", 1, "PP_ReadInputMaterial", "1 - Roller | 2 - Msp | 3 - Laminator", &m_xnInputMaterial ); //1 is station id

Legends SetPointerToProcessParams

  • copy attribute and dont change: m_oProcessParams.Register(...)

Elements:

  • Unwinder is group name

  • 1 is station

  • Copy name from RegisterX PP_... or You give new name

  • Unit(€, cm, mm, %, ...) or Description

  • Last is address attribute(XVAR)

Example Picture:

Screenshot


Continue recipes in GUI click here.