44
4 Conversion of the Projects
4.2 Precautions when Converting the Projects
Precautions for Instruction Replacement
When converting the projects of the FX3 Series to MELSEC iQ-F projects, the instructions may be changed or correction
required. The details are explained below.
Arguments
■Arguments of function with "_E"
For functions with “_E”, the positions of the arguments are different between GX Works2 and GX Works3. Therefore the
projects must be modified after conversion.
• GX Works2: EN is specified by the first argument and "ENO" is the return value.
• GX Works3: EN is specified by the first argument, ENO is specified by the second argument, and the result is the return
value. (The value is the same as function without "_E".)
■Data type of arguments
The required data type of arguments for some instructions, functions, function blocks of GX Works2, and the required data
type of arguments for the instructions, functions, function blocks of GX Works3 are different. Therefore, an error may occur
because of data type mismatch when reusing the program of GX Works2. In that case, modify the instruction name or
arguments.
INC instruction
• When handling a value exceeding 32767 (maximum value of word [signed]), replace to “INC_U”.
• When word [unsigned]/bit array [16-bit] type label is specified for the parameter, replace to “INC_U”.
■The number and order of arguments
The number and order of arguments of some instructions in GX Works2 is different from those of GX Works3. In that case,
modify the arguments.
(D)TO instruction
• GX Works2: (S)(n1)(n2)(n3)
• GX Works3: (UnHn)(s1)(s2)(n)
When the order of the arguments in GX Works2 is 1, 2, 3, and 4, the order in GX Works3 is 2, 3, 1, and 4.
■Argument requiring multiple points
When using a label as an argument that requires multiple points, use an array label having at least as many elements as
required of the argument.
Instructions/FB/FUN that are not supported by the MELSEC iQ-F Series
For the instructions/FB/FUN that are not supported by the MELSEC iQ-F Series, refer to the following manual to correct the
program so that the instructions/FB/FUN will be equivalent to the one in the manual.
MELSEC iQ-F FX5 Programming Manual (Instructions, Standard Functions/Function Block)
Instructions Requiring Special Action When Replacing Structured Ladder to FBD/LD
Instructions
The following instructions require action after the project conversion.
Instruction list Action content
DHSCR DSWAP PLSV The connecting position of the parameter is different from GX
Works2.
After replacing to FX5, select the appropriate instruction and
perform “Edit” → ”FB/FUN update” in the right-click menu, and
then adjust the connecting position.
PLSY DSWAPP DPLSV
DPLSY DSZR DRVI
PWM DVIT DDRVI
SWAP DDVIT DRVA
SWAPP DABS DDRVA
DHSCS_I When an out of range “I” device is specified as parameter “i”,
parameter “i” will be replaced with P4095.