StickOS
DI-159 PLC Hardware Manual
Line
delete program line
line statement // comment
enter program line
variable
[
$
]
=
expression, ...
assign variable
?
[
dec
|
hex
|
raw
]
expression, ...[;]
print strings/expressions
assert
expression
break if expression is false
data
n
[, ...]
read-only data
dim
variable
[
$
][
[
n
]
] [as ...], ...
dimension variables
end
end program
halt
loop forever
input
[
dec
|
hex
|
raw
]
variable
[
$
], ...
input data
label
label
read/data label
let
variable
[
$
]
=
expression, ...
assign variable
[
dec
|
hex
|
raw
]
expression
, ...[;]
print strings/expressions
read
variable
[, ...]
read data into variables
rem
remark
remark
restore
[
label
]
restore data pointer
sleep
expression
(
s
|
ms
|
us
)
delay program execution
stop
insert breakpoint in code
vprint
var
[
$
]=[
dec
|
hex
|
raw
]
expr
, ...
print to variable
Modes
analog
[
millivolts
]
set analog voltage scale
autorun
[
on
|
off
]
autorun mode (on reset)
echo
[
on
|
off
]
terminal echo mode
indent
[
on
|
off
]
listing indent mode
numbers
[
on
|
off
]
listing line numbers mode
pins
[
assign
[
pinname
|
none
]]
set/display pin assignments
prompt
[
on
|
off
]
terminal prompt mode
step
[
on
|
off
]
debugger single-step mode
trace
[
on
|
off
]
debugger trace mode
watchsmart
[
on
|
off
]
low-overhead watchpoint mode
Block Statements
if
expression
then
[
elseif
expression
then
] [
else
]
endif
for
variable = expression
to
expression
[
step
expression
]
[(
break
|
continue
) [
n
]]
next
while
expression
do
[(
break
|
continue
) [
n
]]
endwhile
17
Summary of Contents for DI-159
Page 51: ...StickOS DI 159 PLC Hardware Manual 4 is even _ 51...
Page 76: ...DI 159 Block Diagram 76...
Page 77: ...Dimensional Drawing 77...