Rockwell Automation 8520-MUM 9/Series CNC Mill Operation and Programming Manual Documentation Set User Manual

Page 703

Advertising
background image

Paramacros

Chapter 28

28-3

All logical operators have the format of:

A logical operator B

where A and B are numerical data or a parameters with a value assigned.

If B is negative in the above format, an error will occur.

If A is negative, the absolute value of A is used in the operation and the
sign is attached to the final result.

Before evaluation, A and B are made integers by rounding and truncating.

Example 28.2

Logical Operation Examples

Expression Entered

Result

[16.2MOD3]

1.0

[-16.2MOD3]

-1.0

[-17.6MOD3]

0.0

[16.0MOD3]

1.0

[-5AND4]

-4.0

[4.4AND3.6]

4.0

[5AND-4]

ERROR

[83886079AND83886080]

67108864

Advertising