Comments, Limitations of 32-bit numbers, E limitations of 32-bit numbers – Delta RMC151 User Manual
Page 354
RMC70/150 and RMCTools User Manual
preceding "0x" instead of 16#,
for example 0x01006a01.
Boolean
Representing a single bit. 0 = False
and 1= True.
0 or 1 or True or False
Special Constants
The expressions in RMCTools include the named constant numbers listed below. In the
Expression Editor, these can be accessed on the Tags tab, under Expression
Constants.
Constant Value
M_PI
3.1415927 (limited to 32-bit floating point
accuracy)
5.13.11. Comments
Expressions support comments. Comments are very useful for telling the user (and yourself)
what the code is doing. Commented text will not be executed or checked for errors. Comments
are saved as part of the expression.
The Expression command supports two types of comments:
Type
Description
//
Comments everything to the right on the same line.
(* *)
Comments everything between the starred brackets. This
comment type cannot be nested. For example,
(* (*
sample comment *) *)
will be an error.
Example 1
IF
_Axis[0].ActPos
> 20.0
THEN
//This is a comment.
MyREAL
:= 92;
//This is a comment, too.
END_IF
Example 2
MyREAL1
:= 34.0;
(*This is a comment*)
MyREAL2
:= 70023.0;
(*This is a multi-line comment
that spans multiple lines *)
MyDINT
:= 2;
5.13.12. Limitations of 32-bit Numbers
334
Delta Computer Systems, Inc.