Download User`s Manual Model LL1200 PC-based Custom
Transcript
Module No. 70 Category Logical Operation Module Name Edge-triggered Counter Module Code Name ECOUNTER Module Input [Computational Expression] If IN3 changes (from 0 to 1 or from 1 to 0), then OUT = previous OUT + P4. IN1 Enable flag IN2 Initialization flag IN3 Counter input IN4 Initial value (for decremental counting) IN1 IN5 NO IN6 IN7 IN3 IN2 IN4 IN1 = 1 Counter input YES Enable flag IN8 IN2 = 0→1 Initial value (for countdown) Module Parameter P1 Limiting action specification P2 Counter type specification P3 Counter input type specification P4 Augend or subtrahend Initialization flag Momentary stop P1 Limiting action specification Module Output OUT Current value of edge-triggered counter Work Area Augend or subtrahend P4 3 Edge-triggered counter Limitation on Usage Current value P2 Counter type specification Counter input type specification P3 OUT [TIP] IN1: Enable flag (IN1 = 0: Stop counting momentarily; IN1 = 1: Continue counting) IN2: Initialization flag (IN2 = 0: Do not initialize; IN2 = 1: Initialize the count) IN4: Initial value for decremental counting (P2 = 1) P1: Limiting action specification (P1 = 0: Do not limit; P1 = 1: Limit) If limited, the incremental counter stops at FFFFh (65535 in the decimal system) and the decremental counter at 0h (0 in the decimal system). If not limited, the counter continues counting. For example, if the module operates as a decremental counter and the count is 2 and the subtrahend is 4, the next count is FFFEh (65534 in the decimal system). P2: Counter type specification (P2 = 0: incremental counter; P2 = 1: decremental counter) P3: Counter input type specification (P3 = 0: rising-edge counter; P3 = 1: falling-edge counter) P4: Augend if the module is operated as an incremental counter (P2 = 0); subtrahend if the module is operated as a decremental counter (P2 = 1); [NOTE] Operation when no limiting action is specified • If the incremental counter is specified, then OUT = previous OUT + P4 - 10000h (65536 in the decimal system). • If the decremental counter is specified, then OUT = previous OUT - P4 + IN4. : Signed four-byte data; 4-68 : Signed two-byte data; : Flag of 0 or 1; ⫻: No output IM 5G1A11-02E