Function, Command/response (for normal operation), Example – Yokogawa JUXTA M Series Digital Limit Alarms MVTK User Manual

Page 24

Advertising
background image

3-10

<Toc> <Ind>

<3. PC Link Communication >

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

BRW Writes data into I relays on a bit-by-bit basis in random order

Function

Writes ON/OFF data into the individual I relays specified in random order by the specified
number of bits.

The number of bits to be written into at a time is 1 to 32.

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)

Number of Bytes

1

2

2

1

3

2

5

1

1

1

Command

element

STX

Address

number

(ADR)

CPU

number

01

0

BRW

d1

Number

of bits

(n)

I relay

number 1

Comma

or space

Comma

or space

• • •

Checksum

d2

ETX

CR

• • •

1

I relay

number 2

Comma

or space

5

1

dn

1

2

I relay

number n

Comma

or space

5

1

Comma

or space

1

1

1

Number of Bytes

1

2

2

2

2

1

1

Response

element

STX

Address

number

(ADR)

CPU

number

01

OK

CR

Checksum

ETX

Write data 0 and 1 indicate OFF and ON respectively.

Command (continued)

dn: write data of the specified number of bits (n=1 to 32)

dn=0 (OFF)

dn=1 (ON)

Example:

Setting the four user-defined flags (I0033, I0034, I0035 and I0036) of the M Series with
address number 05 to ON, OFF, OFF and ON respectively.

[Command]

[STX]05010BRW04I0033,1,I0034,0,I0035,0,I0036,17D[ETX][CR]

Note: The user-defined flags are flags that the user can freely read/write.

OK is returned in response to the above command.

[Response]

[STX]0501OK60[ETX][CR]

Advertising
This manual is related to the following products: