Rockwell Automation 1771-DMC_DMC1_DMC4_DXPS Control Coprocessor User Manual User Manual
Page 208
Advertising
![background image](/manuals/579606/208/background.png)
API Library of Routines
Appendix B
DTL_SIZE
B-77
C Example
unsigned status;
unsigned size;
unsigned integer_file;
short *integer_data;
.
.
.
status = DTL_SIZE (integer_file, &size);
if (status != DTL_SUCCESS) return (status);
integer_data = (short *) malloc (size);
.
.
.
BASIC Example
The BASIC function code is 16.
procedure COPRO
DIM status : INTEGER
DIM n7_name : INTEGER
DIM dtlsize : INTEGER
.
.
.
rem * DTL_SIZE
RUN AB_BAS (16, status, n7_name, ADDR(dtlsize))
.
.
.
References
DTL_C_DEFINE();
Advertising