"Write Single Register."

Hello,
I would like to write to a register using Modbus.
I need to use code 6, “Write Single Register.”
Can you show me the line?
40 2.3.MB_WREG2 = VAR5

"40 2.3.MB_INPUTREG2 = VAR5 "
It works.

MB_REG is key word, not MB_WREG.
Please refer to the help file.