Put a debug node AFTER the switch node - what are you feeding into the modbus node?
EDIT
Just realised the node icons in your screenshot are different to mine - you might be using a different set of modbus nodes to me (it is always a good idea to provide a link or the full name of the contrib node you are using (to save everyone some time)). My info above ↑ us using node-red-contrib-modbus