Rockwell Automation 1771-DMC_DMC1_DMC4_DXPS Control Coprocessor User Manual User Manual

Page 189

Advertising
background image

API Library of Routines

Appendix B

DTL_PUT_FLT

B-58

BASIC Example

Important: For BASIC, the data type for the float_val parameter
is REAL.

The BASIC function code is 13.

procedure COPRO

DIM status : INTEGER

DIM floatbuff(4) : BYTE

DIM float_val : REAL

.

.

.

rem * DTL_PUT_FLT

RUN AB_BAS (13, status, float_val, ADDR(floatbuff(1)))

.

.

.

References

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

Advertising