Lexicon
6.3.12.2 Data Description
ParamId:
Data Type:
Max Value:
ParamType:
Param Type Name
PARAM_TYPE_UINT8
PARAM_TYPE_UINT16
PARAM_TYPE_CSTR8
PARAM_TYPE_CSTR13
PARAM_TYPE_UINT32
PARAM_TYPE_BOOLEAN
PARAM_TYPE_INT8
PARAM_TYPE_BRANCH
PARAM_TYPE_INT16
PARAM_TYPE_CSTR20
Value:
The data value transmitted is dependent on the ParamType, as described above. The
Data Value is always packed starting at the Value[0] byte in the packet. For multi-byte
data, the values are packed LSB first(Value[0]) to MSB(Value[0+(num bytes-1)]). For
example: Setting a given signed 16 bit parameter to a value of -300 the data array would
be packed as follows:
Value[0] = 0xd4
Value[1] = 0xfe
Value[2 - 13] = don't care.
All signed values are in the 2's compliment format.
6.3.12.3 Data Validation:
The ParamId must be a valid Parameter. The ParamType must be valid for the given ParamId. If
either of these conditions is not true the MC-4 will respond with a NAK packet and error code DC
_ INVALID_PARAM_ID. The data value size cannot exceed the size of a given data type. A
value that does exceed the size of a given data type will be truncated to the appropriate size.
The ParamType transmitted must match the ParamType for the Parameter being transmitted, as
per the Parameter Definition as transmitted by the MC_SYS_PARAM_DEF_PKT. If the types do
not match, the MC-4 will transmit a NAK packet with a DC_INVALID_INPUT error code. The
MC-4 will transmit a NAK packet with a DC_ERR_READ_ONLY error code for read only
parameters.
Unsigned 16 bit Integer
Max Parameter Count as reported by the MC-4 Unit Configuration
Response Packet
(6.3.14.2 page
Param
Type Description
Type ID
0
Unsigned 8 bit integer(0 to 255)
1
Unsigned 8 bit integer(0 to 65535)
2
Zero terminated string of 8 ASCII characters
3
Zero terminated string of 13 ASCII characters
4
Unsigned 32 bit integer (0 to 4,294,967,295 )
5
Boolean (0 to 1)
6
Signed 8 bit integer (-127 to 128)
7
Parameter Branch
8
Signed 16 bit integer (-32,767 to 32,768)
9
Zero terminated string of 20 ASCII characters
MC-4 Serial Communications Protocol
22).
Data
Size
(Bytes)
1
2
9
14
4
1
1
N/A
2
21
20
Need help?
Do you have a question about the MC-4 V1.00 - SERIAL PROTOCOL DEFINITIONS REV 1-6 and is the answer not in the manual?
Questions and answers