SENA Rhio232 User Manual

Page 36

Advertising
background image

36

-

Data

MASK Data

Data Separator

ON/OFF Data

Data Order

1 - 10

11

12-21

Port No.

1 - 10

-

1-10

Data Content

Control: 0x31

Non-control: 0x30

0x2C ( “,” )

separates MASK

from ON/OFF.

ON: 0x31

OFF: 0x30

MASK and ON/OFF Data correspond to one port per byte for each port in sequence.

-

Port location by Data Order

1

2

3

4

5

6

7

8

9

10

Data

Order

12

13

14

15

16

17

18

19

20

21

Port

O1

O2

O3

O4

O5

O6

O7

O8

O9

O10

4.3.2.2 Response for ON/OFF Control

Response

Data

Remark

Byte Size

2

52

“02”

( 0x30, 0x32 )

input/output

overall state

ON/OFF state data for

ADC Level 4,

Input 12 Point and

Output 10 Point.

Send state of input/output

points in a batch.

-

Data

Field

Data

Order

Port

Data Content

Control

State

1

-

0x30: Normal Control,

0x31: No Run Mode,

0x39: Abnormal Control

2-6

A1

0x30: OFF,

0x31: ON (Switch Input),

0x39: Level Mode

“0000”-”1023”:

Level

ADC Input

LEVEL

7

-

Field Separator 0x2C ( “,” )

Advertising