beautypg.com

Brd reads i relays on a bit-by-bit basis, Function, Command/response (for normal operation) – Yokogawa JUXTA M Series Digital Limit Alarms MVTK User Manual

Page 21: Example

background image

<3. PC Link Communication >

3-7

IM 77J04J11-01E 1st Edition : 2006.08.25-00

BRD Reads I relays on a bit-by-bit basis

Function

Reads the ON/OFF statuses of a sequence of contiguous I relays 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 checksum, do not include the 2-byte
checksum element in the command.

Command/Response (for normal operation)

Command

element

STX

Address

number

(ADR)

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

(ADR)

CPU

number

01

• • •

dn

Checksum

Responses 0 and 1 indicate OFF and ON respectively.

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: read data of the specified number of bits (n=1 to 256)

dn=0 (OFF)

dn=1 (ON)

Example:

Reading the status of alarm 1 of the M Series with address number 01.

The following command reads the status of alarm 1 (I0001) of address number 01.

[Command]

[STX]01010BRDI0001,00191[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.