beautypg.com

Wb sets sntp client settings, Ys sets serial interface parameters, Yl sets modbus master function settings – Yokogawa Button Operated MV2000 User Manual

Page 110

background image

4-36

IM MV1000-17E

If p2 is R-M [read into communication input

channels]

p3 First channel (communication input channel

number)

p4 Last channel (communication input channel

number)

p5 Server number (1 to 16)
p6 First register number (30001 to 39999,

40001 to 49999, 300001 to 365536, 400001
to 465536)

p7 Register data type (INT16, UINT16,

INT32_B, INT32_L, UINT32_B, UINT32_L,
F LOAT_B, FLOAT_L)

If p2 is W [write measurement channels]

p3 First channel (Measurement channel

number)

p4 Last channel (Measurement channel

number)

p5 Server number (1 to 16)
p6 First register number (40001 to 49999,

400001 to 465536)

p7 Register data type (INT16, FLOAT_B,

FLOAT_L)

If p2 is W-M [write computation channels]

p3 First channel (computation channel number)
p4 Last channel (computation channel number)
p5 Server number (1 to 16)
p6 First register number (40001 to 49999,

400001 to 465536)

p7 Register data type (INT16, UINT16,

INT32_B, INT32_L, FLOAT_B, FLOAT_L)

Query

YR[ p1]?

Example Set the command type of command number 5 to

W, the first channel to 01, the last channel to 04,
the server number to 1, the first register number
to 40001, and the register data type to INT16.
YR5,W,01,04,1,40001,INT16

Note

Parameter p3 must be less than or equal to p4.

Parameters p3, p4, and p7 determine the number of registers to

be read or written. An error will occur if the valid range of registers

indicated in p6 is exceeded.

WB

Sets SNTP client settings

Syntax

WB p1,p2,p3,p4,p5,p6
p1 SNTP client function usage (USE, NOT)
p2 SNTP server name (up to 64 alphanumeric

characters)

p3 SNTP port number (0 to 65535)
p4 Access interval (OFF, 1H, 8H, 12H, 24H)
p5 Reference time for the access interval (00:00

to 23:59)

p6 Timeout value (10S, 30S, 90S)

If you set p1 to NOT, p2 to p6 are invalid.

Query

WB?

Example Enable the SNTP client function, set the server

name to sntp.daqstation.com, the port number
to 123, the access interval to 24 hours, the
reference time to 12:00, and the timeout value to
30 seconds.
WBUSE,sntp.daqstation.com,123,24H,12:00,30S

WC

Sets the SNTP operation when

memory start is executed

Syntax

WC p1
p1 Time adjustment by SNTP at memory start

(ON/OFF)

Query

WC?

Example Enable the time adjustment by SNTP at memory

start.
WCON

YS

Sets serial interface parameters

Syntax

YS p1,p2,p3,p4,p5,p6
p1 Baud rate (1200, 2400, 4800, 9600, 19200,

38400)

p2 Data length (7, 8)
p3 Parity check (ODD, EVEN, NONE)
p4 Handshaking (OFF:OFF, XON:XON, XON:

RS, CS:RS)

p5 RS-422/485 address (01 to 99)
p6 Protocol (NORMAL, MODBUS,

MODBUS-M)

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 • The settings specified with this command take

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

• You can execute this command on models

with the /C2 or /C3 serial interface option.

YL

Sets Modbus master function

settings

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?

4.6 Basic Setting Commands

This manual is related to the following products: