Chapter 2 commands and responses, 1 command transmission and gx/gp responses, 1 general communication – Yokogawa Touch Screen GP20 User Manual
Page 15: 2 command types and functions, 3 command syntax, Command transmission and gx/gp responses -1, General communication -1, Command types and functions -1, Command syntax -1, 12 app
2-1
IM 04L51B01-17EN
Commands and Responses
1
2
App
2.1 Command Transmission and GX/GP Responses
2.1.1
General Communication
The GX/GP can work with various applications through the use of commands.
The communication that is achieved through commands is referred to as “general
communication.”
2.1.2
Command Types and Functions
The following types of commands are available. The first character of command names
represents the command type. For example, in the command “SRangeAI,” “S” represents
the command type. The second and subsequent characters represent the contents of
commands.
Type
Description
Operation commands
Example:
OSetTime
Commands that start with “O.” These commands are used
to operate the GX/GP.
Setting commands
Example:
SRangeAI
Commands that start with “S.” These commands change
the GX/GP settings.
Output commands
Example:
FData
Commands that start with “F.” These commands cause the
GX/GP to output measured data and other types of data.
Communication Control commands
Example:
CCheckSum
Commands that start with “C.” These commands control the
communication with the GX/GP.
Instrument information output
commands
Example:
_MFG
Commands that start with an underscore. These commands
cause the GX/GP to output its instrument information.
2.1.3
Command Syntax
A Single Command
A single command consists of a command name, parameters, delimiters, and terminator.
The command name is written in the beginning, and parameters follow. Delimiters are used
to separate the command name from parameters and between each parameter. A delimiter
is a symbol that indicates a separation. A terminator is attached to the end of a command.
Delimiters
Command name,parameter 1,parameter 2 terminator
Example of a Command
SRangeAI,0001,VOLT,2V,OFF,-15000,18000,0
Commands in a Series (Setting commands only)
You can send multiple setting commands in a series. When writing a series of commands,
separate each command with a sub delimiter. A sub delimiter is a symbol that indicates a
separation. A terminator is attached to the end of the series. The maximum number of bytes
that can be sent at once is 8000 bytes (8000 characters).
Sub delimiter
Command name,parameter 1,parameter 2;command name,parameter1 terminator
(Command 1)
(Command 2)
Chapter 2 Commands and Responses