X hits on this document

83 views

0 shares

0 downloads

0 comments

20 / 37

MODBUS Communications Driver - Functions

ArrayToWord: Assemble Array into Word

SYNOPSIS

void MB_ArrayToWord(const short Values[], short *Word);

Values

Input Array

Word

Output Value

Integer Array Integer (by reference)

DESCRIPTION

This function is the converse of MB_WordToArray. It packs the first sixteen elements of the source array Values into the destination integer Word. Element 0 of Values determines the status of Bit 0 of the destination integer.

MB_ArrayToWord checks each of the first 16 elements of the source array in turn. If the element is nonzero, that bit of the target integer will be set. If the element is zero, the target bit will be cleared.

Page 12

June 6, 1998

Revision 2.210

Document info
Document views83
Page views85
Page last viewedSat Dec 03 16:35:22 UTC 2016
Pages37
Paragraphs781
Words6172

Comments