Products
Download
Contact us
Back to Top
  • 1Let's learn compatibility of hardware!
  • 2Let's learn comparibility of the connection device!
  • 3Let's learn compatibility of software!
  • 4Let's learn how to replace!

Instruction Conversion

 AVE Instruction Conversion

Pattern A
In case that the variable mode is used, the setting contents of the instructions will be changed after conversion.

With GP-Pro EX, different types of variables can not be allocated on one instruction. In case that the variable types allocated on AVE instruction are different, the convert instruction to match the variable types is added and converted.

- Before Conversion
Variable
Variable Type
IntArr_a
Integer Array-Type
Int_b
Integer-Type
Int_,f
Integer-Type
Real_d
Real-Type
- After Conversion
1. The integer array variable "IntArr_a" and "Int_b" to specify the element numbers are combined. "IntArr_a[Int_b]" is allocated.

2. "Int_c" to specify the number of the arrays is specified.

3. The average for the number of "Int_c" from the elementary number "Int_b" of "IntArr_a" is stored in "Int32TmpTran(0)".

4. An instruction to convert the integer data copied on "Int32TmpTran(0)" to the real data and copy it on the real variable "Real_d" is created
Pattern B
In case that the variable mode is used, the setting contents of the instructions will be changed when conversion.

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 AVE instruction are different, the convert instruction to match the variable lengths is added and converted.

-
Before Conversion
Variable
Variable Type
IntArr_a
Integer Array-Type
Int_b.B[0]
Integer-Type
(Specified Byte)
Int_,f.B[0]
Integer-Type
(Specified Byte)
Real_d
Real-Type
- After Conversion
1. An instruction to copy the data of "Int_b.B[0]" to 8 lower bits "Int08TmpTran(0).B[0]" of the integer variable "Int08TmpTran(0)" is created.

2. An instruction to copy the data of "Int_c.B[0]" to 8 lower bits "Int08TmpTran(0).B[0]" of the integer variable "Int08TmpTran(0)" is created.

3. The average for the number of "Int08TmpTran(1)" from the elementary number "Int08TmpTran(0)" of "IntArr_a" is stored in "Int32TmpTran(0)".

4. An instruction to convert the integer data copied on "Int32TmpTran(0)" to the real data and copy it on the real variable "Real_d" is created.


Pattern C
With GP-Pro EX, device names can not be changed. In case that the fix variable mode is used, the device names are converted to the ones that have been defined in advance.

- Before Conversion
Variable
Variable Type
IntArr_a
Integer Array-Type
Int_b.B[0]
Integer-Type
(Specified Byte)
Int_,f.B[0]
Integer-Type
(Specified Byte)
Int_,".B[0]
Integer-Type
(Specified Byte)
- After Conversion
1. D-devices to specify the elementary number and the input destination are fixed. The output destination is stored in the temporary area of D-device.

2. An instruction to convert the integer data stored in the temporary area of D-device to R-device or F-device is created.

(The instructions of the type conversion are different depending on the conversion settings of GLC variables of the project converter.)

MEMO
* The integer variables "Int08TmpTran(0)", "Int08TmpTran(1)", and "Int32TmpTran(0)" are created automatically when conversion.


Back to page top Return to the previous page
FAQ for use | Protection of Personal Information | Trademark Acknowledgments | About Intellectual Property Rights | Terms of Use
Copyright (C) 2005- Schneider Electric Japan Holdings Ltd. All Rights Reserved.