st_free_get_count()


지정된 프리모드 ST(소프트웨어 타이머)의 카운트 값을 읽음

Description

int st_free_get_count(int $st_id)

Parameters

Return Value

해당 ST의 카운트 값, 단위는 설정 단위를 따름

Example

<?php
include "/lib/sd_340.php";
st_free_setup(0, "sec");  // 0번 ST를 프리모드로 설정하고 가동
while(1)
{
   $count = st_free_get_count(0);  // 0번 ST의 카운트 값을 읽음
   echo "$count\r\n";  // 값을 출력
   sleep(1);
}
?>

See also