beautypg.com

6 operation commands, Operation commands -47, 12 app – Yokogawa Touch Screen GP20 User Manual

Page 61: Osettime sets the time, Orec starts or stops recording, Oalarmack clears alarm output, Oexecsntp queries the time using sntp, Omessage message writing

background image

2-47

IM 04L51B01-17EN

Commands and Responses

1

2

App

2.6 Operation

Commands

OSetTime

Sets the Time

Sets the time.

Syntax OSetTime,p1

p1 Time to set

“YYYY/MO/DD_HH:MI:SS” (the

underscore denote a space), “YYYY/MO/

DD”, or “HH:MI:SS.”

YYYY Year (2001 to 2035)

MO

Month (01 to 12)

DD

Day (01 to 31)

HH

Hour (00 to 23)

MI

Minute (00 to 59)

SS

Second (00 to 59)

Query

OSetTime?

The OSetTime query outputs the GX/GP

current time.

Example Set the time to 23:00:00 on May 24, 2013.

OSetTime,2013/05/24 23:00:00

ORec

Starts or Stops Recording

Starts or stops recording.

Syntax ORec,p1

p1 Recording start or stop

0

Start

1

Stop

Query

ORec?

Example Start recording.

ORec,0

OAlarmAck

Clears Alarm Output

Clears alarm output (performs an alarm ACK).

Syntax OAlarmAck,p1

p1 Alarm output clearance (0)

Example Clear the alarm output.

OAlarmAck,0

OExecRec

Generates a Manual Trigger, Executes

Manual Sample, Takes a Snapshot, or

Causes a Timeout

Generates a manual trigger, executes manual sample,

takes a snapshot, or divides the data being recorded into

separate files.

Syntax OExecRec,p1

p1 Alarm output clearance type (0)

0

Execute manual sampling.

1

Generate a manual trigger.

2

Take a snapshot.

3

Cause a display data timeout (divide

files).

4

Cause an event data timeout (divide

files).

Example Execute manual sampling.

OExecRec,0

OExecSNTP

Queries the Time Using SNTP

Queries the time using SNTP.

Syntax OExecSNTP,p1

p1 Time query execution (0)

Example Query the time using SNTP.

OExecSNTP,0

OMessage

Message Writing

Writes a message.

Write a Preset Message

Syntax OMessage,p1,p2,p3

p1 Action type (PRESET)

p2 Message number (1 to 100)

p3 Display group number

ALL

Write to all display groups

1 to 50 Write to specified groups

You can specify multiple groups at once.

To do so, separate display groups with a

colon.

Example Write the message in preset message number

8 to display groups 1 and 2.

OMessage,PRESET,8,1:2

Write a Free Message
Syntax
OMessage,p1,p2,p3,p4

p1 Action type (FREE)
p2 Message number (1 to 10)
p3 Display group number

ALL

Write to all display groups

1 to 50 Write to specified groups
You can specify multiple groups at once.

To do so, separate display groups with a

colon.

P4 Message string to write (up to 32

characters, UTF-8)

Example Write a free message “MARK” in display

groups 3, 8, and 11.

OMessage,FREE,3:8:11,’MARK’

This manual is related to the following products: