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

Controller module
Table of Contents

Advertisement

Considerations for dedicated functions
Argument
• For the first argument, "pcInstName", categorizing the dedicated instructions (D/DP/J/JP/G/GP/M) is not required.
• Devices of the own station cannot be specified. Reserve the required area with a user program, and specify the start
address of the area to the relevant argument.
• Specify devices of other stations by using a character string. Set the value (the number of elements to which one is added
for the termination code) to the number of elements for the array.
(Example) To specify D4: char cDev[3] = {"D4"};
Set '3', the total number of '2' for D4 and '1' for termination code, to the number of elements for the character string.
• When the data type is device name (control data, input data, and output data), specify the argument using an array.
• The size is required to be set according to the number of elements for the array, which is specified to the argument. When
data type is 16-bit binary, BCD 4-digit, or real number, set the size to '1'. When data type is 32-bit binary or BCD 8-digit, set
the size to '2'.
• When data type is bit (completion device), specify the argument using an array. Specify '1' for completion or '0' for
incompletion to the first array. In the second array, '0' or '1' is stored for the normal completion or abnormal completion,
respectively.
• For arguments without the setting data, set the setting data to NULL, and set the size to '0'.
• Errors which occur in the dedicated function are not registered in the event history.
Executing a dedicated function
Before executing a dedicated function, check the status of a target module specified in the second argument. The response
may not be returned depending on the target module status.
Function name
CCPU_DedicatedDInst
CCPU_DedicatedMInst
CCPU_DedicatedGInst
CCPU_DedicatedJInst
1 COMMON ITEMS
12
1.2 C Controller Module Dedicated Functions
Target
A CPU module specified by the start I/O number of the target CPU module
A module where the module dedicated instruction is executed that is specified by the start input/output number
A network module specified by a network number.

Advertisement

Table of Contents
loading

Table of Contents