Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 122

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

Advertisement

■Response data
Operand: (d1)
Device
Item
+0
Response data length
+1 to +
Response data
Processing details
• The request data stored in the device specified by (s2) and later is handed over to the Motion module specified by (U), and
the response data is stored in the device specified by (d1) and later. However, if the received response data is larger than
the allowable number of response data specified in (s1), only the allowable number of response data will be stored and the
remaining will be discarded. (The dedicated instruction will be completed successfully.) In this case, the response data
length (d1) will be the number of data actually stored.
• Set (s2) according to the process which will be executed. The description of (d1) changes depending on the process to be
executed. The following shows details.
■Label read request
Reads labels from the Motion module.
The execution of this request requires theSignalIO add-on.
Operand: (s2)
Device
Item
+0
Request data
length
+1
Request ID
+2 to +
Label name
Operand: (d1)
Device
Item
+0
Response data
length
+1 to +3
Reserved
+4 to +
Read data
11 MOTION DEDICATED INSTRUCTIONS
120
11.2 User Function Execution Instruction
Description
The response data length is stored. (Number of words)
The response data is stored.
Description
Specify the request data length. (Number of words from +1 to +)
Specify "1".
Specify the label name to be read with character string [Unicode] (including
the last NULL character).
• Only primitive data type can be read. Specify the end element for
structures.
• Specify [start...end] when reading out the multiple array elements in a
batch. This notation can be used at only one location in the label. Ex. If the
array is Label[10...20], the elements [10] to [20] will be read.
• Local labels cannot be specified.
Description
The response data length is stored. (Number of words)
• The response data length depends on the label type to be read.
• If an array is specified and the response data length is greater than 8192
points, the data will be stored within the range of not exceeding 8192 points
and not separating the data and complete normally. Ex. The WSTRING
character string of 100 length is stored up to 81 strings (8100 points), the
82nd string will not be stored.
"0" is stored.
The read data is stored.
• Stores in bit 0 for a BOOL type label. When reading out the multiple data
with specified array, store in order without space such as bit 0, bit 1, ...
• When reading out the array of STRING/WSTRING type array, output the
character string in the NULL tab-delimited format type. In the case of
STRING type, adjust the number of NULL to set each head of the string at
word border. (Insert NULL x 1 when the length is odd number without
NULL and insert NULL x 2 in the case of even number.)
Setting range
Set by
0 to 8192
System
System
Setting range
Set by
3 to 258
User
1
User
Maximum of 257
User
characters
Setting range
Set by
4 to 8192
System
0
System
System

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents