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

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 312
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 183
  %#"!
Appendix B

B-53
Gets a 4-digit BCD value from a byte array.
C Syntax
#include <copro.h>
unsigned DTL_GET_4BCD (in_buf,out_val)
unsigned char *in_buf;
unsigned *out_val;
Parameters
in_buf
Use to specify an array of two bytes that contain the 4-digit BCD value.
It is assumed the data was read from a data item with a control
coprocessor data type that is raw.
out_val
Contains the binary value.
Returns
Status Symbolic Name Meaning
  " !#!!#
  " $ !  
Description
Use the DTL_GET_4BCD to convert a programmable-controller
4-digit BCD value, stored in a 2-byte array, to a control-coprocessor
unsigned value.
C Example
unsigned status;
unsigned char thumbwheel_data;
unsigned thumbwheel_binary;
.
.
.
status = DTL_GET_4BCD (&thumbwheel_data,&thumbwheel_binary);
DTL_GET_4BCD
Przeglądanie stron 183
1 2 ... 179 180 181 182 183 184 185 186 187 188 189 ... 311 312

Komentarze do niniejszej Instrukcji

Brak uwag