Routine Control
0x31The Routine Control service allows the client to start, stop, or request results of a server-side routine identified by a Routine Identifier (RID).
✕Negative response codes
0x120x130x220x240x310x330x72
Request
SID 0x31 · 4 bytesLen (bits)
Parameter description
Value (hex)
8
Routine Control SID0x311
suppressPosRspMsgIndicationBitBit 7 of the sub-function byte. When set to 1, the server will not send a positive response.7
Initiates execution of the specified routine.
0x0116
routineIdentifierTwo-byte identifier of the routine to control.0x0000-0xFFFFn*
8
routineControlOptionAdditional input parameters required by the routine.Optional0x00-0xFFn = Number of routine option bytes
Positive response
SID 0x71Len (bits)
Parameter description
Value (hex)
8
Routine Control SID0x711
Echo of
suppressPosRspMsgIndicationBit7
Initiates execution of the specified routine.
0x0116
Echo of
routineIdentifier0x0000-0xFFFFn*
8
routineStatusOutput data or status information returned by the routine.Optional0x00-0xFFn = Number of routine status bytes