Dtl_type, C syntax, Parameters – Rockwell Automation 1771-DMC_DMC1_DMC4_DXPS Control Coprocessor User Manual User Manual

Page 209: Returns, Description

Advertising
background image

API Library of Routines

Appendix B

DTL_TYPE

B-78

Gets the control-coprocessor data type of the named data.

C Syntax

#include <copro.h>

unsigned DTL_TYPE (name_id, type)

int name_id;
int *type;

Parameters

name_id

The handle returned by DTL_C_DEFINE when the data item
was defined.

type

The coded value denoting the control-coprocessor data type you
specified with DTL_C_DEFINE. On return from DTL_TYPE, the type
variable will have one of the following values:

Type:

¬

Is:

Type:

¬

Is:

DTL_TYP_RAW

no conversion

DTL_TYP_LONG

long (int)

DTL_TYP_BYTE

char

DTL_TYP_ULONG

unsigned

DTL_TYP_UBYTE

unsigned char

DTL_TYP_FLOAT

float

DTL_TYP_WORD

short

DTL_TYP_DOUBLE

double

DTL_TYP_UWORD

unsigned short

¬

These symbolicnames are in COPRO.H.

Returns

Status

Symbolic Name

Meaning

0

DTL_SUCCESS

Operation successful

19

DTL_E_NOINIT

Definition table not initialized

20

DTL_E_BADID

Definition ID out of range

32

DTL_E_NODEF

No such data item defined

Description

Use DTL_TYPE to get the code that indicates the data type you specified
when you defined the data entry with DTL_C_DEFINE.

DTL_TYPE

Advertising