ISaGRAF. Version 3.4


C - 9


}

ISaGRAF .

      

, ST FBD . , . , ST :

唠 , , . ISaGRAF. - :

/* cast operation used to copy the value of a return parameter */

 

#define BOO_VALUE ((T_BOO *)value)

#define ANA_VALUE ((T_ANA *)value)

#define REAL_VALUE ((T_REAL *)value)

#define TMR_VALUE ((T_TMR *)value)

#define MSG_VALUE ((T_MSG *)value)

 

/* return parameters read service: called for each return parameter */

 

void FBREAD_xxx ( /* "xxx" is the name of the function block */

uint16 hinstance, /* logical number of the instance */

str_data *data, /* pointer to the instance data structure */

uint16 parno, /* logical number of read parameter */

void *value) /* buffer where to copy the value of the param */

{

switch (parno) {

case FBLPNO_XX: /* ... */ break;

case FBLPNO_YY: /* ... */ break;

/* .... */

}

}

hinstance - .