App index – Yokogawa Value Series FX1000 User Manual

Page 127

Advertising
background image

3-45

IM 04L21B01-17EN

Commands

1

2

3

4

5

6

App

Index

When you are reading communication input data

from another device

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

data number)

p4 Last channel number (communication input

data number)

p5 Address of the slave device (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 registers

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

Query

YM[p1]?

Example Register the following command in command

register number 2: read the 32-bit signed integer
data that is assigned to registers 30003 (upper
16 bits) and 30004 (lower 16 bits) in the slave
device assigned to address 5 into channels C02
to C05 of the FX.
YM2,R-M,C02,C05,5,30003,INT32_B

When you are writing data from a measurement

channel to another device

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 Address of the slave device (1 to 247)
p6 First register number (40001 to 49999,

400001 to 465535)

p7 Type of data assigned to the registers

(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 in the slave device assigned to address 7.
YM3,W,003,006,7,40003,INT16

When you are writing data from a computation

channel to another device

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 Address of the slave device (1 to 247)
p6 First register number (40001 to 49999,

400001 to 465535)

p7 Type of data assigned to the registers

(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 computed 32-bit
integer data of channel 101—first write the lower
16 bits, and then write the upper 16 bits—to
registers 40003 and 40004 in the slave device
assigned to address 5.
YM2,W-M,101,101,5,40003,INT32_L

Description • You can use this command when the serial

interface protocol is set to “MODBUS-M.” For
information about the serial interface settings,
see section 2.3.

• Set p3 to a value that is less than or equal to

p4.

• The number of registers that are read from or

written to is determined by the values that you
specify for p3, p4, and p7. An error occurs if
the specified number of registers exceeds the
number of registers that actually follow the first
register (p6).

WR

Sets the instrument information

output (/F1 option)

Syntax

WR p1,p2,p3,p4<terminator>
p1 Memory and media status (OFF, ON)
p2 Self diagnosis (OFF, ON)
p3 Communication errors (OFF, ON)
p4 Memory stop (OFF, ON)

Query

WR?

Example Set the FX to transmit each type of information.

WRON,ON,ON,ON,ON

Description On models that do not have a communication

interface (/C2, /C3, or /C7 option), you can
specify a value for parameter p3 (communication
errors), but it will be ignored.

3.6 Basic Setting Commands

Advertising