Professional Documents
Culture Documents
Timers
Used for control operations that need to be timed. Timers count seconds or fraction
of seconds using the internal CPU clock
The scan operand for a positive The scan operand for a negative
signal edge instruction compares signal edge instruction compares
the current signal state of the current signal state of
OPERAND_1 with the signal state of OPERAND_1 with the signal state of
the previous scan stored in edge the previous scan stored in edge
memory bit M17.0, tag named memory bit M17.1, tag named
OPERAND_2 OPERAND_2
If the instruction detects a change If the instruction detects a change
between the two operands, a between the two operands, a
positive rising edge is produced for negative fallen edge is produced for
only one scan only one scan
Dr.-Ing. Jackson G. Njiri EMT 2549 L-5: Timers, counters 13
Sequential and Combinational Logic Instructions
Set-Reset Flip-Flop Instruction Set-output Instruction (S): Set 1 Bit