Programming Flow; Chapter 22 Programming Using Melsec Data Link Functions - Mitsubishi Electric MELSEC Q Series User Manual

Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

(2) Functions for compatibility
The following functions are for Q12DCCPU-V. Use them for importing user program(s) for Q12DCCPU-V. To
create a new user program, use the functions described in (Page 362, (1) in this section), instead of these
functions.
Function name
mdDevRst
mdDevSet
mdRandR
mdRandW
mdReceive
mdSend
22.3

Programming Flow

The following shows the user program flow that involves these functions.

CHAPTER 22 PROGRAMMING USING MELSEC DATA LINK FUNCTIONS

Resets (OFF) the bit device.
Sets (ON) the bit device.
Reads devices randomly.
Writes devices randomly.
• Batch reads devices.
• Receives messages.
• Batch writes devices.
• Sends messages
Task startup
Open a communication circuit.(mdOpen function)
Perform dummy access (device read-out
and model name read-out, etc.) to the
targets (programmable controller
CPU and C Controller module, etc.)
Use the MELSEC data link function to access to target(s).
End the task?
Yes
Close a communication line.(mdClose function)
Task completion
Description
No
22
363

Advertisement

Table of Contents
loading

Table of Contents