beautypg.com

2 brd reading i relays on a bit-by-bit basis, Function, Command/response (for normal operation) – Yokogawa JUXTA VJ Series Limit Alarms User Manual

Page 20: Example

background image

3-6

<3. PC Link Communication >

IM 77J01J11-01E

3.2.2

BRD Reading I Relays on a Bit-by-bit Basis

Function

Reads a sequence of contiguous ON/OFF statuses by the specified number of bits starting
at a specified I relay number.

The number of bits to be read at a time is 1 to 256.

For the format of response in the event of failure, see subsection 3.1.2.

The command shown below includes the checksum function. When performing
communication without a checksum, do not include the 2-byte checksum command
element in the command.

Command/Response (for normal operation)

Command

Element

STX

Address

number

(ADDRESS)

CPU

number

01

0

BRD

ETX

CR

I relay

number

Comma

or space

Number

of bits

(n)

Checksum

OK

d1

d2

d3

ETX

CR

Response

Element

STX

Address

number

(ADDRESS)

CPU

number

01

• • •

dn

Checksum

The response is “0” when the status is OFF or “1” when ON.

Number of Bytes

• • •

1

2

2

2

1

1

1

1

2

1

1

Number of Bytes

1

2

2

1

3

5

1

3

2

1

1

dn: reads data of the specified number of bits (n=1 to 256)

dn=0(OFF)

dn=1(ON)

030206E.EPS

Example:

Reading the status of alarm-1 of the VJ Series signal conditioner with communication
address-1.

The following command reads the status of alarm-1 (I0009) at communication address-1.

[Command]

[STX]01010BRDI0009,00199[ETX][CR]

The following response is returned with respect to the above command. (Alarm-1 is ON.)

[Response]

[STX]0101OK18D[ETX][CR]

Alarm has been ON since "1" was returned.

030207E.EPS

3rd Edition : Oct. 15, 2007-00

This manual is related to the following products: