StickOS
DI-159 PLC Hardware Manual
Other Statements
You can delay program execution for a number of seconds, milliseconds, or microseconds
using the statement:
sleep
expression
(
s
|
ms
|
us
)
Note that the minimum sleep resolution is the clock tick, which is 0.25 milliseconds. Note also
that in general it would be a bad idea to use a
sleep
statement in the
on
handler for a timer.
You can add remarks to the program, which have no impact on program execution, with the
statement:
rem
remark
Examples
>
10 rem this program takes 5 seconds to run
>
20 sleep 5 s
>
run
> _
65
Содержание DI-159
Страница 51: ...StickOS DI 159 PLC Hardware Manual 4 is even _ 51...
Страница 76: ...DI 159 Block Diagram 76...
Страница 77: ...Dimensional Drawing 77...