beautypg.com

Returns, Description – Rockwell Automation 1771-DMC_DMC1_DMC4_DXPS Control Coprocessor User Manual User Manual

Page 202

background image

API Library of Routines

Appendix B

DTL_RMW_W

B-71

Returns

Status

Symbolic Name

Meaning

0

DTL_SUCCESS

Operation successful

15

DTL_E_R_ONLY

Data item defined as READ only

16

DTL_E_INVTYPE

Data is invalid type for operation

19

DTL_E_NOINIT

DEFINE table not initialized

20

DTL_E_BADID

Definition ID out of range

24

DTL_E_FAIL

I/O completed with errors

31

DTL_E_TOOBIG

Data item greater than maximum allowed

32

DTL_E_NODEF

No such data item defined

41

DTL_E_CNVT

DataĆconversion error, I/O not attempted

157

CC_E_NOTCONNECT

PLC is not connected or offline

Description

Use the DTL_RMW_W function to perform a read/modify/write function
on a data item. The function reads a data value, modifies the data with the
AND mask and then with the OR mask, and writes the data back to the
programmable controller.

This synchronous function cannot be used on multiple-element data
definition. The element must be a word value.