Division; Mod - Omron MX2 Series User Manual

Hide thumbs Also See for MX2 Series:
Table of Contents

Advertisement

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

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lx seriesRx series

Table of Contents