读取指定自由模式ST(Software Timer)的计数值
int st_free_get_count(int $st_id)
相应ST的计数值,单位随设定单位
<?php
include "/lib/sd_340.php";
st_free_setup(0); // Configuring ST0 as a free mode and start the timer
while(1)
{
$count = st_free_get_count(0); // Reading the ST0's counter value
echo "$count\r\n"; // outputting the value
}
?>