Mitsubishi — 11.2 Comparison

AH500 Motion Control Module Manual (2) A comparison is shown below. Users use FROM/TO to read/write values so that they can compare data. The comparison value stored in data registers is a 32-bit value. ※ The dotted lines are data procedures, and the solid lines are control procedures. Block (A): The instruction TO is used to write data into control registers (block C) and data registers (block D). Block (B): The instruction FROM is used to read data from control registers (block C) and data registers (block D). Block (C):

User set a comparison source (block E), a comparison condition (block F), and an output terminal (block G) in a control register in accordance with the value it receives by means of TO. Block (D): The value that users write into data registers by means of the instruction TO is compared with a comparison source (block E). Block (E): The present positions of four axes, the values in C200, C204, C208, and C212 are comparison sources. Please refer to Chapter 10 for more information about high-speed counters. Block (F): There are three comparison conditions, they are equal to, greater than or equal to, and less than or equal to.

If block D and block E meet the comparison condition 11-4 Item Bit Value AH20MC-5A AH10PM-5A/ AH05PM-5A AH15PM-5A Comparison condition [5-4] 3 Less than or equal to (≦) Less than or equal to (≦) Less than or equal to (≦) Output action [7-6] 0 Set Set Set 1 Reset Reset Reset 2, 3 No output No output No output Comparison result [11-8] 0 Y0.8 Y0.8 Y0.8 1 Y0.9 Y0.9 Y0.9 2 Y0.10 Y0.10 - 3 Y0.11 Y0.11 - 4 Clearing the value in C200 Clearing the value in C200 Clearing the value in C200 5 Clearing the value in C204 Clearing the value in C204 - 6 Clearing the value in C208 Clearing the value in C208 - 7 Clearing the value in C212 Clearing the value in C212 - (B)FROM K253 K1 D0 D50 (A)TO K253 K1 D0 D50 (D)Data register n (n=0~7) (C) Control register n (n=0~7) (E) Comparison source (F) Comparison condition (G) Output terminal/Counter (E) Comparison source (G) Output terminal/Counter