Mitsubishi Electric MELSEC iQ-R Series Manual page 43

Intelligent function module
Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

CITL_GetSwitchStatus
This function acquires the switch status of a C intelligent function module.
■ Format
short CITL_GetSwitchStatus(long* plStatusBuf, unsigned long ulBufSize)
■ Argument
Argument
Name
plStatusBuf
Switch status storage destination
ulBufSize
Switch status storage destination size
■ Description
• This function acquires the switch status of a C intelligent function module, and stores it in the switch status storage
destination (plStatusBuf).
• It also acquires the information for the size specified to the switch status storage destination size (ulBufSize).
• The information to be stored in the switch status storage destination (plStatusBuf) is as follows.
Storage position
plStatusBuf[0]
bit31 to 6
bit5 to 3
bit2 to 0
■ Return value
Return value
Description
0 (0000H)
Normal
Other than 0 (0000H)
Error
For details on the error, refer to the following chapter.
Page 108 ERROR CODE LIST
Description
Specify the switch status storage destination.
Specify the switch status storage destination size in double word units.
(When '0' is specified, this function ends normally without processing.)
Description
Reserved
MODE/SELECT switch status
Reserved
Status
• 000: MODE state
• 010: NEUTRAL state
• 100: SELECT state
• Others: Reserved
3 DETAILS OF FUNCTION
3.1 C Intelligent Function Module Dedicated Functions
IN/OUT
3
OUT
IN
41

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec iq-r c

Table of Contents