Drive Programming
Command
Divides <value 1> by <value 2>.
<result> = <value 1> / <value 2>
Warning: Drive Programming does not control overflow/underflow. The application should take care.
Example
Flowchart
The P102 parameter calculation result is 250.
Command
Remainder of division.
<result> = <value 1> Mod <value 2>
Warning: Drive Programming does not control overflow/underflow. The application should take care.
Example
Flowchart
The P102 parameter calculation result is 0.
/(Division)
Description
Format
% (Mod)
Description
Format
Arguments
• Result: any variable.
• Value 1: any variable or constant (range
-128 to 127)
• Value 2: any variable or constant (range
-2147483648 to 2147483647).
Text
Arguments
• Result: Any variable.
• Value 1: any variable or constant (range
-128 to 127).
• Value 2: any variable or constant (range
-2147483648 to 2147483647)
Text
49