12 app, Ssntpcnct sntp client, Smodclient modbus client operation (/mc) – Yokogawa Touch Screen GP20 User Manual

Page 53: Smodccmd modbus client transmission command (/mc)

Advertising
background image

2-39

IM 04L51B01-17EN

Commands and Responses

1

2

App

p3 Reference time: Minutes (MM) (00 to 59)

P4 Interval (1h, 2h, 3h, 4h, 6h, 8h, 12h, 24h)

Query

SMailTime[,p1]?

Example Send mail to recipient 1 every day at 08:30.

SMailTime,1,08,30,24

SSntpCnct

SNTP Client

Sets the SNTP client operation and the connection

destination server.

Syntax SSntpCnct,p1,p2,p3,p4,p5,p6,p7

p1 Server name (up to 64 characters, ASCII)

p2 Port number (1 to 65535)

p3 Reference time: Hours (HH) (00 to 23)

P4 Reference time: Minutes (MM) (00 to 59)

p5 Access interval (6h, 12h, 24h)

p6 Timeout (10s, 30s, 90s)

p7 Time adjust on start action (Off, On)

Query

SSntpCnct?

Example Set the server name to “sntpserver1,” the port

number to “123,” the timeout to 30s. Query the

time every day at 12:00 and at memory start.

SSntpCnct,’sntpserver1’,123,12,00,

24,30s,On

SModClient

Modbus Client Operation (/MC)

Sets the Modbus client operation.

Syntax SModClient,p1,p2,p3,p4

p1 Read cycle (100ms, 200ms, 500ms, 1s,

2s, 5s, 10s)

p2 Recovery wait time (Off, 5s, 10s, 30s,

1min, 2min, 5min)

p3 Keep connection (Off, On)

P4 Connection timeout [s] (1 to 10)

Query

SModClient?

Example Set the read cycle to 100ms, the recovery wait

time to Off, and the connection timeout to 1

second.

SModClient,100ms,off,on,1

Description
This command is valid on models with the /MC

communication channel option.

SModCList

Modbus Client Connection Destination

Server (/MC)

Sets the Modbus client connection destination server.

Syntax SModCList,p1,p2,p3

p1 Registration number (1 to 16)

p2 Server name (up to 64 characters, ASCII)

p3 Port number (1 to 65535)

Query

SModCList[,p1]?

Example Assign server name “recorder1” and port

number “502” to registration number 1.

SModClient,1,’recorder1’,502

SModCCmd

Modbus Client Transmission Command

(/MC)

Sets the Modbus client transmission command.

Syntax SModCCmd,p1,p2,p3,p4,p5,p6,p7,p8

,p9

p1 Command number (1 to 100)

p2 Command type

Off

Disable command

Write

Write a value to a Modbus

register of another device.

Read

Read a value from a Modbus

register of another device.

p3 Server number (1 to 16)

P4 Unit number (1 to 255)

p5 Data type

BIT

Bit String data

INT16

16-bit signed integer

UINT16

16-bit unsigned integer

INT32_B

32-bit signed integer (big

endian)

INT32_L

32-bit signed integer (little

endian)

UINT32_B 32-bit unsigned integer (big

endian)

UINT32_L 32-bit unsigned integer (little

endian)

FLOAT_B

32-bit floating point (big

endian)

FLOAT_L

32-bit floating point (little

endian)

p6 Register (1 to 465535)

p7 Channel type

IO

I/O channel

Math

Math channel

Com

Communication channel

p8 First channel

p9 Last channel

Query

SModCCmd[p1]?

Example Register the following command in command

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 server

device assigned to address 5 and unit number

1 into channel C002.

SModCCmd,2,Read,5,1,INT32_B,30003,

Com,C002,C002

Description

If p2=Read, set the communication channel in p7, p8,

and p9.

Set the same type of channel in p8 and p9.

• Math channels are an option (/MT).

2.4 Setting Commands

Advertising
This manual is related to the following products: