Mitsubishi — 4.2 Descriptions of the Basic Instructions

AH500 Motion Control Module Manual  When the counter coil specified by the instruction CNT is turned from OFF to ON, the counter value increases by 1. If the counter value matches the setting value (counter value=setting value), the contact specified will act in the way described below. Explanation  If there are pulses sent to the counter specified by the instruction CNT after the counter value matches the setting value, the state of the contact specified and the counter value will remain unchanged. Ladder diagram Instruction code: Description:

Example X0.0 CNT LD X0.0 Loading the Form A contact X0.0 Explanation  DCNT is an instruction which is used to enable the 32-bit counters C200~C255.  C200~C220 are special counters. Please refer to Chapter 10 for more information.  C221~C2255 are general up/down counters. When the counter coil specified by the instruction DCNT is turned from OFF to ON, the counter value increases or decreases by one according to the setting of SM221~SM255. Ladder diagram Instruction code: Description:

Example M0 LD M0 Loading the Form A contact M0 4-10 Instruction code Operand Function CNT S , S 1 2 16-bit counter Device Xn.n Yn.n M S K 16# F KnM KnS D W T C V Z S 1  S 2    NO (Normally-open) contact OFF NC (Normally-closed) contact ON C20 K100 The setting value in the counter C20 is K100. CNT C20 K100 Instruction code Operand Function DCNT S , S 1 2 32-bit counter Device Xn.n Yn.n M S K 16# F KnM KnS D W T C V Z S 1  S 2    DCNT C254 K1000 The setting value DCNT C254 K1000 in the counter C254 is K1000.