Yp sets basic modbus client settings, Yr sets a modbus client transmission command, Wb sets sntp client settings – Yokogawa Button Operated MV2000 User Manual
Page 109
4-36
M-4662
YP
Sets basic Modbus client
settings
Syntax
YP p1,p2
p1
Read cycle (125MS, 250MS, 500MS, 1S,
2S, 5S, 10S)
p2
Retry interval (OFF, 10S, 20S, 30S,1MIN,
2MIN, 5MIN, 10MIN, 20MIN, 30MIN, 1H)
Query
YP?
Example
Set the read cycle to 500 ms and the retry
(reconnection) interval to 10 minutes.
YP500MS,10MIN
YR
Sets a Modbus client
transmission command
Syntax
YR p1,p2,p3···
p1
Command number (1 to 16)
p2
Command type (OFF, R, R-M, W, W-M)
Description Parameters p3 and subsequent parameters vary
depending on the p2 setting as follows:
If p2 is OFF
There are no parameters after p2.
If p2 is R [read into external input channels]
p3
First channel (external input channel
number)
p4
Last channel (external 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)
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
4.6 Basic Setting Commands