beautypg.com

App index – Yokogawa Removable Chassis DX1000N User Manual

Page 174

background image

3-57

Commands

IM 04L41B01-17E

1

2

3

4

5

6

App

Index

Query

YS?

Example Set the baud rate to 9600, the data length to 8,

the parity check to ODD, handshaking to OFF:
OFF, the RS-422/485 address to 02, and the
protocol to NORMAL.
YS9600,8,ODD,OFF:OFF,02,NORMAL

Description • You can use this command on models with the

/C2 or /C3 serial interface option.

• The setting p6=BARCODE is only valid on

models with the /AS1 advanced security
option.

YL

Sets the operation of the Modbus

master function

Syntax

YL p1,p2,p3,p4,p5
p1 Read cycle (125MS, 250MS, 500MS, 1S,

2S, 5S, 10S)

p2 Timeout (125MS, 250MS, 500MS, 1S, 2S,

5S, 10S, 1MIN)

p3 Retrials (OFF, 1 to 5, 10, 20)
p4 Command wait time (OFF, 5MS, 10MS,

15MS, 45MS, 100MS)

p5 Auto recovery (OFF, 1MIN, 2MIN, 5MIN,

10MIN, 20MIN, 30MIN, 1H)

Query

YL?

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

ms, the number of retrials to 2, the command
wait time to 10 ms, and the automatic return time
limit to 5 min.
YL500MS,250MS,2,10MS,5MIN

Description • You can use 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
information about the serial interface settings,
see section 2.3.

YM

Sets a transmit command of the

Modbus master function

To not set a command

Syntax

YM p1,p2
p1 Registration number (1 to 16)
p2 Computation usage (OFF)

Query

YM[p1]?

Example Do not set command registration number 1.

YM1,OFF

To set a command that reads external input

channels

Syntax

YM p1,p2,p3,p4,p5,p6,p7
p1 Registration number (1 to 16)
p2 Command type (R)
p3 First channel (external input channel

number)

p4 Last channel (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 registers

(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) in the
slave device at address 5 into the DX channels
201 to 203.
YM2,R,201,203,5,30002,INT32_B

To set a command that reads communication input

data

Syntax

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

number)

p4 Last channel (communication input data

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

registration 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 at address 5 into the DX channels
C02 to C05.
YM2,R-M,C02,C05,5,30003,INT32_B

To set a command that writes to measurement

channels

Syntax

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

number)

p4 Last channel (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 registers

(INT16, F LOAT_B, FLOAT_L)

Query

YM[p1]?

Example Register the following command in command

registration number 3: Write the measured data

3.6 Basic Setting Commands

This manual is related to the following products: