Mitsubishi Electronics QJ7MES96 Thermostat User Manual


 
7
- 146
7.15 Precautions
7
MES INTERFACE FUNCTION CONFIGURATION TOOL
(5) Type mismatch
(a) Value substitution
A value is assigned for a tag component after the source type is converted into the
data type of the tag component.
A value is assigned to a variable after the type of the variable is converted into the
type of the substitution source.
(Example) Type conversion of tag components and variables
If a type that cannot be converted is assigned to a tag component, the job
execution is canceled.
At this time, "Type conversion to tag component error" is displayed in the error log.
(b) Conversion from BCD type to numerical type
When a device value of programmable controller is inapplicable as a BCD type,
"BCD type conversion error" is displayed in the error log.
(c) Operation of numerical values
There are two kinds of numerical values: Integer type and Floating-point type.
Integer type: Represents the bit type, single-precision type, 16-bit BCD type,
32-bit BCD type, and double-precision type of tag components.
Floating-point type: Represents the floating-point type of tag components.
The following table lists operation items and types of the results.
Figure 7.116 Type conversion of tag components and variables
Table 7.99 Operation items and types of the results
Item Operation result
Operation of floating-point
type
Floating-point type in all cases
Addition, subtraction,
multiplication of integer type
In the range from -2147483648 to 2147483647: Integer type
Exceeding the above range: Floating-point type
Division of integer type
Divisible: Integer type
Not divisible: Floating-point type
When zero divide is executed, the job execution is canceled.
At this time, "zero divide error" is displayed in the error log.
Because the operation result is out of the range for the
integer type, the variable Temp1 is the floating-point type.
For example, when the tag component, Data1, is double-precision type data,
the type of the variable, Temp1, is converted from floating-point to
double-precision first, and then the converted value is assigned.
A value is assigned after the source type is converted into the data type
of the tag component.