Mitsubishi Electric Melsec Q Series User Manual page 305

Programmable contoller mes interface module
Hide thumbs Also See for Melsec Q Series:
Table of Contents

Advertisement

7
MES INTERFACE FUNCTION CONFIGURATION TOOL
(5) Type mismatch
(a) Value substitution
(b) Conversion from BCD type to numerical type
(c) Operation of numerical values
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
Because the operation result is out of the range for the
integer type, the variable Temp1 is the floating-point type.
A value is assigned after the source type is converted into the data type
of the tag component.
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.
Figure 7.116 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.
When a device value of programmable controller is inapplicable as a BCD type,
"BCD type conversion error" is displayed in the error log.
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.
Table 7.99 Operation items and types of the results
Item
Operation of floating-point
Floating-point type in all cases
type
Addition, subtraction,
In the range from -2147483648 to 2147483647: Integer type
multiplication of integer type
Exceeding the above range: Floating-point type
Divisible: Integer type
Not divisible: Floating-point type
Division of integer type
When zero divide is executed, the job execution is canceled.
At this time, "zero divide error" is displayed in the error log.
Operation result
7.15 Precautions
1
2
3
4
5
6
7
8
7
- 147

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Qj71mes96Qj71mes96nSw1dnc-mesif-e

Table of Contents