Mitsubishi Electric MELSEC iQ-R C Programming Manual page 61

Melsec iq-r series programmable controller
Hide thumbs Also See for MELSEC iQ-R C:
Table of Contents

Advertisement

■Description
The dedicated instructions that can be specified to the instruction name (pcInstName) are as shown below.
For the specifications of each dedicated function and the completion status, refer to the programming manual of each module.
Instruction name
Description
GINT
Issues an interrupt to motion CPU and C Controller module.
MCNST
To request a motion CPU to start a machine program operation.
BITWR
To write data to the bit device of a motion CPU.
SVSTD
To issue a direct positioning start request to a motion CPU.
To issue an interrupt from a C Controller module, specify the following values to each argument.
Argument
Description
pcInstName
Specify "GINT".
sCPUNo
Specify the target CPU module.
• CPU No.1: 3E0H
• CPU No.2: 3E1H
• CPU No.3: 3E2H
• CPU No.4: 3E3H
psArg1
Specify the interrupt pointer number to psArg1[0]. (0 to 15)
sArg1Size
Specify '1'.
psArg2
Specify the area to store the completion device (2 words).
• Completion of the instruction processing: psArg2[1]=0, psArg2[0]=1
• Abnormal completion of the instruction processing: psArg2[1]=1, psArg2[0]=1
sArg2Size
Specify '2'.
psArg3
Specify the area to store the completion status (1 word).
When the interrupt pointer number specified to psArg1[0] is other than 0 to 15, the psArg3[0] will be '2282H'.
sArg3Size
Specify '1'.
psArg4 to psArg9
Specify NULL.
sArg4Size to sArg9Size
Specify '0'.
The completion status and completion device can be omitted at the same time. (Omitting only one of them is
not available.)
To omit them, specify "0" to sArg2Size and sArg3Size, and "NULL" to psArg2 and psArg3.
Precautions
• To execute this function, reserve an area to store the completion device of the dedicated instruction and specify it to the
argument. If the area and its size are not specified to the argument, an error occurs. (The instruction is not executed
properly.)
• Depending on the type of dedicated instruction, the return value of this function may be normal even if wrong argument or
size is specified. Make sure to check the completion status by referring to the manual of the dedicated instruction.
• Specifying an incorrect argument may result in unexpected operation. Make sure to refer to the manual for dedicated
instruction to specify the argument.
■Return value
Return value
Description
0 (0000H)
Normal
Other than 0
Error
For details on the error, refer to the following chapter.
Page 174 ERROR CODE LIST
■Relevant functions
• Page 52 CCPU_DedicatedDInst
• Page 54 CCPU_DedicatedGInst
• Page 56 CCPU_DedicatedJInst
Instruction
M.GINT, MP.GINT
M.MCNST, MP.MCNST
M.BITWR, MP.BITWR
M.SVSTD, MP.SVSTD
3 DETAILS OF FUNCTION
3.1 C Controller Module Dedicated Functions
3
59

Advertisement

Table of Contents
loading

Table of Contents