Cc_display_dec – Rockwell Automation 1771-DMC_DMC1_DMC4_DXPS Control Coprocessor User Manual User Manual
Page 142
API Library of Routines
Appendix B
CC_DISPLAY_DEC
B-11
Displays an integer value in decimal on the ASCII display of the serial
expander module.
C Syntax
#include <copro.h>
unsigned CC_DISPLAY_DEC (val)
int val;
Parameters
val
Contains the integer value to be displayed in decimal form on the ASCII
display. The display ranges from -999 to 9999.
Returns
Status
Symbolic Name
Meaning
0
CC_SUCCESS
Operationsuccessful
141
CC_E_CNVT
DataĆconversion error
159
CC_E_NOEXPANDER
Expander not present
Description
Use the CC_DISPLAY_DEC function to display an integer value in the
ASCII display. The value must be in the range -999 through 9999.
Important: ASCII display remains unchanged until another display
function call is performed successfully.
C Example
unsigned status;.
int value = 1234;
.
.
.
status = CC_DISPLAY_DEC (value);
.
.
.
CC_DISPLAY_DEC