G.2 message receive function (msg-rcv), A-86 – Yaskawa MP2300S Basic Module User Manual

Page 408

Advertising
background image

Appendix G MSG-SND/MSG-RCV Functions (Ethernet)

G.2 Message Receive Function (MSG-RCV)

A-86

G.2

Message Receive Function (MSG-RCV)

This section explains how the message receive function (MSG-RCV) is used in a ladder program when receiving mes-
sages.

G.2.1 Specification Overview of the Message Receive Function

* 1. The meanings of I/O options are as follows:

Œ

B-VAL: Specify I/O by bit type data.

Œ

I-REG: Specify I/O by integer type data. When specifying, set an integer type register number.
As for the input only, it can be a constant (literal).

Œ

Address input: The address of the specified register (any integer register) is passed to the function.

* 2. When transmitting in MEMOBUS, Extended MEMOBUS, MELSEC, OMRON, or MODBUS/TCP protocol, set the

communication protocol (Pro-Typ) to MEMOBUS(=1). The communication device automatically converts the proto-
col.

* 3. Non-procedure 1: In non-procedural communication, data is received on a per-word basis.

Non-procedure 2: In non-procedural communication, data is received on a per-byte basis.

Function Name

MSG-RCV

Function

Receives messages from the remote station on the circuit specified by the communication device type. Supports
multiple protocol types.
Keep the execution command (Execute) until Complete or Error turns ON.

Function Defi-
nition

I/O Definition

No.

Name

I/O Option

*1

Contents

Input Item

1

Execute

B-VAL

Executes a reception

2

Abort

B-VAL

Forcibly ends a reception

3

Dev-Typ

I-REG

Communication device type
Ethernet (218IF) = 6, Ethernet (218IFA, 218IFB, 218IFC) = 16

4

Pro-Typ

I-REG

Communication protocol
MEMOBUS

*2

= 1, non-procedure 1

*3

= 2,

non-procedure 2

*3

= 3

5

Cir-No

I-REG

Line number
Ethernet (218IF) = 1-8, Ethernet (218IFA) = 1 to 8

6

Ch-No

I-REG

Communication buffer channel number
Ethernet (218IF) = 1-10, Ethernet (218IFA) = 1 to 4

7

Param

Address input

Parameter list start address
(MA, DA)

Output Item

1

Busy

B-VAL

In process

2

Complete

B-VAL

Process completed

3

Error

B-VAL

Error occurred

MSG

RCV

Execute

Abort

Dev-Typ

Pro-Typ

Cir-No

Ch-No

Param

Busy

Complete

Error

Advertising