beautypg.com

App index – Yokogawa Value Series FX1000 User Manual

Page 125

background image

3-43

IM 04L21B01-17EN

Commands

1

2

3

4

5

6

App

Index

YP

Sets basic Modbus client

settings (/C7 option)

Syntax

YP p1,p2
p1 Read cycle (1S, 2S, 5S, 10S)
p2 Connection retry interval (OFF, 10S, 20S,

30S, 1MIN, 2MIN, 5MIN, 10MIN, 20MIN,
30MIN, 1H)

Query

YP?

Example Set the read cycle to 1 second and the

connection retry interval to 10 minutes.
YP1S,10MIN

YR

Sets the Modbus client’s

transmit command (/C7 option)

Syntax

YR p1,p2,p3, . . .
p1 Command number (1 to 16)
p2 Command type (OFF, R-M, W, W-M)

Parameter p3 and subsequent parameters vary
as shown below depending on the p2 setting.

When p2 is set to OFF

There are no parameters after p3.

When p2 is set to R-M (read communication input

data)

p3 First channel (communication input data

number)

p4 Last channel (communication input data

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,
FLOAT_B, FLOAT_L)

When p2 is set to W (write to 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)

When p2 is set to W-M (write to 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 For command number 5, set the command type

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

Description • 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).

WB

Sets SNTP client parameters (/C7

option)

Syntax

WB p1,p2,p3,p4,p5,p6
p1 SNTP client function usage (USE, NOT)
p2 SNTP server name (up to 64 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)

Parameters p2 to p6 are invalid when p1 is set to
NOT.

Query

WB?

Example Enable the SNTP client function, and set the

server name to “sntp.recorder.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.recorder.com,123,24H,
12:00,30S

3.6 Basic Setting Commands