Precautions On Programming; Errors Common To Instructions; Timer, Long Timer, And Long Retentive Timer Type Labels; Operations Arising When The Out And Set/Rst Instructions Of The Same Device Are Used - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

Motion module instructions, standard functions/ function blocks
Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

1.4

Precautions on Programming

Errors common to instructions

The following table lists the conditions under which an error occurs when the instruction is executed.
Error content
• The device or label specified by the instruction exceeds the available range.
• The number of array elements is not enough.
• The device or label area used in the instruction exceeded the specified range.
• An array is not selected.
For details, refer to the following.
MELSEC iQ-R Motion Module User's Manual (Application)

Timer, long timer, and long retentive timer type labels

The timer, long timer, and long retentive timer type labels are structures whose members are S (contact), C (coil), and N
(current value). When the data to be handled exceeds the width (32 bits) of the current value, these operate by using not only
the area of the current value but also the areas of the previous value, contact, and coil.
Data type
Timer (T)
Retentive timer (ST)
Counter (C)
Long timer (LT)
Long retentive timer (LST)
Long counter (LC)
Operations arising when the OUT and SET/RST instructions of
the same device are used
This section describes the operation when two or more OUT and SET/RST instructions that use the same device are
executed within one scan.
For OUT instructions of the same device
Otherwise, the specified device turns on or off, depending on the operation result up to each OUT instruction while it is in
execution.
In this case, the device may turn on/off during one scan because the on/off state of the specified device is determined during
execution of each OUT instruction.
If SET/RST instructions of the same device are used
■For SET instructions
The SET instruction turns on the specified device if the execution command is on, and causes no operation if it is off.
Thus, if two or more SET instructions of the same device are executed during one scan, the specified device turns on even if
one execution command is on.
■For RST instructions
The RST instruction turns on the specified device if the execution command is off, and causes no operation if it is off.
Thus, if two or more RST instructions of the same device are executed during one scan, the specified device turns on even if
one execution command is off.
■If the SET and RST instructions of the same device exist in one scan
If the SET and RST instructions of the same device exist in one scan, the SET instruction turns on the specified device if the
execution command is on, and turns off the specified device if it is on.
If both the SET and RST instructions are off, the on/off state of the specified device will be unchanged.
1 OVERVIEW
30
1.4 Precautions on Programming
Member
S (Contact): BOOL
C (Coil): BOOL
N (Current value): WORD
S (Contact): BOOL
C (Coil): BOOL
N (Current value): DWORD
Error code
3506H
3510H

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents