A PSA system works by passing compressed air through a bed of adsorbent material (usually zeolite or carbon molecular sieve), which selectively adsorbs oxygen or nitrogen and other gases, allowing oxygen or nitrogen to pass through as the product gas. The system operates in a cyclic manner with alternating beds for continuous gas production.