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

Pattern B: Add an instruction to match the bit length

GP-Pro EX doesn't allow variables with ,different bit length to be assigned to an instruction. If the bit lengths of variables assigned to an instruction are different, a conversion instruction to match the bit lengths before conversion is added.

e.g. : The case of copying data of an 8-bit (1-byte) variable "Int_A.B[0]" to an integer variable "Int_B" with a transfer instruction
-
Before Conversion
Variable
Variable type
Int_A.B[0]
Integer type
(Byte specification)
Int_B
Integer type


-
After Conversion
1. An instruction to copy data of "Int_A.B[0]" to the lower bit 8 "Int08TmpTran(0).B[0]" of an integer variable "Int08TmpTran(0)" is created.

2. An instruction to copy data stored in "Int08TmpTran(0)" to an integer variable “Int_B" is created.



*1: The integer variable "Int08TmpTran(0)" is 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.