Cc_display_ehex – Rockwell Automation 1771-DMC_DMC1_DMC4_DXPS Control Coprocessor User Manual User Manual

Page 144

Advertising
background image

API Library of Routines

Appendix B

CC_DISPLAY_EHEX

B-13

Displays an unsigned-integer value in hexadecimal on the ASCII display of
the serial expander module.

C Syntax

#include <copro.h>

unsigned CC_DISPLAY_EHEX (val)

unsigned val;

Parameters

val

Contains the unsigned-integer value to be displayed in hexadecimal on
the ASCII display. The display ranges from 0 to FFFF.

Returns

Status

Symbolic Name

Meaning

0

CC_SUCCESS

Operation successful

141

CC_E_CNVT

DataĆconversion error

159

CC_E_NOEXPANDER

Expander not present

Description

Use the CC_DISPLAY_EHEX function to display an unsigned-integer
value in 4-digit hexadecimal on the ASCII display. The value must be in
the range of 0 through FFFF.

Important: ASCII display remains unchanged until another display
function call is performed successfully.

Be consistent when using hexadecimal or decimal radix on the ASCII
display for ease of interpretation—i.e., some hexadecimal values can
appear to be decimal values.

CC_DISPLAY_EHEX

Advertising