7: BASIC INSTRUCTIONS7-14 « FC4A MICRO SMART USER ’S MANUAL »CC= and CC≥ (Counter Comparison)The CC= instruction is an equivalent comparison instruction for counter current values. This instruction will constantlycompare current values to the value that has been programmed in. When the counter value equals the given value, thedesired output will be initiated.The CC≥ instruction is an equal to or greater than comparison instruction for counter current values. This instruction willconstantly compare current values to the value that has been programmed in. When the counter value is equal to or greaterthan the given value, the desired output will be initiated.When a counter comparison instruction is programmed, two addresses are required. The circuit for a counter comparisoninstruction must be programmed in the following order: the CC= or CC≥ instruction; a counter number C0 through C31(all-in-one 10-I/O type CPU module) or C99 (other CPU modules); followed by a preset value to compare from 0 to65535.The preset value can be designated using a decimal constant or a data register D0 through D399 (all-in-one 10-I/O typeCPU module) or D1299 (other CPU modules), or D2000 through D7999 (slim type CPU modules). When a data register isused, the data of the data register becomes the preset value.• The CC= and CC≥ instructions can be used repeatedly for different preset values.• The comparison instructions only compare the current value. The status of the counter does not affect this function.• The comparison instructions also serve as an implicit LOD instruction, and must be programmed at the beginning of aladder line.• The comparison instructions can be used with internal relays, which are ANDed or ORed at a separate programaddress.• Like the LOD instruction, the comparison instructions can be followed by the AND and OR instructions.Ladder Diagram (CC=)Ladder Diagram (CC≥)Counter # to compare withPreset value to compareCC=10 C2CC>=D15 C3Instruction DataCC=OUTC210Q0Program ListInstruction DataCC>=OUTC3D15Q1Program ListQ0Q1Ladder DiagramInstruction DataCC=OUTLODANDOUTC510M0I0M0Q0Program ListLadder DiagramInstruction DataCC=ANDOUTC510I0Q0Program ListInstruction DataCC=OROUTC510I0Q0Program ListLadder DiagramI0I0 M0CC=10 C5 CC=10 C5I0CC=10 C5Q0M0 Q0 Q0