Download Automation Systems - Software

Transcript
Drive Programming
And
Command
Description
And (logical product).
Value 1
Value 2
0
0
0
1
1
0
1
1
Result
0
0
0
1
Format
Arguments
• Result: any variable.
• Value 1: any variable or constant (range
-128 to 127).
• Value 2: any variable or constant
(range -2147483648 to 2147483647).
<result> = <value 1> And <Value 2>
Warning: Drive Programming does not control overflow/underflow. The application should take care.
Example
The initial P104 parameter calculation result is 4, as 6 in binary format is 00000110 and 12 in binary
format is 00001100, so the result of the and operation is 00000100 that is 4 in decimal format
If P102 and P103 are changed by the user, then P104 will recalculate accordingly.
Drive Programming User's Manual v0_90 110217.doc
43
Issue 0.90 Draft