{"id":"click-counter","model_id":"Counter","name":"Counter","summary":"The Counter instruction counts up, down, or both in response to OFF-to-ON transitions of enabling rungs. It stores the current count in a register and turns on a completion bit when the count reaches the set point. A reset rung clears the completion bit.","study_notes":["The counter number must be a CT memory type.","Set Point can be an integer constant or a DS/DD data memory address.","Count Type options are Count Up, Count Down, and Count Up & Down.","Current Value is automatically assigned to the corresponding Counter Data register: CT1 corresponds to CTD1, CT2 to CTD2, etc.","The Completion Bit is the same as the Counter Number.","Count Up & Down uses two enabling rungs, one for up counts and one for down counts.","The completion bit turns ON when the current value reaches the set point and turns OFF when the reset rung is enabled."],"safety_notes":[],"sources":[{"url":"https://cdn.automationdirect.com/static/helpfiles/click/Content/166.htm","title":"Related Topics:","accessed":"2026-10-26"}],"verification":{"status":"source_checked","checked_at":"2026-10-26","values":17,"method":"llm_source_check"},"updated_at":"2026-10-26","type":"instruction","spec":{"language":"ladder","code":"Counter","group":"Counter","parameters":[{"name":"Counter Number","data_type":"CT memory type","description":"Assigns the counter number."},{"name":"Set Point","data_type":"Integer constant or DS/DD address","description":"Target count value."},{"name":"Count Type","data_type":"selection","description":"Count Up, Count Down, or Count Up & Down."},{"name":"Current Value","data_type":"Counter Data register","description":"Holds the current count; automatically assigned from the counter number."},{"name":"Completion Bit","data_type":"CT bit","description":"Turns ON when current value reaches the set point; same as counter number."}],"related":[],"standards":[]},"url":"https://machineschema.com/instruction/click-counter","license":"https://creativecommons.org/licenses/by/4.0/"}