[ZX] use user defined setOnCommand and setOffCommand.