frig_fire_c (ul_friglib)
status.i4.v = frig_fire_c(house.ch.d, name.ch.d, data.g.v
[,data_type.i4.v])
This routine fires the requested operation and returns the
resulting data.
house house name (HOUSE_NAME_LEN characters)
name pseudo name of object to fire
("OPER_xxx" -> fire an operation,
"ACTN_xxx" -> fire an action,
"TIMR_xxx" -> start a timer)
(Name format descriptions can be found under
the help topic frig_name_syntax.)
data returned data or setting data depending on object type
[data_type] data type of returned data
(FRIG_FLOAT -> floating point data,
FRIG_LONG -> int integer (default),
FRIG_SHORT -> short integer)
This function returns ACNET status values as follows:
DIO_OK success
DIO_BADARG invalid house or name passed
DIO_MEMFAIL memory allocation failure
This function requires the following include files:
cnsparam_h, ul_friglib_h:friguti_h, acnet_errors_h
Related functions:
frig_get_value_c, frig_get_c, frig_put_c
C usage:
static const char house[HOUSE_NAME_LEN+1] = "A1";
static const char name[] = "OPER_0";
int status;
int data;
int data_type = FRIG_LONG;
status = frig_fire_c(house,name,(void *) &data,data_type);