Pattern A |
|
The instruction is converted without any changes.
|
|
|
Pattern B |
|
With GP-Pro EX, different types of variables can not be allocated on one instruction. In case that the variable types allocated on ATAN instruction are different, the convert instruction to match the variable types is added and converted.
|
- |
Before Conversion |
|
|
Variable
|
Variable Type
|
Int_a
|
Integer-Type
|
Real_b
|
Real-Type
|
|
|
- |
After Conversion |
|
1. |
An instruction to convert the integer data of "Int_a" to the real data and copy it on the real variable "RealTmpTran(0)" is created.
|
2. |
Tan-1(RealTmpTran(0)) of the real data stored in "RealTmpTran(0)" is stored in "Real_b". |
|

|
|
Pattern C |
|
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 ATAN 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)
|
Real_b
|
Real-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. |
An instruction to convert the integer data copied on "Int08TmpTran(0)" to the real data and copy it to the real variable "RealTmpTran(0)" is created.
|
3. |
Tan-1 (RealTmpTran(0)) of the real data stored in "RealTmpTran(0)" is stored in "Real_b". |
|

|
|
|
MEMO |
* |
The integer variable "Int08TmpTran(0)" and the real variable "RealTmpTran(0)" are created automatically when conversion. |
|
|