App index, Ym sets a modbus master transmission command – Yokogawa Button Operated MV2000 User Manual

Page 111

Advertising
background image

4-37

Commands

IM MV1000-17E

1

2

3

4

5

6

7

App

Index

Example Set the read cycle to 500 ms, the timeout to 250

ms, the retrials to 2, the command wait time to
10 ms, and the auto recovery to 5 min.
YL500MS,250MS,2,10MS,5MIN

Description • You can execute this command on models

with the /C2 or /C3 serial interface option.

• You can use this command when the serial

interface protocol is set to Master. For serial
interface settings, see section 3.3.

• The settings specified with this command take

effect when you save the settings with the XE
command and power-cycle the MV.

YM

Sets a Modbus master

transmission command

To not assign a command

Syntax

YM p1,p2<terminator>
p1 Registration number (1 to 16)
p2 Command ON/OFF (OFF)

Query

YM[ p1]?

Example Do not assign a command to command

registration number 1.
YM1,OFF

To set a command for reading data into external

input channels

Syntax

YM p1,p2,p3,p4,p5,p6,p7<terminator>

p1 Registration number (1 to 16)

p2 Command type (R)

p3 First channel number (external input channel

number)

p4 Last channel number (external input channel

number)

p5 Slave device address (1 to 247)

p6 First register number (30001 to 39999,

40001 to 49999, 300001 to 365535, 400001
to 465535)

p7 Type of data assigned to the register (INT16,

UINT16, INT32_B, INT32_L, UINT32_B,
UINT32_L)

Query

YM[ p1]?

Example Register the following command in command

registration number 2: Read the 32-bit signed
integer data that is assigned to registers 30002
(upper 16 bits) and 30004 (lower 16 bits) on the
slave device at address 5 into MV external input
channels 201 to 203.
YM2,R,201,203,5,30002,INT32_B

To set a command for reading data into

communication input channels

Syntax

YM p1,p2,p3,p4,p5,p6,p7<terminator>
p1 Registration number (1 to 16)
p2 Command type (R-M)
p3 First channel number (communication input

channel number)

p4 Last channel number (communication input

channel number)

p5 Slave device address (1 to 247)

p6 First register number (30001 to 39999,

40001 to 49999, 300001 to 365535, 400001
to 465535)

p7 Type of data assigned to the register

(INT16, UINT16, INT32_B, INT32_L,
UINT32_B, UINT32_L, FLOAT_B,
FLOAT_L)

Query

YM[ p1]?

Example Register the following command in command

registration number 2: Read the 32-bit signed
integer data that is assigned to registers
30002 (upper 16 bits) and 30004 (lower 16
bits) on the slave device at address 5 into MV
communication input channels C02 to C05.
YM2,R-M,C02,C05,5,30003,INT32_B

To set a command for writing measurement

channels

Syntax

YM p1,p2,p3,p4,p5,p6,p7<terminator>
p1 Registration number (1 to 16)
p2 Command type (W)
p3 First channel number (measurement

channel number)

p4 Last channel number (measurement

channel number)

p5 Slave device address (1 to 247)
p6 First register number (40001 to 49999,

400001 to 465535)

p7 Type of data assigned to the register (INT16,

FLOAT_B, FLOAT_L)

Query

YM[ p1]?

Example Register the following command in command

registration number 3: Write the measured data
of channels 003 to 006 to registers 40003 to
40006 on the slave device at address 7.
YM3,W,003,006,7,40003,INT16

To set a command for writing computation

channels

Syntax

YM p1,p2,p3,p4,p5,p6,p7<terminator>
p1 Registration number (1 to 16)
p2 Command type (W-M)
p3 First channel number (computation channel

number)

p4 Last channel number (computation channel

number)

p5 Slave device address (1 to 247)
p6 First register number (40001 to 49999,

400001 to 465535)

p7 Type of data assigned to the register (INT16,

UINT16, INT32_B, INT32_L, FLOAT_B,
FLOAT_L)

Query

YM[ p1]?

Example Register the following command in command

registration number 2: Write the 16-bit signed
integer computed data of channels 101 to 105
to the first register 40003 on the slave device at
address 5.
YM2,W-M,101,105,5,40003,INT16

4.6 Basic Setting Commands

Advertising
This manual is related to the following products: