Try replacing the dots by underscores in the variable names like I show you below. I used underscores all the time. I don't think you can use dots in variable names.

Switch_0 VAR PortA.0
Switch_1 VAR PortA.1

Robert