Mitsubishi Electric MELSEC iQ-R C Series Programming Manual page 85

Controller module
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 for each
module.
Instruction name
Description
GINT
To issue an interrupt to a motion CPU or a 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 for 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.
• The completion processing of the dedicated instruction is performed in the fixed cycle processing. To reduce the processing
time of the function, set a small value for the refresh cycle.
• The operation varies depending on the firmware version of C Controller module. Ensure to check the supported firmware
version of the C Controller module.
Instruction
Supported firmware
version of C
Controller module
M.GINT, MP.GINT
'01' or later
M.MCNST, MP.MCNST
M.BITWR, MP.BITWR
M.SVSTD, MP.SVSTD
3 DETAILS OF FUNCTION
3.1 C Controller Module Dedicated Functions
3
83

Advertisement

Table of Contents
loading

Table of Contents