Split data from Modbus

I am reading data from a Modbus device.

How to split the values to separate messages?

Split which values? Into what?

Please provide enough detail for someone to help you.

For example the value off data_len

I have found it

msg.payload = msg.jkbms.data_len;

return msg;