@dougal1957 You lovely lovely person.
Asking me to post it made me go back through it with the appropriate paperwork in hand to check everything over before sending it through. And I spotted a rather obvious error, essentially trying to define the thermocouple type using the wrong variable.
Thanks for all your help folks. So handy to be able to bounce things off others in the know!