ref_tst
iref_tst
ER ref_tst (ID tskid, T_RTST *pk_rtst);
ER iref_tst (ID tskid, T_RTST *pk_rtst);
| typedef struct t_rtst { STAT tskstat; /*Current state*/ STAT tskwait; /*Reason for waiting*/ } T_RTST; | 
 Stores task state packet (current state, reason for waiting) of the task specified by parameter tskid in the area specified by parameter pk_rtst.
 Response becomes faster than using ref_tsk or iref_tsk because only a few information items are acquired.
 -	 tskwait
Stores the reason for waiting.
The tskwait is effective only when the tskstat is TTS_WAI or TTS_WAS.
Stores the reason for waiting.
The tskwait is effective only when the tskstat is TTS_WAI or TTS_WAS.