Pattern A |
|
The instruction is converted without any changes.
|
|
|
Pattern B |
|
With GP-Pro EX, variables with different lengths can not be allocated on one instruction. In case that the bit lengths of variables allocated on NOT instruction are different, the convert instruction to match the variable lengths is added and converted.
|
-
|
Before Conversion |
|
|
Variable
|
Variable Type
|
Int_a.B[0]
|
Integer-Type
(Specified Byte)
|
Int_b
|
Integer-Type
|
|
|
- |
After Conversion |
|
1. |
An instruction to copy the data of "Int_a.B[0]" to 8 lower bits "Int08TmpTran(0).B[0]" of the integer variable "Int08TmpTran(0)" is created.
|
2. |
When the bit of the integer data stored in "Int08TmpTran(0)" is OFF, the bit of "Real_b" is ON.
When the bit of the integer data stored in "Int08TmpTran(0)" is ON, the bit of "Real_b" is OFF. |
|
 |
|
|
MEMO |
* |
The integer variable "Int08TmpTran(0)" is created automatically when conversion. |
|
|