I finally got a solution.
I shrunk the program so I pritty much only kept the modules in the picture below.... and still got the error.
By using the module "Counter" I could count the blocks from "Read # REED" and "Reed Input" (from USB device).
It turns out that RS232 input module are delayed in the start up. Which makes the "Read # REED" ahead with about 20 blocks.
Then the error occur in the "Signal Switc" becouse we have a block length mismatch in the startup.
Solution:
Use "synchronize by input" for "Read # REED" and take the input from "Reed Input" (RS232 input). As in picture.
In this way "Read # REED" will not rush ahead in the start up.
