7 communication control commands, Communication control commands -51, Opens an instrument (rs-422/485 – Yokogawa Touch Screen GP20 User Manual

Page 65: Closes an instrument (rs-422/485, 12 app, Cchecksum sets the checksum, Csfilter sets the status filter, Clogin log in over a communication path, Clogout log out over a communication path

Advertising
background image

2-51

IM 04L51B01-17EN

Commands and Responses

1

2

App

2.7 Communication

Control Commands

CCheckSum

Sets the Checksum

Sets the presence or absence of checksum.

Syntax CCheckSum,p1

p1 Checksum usage

0

Do not compute

1

Compute

Query
Example
Enable the checksum.

CCheckSum,1

CSFilter

Sets the Status Filter

Sets the filter used when outputting the GX/GP status.

Syntax CSFilter,p1

p1 Filter values for status information

numbers 1 to 4 (0.0.0.0 to

255.255.255.255)

Query

CSFilter?

Example Set the status filter value to 255.127.63.31.

CSFilter,255.127.63.31

Description
The status filter is applied to each communication

connection.

CLogin

Log in over a Communication Path

Logs in over a communication path.

Syntax CLogin,p1,p2

p1 User name

p2 password

Example Log in using the user name “admin” and

password “password.”

CLogin,admin,password

Description
For the characters that you can use for the password,

see

Appendix 1

.

CLogout

Log Out over a Communication Path

Logs out over a communication path.

Syntax CLogout

Example Logs out from the GX/GP.

CLogout

ESC O

Opens an Instrument (RS-422/485

command)

Starts communication with the GX/GP. ESC in ASCII code

is 0x1B. For details, see

Appendix 1

.

Syntax ESC O p1

p1 Instrument address (01 to 99)

Example Open the instrument at address 99.

ESC O 99

Description
Specify the address of the instrument that you want to

communicate with.

You can only open one instrument at any given time.
If you execute ESC O, any instrument that is already

open will be automatically closed.

Use a capital “O.”
For this command, use CR+LF for the terminator.
For the responses to this command, see

page 2-56

.

ESC C

Closes an Instrument (RS-422/485

command)

Ends communication with the GX/GP. ESC in ASCII code

is 0x1B. For details, see

Appendix 1

.

Syntax ESC C p1

p1 Instrument address (01 to 99)

Example Close the instrument at address 77.

ESC C 77

Description
This command closes the connection to the

instrument you are communicating with.

Use a capital “C.”
For this command, use CR+LF for the terminator.
For the responses to this command, see

page 2-56

.

Advertising
This manual is related to the following products: