Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 123

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

Advertisement

■Label write request
Writes labels to the Motion module.
The execution of this request requires the SignalIO add-on.
Operand: (s2)
Device
Item
+0
Request data
length
+1
Request ID
+2 to +M
Label name
+(M+1) to +
Write data
Operand: (d1)
Device
Item
+0
Response data
length
+1
Number of write
points
■Motion instruction execution
Executes the program instructions of the Motion module. For the processing details of each instruction, refer to the following.
The execution of this request requires Addon_Program_ST.
Page 95 Program Control Instructions
Operand: (s2)
Device
Item
+0
Request data
length
+1
Request ID
+2 to +M
Instruction name
+(M+1) to +
Argument
Operand: (d1)
Device
Item
+0
Response data
length
+1 to +
Response data
Instruction names which can be specified, the arguments, and the response data are shown below.
Instruction
Argument
name
*1
PSCAN
+0 to: program name (character string [Unicode], including the last
NULL character)
*1
PSTOP
+0 to: program name (character string [Unicode], including the last
NULL character)
Description
Specify the request data length. (Number of words from +1 to +)
Specify "2".
Specify the label name to be written with character string [Unicode] (including
the last NULL character).
• Only primitive data type can be written. Specify the end element for
structures.
• Specify [start...end] when writing 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 written.
• Local labels cannot be specified.
Specify the data to be written.
• If an array is specified and the request data length exceeds the request
data length specified in (s2+0), the data will be written within the range of
not exceeding the request data length and not seperated, and complete
normally.
• 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 writing in the array of STRING/WSTRING type label, set 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.
Description
The response data length is stored. (Number of words)
The number of points (number of words) written is stored.
• The bool type label is 16 pieces/1 point.
Description
Specify the request data length. (Number of words from +1 to +)
Specify "3".
Specify the instruction to be executed with ASCII character string (including
the last NULL character).
Specify the argument to be passed to the instruction.
Description
The response data length is stored. (Number of words)
The response data is stored.
Setting range
4 to 8192
2
Maximum of 256
characters
Setting range
1
Setting range
3 to 8192
3
Maximum of 256
characters
Setting range
1 to 8192
Response data
+0: bit 0 ...Execution result (ENO) is stored.
bit 1-F ...0 is stored.
+0: bit 0 ... Execution result (ENO) is stored.
bit 1-F ...0 is stored.
11 MOTION DEDICATED INSTRUCTIONS
11.2 User Function Execution Instruction
Set by
User
User
11
User
User
Set by
System
System
Set by
User
User
User
User
Set by
System
System
*2
*2
121

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents