Want to query modbus sensor via mqtt

Steve how would the message structure be like?as we have to include device_eui, type(hex), Payload(modbus cmd), port for sending a downlink command.And I am not sure why we are using mqtt input node as we can directly do it by an inject node with mqtt out node by making data-type as JSON.Am i missing something?.