Examples 6.10 Software counters 6.10.1 Mnemonics You can program up to 32 software counters in the range from 1 to 65535. Counter addresses are C00.00-C01.15. Assignment Address :Counter val.:Function :Remanence *) : R remanence : F count up : B count down 16 bit constant ( 1 – 65535 ) or 16 bit variable (e.g. BM01.02 (+BM01.03)) Address of software counter (e.g. C00.05 ) = Starts the software counter at edge 0 → 1, RESET at log. 0 *) Note: Adding the “R” parameter (remanence of current counter value) is optional. а Read output L Cxx.xx “1“= count complete а Read current value (remaining value) LD Cxx.xx 16 bit value of the cur- rent count а Count (transfer pulse) L stop without RESET 121