When using the Function Block PIO_Init, the device input is referring to the module ID of the PIO module, not the module ID of the Compax3. The module ID of the PIO (set with dip switches) must be different than the module ID of the Compax3 (set with the dip switches on S24).