1-99
IM 04L51B01-01EN
Configuring the GX/GP and Viewing the Settings
1
IntegerExtractionOperation(Releasenumber2andlater)
INT
(Syntax) INT (0001)
(Condition) Determines the maximum integer that does not exceed the channel 0001 data
value. If the channel 0001 data value is 123.45, the computed result is 123.
(Explanation) Operation example
When channel 0001 is 4.3
INT (0001) = 4.0
When channel 0001 is 5.5
INT (0001) = 5.0
When channel 0001 is -2.2
INT (0001) = -3.0
When channel 0001 is -3.8
INT (0001) = -4.0
RemainderExtractionOperation(Releasenumber2andlater)
MOD
(Syntax) 0001.MOD.K001
(Condition) Determines the remainder when channel 0001 is divided by constant K001.
(Explanation) Operation example
When channel 0001 is 10 and channel K001 is 3
0001 .MOD. K001 = 1
When channel 0001 is 7.5 and channel K001 is -2
0001 .MOD. K001 = -0.5
When channel 0001 is -6 and channel K001 is 2.5
0001 .MOD. K001 = 1.5
When channel 0001 is -8.5 and channel K001 is -4.5
0001 .MOD. K001 = -4.0
TrigonometricFunctions(Releasenumber2andlater)
SIN
(Syntax) SIN (0001)
(Condition) Determines the sine value assuming the channel 0001 data value to be an
angle in degrees.
COS
(Syntax) COS (0001)
(Condition) Determines the cosine value assuming the channel 0001 data value to be an
angle in degrees.
Note
If the input data to a trigonometric function is in radians, you can use the following equation to
convert into degrees.
(degrees) [°] = (radians) [rad] × 180 / Pi
1.8ConfiguringMathChannels(/MToption)