Mitsubishi Electric MELSEC iQ-R C Programming Manual page 138

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

Advertisement

CCPU_SetDevice_ISR
This function sets internal user devices and internal system devices (bit devices) of C Controller module.
■Format
short CCPU_SetDevice_ISR (short sDevType, unsigned long ulDevNo)
■Argument
Argument
Name
sDevType
Device type
ulDevNo
Device number
■Description
This function sets (turns ON) the device of a C Controller module specified to the device type (sDevType) and the start device
number (ulDevNo).
Do not execute this function in a routine other than an interrupt routine.
WARNING
• If any function in which an invalid argument is specified is executed, an error such as hardware failure (3C02H) may occur
on C Controller module.
• This function does not check the specified argument.
When creating a program, note the following:
A device which is out of the range is not specified.
■Return value
Return value
0 (0000H)
■Relevant function
• Page 135 CCPU_ResetDevice_ISR
3 DETAILS OF FUNCTION
136
3.1 C Controller Module Dedicated Functions
Description
Specify the device type.
Page 9 Argument specification
Specify the device number.
Description
Normal
IN/OUT
IN
IN

Advertisement

Table of Contents
loading

Table of Contents