Rockwell-automation 1746-NR4 SLC RTD/Resistance Input Module User Manu Instrukcja Użytkownika Strona 110

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
Przeglądanie stron 109
Publication 1746-UM008B-EN-P - December 2006
110 Application Examples
Program to Convert °F to BCD
15
Rung 2.0
First Pass Bit
] [
S:1
MOVE
Source N10:0
Dest O:3.0
Initialize Channel 0
of RTD Module.
MOV
Rung 2.1
Convert the channel 0 data word (degrees F) to BCD values and write this to the LED display. If channel 0 is
ever disabled, a zero is written to the display.
TO BCD
Source I:3.0
Dest N7:0
TOD
MASKED MOVE
Source N7:0
Mask 0FFF
Dest O:2.0
MVM
The use of the masked move instruction with the 0FFF mask allows you to use outputs 12, 13, 14, and 15 for
other output devices in your system. The 7-segment display uses outputs 0-11.
Rung 2.2
END
Przeglądanie stron 109
1 2 ... 105 106 107 108 109 110 111 112 113 114 115 ... 147 148

Komentarze do niniejszej Instrukcji

Brak uwag