Wr sets the instrument information output, Xe activates basic setting mode – Yokogawa Button Operated MV2000 User Manual

Page 111

Advertising
background image

4-38

M-4662

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

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 2.3.

• The settings specified with this command take

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

To set a command for writing floating type data
into Modbus registers

Syntax

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

p1

Command number (1 to 16)

p2

Command type

W

Write data from measurement

channels

W-M

Write data from computation

channels

p3

First channel number

Measurement channel number (1 to 48) if
p2 is set to W

Computation channel number (101 to 124) if
p2 is set to W-M

p4

Last channel number (1 to 48)

Measurement channel number (1 to 48) if
p2 is set to W

Computation channel number (101 to 124) if
p2 is set to W-M

p5

Server number (1 to 16)

p6

First register number (40001 to 499991,

400001 to 465536)

p7

Register data type

INT16

16-bit signed integer

UNIT16

16-bit unsigned integer

INT32_B

32-bit signed integer (Big
Endian)

INT32_L

32-bit signed integer (Little
Endian)

FLOAT_B

32-bit floating point (Big
Endian)

FLOAT_L

32-bit floating point (Little
Endian)

Example

Using command number 1, write the data from
measurement channels 1 to 16 to the registers
at server number 3 starting from register number
40001 in 32-bit floating point format (Big Endian).
YM1,W,1,16,3,40001,FLOAT_B

Query

YM?

Description The selectable range of the first channel number

(p3) and last channel number (p4) varies
depending on the model.

WR

Sets the instrument information

output

Syntax

WR p1,p2,p3,p4<terminator>
p1

Memory/Media state ON/OFF

p2

Self diagnosis ON/OFF

p3

Communication error ON/OFF

p4

Memory stop ON/OFF

Query

WR?

Example

Output various information.
WRON,ON,ON,ON

XE

Activates Basic Setting Mode

Syntax

XE p1<terminator>
p1

Store or discard the settings (STORE,

ABORT)

Example

Save the setup data of the basic setting
commands.
XESTORE

Description To activate the settings that are changed with

the basic setting commands, you must save the
settings with the XE command. Make sure to
save the settings with the XE command before
changing from Basic Setting Mode to Operation
Mode. Otherwise, new settings will not take
effect.

4.6 Basic Setting Commands

Advertising
This manual is related to the following products: