Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 86

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Precautions
■ When labels are used
• Local devices cannot be used as an array index. To use local devices as an array index, assign the target device to another
device, and specify the assigned device.
■ When performing automatic conversion of data type with devices
Add a device type specifier when using a word device in a data type other than word [signed]. ( Page 83 Notation of
devices with a type specifier)
Ex.
When the values of D2 and D3 are transferred to dwordLabel1, a double word [unsigned] label
Example of when adding a device type specifier and
transferring the values in a correct data type
Since the data type of D2:UD (D2 with a device type specifier) is double word
[unsigned], the values of D2 and D3 are transferred to dwordLabel1.
■ When a timer or counter is used
• If a coil (TC, STC, LTC, LSTC, CC, or LCC) of timer and counter devices is used as an input of variable, function or function
block, it operates as a contact (TS, STS, LTS, LSTS, CS, LCS).
• To use a coil of timer or counter as an input, use a timer type or counter type label.
Ex.
Timer device and timer type label
7 FBD/LD
84
7.1 Configuration
Assign a value of the contact (TS0) to M1.
Assign the inversion result of the contact (TS1) to M2.
Assign a value of the coil of the timer type label, tLabel0, to M1.
Assign the inversion result of the coil of the timer type label, tLabel0, to M1.
Example of an unintended transfer result
Since the data type of D2 without a device type specifier is word [signed], the
data type is automatically converted into double word [unsigned] and data is
transferred to dwordLabel1.
Therefore, the value of D3 is not transferred but only the value of D2 is
transferred.

Advertisement

Table of Contents
loading

Table of Contents