REAL TO 2 WORDS

Hello,
is there a function block to convert REAL to 2 WORDS
Plcnext axc f2152
Profinet inline AI8.
weinteck hmi
I create my own tcp modbus table for communication between hmi and plc.
I’m looking for a function block who can convert a REAL value into 2 words (mhb mlb) with possibility of choosing modbus register value.

Thank you for your help
Best regards

Check out the TO_DWORD function in PLCnext Engineer:

You can then use the partial access modifiers .W0 and .W1 to access the two words in the DWORD:

Thank you very much for your quick answer!
Fixed.:+1:
Thank you for your help
Best regards