Program Processing; Argument Specifications - Mitsubishi Electric MELIPC MI5000 Series Programming Manual

Vxworks
Hide thumbs Also See for MELIPC MI5000 Series:
Table of Contents

Advertisement

Program processing

The following shows the procedure for processing a use program using a MELSEC data link function.
1.
Start a task.
2.
Open a communication line. (mdOpen function)
3.
Perform a dummy access to the target. (Device read or model name read)
4.
Access the target using a MELSEC data link function.
5.
Go on to step 6 if not to access the target.
To access the target, go back to step 4.
6.
Close the communication line. (mdClose function)
7.
End the task.

Argument specifications

This section shows the values that can be used when the channels, network numbers, station numbers, and device types are
specified as arguments in the MELSEC data link functions.
Channel
A channel implies a network and communication route to be used when communicating with a MELIPC.
Set a channel number for each connection type to be used in a user program (MELSEC data link function).
Channel
Channel name
number
12
Own station address
181
CC-Link IE Field Network
Network number and station number
This section shows the network numbers and station numbers to be specified by the MELSEC data link functions.
■Device access
This table shows the network numbers and station numbers to be specified during access to devices.
Communication route
Own station address
CC-Link IE Field Network
*1 Communication to the MELSEC (own station) by using the MELSEC data link functions is possible; however, it may take longer to
execute the functions compared to the C Controller module dedicated functions. Use the C Controller module dedicated functions to
create a user program in which performance should be ensured (such as control program).
*2 Logical station numbers are logical numbers that are specified for 'Station number' in a user program (MELSEC data link functions).
Logical station numbers are used to access other-station CPUs (other CPUs of a multiple CPU system). When a CPU module managing
other stations of the CC-Link IE Field Network is to be accessed directly, it is not necessary to configure the logical number. Use the
station number of the CC-Link IE Field Network directly.
Target functions
Page 101 mdDevRstEx
Page 102 mdDevSetEx
Page 104 mdRandREx
Page 107 mdRandWEx
Page 109 mdReceiveEx
Page 110 mdRemBufReadEx
Page 111 mdRemBufWriteEx
Page 112 mdSendEx
1 PROGRAMMING
16
1.2 MELSEC Data Link Functions
Access target
The MELIPC internal devices, internal system devices, and buffer memory are accessed.
CPU modules and the MELIPC connected to CC-Link IE Field Network link devices and
networks of the MELIPC are accessed.
Specification method
Own station
Own station
Other station
*2
Logical station number
Network No.
0(0H)
0(0H)
1 to 239 (1H to EFH)
0(0H)
Station number
*1
255(FFH)
255(FFH)
0 to 120 (0H to 78H)
65 to 239 (41H to EFH)

Advertisement

Table of Contents
loading

Table of Contents