Rockwell Automation 1771-DMC_DMC1_DMC4_DXPS Control Coprocessor User Manual User Manual

Page 181

Advertising
background image

API Library of Routines

Appendix B

DTL_GET_WORD

B-50

BASIC Example

Important: For BASIC, the data type for the word_val parameter
is INTEGER.

The BASIC function code is 8.

procedure COPRO

DIM word_val : INTEGER

DIM getbuff(2) : BYTE

.

.

.

rem * DTL_GET_WORD

RUN AB_BAS (8,word_val,ADDR(getbuff(1)))

.

.

.

References

DTL_GET_FLT(); DTL_GET_3BCD();
DTL_GET_4BCD(); DTL_GET_WORD();
DTL_PUT_FLT(); DTL_PUT_3BCD(); DTL_PUT_4BCD();

Advertising