Datasheet
5.3. GUI Control Command Flow
The following information shows the command and control flow for the communications between the PC GUI and
the RL78/G14 motor control board firmware.
ASCII codes used as commands: “!” = 0x21, “#” = 0x23, “?” = 0x3F, “W” = 0x57, “c” = 0x63, “w” = 0x77
If the address "a" specified in the Master command is <NUM_PAR_EQP (number of eeprom parameters),
then the parameter is read or written depending on the command.
Otherwise if the address “a” >=NUM_PAR_EQP, then a parameter in the ram table (userif.h) is read or written;
Its address (location) in the ram table is defined by “a” - NUM_PAR_EQP.
5.3.1. Master Control Codes
Frame Format
l i s o a n D1 .. Dm k where
l = frame total length (1 byte)
i = master string identifier ('?')
s = station address (1 byte)
o = operation code (1 byte)
a = data address (1 byte)
n = data number (1 byte)
Dx = x-th data byte (1 byte)
k = checksum (1 byte)
Master Command codes:
'c' = check
'w' = word reading (1 word = 2 bytes)
'W' = word writing (1 word = 2 bytes)
Possible master frames (Commands):
Check: l ? s c k (l=5)
Word read: l ? s w a n k (l=7)
Word write: l ? s W a n D11 D10 .. Dn1 Dn0 k (l=7+2*n)
5.3.2. Slave Control Codes
Slave string:
l i s o a n D1 .. Dm k where
l = frame total length (1 byte)
i = slave string identifier ('!' = OK answer, '#' = NOK answer)
s = station address (1 byte)
o = operation code (1 byte)