EasyManua.ls Logo

BSWA 308 - Instruction Format

BSWA 308
126 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
BSWA 308/309 BSWA Technology Co., Ltd
68
5.3.2 Instruction Format
In this section,☐☐☐” on behalf of the 3 characters of the instruction, “p1, p2 ......” on behalf
of the parameter d1, d2 ...means the data, “_” means a space.
(1) Separate The Parameters By Space For Multiple Parameters In One Instruction:
☐☐☐ Instruction without parameters
☐☐☐p1 Instruction with 1 parameter
☐☐☐p1_p2 Instruction with 2 parameters
☐☐☐? Instruction with query parameter
☐☐☐p1_? Instruction with 1 parameter and a query parameter
☐☐☐p1_ p2_? Instruction with 2 parameters and a query parameter
The parameters can be a wide range, for example from 1 to 255. These parameters are
sending by the format of ASCII. Therefore, you may need to send 1~3 bytes.
☐☐☐93 Parameter is 93
☐☐☐124 Parameter is 124
Note that both of 93 and 124 are single parameter. So the individual numbers dont need
to be separated by spaces.
☐☐☐1_64 2 individual parameters, 1 and 64
Note that 1 and 64 are two parameters in one instruction. So those parameters need to
be separated by space.
The parameter is possible to be decimal or integer type. However, if the actual value is
integer type, decimal point and decimal bits can be omitted.
(2) Separate The Data By Comma For Multiple Data In One Response
d1,d2,d3 Return 3 data
Response block, the data bits actually returned is less than its maximum possible
number of digits, leading zeros. For example, return 2 data with the maximum possible
value 255 (3 digits), and the actually data is 76 and 9, the response is:
076,009 Return data 76 and 9
If the returned data contains date and time, use the slash /” to separate data and use the
colon “:” to separate the time:
2011/08/0512:13:55

Table of Contents

Related product manuals