Rockwell-automation 1771-DMC_DMC1_DMC4_DXPS Control Coprocessor User M Instrukcja Użytkownika Strona 190

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 312
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 189

Appendix B

B-59
Puts a word into raw format.
C Syntax
#include <copro.h>
unsigned DTL_PUT_WORD (in_val, out_buf)
unsigned char in_val;
unsigned *out_buf;
Parameters
in_val
The word value to be encoded into the byte array.
out_buf
Specifies an array of two bytes to receive the converted value.
Returns
Status Symbolic Name Meaning
  
Description
Use the DTL_PUT_WORD to convert a control-coprocessor unsigned to
a 2-byte array (in programmable-controller format) and place it in the
2-byte array.
C Example
unsigned status;
unsigned char untyped_data[50];
unsigned word_val;
.
.
.
status = DTL_PUT_WORD (word_val, &untyped_data[10]);
DTL_PUT_WORD
Przeglądanie stron 189
1 2 ... 185 186 187 188 189 190 191 192 193 194 195 ... 311 312

Komentarze do niniejszej Instrukcji

Brak uwag