beautypg.com

3 ) programming examples – Yaskawa MP900 Series Ladder Programming Manual User Manual

Page 145

background image

5.4 Logic Operations and Comparison Instructions

5.4.10 Range Check (RCHK)

5-76

( 3 ) Programming Examples

The following programming examples execute the RCHK instruction.

• When Input Data (MW00000) = 80, Lower Limit = 100, and Upper Limit = 1,000

The INC instruction on the right end of the line is not executed because the input data is less than the lower limit
and turns the bit output OFF.

• When Input Data (MW00000) = 500, Lower Limit = 100, and Upper Limit = 1,000

The INC instruction on the right end of the line is executed because the value of the input data is within the range
that is greater than or equal to the lower limit and less than or equal to the upper limit, which turns ON the bit
output.

• When Input Data (MW00000) = 1,000, Lower Limit = 100, and Upper Limit = 1,000

The INC instruction on the right end of the line is executed because the value of the input data is within the range
that is greater than or equal to the lower limit and less than or equal to the upper limit, which turns ON the bit
output.

This manual is related to the following products: