Data Sheet

Table Of Contents
52
timeout
Loop duration in Micro Seconds.
Result
None
Examples
$send_setting = PD_SendPacketSettings
{
OrderedSetType = PD_ORDERED_SET_TYPE_SOP
}
$ping_msg = PD_PingMessage
# Sending Ping message for 200ms
PD_TimerLoop(200000)
{
call PD_SendPacket( $ping_msg, $send_setting )
}
4.14 PD_BreakLoop
Breaks the PD_Loop and PD_TimerLoop commands.
Format
PD_BreakLoop()
Parameters
None
Result
None
Examples
$send_setting = PD_SendPacketSettings
{
OrderedSetType = PD_ORDERED_SET_TYPE_SOP
}
PD_Loop(3)
{
PD_Loop(2)
{
$accept_msg = PD_AcceptMessage
call PD_SendPacket( $accept_msg, $send_setting )
}
$ping_msg = PD_PingMessage
call PD_SendPacket( $ping_msg, $send_setting )
IfMatched( $PdResult.Result, PD_RESULT_OK, PD_COMPARE_EQUAL )
{
PD_BreakLoop()
}
IfMatchedEnd
}
4.15 PD_ContinueLoop
Continue command for PD_Loop and PD_TimerLoop comamnds.
Format
PD_ContinueLoop()