2. Programming Concepts a) X10 drives M1200 to determine counting direction (up / down) of C200 b) When X11 goes from OFF to ON, RST instsruction will be executed and the PV (present value) in C200 will be cleared and contact C200 is OFF. c) When X12 goes from Off to On, PV of C200 will count up (plus 1) or count down (minus 1). d) When PV in C200 changes from K-6 to K-5, the contact C200 will be energized. When PV in C200 changes from K-5 to K-6, the contact of C200 will be reset. e) If MOV instruction is applied through WPLSoft or HPP to designate a value bigger than SV to the PV register of C0, next time when X1 goes from OFF to ON, the contact C0 will be ON and PV of C0 will equal SV.
Accumulatively increasing Accumulatively increasing Progressively decreasing X10 X11 0 1 2 3 4 5 4 3 2 1 0 -1 -2 -3 -4 -5 -6 -7 -8 PV in C200 0 -7 -6 -5 -4 -3 When the output contact was On. Contacts Y0, C0 2.12 High-speed Counters There are two types of high speed counters provided including Software High Speed Counter (SHSC) and Hardware High Speed Counter (HHSC). The same Input point (X) can be designated with only one high speed counter. Double designation on the same input or the same counter will result in syntax error when executing DCNT instruction. Applicable Software High Speed Counters: U: Count up D: Count down A: Phase A input B: Phase B input Note: 1.
SHSC supports max 10kHz input pulse on single point. Max 8 counters are applicable in the same time. 2. An SS2/SA2/SE model does not support a two-phase two-input counter (C232 with the input points X0 and X2). 3. For 2-phase 2-input conuting, (X4, X5) (C233) and (X6, X7) (C234), max 5kHz. (X0,X2) (C232), max 15kHz. 4. 2-phase 2-input counting supports double and quadruple frequency, which is selected in D1022 as the table shown below.
2-27 X12 C 1-phase input 2 phase 2 input X C235 C236 C237 C238 C239 C240 C241 C242 C232#2 C233 C234 X0 U/D A X1 U/D X2 U/D B X3 U/D X4 U/D A X5 U/D B X6 U/D A X7 U/D B R/F M1270 M1271 M1272 M1273 M1274 M1275 M1276 M1277 - - - U/D M1235 M1236 M1237 M1238 M1239 M1240 M1241 M1242 - - -