1 dual operand (dyadic) operators (continued) – Rockwell Automation 1771-DB Basic Module User Manual - Series A User Manual
Page 81

Operating Functions
Chapter 5
5–44
5.5.1.1 Comments on logical operators .AND.,.OR. and .XOR.
These operators perform a BIT-WISE logical function on valid
INTEGERS. This means both arguments for these operators are between 0
and 65535 (0FFFFH) inclusive. If they are not, the BASIC Module
generates a BAD ARGUMENT ERROR. All non-integer values are
truncated, not rounded. Use the following chart for bit manipulations on 16
bit values.
Hex Decimal
To set bit
0
1
2
3
4
5
6
7
10
11
12
13
14
15
16
17
.OR. VARIABLE WITH
0001H
0002H
0004H
0008H
0010H
0020H
0040H
0080H
0100H
0200H
0400H
0800H
1000H
2000H
4000H
8000H
1
2
4
8
16
32
64
128
256
512
1024
2048
4096
8192
16384
32768
Example: 10 A= A .OR. 0100H:REM SET BIT 10
To clear bit
0
1
2
3
4
5
6
7
10
11
12
13
14
15
16
17
.AND. VARIABLE WITH
0FFFEH
0FFFDH
0FFFBH
0FFF7H
0FFEFH
0FFDFH
0FFBFH
0FF7FH
0FEFFH
0FDFFH
0FBFFH
0F7FFH
0EFFFH
0DFFFH
0BFFFH
7FFFH
65534
65533
65531
65527
65519
65503
65471
65407
65279
65023
64511
63487
61439
57343
49151
32767
Example: 10 A= A .AND. 0F7FFH: REM CLR BIT 13
To clear all bits
.XOR. VARIABLE WITH
ITSELF
Example: 10 A = A.XOR.A : REM CLR A
5.5.1
Dual Operand (dyadic)
Operators (continued)
- 20P PowerFlex DC Drive - Frame D Bimetal Thermostat (10 pages)
- 1336S_F_T_E_R F Frame Snubber Resistor Repl. (6 pages)
- 22-COMM PowerFlex 4-Class DSI (Drive Serial Interface) Network Communication Adapter (4 pages)
- 8-545 Plug In Solid State Relay (2 pages)
- 20-HIM-B1 PowerFlex 7-Class HIM Bezel (DPI) (4 pages)
- 100 Contactors with DC Coil (2 pages)
- 100 Contactors with DC Coil (1 page)
- 20P PowerFlex DC Drive - Frame D Switching Power Supply Circuit Board (6 pages)
- 140G-MTFx_MTHx_MTIx_MTKx Trip Unit Installation-140G-M (6 pages)
- 45BRD Analog Laser Sensor (4 pages)
- 20D Multi-Device Interface Option Board for PowerFlex 700S Drives (20 pages)
- 56RF RFID 18 mm Cylindrical Transceiver (2 pages)
- 42KC Miniature Rectangular: 5V DC Version (2 pages)
- 20P PowerFlex DC Drive - Frame A Switching Power Supply Circuit Board (16 pages)
- 21P-MISC-A-TP-2 Transition Tube Kit #C19-6/7 For PowerFlex 755 w/OEM Liquid Cooling Fr 6/7 Drive (2 pages)
- 42BT Background Suppression Sensor (3 pages)
- 42CB High Speed 18mm Cylindrical (4 pages)
- 140EX-JE2_JE3 Molded Case Circuit Breaker (4 pages)
- 140G-K-EAM1A Early Make Aux Contact for Rotary Handle Oper Mech-140G-K (1 page)
- 140G-K-EAM1A Early Make Aux Contact for Rotary Handle Oper Mech-140G-K (3 pages)
- 20-HIM-A6 PowerFlex (Human Interface Module) (74 pages)
- 42CF General Purpose 12mm Cylindrical (4 pages)
- 20D PowerFlex 700S Phase II Drive Frames 1...6 (80 pages)
- 140EX-HE1_HE2 Molded Case Circuit Breaker (6 pages)
- 140EX-HE1_HE2 Molded Case Circuit Breaker (4 pages)
- 20B PowerFlex 700 Custom Firmware - Pump Off (12 pages)
- 20-WIM-N4S DPI Wireless Interface Module (92 pages)
- 140U H-Frame Circuit Breaker Fixed and Adjustable Thermal Trip (2 pages)
- 140U H-Frame Circuit Breaker Fixed and Adjustable Thermal Trip (7 pages)
- 60-2619, 42JS Swivel/Tilt Mounting Bracket (1 page)
- 22A PowerFlex 4/40/400 Flange Mount (4 pages)
- 45MLA Controller Installation Instructions (16 pages)
- 20P PowerFlex DC Drive - Cooling Fan for Frame A Drives Above 73A at 230V 460V AC (6 pages)
- 42JS Series 7000 to 42JS VisiSight Replacement Kit (2 pages)
- 22A PowerFlex 4-Class HIM Bezel (DSI) (4 pages)
- 42CS Stainless Steel Photoelectric Sensors (4 pages)
- 20L-LL PowerFlex 700L Liquid-to-Liquid Heat Exchanger (40 pages)
- 20P PowerFlex DC Drive - Frame B SCR Modules (20 pages)
- 22B PowerFlex 40 Quick Start FRN 5.xx - 6.xx (161 pages)
- 22B PowerFlex 40 Quick Start FRN 5.xx - 6.xx (22 pages)
- 22F PowerFlex 4M Input RFI Filters (2 pages)
- 45LFM Capacitive Label Sensor (4 pages)
- 140G-Rx Installation Instruction-140G-R (29 pages)
- 140G-Rx Installation Instruction-140G-R (2 pages)
- 22C PowerFlex 400 AC Drive Quick Start - FRN 1-4.xx (28 pages)