
User Manual
Chapter 12
GFK-1742F
Jan 2020
Local Logic Language Syntax
293
Example:
Jog_Plus_1 := TRUE; (* Turn on Jog Plus for Axis 1 *)
Strobe_Reset1_3 := 0; (* Turn off the Strobe 1 reset bit for Axis 3 *)
(* Some more code here *)
Follower_Ratio_A_1 := 10; (* Set the Follower Ratio A for Axis 1 to 10 *)
Jog_Plus_1 := FALSE; (* Turn off Jog Plus for Axis 1*)
Strobe_Reset1_3 := 1; (* Turn on the Strobe 1 reset bit for Axis 3 *)
Follower_Ratio_A_1 := 20; (* Set the Follower Ratio A for Axis 1 to 20 *)
For each of the output commands shown above, the last value written is acted upon by the
Logic Engine at the end of each sweep. Thus Jog_Plus_1 is turned OFF, Strobe_Reset1_3 is
turned ON and Follower_Ratio_A_1 is set to 20.
12.4
Local Logic Arithmetic Operators
The Local Logic language contains familiar constructs to perform basic signed integer
arithmetic computations. The language supports 32-bit arithmetic in the Local Logic
program and limited use of 64/32-bit arithmetic. All operations require two operands
except for the ABS function, which returns the absolute value of a variable or numeric
constant.
Table 56: Arithmetic Operators
Operator
Meaning
+
Addition
-
Subtraction
*
Multiplication
/
Integer Division
MOD
Modulus
ABS
Absolute Value
Arithmetic expressions may only be used in assignment statements with one operation per
statement.
The arithmetic operations do not require data type conversion functions since the motion
module automatically does this operation.