/      日本語

UART Function of Extremely Simple! Standard App

Data format used in UART function
This explains the data format used in the UART function of the Extremely Simple! Standard App (App_Twelite).

Digital and Analog Input/Output

0x81: Status Notification from Remote Device

Outputs the state of the received input signals.

Data Format

#DataContentNote
charHeader: only
0uint8Source Logical Device ID
1uint8Command Number0x81 only
2uint8Packet IdentifierGenerated from Application ID
3uint8Protocol Version0x01 only
4uint8LQI0-255
5uint32Source Serial ID0x8???????
9uint8Destination Logical Device ID
10uint16Timestamp64 counts per second
12uint8Relay Count
13uint16Power Supply VoltageUnit is mV
15int8-(Unused)
16uint8Digital SignalsCorresponds to DIx from LSB, 0 is High
MSB 1 means periodic transmission
17uint8Digital Signal MaskCorresponds to DIx from LSB, 1 is valid
18uint8Conversion Value of AI1See Calculation of Analog Signals, 0xFF means unused
19uint8Conversion Value of AI2See Calculation of Analog Signals, 0xFF means unused
20uint8Conversion Value of AI3See Calculation of Analog Signals, 0xFF means unused
21uint8Conversion Value of AI4See Calculation of Analog Signals, 0xFF means unused
22uint8Correction Value of AIxCorresponds to AIx in 2-bit units from LSB
uint8ChecksumLRC8
charFooterCR (0x0D/'\r')
charFooterLF (0x0A/'\n')

Calculation of Analog Signals

The input voltage \(V\) of AIx can be expressed using the received conversion value \(e_{r}\) and correction value \(e_{fr}\) as follows:

$$\begin{align*} V &= e+e_f \\ \text{where} \\ e &= 16e_r \\ e_f &= 4e_{fr} \\ \end{align*}$$

Unit: mV

Example Output Data

:78811501C98201015A000391000C2E00810301FFFFFFFFFB

0x80: Remote Device Output Change

Controls the output signals of the remote device.

Data Format

#DataContentNote
charHeader: only
0uint8Destination Logical Device IDParent 0x00, Child 0x01-0x64, All Children 0x78
1uint8Command Number0x80 only
2uint8Format Version0x01 only
3uint8Digital SignalsCorresponds to DOx from LSB, 0 is High
4uint8Digital Signal MaskCorresponds to DOx from LSB, 1 is valid
5uint16PWM1 Signal0-1024, 0xFFFF means disabled
7uint16PWM2 Signal0-1024, 0xFFFF means disabled
9uint16PWM3 Signal0-1024, 0xFFFF means disabled
11uint16PWM4 Signal0-1024, 0xFFFF means disabled
uint8ChecksumLRC8
charFooterCR (0x0D/'\r')
charFooterLF (0x0A/'\n')

UART Input/Output

0x01: Transmission of Arbitrary Data

Data Format

#DataContentNote
charHeader: only
0uint8Destination Logical Device IDParent 0x00, Child 0x01-0x64, All Children 0x78
1uint8Command Number0x01 only
2[uint8]Arbitrary DataByte sequence of length \(N\) (recommended \(N\leqq80\))
uint8ChecksumLRC8
charFooterCR (0x0D/'\r')
charFooterLF (0x0A/'\n')

0x01: Reception of Arbitrary Data

Data Format

#DataContentNote
charHeader: only
0uint8Source Logical Device IDParent 0x00, Child 0x01-0x64, Unset Child 0x78
1uint8Command Number0x01 only
2[uint8]Arbitrary DataByte sequence of length \(N\)
uint8ChecksumLRC8
charFooterCR (0x0D/'\r')
charFooterLF (0x0A/'\n')

I2C Input/Output

0x88: I2C Input

Data Format

#DataContentNote
charHeader: only
0uint8Destination Logical Device IDParent 0x00, Child 0-0x7F, All Children 0x78, Self 0xDB
1uint8Packet Identifier0x88 only
2uint8Response NumberNumber output to response message
3uint8Command NumberWrite 0x1, Read 0x2, Read/Write 0x4
4uint8I2C Address7-bit
5uint8I2C CommandFirst command byte
6uint8Data Size0 means none
7[uint8]DataByte sequence of length \(N\)
uint8ChecksumLRC8
charFooterCR (0x0D/'\r')
charFooterLF (0x0A/'\n')

0x89: I2C Output

Data Format

#DataContentNote
charHeader: only
0uint8Source Logical Device IDParent 0x00, Child 0-0x7F, All Children 0x78, Self 0xDB
1uint8Packet Identifier0x89 only
2uint8Response NumberNumber output to response message
3uint8Command NumberWrite 0x1, Read 0x2, Read/Write 0x4
4uint8ResultFailure 0, Success 1
5uint8Data Size0 means none
6[uint8]DataByte sequence of length \(N\)
uint8ChecksumLRC8
charFooterCR (0x0D/'\r')
charFooterLF (0x0A/'\n')