AE & AEK Series Communication Protocol

7.
UART protocol of unit
7-1
Data Transmission
The UART transmit and reply command are both executed by ASCII codes, and
use CR (ASCII code 0x0D) & LF (ASCII code 0x0A) for termination.
7-2
SMPS Addressing
1. In single unit operation, setting address is unnecessary.
2. To control multiple SMPS via RS-485 (Host PC), please do the following:
1)
Please set Addr.SW on SMPS Panel
2)
Please enter address command ADDS x (0~7); ADDS command must be same as the
hardware setting per point 1)
3)
User can set / query SMPS commands
7-3
Command Format
There are two formats in UART commands.
1)
The commands without parameter-> Command only has command byte,
and use CR LF for ending.
Format: <COMMAND> CR LF
2)
The commands with parameter-> Add parameter byte behind the command byte, and
use CR LF for termination. You must separate command byte and parameter byte with
space (ASCII code 0x20).
Format: <COMMAND> <PARAMETER> CR LF
7-4
Command Execute and Reply
1)
While the addressing effective devices receive the complete command
(use CR LF for termination), and then start to identify command, execute command
and reply by sending the executed result to Host PC.
The strings of reply and the represented results are shown as below:
= > CR LF -> Command executed successfully.
? > CR LF -> Command error, not accepted.
! > CR LF -> Command correct but execution error (e.g. parameters out of range).
2)
While addressing effective devices execute the command with query function, SMPS
will transmit the string of query result first, then use “CR LF” for termination, and
transmit “= >CR LF” to express “Command executed successfully” again.
3)
While addressing non-effective SMPS receive command, except ADDS and GLOB,
the command will be ignored, and there will be no reply.