Reading the designated port value
int dio_in(int $pin)
state is HIGH, 0 when the port state is LOW
<?php
include "/lib/sd_204.php";
echo dio_in(DI_0), "\r\n"; // Reading the port 0 of the DI
echo dio_in(DI_1), "\r\n"; // Reading the port 1 of the DI
?>