Moxa MD-224X [48/56] Examples

Moxa MD-224X [48/56] Examples
MD-224 Hardware Manual Display UART Commands
C-4
DL? (ECDIS RGB Package Query)
Use DL? to determine how many available packets are in each ECDIS table. This command cannot be used if
the MD-224 has not been calibrated. Total package num = Size of ECDIS RGB file/30 bytes per package.
Examples:
Send DL? command to query total package num. of the first RGB file.
0x07 0xFF 0x44 0x4C 0x3F 0x00 0x2A
ACK 255 packages
0x06 0xFF 0x44 0x4C 0x3F 0x01 0x2A 0xFF 0x00
D2N (Download ECDIS RGB Package (Second))
Before sending this command, use DL? to determine how many available packets are in each ECDIS table. like
"DL?" command, if we at ‘Calibration VGA’ mode the ACK is data in VGA table, and also at DVI mode. We can
not use this command at ‘No Calibration’. Every packet has a head (Byte 7 and Byte 8), Byte 7 is this packet
number and Byte 8 is the ASCII code for-”; the remaining bytes are data (without last byte, it is checksum for
data. If packet is full the data is Byte 9 to Byte 38). LEN=one date byte
Data length is 32. The first byte is package num., the second byte is “-” and the other 30 bytes are data.
Examples:
Command to read package 0.
0x07 0xFF 0x44 0x32 0x4E 0x01 0x34 0x00 0xFF
ACK package 0 of the first RGB file
0x06 0xFF 0x44 0x32 0x4E 0x20 0x16 0x00 0x2D Data IDCHK
D2? (ECDIS RGB Package Query (Second))
Every package has 32 bytes of data; the first byte is the package num, the second byte is “-” and the other 30
bytes are data
Examples:
Send a D2? command to query the total package num. of the first RGB file.
0x07 0xFF 0x44 0x32 0x3F 0x00 0x44
ACK 255 packages
0x06 0xFF 0x44 0x32 0x3F 0x01 0x44 0xFF 0x00
ETC (Elapsed Time Counter Query)
This command queries the elapsed time that the unit has been operating. No data will be sent with this
command. The unit will reply to this command with an ACK attention code. The DATA field will be set to a 4 byte
string, where the first byte is Year, the second and third are Hour and the forth is Minute.
Examples:
Send ETC to query elapsed time:
0x07 0xFF 0x45 0x54 0x43 0x00 0x1D
ACK Year, Hour, Minute
06 FF 45 54 43 04 1A Year Hour(H) Hour(L) Minute IDCHK

Содержание

Скачать