Mitsubishi — Chapter 7 Application Instructions API 50-88

7 Application Instructions API 50-99 API 55 Operands: S 1 : Lower bound of the comparison zone S 2 : Upper bound of the comparison zone S : No. of high speed counter D : Comparison result Explanations: 1. S 1 has to be euqal to or smaller than S 2 . ( S 1 ≤ S 2 ) 2. When S 1 > S 2 , the instruction will perform a comparison by using S 1 as the upper bound and S 2 as the lower bound. 3. S has to designate high speed counters C235 ~ C255, See remarks of API 53 DHSCS for more details. 4. D will occupy 3 consecutive devices. 5. Flags: M1150 ~ M1333; see remarks of API 53 DHSCS for more details.

M1150, M1151 DHSZ executing multiple points comparison mode; see Program Example 3 for more details; SA/SX/SC series MPU does not support. M1152, M1153 DHSZ as frequency control mode; see Program Example 4 for more details; SA/SX/SC series MPU does not support. 6. The output will not be affected by the scan time. 7. The zone comparisons and outputs are all processed by inserting interruptions. 8. Please refer to the remarks on API 53 DHSCS for more information about the limitation to the use of the instruction in an DVP-EH2/EH3/SV/SV2 series PLC. Program Example 1: 1. Designate device Y0 and Y0 ~ Y2 will be automatically occupied. 2.

When DHSZ instruction is being executed and the counting of the high speed counter C246 reaches upper and lower bounds, one of Y0 ~ Y2 will be On M1000 DVP-PLC APPLICATION MANUAL 7-18 Mnemonic Operands Function D HSZ High Speed Zone Compare Type OP Bit Devices Word Devices Program Steps X Y M S K H KnX KnY KnM KnS T C D E F DHSZ: 17 steps S 1 * * * * * * * * * * S 2 * * * * * * * * * * S * D * * * PULSE 16-bit 32-bit SA SX SC E H SV EH3 SV2 ES EX SS SA SX SC EH SV EH3 SV2 ES EX SS EH3 ES EX SS SA SX SC EH SV SV2 DCNT C246 K20000 DHSZ K150 0 K2000 C246 Y0